From 419fdbb38f41ec5bd1cd1690f7030719ec1c8afa Mon Sep 17 00:00:00 2001 From: vionash <61507189+vionash@users.noreply.github.com> Date: Wed, 17 Aug 2022 15:16:22 -0500 Subject: [PATCH] 3.5 Parity Update (#51) * 3.5 Parity Update --- .github/workflows/maven.yml | 30 + .gitignore | 8 - .idea/.gitignore | 8 + .idea/compiler.xml | 18 + .idea/encodings.xml | 7 + .idea/jarRepositories.xml | 20 + .idea/misc.xml | 12 + .idea/vcs.xml | 6 + .openapi-generator/FILES | 1862 +- .openapi-generator/VERSION | 2 +- .travis.yml | 22 + README.md | 595 +- api/openapi.yaml | 18305 +++++++++------- build.gradle | 94 +- build.sbt | 33 +- docs/AccessIPAddressListResponseSchema.md | 8 +- docs/AccessIPAddressPOST.md | 8 +- docs/AccessIPAddressResponseSchema.md | 20 +- docs/AccessIPRangeListResponseSchema.md | 8 +- docs/AccessIPRangePOST.md | 8 +- docs/AccessIPRangeResponseSchema.md | 18 +- docs/Action.md | 18 + docs/ActionsParticipantsRequest.md | 8 +- .../ActionsParticipantsRequestParticipants.md | 40 + docs/ActivatePortingOrder202Response.md | 13 + docs/AmdDetailRecord.md | 42 +- docs/AnswerRequest.md | 38 +- docs/AssignPhoneNumberRequest.md | 13 + docs/Attempt.md | 22 +- docs/Audio.md | 8 +- docs/AuthenticationProvider.md | 22 +- docs/AuthenticationProviderCreate.md | 14 +- docs/AuthenticationProviderSettings.md | 30 +- docs/AuthenticationProvidersApi.md | 30 +- docs/AvailablePhoneNumber.md | 28 +- docs/AvailablePhoneNumberBlock.md | 22 +- docs/AvailablePhoneNumbersMetadata.md | 8 +- docs/BillingApi.md | 6 +- docs/BillingGroup.md | 24 +- docs/BillingGroupsApi.md | 30 +- docs/Body.md | 14 + docs/BridgeRequest.md | 14 +- docs/BulkCredentialRequest.md | 12 +- docs/BulkCredentialResponse.md | 6 +- docs/BulkCredentialResponseData.md | 6 +- docs/BulkRoomRecordingsDeleteResponse.md | 6 +- docs/BulkRoomRecordingsDeleteResponseData.md | 6 +- docs/BulkSIMCardAction.md | 27 + docs/BulkSIMCardActionDetailed.md | 27 + ...ulkSIMCardNetworkPreferences202Response.md | 14 + docs/BulkSIMCardNetworkPreferencesRequest.md | 14 + docs/BulkSetPublicIPs202Response.md | 13 + docs/BulkSetPublicIPsRequest.md | 13 + docs/BulkSimCardActionGet200Response.md | 13 + docs/BusinessIdentity.md | 32 +- docs/BusinessIdentityAddress.md | 20 +- docs/BusinessIdentityContactsInner.md | 20 + docs/Button.md | 15 + docs/ButtonComponentType.md | 11 + docs/ButtonParameter.md | 15 + docs/ButtonParameterType.md | 13 + docs/ButtonSubtype.md | 13 + docs/CSVDownloadResponse.md | 6 +- docs/Call.md | 20 +- docs/CallAnswered.md | 26 +- docs/CallAnsweredEvent.md | 6 +- docs/CallAnsweredPayload.md | 26 +- docs/CallBridged.md | 26 +- docs/CallBridgedEvent.md | 6 +- docs/CallBridgedPayload.md | 26 +- docs/CallCommandsApi.md | 343 +- docs/CallControlApplication.md | 72 +- docs/CallControlApplicationInbound.md | 18 +- docs/CallControlApplicationOutbound.md | 8 +- docs/CallControlApplicationResponse.md | 6 +- docs/CallControlApplicationsApi.md | 16 +- docs/CallControlCommandResponse.md | 6 +- docs/CallControlCommandResult.md | 6 +- docs/CallCost.md | 28 +- docs/CallCostMeta.md | 6 +- docs/CallCostMetaMeta.md | 8 +- docs/CallCostPayload.md | 36 +- docs/CallCostPayloadCostPartsInner.md | 17 + docs/CallDtmfReceived.md | 26 +- docs/CallDtmfReceivedEvent.md | 6 +- docs/CallDtmfReceivedPayload.md | 20 +- docs/CallEnqueued.md | 26 +- docs/CallEnqueuedEvent.md | 6 +- docs/CallEnqueuedPayload.md | 18 +- docs/CallEvent.md | 32 +- docs/CallForkStarted.md | 26 +- docs/CallForkStartedEvent.md | 6 +- docs/CallForkStartedPayload.md | 22 +- docs/CallForkStopped.md | 26 +- docs/CallForkStoppedEvent.md | 6 +- docs/CallForwarding.md | 18 +- docs/CallGatherEnded.md | 26 +- docs/CallGatherEndedEvent.md | 6 +- docs/CallGatherEndedPayload.md | 37 +- docs/CallHangup.md | 26 +- docs/CallHangupEvent.md | 6 +- docs/CallHangupPayload.md | 64 +- docs/CallInitiated.md | 26 +- docs/CallInitiatedEvent.md | 6 +- docs/CallInitiatedPayload.md | 38 +- docs/CallLeftQueue.md | 26 +- docs/CallLeftQueueEvent.md | 6 +- docs/CallLeftQueuePayload.md | 34 +- docs/CallMachineDetectionEnded.md | 26 +- docs/CallMachineDetectionEndedEvent.md | 6 +- docs/CallMachineDetectionEndedPayload.md | 30 +- docs/CallMachineGreetingEnded.md | 26 +- docs/CallMachineGreetingEndedEvent.md | 6 +- docs/CallMachineGreetingEndedPayload.md | 28 +- docs/CallPlaybackEnded.md | 26 +- docs/CallPlaybackEndedEvent.md | 6 +- docs/CallPlaybackEndedPayload.md | 40 +- docs/CallPlaybackStarted.md | 26 +- docs/CallPlaybackStartedEvent.md | 6 +- docs/CallPlaybackStartedPayload.md | 20 +- docs/CallRecording.md | 26 +- docs/CallRecordingError.md | 26 +- docs/CallRecordingErrorEvent.md | 6 +- docs/CallRecordingErrorPayload.md | 28 +- docs/CallRecordingSaved.md | 26 +- docs/CallRecordingSavedEvent.md | 6 +- docs/CallRecordingSavedPayload.md | 30 +- ...ecordingSavedPayloadPublicRecordingUrls.md | 8 +- .../CallRecordingSavedPayloadRecordingUrls.md | 8 +- docs/CallRecordingsApi.md | 16 +- docs/CallReferCompleted.md | 26 +- docs/CallReferCompletedEvent.md | 6 +- docs/CallReferCompletedPayload.md | 20 +- docs/CallReferFailed.md | 26 +- docs/CallReferFailedEvent.md | 6 +- docs/CallReferFailedPayload.md | 20 +- docs/CallReferStarted.md | 26 +- docs/CallReferStartedEvent.md | 6 +- docs/CallReferStartedPayload.md | 20 +- docs/CallRequest.md | 115 +- ...lRequestAnsweringMachineDetectionConfig.md | 24 +- docs/CallRequestTo.md | 40 + docs/CallSpeakEnded.md | 26 +- docs/CallSpeakEndedEvent.md | 6 +- docs/CallSpeakEndedPayload.md | 26 +- docs/CallSpeakStarted.md | 26 +- docs/CallSpeakStartedEvent.md | 6 +- docs/CallSpeakStartedPayload.md | 14 +- docs/CallStreamingFailed.md | 33 + docs/CallStreamingFailedEvent.md | 13 + docs/CallStreamingFailedPayload.md | 30 + .../CallStreamingFailedPayloadStreamParams.md | 25 + docs/CallStreamingStarted.md | 26 +- docs/CallStreamingStartedEvent.md | 6 +- docs/CallStreamingStartedPayload.md | 16 +- docs/CallStreamingStopped.md | 26 +- docs/CallStreamingStoppedEvent.md | 6 +- docs/CallbackWebhookMeta.md | 8 +- docs/CallerName.md | 8 +- docs/CancelPortingOrder200Response.md | 14 + docs/Carrier.md | 42 +- docs/CdrGetSyncUsageReportResponse.md | 6 +- docs/CdrUsageReportResponse.md | 64 +- docs/ChannelZonesApi.md | 20 +- docs/CheckContact.md | 29 +- docs/CheckContactRequestBody.md | 18 +- docs/CheckContactResponse.md | 6 +- docs/ClientStateUpdateRequest.md | 6 +- docs/CnamListing.md | 8 +- docs/Comment.md | 40 +- docs/CompleteOTAUpdate.md | 36 +- docs/CompleteOTAUpdateSettings.md | 6 +- docs/CompositionCompleted.md | 26 +- docs/CompositionCompletedEvent.md | 6 +- docs/CompositionCompletedPayload.md | 20 +- docs/Conference.md | 54 +- docs/ConferenceCallRequest.md | 40 +- docs/ConferenceCommandResponse.md | 6 +- docs/ConferenceCommandResult.md | 6 +- docs/ConferenceCommandsApi.md | 56 +- docs/ConferenceCreated.md | 24 +- docs/ConferenceCreatedEvent.md | 6 +- docs/ConferenceCreatedPayload.md | 18 +- docs/ConferenceDetailRecord.md | 34 +- docs/ConferenceEnded.md | 24 +- docs/ConferenceEndedBy.md | 8 +- docs/ConferenceEndedEvent.md | 6 +- docs/ConferenceEndedPayload.md | 30 +- docs/ConferenceFloorChangedEvent.md | 24 +- docs/ConferenceFloorChangedEventPayload.md | 18 +- docs/ConferenceHoldRequest.md | 10 +- docs/ConferenceMuteRequest.md | 6 +- docs/ConferenceParticipantDetailRecord.md | 38 +- docs/ConferenceParticipantJoined.md | 26 +- docs/ConferenceParticipantJoinedEvent.md | 6 +- docs/ConferenceParticipantJoinedPayload.md | 16 +- docs/ConferenceParticipantLeft.md | 26 +- docs/ConferenceParticipantLeftEvent.md | 6 +- docs/ConferenceParticipantPlaybackEnded.md | 24 +- ...ConferenceParticipantPlaybackEndedEvent.md | 6 +- ...nferenceParticipantPlaybackEndedPayload.md | 24 +- docs/ConferenceParticipantPlaybackStarted.md | 24 +- ...nferenceParticipantPlaybackStartedEvent.md | 6 +- docs/ConferenceParticipantSpeakEnded.md | 24 +- docs/ConferenceParticipantSpeakEndedEvent.md | 6 +- .../ConferenceParticipantSpeakEndedPayload.md | 20 +- docs/ConferenceParticipantSpeakStarted.md | 24 +- .../ConferenceParticipantSpeakStartedEvent.md | 6 +- docs/ConferencePlayRequest.md | 12 +- docs/ConferencePlaybackEnded.md | 24 +- docs/ConferencePlaybackEndedEvent.md | 6 +- docs/ConferencePlaybackEndedPayload.md | 16 +- docs/ConferencePlaybackStarted.md | 24 +- docs/ConferencePlaybackStartedEvent.md | 6 +- docs/ConferenceRecordingSaved.md | 24 +- docs/ConferenceRecordingSavedEvent.md | 6 +- docs/ConferenceRecordingSavedPayload.md | 44 +- docs/ConferenceResponse.md | 6 +- docs/ConferenceSpeakEnded.md | 24 +- docs/ConferenceSpeakEndedEvent.md | 6 +- docs/ConferenceSpeakEndedPayload.md | 12 +- docs/ConferenceSpeakRequest.md | 94 +- docs/ConferenceSpeakStarted.md | 24 +- docs/ConferenceSpeakStartedEvent.md | 6 +- docs/ConferenceStopRequest.md | 6 +- docs/ConferenceUnholdRequest.md | 6 +- docs/ConferenceUnmuteRequest.md | 6 +- docs/ConfirmPortingOrder200Response.md | 14 + docs/Connection.md | 34 +- docs/ConnectionResponse.md | 6 +- docs/ConnectionRtcpSettings.md | 18 +- docs/ConnectionsApi.md | 12 +- docs/ConsumedData.md | 8 +- docs/Contact.md | 20 +- docs/CostInformation.md | 10 +- docs/CreateAndroidPushCredentialRequest.md | 17 +- ...CreateAuthenticationProvider200Response.md | 13 + docs/CreateBillingGroup200Response.md | 13 + docs/CreateCallControlApplicationRequest.md | 58 +- docs/CreateComment200Response.md | 13 + docs/CreateComment200ResponseData.md | 40 + docs/CreateConferenceRequest.md | 38 +- docs/CreateCredentialConnectionRequest.md | 58 +- ...CreateCustomerServiceRequest201Response.md | 13 + docs/CreateCustomerServiceRequestRequest.md | 14 + docs/CreateDocument200Response.md | 13 + ...reateDyanmicEmergencyAddress201Response.md | 13 + ...eateDyanmicEmergencyEndpoint201Response.md | 13 + docs/CreateFaxApplicationRequest.md | 20 +- docs/CreateFaxApplicationRequestInbound.md | 18 +- docs/CreateFaxApplicationRequestOutbound.md | 8 +- docs/CreateFqdnConnectionRequest.md | 42 +- docs/CreateFqdnRequest.md | 12 +- docs/CreateInboundIpRequest.md | 84 +- ...eateInventoryCoverageRequest200Response.md | 14 + docs/CreateIosPushCredentialRequest.md | 19 +- docs/CreateIpConnectionRequest.md | 54 +- docs/CreateIpRequest.md | 10 +- ...eateLedgerBillingGroupReport200Response.md | 13 + docs/CreateLongCodeMessageRequest.md | 32 +- docs/CreateManagedAccount200Response.md | 13 + docs/CreateManagedAccount422Response.md | 13 + docs/CreateManagedAccountRequest.md | 14 +- docs/CreateMessageRequest.md | 34 +- ...CreateMessagingHostedNumberOrderRequest.md | 8 +- docs/CreateMessagingProfileRequest.md | 28 +- docs/CreateNotificationChannels200Response.md | 13 + docs/CreateNotificationProfile200Response.md | 13 + docs/CreateNotificationSetting200Response.md | 13 + docs/CreateNumberBlockOrderRequest.md | 40 +- docs/CreateNumberOrderDocumentRequest.md | 28 +- docs/CreateNumberOrderRequest.md | 38 +- docs/CreateNumberPoolMessageRequest.md | 32 +- docs/CreateNumberReservationRequest.md | 28 +- docs/CreateOrUpdateBusinessIdentityRequest.md | 22 +- docs/CreateOutboundVoiceProfileRequest.md | 30 +- docs/CreatePortingOrder.md | 6 +- docs/CreatePortingOrder201Response.md | 13 + docs/CreatePortingOrderComment.md | 6 +- docs/CreatePortingOrderComment201Response.md | 13 + ...CreatePrivateWirelessGateway202Response.md | 13 + docs/CreatePrivateWirelessGatewayRequest.md | 14 + docs/CreatePushCredentialRequest.md | 37 + docs/CreateRoom201Response.md | 13 + docs/CreateRoomClientToken201Response.md | 13 + docs/CreateRoomClientToken201ResponseData.md | 16 + docs/CreateRoomClientTokenRequest.md | 8 +- docs/CreateRoomComposition202Response.md | 13 + docs/CreateRoomCompositionRequest.md | 18 +- docs/CreateRoomRequest.md | 16 +- docs/CreateShortCodeMessageRequest.md | 32 +- docs/CreateTexmlApplicationRequest.md | 46 +- docs/CreateTexmlApplicationRequestInbound.md | 18 +- docs/CreateTexmlApplicationRequestOutbound.md | 8 +- docs/CreateVerificationRequestCall.md | 12 +- docs/CreateVerificationRequestFlashcall.md | 10 +- docs/CreateVerificationRequestPSD2.md | 16 +- docs/CreateVerificationRequestSMS.md | 10 +- docs/CreateVerificationRequestWhatsapp.md | 10 +- docs/CreateVerificationResponse.md | 6 +- ...reateVerifiedCallsDisplayProfileRequest.md | 16 +- docs/CreateVerifyProfileCallRequest.md | 10 +- docs/CreateVerifyProfileFlashcallRequest.md | 6 +- docs/CreateVerifyProfilePSD2Request.md | 6 +- docs/CreateVerifyProfileRequest.md | 22 +- docs/CreateVerifyProfileSMSRequest.md | 14 +- docs/CreateVerifyProfileWhatsappRequest.md | 8 +- docs/CreateWdrReport201Response.md | 13 + docs/CreateWhatsAppMessageRequest.md | 28 +- ...reateWhatsappMessageTemplateRequestBody.md | 112 + docs/CredentialConnection.md | 66 +- docs/CredentialConnectionResponse.md | 6 +- docs/CredentialConnectionsApi.md | 4 +- docs/CredentialInbound.md | 50 +- docs/CredentialOutbound.md | 48 +- docs/CredentialsResponse.md | 10 +- docs/CsvDownload.md | 24 +- docs/Currency.md | 11 +- docs/CursorPagination.md | 15 + docs/CursorPaginationCursors.md | 14 + docs/CustomSipHeader.md | 8 +- docs/CustomerFacingFQDNsGetIPResponse.md | 14 + docs/CustomerFacingFQDNsListResponse.md | 14 + docs/CustomerFacingFQDNsPatch.md | 13 + docs/CustomerFacingFQDNsPost.md | 14 + docs/CustomerFacingFQDNsResponseSchema.md | 17 + docs/CustomerServiceRequest.md | 32 +- docs/CustomerServiceRequestAddress.md | 12 +- docs/CustomerServiceRequestApi.md | 181 +- ...stomerServiceRequestPhoneNumberCoverage.md | 12 +- ...ustomerServiceRequestStatusChangedEvent.md | 26 +- ...ServiceRequestStatusChangedEventPayload.md | 22 +- docs/CustomerServiceRequestsGetRequest.md | 14 + docs/DateTimeComponent.md | 34 +- docs/DateTimeObject.md | 8 +- docs/DateTimeUnixEpoch.md | 6 +- docs/DetailRecord.md | 9 + docs/DetailRecordsApi.md | 18 +- docs/DetailRecordsSearchResponse.md | 8 +- docs/DialogflowConfig.md | 14 + docs/DialogflowConnection.md | 17 + docs/DialogflowConnectionResponse.md | 13 + docs/DialogflowIntegrationApi.md | 299 + docs/Direction.md | 4 +- .../DocReqsListRequirementTypes200Response.md | 14 + docs/DocReqsRequirement.md | 42 +- docs/DocReqsRequirementType.md | 32 +- ...ocReqsRequirementTypeAcceptanceCriteria.md | 8 +- ...RetrieveDocumentRequirements200Response.md | 13 + ...cReqsRetrieveRequirementType200Response.md | 13 + docs/DocServiceDocument.md | 34 +- docs/DocServiceDocumentAllOf.md | 28 +- docs/DocServiceDocumentAllOfSize.md | 8 +- docs/DocServiceDocumentLink.md | 18 +- docs/DocServiceDocumentLinkAllOf.md | 12 +- docs/DocServiceDocumentUploadInline.md | 10 +- docs/DocServiceDocumentUploadURL.md | 10 +- docs/DocServiceRecord.md | 12 +- docs/Document.md | 12 +- docs/Document1.md | 17 + docs/DocumentsApi.md | 52 +- docs/DownlinkData.md | 18 +- docs/DynamicEmergencyAddress.md | 58 +- docs/DynamicEmergencyAddressesApi.md | 24 +- docs/DynamicEmergencyEndpoint.md | 32 +- docs/DynamicEmergencyEndpointsApi.md | 24 +- docs/Email.md | 8 +- docs/EmergencySettings.md | 22 +- docs/EndSession200Response.md | 13 + docs/EndSession200ResponseData.md | 13 + docs/EnqueueRequest.md | 14 +- docs/Error.md | 10 +- docs/ErrorSource.md | 8 +- docs/Errors.md | 6 +- docs/ExternalWdrDetailRecordDto.md | 34 +- docs/ExternalWdrGetDetailResponse.md | 8 +- docs/Fax.md | 74 +- docs/FaxApplication.md | 28 +- docs/FaxApplicationResponse.md | 6 +- docs/FaxDelivered.md | 26 +- docs/FaxDeliveredPayload.md | 41 +- docs/FaxFailed.md | 26 +- docs/FaxFailedPayload.md | 45 +- docs/FaxMediaProcessed.md | 26 +- docs/FaxMediaProcessedPayload.md | 37 +- docs/FaxQueued.md | 26 +- docs/FaxQueuedPayload.md | 37 +- docs/FaxSendingStarted.md | 26 +- docs/FaxSendingStartedPayload.md | 37 +- docs/Feature.md | 6 +- docs/Filter.md | 46 +- .../FindAuthenticationProviders200Response.md | 14 + docs/FindNotificationsEvents200Response.md | 14 + ...otificationsEventsConditions200Response.md | 14 + docs/FindNotificationsProfiles200Response.md | 14 + docs/FindPortoutComments200Response.md | 14 + docs/FindPortoutRequest200Response.md | 13 + docs/Footer.md | 14 + docs/ForbiddenError.md | 14 +- docs/ForbiddenErrorAllOf.md | 12 +- docs/ForbiddenErrorAllOfMeta.md | 6 +- docs/FqdNsApi.md | 422 + docs/Fqdn.md | 20 +- docs/FqdnConnection.md | 50 +- docs/FqdnConnectionResponse.md | 6 +- docs/FqdnConnectionsApi.md | 4 +- docs/FqdnResponse.md | 6 +- docs/GCSConfiguration.md | 14 +- docs/GCSConfigurationData.md | 8 +- docs/GatherRequest.md | 21 + docs/GatherUsingAudioRequest.md | 30 +- docs/GatherUsingSpeakRequest.md | 120 +- docs/GcbChannelZone.md | 24 +- docs/GcbPhoneNumber.md | 20 +- docs/GenericError.md | 14 +- docs/GetAllFaxApplicationsResponse.md | 8 +- docs/GetAllTelephonyCredentialResponse.md | 8 +- docs/GetAllTexmlApplicationsResponse.md | 8 +- docs/GetChannelZones200Response.md | 14 + docs/GetCustomerServiceRequest404Response.md | 13 + docs/GetFaxResponse.md | 6 +- docs/GetPhoneNumbers200Response.md | 14 + ...rtRequestSupportingDocuments201Response.md | 13 + docs/GetPortingOrder200Response.md | 14 + docs/GetPortingOrder200ResponseMeta.md | 13 + docs/GetPortingOrderSubRequest200Response.md | 13 + docs/GetPrivateWirelessGateways200Response.md | 14 + docs/GetRecordingResponse.md | 6 +- docs/GetSubRequestByPortingOrder.md | 8 +- docs/GetUserBalance200Response.md | 13 + docs/GetWdrReports200Response.md | 13 + docs/GetWebhookDeliveries200Response.md | 14 + docs/GetWebhookDelivery200Response.md | 13 + docs/HangupRequest.md | 8 +- docs/Header.md | 18 + docs/HostedNumber.md | 24 +- docs/Http.md | 8 +- docs/HttpRequest.md | 15 + docs/HttpResponse.md | 16 + docs/Image.md | 10 +- docs/Image1.md | 16 + docs/ImmutableSetLong.md | 4 +- docs/InboundChannelsApi.md | 16 +- docs/InboundFqdn.md | 84 +- docs/InboundIp.md | 90 +- docs/InboundMessage.md | 26 +- docs/InboundMessageEvent.md | 6 +- docs/InboundMessagePayload.md | 66 +- docs/InboundMessagePayloadCcInner.md | 43 + docs/InboundMessagePayloadCost.md | 8 +- docs/InboundMessagePayloadFrom.md | 36 +- docs/InboundMessagePayloadMediaInner.md | 16 + docs/InboundMessagePayloadToInner.md | 44 + docs/Interactive.md | 17 + docs/InteractiveAction.md | 17 + docs/InteractiveBody.md | 13 + docs/InteractiveButton.md | 14 + docs/InteractiveButtonReply.md | 14 + docs/InteractiveButtonType.md | 11 + docs/InteractiveFooter.md | 13 + docs/InteractiveHeader.md | 17 + docs/InteractiveProduct.md | 13 + docs/InteractiveSection.md | 15 + docs/InteractiveSectionRow.md | 15 + docs/InteractiveType.md | 17 + docs/InterfaceStatus.md | 17 + docs/InventoryCoverage.md | 52 +- docs/InventoryCoverageMetadata.md | 6 +- docs/InventoryLevelApi.md | 6 +- docs/Ip.md | 18 +- docs/IpAddressesApi.md | 125 +- docs/IpConnection.md | 62 +- docs/IpConnectionResponse.md | 6 +- docs/IpConnectionsApi.md | 4 +- docs/IpItem.md | 16 + docs/IpResponse.md | 6 +- docs/JoinConferenceRequest.md | 54 +- docs/Language.md | 16 +- docs/LeaveConferenceRequest.md | 22 +- docs/LeaveQueueRequest.md | 8 +- docs/LedgerBillingGroupReport.md | 36 +- docs/ListAllowedFocWindows200Response.md | 14 + ...ListAvailablePhoneNumbersBlocksResponse.md | 8 +- docs/ListAvailablePhoneNumbersResponse.md | 8 +- docs/ListBillingGroups200Response.md | 14 + docs/ListBulkSIMCardActions200Response.md | 14 + docs/ListBusinessIdentitiesResponse.md | 8 +- docs/ListCallControlApplicationsResponse.md | 8 +- docs/ListCallEventsResponse.md | 8 +- docs/ListComments200Response.md | 14 + docs/ListConferencesResponse.md | 8 +- docs/ListConnectionsResponse.md | 8 +- docs/ListCredentialConnectionsResponse.md | 8 +- docs/ListCsvDownloadsResponse.md | 8 +- .../ListCustomerServiceRequests200Response.md | 14 + .../ListCustomerServiceRequests401Response.md | 13 + .../ListCustomerServiceRequests403Response.md | 13 + .../ListCustomerServiceRequests422Response.md | 13 + .../ListCustomerServiceRequests500Response.md | 13 + docs/ListDocumentLinks200Response.md | 14 + docs/ListDocuments200Response.md | 14 + ...istDyanmicEmergencyAddresses200Response.md | 14 + ...istDyanmicEmergencyEndpoints200Response.md | 14 + docs/ListFaxesResponse.md | 8 +- docs/ListFqdnConnectionsResponse.md | 8 +- docs/ListFqdnsResponse.md | 8 +- docs/ListIpConnectionsResponse.md | 8 +- docs/ListIpsResponse.md | 6 +- docs/ListManagedAccounts200Response.md | 14 + .../ListMessagingHostedNumberOrderResponse.md | 8 +- docs/ListMessagingProfileMetricsResponse.md | 8 +- ...istMessagingProfilePhoneNumbersResponse.md | 8 +- .../ListMessagingProfileShortCodesResponse.md | 8 +- .../ListMessagingProfileURLDomainsResponse.md | 8 +- docs/ListMessagingProfilesResponse.md | 8 +- docs/ListMessagingSettingsResponse.md | 8 +- docs/ListNotificationChannels200Response.md | 14 + docs/ListNotificationSettings200Response.md | 14 + docs/ListNumberBlockOrdersResponse.md | 8 +- docs/ListNumberOrderDocumentsResponse.md | 8 +- docs/ListNumberOrderPhoneNumbersResponse.md | 8 +- docs/ListNumberOrdersResponse.md | 8 +- docs/ListNumberReservationsResponse.md | 8 +- docs/ListOfMediaResourcesResponse.md | 8 +- docs/ListOutboundChannels200Response.md | 13 + docs/ListOutboundChannels200ResponseData.md | 14 + docs/ListOutboundVoiceProfilesResponse.md | 8 +- docs/ListParticipantsResponse.md | 8 +- ...PhoneNumberBlocksBackgroundJobsResponse.md | 8 +- .../ListPhoneNumbersBackgroundJobsResponse.md | 8 +- docs/ListPhoneNumbersResponse.md | 8 +- ...stPhoneNumbersWithVoiceSettingsResponse.md | 8 +- docs/ListPortingOrderDocuments200Response.md | 14 + ...ListPortingOrderRequirements200Response.md | 14 + docs/ListPortingOrders200Response.md | 14 + ...tPortingOrdersActivationJobs200Response.md | 14 + docs/ListPortingOrdersComments200Response.md | 14 + ...tPortingOrdersExceptionTypes200Response.md | 13 + docs/ListPortingPhoneNumbers200Response.md | 14 + docs/ListPortoutRequest200Response.md | 14 + docs/ListQueueCallsResponse.md | 8 +- docs/ListRecordingsResponse.md | 8 +- .../ListRegulartoryRequirements200Response.md | 14 + docs/ListRequirements200Response.md | 14 + docs/ListRoomCompositions200Response.md | 14 + docs/ListRoomParticipants200Response.md | 14 + docs/ListRoomRecordings200Response.md | 14 + docs/ListRoomSessions200Response.md | 14 + docs/ListRooms200Response.md | 14 + docs/ListSIMCardActions200Response.md | 14 + docs/ListShortCodesResponse.md | 8 +- ...imCardDataUsageNotifications200Response.md | 14 + docs/ListSubNumberOrdersResponse.md | 8 +- docs/ListTagsResponse.md | 8 +- docs/ListTagsResponseDataInner.md | 14 + docs/ListVerificationsResponse.md | 8 +- ...istVerifiedCallsDisplayProfilesResponse.md | 8 +- docs/ListVerifyProfilesResponse.md | 8 +- docs/ListWhatsAppBusinessAccountsResponse.md | 8 +- docs/ListWhatsAppPhoneNumbersResponse.md | 8 +- docs/Location.md | 12 +- docs/ManagedAccount.md | 36 +- docs/ManagedAccountBalance.md | 20 +- docs/ManagedAccountsApi.md | 50 +- docs/MarkCommentRead200Response.md | 13 + docs/MarkCommentRead200ResponseData.md | 40 + docs/MarkMessageAsReadRequestBody.md | 8 +- docs/MdrDeleteDetailReportResponse.md | 6 +- docs/MdrDeleteUsageReportsResponse.md | 6 +- docs/MdrDetailReportResponse.md | 62 +- docs/MdrDetailResponse.md | 70 +- docs/MdrGetDetailReportByIdResponse.md | 6 +- docs/MdrGetDetailReportResponse.md | 8 +- docs/MdrGetDetailResponse.md | 8 +- docs/MdrGetSyncUsageReportResponse.md | 6 +- docs/MdrGetUsageReportsByIdResponse.md | 6 +- docs/MdrGetUsageReportsResponse.md | 8 +- docs/MdrPostDetailReportRequest.md | 40 +- docs/MdrPostDetailReportResponse.md | 6 +- docs/MdrPostUsageReportRequest.md | 22 +- docs/MdrPostUsageReportsResponse.md | 6 +- docs/MdrUsageRecord.md | 32 +- docs/MdrUsageReportResponse.md | 50 +- docs/MediaFeatures.md | 20 +- docs/MediaResource.md | 14 +- docs/MediaResourceResponse.md | 6 +- docs/MediaStorageDetailRecord.md | 34 +- docs/Message.md | 15 +- docs/MessageDetailRecord.md | 102 +- docs/MessageResponse.md | 6 +- docs/MessageType.md | 2 - docs/MessagingFeatureSet.md | 10 +- docs/MessagingHostedNumberOrder.md | 24 +- docs/MessagingProfile.md | 46 +- docs/MessagingProfileDetailedMetric.md | 8 +- docs/MessagingProfileDetailedMetrics.md | 8 +- docs/MessagingProfileHighLevelMetrics.md | 20 +- ...MessagingProfileHighLevelMetricsInbound.md | 6 +- ...essagingProfileHighLevelMetricsOutbound.md | 10 +- docs/MessagingProfileMessageTypeMetrics.md | 14 +- docs/MessagingProfileResponse.md | 6 +- docs/MessagingUrlDomain.md | 12 +- docs/Meta.md | 12 +- docs/Metadata.md | 12 +- docs/MobileOperatorNetwork.md | 18 +- ...MobileOperatorNetworkPreferencesRequest.md | 9 +- ...obileOperatorNetworkPreferencesResponse.md | 11 +- docs/MobileOperatorNetworksApi.md | 6 +- docs/MobileOperatorNetworksGet200Response.md | 14 + docs/ModelInterface.md | 15 + docs/Money.md | 22 +- docs/Network.md | 17 + docs/Network1.md | 14 + docs/NetworkCreate.md | 17 + docs/NetworkCreate200Response.md | 13 + docs/NetworkInterface.md | 22 + docs/NetworkInterface1.md | 14 + docs/NetworkInterfaceList200Response.md | 14 + docs/NetworkList200Response.md | 14 + docs/NetworksApi.md | 461 + docs/NewBillingGroup.md | 6 +- docs/NewLedgerBillingGroupReport.md | 8 +- docs/NotificationChannel.md | 28 +- docs/NotificationEvent.md | 16 +- docs/NotificationEventCondition.md | 36 +- ...tificationEventConditionParametersInner.md | 15 + docs/NotificationProfile.md | 12 +- docs/NotificationSetting.md | 44 +- docs/NotificationSettingParametersInner.md | 14 + docs/NotificationsApi.md | 128 +- docs/NumberBackgroundJobsApi.md | 18 +- docs/NumberBlockOrder.md | 38 +- docs/NumberBlockOrderResponse.md | 6 +- docs/NumberBlocksBackgroundJobsApi.md | 6 +- docs/NumberConfigurationsApi.md | 6 +- docs/NumberHealthMetrics.md | 12 +- docs/NumberLookupRecord.md | 20 +- docs/NumberLookupResponse.md | 6 +- docs/NumberOrder.md | 38 +- docs/NumberOrderBlockEvent.md | 6 +- docs/NumberOrderDocument.md | 28 +- docs/NumberOrderDocumentResponse.md | 6 +- docs/NumberOrderPhoneNumber.md | 50 +- docs/NumberOrderPhoneNumberResponse.md | 6 +- docs/NumberOrderResponse.md | 6 +- docs/NumberOrderWithPhoneNumbers.md | 40 +- docs/NumberOrderWithPhoneNumbersAllOf.md | 6 +- docs/NumberOrdered.md | 20 +- docs/NumberOrderedEvent.md | 6 +- docs/NumberOrdersApi.md | 30 +- docs/NumberPoolSettings.md | 14 +- docs/NumberPortoutApi.md | 54 +- docs/NumberReservation.md | 28 +- docs/NumberReservationResponse.md | 6 +- docs/OTAUpdateGET200Response.md | 13 + docs/OTAUpdatesList200Response.md | 14 + docs/Organization.md | 10 +- docs/OtaUpdatesApi.md | 12 +- docs/OutboundCallRecording.md | 38 +- docs/OutboundIp.md | 62 +- docs/OutboundMessage.md | 28 +- docs/OutboundMessageEvent.md | 8 +- docs/OutboundMessageEventMeta.md | 8 +- docs/OutboundMessagePayload.md | 68 +- docs/OutboundMessagePayloadFrom.md | 26 +- docs/OutboundMessagePayloadMediaInner.md | 16 + docs/OutboundMessagePayloadToInner.md | 44 + docs/OutboundVoiceProfile.md | 40 +- docs/OutboundVoiceProfileResponse.md | 6 +- docs/PWGAssignedResourcesSummary.md | 15 + docs/PaginationMeta.md | 12 +- docs/PaginationMetaSimple.md | 12 +- docs/Participant.md | 46 +- docs/ParticipantConference.md | 8 +- docs/ParticipantJoined.md | 26 +- docs/ParticipantJoinedEvent.md | 6 +- docs/ParticipantJoinedPayload.md | 12 +- docs/ParticipantLeft.md | 26 +- docs/ParticipantLeftEvent.md | 6 +- docs/ParticipantLeftPayload.md | 16 +- docs/PatchGroupRequest.md | 13 + docs/PatchRoomRequest.md | 16 +- docs/PauseRecordingRequest.md | 8 +- docs/Phone.md | 10 +- docs/PhoneNumber.md | 56 +- docs/PhoneNumberBlocksJob.md | 33 +- ...neNumberBlocksJobDeletePhoneNumberBlock.md | 6 +- ...rBlocksJobDeletePhoneNumberBlockRequest.md | 6 +- docs/PhoneNumberBlocksJobFailedOperation.md | 10 +- ...PhoneNumberBlocksJobSuccessfulOperation.md | 8 +- docs/PhoneNumberDeletedDetailed.md | 98 +- docs/PhoneNumberDetailed.md | 96 +- docs/PhoneNumberEnableEmergency.md | 6 +- docs/PhoneNumberEnableEmergencyRequest.md | 8 +- docs/PhoneNumberPortingApi.md | 10 +- docs/PhoneNumberRegulatoryRequirement.md | 24 +- docs/PhoneNumberRegulatoryRequirementAllOf.md | 6 +- docs/PhoneNumberResponse.md | 6 +- docs/PhoneNumberResponse1.md | 6 +- docs/PhoneNumberWithMessagingSettings.md | 54 +- ...honeNumberWithMessagingSettingsFeatures.md | 8 +- docs/PhoneNumberWithVoiceSettings.md | 38 +- docs/PhoneNumbersBulkUpdateError.md | 8 +- docs/PhoneNumbersEnableEmergency.md | 6 +- docs/PhoneNumbersJob.md | 38 +- docs/PhoneNumbersJobDeletePhoneNumbers.md | 6 +- ...honeNumbersJobDeletePhoneNumbersRequest.md | 6 +- docs/PhoneNumbersJobFailedOperation.md | 10 +- docs/PhoneNumbersJobPendingOperation.md | 8 +- docs/PhoneNumbersJobPhoneNumber.md | 8 +- docs/PhoneNumbersJobSuccessfulOperation.md | 8 +- ...umbersJobUpdateEmergencySettingsRequest.md | 10 +- docs/PhoneNumbersJobUpdatePhoneNumbers.md | 6 +- ...honeNumbersJobUpdatePhoneNumbersRequest.md | 16 +- docs/PlayAudioUrlRequest.md | 23 +- docs/PlaybackStopRequest.md | 12 +- docs/PortOutSupportingDocument.md | 26 +- docs/Portability.md | 40 +- docs/PortabilityCheckDetails.md | 14 +- docs/PortingOrder.md | 58 +- docs/PortingOrderActivationSettings.md | 12 +- docs/PortingOrderApi.md | 184 +- docs/PortingOrderDocument.md | 24 +- docs/PortingOrderDocuments.md | 8 +- docs/PortingOrderEndUser.md | 8 +- docs/PortingOrderEndUserAdmin.md | 18 +- docs/PortingOrderEndUserLocation.md | 16 +- docs/PortingOrderMisc.md | 18 +- docs/PortingOrderPhoneNumberConfiguration.md | 12 +- docs/PortingOrderRequirement.md | 18 +- docs/PortingOrderRequirementDetail.md | 26 + ...ngOrderRequirementDetailRequirementType.md | 19 + docs/PortingOrderStatus.md | 28 +- docs/PortingOrderUserFeedback.md | 8 +- docs/PortingOrdersActivationJob.md | 26 +- docs/PortingOrdersAllowedFocWindow.md | 10 +- docs/PortingOrdersComment.md | 26 +- docs/PortingOrdersExceptionType.md | 56 +- docs/PortingPhoneNumber.md | 70 +- docs/PortoutComment.md | 16 +- docs/PortoutDetails.md | 55 +- docs/PostPortRequestComment201Response.md | 13 + docs/PostPortRequestCommentRequest.md | 13 + ...stPortRequestSupportingDocumentsRequest.md | 13 + ...upportingDocumentsRequestDocumentsInner.md | 23 + docs/PostPortabilityCheck201Response.md | 13 + docs/PostPortabilityCheckRequest.md | 13 + docs/PostValidateRegistrationCodesRequest.md | 14 + docs/PrivateWirelessGateway.md | 23 +- docs/PrivateWirelessGatewayRequest.md | 8 +- docs/PrivateWirelessGatewayStatus.md | 22 +- docs/PrivateWirelessGatewaysApi.md | 28 +- docs/ProgrammableFaxApplicationsApi.md | 8 +- docs/ProgrammableFaxCommandsApi.md | 90 +- docs/PublicInternetGateway.md | 20 + docs/PublicInternetGateway1.md | 14 + docs/PublicInternetGatewayCreate.md | 21 + .../PublicInternetGatewayCreate202Response.md | 13 + docs/PublicInternetGatewayList200Response.md | 14 + docs/PublicInternetGatewayRead.md | 22 + docs/PublicInternetGatewaysApi.md | 303 + docs/PushCredential.md | 21 +- docs/PushCredentialsApi.md | 117 +- docs/Queue.md | 26 +- docs/QueueCall.md | 32 +- docs/QueueCallResponse.md | 6 +- docs/QueueCommandsApi.md | 6 +- docs/QueueResponse.md | 6 +- docs/ReadComment.md | 40 +- docs/ReadCommentAllOf.md | 6 +- docs/Record.md | 16 + docs/Recording.md | 60 +- docs/RecordingCompleted.md | 26 +- docs/RecordingCompletedEvent.md | 6 +- docs/RecordingCompletedPayload.md | 30 +- docs/RecordingDownloadUrls.md | 8 +- docs/RecordingStarted.md | 26 +- docs/RecordingStartedEvent.md | 6 +- docs/RecordingStartedPayload.md | 22 +- docs/RecordingsCommandsApi.md | 6 +- docs/ReferRequest.md | 16 +- docs/RefreshFaxResponse.md | 6 +- docs/RefreshRoomClientToken201Response.md | 13 + docs/RefreshRoomClientToken201ResponseData.md | 14 + docs/RefreshRoomClientTokenRequest.md | 8 +- docs/Region.md | 18 + docs/RegionIn.md | 13 + docs/RegionInformation.md | 20 +- docs/RegionList200Response.md | 13 + docs/RegionOut.md | 14 + docs/RegionOutRegion.md | 15 + docs/RegionsApi.md | 76 + docs/RegisterCallCommandResult.md | 6 +- docs/RegisterCallRequest.md | 10 +- docs/RegisterCallResponse.md | 6 +- docs/RegulatoryRequirements.md | 14 +- ...atoryRequirementsRegionInformationInner.md | 14 + ...RequirementsRegulatoryRequirementsInner.md | 19 + ...toryRequirementsInnerAcceptanceCriteria.md | 15 + docs/RejectRequest.md | 18 +- docs/ReplacedLinkClick.md | 14 +- docs/ReplacedLinkClickEvent.md | 6 +- docs/Reply.md | 15 + docs/ReportingApi.md | 24 +- docs/ReportsApi.md | 12 +- docs/RequirementTypesApi.md | 12 +- docs/RequirementsApi.md | 12 +- docs/ReservedPhoneNumber.md | 28 +- docs/ResourceNotFoundError.md | 14 +- docs/ResourceNotFoundErrorAllOf.md | 12 +- docs/ResourceNotFoundErrorAllOfMeta.md | 6 +- docs/ResumeRecordingRequest.md | 8 +- docs/RetrieveCallStatusResponse.md | 6 +- ...rieveMessagingHostedNumberOrderResponse.md | 6 +- docs/RetrieveMessagingHostedNumberResponse.md | 6 +- ...RetrieveMessagingProfileMetricsResponse.md | 6 +- docs/RetrieveMessagingSettingsResponse.md | 6 +- docs/RetrievePhoneNumberVoiceResponse.md | 6 +- docs/RetrieveVerificationResponse.md | 6 +- docs/Room.md | 28 +- docs/RoomComposition.md | 58 +- docs/RoomCompositionsApi.md | 20 +- docs/RoomParticipant.md | 18 +- docs/RoomParticipantsApi.md | 14 +- docs/RoomRecording.md | 52 +- docs/RoomRecordingsApi.md | 16 +- docs/RoomSession.md | 20 +- docs/RoomSessionsApi.md | 113 +- docs/RoomsApi.md | 36 +- docs/RoomsClientTokensApi.md | 12 +- docs/SIMCard.md | 51 +- docs/SIMCardAction.md | 32 +- docs/SIMCardActionStatus.md | 20 +- docs/SIMCardActionsSummary.md | 25 + ...SIMCardCurrentBillingPeriodConsumedData.md | 8 +- docs/SIMCardCurrentDeviceLocation.md | 12 +- docs/SIMCardDataLimit.md | 16 +- docs/SIMCardDeviceDetails.md | 18 + docs/SIMCardDeviceDetailsGet200Response.md | 13 + docs/SIMCardGroup.md | 22 +- docs/SIMCardGroupAction.md | 38 +- docs/SIMCardGroupActionSettings.md | 6 +- docs/SIMCardGroupCreate.md | 8 +- docs/SIMCardGroupDataLimit.md | 8 +- docs/SIMCardGroupPatch.md | 8 +- docs/SIMCardNetworkPreference.md | 14 +- .../SIMCardNetworkPreferenceWithOTAUpdates.md | 16 +- ...SIMCardNetworkPreferencesGet200Response.md | 13 + docs/SIMCardNetworkPreferencesPutRequest.md | 13 + docs/SIMCardOrder.md | 38 +- docs/SIMCardOrderCost.md | 8 +- docs/SIMCardOrderOrderAddress.md | 18 +- docs/SIMCardOrderPreview.md | 14 +- docs/SIMCardOrderPreviewTotalCost.md | 8 +- docs/SIMCardPublicIP.md | 22 +- docs/SIMCardPublicIPGet200Response.md | 13 + docs/SIMCardRegistration.md | 22 +- docs/SIMCardRegistrationCodeValidation.md | 12 +- docs/SIMCardRegistrationCodeValidations.md | 6 +- docs/SIMCardStatus.md | 28 +- docs/SearchedSIMCardGroup.md | 22 + docs/SendDTMFRequest.md | 12 +- docs/SendFaxRequest.md | 22 +- docs/SendFaxResponse.md | 6 +- docs/SessionEnded.md | 26 +- docs/SessionEndedEvent.md | 6 +- docs/SessionEndedPayload.md | 12 +- docs/SessionStarted.md | 26 +- docs/SessionStartedEvent.md | 6 +- docs/SessionStartedPayload.md | 8 +- ...MCardGroupPrivateWirelessGatewayRequest.md | 13 + docs/Settings.md | 24 +- docs/ShortCode.md | 24 +- docs/ShortCodeResponse.md | 6 +- docs/ShowBusinessIdentityResponse.md | 6 +- ...ShowVerifiedCallsDisplayProfileResponse.md | 6 +- docs/SimCardActionGet200Response.md | 13 + docs/SimCardActionsApi.md | 163 +- docs/SimCardDataUsageNotification.md | 16 +- ...rdDataUsageNotificationsPost201Response.md | 13 + ...imCardDataUsageNotificationsPostRequest.md | 14 + ...aUsageNotificationsPostRequestThreshold.md | 24 + docs/SimCardGet200Response.md | 13 + docs/SimCardGroupActionGet200Response.md | 13 + docs/SimCardGroupActionsApi.md | 12 +- docs/SimCardGroupActionsGet200Response.md | 14 + docs/SimCardGroupsApi.md | 48 +- docs/SimCardGroupsGetAll200Response.md | 14 + docs/SimCardGroupsPost200Response.md | 13 + docs/SimCardOrderCreate.md | 8 +- docs/SimCardOrdersApi.md | 28 +- docs/SimCardOrdersGet200Response.md | 14 + docs/SimCardOrdersPost200Response.md | 13 + docs/SimCardOrdersPreview202Response.md | 13 + docs/SimCardOrdersPreviewRequest.md | 14 + docs/SimCardRegister202Response.md | 14 + docs/SimCardUsageDetailRecord.md | 42 +- docs/SimCardsApi.md | 450 +- docs/SimCardsGet200Response.md | 14 + docs/SimpleSIMCard.md | 28 +- docs/SimpleSIMCardDataLimit.md | 16 +- docs/SimplifiedOTAUpdate.md | 34 +- docs/SipHeader.md | 14 +- docs/SoundModifications.md | 12 +- docs/SpeakRequest.md | 106 +- docs/StartForkingRequest.md | 24 +- docs/StartRecordingRequest.md | 33 +- docs/StartStreamingRequest.md | 24 +- docs/StopForkingRequest.md | 18 +- docs/StopGatherRequest.md | 8 +- docs/StopRecordingRequest.md | 8 +- docs/StopStreamingRequest.md | 8 +- docs/SubNumberOrder.md | 42 +- docs/SubNumberOrderRegulatoryRequirement.md | 22 +- docs/SubNumberOrderResponse.md | 6 +- ...ulResponseUponAcceptingCancelFaxCommand.md | 13 + ...eWithDetailsAboutTheWhatsAppMessageSent.md | 13 + docs/TeXmlApplicationsApi.md | 8 +- docs/TeXmlRESTCommandResponse.md | 13 + docs/TeXmlRestCommandsApi.md | 83 + docs/TelephonyCredential.md | 24 +- docs/TelephonyCredentialCreateRequest.md | 12 +- docs/TelephonyCredentialResponse.md | 6 +- docs/TelephonyCredentialUpdateRequest.md | 12 +- docs/Template.md | 12 +- docs/TemplateButtonComponent.md | 16 + docs/TemplateButtonParameter.md | 15 + docs/TemplateComponent.md | 14 + docs/TemplateComponentType.md | 13 + docs/TemplateComponents.md | 39 + docs/TemplateParameters.md | 33 + docs/TexmlApplication.md | 54 +- docs/TexmlApplicationResponse.md | 6 +- docs/Text.md | 6 +- docs/Transcription.md | 26 +- docs/TranscriptionEvent.md | 6 +- docs/TranscriptionPayload.md | 16 +- docs/TranscriptionPayloadTranscriptionData.md | 10 +- docs/TranscriptionStartRequest.md | 29 +- docs/TranscriptionStopRequest.md | 8 +- docs/TransferCallRequest.md | 63 +- docs/UnauthorizedError.md | 14 +- docs/UnauthorizedErrorAllOf.md | 12 +- docs/UnauthorizedErrorAllOfMeta.md | 6 +- docs/UnexpectedError.md | 14 +- docs/UnexpectedErrorAllOf.md | 12 +- docs/UnexpectedErrorAllOfMeta.md | 6 +- docs/UnprocessableEntityError.md | 14 +- docs/UnprocessableEntityErrorAllOf.md | 14 +- docs/UnprocessableEntityErrorAllOfMeta.md | 6 +- docs/UnprocessableEntityErrorAllOfSource.md | 6 +- docs/UpdateAuthenticationProviderRequest.md | 14 +- docs/UpdateBillingGroup.md | 6 +- docs/UpdateCallControlApplicationRequest.md | 58 +- docs/UpdateCallRequest.md | 47 + docs/UpdateCommandResult.md | 14 + docs/UpdateConferenceRequest.md | 24 +- docs/UpdateCredentialConnectionRequest.md | 58 +- docs/UpdateFaxApplicationRequest.md | 22 +- docs/UpdateFqdnConnectionRequest.md | 42 +- docs/UpdateFqdnRequest.md | 12 +- docs/UpdateIpConnectionRequest.md | 54 +- docs/UpdateIpRequest.md | 10 +- docs/UpdateManagedAccountRequest.md | 6 +- docs/UpdateMediaRequest.md | 8 +- docs/UpdateMessagingProfileRequest.md | 46 +- docs/UpdateNumberOrderDocumentRequest.md | 28 +- docs/UpdateNumberOrderPhoneNumberRequest.md | 6 +- docs/UpdateNumberOrderRequest.md | 32 +- docs/UpdateOutboundChannels200Response.md | 13 + docs/UpdateOutboundChannels200ResponseData.md | 14 + docs/UpdateOutboundChannelsDefaultResponse.md | 13 + ...boundChannelsDefaultResponseErrorsInner.md | 17 + ...hannelsDefaultResponseErrorsInnerSource.md | 14 + docs/UpdateOutboundChannelsRequest.md | 13 + docs/UpdateOutboundVoiceProfileRequest.md | 30 +- ...datePhoneNumberMessagingSettingsRequest.md | 8 +- docs/UpdatePhoneNumberRequest.md | 26 +- docs/UpdatePhoneNumberVoiceSettingsRequest.md | 26 +- docs/UpdatePortingOrder.md | 22 +- docs/UpdatePortingOrder200Response.md | 14 + docs/UpdatePortingOrder200ResponseMeta.md | 13 + docs/UpdatePortingOrderActivationSettings.md | 6 +- docs/UpdatePortingOrderRequirement.md | 8 +- docs/UpdatePortoutRequestRequest.md | 13 + docs/UpdateRegulatoryRequirement.md | 8 +- docs/UpdateShortCodeRequest.md | 6 +- docs/UpdateSubNumberOrderRequest.md | 6 +- docs/UpdateTexmlApplicationRequest.md | 46 +- ...pdateVerifiedCallsDisplayProfileRequest.md | 8 +- docs/UpdateVerifyProfileCallRequest.md | 10 +- docs/UpdateVerifyProfileFlashcallRequest.md | 6 +- docs/UpdateVerifyProfilePSD2Request.md | 6 +- docs/UpdateVerifyProfileRequest.md | 22 +- docs/UpdateVerifyProfileSMSRequest.md | 14 +- docs/UpdateVerifyProfileWhatsappRequest.md | 8 +- docs/UpdateWhatsappPhoneNumberAboutRequest.md | 6 +- docs/UpdateWhatsappPhoneNumberRequest.md | 6 +- docs/UplinkData.md | 18 +- docs/UploadMedia.md | 6 +- docs/UploadMediaRequest.md | 10 +- .../UploadPortingOrderDocuments201Response.md | 13 + docs/UploadPortingOrderDocumentsRequest.md | 13 + ...tingOrderDocumentsRequestDocumentsInner.md | 24 + docs/Url.md | 8 +- docs/UrlShortenerSettings.md | 12 +- docs/UserBalance.md | 20 +- docs/Verification.md | 24 +- docs/VerifiedCallsDisplayProfile.md | 40 +- ...fiedCallsDisplayProfileBusinessIdentity.md | 8 +- ...fiedCallsDisplayProfileCallReasonsInner.md | 32 + ...iedCallsDisplayProfilePhoneNumbersInner.md | 32 + docs/VerifyDetailRecord.md | 46 +- docs/VerifyPhoneNumberCoverage201Response.md | 13 + docs/VerifyPhoneNumberCoverageRequest.md | 13 + docs/VerifyProfileCallResponse.md | 10 +- docs/VerifyProfileFlashcallResponse.md | 6 +- docs/VerifyProfilePSD2Response.md | 6 +- docs/VerifyProfileResponse.md | 30 +- docs/VerifyProfileResponseDataWrapper.md | 6 +- docs/VerifyProfileSMSResponse.md | 14 +- docs/VerifyProfileWhatsappResponse.md | 8 +- docs/VerifyVerificationCodeRequest.md | 8 +- docs/VerifyVerificationCodeResponse.md | 6 +- docs/VerifyVerificationCodeResponseData.md | 16 +- docs/Video.md | 10 +- docs/Video1.md | 16 + docs/VideoRegion.md | 20 +- docs/ViewRoomParticipant200Response.md | 13 + docs/ViewRoomRecording200Response.md | 13 + docs/ViewRoomSession200Response.md | 13 + docs/VirtaulCrossConnectList200Response.md | 14 + ...irtaulCrossConnectRegionList200Response.md | 14 + docs/VirtualCrossConnect.md | 43 + docs/VirtualCrossConnect1.md | 37 + docs/VirtualCrossConnectCombined.md | 47 + docs/VirtualCrossConnectCreate.md | 44 + docs/VirtualCrossConnectCreate200Response.md | 13 + docs/VirtualCrossConnectPatch.md | 18 + docs/VirtualCrossConnectPatch1.md | 18 + docs/VirtualCrossConnectRegion.md | 30 + docs/VirtualCrossConnectRegion1.md | 27 + ...VirtualCrossConnectRegionGet200Response.md | 13 + docs/VirtualCrossConnectsApi.md | 603 + docs/WdrDetailReportsApi.md | 101 + docs/WdrReport.md | 32 +- docs/WdrReportRequest.md | 8 +- docs/WebhookDelivery.md | 28 +- docs/WebhookDeliveryWebhook.md | 26 +- docs/WebhooksApi.md | 14 +- docs/WhatsAppBusinessAccountApi.md | 6 +- docs/WhatsAppContactAddress.md | 18 +- docs/WhatsAppConversationDetailRecord.md | 30 + docs/WhatsAppDetailRecord.md | 79 +- docs/WhatsAppDetailRecordReport.md | 30 +- docs/WhatsAppDetailReportResponse.md | 6 +- docs/WhatsAppGetAllDetailReportResponse.md | 8 +- docs/WhatsAppMessageTemplate.md | 131 + docs/WhatsAppMessageTemplate1.md | 14 + docs/WhatsAppMessageTemplateApi.md | 254 + docs/WhatsAppMessagesApi.md | 6 +- docs/WhatsAppPhoneNumberApi.md | 24 +- docs/WhatsAppReportsReq.md | 8 +- docs/WhatsAppUsageAggregation.md | 22 +- ...tsAppUsageAggregationsResponseContainer.md | 6 +- docs/WhatsAppUser.md | 16 +- docs/WhatsappBusinessAccount.md | 26 +- ...WhatsappBusinessAccountWhatsappSettings.md | 40 +- .../WhatsappMessageTemplateComponentsInner.md | 15 + docs/WhatsappMessageTemplateQualityScore.md | 25 + docs/WhatsappPhoneNumber.md | 37 +- docs/WhatsappPhoneNumberWhatsappSettings.md | 29 + docs/WhatsappProfilePhoto.md | 12 +- docs/WireGuardInterfacesApi.md | 905 + docs/WireguardAllowedIP.md | 14 + docs/WireguardInterface.md | 21 + docs/WireguardInterface1.md | 15 + docs/WireguardInterfaceCreate.md | 22 + docs/WireguardInterfaceCreate202Response.md | 13 + docs/WireguardInterfaceList200Response.md | 14 + docs/WireguardInterfaceRead.md | 23 + docs/WireguardPeer.md | 20 + docs/WireguardPeer1.md | 16 + docs/WireguardPeerAllowedIP.md | 17 + docs/WireguardPeerAllowedIPCreate.md | 17 + docs/WireguardPeerAllowedIPGet200Response.md | 13 + docs/WireguardPeerAllowedIPList200Response.md | 14 + docs/WireguardPeerCreate.md | 20 + docs/WireguardPeerCreate202Response.md | 13 + docs/WireguardPeerList200Response.md | 14 + docs/WireguardPeerPatch.md | 13 + docs/WirelessConnectivityLog.md | 46 +- .../WirelessConnectivityLogsGet200Response.md | 14 + docs/WirelessCost.md | 22 +- docs/WirelessRate.md | 22 +- gradle.properties | 8 +- gradlew.bat | 27 +- openapi-configuration/spec3.json | 8260 +++++-- pom.xml | 10 +- src/main/java/com/telnyx/sdk/JSON.java | 4 +- src/main/java/com/telnyx/sdk/Pair.java | 4 - .../com/telnyx/sdk/RFC3339DateFormat.java | 4 +- .../com/telnyx/sdk/ServerConfiguration.java | 2 +- .../sdk/api/AuthenticationProvidersApi.java | 54 +- .../java/com/telnyx/sdk/api/BillingApi.java | 12 +- .../com/telnyx/sdk/api/BillingGroupsApi.java | 57 +- .../com/telnyx/sdk/api/CallCommandsApi.java | 240 +- .../sdk/api/CallControlApplicationsApi.java | 32 +- .../com/telnyx/sdk/api/CallRecordingsApi.java | 16 +- .../com/telnyx/sdk/api/ChannelZonesApi.java | 44 +- .../telnyx/sdk/api/ConferenceCommandsApi.java | 112 +- .../com/telnyx/sdk/api/ConnectionsApi.java | 18 +- .../sdk/api/CredentialConnectionsApi.java | 2 +- .../sdk/api/CustomerServiceRequestApi.java | 215 +- .../com/telnyx/sdk/api/DetailRecordsApi.java | 20 +- .../sdk/api/DialogflowIntegrationApi.java | 341 + .../java/com/telnyx/sdk/api/DocumentsApi.java | 82 +- .../sdk/api/DynamicEmergencyAddressesApi.java | 44 +- .../sdk/api/DynamicEmergencyEndpointsApi.java | 44 +- .../telnyx/sdk/api/FqdnConnectionsApi.java | 2 +- .../sdk/api/{FqdNsApi.java => FqdnsApi.java} | 423 + .../telnyx/sdk/api/InboundChannelsApi.java | 41 +- .../com/telnyx/sdk/api/InventoryLevelApi.java | 12 +- .../com/telnyx/sdk/api/IpAddressesApi.java | 148 +- .../com/telnyx/sdk/api/IpConnectionsApi.java | 2 +- .../sdk/api/{IPsApi.java => IpsApi.java} | 0 .../telnyx/sdk/api/ManagedAccountsApi.java | 95 +- .../telnyx/sdk/api/MobileApplicationsApi.java | 6 +- .../sdk/api/MobileOperatorNetworksApi.java | 12 +- .../java/com/telnyx/sdk/api/NetworksApi.java | 498 + .../com/telnyx/sdk/api/NotificationsApi.java | 218 +- .../sdk/api/NumberBackgroundJobsApi.java | 40 +- .../api/NumberBlocksBackgroundJobsApi.java | 14 +- .../sdk/api/NumberConfigurationsApi.java | 13 +- .../com/telnyx/sdk/api/NumberOrdersApi.java | 58 +- .../com/telnyx/sdk/api/NumberPortoutApi.java | 129 +- .../com/telnyx/sdk/api/OtaUpdatesApi.java | 24 +- .../telnyx/sdk/api/PhoneNumberPortingApi.java | 28 +- .../com/telnyx/sdk/api/PortingOrderApi.java | 294 +- .../sdk/api/PrivateWirelessGatewaysApi.java | 62 +- .../api/ProgrammableFaxApplicationsApi.java | 12 +- .../sdk/api/ProgrammableFaxCommandsApi.java | 83 +- .../sdk/api/PublicInternetGatewaysApi.java | 334 + .../telnyx/sdk/api/PushCredentialsApi.java | 199 +- .../com/telnyx/sdk/api/QueueCommandsApi.java | 12 +- .../telnyx/sdk/api/RecordingsCommandsApi.java | 12 +- .../java/com/telnyx/sdk/api/RegionsApi.java | 111 + .../java/com/telnyx/sdk/api/ReportingApi.java | 46 +- .../java/com/telnyx/sdk/api/ReportsApi.java | 23 +- .../telnyx/sdk/api/RequirementTypesApi.java | 24 +- .../com/telnyx/sdk/api/RequirementsApi.java | 24 +- .../telnyx/sdk/api/RoomCompositionsApi.java | 35 +- .../telnyx/sdk/api/RoomParticipantsApi.java | 24 +- .../com/telnyx/sdk/api/RoomRecordingsApi.java | 24 +- .../com/telnyx/sdk/api/RoomSessionsApi.java | 136 +- .../java/com/telnyx/sdk/api/RoomsApi.java | 62 +- .../telnyx/sdk/api/RoomsClientTokensApi.java | 24 +- .../com/telnyx/sdk/api/SimCardActionsApi.java | 172 +- .../sdk/api/SimCardGroupActionsApi.java | 24 +- .../com/telnyx/sdk/api/SimCardGroupsApi.java | 100 +- .../com/telnyx/sdk/api/SimCardOrdersApi.java | 57 +- .../java/com/telnyx/sdk/api/SimCardsApi.java | 579 +- .../telnyx/sdk/api/TeXmlApplicationsApi.java | 12 +- .../telnyx/sdk/api/TeXmlRestCommandsApi.java | 158 + .../sdk/api/VirtualCrossConnectsApi.java | 630 + .../telnyx/sdk/api/WdrDetailReportsApi.java | 144 + .../java/com/telnyx/sdk/api/WebhooksApi.java | 29 +- .../sdk/api/WhatsAppBusinessAccountApi.java | 13 +- .../sdk/api/WhatsAppMessageTemplateApi.java | 401 + .../telnyx/sdk/api/WhatsAppMessagesApi.java | 12 +- .../sdk/api/WhatsAppPhoneNumberApi.java | 52 +- .../sdk/api/WireGuardInterfacesApi.java | 941 + .../java/com/telnyx/sdk/model/Action.java | 262 + .../sdk/model/ActionsParticipantsRequest.java | 48 +- .../ActivatePortingOrder202Response.java | 113 + .../sdk/model/AssignPhoneNumberRequest.java | 112 + src/main/java/com/telnyx/sdk/model/Body.java | 114 + .../telnyx/sdk/model/BulkSIMCardAction.java | 265 + .../sdk/model/BulkSIMCardActionDetailed.java | 307 + ...kSIMCardNetworkPreferences202Response.java | 164 + .../BulkSIMCardNetworkPreferencesRequest.java | 164 + .../model/BulkSetPublicIPs202Response.java | 113 + .../sdk/model/BulkSetPublicIPsRequest.java | 120 + .../BulkSimCardActionGet200Response.java | 113 + .../telnyx/sdk/model/BusinessIdentity.java | 28 +- .../sdk/model/BusinessIdentityAddress.java | 10 + .../model/BusinessIdentityContactsInner.java | 296 + .../java/com/telnyx/sdk/model/Button.java | 184 + .../telnyx/sdk/model/ButtonComponentType.java | 61 + .../com/telnyx/sdk/model/ButtonParameter.java | 207 + .../telnyx/sdk/model/ButtonParameterType.java | 63 + .../com/telnyx/sdk/model/ButtonSubtype.java | 63 + .../model/CallControlApplicationInbound.java | 2 +- .../com/telnyx/sdk/model/CallCostPayload.java | 12 +- .../model/CallCostPayloadCostPartsInner.java | 244 + .../sdk/model/CallForkStartedPayload.java | 137 +- .../sdk/model/CallGatherEndedPayload.java | 4 +- .../sdk/model/CallPlaybackEndedPayload.java | 4 +- .../com/telnyx/sdk/model/CallRequest.java | 350 +- .../telnyx/sdk/model/CallStreamingFailed.java | 309 + .../sdk/model/CallStreamingFailedEvent.java | 113 + .../sdk/model/CallStreamingFailedPayload.java | 405 + ...allStreamingFailedPayloadStreamParams.java | 182 + .../model/CancelPortingOrder200Response.java | 146 + .../com/telnyx/sdk/model/CheckContact.java | 11 +- .../java/com/telnyx/sdk/model/Comment.java | 18 + .../telnyx/sdk/model/CompleteOTAUpdate.java | 14 + .../model/ConfirmPortingOrder200Response.java | 146 + .../java/com/telnyx/sdk/model/Connection.java | 2 +- .../java/com/telnyx/sdk/model/Contact.java | 11 +- .../CreateAndroidPushCredentialRequest.java | 71 +- ...eateAuthenticationProvider200Response.java | 113 + .../model/CreateBillingGroup200Response.java | 113 + .../sdk/model/CreateComment200Response.java | 113 + .../model/CreateComment200ResponseData.java | 400 + ...eateCustomerServiceRequest201Response.java | 113 + .../CreateCustomerServiceRequestRequest.java | 144 + .../sdk/model/CreateDocument200Response.java | 113 + ...ateDyanmicEmergencyAddress201Response.java | 113 + ...teDyanmicEmergencyEndpoint201Response.java | 113 + .../CreateFaxApplicationRequestInbound.java | 2 +- ...teInventoryCoverageRequest200Response.java | 156 + .../model/CreateIosPushCredentialRequest.java | 73 +- ...teLedgerBillingGroupReport200Response.java | 113 + .../CreateManagedAccount200Response.java | 113 + .../CreateManagedAccount422Response.java | 123 + ...CreateNotificationChannels200Response.java | 113 + .../CreateNotificationProfile200Response.java | 113 + .../CreateNotificationSetting200Response.java | 113 + .../model/CreateNumberBlockOrderRequest.java | 22 + .../CreateNumberOrderDocumentRequest.java | 14 + .../sdk/model/CreateNumberOrderRequest.java | 20 + .../model/CreateNumberReservationRequest.java | 16 + ...CreateOrUpdateBusinessIdentityRequest.java | 60 +- .../model/CreatePortingOrder201Response.java | 123 + .../CreatePortingOrderComment201Response.java | 113 + ...eatePrivateWirelessGateway202Response.java | 113 + .../CreatePrivateWirelessGatewayRequest.java | 145 + .../model/CreatePushCredentialRequest.java | 252 + .../sdk/model/CreateRoom201Response.java | 113 + .../CreateRoomClientToken201Response.java | 113 + .../CreateRoomClientToken201ResponseData.java | 208 + .../CreateRoomComposition202Response.java | 113 + .../model/CreateTexmlApplicationRequest.java | 4 +- .../CreateTexmlApplicationRequestInbound.java | 2 +- ...ateVerifiedCallsDisplayProfileRequest.java | 36 +- .../sdk/model/CreateWdrReport201Response.java | 113 + .../model/CreateWhatsAppMessageRequest.java | 78 +- ...ateWhatsappMessageTemplateRequestBody.java | 434 + .../sdk/model/CredentialConnection.java | 2 +- .../telnyx/sdk/model/CredentialsResponse.java | 13 +- .../com/telnyx/sdk/model/CsvDownload.java | 10 + .../java/com/telnyx/sdk/model/Currency.java | 3 +- .../telnyx/sdk/model/CursorPagination.java | 177 + .../sdk/model/CursorPaginationCursors.java | 144 + .../CustomerFacingFQDNsGetIPResponse.java | 156 + .../CustomerFacingFQDNsListResponse.java | 156 + .../sdk/model/CustomerFacingFQDNsPatch.java | 112 + .../sdk/model/CustomerFacingFQDNsPost.java | 144 + .../CustomerFacingFQDNsResponseSchema.java | 241 + .../sdk/model/CustomerServiceRequest.java | 14 + .../CustomerServiceRequestsGetRequest.java | 146 + .../com/telnyx/sdk/model/DetailRecord.java | 60 +- .../telnyx/sdk/model/DialogflowConfig.java | 144 + .../sdk/model/DialogflowConnection.java | 240 + .../model/DialogflowConnectionResponse.java | 113 + .../java/com/telnyx/sdk/model/Direction.java | 7 +- ...ocReqsListRequirementTypes200Response.java | 156 + .../telnyx/sdk/model/DocReqsRequirement.java | 16 + .../sdk/model/DocReqsRequirementType.java | 16 + ...trieveDocumentRequirements200Response.java | 113 + ...eqsRetrieveRequirementType200Response.java | 113 + .../telnyx/sdk/model/DocServiceDocument.java | 20 + .../sdk/model/DocServiceDocumentAllOf.java | 14 + .../model/DocServiceDocumentAllOfSize.java | 10 + .../sdk/model/DocServiceDocumentLink.java | 20 + .../model/DocServiceDocumentLinkAllOf.java | 14 + .../model/DocServiceDocumentUploadInline.java | 20 +- .../telnyx/sdk/model/DocServiceRecord.java | 14 + .../java/com/telnyx/sdk/model/Document1.java | 210 + .../sdk/model/DynamicEmergencyAddress.java | 18 + .../sdk/model/DynamicEmergencyEndpoint.java | 18 + .../sdk/model/EndSession200Response.java | 113 + .../sdk/model/EndSession200ResponseData.java | 112 + .../com/telnyx/sdk/model/ErrorSource.java | 2 +- src/main/java/com/telnyx/sdk/model/Fax.java | 88 +- .../com/telnyx/sdk/model/FaxDelivered.java | 67 +- .../telnyx/sdk/model/FaxDeliveredPayload.java | 56 +- .../java/com/telnyx/sdk/model/FaxFailed.java | 67 +- .../telnyx/sdk/model/FaxFailedPayload.java | 56 +- .../telnyx/sdk/model/FaxMediaProcessed.java | 67 +- .../sdk/model/FaxMediaProcessedPayload.java | 56 +- .../java/com/telnyx/sdk/model/FaxQueued.java | 67 +- .../telnyx/sdk/model/FaxQueuedPayload.java | 56 +- .../telnyx/sdk/model/FaxSendingStarted.java | 67 +- .../sdk/model/FaxSendingStartedPayload.java | 56 +- ...indAuthenticationProviders200Response.java | 156 + .../FindNotificationsEvents200Response.java | 156 + ...ificationsEventsConditions200Response.java | 156 + .../FindNotificationsProfiles200Response.java | 156 + .../model/FindPortoutComments200Response.java | 156 + .../model/FindPortoutRequest200Response.java | 113 + .../java/com/telnyx/sdk/model/Footer.java | 114 + .../com/telnyx/sdk/model/ForbiddenError.java | 10 +- .../com/telnyx/sdk/model/GatherRequest.java | 368 + .../com/telnyx/sdk/model/GenericError.java | 10 +- .../sdk/model/GetChannelZones200Response.java | 156 + .../GetCustomerServiceRequest404Response.java | 123 + .../sdk/model/GetPhoneNumbers200Response.java | 156 + ...RequestSupportingDocuments201Response.java | 123 + .../sdk/model/GetPortingOrder200Response.java | 146 + .../model/GetPortingOrder200ResponseMeta.java | 112 + .../GetPortingOrderSubRequest200Response.java | 113 + ...GetPrivateWirelessGateways200Response.java | 156 + .../sdk/model/GetUserBalance200Response.java | 113 + .../sdk/model/GetWdrReports200Response.java | 123 + .../GetWebhookDeliveries200Response.java | 156 + .../model/GetWebhookDelivery200Response.java | 113 + .../java/com/telnyx/sdk/model/Header.java | 245 + .../com/telnyx/sdk/model/HostedNumber.java | 8 + src/main/java/com/telnyx/sdk/model/Http.java | 54 +- .../com/telnyx/sdk/model/HttpRequest.java | 155 + .../com/telnyx/sdk/model/HttpResponse.java | 187 + .../java/com/telnyx/sdk/model/Image1.java | 178 + .../com/telnyx/sdk/model/InboundFqdn.java | 4 +- .../sdk/model/InboundMessagePayload.java | 36 +- .../model/InboundMessagePayloadCcInner.java | 296 + .../InboundMessagePayloadMediaInner.java | 208 + .../model/InboundMessagePayloadToInner.java | 298 + .../com/telnyx/sdk/model/Interactive.java | 245 + .../telnyx/sdk/model/InteractiveAction.java | 260 + .../com/telnyx/sdk/model/InteractiveBody.java | 112 + .../telnyx/sdk/model/InteractiveButton.java | 169 + .../sdk/model/InteractiveButtonReply.java | 144 + .../sdk/model/InteractiveButtonType.java | 61 + .../telnyx/sdk/model/InteractiveFooter.java | 112 + .../telnyx/sdk/model/InteractiveHeader.java | 243 + .../telnyx/sdk/model/InteractiveProduct.java | 112 + .../telnyx/sdk/model/InteractiveSection.java | 196 + .../sdk/model/InteractiveSectionRow.java | 176 + .../com/telnyx/sdk/model/InteractiveType.java | 67 + .../com/telnyx/sdk/model/InterfaceStatus.java | 67 + .../java/com/telnyx/sdk/model/IpItem.java | 209 + .../ListAllowedFocWindows200Response.java | 156 + .../model/ListBillingGroups200Response.java | 156 + .../ListBulkSIMCardActions200Response.java | 156 + .../sdk/model/ListComments200Response.java | 156 + ...istCustomerServiceRequests200Response.java | 156 + ...istCustomerServiceRequests401Response.java | 123 + ...istCustomerServiceRequests403Response.java | 123 + ...istCustomerServiceRequests422Response.java | 123 + ...istCustomerServiceRequests500Response.java | 123 + .../model/ListDocumentLinks200Response.java | 156 + .../sdk/model/ListDocuments200Response.java | 156 + ...tDyanmicEmergencyAddresses200Response.java | 156 + ...tDyanmicEmergencyEndpoints200Response.java | 156 + .../model/ListManagedAccounts200Response.java | 156 + .../ListNotificationChannels200Response.java | 156 + .../ListNotificationSettings200Response.java | 156 + .../ListOutboundChannels200Response.java | 113 + .../ListOutboundChannels200ResponseData.java | 144 + .../ListPortingOrderDocuments200Response.java | 156 + ...stPortingOrderRequirements200Response.java | 156 + .../model/ListPortingOrders200Response.java | 156 + ...ortingOrdersActivationJobs200Response.java | 156 + .../ListPortingOrdersComments200Response.java | 156 + ...ortingOrdersExceptionTypes200Response.java | 123 + .../ListPortingPhoneNumbers200Response.java | 156 + .../model/ListPortoutRequest200Response.java | 156 + ...istRegulartoryRequirements200Response.java | 156 + .../model/ListRequirements200Response.java | 156 + .../ListRoomCompositions200Response.java | 156 + .../ListRoomParticipants200Response.java | 156 + .../model/ListRoomRecordings200Response.java | 156 + .../model/ListRoomSessions200Response.java | 156 + .../sdk/model/ListRooms200Response.java | 156 + .../model/ListSIMCardActions200Response.java | 156 + ...CardDataUsageNotifications200Response.java | 156 + .../telnyx/sdk/model/ListTagsResponse.java | 12 +- .../sdk/model/ListTagsResponseDataInner.java | 144 + .../sdk/model/MarkCommentRead200Response.java | 113 + .../model/MarkCommentRead200ResponseData.java | 400 + .../java/com/telnyx/sdk/model/Message.java | 11 +- .../com/telnyx/sdk/model/MessageType.java | 2 - .../sdk/model/MessagingHostedNumberOrder.java | 10 + .../telnyx/sdk/model/MessagingProfile.java | 14 + .../model/MessagingProfileDetailedMetric.java | 8 + .../MessagingProfileHighLevelMetrics.java | 12 + ...ssagingProfileHighLevelMetricsInbound.java | 8 + ...sagingProfileHighLevelMetricsOutbound.java | 12 + .../MessagingProfileMessageTypeMetrics.java | 16 + .../sdk/model/MobileOperatorNetwork.java | 10 + ...bileOperatorNetworkPreferencesRequest.java | 3 +- ...ileOperatorNetworkPreferencesResponse.java | 3 +- .../MobileOperatorNetworksGet200Response.java | 156 + .../com/telnyx/sdk/model/ModelInterface.java | 178 + .../java/com/telnyx/sdk/model/Network.java | 217 + .../java/com/telnyx/sdk/model/Network1.java | 142 + .../com/telnyx/sdk/model/NetworkCreate.java | 216 + .../sdk/model/NetworkCreate200Response.java | 113 + .../telnyx/sdk/model/NetworkInterface.java | 373 + .../telnyx/sdk/model/NetworkInterface1.java | 134 + .../NetworkInterfaceList200Response.java | 156 + .../sdk/model/NetworkList200Response.java | 156 + .../telnyx/sdk/model/NotificationChannel.java | 12 + .../telnyx/sdk/model/NotificationEvent.java | 8 + .../sdk/model/NotificationEventCondition.java | 20 +- ...ficationEventConditionParametersInner.java | 176 + .../telnyx/sdk/model/NotificationProfile.java | 12 + .../telnyx/sdk/model/NotificationSetting.java | 30 +- .../NotificationSettingParametersInner.java | 144 + .../telnyx/sdk/model/NumberBlockOrder.java | 20 + .../com/telnyx/sdk/model/NumberOrder.java | 20 + .../telnyx/sdk/model/NumberOrderDocument.java | 14 + .../sdk/model/NumberOrderPhoneNumber.java | 14 + .../model/NumberOrderWithPhoneNumbers.java | 20 + .../telnyx/sdk/model/NumberReservation.java | 16 + .../sdk/model/OTAUpdateGET200Response.java | 113 + .../sdk/model/OTAUpdatesList200Response.java | 156 + .../java/com/telnyx/sdk/model/OutboundIp.java | 4 +- .../sdk/model/OutboundMessagePayload.java | 24 +- .../OutboundMessagePayloadMediaInner.java | 247 + .../model/OutboundMessagePayloadToInner.java | 298 + .../model/PWGAssignedResourcesSummary.java | 135 + .../telnyx/sdk/model/PatchGroupRequest.java | 112 + .../com/telnyx/sdk/model/PhoneNumber.java | 156 +- .../sdk/model/PhoneNumberBlocksJob.java | 280 +- .../sdk/model/PhoneNumberDeletedDetailed.java | 44 +- .../telnyx/sdk/model/PhoneNumberDetailed.java | 42 +- .../PhoneNumberRegulatoryRequirement.java | 10 + .../PhoneNumberWithMessagingSettings.java | 24 + .../model/PhoneNumberWithVoiceSettings.java | 12 + .../com/telnyx/sdk/model/PhoneNumbersJob.java | 348 +- .../telnyx/sdk/model/PlayAudioUrlRequest.java | 34 +- .../sdk/model/PortOutSupportingDocument.java | 12 + .../sdk/model/PortabilityCheckDetails.java | 16 + .../com/telnyx/sdk/model/PortingOrder.java | 221 +- .../model/PortingOrderActivationSettings.java | 8 + .../model/PortingOrderRequirementDetail.java | 276 + ...OrderRequirementDetailRequirementType.java | 273 + .../sdk/model/PortingOrdersActivationJob.java | 14 + .../model/PortingOrdersAllowedFocWindow.java | 12 + .../sdk/model/PortingOrdersExceptionType.java | 4 +- .../telnyx/sdk/model/PortingPhoneNumber.java | 8 + .../com/telnyx/sdk/model/PortoutComment.java | 10 +- .../com/telnyx/sdk/model/PortoutDetails.java | 500 +- .../PostPortRequestComment201Response.java | 113 + .../model/PostPortRequestCommentRequest.java | 112 + ...PortRequestSupportingDocumentsRequest.java | 123 + ...portingDocumentsRequestDocumentsInner.java | 180 + .../PostPortabilityCheck201Response.java | 123 + .../model/PostPortabilityCheckRequest.java | 122 + .../PostValidateRegistrationCodesRequest.java | 123 + .../sdk/model/PrivateWirelessGateway.java | 67 +- .../model/PrivateWirelessGatewayStatus.java | 16 +- .../sdk/model/PublicInternetGateway.java | 307 + .../sdk/model/PublicInternetGateway1.java | 134 + .../model/PublicInternetGatewayCreate.java | 338 + ...ublicInternetGatewayCreate202Response.java | 113 + .../PublicInternetGatewayList200Response.java | 156 + .../sdk/model/PublicInternetGatewayRead.java | 371 + .../com/telnyx/sdk/model/PushCredential.java | 54 +- .../com/telnyx/sdk/model/ReadComment.java | 18 + .../telnyx/sdk/model/ReadCommentAllOf.java | 8 + .../java/com/telnyx/sdk/model/Record.java | 183 + .../RefreshRoomClientToken201Response.java | 113 + ...RefreshRoomClientToken201ResponseData.java | 144 + .../java/com/telnyx/sdk/model/Region.java | 264 + .../java/com/telnyx/sdk/model/RegionIn.java | 112 + .../sdk/model/RegionList200Response.java | 123 + .../java/com/telnyx/sdk/model/RegionOut.java | 145 + .../com/telnyx/sdk/model/RegionOutRegion.java | 174 + .../sdk/model/RegulatoryRequirements.java | 36 +- ...oryRequirementsRegionInformationInner.java | 144 + ...quirementsRegulatoryRequirementsInner.java | 280 + ...ryRequirementsInnerAcceptanceCriteria.java | 176 + src/main/java/com/telnyx/sdk/model/Reply.java | 146 + .../telnyx/sdk/model/ReservedPhoneNumber.java | 18 + .../sdk/model/ResourceNotFoundError.java | 10 +- src/main/java/com/telnyx/sdk/model/Room.java | 8 + .../com/telnyx/sdk/model/RoomComposition.java | 8 + .../com/telnyx/sdk/model/RoomParticipant.java | 8 + .../com/telnyx/sdk/model/RoomRecording.java | 8 + .../com/telnyx/sdk/model/RoomSession.java | 8 + .../java/com/telnyx/sdk/model/SIMCard.java | 159 +- .../com/telnyx/sdk/model/SIMCardAction.java | 48 +- .../telnyx/sdk/model/SIMCardActionStatus.java | 10 + .../sdk/model/SIMCardActionsSummary.java | 183 + .../sdk/model/SIMCardDeviceDetails.java | 230 + .../SIMCardDeviceDetailsGet200Response.java | 113 + .../com/telnyx/sdk/model/SIMCardGroup.java | 16 + .../telnyx/sdk/model/SIMCardGroupAction.java | 14 + .../sdk/model/SIMCardNetworkPreference.java | 12 + ...IMCardNetworkPreferenceWithOTAUpdates.java | 12 + ...MCardNetworkPreferencesGet200Response.java | 113 + .../SIMCardNetworkPreferencesPutRequest.java | 123 + .../com/telnyx/sdk/model/SIMCardOrder.java | 14 + .../telnyx/sdk/model/SIMCardOrderPreview.java | 8 + .../com/telnyx/sdk/model/SIMCardPublicIP.java | 18 +- .../model/SIMCardPublicIPGet200Response.java | 113 + .../com/telnyx/sdk/model/SIMCardStatus.java | 10 + .../sdk/model/SearchedSIMCardGroup.java | 369 + .../com/telnyx/sdk/model/SendFaxRequest.java | 16 +- ...ardGroupPrivateWirelessGatewayRequest.java | 113 + .../java/com/telnyx/sdk/model/ShortCode.java | 18 + .../model/SimCardActionGet200Response.java | 113 + .../model/SimCardDataUsageNotification.java | 24 +- ...DataUsageNotificationsPost201Response.java | 113 + ...CardDataUsageNotificationsPostRequest.java | 146 + ...sageNotificationsPostRequestThreshold.java | 181 + .../sdk/model/SimCardGet200Response.java | 113 + .../SimCardGroupActionGet200Response.java | 113 + .../SimCardGroupActionsGet200Response.java | 156 + .../model/SimCardGroupsGetAll200Response.java | 156 + .../model/SimCardGroupsPost200Response.java | 113 + .../model/SimCardOrdersGet200Response.java | 156 + .../model/SimCardOrdersPost200Response.java | 113 + .../SimCardOrdersPreview202Response.java | 113 + .../model/SimCardOrdersPreviewRequest.java | 145 + .../sdk/model/SimCardRegister202Response.java | 164 + .../sdk/model/SimCardsGet200Response.java | 156 + .../com/telnyx/sdk/model/SimpleSIMCard.java | 20 + .../telnyx/sdk/model/SimplifiedOTAUpdate.java | 14 + .../telnyx/sdk/model/SoundModifications.java | 41 +- .../sdk/model/StartRecordingRequest.java | 42 +- .../sdk/model/StartStreamingRequest.java | 71 +- .../com/telnyx/sdk/model/SubNumberOrder.java | 22 + .../SubNumberOrderRegulatoryRequirement.java | 10 + ...ResponseUponAcceptingCancelFaxCommand.java | 112 + ...ithDetailsAboutTheWhatsAppMessageSent.java | 113 + .../sdk/model/TeXmlRESTCommandResponse.java | 113 + .../java/com/telnyx/sdk/model/Template.java | 11 +- .../sdk/model/TemplateButtonComponent.java | 212 + .../sdk/model/TemplateButtonParameter.java | 177 + .../telnyx/sdk/model/TemplateComponent.java | 156 + .../sdk/model/TemplateComponentType.java | 63 + .../telnyx/sdk/model/TemplateComponents.java | 218 + .../telnyx/sdk/model/TemplateParameters.java | 353 + .../telnyx/sdk/model/TexmlApplication.java | 42 +- .../sdk/model/TranscriptionStartRequest.java | 34 +- .../telnyx/sdk/model/TransferCallRequest.java | 35 +- .../telnyx/sdk/model/UnauthorizedError.java | 10 +- .../com/telnyx/sdk/model/UnexpectedError.java | 10 +- .../telnyx/sdk/model/UpdateCallRequest.java | 441 + .../telnyx/sdk/model/UpdateCommandResult.java | 144 + .../model/UpdateFaxApplicationRequest.java | 2 +- .../model/UpdateMessagingProfileRequest.java | 14 + .../UpdateNumberOrderDocumentRequest.java | 14 + .../sdk/model/UpdateNumberOrderRequest.java | 20 + .../UpdateOutboundChannels200Response.java | 113 + ...UpdateOutboundChannels200ResponseData.java | 144 + ...UpdateOutboundChannelsDefaultResponse.java | 123 + ...undChannelsDefaultResponseErrorsInner.java | 241 + ...nnelsDefaultResponseErrorsInnerSource.java | 144 + .../model/UpdateOutboundChannelsRequest.java | 112 + .../sdk/model/UpdatePhoneNumberRequest.java | 8 + .../model/UpdatePortingOrder200Response.java | 146 + .../UpdatePortingOrder200ResponseMeta.java | 112 + .../model/UpdatePortoutRequestRequest.java | 112 + .../model/UpdateTexmlApplicationRequest.java | 4 +- ...ateVerifiedCallsDisplayProfileRequest.java | 18 +- .../com/telnyx/sdk/model/UploadMedia.java | 2 +- ...ploadPortingOrderDocuments201Response.java | 123 + .../UploadPortingOrderDocumentsRequest.java | 120 + ...ngOrderDocumentsRequestDocumentsInner.java | 181 + .../sdk/model/ValidateAddressResult.java | 9 +- .../model/VerifiedCallsDisplayProfile.java | 40 +- ...edCallsDisplayProfileCallReasonsInner.java | 313 + ...dCallsDisplayProfilePhoneNumbersInner.java | 313 + .../VerifyPhoneNumberCoverage201Response.java | 123 + .../VerifyPhoneNumberCoverageRequest.java | 119 + .../java/com/telnyx/sdk/model/Video1.java | 178 + .../model/ViewRoomParticipant200Response.java | 113 + .../model/ViewRoomRecording200Response.java | 113 + .../sdk/model/ViewRoomSession200Response.java | 113 + .../VirtaulCrossConnectList200Response.java | 156 + ...taulCrossConnectRegionList200Response.java | 156 + .../telnyx/sdk/model/VirtualCrossConnect.java | 753 + .../sdk/model/VirtualCrossConnect1.java | 580 + .../model/VirtualCrossConnectCombined.java | 898 + .../sdk/model/VirtualCrossConnectCreate.java | 784 + .../VirtualCrossConnectCreate200Response.java | 113 + .../sdk/model/VirtualCrossConnectPatch.java | 273 + .../sdk/model/VirtualCrossConnectPatch1.java | 272 + .../sdk/model/VirtualCrossConnectRegion.java | 361 + .../sdk/model/VirtualCrossConnectRegion1.java | 286 + ...rtualCrossConnectRegionGet200Response.java | 113 + .../java/com/telnyx/sdk/model/WdrReport.java | 14 + .../WhatsAppConversationDetailRecord.java | 374 + .../sdk/model/WhatsAppDetailRecord.java | 135 +- .../sdk/model/WhatsAppMessageTemplate1.java | 144 + .../com/telnyx/sdk/model/WhatsAppUser.java | 8 + .../sdk/model/WhatsappMessageTemplate.java | 645 + ...hatsappMessageTemplateComponentsInner.java | 176 + .../WhatsappMessageTemplateQualityScore.java | 152 + .../telnyx/sdk/model/WhatsappPhoneNumber.java | 52 +- .../WhatsappPhoneNumberWhatsappSettings.java | 250 + .../telnyx/sdk/model/WireguardAllowedIP.java | 142 + .../telnyx/sdk/model/WireguardInterface.java | 331 + .../telnyx/sdk/model/WireguardInterface1.java | 158 + .../sdk/model/WireguardInterfaceCreate.java | 362 + .../WireguardInterfaceCreate202Response.java | 113 + .../WireguardInterfaceList200Response.java | 156 + .../sdk/model/WireguardInterfaceRead.java | 395 + .../com/telnyx/sdk/model/WireguardPeer.java | 298 + .../com/telnyx/sdk/model/WireguardPeer1.java | 191 + .../sdk/model/WireguardPeerAllowedIP.java | 217 + .../model/WireguardPeerAllowedIPCreate.java | 216 + .../WireguardPeerAllowedIPGet200Response.java | 113 + ...WireguardPeerAllowedIPList200Response.java | 156 + .../telnyx/sdk/model/WireguardPeerCreate.java | 296 + .../model/WireguardPeerCreate202Response.java | 113 + .../model/WireguardPeerList200Response.java | 156 + .../telnyx/sdk/model/WireguardPeerPatch.java | 112 + .../sdk/model/WirelessConnectivityLog.java | 86 +- ...irelessConnectivityLogsGet200Response.java | 156 + .../api/CustomerServiceRequestApiTest.java | 1 - .../sdk/api/DialogflowIntegrationApiTest.java | 100 + .../java/com/telnyx/sdk/api/FqdNsApiTest.java | 2 +- .../java/com/telnyx/sdk/api/IPsApiTest.java | 2 +- .../sdk/api/MobileApplicationsApiTest.java | 2 - .../com/telnyx/sdk/api/NetworksApiTest.java | 140 + .../telnyx/sdk/api/PortingOrderApiTest.java | 1 - .../api/PublicInternetGatewaysApiTest.java | 102 + .../sdk/api/PushCredentialsApiTest.java | 2 - .../com/telnyx/sdk/api/RegionsApiTest.java | 51 + .../sdk/api/TeXmlRestCommandsApiTest.java | 55 + .../sdk/api/VirtualCrossConnectsApiTest.java | 169 + .../sdk/api/WdrDetailReportsApiTest.java | 62 + .../api/WhatsAppMessageTemplateApiTest.java | 105 + .../sdk/api/WireGuardInterfacesApiTest.java | 236 + .../java/com/telnyx/sdk/model/ActionTest.java | 87 + .../model/ActionsParticipantsRequestTest.java | 1 - .../ActivatePortingOrder202ResponseTest.java | 51 + .../model/AssignPhoneNumberRequestTest.java | 50 + .../java/com/telnyx/sdk/model/BodyTest.java | 51 + .../model/BulkSIMCardActionDetailedTest.java | 102 + .../sdk/model/BulkSIMCardActionTest.java | 91 + ...CardNetworkPreferences202ResponseTest.java | 62 + ...kSIMCardNetworkPreferencesRequestTest.java | 62 + .../BulkSetPublicIPs202ResponseTest.java | 51 + .../model/BulkSetPublicIPsRequestTest.java | 53 + .../BulkSimCardActionGet200ResponseTest.java | 51 + .../BusinessIdentityContactsInnerTest.java | 99 + .../sdk/model/ButtonComponentTypeTest.java | 34 + .../telnyx/sdk/model/ButtonParameterTest.java | 70 + .../sdk/model/ButtonParameterTypeTest.java | 34 + .../telnyx/sdk/model/ButtonSubtypeTest.java | 34 + .../java/com/telnyx/sdk/model/ButtonTest.java | 69 + .../CallCostPayloadCostPartsInnerTest.java | 83 + .../model/CallStreamingFailedEventTest.java | 51 + ...treamingFailedPayloadStreamParamsTest.java | 58 + .../model/CallStreamingFailedPayloadTest.java | 116 + .../sdk/model/CallStreamingFailedTest.java | 85 + .../CancelPortingOrder200ResponseTest.java | 60 + .../ConfirmPortingOrder200ResponseTest.java | 60 + .../com/telnyx/sdk/model/ContactTest.java | 1 - ...AuthenticationProvider200ResponseTest.java | 51 + .../CreateBillingGroup200ResponseTest.java | 51 + .../CreateComment200ResponseDataTest.java | 116 + .../model/CreateComment200ResponseTest.java | 51 + ...CustomerServiceRequest201ResponseTest.java | 51 + ...eateCustomerServiceRequestRequestTest.java | 58 + .../model/CreateDocument200ResponseTest.java | 51 + ...yanmicEmergencyAddress201ResponseTest.java | 51 + ...anmicEmergencyEndpoint201ResponseTest.java | 51 + ...ventoryCoverageRequest200ResponseTest.java | 62 + ...dgerBillingGroupReport200ResponseTest.java | 51 + .../CreateManagedAccount200ResponseTest.java | 51 + .../CreateManagedAccount422ResponseTest.java | 53 + ...teNotificationChannels200ResponseTest.java | 51 + ...ateNotificationProfile200ResponseTest.java | 51 + ...ateNotificationSetting200ResponseTest.java | 51 + ...teOrUpdateBusinessIdentityRequestTest.java | 6 - .../CreatePortingOrder201ResponseTest.java | 53 + ...atePortingOrderComment201ResponseTest.java | 51 + ...PrivateWirelessGateway202ResponseTest.java | 51 + ...eatePrivateWirelessGatewayRequestTest.java | 59 + .../CreatePushCredentialRequestTest.java | 84 + .../sdk/model/CreateRoom201ResponseTest.java | 51 + ...ateRoomClientToken201ResponseDataTest.java | 74 + .../CreateRoomClientToken201ResponseTest.java | 51 + .../CreateRoomComposition202ResponseTest.java | 51 + ...erifiedCallsDisplayProfileRequestTest.java | 4 - .../model/CreateWdrReport201ResponseTest.java | 51 + ...hatsappMessageTemplateRequestBodyTest.java | 74 + .../sdk/model/CredentialsResponseTest.java | 1 - .../model/CursorPaginationCursorsTest.java | 58 + .../sdk/model/CursorPaginationTest.java | 67 + .../CustomerFacingFQDNsGetIPResponseTest.java | 62 + .../CustomerFacingFQDNsListResponseTest.java | 62 + .../model/CustomerFacingFQDNsPatchTest.java | 50 + .../model/CustomerFacingFQDNsPostTest.java | 58 + ...CustomerFacingFQDNsResponseSchemaTest.java | 83 + ...CustomerServiceRequestsGetRequestTest.java | 60 + .../sdk/model/DialogflowConfigTest.java | 58 + .../DialogflowConnectionResponseTest.java | 51 + .../sdk/model/DialogflowConnectionTest.java | 82 + ...qsListRequirementTypes200ResponseTest.java | 62 + ...veDocumentRequirements200ResponseTest.java | 51 + ...etrieveRequirementType200ResponseTest.java | 51 + .../com/telnyx/sdk/model/Document1Test.java | 75 + .../model/EndSession200ResponseDataTest.java | 50 + .../sdk/model/EndSession200ResponseTest.java | 51 + ...uthenticationProviders200ResponseTest.java | 62 + ...indNotificationsEvents200ResponseTest.java | 62 + ...ationsEventsConditions200ResponseTest.java | 62 + ...dNotificationsProfiles200ResponseTest.java | 62 + .../FindPortoutComments200ResponseTest.java | 62 + .../FindPortoutRequest200ResponseTest.java | 51 + .../java/com/telnyx/sdk/model/FooterTest.java | 51 + .../telnyx/sdk/model/GatherRequestTest.java | 114 + .../model/GetChannelZones200ResponseTest.java | 62 + ...CustomerServiceRequest404ResponseTest.java | 53 + .../model/GetPhoneNumbers200ResponseTest.java | 62 + ...estSupportingDocuments201ResponseTest.java | 53 + .../GetPortingOrder200ResponseMetaTest.java | 50 + .../model/GetPortingOrder200ResponseTest.java | 60 + ...PortingOrderSubRequest200ResponseTest.java | 51 + ...rivateWirelessGateways200ResponseTest.java | 62 + .../model/GetUserBalance200ResponseTest.java | 51 + .../model/GetWdrReports200ResponseTest.java | 53 + .../GetWebhookDeliveries200ResponseTest.java | 62 + .../GetWebhookDelivery200ResponseTest.java | 51 + .../java/com/telnyx/sdk/model/HeaderTest.java | 86 + .../com/telnyx/sdk/model/HttpRequestTest.java | 60 + .../telnyx/sdk/model/HttpResponseTest.java | 68 + .../java/com/telnyx/sdk/model/Image1Test.java | 67 + .../InboundMessagePayloadCcInnerTest.java | 74 + .../InboundMessagePayloadMediaInnerTest.java | 74 + .../InboundMessagePayloadToInnerTest.java | 74 + .../sdk/model/InteractiveActionTest.java | 86 + .../telnyx/sdk/model/InteractiveBodyTest.java | 50 + .../sdk/model/InteractiveButtonReplyTest.java | 58 + .../sdk/model/InteractiveButtonTest.java | 64 + .../sdk/model/InteractiveButtonTypeTest.java | 34 + .../sdk/model/InteractiveFooterTest.java | 50 + .../sdk/model/InteractiveHeaderTest.java | 85 + .../sdk/model/InteractiveProductTest.java | 50 + .../sdk/model/InteractiveSectionRowTest.java | 66 + .../sdk/model/InteractiveSectionTest.java | 70 + .../com/telnyx/sdk/model/InteractiveTest.java | 87 + .../telnyx/sdk/model/InteractiveTypeTest.java | 34 + .../telnyx/sdk/model/InterfaceStatusTest.java | 34 + .../java/com/telnyx/sdk/model/IpItemTest.java | 75 + .../ListAllowedFocWindows200ResponseTest.java | 62 + .../ListBillingGroups200ResponseTest.java | 62 + ...ListBulkSIMCardActions200ResponseTest.java | 62 + .../model/ListComments200ResponseTest.java | 62 + ...ustomerServiceRequests200ResponseTest.java | 62 + ...ustomerServiceRequests401ResponseTest.java | 53 + ...ustomerServiceRequests403ResponseTest.java | 53 + ...ustomerServiceRequests422ResponseTest.java | 53 + ...ustomerServiceRequests500ResponseTest.java | 53 + .../ListDocumentLinks200ResponseTest.java | 62 + .../model/ListDocuments200ResponseTest.java | 62 + ...nmicEmergencyAddresses200ResponseTest.java | 62 + ...nmicEmergencyEndpoints200ResponseTest.java | 62 + .../ListManagedAccounts200ResponseTest.java | 62 + ...stNotificationChannels200ResponseTest.java | 62 + ...stNotificationSettings200ResponseTest.java | 62 + ...stOutboundChannels200ResponseDataTest.java | 58 + .../ListOutboundChannels200ResponseTest.java | 51 + ...tPortingOrderDocuments200ResponseTest.java | 62 + ...rtingOrderRequirements200ResponseTest.java | 62 + .../ListPortingOrders200ResponseTest.java | 62 + ...ngOrdersActivationJobs200ResponseTest.java | 62 + ...tPortingOrdersComments200ResponseTest.java | 62 + ...ngOrdersExceptionTypes200ResponseTest.java | 53 + ...istPortingPhoneNumbers200ResponseTest.java | 62 + .../ListPortoutRequest200ResponseTest.java | 62 + ...egulartoryRequirements200ResponseTest.java | 62 + .../ListRequirements200ResponseTest.java | 62 + .../ListRoomCompositions200ResponseTest.java | 62 + .../ListRoomParticipants200ResponseTest.java | 62 + .../ListRoomRecordings200ResponseTest.java | 62 + .../ListRoomSessions200ResponseTest.java | 62 + .../sdk/model/ListRooms200ResponseTest.java | 62 + .../ListSIMCardActions200ResponseTest.java | 62 + ...DataUsageNotifications200ResponseTest.java | 62 + .../model/ListTagsResponseDataInnerTest.java | 58 + .../MarkCommentRead200ResponseDataTest.java | 116 + .../model/MarkCommentRead200ResponseTest.java | 51 + ...ileOperatorNetworksGet200ResponseTest.java | 62 + .../telnyx/sdk/model/ModelInterfaceTest.java | 68 + .../com/telnyx/sdk/model/Network1Test.java | 58 + .../model/NetworkCreate200ResponseTest.java | 51 + .../telnyx/sdk/model/NetworkCreateTest.java | 84 + .../sdk/model/NetworkInterface1Test.java | 58 + .../NetworkInterfaceList200ResponseTest.java | 62 + .../sdk/model/NetworkInterfaceTest.java | 129 + .../sdk/model/NetworkList200ResponseTest.java | 62 + .../com/telnyx/sdk/model/NetworkTest.java | 85 + ...tionEventConditionParametersInnerTest.java | 66 + ...otificationSettingParametersInnerTest.java | 58 + .../model/OTAUpdateGET200ResponseTest.java | 51 + .../model/OTAUpdatesList200ResponseTest.java | 62 + .../OutboundMessagePayloadMediaInnerTest.java | 78 + .../OutboundMessagePayloadToInnerTest.java | 74 + .../PWGAssignedResourcesSummaryTest.java | 58 + .../sdk/model/PatchGroupRequestTest.java | 50 + ...rRequirementDetailRequirementTypeTest.java | 90 + .../PortingOrderRequirementDetailTest.java | 83 + ...PostPortRequestComment201ResponseTest.java | 51 + .../PostPortRequestCommentRequestTest.java | 50 + ...ingDocumentsRequestDocumentsInnerTest.java | 59 + ...RequestSupportingDocumentsRequestTest.java | 53 + .../PostPortabilityCheck201ResponseTest.java | 53 + .../PostPortabilityCheckRequestTest.java | 52 + ...tValidateRegistrationCodesRequestTest.java | 52 + .../sdk/model/PublicInternetGateway1Test.java | 58 + ...cInternetGatewayCreate202ResponseTest.java | 51 + .../PublicInternetGatewayCreateTest.java | 118 + ...licInternetGatewayList200ResponseTest.java | 62 + .../model/PublicInternetGatewayReadTest.java | 127 + .../sdk/model/PublicInternetGatewayTest.java | 111 + .../java/com/telnyx/sdk/model/RecordTest.java | 75 + ...eshRoomClientToken201ResponseDataTest.java | 58 + ...RefreshRoomClientToken201ResponseTest.java | 51 + .../com/telnyx/sdk/model/RegionInTest.java | 50 + .../sdk/model/RegionList200ResponseTest.java | 53 + .../telnyx/sdk/model/RegionOutRegionTest.java | 66 + .../com/telnyx/sdk/model/RegionOutTest.java | 59 + .../java/com/telnyx/sdk/model/RegionTest.java | 92 + ...equirementsRegionInformationInnerTest.java | 58 + ...quirementsInnerAcceptanceCriteriaTest.java | 66 + ...ementsRegulatoryRequirementsInnerTest.java | 100 + .../java/com/telnyx/sdk/model/ReplyTest.java | 59 + .../sdk/model/SIMCardActionsSummaryTest.java | 58 + ...IMCardDeviceDetailsGet200ResponseTest.java | 51 + .../sdk/model/SIMCardDeviceDetailsTest.java | 90 + ...dNetworkPreferencesGet200ResponseTest.java | 51 + ...MCardNetworkPreferencesPutRequestTest.java | 53 + .../SIMCardPublicIPGet200ResponseTest.java | 51 + .../sdk/model/SearchedSIMCardGroupTest.java | 125 + ...roupPrivateWirelessGatewayRequestTest.java | 51 + .../SimCardActionGet200ResponseTest.java | 51 + ...UsageNotificationsPost201ResponseTest.java | 51 + ...DataUsageNotificationsPostRequestTest.java | 60 + ...NotificationsPostRequestThresholdTest.java | 59 + .../sdk/model/SimCardGet200ResponseTest.java | 51 + .../SimCardGroupActionGet200ResponseTest.java | 51 + ...SimCardGroupActionsGet200ResponseTest.java | 62 + .../SimCardGroupsGetAll200ResponseTest.java | 62 + .../SimCardGroupsPost200ResponseTest.java | 51 + .../SimCardOrdersGet200ResponseTest.java | 62 + .../SimCardOrdersPost200ResponseTest.java | 51 + .../SimCardOrdersPreview202ResponseTest.java | 51 + .../SimCardOrdersPreviewRequestTest.java | 58 + .../model/SimCardRegister202ResponseTest.java | 62 + .../sdk/model/SimCardsGet200ResponseTest.java | 62 + ...onseUponAcceptingCancelFaxCommandTest.java | 50 + ...etailsAboutTheWhatsAppMessageSentTest.java | 51 + .../model/TeXmlRESTCommandResponseTest.java | 51 + .../model/TemplateButtonComponentTest.java | 78 + .../model/TemplateButtonParameterTest.java | 67 + .../sdk/model/TemplateComponentTest.java | 62 + .../sdk/model/TemplateComponentTypeTest.java | 34 + .../sdk/model/TemplateComponentsTest.java | 82 + .../sdk/model/TemplateParametersTest.java | 103 + .../sdk/model/UpdateCallRequestTest.java | 106 + .../sdk/model/UpdateCommandResultTest.java | 58 + ...teOutboundChannels200ResponseDataTest.java | 58 + ...UpdateOutboundChannels200ResponseTest.java | 51 + ...sDefaultResponseErrorsInnerSourceTest.java | 58 + ...hannelsDefaultResponseErrorsInnerTest.java | 83 + ...teOutboundChannelsDefaultResponseTest.java | 53 + .../UpdateOutboundChannelsRequestTest.java | 50 + ...UpdatePortingOrder200ResponseMetaTest.java | 50 + .../UpdatePortingOrder200ResponseTest.java | 60 + .../UpdatePortoutRequestRequestTest.java | 50 + ...erifiedCallsDisplayProfileRequestTest.java | 2 - ...dPortingOrderDocuments201ResponseTest.java | 53 + ...derDocumentsRequestDocumentsInnerTest.java | 58 + ...ploadPortingOrderDocumentsRequestTest.java | 53 + .../sdk/model/ValidateAddressResultTest.java | 1 - ...llsDisplayProfileCallReasonsInnerTest.java | 99 + ...lsDisplayProfilePhoneNumbersInnerTest.java | 99 + ...ifyPhoneNumberCoverage201ResponseTest.java | 53 + .../VerifyPhoneNumberCoverageRequestTest.java | 52 + .../java/com/telnyx/sdk/model/Video1Test.java | 67 + .../ViewRoomParticipant200ResponseTest.java | 51 + .../ViewRoomRecording200ResponseTest.java | 51 + .../model/ViewRoomSession200ResponseTest.java | 51 + ...irtaulCrossConnectList200ResponseTest.java | 62 + ...CrossConnectRegionList200ResponseTest.java | 62 + .../sdk/model/VirtualCrossConnect1Test.java | 163 + .../VirtualCrossConnectCombinedTest.java | 249 + ...tualCrossConnectCreate200ResponseTest.java | 51 + .../model/VirtualCrossConnectCreateTest.java | 223 + .../model/VirtualCrossConnectPatch1Test.java | 90 + .../model/VirtualCrossConnectPatchTest.java | 91 + .../model/VirtualCrossConnectRegion1Test.java | 85 + ...lCrossConnectRegionGet200ResponseTest.java | 51 + .../model/VirtualCrossConnectRegionTest.java | 112 + .../sdk/model/VirtualCrossConnectTest.java | 216 + .../WhatsAppConversationDetailRecordTest.java | 107 + .../model/WhatsAppMessageTemplate1Test.java | 58 + .../model/WhatsAppMessageTemplateTest.java | 62 + ...appMessageTemplateComponentsInnerTest.java | 66 + ...atsappMessageTemplateQualityScoreTest.java | 50 + ...atsappPhoneNumberWhatsappSettingsTest.java | 74 + .../sdk/model/WireguardAllowedIPTest.java | 58 + .../sdk/model/WireguardInterface1Test.java | 66 + ...reguardInterfaceCreate202ResponseTest.java | 51 + .../model/WireguardInterfaceCreateTest.java | 126 + ...WireguardInterfaceList200ResponseTest.java | 62 + .../sdk/model/WireguardInterfaceReadTest.java | 135 + .../sdk/model/WireguardInterfaceTest.java | 119 + .../telnyx/sdk/model/WireguardPeer1Test.java | 75 + .../WireguardPeerAllowedIPCreateTest.java | 84 + ...eguardPeerAllowedIPGet200ResponseTest.java | 51 + ...guardPeerAllowedIPList200ResponseTest.java | 62 + .../sdk/model/WireguardPeerAllowedIPTest.java | 85 + .../WireguardPeerCreate202ResponseTest.java | 51 + .../sdk/model/WireguardPeerCreateTest.java | 108 + .../WireguardPeerList200ResponseTest.java | 62 + .../sdk/model/WireguardPeerPatchTest.java | 50 + .../telnyx/sdk/model/WireguardPeerTest.java | 110 + ...essConnectivityLogsGet200ResponseTest.java | 62 + 1920 files changed, 116199 insertions(+), 22293 deletions(-) create mode 100644 .github/workflows/maven.yml create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml create mode 100644 .travis.yml create mode 100644 docs/Action.md create mode 100644 docs/ActionsParticipantsRequestParticipants.md create mode 100644 docs/ActivatePortingOrder202Response.md create mode 100644 docs/AssignPhoneNumberRequest.md create mode 100644 docs/Body.md create mode 100644 docs/BulkSIMCardAction.md create mode 100644 docs/BulkSIMCardActionDetailed.md create mode 100644 docs/BulkSIMCardNetworkPreferences202Response.md create mode 100644 docs/BulkSIMCardNetworkPreferencesRequest.md create mode 100644 docs/BulkSetPublicIPs202Response.md create mode 100644 docs/BulkSetPublicIPsRequest.md create mode 100644 docs/BulkSimCardActionGet200Response.md create mode 100644 docs/BusinessIdentityContactsInner.md create mode 100644 docs/Button.md create mode 100644 docs/ButtonComponentType.md create mode 100644 docs/ButtonParameter.md create mode 100644 docs/ButtonParameterType.md create mode 100644 docs/ButtonSubtype.md create mode 100644 docs/CallCostPayloadCostPartsInner.md create mode 100644 docs/CallRequestTo.md create mode 100644 docs/CallStreamingFailed.md create mode 100644 docs/CallStreamingFailedEvent.md create mode 100644 docs/CallStreamingFailedPayload.md create mode 100644 docs/CallStreamingFailedPayloadStreamParams.md create mode 100644 docs/CancelPortingOrder200Response.md create mode 100644 docs/ConfirmPortingOrder200Response.md create mode 100644 docs/CreateAuthenticationProvider200Response.md create mode 100644 docs/CreateBillingGroup200Response.md create mode 100644 docs/CreateComment200Response.md create mode 100644 docs/CreateComment200ResponseData.md create mode 100644 docs/CreateCustomerServiceRequest201Response.md create mode 100644 docs/CreateCustomerServiceRequestRequest.md create mode 100644 docs/CreateDocument200Response.md create mode 100644 docs/CreateDyanmicEmergencyAddress201Response.md create mode 100644 docs/CreateDyanmicEmergencyEndpoint201Response.md create mode 100644 docs/CreateInventoryCoverageRequest200Response.md create mode 100644 docs/CreateLedgerBillingGroupReport200Response.md create mode 100644 docs/CreateManagedAccount200Response.md create mode 100644 docs/CreateManagedAccount422Response.md create mode 100644 docs/CreateNotificationChannels200Response.md create mode 100644 docs/CreateNotificationProfile200Response.md create mode 100644 docs/CreateNotificationSetting200Response.md create mode 100644 docs/CreatePortingOrder201Response.md create mode 100644 docs/CreatePortingOrderComment201Response.md create mode 100644 docs/CreatePrivateWirelessGateway202Response.md create mode 100644 docs/CreatePrivateWirelessGatewayRequest.md create mode 100644 docs/CreatePushCredentialRequest.md create mode 100644 docs/CreateRoom201Response.md create mode 100644 docs/CreateRoomClientToken201Response.md create mode 100644 docs/CreateRoomClientToken201ResponseData.md create mode 100644 docs/CreateRoomComposition202Response.md create mode 100644 docs/CreateWdrReport201Response.md create mode 100644 docs/CreateWhatsappMessageTemplateRequestBody.md create mode 100644 docs/CursorPagination.md create mode 100644 docs/CursorPaginationCursors.md create mode 100644 docs/CustomerFacingFQDNsGetIPResponse.md create mode 100644 docs/CustomerFacingFQDNsListResponse.md create mode 100644 docs/CustomerFacingFQDNsPatch.md create mode 100644 docs/CustomerFacingFQDNsPost.md create mode 100644 docs/CustomerFacingFQDNsResponseSchema.md create mode 100644 docs/CustomerServiceRequestsGetRequest.md create mode 100644 docs/DialogflowConfig.md create mode 100644 docs/DialogflowConnection.md create mode 100644 docs/DialogflowConnectionResponse.md create mode 100644 docs/DialogflowIntegrationApi.md create mode 100644 docs/DocReqsListRequirementTypes200Response.md create mode 100644 docs/DocReqsRetrieveDocumentRequirements200Response.md create mode 100644 docs/DocReqsRetrieveRequirementType200Response.md create mode 100644 docs/Document1.md create mode 100644 docs/EndSession200Response.md create mode 100644 docs/EndSession200ResponseData.md create mode 100644 docs/FindAuthenticationProviders200Response.md create mode 100644 docs/FindNotificationsEvents200Response.md create mode 100644 docs/FindNotificationsEventsConditions200Response.md create mode 100644 docs/FindNotificationsProfiles200Response.md create mode 100644 docs/FindPortoutComments200Response.md create mode 100644 docs/FindPortoutRequest200Response.md create mode 100644 docs/Footer.md create mode 100644 docs/GatherRequest.md create mode 100644 docs/GetChannelZones200Response.md create mode 100644 docs/GetCustomerServiceRequest404Response.md create mode 100644 docs/GetPhoneNumbers200Response.md create mode 100644 docs/GetPortRequestSupportingDocuments201Response.md create mode 100644 docs/GetPortingOrder200Response.md create mode 100644 docs/GetPortingOrder200ResponseMeta.md create mode 100644 docs/GetPortingOrderSubRequest200Response.md create mode 100644 docs/GetPrivateWirelessGateways200Response.md create mode 100644 docs/GetUserBalance200Response.md create mode 100644 docs/GetWdrReports200Response.md create mode 100644 docs/GetWebhookDeliveries200Response.md create mode 100644 docs/GetWebhookDelivery200Response.md create mode 100644 docs/Header.md create mode 100644 docs/HttpRequest.md create mode 100644 docs/HttpResponse.md create mode 100644 docs/Image1.md create mode 100644 docs/InboundMessagePayloadCcInner.md create mode 100644 docs/InboundMessagePayloadMediaInner.md create mode 100644 docs/InboundMessagePayloadToInner.md create mode 100644 docs/Interactive.md create mode 100644 docs/InteractiveAction.md create mode 100644 docs/InteractiveBody.md create mode 100644 docs/InteractiveButton.md create mode 100644 docs/InteractiveButtonReply.md create mode 100644 docs/InteractiveButtonType.md create mode 100644 docs/InteractiveFooter.md create mode 100644 docs/InteractiveHeader.md create mode 100644 docs/InteractiveProduct.md create mode 100644 docs/InteractiveSection.md create mode 100644 docs/InteractiveSectionRow.md create mode 100644 docs/InteractiveType.md create mode 100644 docs/InterfaceStatus.md create mode 100644 docs/IpItem.md create mode 100644 docs/ListAllowedFocWindows200Response.md create mode 100644 docs/ListBillingGroups200Response.md create mode 100644 docs/ListBulkSIMCardActions200Response.md create mode 100644 docs/ListComments200Response.md create mode 100644 docs/ListCustomerServiceRequests200Response.md create mode 100644 docs/ListCustomerServiceRequests401Response.md create mode 100644 docs/ListCustomerServiceRequests403Response.md create mode 100644 docs/ListCustomerServiceRequests422Response.md create mode 100644 docs/ListCustomerServiceRequests500Response.md create mode 100644 docs/ListDocumentLinks200Response.md create mode 100644 docs/ListDocuments200Response.md create mode 100644 docs/ListDyanmicEmergencyAddresses200Response.md create mode 100644 docs/ListDyanmicEmergencyEndpoints200Response.md create mode 100644 docs/ListManagedAccounts200Response.md create mode 100644 docs/ListNotificationChannels200Response.md create mode 100644 docs/ListNotificationSettings200Response.md create mode 100644 docs/ListOutboundChannels200Response.md create mode 100644 docs/ListOutboundChannels200ResponseData.md create mode 100644 docs/ListPortingOrderDocuments200Response.md create mode 100644 docs/ListPortingOrderRequirements200Response.md create mode 100644 docs/ListPortingOrders200Response.md create mode 100644 docs/ListPortingOrdersActivationJobs200Response.md create mode 100644 docs/ListPortingOrdersComments200Response.md create mode 100644 docs/ListPortingOrdersExceptionTypes200Response.md create mode 100644 docs/ListPortingPhoneNumbers200Response.md create mode 100644 docs/ListPortoutRequest200Response.md create mode 100644 docs/ListRegulartoryRequirements200Response.md create mode 100644 docs/ListRequirements200Response.md create mode 100644 docs/ListRoomCompositions200Response.md create mode 100644 docs/ListRoomParticipants200Response.md create mode 100644 docs/ListRoomRecordings200Response.md create mode 100644 docs/ListRoomSessions200Response.md create mode 100644 docs/ListRooms200Response.md create mode 100644 docs/ListSIMCardActions200Response.md create mode 100644 docs/ListSimCardDataUsageNotifications200Response.md create mode 100644 docs/ListTagsResponseDataInner.md create mode 100644 docs/MarkCommentRead200Response.md create mode 100644 docs/MarkCommentRead200ResponseData.md create mode 100644 docs/MobileOperatorNetworksGet200Response.md create mode 100644 docs/ModelInterface.md create mode 100644 docs/Network.md create mode 100644 docs/Network1.md create mode 100644 docs/NetworkCreate.md create mode 100644 docs/NetworkCreate200Response.md create mode 100644 docs/NetworkInterface.md create mode 100644 docs/NetworkInterface1.md create mode 100644 docs/NetworkInterfaceList200Response.md create mode 100644 docs/NetworkList200Response.md create mode 100644 docs/NetworksApi.md create mode 100644 docs/NotificationEventConditionParametersInner.md create mode 100644 docs/NotificationSettingParametersInner.md create mode 100644 docs/OTAUpdateGET200Response.md create mode 100644 docs/OTAUpdatesList200Response.md create mode 100644 docs/OutboundMessagePayloadMediaInner.md create mode 100644 docs/OutboundMessagePayloadToInner.md create mode 100644 docs/PWGAssignedResourcesSummary.md create mode 100644 docs/PatchGroupRequest.md create mode 100644 docs/PortingOrderRequirementDetail.md create mode 100644 docs/PortingOrderRequirementDetailRequirementType.md create mode 100644 docs/PostPortRequestComment201Response.md create mode 100644 docs/PostPortRequestCommentRequest.md create mode 100644 docs/PostPortRequestSupportingDocumentsRequest.md create mode 100644 docs/PostPortRequestSupportingDocumentsRequestDocumentsInner.md create mode 100644 docs/PostPortabilityCheck201Response.md create mode 100644 docs/PostPortabilityCheckRequest.md create mode 100644 docs/PostValidateRegistrationCodesRequest.md create mode 100644 docs/PublicInternetGateway.md create mode 100644 docs/PublicInternetGateway1.md create mode 100644 docs/PublicInternetGatewayCreate.md create mode 100644 docs/PublicInternetGatewayCreate202Response.md create mode 100644 docs/PublicInternetGatewayList200Response.md create mode 100644 docs/PublicInternetGatewayRead.md create mode 100644 docs/PublicInternetGatewaysApi.md create mode 100644 docs/Record.md create mode 100644 docs/RefreshRoomClientToken201Response.md create mode 100644 docs/RefreshRoomClientToken201ResponseData.md create mode 100644 docs/Region.md create mode 100644 docs/RegionIn.md create mode 100644 docs/RegionList200Response.md create mode 100644 docs/RegionOut.md create mode 100644 docs/RegionOutRegion.md create mode 100644 docs/RegionsApi.md create mode 100644 docs/RegulatoryRequirementsRegionInformationInner.md create mode 100644 docs/RegulatoryRequirementsRegulatoryRequirementsInner.md create mode 100644 docs/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.md create mode 100644 docs/Reply.md create mode 100644 docs/SIMCardActionsSummary.md create mode 100644 docs/SIMCardDeviceDetails.md create mode 100644 docs/SIMCardDeviceDetailsGet200Response.md create mode 100644 docs/SIMCardNetworkPreferencesGet200Response.md create mode 100644 docs/SIMCardNetworkPreferencesPutRequest.md create mode 100644 docs/SIMCardPublicIPGet200Response.md create mode 100644 docs/SearchedSIMCardGroup.md create mode 100644 docs/SetSIMCardGroupPrivateWirelessGatewayRequest.md create mode 100644 docs/SimCardActionGet200Response.md create mode 100644 docs/SimCardDataUsageNotificationsPost201Response.md create mode 100644 docs/SimCardDataUsageNotificationsPostRequest.md create mode 100644 docs/SimCardDataUsageNotificationsPostRequestThreshold.md create mode 100644 docs/SimCardGet200Response.md create mode 100644 docs/SimCardGroupActionGet200Response.md create mode 100644 docs/SimCardGroupActionsGet200Response.md create mode 100644 docs/SimCardGroupsGetAll200Response.md create mode 100644 docs/SimCardGroupsPost200Response.md create mode 100644 docs/SimCardOrdersGet200Response.md create mode 100644 docs/SimCardOrdersPost200Response.md create mode 100644 docs/SimCardOrdersPreview202Response.md create mode 100644 docs/SimCardOrdersPreviewRequest.md create mode 100644 docs/SimCardRegister202Response.md create mode 100644 docs/SimCardsGet200Response.md create mode 100644 docs/SuccessfulResponseUponAcceptingCancelFaxCommand.md create mode 100644 docs/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.md create mode 100644 docs/TeXmlRESTCommandResponse.md create mode 100644 docs/TeXmlRestCommandsApi.md create mode 100644 docs/TemplateButtonComponent.md create mode 100644 docs/TemplateButtonParameter.md create mode 100644 docs/TemplateComponent.md create mode 100644 docs/TemplateComponentType.md create mode 100644 docs/TemplateComponents.md create mode 100644 docs/TemplateParameters.md create mode 100644 docs/UpdateCallRequest.md create mode 100644 docs/UpdateCommandResult.md create mode 100644 docs/UpdateOutboundChannels200Response.md create mode 100644 docs/UpdateOutboundChannels200ResponseData.md create mode 100644 docs/UpdateOutboundChannelsDefaultResponse.md create mode 100644 docs/UpdateOutboundChannelsDefaultResponseErrorsInner.md create mode 100644 docs/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md create mode 100644 docs/UpdateOutboundChannelsRequest.md create mode 100644 docs/UpdatePortingOrder200Response.md create mode 100644 docs/UpdatePortingOrder200ResponseMeta.md create mode 100644 docs/UpdatePortoutRequestRequest.md create mode 100644 docs/UploadPortingOrderDocuments201Response.md create mode 100644 docs/UploadPortingOrderDocumentsRequest.md create mode 100644 docs/UploadPortingOrderDocumentsRequestDocumentsInner.md create mode 100644 docs/VerifiedCallsDisplayProfileCallReasonsInner.md create mode 100644 docs/VerifiedCallsDisplayProfilePhoneNumbersInner.md create mode 100644 docs/VerifyPhoneNumberCoverage201Response.md create mode 100644 docs/VerifyPhoneNumberCoverageRequest.md create mode 100644 docs/Video1.md create mode 100644 docs/ViewRoomParticipant200Response.md create mode 100644 docs/ViewRoomRecording200Response.md create mode 100644 docs/ViewRoomSession200Response.md create mode 100644 docs/VirtaulCrossConnectList200Response.md create mode 100644 docs/VirtaulCrossConnectRegionList200Response.md create mode 100644 docs/VirtualCrossConnect.md create mode 100644 docs/VirtualCrossConnect1.md create mode 100644 docs/VirtualCrossConnectCombined.md create mode 100644 docs/VirtualCrossConnectCreate.md create mode 100644 docs/VirtualCrossConnectCreate200Response.md create mode 100644 docs/VirtualCrossConnectPatch.md create mode 100644 docs/VirtualCrossConnectPatch1.md create mode 100644 docs/VirtualCrossConnectRegion.md create mode 100644 docs/VirtualCrossConnectRegion1.md create mode 100644 docs/VirtualCrossConnectRegionGet200Response.md create mode 100644 docs/VirtualCrossConnectsApi.md create mode 100644 docs/WdrDetailReportsApi.md create mode 100644 docs/WhatsAppConversationDetailRecord.md create mode 100644 docs/WhatsAppMessageTemplate.md create mode 100644 docs/WhatsAppMessageTemplate1.md create mode 100644 docs/WhatsAppMessageTemplateApi.md create mode 100644 docs/WhatsappMessageTemplateComponentsInner.md create mode 100644 docs/WhatsappMessageTemplateQualityScore.md create mode 100644 docs/WhatsappPhoneNumberWhatsappSettings.md create mode 100644 docs/WireGuardInterfacesApi.md create mode 100644 docs/WireguardAllowedIP.md create mode 100644 docs/WireguardInterface.md create mode 100644 docs/WireguardInterface1.md create mode 100644 docs/WireguardInterfaceCreate.md create mode 100644 docs/WireguardInterfaceCreate202Response.md create mode 100644 docs/WireguardInterfaceList200Response.md create mode 100644 docs/WireguardInterfaceRead.md create mode 100644 docs/WireguardPeer.md create mode 100644 docs/WireguardPeer1.md create mode 100644 docs/WireguardPeerAllowedIP.md create mode 100644 docs/WireguardPeerAllowedIPCreate.md create mode 100644 docs/WireguardPeerAllowedIPGet200Response.md create mode 100644 docs/WireguardPeerAllowedIPList200Response.md create mode 100644 docs/WireguardPeerCreate.md create mode 100644 docs/WireguardPeerCreate202Response.md create mode 100644 docs/WireguardPeerList200Response.md create mode 100644 docs/WireguardPeerPatch.md create mode 100644 docs/WirelessConnectivityLogsGet200Response.md create mode 100644 src/main/java/com/telnyx/sdk/api/DialogflowIntegrationApi.java rename src/main/java/com/telnyx/sdk/api/{FqdNsApi.java => FqdnsApi.java} (51%) rename src/main/java/com/telnyx/sdk/api/{IPsApi.java => IpsApi.java} (100%) create mode 100644 src/main/java/com/telnyx/sdk/api/NetworksApi.java create mode 100644 src/main/java/com/telnyx/sdk/api/PublicInternetGatewaysApi.java create mode 100644 src/main/java/com/telnyx/sdk/api/RegionsApi.java create mode 100644 src/main/java/com/telnyx/sdk/api/TeXmlRestCommandsApi.java create mode 100644 src/main/java/com/telnyx/sdk/api/VirtualCrossConnectsApi.java create mode 100644 src/main/java/com/telnyx/sdk/api/WdrDetailReportsApi.java create mode 100644 src/main/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApi.java create mode 100644 src/main/java/com/telnyx/sdk/api/WireGuardInterfacesApi.java create mode 100644 src/main/java/com/telnyx/sdk/model/Action.java create mode 100644 src/main/java/com/telnyx/sdk/model/ActivatePortingOrder202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/AssignPhoneNumberRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/Body.java create mode 100644 src/main/java/com/telnyx/sdk/model/BulkSIMCardAction.java create mode 100644 src/main/java/com/telnyx/sdk/model/BulkSIMCardActionDetailed.java create mode 100644 src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/BulkSetPublicIPs202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/BulkSetPublicIPsRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/BulkSimCardActionGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/BusinessIdentityContactsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/Button.java create mode 100644 src/main/java/com/telnyx/sdk/model/ButtonComponentType.java create mode 100644 src/main/java/com/telnyx/sdk/model/ButtonParameter.java create mode 100644 src/main/java/com/telnyx/sdk/model/ButtonParameterType.java create mode 100644 src/main/java/com/telnyx/sdk/model/ButtonSubtype.java create mode 100644 src/main/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/CallStreamingFailed.java create mode 100644 src/main/java/com/telnyx/sdk/model/CallStreamingFailedEvent.java create mode 100644 src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayload.java create mode 100644 src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParams.java create mode 100644 src/main/java/com/telnyx/sdk/model/CancelPortingOrder200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ConfirmPortingOrder200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateAuthenticationProvider200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateBillingGroup200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateComment200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateComment200ResponseData.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateDocument200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateManagedAccount200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateManagedAccount422Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateNotificationChannels200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateNotificationProfile200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateNotificationSetting200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreatePortingOrder201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreatePortingOrderComment201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreatePushCredentialRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateRoom201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseData.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateRoomComposition202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateWdrReport201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBody.java create mode 100644 src/main/java/com/telnyx/sdk/model/CursorPagination.java create mode 100644 src/main/java/com/telnyx/sdk/model/CursorPaginationCursors.java create mode 100644 src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponse.java create mode 100644 src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponse.java create mode 100644 src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatch.java create mode 100644 src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPost.java create mode 100644 src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchema.java create mode 100644 src/main/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/DialogflowConfig.java create mode 100644 src/main/java/com/telnyx/sdk/model/DialogflowConnection.java create mode 100644 src/main/java/com/telnyx/sdk/model/DialogflowConnectionResponse.java create mode 100644 src/main/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/Document1.java create mode 100644 src/main/java/com/telnyx/sdk/model/EndSession200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/EndSession200ResponseData.java create mode 100644 src/main/java/com/telnyx/sdk/model/FindAuthenticationProviders200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/FindNotificationsEvents200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/FindNotificationsProfiles200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/FindPortoutComments200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/FindPortoutRequest200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/Footer.java create mode 100644 src/main/java/com/telnyx/sdk/model/GatherRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetChannelZones200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetCustomerServiceRequest404Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetPhoneNumbers200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetPortingOrder200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMeta.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetUserBalance200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetWdrReports200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetWebhookDeliveries200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/GetWebhookDelivery200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/Header.java create mode 100644 src/main/java/com/telnyx/sdk/model/HttpRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/HttpResponse.java create mode 100644 src/main/java/com/telnyx/sdk/model/Image1.java create mode 100644 src/main/java/com/telnyx/sdk/model/InboundMessagePayloadCcInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/InboundMessagePayloadToInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/Interactive.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveAction.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveBody.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveButton.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveButtonReply.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveButtonType.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveFooter.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveHeader.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveProduct.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveSection.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveSectionRow.java create mode 100644 src/main/java/com/telnyx/sdk/model/InteractiveType.java create mode 100644 src/main/java/com/telnyx/sdk/model/InterfaceStatus.java create mode 100644 src/main/java/com/telnyx/sdk/model/IpItem.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListAllowedFocWindows200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListBillingGroups200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListBulkSIMCardActions200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListComments200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests401Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests403Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests422Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests500Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListDocumentLinks200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListDocuments200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListManagedAccounts200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListNotificationChannels200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListNotificationSettings200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListOutboundChannels200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseData.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortingOrderDocuments200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortingOrderRequirements200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortingOrders200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortingOrdersComments200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListPortoutRequest200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListRegulartoryRequirements200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListRequirements200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListRoomCompositions200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListRoomParticipants200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListRoomRecordings200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListRoomSessions200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListRooms200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListSIMCardActions200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ListTagsResponseDataInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/MarkCommentRead200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/MarkCommentRead200ResponseData.java create mode 100644 src/main/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ModelInterface.java create mode 100644 src/main/java/com/telnyx/sdk/model/Network.java create mode 100644 src/main/java/com/telnyx/sdk/model/Network1.java create mode 100644 src/main/java/com/telnyx/sdk/model/NetworkCreate.java create mode 100644 src/main/java/com/telnyx/sdk/model/NetworkCreate200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/NetworkInterface.java create mode 100644 src/main/java/com/telnyx/sdk/model/NetworkInterface1.java create mode 100644 src/main/java/com/telnyx/sdk/model/NetworkInterfaceList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/NetworkList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/NotificationEventConditionParametersInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/NotificationSettingParametersInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/OTAUpdateGET200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/OTAUpdatesList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadToInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/PWGAssignedResourcesSummary.java create mode 100644 src/main/java/com/telnyx/sdk/model/PatchGroupRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetail.java create mode 100644 src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementType.java create mode 100644 src/main/java/com/telnyx/sdk/model/PostPortRequestComment201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/PostPortRequestCommentRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/PostPortabilityCheck201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/PostPortabilityCheckRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/PublicInternetGateway.java create mode 100644 src/main/java/com/telnyx/sdk/model/PublicInternetGateway1.java create mode 100644 src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate.java create mode 100644 src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/PublicInternetGatewayList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/PublicInternetGatewayRead.java create mode 100644 src/main/java/com/telnyx/sdk/model/Record.java create mode 100644 src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseData.java create mode 100644 src/main/java/com/telnyx/sdk/model/Region.java create mode 100644 src/main/java/com/telnyx/sdk/model/RegionIn.java create mode 100644 src/main/java/com/telnyx/sdk/model/RegionList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/RegionOut.java create mode 100644 src/main/java/com/telnyx/sdk/model/RegionOutRegion.java create mode 100644 src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.java create mode 100644 src/main/java/com/telnyx/sdk/model/Reply.java create mode 100644 src/main/java/com/telnyx/sdk/model/SIMCardActionsSummary.java create mode 100644 src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetails.java create mode 100644 src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/SIMCardPublicIPGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SearchedSIMCardGroup.java create mode 100644 src/main/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardActionGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThreshold.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardGroupActionGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardGroupActionsGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardGroupsGetAll200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardGroupsPost200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardOrdersGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardOrdersPost200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardOrdersPreview202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardRegister202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SimCardsGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommand.java create mode 100644 src/main/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.java create mode 100644 src/main/java/com/telnyx/sdk/model/TeXmlRESTCommandResponse.java create mode 100644 src/main/java/com/telnyx/sdk/model/TemplateButtonComponent.java create mode 100644 src/main/java/com/telnyx/sdk/model/TemplateButtonParameter.java create mode 100644 src/main/java/com/telnyx/sdk/model/TemplateComponent.java create mode 100644 src/main/java/com/telnyx/sdk/model/TemplateComponentType.java create mode 100644 src/main/java/com/telnyx/sdk/model/TemplateComponents.java create mode 100644 src/main/java/com/telnyx/sdk/model/TemplateParameters.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateCallRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateCommandResult.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseData.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponse.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMeta.java create mode 100644 src/main/java/com/telnyx/sdk/model/UpdatePortoutRequestRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequest.java create mode 100644 src/main/java/com/telnyx/sdk/model/Video1.java create mode 100644 src/main/java/com/telnyx/sdk/model/ViewRoomParticipant200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ViewRoomRecording200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/ViewRoomSession200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnect.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnect1.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCombined.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1.java create mode 100644 src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecord.java create mode 100644 src/main/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1.java create mode 100644 src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplate.java create mode 100644 src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInner.java create mode 100644 src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScore.java create mode 100644 src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettings.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardAllowedIP.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardInterface.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardInterface1.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardInterfaceList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardInterfaceRead.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeer.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeer1.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIP.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreate.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerCreate.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerCreate202Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerList200Response.java create mode 100644 src/main/java/com/telnyx/sdk/model/WireguardPeerPatch.java create mode 100644 src/main/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200Response.java create mode 100644 src/test/java/com/telnyx/sdk/api/DialogflowIntegrationApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/NetworksApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/PublicInternetGatewaysApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/RegionsApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/TeXmlRestCommandsApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/VirtualCrossConnectsApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/WdrDetailReportsApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/api/WireGuardInterfacesApiTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ActionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ActivatePortingOrder202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/AssignPhoneNumberRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BodyTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BulkSIMCardActionDetailedTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BulkSIMCardActionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BulkSetPublicIPs202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BulkSetPublicIPsRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BulkSimCardActionGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/BusinessIdentityContactsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ButtonComponentTypeTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ButtonParameterTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ButtonParameterTypeTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ButtonSubtypeTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ButtonTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CallStreamingFailedEventTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParamsTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CallStreamingFailedTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CancelPortingOrder200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ConfirmPortingOrder200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateAuthenticationProvider200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateBillingGroup200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateComment200ResponseDataTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateComment200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateDocument200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateManagedAccount200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateManagedAccount422ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateNotificationChannels200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateNotificationProfile200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateNotificationSetting200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreatePortingOrder201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreatePortingOrderComment201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreatePushCredentialRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateRoom201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseDataTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateRoomComposition202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateWdrReport201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBodyTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CursorPaginationCursorsTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CursorPaginationTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatchTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPostTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchemaTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/DialogflowConfigTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/DialogflowConnectionResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/DialogflowConnectionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/Document1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/EndSession200ResponseDataTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/EndSession200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/FindAuthenticationProviders200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/FindNotificationsEvents200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/FindNotificationsProfiles200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/FindPortoutComments200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/FindPortoutRequest200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/FooterTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GatherRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetChannelZones200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetCustomerServiceRequest404ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetPhoneNumbers200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMetaTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetUserBalance200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetWdrReports200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetWebhookDeliveries200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/GetWebhookDelivery200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/HeaderTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/HttpRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/HttpResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/Image1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/InboundMessagePayloadCcInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InboundMessagePayloadToInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveActionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveBodyTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveButtonReplyTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveButtonTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveButtonTypeTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveFooterTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveHeaderTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveProductTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveSectionRowTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveSectionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InteractiveTypeTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/InterfaceStatusTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/IpItemTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListAllowedFocWindows200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListBillingGroups200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListBulkSIMCardActions200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListComments200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests401ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests403ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests422ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests500ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListDocumentLinks200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListDocuments200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListManagedAccounts200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListNotificationChannels200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListNotificationSettings200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseDataTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortingOrderDocuments200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortingOrderRequirements200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortingOrders200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortingOrdersComments200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListPortoutRequest200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListRegulartoryRequirements200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListRequirements200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListRoomCompositions200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListRoomParticipants200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListRoomRecordings200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListRoomSessions200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListRooms200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListSIMCardActions200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ListTagsResponseDataInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseDataTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ModelInterfaceTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/Network1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/NetworkCreate200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/NetworkCreateTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/NetworkInterface1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/NetworkInterfaceList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/NetworkInterfaceTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/NetworkList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/NetworkTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/NotificationEventConditionParametersInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/NotificationSettingParametersInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/OTAUpdateGET200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/OTAUpdatesList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadToInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PWGAssignedResourcesSummaryTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PatchGroupRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementTypeTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PostPortRequestComment201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PostPortRequestCommentRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PostPortabilityCheck201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PostPortabilityCheckRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PublicInternetGateway1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreateTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PublicInternetGatewayList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PublicInternetGatewayReadTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/PublicInternetGatewayTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RecordTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseDataTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegionInTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegionList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegionOutRegionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegionOutTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteriaTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ReplyTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SIMCardActionsSummaryTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SIMCardPublicIPGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SearchedSIMCardGroupTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardActionGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThresholdTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardGroupActionGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardGroupActionsGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardGroupsGetAll200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardGroupsPost200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardOrdersGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardOrdersPost200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardOrdersPreview202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardRegister202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SimCardsGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommandTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSentTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/TeXmlRESTCommandResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/TemplateButtonComponentTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/TemplateButtonParameterTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/TemplateComponentTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/TemplateComponentTypeTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/TemplateComponentsTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/TemplateParametersTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateCallRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateCommandResultTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseDataTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSourceTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMetaTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UpdatePortoutRequestRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequestTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/Video1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/ViewRoomParticipant200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ViewRoomRecording200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/ViewRoomSession200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnect1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCombinedTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreateTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatchTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/VirtualCrossConnectTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecordTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplateTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInnerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScoreTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettingsTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardAllowedIPTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardInterface1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreate202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreateTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardInterfaceList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardInterfaceReadTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardInterfaceTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeer1Test.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreateTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerCreate202ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerCreateTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerList200ResponseTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerPatchTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WireguardPeerTest.java create mode 100644 src/test/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200ResponseTest.java diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml new file mode 100644 index 00000000..1abb73f7 --- /dev/null +++ b/.github/workflows/maven.yml @@ -0,0 +1,30 @@ +# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time +# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven +# +# This file is auto-generated by OpenAPI Generator (https://openapi-generator.tech) + +name: Java CI with Maven + +on: + push: + branches: [ main, master ] + pull_request: + branches: [ main, master ] + +jobs: + build: + name: Build Telnyx API + runs-on: ubuntu-latest + strategy: + matrix: + java: [ '8' ] + steps: + - uses: actions/checkout@v2 + - name: Set up JDK + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn -B package --no-transfer-progress --file pom.xml diff --git a/.gitignore b/.gitignore index 3ed205d0..a530464a 100644 --- a/.gitignore +++ b/.gitignore @@ -19,11 +19,3 @@ hs_err_pid* target .gradle build -.travis.yml -openapitools.json - -# ide files -.idea/ - -# mac metadata files -**/.DS_Store \ No newline at end of file diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 00000000..13566b81 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 00000000..609289ef --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 00000000..aa00ffab --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 00000000..712ab9d9 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,20 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 00000000..a65738e2 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 00000000..35eb1ddf --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 5f99f1fb..e94a85d6 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,15 +1,10 @@ +.github/workflows/maven.yml .gitignore .travis.yml README.md api/openapi.yaml build.gradle build.sbt -docs/AccessControlIp.md -docs/AccessControlIpCreate.md -docs/AccessControlIpIpAddressType.md -docs/AccessControlIpResponse.md -docs/AccessControlIpUpdate.md -docs/AccessControlIpsApi.md docs/AccessIPAddressListResponseSchema.md docs/AccessIPAddressPOST.md docs/AccessIPAddressResponseSchema.md @@ -17,21 +12,18 @@ docs/AccessIPRangeListResponseSchema.md docs/AccessIPRangePOST.md docs/AccessIPRangeResponseSchema.md docs/AccessTokensApi.md -docs/ActionSuccessResponse.md -docs/ActionSuccessResponseData.md +docs/Action.md docs/ActionsParticipantsRequest.md -docs/Address.md -docs/AddressCreate.md -docs/AddressResponse.md -docs/AddressesApi.md +docs/ActionsParticipantsRequestParticipants.md +docs/ActivatePortingOrder202Response.md docs/AmdDetailRecord.md docs/AnchorsiteOverride.md docs/AnswerRequest.md +docs/AssignPhoneNumberRequest.md docs/Attempt.md docs/Audio.md docs/AuthenticationProvider.md docs/AuthenticationProviderCreate.md -docs/AuthenticationProviderResponse.md docs/AuthenticationProviderSettings.md docs/AuthenticationProvidersApi.md docs/AvailablePhoneNumber.md @@ -40,6 +32,7 @@ docs/AvailablePhoneNumbersMetadata.md docs/BillingApi.md docs/BillingGroup.md docs/BillingGroupsApi.md +docs/Body.md docs/BridgeRequest.md docs/BulkCredentialRequest.md docs/BulkCredentialResponse.md @@ -47,12 +40,22 @@ docs/BulkCredentialResponseData.md docs/BulkCredentialsApi.md docs/BulkRoomRecordingsDeleteResponse.md docs/BulkRoomRecordingsDeleteResponseData.md -docs/BulkSIMCardNetworkPreferenceResponse.md -docs/BulkUpdateSimNetworkPreference.md +docs/BulkSIMCardAction.md +docs/BulkSIMCardActionDetailed.md +docs/BulkSIMCardNetworkPreferences202Response.md +docs/BulkSIMCardNetworkPreferencesRequest.md +docs/BulkSetPublicIPs202Response.md +docs/BulkSetPublicIPsRequest.md +docs/BulkSimCardActionGet200Response.md docs/BusinessIdentity.md docs/BusinessIdentityAddress.md docs/BusinessIdentityApi.md -docs/BusinessIdentityContacts.md +docs/BusinessIdentityContactsInner.md +docs/Button.md +docs/ButtonComponentType.md +docs/ButtonParameter.md +docs/ButtonParameterType.md +docs/ButtonSubtype.md docs/CSVDownloadResponse.md docs/Call.md docs/CallAnswered.md @@ -73,7 +76,7 @@ docs/CallCost.md docs/CallCostMeta.md docs/CallCostMetaMeta.md docs/CallCostPayload.md -docs/CallCostPayloadCostParts.md +docs/CallCostPayloadCostPartsInner.md docs/CallDtmfReceived.md docs/CallDtmfReceivedEvent.md docs/CallDtmfReceivedPayload.md @@ -133,12 +136,17 @@ docs/CallReferStartedEvent.md docs/CallReferStartedPayload.md docs/CallRequest.md docs/CallRequestAnsweringMachineDetectionConfig.md +docs/CallRequestTo.md docs/CallSpeakEnded.md docs/CallSpeakEndedEvent.md docs/CallSpeakEndedPayload.md docs/CallSpeakStarted.md docs/CallSpeakStartedEvent.md docs/CallSpeakStartedPayload.md +docs/CallStreamingFailed.md +docs/CallStreamingFailedEvent.md +docs/CallStreamingFailedPayload.md +docs/CallStreamingFailedPayloadStreamParams.md docs/CallStreamingStarted.md docs/CallStreamingStartedEvent.md docs/CallStreamingStartedPayload.md @@ -146,6 +154,7 @@ docs/CallStreamingStopped.md docs/CallStreamingStoppedEvent.md docs/CallbackWebhookMeta.md docs/CallerName.md +docs/CancelPortingOrder200Response.md docs/Carrier.md docs/CdrGetSyncUsageReportResponse.md docs/CdrUsageReportResponse.md @@ -158,7 +167,6 @@ docs/ClientStateUpdateRequest.md docs/CloudflareSyncStatus.md docs/CnamListing.md docs/Comment.md -docs/CommentResponse.md docs/CompleteOTAUpdate.md docs/CompleteOTAUpdateSettings.md docs/CompositionCompleted.md @@ -216,6 +224,7 @@ docs/ConferenceSpeakStartedEvent.md docs/ConferenceStopRequest.md docs/ConferenceUnholdRequest.md docs/ConferenceUnmuteRequest.md +docs/ConfirmPortingOrder200Response.md docs/Connection.md docs/ConnectionResponse.md docs/ConnectionRtcpSettings.md @@ -224,32 +233,40 @@ docs/ConsumedData.md docs/Contact.md docs/CostInformation.md docs/CreateAndroidPushCredentialRequest.md -docs/CreateBillingGroupResponse.md +docs/CreateAuthenticationProvider200Response.md +docs/CreateBillingGroup200Response.md docs/CreateCallControlApplicationRequest.md -docs/CreateCommentPortoutRequest.md +docs/CreateComment200Response.md +docs/CreateComment200ResponseData.md docs/CreateConferenceRequest.md docs/CreateCredentialConnectionRequest.md +docs/CreateCustomerServiceRequest201Response.md +docs/CreateCustomerServiceRequestRequest.md docs/CreateDocServiceDocumentRequest.md +docs/CreateDocument200Response.md +docs/CreateDyanmicEmergencyAddress201Response.md +docs/CreateDyanmicEmergencyEndpoint201Response.md docs/CreateFaxApplicationRequest.md docs/CreateFaxApplicationRequestInbound.md docs/CreateFaxApplicationRequestOutbound.md docs/CreateFqdnConnectionRequest.md docs/CreateFqdnRequest.md docs/CreateInboundIpRequest.md +docs/CreateInventoryCoverageRequest200Response.md docs/CreateIosPushCredentialRequest.md docs/CreateIpConnectionRequest.md docs/CreateIpRequest.md -docs/CreateLedgerBillingGroupReportResponse.md +docs/CreateLedgerBillingGroupReport200Response.md docs/CreateLongCodeMessageRequest.md +docs/CreateManagedAccount200Response.md +docs/CreateManagedAccount422Response.md docs/CreateManagedAccountRequest.md docs/CreateMessageRequest.md docs/CreateMessagingHostedNumberOrderRequest.md docs/CreateMessagingProfileRequest.md -docs/CreateMobileApplicationRequest.md -docs/CreateNotificationChannel.md -docs/CreateNotificationProfile.md -docs/CreateNotificationSetting.md -docs/CreateNotificationSettingAsync.md +docs/CreateNotificationChannels200Response.md +docs/CreateNotificationProfile200Response.md +docs/CreateNotificationSetting200Response.md docs/CreateNumberBlockOrderRequest.md docs/CreateNumberOrderDocumentRequest.md docs/CreateNumberOrderRequest.md @@ -257,32 +274,21 @@ docs/CreateNumberPoolMessageRequest.md docs/CreateNumberReservationRequest.md docs/CreateOrUpdateBusinessIdentityRequest.md docs/CreateOutboundVoiceProfileRequest.md -docs/CreatePhoneNumberEmergencyEnable.md -docs/CreatePhoneNumberEmergencyRequested.md -docs/CreatePhoneNumbersEnableEmergency.md -docs/CreatePhoneNumbersJobDeletePhoneNumbers.md -docs/CreatePortOutSupportingDocumentsResponse.md -docs/CreatePortabilityCheckRequest.md docs/CreatePortingOrder.md +docs/CreatePortingOrder201Response.md docs/CreatePortingOrderComment.md -docs/CreatePortingSupportingDocsRequest.md -docs/CreatePrivateWirelessGatewayResponse.md -docs/CreatePrivateWirelessGatwewayRequest.md -docs/CreatePrivateWirelessGatwewayRequest1.md +docs/CreatePortingOrderComment201Response.md +docs/CreatePrivateWirelessGateway202Response.md +docs/CreatePrivateWirelessGatewayRequest.md +docs/CreatePushCredentialRequest.md +docs/CreateRoom201Response.md +docs/CreateRoomClientToken201Response.md +docs/CreateRoomClientToken201ResponseData.md docs/CreateRoomClientTokenRequest.md -docs/CreateRoomClientTokenResponse.md -docs/CreateRoomClientTokenResponseData.md +docs/CreateRoomComposition202Response.md docs/CreateRoomCompositionRequest.md -docs/CreateRoomCompositionResponse.md docs/CreateRoomRequest.md -docs/CreateRoomResponse.md -docs/CreateSIMCardDataUsageNotificationRequest.md -docs/CreateSIMCardValidateRequest.md docs/CreateShortCodeMessageRequest.md -docs/CreateSimCardDataUsageNotificationResponse.md -docs/CreateSimCardGroupResponse.md -docs/CreateSimCardOrderPreview.md -docs/CreateSimCardOrderResponse.md docs/CreateTexmlApplicationRequest.md docs/CreateTexmlApplicationRequestInbound.md docs/CreateTexmlApplicationRequestOutbound.md @@ -299,8 +305,9 @@ docs/CreateVerifyProfilePSD2Request.md docs/CreateVerifyProfileRequest.md docs/CreateVerifyProfileSMSRequest.md docs/CreateVerifyProfileWhatsappRequest.md -docs/CreateWdrReportResponse.md +docs/CreateWdrReport201Response.md docs/CreateWhatsAppMessageRequest.md +docs/CreateWhatsappMessageTemplateRequestBody.md docs/CredentialConnection.md docs/CredentialConnectionResponse.md docs/CredentialConnectionsApi.md @@ -312,59 +319,61 @@ docs/CsvDownload.md docs/CsvDownloadsApi.md docs/Currencies.md docs/Currency.md +docs/CursorPagination.md +docs/CursorPaginationCursors.md docs/CustomSipHeader.md +docs/CustomerFacingFQDNsGetIPResponse.md +docs/CustomerFacingFQDNsListResponse.md +docs/CustomerFacingFQDNsPatch.md +docs/CustomerFacingFQDNsPost.md +docs/CustomerFacingFQDNsResponseSchema.md docs/CustomerServiceRequest.md docs/CustomerServiceRequestAddress.md docs/CustomerServiceRequestApi.md docs/CustomerServiceRequestPhoneNumberCoverage.md docs/CustomerServiceRequestStatusChangedEvent.md docs/CustomerServiceRequestStatusChangedEventPayload.md +docs/CustomerServiceRequestsGetRequest.md docs/DateTimeComponent.md docs/DateTimeObject.md docs/DateTimeUnixEpoch.md docs/DebuggingApi.md -docs/DeleteBillingGroupResponse.md -docs/DeleteNotificationChannel.md -docs/DeleteNotificationProfiles.md -docs/DeleteNotificationSetting.md -docs/DeleteNotificationSettingAsync.md -docs/DeletePrivateWirelessGatewayResponse.md -docs/DeleteSIMCardNetworkPreferenceResponse.md -docs/DeleteSimCardDataUsageNotificationResponse.md -docs/DeleteSimCardGroupResponse.md -docs/DeleteSimCardResponse.md -docs/DeleteWdrReportResponse.md docs/DetailRecord.md docs/DetailRecordsApi.md docs/DetailRecordsSearchResponse.md -docs/DocReqsListRequirementTypesResponse.md +docs/DialogflowConfig.md +docs/DialogflowConnection.md +docs/DialogflowConnectionResponse.md +docs/DialogflowIntegrationApi.md +docs/Direction.md +docs/DocReqsListRequirementTypes200Response.md docs/DocReqsRequirement.md -docs/DocReqsRequirementResponse.md docs/DocReqsRequirementType.md docs/DocReqsRequirementTypeAcceptanceCriteria.md -docs/DocReqsRequirementTypeResponse.md +docs/DocReqsRetrieveDocumentRequirements200Response.md +docs/DocReqsRetrieveRequirementType200Response.md docs/DocServiceDocument.md docs/DocServiceDocumentAllOf.md docs/DocServiceDocumentAllOfSize.md docs/DocServiceDocumentLink.md docs/DocServiceDocumentLinkAllOf.md -docs/DocServiceDocumentResponse.md docs/DocServiceDocumentUploadInline.md docs/DocServiceDocumentUploadURL.md docs/DocServiceRecord.md docs/Document.md +docs/Document1.md docs/DocumentsApi.md docs/DownlinkData.md docs/DtmfType.md docs/DynamicEmergencyAddress.md -docs/DynamicEmergencyAddressResponse.md docs/DynamicEmergencyAddressesApi.md docs/DynamicEmergencyEndpoint.md -docs/DynamicEmergencyEndpointResponse.md docs/DynamicEmergencyEndpointsApi.md docs/Email.md docs/EmergencySettings.md docs/EncryptedMedia.md +docs/EndSession200Response.md +docs/EndSession200ResponseData.md docs/EnqueueRequest.md docs/Error.md docs/ErrorSource.md @@ -388,6 +397,13 @@ docs/FaxSendingStarted.md docs/FaxSendingStartedPayload.md docs/Feature.md docs/Filter.md +docs/FindAuthenticationProviders200Response.md +docs/FindNotificationsEvents200Response.md +docs/FindNotificationsEventsConditions200Response.md +docs/FindNotificationsProfiles200Response.md +docs/FindPortoutComments200Response.md +docs/FindPortoutRequest200Response.md +docs/Footer.md docs/ForbiddenError.md docs/ForbiddenErrorAllOf.md docs/ForbiddenErrorAllOfMeta.md @@ -398,42 +414,38 @@ docs/FqdnConnectionsApi.md docs/FqdnsApi.md docs/GCSConfiguration.md docs/GCSConfigurationData.md +docs/GatherRequest.md docs/GatherUsingAudioRequest.md docs/GatherUsingSpeakRequest.md docs/GcbChannelZone.md docs/GcbPhoneNumber.md docs/GenericError.md -docs/GetAllAccessControlIpResponse.md -docs/GetAllAddressResponse.md -docs/GetAllAuthenticationProvidersResponse.md docs/GetAllFaxApplicationsResponse.md -docs/GetAllPrivateWirelessGatewaysResponse.md -docs/GetAllSimCardGroupsResponse.md -docs/GetAllSimCardOrderResponse.md docs/GetAllTelephonyCredentialResponse.md docs/GetAllTexmlApplicationsResponse.md +docs/GetChannelZones200Response.md +docs/GetCustomerServiceRequest404Response.md docs/GetFaxResponse.md -docs/GetGcbChannelZonesRequestResponse.md -docs/GetGcbPhoneNumbersRequestResponse.md -docs/GetPrivateWirelessGatewayResponse.md +docs/GetPhoneNumbers200Response.md +docs/GetPortRequestSupportingDocuments201Response.md +docs/GetPortingOrder200Response.md +docs/GetPortingOrder200ResponseMeta.md +docs/GetPortingOrderSubRequest200Response.md +docs/GetPrivateWirelessGateways200Response.md docs/GetRecordingResponse.md -docs/GetRoomCompositionResponse.md -docs/GetRoomParticipantResponse.md -docs/GetRoomRecordingResponse.md -docs/GetRoomResponse.md -docs/GetRoomSessionResponse.md -docs/GetSimCardDataUsageNotificationResponse.md -docs/GetSimCardGroupResponse.md -docs/GetSimCardOrderResponse.md -docs/GetSimCardResponse.md docs/GetSubRequestByPortingOrder.md -docs/GetWdrReportResponse.md -docs/GetWdrReportsResponse.md +docs/GetUserBalance200Response.md +docs/GetWdrReports200Response.md +docs/GetWebhookDeliveries200Response.md +docs/GetWebhookDelivery200Response.md docs/HangupRequest.md +docs/Header.md docs/HostedNumber.md -docs/Hsm.md docs/Http.md +docs/HttpRequest.md +docs/HttpResponse.md docs/Image.md +docs/Image1.md docs/ImmutableSetLong.md docs/InboundChannelsApi.md docs/InboundFqdn.md @@ -441,20 +453,33 @@ docs/InboundIp.md docs/InboundMessage.md docs/InboundMessageEvent.md docs/InboundMessagePayload.md -docs/InboundMessagePayloadCc.md +docs/InboundMessagePayloadCcInner.md docs/InboundMessagePayloadCost.md docs/InboundMessagePayloadFrom.md -docs/InboundMessagePayloadMedia.md -docs/InboundMessagePayloadTo.md +docs/InboundMessagePayloadMediaInner.md +docs/InboundMessagePayloadToInner.md +docs/Interactive.md +docs/InteractiveAction.md +docs/InteractiveBody.md +docs/InteractiveButton.md +docs/InteractiveButtonReply.md +docs/InteractiveButtonType.md +docs/InteractiveFooter.md +docs/InteractiveHeader.md +docs/InteractiveProduct.md +docs/InteractiveSection.md +docs/InteractiveSectionRow.md +docs/InteractiveType.md +docs/InterfaceStatus.md docs/InventoryCoverage.md docs/InventoryCoverageMetadata.md -docs/InventoryCoverageResponse.md docs/InventoryLevelApi.md docs/Ip.md docs/IpAddressesApi.md docs/IpConnection.md docs/IpConnectionResponse.md docs/IpConnectionsApi.md +docs/IpItem.md docs/IpRangesApi.md docs/IpResponse.md docs/IpsApi.md @@ -463,33 +488,34 @@ docs/Language.md docs/LeaveConferenceRequest.md docs/LeaveQueueRequest.md docs/LedgerBillingGroupReport.md -docs/ListAllowedFocWindow.md +docs/ListAllowedFocWindows200Response.md docs/ListAvailablePhoneNumbersBlocksResponse.md docs/ListAvailablePhoneNumbersResponse.md -docs/ListBillingGroupsResponse.md +docs/ListBillingGroups200Response.md +docs/ListBulkSIMCardActions200Response.md docs/ListBusinessIdentitiesResponse.md docs/ListCSVDownloadsResponse.md docs/ListCallControlApplicationsResponse.md docs/ListCallEventsResponse.md -docs/ListChannelZonesByPhoneNumber.md -docs/ListCommentsResponse.md +docs/ListComments200Response.md docs/ListConferencesResponse.md docs/ListConnectionsResponse.md docs/ListCredentialConnectionsResponse.md -docs/ListCustomerServiceRequestPhoneNumberCoverage.md -docs/ListDocServiceDocumentLinksResponse.md -docs/ListDocServiceDocumentsResposne.md -docs/ListDraftPortingOrderWithoutPagination.md -docs/ListDynamicEmergencyAddresses.md -docs/ListDynamicEmergencyEndpoints.md +docs/ListCustomerServiceRequests200Response.md +docs/ListCustomerServiceRequests401Response.md +docs/ListCustomerServiceRequests403Response.md +docs/ListCustomerServiceRequests422Response.md +docs/ListCustomerServiceRequests500Response.md +docs/ListDocumentLinks200Response.md +docs/ListDocuments200Response.md +docs/ListDyanmicEmergencyAddresses200Response.md +docs/ListDyanmicEmergencyEndpoints200Response.md docs/ListFQDNConnectionsResponse.md docs/ListFQDNsResponse.md docs/ListFaxesResponse.md -docs/ListInboundChannels.md -docs/ListInboundChannelsData.md docs/ListIpConnectionsResponse.md docs/ListIpsResponse.md -docs/ListManagedAccountsResponse.md +docs/ListManagedAccounts200Response.md docs/ListMessagingHostedNumberOrderResponse.md docs/ListMessagingProfileMetricsResponse.md docs/ListMessagingProfilePhoneNumbersResponse.md @@ -497,57 +523,57 @@ docs/ListMessagingProfileShortCodesResponse.md docs/ListMessagingProfileUrlDomainsResponse.md docs/ListMessagingProfilesResponse.md docs/ListMessagingSettingsResponse.md -docs/ListNotificationChannels.md -docs/ListNotificationEvenConditions.md -docs/ListNotificationEvents.md -docs/ListNotificationProfiles.md -docs/ListNotificationSettings.md +docs/ListNotificationChannels200Response.md +docs/ListNotificationSettings200Response.md docs/ListNumberBlockOrdersResponse.md docs/ListNumberOrderDocumentsResponse.md docs/ListNumberOrderPhoneNumbersResponse.md docs/ListNumberOrdersResponse.md docs/ListNumberReservationsResponse.md docs/ListOfMediaResourcesResponse.md +docs/ListOutboundChannels200Response.md +docs/ListOutboundChannels200ResponseData.md docs/ListOutboundVoiceProfilesResponse.md docs/ListParticipantsResponse.md docs/ListPhoneNumberBlocksBackgroundJobsResponse.md docs/ListPhoneNumbersBackgroundJobsResponse.md docs/ListPhoneNumbersResponse.md docs/ListPhoneNumbersWithVoiceSettingsResponse.md -docs/ListPortingOrder.md -docs/ListPortingOrderDocuments.md -docs/ListPortingOrdersActivationJobs.md -docs/ListPortingOrdersComments.md -docs/ListPortingOrdersExceptionTypes.md -docs/ListPortingPhoneNumbers.md -docs/ListPortoutComments.md -docs/ListPortoutResponse.md +docs/ListPortingOrderDocuments200Response.md +docs/ListPortingOrderRequirements200Response.md +docs/ListPortingOrders200Response.md +docs/ListPortingOrdersActivationJobs200Response.md +docs/ListPortingOrdersComments200Response.md +docs/ListPortingOrdersExceptionTypes200Response.md +docs/ListPortingPhoneNumbers200Response.md +docs/ListPortoutRequest200Response.md docs/ListQueueCallsResponse.md docs/ListRecordingsResponse.md -docs/ListRegulatoryRequirements.md -docs/ListRequirementsResponse.md -docs/ListRoomCompositionsResponse.md -docs/ListRoomParticipantsResponse.md -docs/ListRoomRecordingsResponse.md -docs/ListRoomSessionsResponse.md -docs/ListRoomsResponse.md +docs/ListRegulartoryRequirements200Response.md +docs/ListRequirements200Response.md +docs/ListRoomCompositions200Response.md +docs/ListRoomParticipants200Response.md +docs/ListRoomRecordings200Response.md +docs/ListRoomSessions200Response.md +docs/ListRooms200Response.md +docs/ListSIMCardActions200Response.md docs/ListShortCodesResponse.md +docs/ListSimCardDataUsageNotifications200Response.md docs/ListSubNumberOrdersResponse.md docs/ListTagsResponse.md -docs/ListTagsResponseData.md +docs/ListTagsResponseDataInner.md docs/ListVerificationsResponse.md docs/ListVerifiedCallsDisplayProfilesResponse.md docs/ListVerifyProfilesResponse.md -docs/ListWebhookDeliveriesResponse.md docs/ListWhatsAppBusinessAccountsResponse.md docs/ListWhatsAppPhoneNumbersResponse.md -docs/LocalizableParam.md docs/Location.md docs/Loopcount.md docs/ManagedAccount.md docs/ManagedAccountBalance.md -docs/ManagedAccountResponse.md docs/ManagedAccountsApi.md +docs/MarkCommentRead200Response.md +docs/MarkCommentRead200ResponseData.md docs/MarkMessageAsReadRequestBody.md docs/MdrDeleteDetailReportResponse.md docs/MdrDeleteUsageReportsResponse.md @@ -593,23 +619,31 @@ docs/MessagingUrlDomain.md docs/MessagingUrlDomainsApi.md docs/Meta.md docs/Metadata.md -docs/MobileApplication.md -docs/MobileApplicationResponse.md -docs/MobileApplicationsApi.md docs/MobileOperatorNetwork.md docs/MobileOperatorNetworkPreferencesRequest.md docs/MobileOperatorNetworkPreferencesResponse.md docs/MobileOperatorNetworksApi.md +docs/MobileOperatorNetworksGet200Response.md +docs/ModelInterface.md docs/Money.md +docs/Network.md +docs/Network1.md +docs/NetworkCreate.md +docs/NetworkCreate200Response.md +docs/NetworkInterface.md +docs/NetworkInterface1.md +docs/NetworkInterfaceList200Response.md +docs/NetworkList200Response.md +docs/NetworksApi.md docs/NewBillingGroup.md docs/NewLedgerBillingGroupReport.md docs/NotificationChannel.md docs/NotificationEvent.md docs/NotificationEventCondition.md -docs/NotificationEventConditionParameters.md +docs/NotificationEventConditionParametersInner.md docs/NotificationProfile.md docs/NotificationSetting.md -docs/NotificationSettingParameters.md +docs/NotificationSettingParametersInner.md docs/NotificationsApi.md docs/NumberBackgroundJobsApi.md docs/NumberBlockOrder.md @@ -640,7 +674,8 @@ docs/NumberReservation.md docs/NumberReservationResponse.md docs/NumberReservationsApi.md docs/NumberSearchApi.md -docs/OTAUpdateResponse.md +docs/OTAUpdateGET200Response.md +docs/OTAUpdatesList200Response.md docs/Organization.md docs/OtaUpdatesApi.md docs/OutboundCallRecording.md @@ -650,12 +685,12 @@ docs/OutboundMessageEvent.md docs/OutboundMessageEventMeta.md docs/OutboundMessagePayload.md docs/OutboundMessagePayloadFrom.md -docs/OutboundMessagePayloadMedia.md -docs/OutboundMessagePayloadTo.md +docs/OutboundMessagePayloadMediaInner.md +docs/OutboundMessagePayloadToInner.md docs/OutboundVoiceProfile.md docs/OutboundVoiceProfileResponse.md docs/OutboundVoiceProfilesApi.md -docs/PUTSIMCardNetworkPreferenceResponse.md +docs/PWGAssignedResourcesSummary.md docs/PaginationMeta.md docs/PaginationMetaSimple.md docs/Participant.md @@ -666,10 +701,11 @@ docs/ParticipantJoinedPayload.md docs/ParticipantLeft.md docs/ParticipantLeftEvent.md docs/ParticipantLeftPayload.md +docs/PatchGroupRequest.md docs/PatchRoomRequest.md -docs/PatchRoomResponse.md docs/PauseRecordingRequest.md docs/Phone.md +docs/PhoneNumber.md docs/PhoneNumberBlocksJob.md docs/PhoneNumberBlocksJobDeletePhoneNumberBlock.md docs/PhoneNumberBlocksJobDeletePhoneNumberBlockRequest.md @@ -677,6 +713,7 @@ docs/PhoneNumberBlocksJobFailedOperation.md docs/PhoneNumberBlocksJobSuccessfulOperation.md docs/PhoneNumberDeletedDetailed.md docs/PhoneNumberDetailed.md +docs/PhoneNumberEnableEmergency.md docs/PhoneNumberEnableEmergencyRequest.md docs/PhoneNumberPortingApi.md docs/PhoneNumberRegulatoryRequirement.md @@ -687,7 +724,9 @@ docs/PhoneNumberWithMessagingSettings.md docs/PhoneNumberWithMessagingSettingsFeatures.md docs/PhoneNumberWithVoiceSettings.md docs/PhoneNumbersBulkUpdateError.md +docs/PhoneNumbersEnableEmergency.md docs/PhoneNumbersJob.md +docs/PhoneNumbersJobDeletePhoneNumbers.md docs/PhoneNumbersJobDeletePhoneNumbersRequest.md docs/PhoneNumbersJobFailedOperation.md docs/PhoneNumbersJobPendingOperation.md @@ -698,11 +737,9 @@ docs/PhoneNumbersJobUpdatePhoneNumbers.md docs/PhoneNumbersJobUpdatePhoneNumbersRequest.md docs/PlayAudioUrlRequest.md docs/PlaybackStopRequest.md -docs/PortOutListSupportingDocumentsResponse.md docs/PortOutSupportingDocument.md docs/Portability.md docs/PortabilityCheckDetails.md -docs/PortabilityCheckResponse.md docs/PortabilityStatus.md docs/PortingOrder.md docs/PortingOrderActivationSettings.md @@ -710,13 +747,14 @@ docs/PortingOrderActivationStatus.md docs/PortingOrderApi.md docs/PortingOrderDocument.md docs/PortingOrderDocuments.md -docs/PortingOrderDocumentsCreated.md docs/PortingOrderEndUser.md docs/PortingOrderEndUserAdmin.md docs/PortingOrderEndUserLocation.md docs/PortingOrderMisc.md docs/PortingOrderPhoneNumberConfiguration.md docs/PortingOrderRequirement.md +docs/PortingOrderRequirementDetail.md +docs/PortingOrderRequirementDetailRequirementType.md docs/PortingOrderStatus.md docs/PortingOrderType.md docs/PortingOrderUserFeedback.md @@ -726,20 +764,29 @@ docs/PortingOrdersComment.md docs/PortingOrdersExceptionType.md docs/PortingPhoneNumber.md docs/PortoutComment.md -docs/PortoutCommentResposne.md docs/PortoutDetails.md -docs/PortoutResponse.md -docs/PortoutsIdSupportingDocumentsDocuments.md +docs/PostPortRequestComment201Response.md +docs/PostPortRequestCommentRequest.md +docs/PostPortRequestSupportingDocumentsRequest.md +docs/PostPortRequestSupportingDocumentsRequestDocumentsInner.md +docs/PostPortabilityCheck201Response.md +docs/PostPortabilityCheckRequest.md +docs/PostValidateRegistrationCodesRequest.md docs/PrivateWirelessGateway.md docs/PrivateWirelessGatewayRequest.md docs/PrivateWirelessGatewayStatus.md docs/PrivateWirelessGatewaysApi.md docs/ProgrammableFaxApplicationsApi.md docs/ProgrammableFaxCommandsApi.md +docs/PublicInternetGateway.md +docs/PublicInternetGateway1.md +docs/PublicInternetGatewayCreate.md +docs/PublicInternetGatewayCreate202Response.md +docs/PublicInternetGatewayList200Response.md +docs/PublicInternetGatewayRead.md +docs/PublicInternetGatewaysApi.md docs/PushCredential.md -docs/PushCredentialResponse.md docs/PushCredentialsApi.md -docs/PutNetworkPreferenceRequest.md docs/Queue.md docs/QueueCall.md docs/QueueCallResponse.md @@ -747,7 +794,7 @@ docs/QueueCommandsApi.md docs/QueueResponse.md docs/ReadComment.md docs/ReadCommentAllOf.md -docs/ReadCommentResponse.md +docs/Record.md docs/Recording.md docs/RecordingCompleted.md docs/RecordingCompletedEvent.md @@ -759,22 +806,28 @@ docs/RecordingStartedPayload.md docs/RecordingsCommandsApi.md docs/ReferRequest.md docs/RefreshFaxResponse.md +docs/RefreshRoomClientToken201Response.md +docs/RefreshRoomClientToken201ResponseData.md docs/RefreshRoomClientTokenRequest.md -docs/RefreshRoomClientTokenResponse.md -docs/RefreshRoomClientTokenResponseData.md +docs/Region.md +docs/RegionIn.md docs/RegionInformation.md +docs/RegionList200Response.md +docs/RegionOut.md +docs/RegionOutRegion.md +docs/RegionsApi.md docs/RegisterCallApi.md docs/RegisterCallCommandResult.md docs/RegisterCallRequest.md docs/RegisterCallResponse.md -docs/RegisterSimCardsResponse.md docs/RegulatoryRequirements.md -docs/RegulatoryRequirementsAcceptanceCriteria.md -docs/RegulatoryRequirementsRegionInformation.md -docs/RegulatoryRequirementsRegulatoryRequirements.md +docs/RegulatoryRequirementsRegionInformationInner.md +docs/RegulatoryRequirementsRegulatoryRequirementsInner.md +docs/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.md docs/RejectRequest.md docs/ReplacedLinkClick.md docs/ReplacedLinkClickEvent.md +docs/Reply.md docs/ReportingApi.md docs/ReportsApi.md docs/RequirementTypesApi.md @@ -784,24 +837,13 @@ docs/ResourceNotFoundError.md docs/ResourceNotFoundErrorAllOf.md docs/ResourceNotFoundErrorAllOfMeta.md docs/ResumeRecordingRequest.md -docs/RetrieveBillingGroupResponse.md docs/RetrieveCallStatusResponse.md -docs/RetrieveLedgerBillingGroupReportResponse.md docs/RetrieveMessagingHostedNumberOrderResponse.md docs/RetrieveMessagingHostedNumberResponse.md docs/RetrieveMessagingProfileMetricsResponse.md docs/RetrieveMessagingSettingsResponse.md -docs/RetrieveNotificationChannel.md -docs/RetrieveNotificationProfile.md -docs/RetrieveNotificationSetting.md -docs/RetrievePhoneNumberBlocksJob.md docs/RetrievePhoneNumberVoiceResponse.md -docs/RetrievePhoneNumbersJob.md docs/RetrieveVerificationResponse.md -docs/RetrieveWebhookDelivery.md -docs/RetrieveWhatsAppBusinessAccount.md -docs/RetrieveWhatsAppPhoneNumber.md -docs/RetrieveWhatsAppProfilePhoto.md docs/Room.md docs/RoomComposition.md docs/RoomCompositionsApi.md @@ -815,36 +857,35 @@ docs/RoomsApi.md docs/RoomsClientTokensApi.md docs/SIMCard.md docs/SIMCardAction.md -docs/SIMCardActionResponse.md docs/SIMCardActionStatus.md +docs/SIMCardActionsSummary.md docs/SIMCardCurrentBillingPeriodConsumedData.md docs/SIMCardCurrentDeviceLocation.md docs/SIMCardDataLimit.md +docs/SIMCardDeviceDetails.md +docs/SIMCardDeviceDetailsGet200Response.md docs/SIMCardGroup.md docs/SIMCardGroupAction.md -docs/SIMCardGroupActionResponse.md docs/SIMCardGroupActionSettings.md docs/SIMCardGroupCreate.md docs/SIMCardGroupDataLimit.md docs/SIMCardGroupPatch.md docs/SIMCardNetworkPreference.md docs/SIMCardNetworkPreferenceWithOTAUpdates.md -docs/SIMCardNetworkPreferenceWithOTAUpdatesResponse.md +docs/SIMCardNetworkPreferencesGet200Response.md +docs/SIMCardNetworkPreferencesPutRequest.md docs/SIMCardOrder.md docs/SIMCardOrderCost.md docs/SIMCardOrderOrderAddress.md docs/SIMCardOrderPreview.md docs/SIMCardOrderPreviewTotalCost.md -docs/SIMCardOrdersPreviewResponse.md docs/SIMCardPublicIP.md -docs/SIMCardPublicIPResponse.md +docs/SIMCardPublicIPGet200Response.md docs/SIMCardRegistration.md docs/SIMCardRegistrationCodeValidation.md docs/SIMCardRegistrationCodeValidations.md docs/SIMCardStatus.md -docs/SearchMobileOperatorNetworksResponse.md -docs/SearchOTAUpdateResponse.md -docs/SearchSimCardsResponse.md +docs/SearchedSIMCardGroup.md docs/SendDTMFRequest.md docs/SendFaxRequest.md docs/SendFaxResponse.md @@ -855,29 +896,36 @@ docs/SessionEndedPayload.md docs/SessionStarted.md docs/SessionStartedEvent.md docs/SessionStartedPayload.md +docs/SetSIMCardGroupPrivateWirelessGatewayRequest.md docs/Settings.md docs/ShortCode.md docs/ShortCodeResponse.md docs/ShortCodesApi.md docs/ShowBusinessIdentityResponse.md -docs/ShowCustomerServiceRequest.md -docs/ShowPortingOrder.md -docs/ShowPortingOrderComment.md -docs/ShowPortingOrderMeta.md -docs/ShowPortingOrdersActivationJob.md docs/ShowVerifiedCallsDisplayProfileResponse.md -docs/SimCardActionCollectionResponse.md +docs/SimCardActionGet200Response.md docs/SimCardActionsApi.md docs/SimCardDataUsageNotification.md -docs/SimCardDataUsageNotificationCollection.md -docs/SimCardDataUsageNotificationsThreshold.md -docs/SimCardGroupActionCollectionResponse.md +docs/SimCardDataUsageNotificationsPost201Response.md +docs/SimCardDataUsageNotificationsPostRequest.md +docs/SimCardDataUsageNotificationsPostRequestThreshold.md +docs/SimCardGet200Response.md +docs/SimCardGroupActionGet200Response.md docs/SimCardGroupActionsApi.md +docs/SimCardGroupActionsGet200Response.md docs/SimCardGroupsApi.md +docs/SimCardGroupsGetAll200Response.md +docs/SimCardGroupsPost200Response.md docs/SimCardOrderCreate.md docs/SimCardOrdersApi.md +docs/SimCardOrdersGet200Response.md +docs/SimCardOrdersPost200Response.md +docs/SimCardOrdersPreview202Response.md +docs/SimCardOrdersPreviewRequest.md +docs/SimCardRegister202Response.md docs/SimCardUsageDetailRecord.md docs/SimCardsApi.md +docs/SimCardsGet200Response.md docs/SimpleSIMCard.md docs/SimpleSIMCardDataLimit.md docs/SimplifiedOTAUpdate.md @@ -894,13 +942,22 @@ docs/StopStreamingRequest.md docs/SubNumberOrder.md docs/SubNumberOrderRegulatoryRequirement.md docs/SubNumberOrderResponse.md -docs/SubRequestByPortingOrder.md +docs/SuccessfulResponseUponAcceptingCancelFaxCommand.md +docs/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.md docs/TeXmlApplicationsApi.md +docs/TeXmlRESTCommandResponse.md +docs/TeXmlRestCommandsApi.md docs/TelephonyCredential.md docs/TelephonyCredentialCreateRequest.md docs/TelephonyCredentialResponse.md docs/TelephonyCredentialUpdateRequest.md docs/Template.md +docs/TemplateButtonComponent.md +docs/TemplateButtonParameter.md +docs/TemplateComponent.md +docs/TemplateComponentType.md +docs/TemplateComponents.md +docs/TemplateParameters.md docs/TexmlApplication.md docs/TexmlApplicationResponse.md docs/Text.md @@ -922,43 +979,42 @@ docs/UnprocessableEntityError.md docs/UnprocessableEntityErrorAllOf.md docs/UnprocessableEntityErrorAllOfMeta.md docs/UnprocessableEntityErrorAllOfSource.md -docs/UnprocessableManagedAccountEntity.md docs/UpdateAuthenticationProviderRequest.md docs/UpdateBillingGroup.md -docs/UpdateBillingGroupResponse.md docs/UpdateCallControlApplicationRequest.md -docs/UpdateChannelZone.md +docs/UpdateCallRequest.md +docs/UpdateCommandResult.md docs/UpdateConferenceRequest.md docs/UpdateCredentialConnectionRequest.md docs/UpdateFaxApplicationRequest.md docs/UpdateFqdnConnectionRequest.md docs/UpdateFqdnRequest.md -docs/UpdateInbouncChannels.md -docs/UpdateInbouncChannelsData.md -docs/UpdateInboundChannels.md docs/UpdateIpConnectionRequest.md docs/UpdateIpRequest.md docs/UpdateManagedAccountRequest.md docs/UpdateMediaRequest.md docs/UpdateMessagingProfileRequest.md -docs/UpdateNotificationChannel.md -docs/UpdateNotificationProfile.md docs/UpdateNumberOrderDocumentRequest.md docs/UpdateNumberOrderPhoneNumberRequest.md docs/UpdateNumberOrderRequest.md +docs/UpdateOutboundChannels200Response.md +docs/UpdateOutboundChannels200ResponseData.md +docs/UpdateOutboundChannelsDefaultResponse.md +docs/UpdateOutboundChannelsDefaultResponseErrorsInner.md +docs/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md +docs/UpdateOutboundChannelsRequest.md docs/UpdateOutboundVoiceProfileRequest.md docs/UpdatePhoneNumberMessagingSettingsRequest.md docs/UpdatePhoneNumberRequest.md docs/UpdatePhoneNumberVoiceSettingsRequest.md docs/UpdatePortingOrder.md +docs/UpdatePortingOrder200Response.md +docs/UpdatePortingOrder200ResponseMeta.md docs/UpdatePortingOrderActivationSettings.md docs/UpdatePortingOrderRequirement.md -docs/UpdatePortoutStatusRequest.md +docs/UpdatePortoutRequestRequest.md docs/UpdateRegulatoryRequirement.md docs/UpdateShortCodeRequest.md -docs/UpdateSimCardDataUsageNotificationResponse.md -docs/UpdateSimCardGroupResponse.md -docs/UpdateSimCardResponse.md docs/UpdateSubNumberOrderRequest.md docs/UpdateTexmlApplicationRequest.md docs/UpdateVerifiedCallsDisplayProfileRequest.md @@ -968,21 +1024,18 @@ docs/UpdateVerifyProfilePSD2Request.md docs/UpdateVerifyProfileRequest.md docs/UpdateVerifyProfileSMSRequest.md docs/UpdateVerifyProfileWhatsappRequest.md -docs/UpdateWhatsAppPhoneNumber.md -docs/UpdateWhatsAppProfilePhoto.md docs/UpdateWhatsappPhoneNumberAboutRequest.md docs/UpdateWhatsappPhoneNumberRequest.md docs/UplinkData.md docs/UploadMedia.md docs/UploadMediaRequest.md +docs/UploadPortingOrderDocuments201Response.md +docs/UploadPortingOrderDocumentsRequest.md +docs/UploadPortingOrderDocumentsRequestDocumentsInner.md docs/Url.md docs/UrlShortenerSettings.md docs/UsagePaymentMethod.md docs/UserBalance.md -docs/UserBalanceResponse.md -docs/ValidateAddressRequest.md -docs/ValidateAddressResponse.md -docs/ValidateAddressResult.md docs/Verification.md docs/VerificationProfileRecordType.md docs/VerificationRecordType.md @@ -991,10 +1044,12 @@ docs/VerificationType.md docs/VerifiedCallsDisplayProfile.md docs/VerifiedCallsDisplayProfileApi.md docs/VerifiedCallsDisplayProfileBusinessIdentity.md -docs/VerifiedCallsDisplayProfileCallReasons.md -docs/VerifiedCallsDisplayProfilePhoneNumbers.md +docs/VerifiedCallsDisplayProfileCallReasonsInner.md +docs/VerifiedCallsDisplayProfilePhoneNumbersInner.md docs/VerifyApi.md docs/VerifyDetailRecord.md +docs/VerifyPhoneNumberCoverage201Response.md +docs/VerifyPhoneNumberCoverageRequest.md docs/VerifyProfileCallResponse.md docs/VerifyProfileFlashcallResponse.md docs/VerifyProfilePSD2Response.md @@ -1006,25 +1061,49 @@ docs/VerifyVerificationCodeRequest.md docs/VerifyVerificationCodeResponse.md docs/VerifyVerificationCodeResponseData.md docs/Video.md +docs/Video1.md docs/VideoRegion.md +docs/ViewRoomParticipant200Response.md +docs/ViewRoomRecording200Response.md +docs/ViewRoomSession200Response.md +docs/VirtaulCrossConnectList200Response.md +docs/VirtaulCrossConnectRegionList200Response.md +docs/VirtualCrossConnect.md +docs/VirtualCrossConnect1.md +docs/VirtualCrossConnectCombined.md +docs/VirtualCrossConnectCreate.md +docs/VirtualCrossConnectCreate200Response.md +docs/VirtualCrossConnectPatch.md +docs/VirtualCrossConnectPatch1.md +docs/VirtualCrossConnectRegion.md +docs/VirtualCrossConnectRegion1.md +docs/VirtualCrossConnectRegionGet200Response.md +docs/VirtualCrossConnectsApi.md +docs/WdrDetailReportsApi.md docs/WdrReport.md docs/WdrReportRequest.md docs/WebhookApiVersion.md docs/WebhookDelivery.md docs/WebhookDeliveryWebhook.md docs/WebhooksApi.md +docs/WhatsAppBusinessAccount.md docs/WhatsAppBusinessAccountApi.md docs/WhatsAppContactAddress.md docs/WhatsAppContactsApi.md +docs/WhatsAppConversationDetailRecord.md docs/WhatsAppDetailRecord.md docs/WhatsAppDetailRecordReport.md docs/WhatsAppDetailReportResponse.md docs/WhatsAppDetailReportsApi.md docs/WhatsAppGetAllDetailReportResponse.md docs/WhatsAppMediaApi.md -docs/WhatsAppMessageResponse.md +docs/WhatsAppMessageTemplate.md +docs/WhatsAppMessageTemplate1.md +docs/WhatsAppMessageTemplateApi.md docs/WhatsAppMessagesApi.md +docs/WhatsAppPhoneNumber.md docs/WhatsAppPhoneNumberApi.md +docs/WhatsAppProfilePhoto.md docs/WhatsAppReportsReq.md docs/WhatsAppUsageAggregation.md docs/WhatsAppUsageAggregationsApi.md @@ -1032,10 +1111,32 @@ docs/WhatsAppUsageAggregationsResponseContainer.md docs/WhatsAppUser.md docs/WhatsappBusinessAccount.md docs/WhatsappBusinessAccountWhatsappSettings.md +docs/WhatsappMessageTemplate.md +docs/WhatsappMessageTemplateComponentsInner.md +docs/WhatsappMessageTemplateQualityScore.md docs/WhatsappPhoneNumber.md +docs/WhatsappPhoneNumberWhatsappSettings.md docs/WhatsappProfilePhoto.md +docs/WireGuardInterfacesApi.md +docs/WireguardAllowedIP.md +docs/WireguardInterface.md +docs/WireguardInterface1.md +docs/WireguardInterfaceCreate.md +docs/WireguardInterfaceCreate202Response.md +docs/WireguardInterfaceList200Response.md +docs/WireguardInterfaceRead.md +docs/WireguardPeer.md +docs/WireguardPeer1.md +docs/WireguardPeerAllowedIP.md +docs/WireguardPeerAllowedIPCreate.md +docs/WireguardPeerAllowedIPGet200Response.md +docs/WireguardPeerAllowedIPList200Response.md +docs/WireguardPeerCreate.md +docs/WireguardPeerCreate202Response.md +docs/WireguardPeerList200Response.md +docs/WireguardPeerPatch.md docs/WirelessConnectivityLog.md -docs/WirelessConnectivityLogCollectionResponse.md +docs/WirelessConnectivityLogsGet200Response.md docs/WirelessCost.md docs/WirelessRate.md git_push.sh @@ -1058,9 +1159,7 @@ src/main/java/com/telnyx/sdk/RFC3339DateFormat.java src/main/java/com/telnyx/sdk/ServerConfiguration.java src/main/java/com/telnyx/sdk/ServerVariable.java src/main/java/com/telnyx/sdk/StringUtil.java -src/main/java/com/telnyx/sdk/api/AccessControlIpsApi.java src/main/java/com/telnyx/sdk/api/AccessTokensApi.java -src/main/java/com/telnyx/sdk/api/AddressesApi.java src/main/java/com/telnyx/sdk/api/AuthenticationProvidersApi.java src/main/java/com/telnyx/sdk/api/BillingApi.java src/main/java/com/telnyx/sdk/api/BillingGroupsApi.java @@ -1080,6 +1179,7 @@ src/main/java/com/telnyx/sdk/api/CsvDownloadsApi.java src/main/java/com/telnyx/sdk/api/CustomerServiceRequestApi.java src/main/java/com/telnyx/sdk/api/DebuggingApi.java src/main/java/com/telnyx/sdk/api/DetailRecordsApi.java +src/main/java/com/telnyx/sdk/api/DialogflowIntegrationApi.java src/main/java/com/telnyx/sdk/api/DocumentsApi.java src/main/java/com/telnyx/sdk/api/DynamicEmergencyAddressesApi.java src/main/java/com/telnyx/sdk/api/DynamicEmergencyEndpointsApi.java @@ -1099,8 +1199,8 @@ src/main/java/com/telnyx/sdk/api/MessagesApi.java src/main/java/com/telnyx/sdk/api/MessagingHostedNumberApi.java src/main/java/com/telnyx/sdk/api/MessagingProfilesApi.java src/main/java/com/telnyx/sdk/api/MessagingUrlDomainsApi.java -src/main/java/com/telnyx/sdk/api/MobileApplicationsApi.java src/main/java/com/telnyx/sdk/api/MobileOperatorNetworksApi.java +src/main/java/com/telnyx/sdk/api/NetworksApi.java src/main/java/com/telnyx/sdk/api/NotificationsApi.java src/main/java/com/telnyx/sdk/api/NumberBackgroundJobsApi.java src/main/java/com/telnyx/sdk/api/NumberBlockOrdersApi.java @@ -1119,9 +1219,11 @@ src/main/java/com/telnyx/sdk/api/PortingOrderApi.java src/main/java/com/telnyx/sdk/api/PrivateWirelessGatewaysApi.java src/main/java/com/telnyx/sdk/api/ProgrammableFaxApplicationsApi.java src/main/java/com/telnyx/sdk/api/ProgrammableFaxCommandsApi.java +src/main/java/com/telnyx/sdk/api/PublicInternetGatewaysApi.java src/main/java/com/telnyx/sdk/api/PushCredentialsApi.java src/main/java/com/telnyx/sdk/api/QueueCommandsApi.java src/main/java/com/telnyx/sdk/api/RecordingsCommandsApi.java +src/main/java/com/telnyx/sdk/api/RegionsApi.java src/main/java/com/telnyx/sdk/api/RegisterCallApi.java src/main/java/com/telnyx/sdk/api/ReportingApi.java src/main/java/com/telnyx/sdk/api/ReportsApi.java @@ -1140,62 +1242,71 @@ src/main/java/com/telnyx/sdk/api/SimCardGroupsApi.java src/main/java/com/telnyx/sdk/api/SimCardOrdersApi.java src/main/java/com/telnyx/sdk/api/SimCardsApi.java src/main/java/com/telnyx/sdk/api/TeXmlApplicationsApi.java +src/main/java/com/telnyx/sdk/api/TeXmlRestCommandsApi.java src/main/java/com/telnyx/sdk/api/VerifiedCallsDisplayProfileApi.java src/main/java/com/telnyx/sdk/api/VerifyApi.java +src/main/java/com/telnyx/sdk/api/VirtualCrossConnectsApi.java +src/main/java/com/telnyx/sdk/api/WdrDetailReportsApi.java src/main/java/com/telnyx/sdk/api/WebhooksApi.java src/main/java/com/telnyx/sdk/api/WhatsAppBusinessAccountApi.java src/main/java/com/telnyx/sdk/api/WhatsAppContactsApi.java src/main/java/com/telnyx/sdk/api/WhatsAppDetailReportsApi.java src/main/java/com/telnyx/sdk/api/WhatsAppMediaApi.java +src/main/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApi.java src/main/java/com/telnyx/sdk/api/WhatsAppMessagesApi.java src/main/java/com/telnyx/sdk/api/WhatsAppPhoneNumberApi.java src/main/java/com/telnyx/sdk/api/WhatsAppUsageAggregationsApi.java +src/main/java/com/telnyx/sdk/api/WireGuardInterfacesApi.java src/main/java/com/telnyx/sdk/auth/ApiKeyAuth.java src/main/java/com/telnyx/sdk/auth/Authentication.java src/main/java/com/telnyx/sdk/auth/HttpBasicAuth.java src/main/java/com/telnyx/sdk/auth/HttpBearerAuth.java src/main/java/com/telnyx/sdk/model/AbstractOpenApiSchema.java -src/main/java/com/telnyx/sdk/model/AccessControlIp.java -src/main/java/com/telnyx/sdk/model/AccessControlIpCreate.java -src/main/java/com/telnyx/sdk/model/AccessControlIpIpAddressType.java -src/main/java/com/telnyx/sdk/model/AccessControlIpResponse.java -src/main/java/com/telnyx/sdk/model/AccessControlIpUpdate.java src/main/java/com/telnyx/sdk/model/AccessIPAddressListResponseSchema.java src/main/java/com/telnyx/sdk/model/AccessIPAddressPOST.java src/main/java/com/telnyx/sdk/model/AccessIPAddressResponseSchema.java src/main/java/com/telnyx/sdk/model/AccessIPRangeListResponseSchema.java src/main/java/com/telnyx/sdk/model/AccessIPRangePOST.java src/main/java/com/telnyx/sdk/model/AccessIPRangeResponseSchema.java -src/main/java/com/telnyx/sdk/model/ActionSuccessResponse.java -src/main/java/com/telnyx/sdk/model/ActionSuccessResponseData.java +src/main/java/com/telnyx/sdk/model/Action.java src/main/java/com/telnyx/sdk/model/ActionsParticipantsRequest.java -src/main/java/com/telnyx/sdk/model/Address.java -src/main/java/com/telnyx/sdk/model/AddressCreate.java -src/main/java/com/telnyx/sdk/model/AddressResponse.java +src/main/java/com/telnyx/sdk/model/ActionsParticipantsRequestParticipants.java +src/main/java/com/telnyx/sdk/model/ActivatePortingOrder202Response.java src/main/java/com/telnyx/sdk/model/AmdDetailRecord.java src/main/java/com/telnyx/sdk/model/AnchorsiteOverride.java src/main/java/com/telnyx/sdk/model/AnswerRequest.java +src/main/java/com/telnyx/sdk/model/AssignPhoneNumberRequest.java src/main/java/com/telnyx/sdk/model/Attempt.java src/main/java/com/telnyx/sdk/model/Audio.java src/main/java/com/telnyx/sdk/model/AuthenticationProvider.java src/main/java/com/telnyx/sdk/model/AuthenticationProviderCreate.java -src/main/java/com/telnyx/sdk/model/AuthenticationProviderResponse.java src/main/java/com/telnyx/sdk/model/AuthenticationProviderSettings.java src/main/java/com/telnyx/sdk/model/AvailablePhoneNumber.java src/main/java/com/telnyx/sdk/model/AvailablePhoneNumberBlock.java src/main/java/com/telnyx/sdk/model/AvailablePhoneNumbersMetadata.java src/main/java/com/telnyx/sdk/model/BillingGroup.java +src/main/java/com/telnyx/sdk/model/Body.java src/main/java/com/telnyx/sdk/model/BridgeRequest.java src/main/java/com/telnyx/sdk/model/BulkCredentialRequest.java src/main/java/com/telnyx/sdk/model/BulkCredentialResponse.java src/main/java/com/telnyx/sdk/model/BulkCredentialResponseData.java src/main/java/com/telnyx/sdk/model/BulkRoomRecordingsDeleteResponse.java src/main/java/com/telnyx/sdk/model/BulkRoomRecordingsDeleteResponseData.java -src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferenceResponse.java -src/main/java/com/telnyx/sdk/model/BulkUpdateSimNetworkPreference.java +src/main/java/com/telnyx/sdk/model/BulkSIMCardAction.java +src/main/java/com/telnyx/sdk/model/BulkSIMCardActionDetailed.java +src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202Response.java +src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequest.java +src/main/java/com/telnyx/sdk/model/BulkSetPublicIPs202Response.java +src/main/java/com/telnyx/sdk/model/BulkSetPublicIPsRequest.java +src/main/java/com/telnyx/sdk/model/BulkSimCardActionGet200Response.java src/main/java/com/telnyx/sdk/model/BusinessIdentity.java src/main/java/com/telnyx/sdk/model/BusinessIdentityAddress.java -src/main/java/com/telnyx/sdk/model/BusinessIdentityContacts.java +src/main/java/com/telnyx/sdk/model/BusinessIdentityContactsInner.java +src/main/java/com/telnyx/sdk/model/Button.java +src/main/java/com/telnyx/sdk/model/ButtonComponentType.java +src/main/java/com/telnyx/sdk/model/ButtonParameter.java +src/main/java/com/telnyx/sdk/model/ButtonParameterType.java +src/main/java/com/telnyx/sdk/model/ButtonSubtype.java src/main/java/com/telnyx/sdk/model/CSVDownloadResponse.java src/main/java/com/telnyx/sdk/model/Call.java src/main/java/com/telnyx/sdk/model/CallAnswered.java @@ -1214,7 +1325,7 @@ src/main/java/com/telnyx/sdk/model/CallCost.java src/main/java/com/telnyx/sdk/model/CallCostMeta.java src/main/java/com/telnyx/sdk/model/CallCostMetaMeta.java src/main/java/com/telnyx/sdk/model/CallCostPayload.java -src/main/java/com/telnyx/sdk/model/CallCostPayloadCostParts.java +src/main/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInner.java src/main/java/com/telnyx/sdk/model/CallDtmfReceived.java src/main/java/com/telnyx/sdk/model/CallDtmfReceivedEvent.java src/main/java/com/telnyx/sdk/model/CallDtmfReceivedPayload.java @@ -1272,12 +1383,17 @@ src/main/java/com/telnyx/sdk/model/CallReferStartedEvent.java src/main/java/com/telnyx/sdk/model/CallReferStartedPayload.java src/main/java/com/telnyx/sdk/model/CallRequest.java src/main/java/com/telnyx/sdk/model/CallRequestAnsweringMachineDetectionConfig.java +src/main/java/com/telnyx/sdk/model/CallRequestTo.java src/main/java/com/telnyx/sdk/model/CallSpeakEnded.java src/main/java/com/telnyx/sdk/model/CallSpeakEndedEvent.java src/main/java/com/telnyx/sdk/model/CallSpeakEndedPayload.java src/main/java/com/telnyx/sdk/model/CallSpeakStarted.java src/main/java/com/telnyx/sdk/model/CallSpeakStartedEvent.java src/main/java/com/telnyx/sdk/model/CallSpeakStartedPayload.java +src/main/java/com/telnyx/sdk/model/CallStreamingFailed.java +src/main/java/com/telnyx/sdk/model/CallStreamingFailedEvent.java +src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayload.java +src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParams.java src/main/java/com/telnyx/sdk/model/CallStreamingStarted.java src/main/java/com/telnyx/sdk/model/CallStreamingStartedEvent.java src/main/java/com/telnyx/sdk/model/CallStreamingStartedPayload.java @@ -1285,6 +1401,7 @@ src/main/java/com/telnyx/sdk/model/CallStreamingStopped.java src/main/java/com/telnyx/sdk/model/CallStreamingStoppedEvent.java src/main/java/com/telnyx/sdk/model/CallbackWebhookMeta.java src/main/java/com/telnyx/sdk/model/CallerName.java +src/main/java/com/telnyx/sdk/model/CancelPortingOrder200Response.java src/main/java/com/telnyx/sdk/model/Carrier.java src/main/java/com/telnyx/sdk/model/CdrGetSyncUsageReportResponse.java src/main/java/com/telnyx/sdk/model/CdrUsageReportResponse.java @@ -1295,7 +1412,6 @@ src/main/java/com/telnyx/sdk/model/ClientStateUpdateRequest.java src/main/java/com/telnyx/sdk/model/CloudflareSyncStatus.java src/main/java/com/telnyx/sdk/model/CnamListing.java src/main/java/com/telnyx/sdk/model/Comment.java -src/main/java/com/telnyx/sdk/model/CommentResponse.java src/main/java/com/telnyx/sdk/model/CompleteOTAUpdate.java src/main/java/com/telnyx/sdk/model/CompleteOTAUpdateSettings.java src/main/java/com/telnyx/sdk/model/CompositionCompleted.java @@ -1352,6 +1468,7 @@ src/main/java/com/telnyx/sdk/model/ConferenceSpeakStartedEvent.java src/main/java/com/telnyx/sdk/model/ConferenceStopRequest.java src/main/java/com/telnyx/sdk/model/ConferenceUnholdRequest.java src/main/java/com/telnyx/sdk/model/ConferenceUnmuteRequest.java +src/main/java/com/telnyx/sdk/model/ConfirmPortingOrder200Response.java src/main/java/com/telnyx/sdk/model/Connection.java src/main/java/com/telnyx/sdk/model/ConnectionResponse.java src/main/java/com/telnyx/sdk/model/ConnectionRtcpSettings.java @@ -1359,32 +1476,40 @@ src/main/java/com/telnyx/sdk/model/ConsumedData.java src/main/java/com/telnyx/sdk/model/Contact.java src/main/java/com/telnyx/sdk/model/CostInformation.java src/main/java/com/telnyx/sdk/model/CreateAndroidPushCredentialRequest.java -src/main/java/com/telnyx/sdk/model/CreateBillingGroupResponse.java +src/main/java/com/telnyx/sdk/model/CreateAuthenticationProvider200Response.java +src/main/java/com/telnyx/sdk/model/CreateBillingGroup200Response.java src/main/java/com/telnyx/sdk/model/CreateCallControlApplicationRequest.java -src/main/java/com/telnyx/sdk/model/CreateCommentPortoutRequest.java +src/main/java/com/telnyx/sdk/model/CreateComment200Response.java +src/main/java/com/telnyx/sdk/model/CreateComment200ResponseData.java src/main/java/com/telnyx/sdk/model/CreateConferenceRequest.java src/main/java/com/telnyx/sdk/model/CreateCredentialConnectionRequest.java +src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201Response.java +src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequest.java src/main/java/com/telnyx/sdk/model/CreateDocServiceDocumentRequest.java +src/main/java/com/telnyx/sdk/model/CreateDocument200Response.java +src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201Response.java +src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201Response.java src/main/java/com/telnyx/sdk/model/CreateFaxApplicationRequest.java src/main/java/com/telnyx/sdk/model/CreateFaxApplicationRequestInbound.java src/main/java/com/telnyx/sdk/model/CreateFaxApplicationRequestOutbound.java src/main/java/com/telnyx/sdk/model/CreateFqdnConnectionRequest.java src/main/java/com/telnyx/sdk/model/CreateFqdnRequest.java src/main/java/com/telnyx/sdk/model/CreateInboundIpRequest.java +src/main/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200Response.java src/main/java/com/telnyx/sdk/model/CreateIosPushCredentialRequest.java src/main/java/com/telnyx/sdk/model/CreateIpConnectionRequest.java src/main/java/com/telnyx/sdk/model/CreateIpRequest.java -src/main/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReportResponse.java +src/main/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200Response.java src/main/java/com/telnyx/sdk/model/CreateLongCodeMessageRequest.java +src/main/java/com/telnyx/sdk/model/CreateManagedAccount200Response.java +src/main/java/com/telnyx/sdk/model/CreateManagedAccount422Response.java src/main/java/com/telnyx/sdk/model/CreateManagedAccountRequest.java src/main/java/com/telnyx/sdk/model/CreateMessageRequest.java src/main/java/com/telnyx/sdk/model/CreateMessagingHostedNumberOrderRequest.java src/main/java/com/telnyx/sdk/model/CreateMessagingProfileRequest.java -src/main/java/com/telnyx/sdk/model/CreateMobileApplicationRequest.java -src/main/java/com/telnyx/sdk/model/CreateNotificationChannel.java -src/main/java/com/telnyx/sdk/model/CreateNotificationProfile.java -src/main/java/com/telnyx/sdk/model/CreateNotificationSetting.java -src/main/java/com/telnyx/sdk/model/CreateNotificationSettingAsync.java +src/main/java/com/telnyx/sdk/model/CreateNotificationChannels200Response.java +src/main/java/com/telnyx/sdk/model/CreateNotificationProfile200Response.java +src/main/java/com/telnyx/sdk/model/CreateNotificationSetting200Response.java src/main/java/com/telnyx/sdk/model/CreateNumberBlockOrderRequest.java src/main/java/com/telnyx/sdk/model/CreateNumberOrderDocumentRequest.java src/main/java/com/telnyx/sdk/model/CreateNumberOrderRequest.java @@ -1392,32 +1517,21 @@ src/main/java/com/telnyx/sdk/model/CreateNumberPoolMessageRequest.java src/main/java/com/telnyx/sdk/model/CreateNumberReservationRequest.java src/main/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequest.java src/main/java/com/telnyx/sdk/model/CreateOutboundVoiceProfileRequest.java -src/main/java/com/telnyx/sdk/model/CreatePhoneNumberEmergencyEnable.java -src/main/java/com/telnyx/sdk/model/CreatePhoneNumberEmergencyRequested.java -src/main/java/com/telnyx/sdk/model/CreatePhoneNumbersEnableEmergency.java -src/main/java/com/telnyx/sdk/model/CreatePhoneNumbersJobDeletePhoneNumbers.java -src/main/java/com/telnyx/sdk/model/CreatePortOutSupportingDocumentsResponse.java -src/main/java/com/telnyx/sdk/model/CreatePortabilityCheckRequest.java src/main/java/com/telnyx/sdk/model/CreatePortingOrder.java +src/main/java/com/telnyx/sdk/model/CreatePortingOrder201Response.java src/main/java/com/telnyx/sdk/model/CreatePortingOrderComment.java -src/main/java/com/telnyx/sdk/model/CreatePortingSupportingDocsRequest.java -src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayResponse.java -src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatwewayRequest.java -src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatwewayRequest1.java +src/main/java/com/telnyx/sdk/model/CreatePortingOrderComment201Response.java +src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202Response.java +src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequest.java +src/main/java/com/telnyx/sdk/model/CreatePushCredentialRequest.java +src/main/java/com/telnyx/sdk/model/CreateRoom201Response.java +src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201Response.java +src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseData.java src/main/java/com/telnyx/sdk/model/CreateRoomClientTokenRequest.java -src/main/java/com/telnyx/sdk/model/CreateRoomClientTokenResponse.java -src/main/java/com/telnyx/sdk/model/CreateRoomClientTokenResponseData.java +src/main/java/com/telnyx/sdk/model/CreateRoomComposition202Response.java src/main/java/com/telnyx/sdk/model/CreateRoomCompositionRequest.java -src/main/java/com/telnyx/sdk/model/CreateRoomCompositionResponse.java src/main/java/com/telnyx/sdk/model/CreateRoomRequest.java -src/main/java/com/telnyx/sdk/model/CreateRoomResponse.java -src/main/java/com/telnyx/sdk/model/CreateSIMCardDataUsageNotificationRequest.java -src/main/java/com/telnyx/sdk/model/CreateSIMCardValidateRequest.java src/main/java/com/telnyx/sdk/model/CreateShortCodeMessageRequest.java -src/main/java/com/telnyx/sdk/model/CreateSimCardDataUsageNotificationResponse.java -src/main/java/com/telnyx/sdk/model/CreateSimCardGroupResponse.java -src/main/java/com/telnyx/sdk/model/CreateSimCardOrderPreview.java -src/main/java/com/telnyx/sdk/model/CreateSimCardOrderResponse.java src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequest.java src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequestInbound.java src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequestOutbound.java @@ -1434,8 +1548,9 @@ src/main/java/com/telnyx/sdk/model/CreateVerifyProfilePSD2Request.java src/main/java/com/telnyx/sdk/model/CreateVerifyProfileRequest.java src/main/java/com/telnyx/sdk/model/CreateVerifyProfileSMSRequest.java src/main/java/com/telnyx/sdk/model/CreateVerifyProfileWhatsappRequest.java -src/main/java/com/telnyx/sdk/model/CreateWdrReportResponse.java +src/main/java/com/telnyx/sdk/model/CreateWdrReport201Response.java src/main/java/com/telnyx/sdk/model/CreateWhatsAppMessageRequest.java +src/main/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBody.java src/main/java/com/telnyx/sdk/model/CredentialConnection.java src/main/java/com/telnyx/sdk/model/CredentialConnectionResponse.java src/main/java/com/telnyx/sdk/model/CredentialInbound.java @@ -1444,53 +1559,54 @@ src/main/java/com/telnyx/sdk/model/CredentialsResponse.java src/main/java/com/telnyx/sdk/model/CsvDownload.java src/main/java/com/telnyx/sdk/model/Currencies.java src/main/java/com/telnyx/sdk/model/Currency.java +src/main/java/com/telnyx/sdk/model/CursorPagination.java +src/main/java/com/telnyx/sdk/model/CursorPaginationCursors.java src/main/java/com/telnyx/sdk/model/CustomSipHeader.java +src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponse.java +src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponse.java +src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatch.java +src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPost.java +src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchema.java src/main/java/com/telnyx/sdk/model/CustomerServiceRequest.java src/main/java/com/telnyx/sdk/model/CustomerServiceRequestAddress.java src/main/java/com/telnyx/sdk/model/CustomerServiceRequestPhoneNumberCoverage.java src/main/java/com/telnyx/sdk/model/CustomerServiceRequestStatusChangedEvent.java src/main/java/com/telnyx/sdk/model/CustomerServiceRequestStatusChangedEventPayload.java +src/main/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequest.java src/main/java/com/telnyx/sdk/model/DateTimeComponent.java src/main/java/com/telnyx/sdk/model/DateTimeObject.java src/main/java/com/telnyx/sdk/model/DateTimeUnixEpoch.java -src/main/java/com/telnyx/sdk/model/DeleteBillingGroupResponse.java -src/main/java/com/telnyx/sdk/model/DeleteNotificationChannel.java -src/main/java/com/telnyx/sdk/model/DeleteNotificationProfiles.java -src/main/java/com/telnyx/sdk/model/DeleteNotificationSetting.java -src/main/java/com/telnyx/sdk/model/DeleteNotificationSettingAsync.java -src/main/java/com/telnyx/sdk/model/DeletePrivateWirelessGatewayResponse.java -src/main/java/com/telnyx/sdk/model/DeleteSIMCardNetworkPreferenceResponse.java -src/main/java/com/telnyx/sdk/model/DeleteSimCardDataUsageNotificationResponse.java -src/main/java/com/telnyx/sdk/model/DeleteSimCardGroupResponse.java -src/main/java/com/telnyx/sdk/model/DeleteSimCardResponse.java -src/main/java/com/telnyx/sdk/model/DeleteWdrReportResponse.java src/main/java/com/telnyx/sdk/model/DetailRecord.java src/main/java/com/telnyx/sdk/model/DetailRecordsSearchResponse.java -src/main/java/com/telnyx/sdk/model/DocReqsListRequirementTypesResponse.java +src/main/java/com/telnyx/sdk/model/DialogflowConfig.java +src/main/java/com/telnyx/sdk/model/DialogflowConnection.java +src/main/java/com/telnyx/sdk/model/DialogflowConnectionResponse.java +src/main/java/com/telnyx/sdk/model/Direction.java +src/main/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200Response.java src/main/java/com/telnyx/sdk/model/DocReqsRequirement.java -src/main/java/com/telnyx/sdk/model/DocReqsRequirementResponse.java src/main/java/com/telnyx/sdk/model/DocReqsRequirementType.java src/main/java/com/telnyx/sdk/model/DocReqsRequirementTypeAcceptanceCriteria.java -src/main/java/com/telnyx/sdk/model/DocReqsRequirementTypeResponse.java +src/main/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200Response.java +src/main/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200Response.java src/main/java/com/telnyx/sdk/model/DocServiceDocument.java src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOf.java src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOfSize.java src/main/java/com/telnyx/sdk/model/DocServiceDocumentLink.java src/main/java/com/telnyx/sdk/model/DocServiceDocumentLinkAllOf.java -src/main/java/com/telnyx/sdk/model/DocServiceDocumentResponse.java src/main/java/com/telnyx/sdk/model/DocServiceDocumentUploadInline.java src/main/java/com/telnyx/sdk/model/DocServiceDocumentUploadURL.java src/main/java/com/telnyx/sdk/model/DocServiceRecord.java src/main/java/com/telnyx/sdk/model/Document.java +src/main/java/com/telnyx/sdk/model/Document1.java src/main/java/com/telnyx/sdk/model/DownlinkData.java src/main/java/com/telnyx/sdk/model/DtmfType.java src/main/java/com/telnyx/sdk/model/DynamicEmergencyAddress.java -src/main/java/com/telnyx/sdk/model/DynamicEmergencyAddressResponse.java src/main/java/com/telnyx/sdk/model/DynamicEmergencyEndpoint.java -src/main/java/com/telnyx/sdk/model/DynamicEmergencyEndpointResponse.java src/main/java/com/telnyx/sdk/model/Email.java src/main/java/com/telnyx/sdk/model/EmergencySettings.java src/main/java/com/telnyx/sdk/model/EncryptedMedia.java +src/main/java/com/telnyx/sdk/model/EndSession200Response.java +src/main/java/com/telnyx/sdk/model/EndSession200ResponseData.java src/main/java/com/telnyx/sdk/model/EnqueueRequest.java src/main/java/com/telnyx/sdk/model/Error.java src/main/java/com/telnyx/sdk/model/ErrorSource.java @@ -1514,6 +1630,13 @@ src/main/java/com/telnyx/sdk/model/FaxSendingStarted.java src/main/java/com/telnyx/sdk/model/FaxSendingStartedPayload.java src/main/java/com/telnyx/sdk/model/Feature.java src/main/java/com/telnyx/sdk/model/Filter.java +src/main/java/com/telnyx/sdk/model/FindAuthenticationProviders200Response.java +src/main/java/com/telnyx/sdk/model/FindNotificationsEvents200Response.java +src/main/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200Response.java +src/main/java/com/telnyx/sdk/model/FindNotificationsProfiles200Response.java +src/main/java/com/telnyx/sdk/model/FindPortoutComments200Response.java +src/main/java/com/telnyx/sdk/model/FindPortoutRequest200Response.java +src/main/java/com/telnyx/sdk/model/Footer.java src/main/java/com/telnyx/sdk/model/ForbiddenError.java src/main/java/com/telnyx/sdk/model/ForbiddenErrorAllOf.java src/main/java/com/telnyx/sdk/model/ForbiddenErrorAllOfMeta.java @@ -1522,92 +1645,102 @@ src/main/java/com/telnyx/sdk/model/FqdnConnection.java src/main/java/com/telnyx/sdk/model/FqdnConnectionTransportProtocol.java src/main/java/com/telnyx/sdk/model/GCSConfiguration.java src/main/java/com/telnyx/sdk/model/GCSConfigurationData.java +src/main/java/com/telnyx/sdk/model/GatherRequest.java src/main/java/com/telnyx/sdk/model/GatherUsingAudioRequest.java src/main/java/com/telnyx/sdk/model/GatherUsingSpeakRequest.java src/main/java/com/telnyx/sdk/model/GcbChannelZone.java src/main/java/com/telnyx/sdk/model/GcbPhoneNumber.java src/main/java/com/telnyx/sdk/model/GenericError.java -src/main/java/com/telnyx/sdk/model/GetAllAccessControlIpResponse.java -src/main/java/com/telnyx/sdk/model/GetAllAddressResponse.java -src/main/java/com/telnyx/sdk/model/GetAllAuthenticationProvidersResponse.java src/main/java/com/telnyx/sdk/model/GetAllFaxApplicationsResponse.java -src/main/java/com/telnyx/sdk/model/GetAllPrivateWirelessGatewaysResponse.java -src/main/java/com/telnyx/sdk/model/GetAllSimCardGroupsResponse.java -src/main/java/com/telnyx/sdk/model/GetAllSimCardOrderResponse.java src/main/java/com/telnyx/sdk/model/GetAllTelephonyCredentialResponse.java src/main/java/com/telnyx/sdk/model/GetAllTexmlApplicationsResponse.java +src/main/java/com/telnyx/sdk/model/GetChannelZones200Response.java +src/main/java/com/telnyx/sdk/model/GetCustomerServiceRequest404Response.java src/main/java/com/telnyx/sdk/model/GetFaxResponse.java -src/main/java/com/telnyx/sdk/model/GetGcbChannelZonesRequestResponse.java -src/main/java/com/telnyx/sdk/model/GetGcbPhoneNumbersRequestResponse.java -src/main/java/com/telnyx/sdk/model/GetPrivateWirelessGatewayResponse.java +src/main/java/com/telnyx/sdk/model/GetPhoneNumbers200Response.java +src/main/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201Response.java +src/main/java/com/telnyx/sdk/model/GetPortingOrder200Response.java +src/main/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMeta.java +src/main/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200Response.java +src/main/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200Response.java src/main/java/com/telnyx/sdk/model/GetRecordingResponse.java -src/main/java/com/telnyx/sdk/model/GetRoomCompositionResponse.java -src/main/java/com/telnyx/sdk/model/GetRoomParticipantResponse.java -src/main/java/com/telnyx/sdk/model/GetRoomRecordingResponse.java -src/main/java/com/telnyx/sdk/model/GetRoomResponse.java -src/main/java/com/telnyx/sdk/model/GetRoomSessionResponse.java -src/main/java/com/telnyx/sdk/model/GetSimCardDataUsageNotificationResponse.java -src/main/java/com/telnyx/sdk/model/GetSimCardGroupResponse.java -src/main/java/com/telnyx/sdk/model/GetSimCardOrderResponse.java -src/main/java/com/telnyx/sdk/model/GetSimCardResponse.java src/main/java/com/telnyx/sdk/model/GetSubRequestByPortingOrder.java -src/main/java/com/telnyx/sdk/model/GetWdrReportResponse.java -src/main/java/com/telnyx/sdk/model/GetWdrReportsResponse.java +src/main/java/com/telnyx/sdk/model/GetUserBalance200Response.java +src/main/java/com/telnyx/sdk/model/GetWdrReports200Response.java +src/main/java/com/telnyx/sdk/model/GetWebhookDeliveries200Response.java +src/main/java/com/telnyx/sdk/model/GetWebhookDelivery200Response.java src/main/java/com/telnyx/sdk/model/HangupRequest.java +src/main/java/com/telnyx/sdk/model/Header.java src/main/java/com/telnyx/sdk/model/HostedNumber.java -src/main/java/com/telnyx/sdk/model/Hsm.java src/main/java/com/telnyx/sdk/model/Http.java +src/main/java/com/telnyx/sdk/model/HttpRequest.java +src/main/java/com/telnyx/sdk/model/HttpResponse.java src/main/java/com/telnyx/sdk/model/Image.java +src/main/java/com/telnyx/sdk/model/Image1.java src/main/java/com/telnyx/sdk/model/ImmutableSetLong.java src/main/java/com/telnyx/sdk/model/InboundFqdn.java src/main/java/com/telnyx/sdk/model/InboundIp.java src/main/java/com/telnyx/sdk/model/InboundMessage.java src/main/java/com/telnyx/sdk/model/InboundMessageEvent.java src/main/java/com/telnyx/sdk/model/InboundMessagePayload.java -src/main/java/com/telnyx/sdk/model/InboundMessagePayloadCc.java +src/main/java/com/telnyx/sdk/model/InboundMessagePayloadCcInner.java src/main/java/com/telnyx/sdk/model/InboundMessagePayloadCost.java src/main/java/com/telnyx/sdk/model/InboundMessagePayloadFrom.java -src/main/java/com/telnyx/sdk/model/InboundMessagePayloadMedia.java -src/main/java/com/telnyx/sdk/model/InboundMessagePayloadTo.java +src/main/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInner.java +src/main/java/com/telnyx/sdk/model/InboundMessagePayloadToInner.java +src/main/java/com/telnyx/sdk/model/Interactive.java +src/main/java/com/telnyx/sdk/model/InteractiveAction.java +src/main/java/com/telnyx/sdk/model/InteractiveBody.java +src/main/java/com/telnyx/sdk/model/InteractiveButton.java +src/main/java/com/telnyx/sdk/model/InteractiveButtonReply.java +src/main/java/com/telnyx/sdk/model/InteractiveButtonType.java +src/main/java/com/telnyx/sdk/model/InteractiveFooter.java +src/main/java/com/telnyx/sdk/model/InteractiveHeader.java +src/main/java/com/telnyx/sdk/model/InteractiveProduct.java +src/main/java/com/telnyx/sdk/model/InteractiveSection.java +src/main/java/com/telnyx/sdk/model/InteractiveSectionRow.java +src/main/java/com/telnyx/sdk/model/InteractiveType.java +src/main/java/com/telnyx/sdk/model/InterfaceStatus.java src/main/java/com/telnyx/sdk/model/InventoryCoverage.java src/main/java/com/telnyx/sdk/model/InventoryCoverageMetadata.java -src/main/java/com/telnyx/sdk/model/InventoryCoverageResponse.java src/main/java/com/telnyx/sdk/model/Ip.java src/main/java/com/telnyx/sdk/model/IpConnection.java src/main/java/com/telnyx/sdk/model/IpConnectionResponse.java +src/main/java/com/telnyx/sdk/model/IpItem.java src/main/java/com/telnyx/sdk/model/IpResponse.java src/main/java/com/telnyx/sdk/model/JoinConferenceRequest.java src/main/java/com/telnyx/sdk/model/Language.java src/main/java/com/telnyx/sdk/model/LeaveConferenceRequest.java src/main/java/com/telnyx/sdk/model/LeaveQueueRequest.java src/main/java/com/telnyx/sdk/model/LedgerBillingGroupReport.java -src/main/java/com/telnyx/sdk/model/ListAllowedFocWindow.java +src/main/java/com/telnyx/sdk/model/ListAllowedFocWindows200Response.java src/main/java/com/telnyx/sdk/model/ListAvailablePhoneNumbersBlocksResponse.java src/main/java/com/telnyx/sdk/model/ListAvailablePhoneNumbersResponse.java -src/main/java/com/telnyx/sdk/model/ListBillingGroupsResponse.java +src/main/java/com/telnyx/sdk/model/ListBillingGroups200Response.java +src/main/java/com/telnyx/sdk/model/ListBulkSIMCardActions200Response.java src/main/java/com/telnyx/sdk/model/ListBusinessIdentitiesResponse.java src/main/java/com/telnyx/sdk/model/ListCSVDownloadsResponse.java src/main/java/com/telnyx/sdk/model/ListCallControlApplicationsResponse.java src/main/java/com/telnyx/sdk/model/ListCallEventsResponse.java -src/main/java/com/telnyx/sdk/model/ListChannelZonesByPhoneNumber.java -src/main/java/com/telnyx/sdk/model/ListCommentsResponse.java +src/main/java/com/telnyx/sdk/model/ListComments200Response.java src/main/java/com/telnyx/sdk/model/ListConferencesResponse.java src/main/java/com/telnyx/sdk/model/ListConnectionsResponse.java src/main/java/com/telnyx/sdk/model/ListCredentialConnectionsResponse.java -src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequestPhoneNumberCoverage.java -src/main/java/com/telnyx/sdk/model/ListDocServiceDocumentLinksResponse.java -src/main/java/com/telnyx/sdk/model/ListDocServiceDocumentsResposne.java -src/main/java/com/telnyx/sdk/model/ListDraftPortingOrderWithoutPagination.java -src/main/java/com/telnyx/sdk/model/ListDynamicEmergencyAddresses.java -src/main/java/com/telnyx/sdk/model/ListDynamicEmergencyEndpoints.java +src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests200Response.java +src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests401Response.java +src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests403Response.java +src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests422Response.java +src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests500Response.java +src/main/java/com/telnyx/sdk/model/ListDocumentLinks200Response.java +src/main/java/com/telnyx/sdk/model/ListDocuments200Response.java +src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200Response.java +src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200Response.java src/main/java/com/telnyx/sdk/model/ListFQDNConnectionsResponse.java src/main/java/com/telnyx/sdk/model/ListFQDNsResponse.java src/main/java/com/telnyx/sdk/model/ListFaxesResponse.java -src/main/java/com/telnyx/sdk/model/ListInboundChannels.java -src/main/java/com/telnyx/sdk/model/ListInboundChannelsData.java src/main/java/com/telnyx/sdk/model/ListIpConnectionsResponse.java src/main/java/com/telnyx/sdk/model/ListIpsResponse.java -src/main/java/com/telnyx/sdk/model/ListManagedAccountsResponse.java +src/main/java/com/telnyx/sdk/model/ListManagedAccounts200Response.java src/main/java/com/telnyx/sdk/model/ListMessagingHostedNumberOrderResponse.java src/main/java/com/telnyx/sdk/model/ListMessagingProfileMetricsResponse.java src/main/java/com/telnyx/sdk/model/ListMessagingProfilePhoneNumbersResponse.java @@ -1615,56 +1748,56 @@ src/main/java/com/telnyx/sdk/model/ListMessagingProfileShortCodesResponse.java src/main/java/com/telnyx/sdk/model/ListMessagingProfileUrlDomainsResponse.java src/main/java/com/telnyx/sdk/model/ListMessagingProfilesResponse.java src/main/java/com/telnyx/sdk/model/ListMessagingSettingsResponse.java -src/main/java/com/telnyx/sdk/model/ListNotificationChannels.java -src/main/java/com/telnyx/sdk/model/ListNotificationEvenConditions.java -src/main/java/com/telnyx/sdk/model/ListNotificationEvents.java -src/main/java/com/telnyx/sdk/model/ListNotificationProfiles.java -src/main/java/com/telnyx/sdk/model/ListNotificationSettings.java +src/main/java/com/telnyx/sdk/model/ListNotificationChannels200Response.java +src/main/java/com/telnyx/sdk/model/ListNotificationSettings200Response.java src/main/java/com/telnyx/sdk/model/ListNumberBlockOrdersResponse.java src/main/java/com/telnyx/sdk/model/ListNumberOrderDocumentsResponse.java src/main/java/com/telnyx/sdk/model/ListNumberOrderPhoneNumbersResponse.java src/main/java/com/telnyx/sdk/model/ListNumberOrdersResponse.java src/main/java/com/telnyx/sdk/model/ListNumberReservationsResponse.java src/main/java/com/telnyx/sdk/model/ListOfMediaResourcesResponse.java +src/main/java/com/telnyx/sdk/model/ListOutboundChannels200Response.java +src/main/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseData.java src/main/java/com/telnyx/sdk/model/ListOutboundVoiceProfilesResponse.java src/main/java/com/telnyx/sdk/model/ListParticipantsResponse.java src/main/java/com/telnyx/sdk/model/ListPhoneNumberBlocksBackgroundJobsResponse.java src/main/java/com/telnyx/sdk/model/ListPhoneNumbersBackgroundJobsResponse.java src/main/java/com/telnyx/sdk/model/ListPhoneNumbersResponse.java src/main/java/com/telnyx/sdk/model/ListPhoneNumbersWithVoiceSettingsResponse.java -src/main/java/com/telnyx/sdk/model/ListPortingOrder.java -src/main/java/com/telnyx/sdk/model/ListPortingOrderDocuments.java -src/main/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs.java -src/main/java/com/telnyx/sdk/model/ListPortingOrdersComments.java -src/main/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes.java -src/main/java/com/telnyx/sdk/model/ListPortingPhoneNumbers.java -src/main/java/com/telnyx/sdk/model/ListPortoutComments.java -src/main/java/com/telnyx/sdk/model/ListPortoutResponse.java +src/main/java/com/telnyx/sdk/model/ListPortingOrderDocuments200Response.java +src/main/java/com/telnyx/sdk/model/ListPortingOrderRequirements200Response.java +src/main/java/com/telnyx/sdk/model/ListPortingOrders200Response.java +src/main/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200Response.java +src/main/java/com/telnyx/sdk/model/ListPortingOrdersComments200Response.java +src/main/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200Response.java +src/main/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200Response.java +src/main/java/com/telnyx/sdk/model/ListPortoutRequest200Response.java src/main/java/com/telnyx/sdk/model/ListQueueCallsResponse.java src/main/java/com/telnyx/sdk/model/ListRecordingsResponse.java -src/main/java/com/telnyx/sdk/model/ListRegulatoryRequirements.java -src/main/java/com/telnyx/sdk/model/ListRequirementsResponse.java -src/main/java/com/telnyx/sdk/model/ListRoomCompositionsResponse.java -src/main/java/com/telnyx/sdk/model/ListRoomParticipantsResponse.java -src/main/java/com/telnyx/sdk/model/ListRoomRecordingsResponse.java -src/main/java/com/telnyx/sdk/model/ListRoomSessionsResponse.java -src/main/java/com/telnyx/sdk/model/ListRoomsResponse.java +src/main/java/com/telnyx/sdk/model/ListRegulartoryRequirements200Response.java +src/main/java/com/telnyx/sdk/model/ListRequirements200Response.java +src/main/java/com/telnyx/sdk/model/ListRoomCompositions200Response.java +src/main/java/com/telnyx/sdk/model/ListRoomParticipants200Response.java +src/main/java/com/telnyx/sdk/model/ListRoomRecordings200Response.java +src/main/java/com/telnyx/sdk/model/ListRoomSessions200Response.java +src/main/java/com/telnyx/sdk/model/ListRooms200Response.java +src/main/java/com/telnyx/sdk/model/ListSIMCardActions200Response.java src/main/java/com/telnyx/sdk/model/ListShortCodesResponse.java +src/main/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200Response.java src/main/java/com/telnyx/sdk/model/ListSubNumberOrdersResponse.java src/main/java/com/telnyx/sdk/model/ListTagsResponse.java -src/main/java/com/telnyx/sdk/model/ListTagsResponseData.java +src/main/java/com/telnyx/sdk/model/ListTagsResponseDataInner.java src/main/java/com/telnyx/sdk/model/ListVerificationsResponse.java src/main/java/com/telnyx/sdk/model/ListVerifiedCallsDisplayProfilesResponse.java src/main/java/com/telnyx/sdk/model/ListVerifyProfilesResponse.java -src/main/java/com/telnyx/sdk/model/ListWebhookDeliveriesResponse.java src/main/java/com/telnyx/sdk/model/ListWhatsAppBusinessAccountsResponse.java src/main/java/com/telnyx/sdk/model/ListWhatsAppPhoneNumbersResponse.java -src/main/java/com/telnyx/sdk/model/LocalizableParam.java src/main/java/com/telnyx/sdk/model/Location.java src/main/java/com/telnyx/sdk/model/Loopcount.java src/main/java/com/telnyx/sdk/model/ManagedAccount.java src/main/java/com/telnyx/sdk/model/ManagedAccountBalance.java -src/main/java/com/telnyx/sdk/model/ManagedAccountResponse.java +src/main/java/com/telnyx/sdk/model/MarkCommentRead200Response.java +src/main/java/com/telnyx/sdk/model/MarkCommentRead200ResponseData.java src/main/java/com/telnyx/sdk/model/MarkMessageAsReadRequestBody.java src/main/java/com/telnyx/sdk/model/MdrDeleteDetailReportResponse.java src/main/java/com/telnyx/sdk/model/MdrDeleteUsageReportsResponse.java @@ -1703,21 +1836,29 @@ src/main/java/com/telnyx/sdk/model/MessagingProfileResponse.java src/main/java/com/telnyx/sdk/model/MessagingUrlDomain.java src/main/java/com/telnyx/sdk/model/Meta.java src/main/java/com/telnyx/sdk/model/Metadata.java -src/main/java/com/telnyx/sdk/model/MobileApplication.java -src/main/java/com/telnyx/sdk/model/MobileApplicationResponse.java src/main/java/com/telnyx/sdk/model/MobileOperatorNetwork.java src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesRequest.java src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesResponse.java +src/main/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200Response.java +src/main/java/com/telnyx/sdk/model/ModelInterface.java src/main/java/com/telnyx/sdk/model/Money.java +src/main/java/com/telnyx/sdk/model/Network.java +src/main/java/com/telnyx/sdk/model/Network1.java +src/main/java/com/telnyx/sdk/model/NetworkCreate.java +src/main/java/com/telnyx/sdk/model/NetworkCreate200Response.java +src/main/java/com/telnyx/sdk/model/NetworkInterface.java +src/main/java/com/telnyx/sdk/model/NetworkInterface1.java +src/main/java/com/telnyx/sdk/model/NetworkInterfaceList200Response.java +src/main/java/com/telnyx/sdk/model/NetworkList200Response.java src/main/java/com/telnyx/sdk/model/NewBillingGroup.java src/main/java/com/telnyx/sdk/model/NewLedgerBillingGroupReport.java src/main/java/com/telnyx/sdk/model/NotificationChannel.java src/main/java/com/telnyx/sdk/model/NotificationEvent.java src/main/java/com/telnyx/sdk/model/NotificationEventCondition.java -src/main/java/com/telnyx/sdk/model/NotificationEventConditionParameters.java +src/main/java/com/telnyx/sdk/model/NotificationEventConditionParametersInner.java src/main/java/com/telnyx/sdk/model/NotificationProfile.java src/main/java/com/telnyx/sdk/model/NotificationSetting.java -src/main/java/com/telnyx/sdk/model/NotificationSettingParameters.java +src/main/java/com/telnyx/sdk/model/NotificationSettingParametersInner.java src/main/java/com/telnyx/sdk/model/NumberBlockOrder.java src/main/java/com/telnyx/sdk/model/NumberBlockOrderResponse.java src/main/java/com/telnyx/sdk/model/NumberHealthMetrics.java @@ -1737,7 +1878,8 @@ src/main/java/com/telnyx/sdk/model/NumberOrderedEvent.java src/main/java/com/telnyx/sdk/model/NumberPoolSettings.java src/main/java/com/telnyx/sdk/model/NumberReservation.java src/main/java/com/telnyx/sdk/model/NumberReservationResponse.java -src/main/java/com/telnyx/sdk/model/OTAUpdateResponse.java +src/main/java/com/telnyx/sdk/model/OTAUpdateGET200Response.java +src/main/java/com/telnyx/sdk/model/OTAUpdatesList200Response.java src/main/java/com/telnyx/sdk/model/Organization.java src/main/java/com/telnyx/sdk/model/OutboundCallRecording.java src/main/java/com/telnyx/sdk/model/OutboundIp.java @@ -1746,11 +1888,11 @@ src/main/java/com/telnyx/sdk/model/OutboundMessageEvent.java src/main/java/com/telnyx/sdk/model/OutboundMessageEventMeta.java src/main/java/com/telnyx/sdk/model/OutboundMessagePayload.java src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadFrom.java -src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadMedia.java -src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadTo.java +src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInner.java +src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadToInner.java src/main/java/com/telnyx/sdk/model/OutboundVoiceProfile.java src/main/java/com/telnyx/sdk/model/OutboundVoiceProfileResponse.java -src/main/java/com/telnyx/sdk/model/PUTSIMCardNetworkPreferenceResponse.java +src/main/java/com/telnyx/sdk/model/PWGAssignedResourcesSummary.java src/main/java/com/telnyx/sdk/model/PaginationMeta.java src/main/java/com/telnyx/sdk/model/PaginationMetaSimple.java src/main/java/com/telnyx/sdk/model/Participant.java @@ -1761,10 +1903,11 @@ src/main/java/com/telnyx/sdk/model/ParticipantJoinedPayload.java src/main/java/com/telnyx/sdk/model/ParticipantLeft.java src/main/java/com/telnyx/sdk/model/ParticipantLeftEvent.java src/main/java/com/telnyx/sdk/model/ParticipantLeftPayload.java +src/main/java/com/telnyx/sdk/model/PatchGroupRequest.java src/main/java/com/telnyx/sdk/model/PatchRoomRequest.java -src/main/java/com/telnyx/sdk/model/PatchRoomResponse.java src/main/java/com/telnyx/sdk/model/PauseRecordingRequest.java src/main/java/com/telnyx/sdk/model/Phone.java +src/main/java/com/telnyx/sdk/model/PhoneNumber.java src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJob.java src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJobDeletePhoneNumberBlock.java src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJobDeletePhoneNumberBlockRequest.java @@ -1772,6 +1915,7 @@ src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJobFailedOperation.java src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJobSuccessfulOperation.java src/main/java/com/telnyx/sdk/model/PhoneNumberDeletedDetailed.java src/main/java/com/telnyx/sdk/model/PhoneNumberDetailed.java +src/main/java/com/telnyx/sdk/model/PhoneNumberEnableEmergency.java src/main/java/com/telnyx/sdk/model/PhoneNumberEnableEmergencyRequest.java src/main/java/com/telnyx/sdk/model/PhoneNumberRegulatoryRequirement.java src/main/java/com/telnyx/sdk/model/PhoneNumberRegulatoryRequirementAllOf.java @@ -1781,7 +1925,9 @@ src/main/java/com/telnyx/sdk/model/PhoneNumberWithMessagingSettings.java src/main/java/com/telnyx/sdk/model/PhoneNumberWithMessagingSettingsFeatures.java src/main/java/com/telnyx/sdk/model/PhoneNumberWithVoiceSettings.java src/main/java/com/telnyx/sdk/model/PhoneNumbersBulkUpdateError.java +src/main/java/com/telnyx/sdk/model/PhoneNumbersEnableEmergency.java src/main/java/com/telnyx/sdk/model/PhoneNumbersJob.java +src/main/java/com/telnyx/sdk/model/PhoneNumbersJobDeletePhoneNumbers.java src/main/java/com/telnyx/sdk/model/PhoneNumbersJobDeletePhoneNumbersRequest.java src/main/java/com/telnyx/sdk/model/PhoneNumbersJobFailedOperation.java src/main/java/com/telnyx/sdk/model/PhoneNumbersJobPendingOperation.java @@ -1792,24 +1938,23 @@ src/main/java/com/telnyx/sdk/model/PhoneNumbersJobUpdatePhoneNumbers.java src/main/java/com/telnyx/sdk/model/PhoneNumbersJobUpdatePhoneNumbersRequest.java src/main/java/com/telnyx/sdk/model/PlayAudioUrlRequest.java src/main/java/com/telnyx/sdk/model/PlaybackStopRequest.java -src/main/java/com/telnyx/sdk/model/PortOutListSupportingDocumentsResponse.java src/main/java/com/telnyx/sdk/model/PortOutSupportingDocument.java src/main/java/com/telnyx/sdk/model/Portability.java src/main/java/com/telnyx/sdk/model/PortabilityCheckDetails.java -src/main/java/com/telnyx/sdk/model/PortabilityCheckResponse.java src/main/java/com/telnyx/sdk/model/PortabilityStatus.java src/main/java/com/telnyx/sdk/model/PortingOrder.java src/main/java/com/telnyx/sdk/model/PortingOrderActivationSettings.java src/main/java/com/telnyx/sdk/model/PortingOrderActivationStatus.java src/main/java/com/telnyx/sdk/model/PortingOrderDocument.java src/main/java/com/telnyx/sdk/model/PortingOrderDocuments.java -src/main/java/com/telnyx/sdk/model/PortingOrderDocumentsCreated.java src/main/java/com/telnyx/sdk/model/PortingOrderEndUser.java src/main/java/com/telnyx/sdk/model/PortingOrderEndUserAdmin.java src/main/java/com/telnyx/sdk/model/PortingOrderEndUserLocation.java src/main/java/com/telnyx/sdk/model/PortingOrderMisc.java src/main/java/com/telnyx/sdk/model/PortingOrderPhoneNumberConfiguration.java src/main/java/com/telnyx/sdk/model/PortingOrderRequirement.java +src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetail.java +src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementType.java src/main/java/com/telnyx/sdk/model/PortingOrderStatus.java src/main/java/com/telnyx/sdk/model/PortingOrderType.java src/main/java/com/telnyx/sdk/model/PortingOrderUserFeedback.java @@ -1819,23 +1964,31 @@ src/main/java/com/telnyx/sdk/model/PortingOrdersComment.java src/main/java/com/telnyx/sdk/model/PortingOrdersExceptionType.java src/main/java/com/telnyx/sdk/model/PortingPhoneNumber.java src/main/java/com/telnyx/sdk/model/PortoutComment.java -src/main/java/com/telnyx/sdk/model/PortoutCommentResposne.java src/main/java/com/telnyx/sdk/model/PortoutDetails.java -src/main/java/com/telnyx/sdk/model/PortoutResponse.java -src/main/java/com/telnyx/sdk/model/PortoutsIdSupportingDocumentsDocuments.java +src/main/java/com/telnyx/sdk/model/PostPortRequestComment201Response.java +src/main/java/com/telnyx/sdk/model/PostPortRequestCommentRequest.java +src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequest.java +src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInner.java +src/main/java/com/telnyx/sdk/model/PostPortabilityCheck201Response.java +src/main/java/com/telnyx/sdk/model/PostPortabilityCheckRequest.java +src/main/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequest.java src/main/java/com/telnyx/sdk/model/PrivateWirelessGateway.java src/main/java/com/telnyx/sdk/model/PrivateWirelessGatewayRequest.java src/main/java/com/telnyx/sdk/model/PrivateWirelessGatewayStatus.java +src/main/java/com/telnyx/sdk/model/PublicInternetGateway.java +src/main/java/com/telnyx/sdk/model/PublicInternetGateway1.java +src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate.java +src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202Response.java +src/main/java/com/telnyx/sdk/model/PublicInternetGatewayList200Response.java +src/main/java/com/telnyx/sdk/model/PublicInternetGatewayRead.java src/main/java/com/telnyx/sdk/model/PushCredential.java -src/main/java/com/telnyx/sdk/model/PushCredentialResponse.java -src/main/java/com/telnyx/sdk/model/PutNetworkPreferenceRequest.java src/main/java/com/telnyx/sdk/model/Queue.java src/main/java/com/telnyx/sdk/model/QueueCall.java src/main/java/com/telnyx/sdk/model/QueueCallResponse.java src/main/java/com/telnyx/sdk/model/QueueResponse.java src/main/java/com/telnyx/sdk/model/ReadComment.java src/main/java/com/telnyx/sdk/model/ReadCommentAllOf.java -src/main/java/com/telnyx/sdk/model/ReadCommentResponse.java +src/main/java/com/telnyx/sdk/model/Record.java src/main/java/com/telnyx/sdk/model/Recording.java src/main/java/com/telnyx/sdk/model/RecordingCompleted.java src/main/java/com/telnyx/sdk/model/RecordingCompletedEvent.java @@ -1846,44 +1999,38 @@ src/main/java/com/telnyx/sdk/model/RecordingStartedEvent.java src/main/java/com/telnyx/sdk/model/RecordingStartedPayload.java src/main/java/com/telnyx/sdk/model/ReferRequest.java src/main/java/com/telnyx/sdk/model/RefreshFaxResponse.java +src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201Response.java +src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseData.java src/main/java/com/telnyx/sdk/model/RefreshRoomClientTokenRequest.java -src/main/java/com/telnyx/sdk/model/RefreshRoomClientTokenResponse.java -src/main/java/com/telnyx/sdk/model/RefreshRoomClientTokenResponseData.java +src/main/java/com/telnyx/sdk/model/Region.java +src/main/java/com/telnyx/sdk/model/RegionIn.java src/main/java/com/telnyx/sdk/model/RegionInformation.java +src/main/java/com/telnyx/sdk/model/RegionList200Response.java +src/main/java/com/telnyx/sdk/model/RegionOut.java +src/main/java/com/telnyx/sdk/model/RegionOutRegion.java src/main/java/com/telnyx/sdk/model/RegisterCallCommandResult.java src/main/java/com/telnyx/sdk/model/RegisterCallRequest.java src/main/java/com/telnyx/sdk/model/RegisterCallResponse.java -src/main/java/com/telnyx/sdk/model/RegisterSimCardsResponse.java src/main/java/com/telnyx/sdk/model/RegulatoryRequirements.java -src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsAcceptanceCriteria.java -src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformation.java -src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirements.java +src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInner.java +src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInner.java +src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.java src/main/java/com/telnyx/sdk/model/RejectRequest.java src/main/java/com/telnyx/sdk/model/ReplacedLinkClick.java src/main/java/com/telnyx/sdk/model/ReplacedLinkClickEvent.java +src/main/java/com/telnyx/sdk/model/Reply.java src/main/java/com/telnyx/sdk/model/ReservedPhoneNumber.java src/main/java/com/telnyx/sdk/model/ResourceNotFoundError.java src/main/java/com/telnyx/sdk/model/ResourceNotFoundErrorAllOf.java src/main/java/com/telnyx/sdk/model/ResourceNotFoundErrorAllOfMeta.java src/main/java/com/telnyx/sdk/model/ResumeRecordingRequest.java -src/main/java/com/telnyx/sdk/model/RetrieveBillingGroupResponse.java src/main/java/com/telnyx/sdk/model/RetrieveCallStatusResponse.java -src/main/java/com/telnyx/sdk/model/RetrieveLedgerBillingGroupReportResponse.java src/main/java/com/telnyx/sdk/model/RetrieveMessagingHostedNumberOrderResponse.java src/main/java/com/telnyx/sdk/model/RetrieveMessagingHostedNumberResponse.java src/main/java/com/telnyx/sdk/model/RetrieveMessagingProfileMetricsResponse.java src/main/java/com/telnyx/sdk/model/RetrieveMessagingSettingsResponse.java -src/main/java/com/telnyx/sdk/model/RetrieveNotificationChannel.java -src/main/java/com/telnyx/sdk/model/RetrieveNotificationProfile.java -src/main/java/com/telnyx/sdk/model/RetrieveNotificationSetting.java -src/main/java/com/telnyx/sdk/model/RetrievePhoneNumberBlocksJob.java src/main/java/com/telnyx/sdk/model/RetrievePhoneNumberVoiceResponse.java -src/main/java/com/telnyx/sdk/model/RetrievePhoneNumbersJob.java src/main/java/com/telnyx/sdk/model/RetrieveVerificationResponse.java -src/main/java/com/telnyx/sdk/model/RetrieveWebhookDelivery.java -src/main/java/com/telnyx/sdk/model/RetrieveWhatsAppBusinessAccount.java -src/main/java/com/telnyx/sdk/model/RetrieveWhatsAppPhoneNumber.java -src/main/java/com/telnyx/sdk/model/RetrieveWhatsAppProfilePhoto.java src/main/java/com/telnyx/sdk/model/Room.java src/main/java/com/telnyx/sdk/model/RoomComposition.java src/main/java/com/telnyx/sdk/model/RoomParticipant.java @@ -1891,36 +2038,35 @@ src/main/java/com/telnyx/sdk/model/RoomRecording.java src/main/java/com/telnyx/sdk/model/RoomSession.java src/main/java/com/telnyx/sdk/model/SIMCard.java src/main/java/com/telnyx/sdk/model/SIMCardAction.java -src/main/java/com/telnyx/sdk/model/SIMCardActionResponse.java src/main/java/com/telnyx/sdk/model/SIMCardActionStatus.java +src/main/java/com/telnyx/sdk/model/SIMCardActionsSummary.java src/main/java/com/telnyx/sdk/model/SIMCardCurrentBillingPeriodConsumedData.java src/main/java/com/telnyx/sdk/model/SIMCardCurrentDeviceLocation.java src/main/java/com/telnyx/sdk/model/SIMCardDataLimit.java +src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetails.java +src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200Response.java src/main/java/com/telnyx/sdk/model/SIMCardGroup.java src/main/java/com/telnyx/sdk/model/SIMCardGroupAction.java -src/main/java/com/telnyx/sdk/model/SIMCardGroupActionResponse.java src/main/java/com/telnyx/sdk/model/SIMCardGroupActionSettings.java src/main/java/com/telnyx/sdk/model/SIMCardGroupCreate.java src/main/java/com/telnyx/sdk/model/SIMCardGroupDataLimit.java src/main/java/com/telnyx/sdk/model/SIMCardGroupPatch.java src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreference.java src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdates.java -src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdatesResponse.java +src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200Response.java +src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequest.java src/main/java/com/telnyx/sdk/model/SIMCardOrder.java src/main/java/com/telnyx/sdk/model/SIMCardOrderCost.java src/main/java/com/telnyx/sdk/model/SIMCardOrderOrderAddress.java src/main/java/com/telnyx/sdk/model/SIMCardOrderPreview.java src/main/java/com/telnyx/sdk/model/SIMCardOrderPreviewTotalCost.java -src/main/java/com/telnyx/sdk/model/SIMCardOrdersPreviewResponse.java src/main/java/com/telnyx/sdk/model/SIMCardPublicIP.java -src/main/java/com/telnyx/sdk/model/SIMCardPublicIPResponse.java +src/main/java/com/telnyx/sdk/model/SIMCardPublicIPGet200Response.java src/main/java/com/telnyx/sdk/model/SIMCardRegistration.java src/main/java/com/telnyx/sdk/model/SIMCardRegistrationCodeValidation.java src/main/java/com/telnyx/sdk/model/SIMCardRegistrationCodeValidations.java src/main/java/com/telnyx/sdk/model/SIMCardStatus.java -src/main/java/com/telnyx/sdk/model/SearchMobileOperatorNetworksResponse.java -src/main/java/com/telnyx/sdk/model/SearchOTAUpdateResponse.java -src/main/java/com/telnyx/sdk/model/SearchSimCardsResponse.java +src/main/java/com/telnyx/sdk/model/SearchedSIMCardGroup.java src/main/java/com/telnyx/sdk/model/SendDTMFRequest.java src/main/java/com/telnyx/sdk/model/SendFaxRequest.java src/main/java/com/telnyx/sdk/model/SendFaxResponse.java @@ -1931,23 +2077,30 @@ src/main/java/com/telnyx/sdk/model/SessionEndedPayload.java src/main/java/com/telnyx/sdk/model/SessionStarted.java src/main/java/com/telnyx/sdk/model/SessionStartedEvent.java src/main/java/com/telnyx/sdk/model/SessionStartedPayload.java +src/main/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequest.java src/main/java/com/telnyx/sdk/model/Settings.java src/main/java/com/telnyx/sdk/model/ShortCode.java src/main/java/com/telnyx/sdk/model/ShortCodeResponse.java src/main/java/com/telnyx/sdk/model/ShowBusinessIdentityResponse.java -src/main/java/com/telnyx/sdk/model/ShowCustomerServiceRequest.java -src/main/java/com/telnyx/sdk/model/ShowPortingOrder.java -src/main/java/com/telnyx/sdk/model/ShowPortingOrderComment.java -src/main/java/com/telnyx/sdk/model/ShowPortingOrderMeta.java -src/main/java/com/telnyx/sdk/model/ShowPortingOrdersActivationJob.java src/main/java/com/telnyx/sdk/model/ShowVerifiedCallsDisplayProfileResponse.java -src/main/java/com/telnyx/sdk/model/SimCardActionCollectionResponse.java +src/main/java/com/telnyx/sdk/model/SimCardActionGet200Response.java src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotification.java -src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationCollection.java -src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsThreshold.java -src/main/java/com/telnyx/sdk/model/SimCardGroupActionCollectionResponse.java +src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201Response.java +src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequest.java +src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThreshold.java +src/main/java/com/telnyx/sdk/model/SimCardGet200Response.java +src/main/java/com/telnyx/sdk/model/SimCardGroupActionGet200Response.java +src/main/java/com/telnyx/sdk/model/SimCardGroupActionsGet200Response.java +src/main/java/com/telnyx/sdk/model/SimCardGroupsGetAll200Response.java +src/main/java/com/telnyx/sdk/model/SimCardGroupsPost200Response.java src/main/java/com/telnyx/sdk/model/SimCardOrderCreate.java +src/main/java/com/telnyx/sdk/model/SimCardOrdersGet200Response.java +src/main/java/com/telnyx/sdk/model/SimCardOrdersPost200Response.java +src/main/java/com/telnyx/sdk/model/SimCardOrdersPreview202Response.java +src/main/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequest.java +src/main/java/com/telnyx/sdk/model/SimCardRegister202Response.java src/main/java/com/telnyx/sdk/model/SimCardUsageDetailRecord.java +src/main/java/com/telnyx/sdk/model/SimCardsGet200Response.java src/main/java/com/telnyx/sdk/model/SimpleSIMCard.java src/main/java/com/telnyx/sdk/model/SimpleSIMCardDataLimit.java src/main/java/com/telnyx/sdk/model/SimplifiedOTAUpdate.java @@ -1964,12 +2117,20 @@ src/main/java/com/telnyx/sdk/model/StopStreamingRequest.java src/main/java/com/telnyx/sdk/model/SubNumberOrder.java src/main/java/com/telnyx/sdk/model/SubNumberOrderRegulatoryRequirement.java src/main/java/com/telnyx/sdk/model/SubNumberOrderResponse.java -src/main/java/com/telnyx/sdk/model/SubRequestByPortingOrder.java +src/main/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommand.java +src/main/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.java +src/main/java/com/telnyx/sdk/model/TeXmlRESTCommandResponse.java src/main/java/com/telnyx/sdk/model/TelephonyCredential.java src/main/java/com/telnyx/sdk/model/TelephonyCredentialCreateRequest.java src/main/java/com/telnyx/sdk/model/TelephonyCredentialResponse.java src/main/java/com/telnyx/sdk/model/TelephonyCredentialUpdateRequest.java src/main/java/com/telnyx/sdk/model/Template.java +src/main/java/com/telnyx/sdk/model/TemplateButtonComponent.java +src/main/java/com/telnyx/sdk/model/TemplateButtonParameter.java +src/main/java/com/telnyx/sdk/model/TemplateComponent.java +src/main/java/com/telnyx/sdk/model/TemplateComponentType.java +src/main/java/com/telnyx/sdk/model/TemplateComponents.java +src/main/java/com/telnyx/sdk/model/TemplateParameters.java src/main/java/com/telnyx/sdk/model/TexmlApplication.java src/main/java/com/telnyx/sdk/model/TexmlApplicationResponse.java src/main/java/com/telnyx/sdk/model/Text.java @@ -1991,43 +2152,42 @@ src/main/java/com/telnyx/sdk/model/UnprocessableEntityError.java src/main/java/com/telnyx/sdk/model/UnprocessableEntityErrorAllOf.java src/main/java/com/telnyx/sdk/model/UnprocessableEntityErrorAllOfMeta.java src/main/java/com/telnyx/sdk/model/UnprocessableEntityErrorAllOfSource.java -src/main/java/com/telnyx/sdk/model/UnprocessableManagedAccountEntity.java src/main/java/com/telnyx/sdk/model/UpdateAuthenticationProviderRequest.java src/main/java/com/telnyx/sdk/model/UpdateBillingGroup.java -src/main/java/com/telnyx/sdk/model/UpdateBillingGroupResponse.java src/main/java/com/telnyx/sdk/model/UpdateCallControlApplicationRequest.java -src/main/java/com/telnyx/sdk/model/UpdateChannelZone.java +src/main/java/com/telnyx/sdk/model/UpdateCallRequest.java +src/main/java/com/telnyx/sdk/model/UpdateCommandResult.java src/main/java/com/telnyx/sdk/model/UpdateConferenceRequest.java src/main/java/com/telnyx/sdk/model/UpdateCredentialConnectionRequest.java src/main/java/com/telnyx/sdk/model/UpdateFaxApplicationRequest.java src/main/java/com/telnyx/sdk/model/UpdateFqdnConnectionRequest.java src/main/java/com/telnyx/sdk/model/UpdateFqdnRequest.java -src/main/java/com/telnyx/sdk/model/UpdateInbouncChannels.java -src/main/java/com/telnyx/sdk/model/UpdateInbouncChannelsData.java -src/main/java/com/telnyx/sdk/model/UpdateInboundChannels.java src/main/java/com/telnyx/sdk/model/UpdateIpConnectionRequest.java src/main/java/com/telnyx/sdk/model/UpdateIpRequest.java src/main/java/com/telnyx/sdk/model/UpdateManagedAccountRequest.java src/main/java/com/telnyx/sdk/model/UpdateMediaRequest.java src/main/java/com/telnyx/sdk/model/UpdateMessagingProfileRequest.java -src/main/java/com/telnyx/sdk/model/UpdateNotificationChannel.java -src/main/java/com/telnyx/sdk/model/UpdateNotificationProfile.java src/main/java/com/telnyx/sdk/model/UpdateNumberOrderDocumentRequest.java src/main/java/com/telnyx/sdk/model/UpdateNumberOrderPhoneNumberRequest.java src/main/java/com/telnyx/sdk/model/UpdateNumberOrderRequest.java +src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200Response.java +src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseData.java +src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponse.java +src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInner.java +src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.java +src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequest.java src/main/java/com/telnyx/sdk/model/UpdateOutboundVoiceProfileRequest.java src/main/java/com/telnyx/sdk/model/UpdatePhoneNumberMessagingSettingsRequest.java src/main/java/com/telnyx/sdk/model/UpdatePhoneNumberRequest.java src/main/java/com/telnyx/sdk/model/UpdatePhoneNumberVoiceSettingsRequest.java src/main/java/com/telnyx/sdk/model/UpdatePortingOrder.java +src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200Response.java +src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMeta.java src/main/java/com/telnyx/sdk/model/UpdatePortingOrderActivationSettings.java src/main/java/com/telnyx/sdk/model/UpdatePortingOrderRequirement.java -src/main/java/com/telnyx/sdk/model/UpdatePortoutStatusRequest.java +src/main/java/com/telnyx/sdk/model/UpdatePortoutRequestRequest.java src/main/java/com/telnyx/sdk/model/UpdateRegulatoryRequirement.java src/main/java/com/telnyx/sdk/model/UpdateShortCodeRequest.java -src/main/java/com/telnyx/sdk/model/UpdateSimCardDataUsageNotificationResponse.java -src/main/java/com/telnyx/sdk/model/UpdateSimCardGroupResponse.java -src/main/java/com/telnyx/sdk/model/UpdateSimCardResponse.java src/main/java/com/telnyx/sdk/model/UpdateSubNumberOrderRequest.java src/main/java/com/telnyx/sdk/model/UpdateTexmlApplicationRequest.java src/main/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequest.java @@ -2037,21 +2197,18 @@ src/main/java/com/telnyx/sdk/model/UpdateVerifyProfilePSD2Request.java src/main/java/com/telnyx/sdk/model/UpdateVerifyProfileRequest.java src/main/java/com/telnyx/sdk/model/UpdateVerifyProfileSMSRequest.java src/main/java/com/telnyx/sdk/model/UpdateVerifyProfileWhatsappRequest.java -src/main/java/com/telnyx/sdk/model/UpdateWhatsAppPhoneNumber.java -src/main/java/com/telnyx/sdk/model/UpdateWhatsAppProfilePhoto.java src/main/java/com/telnyx/sdk/model/UpdateWhatsappPhoneNumberAboutRequest.java src/main/java/com/telnyx/sdk/model/UpdateWhatsappPhoneNumberRequest.java src/main/java/com/telnyx/sdk/model/UplinkData.java src/main/java/com/telnyx/sdk/model/UploadMedia.java src/main/java/com/telnyx/sdk/model/UploadMediaRequest.java +src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201Response.java +src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequest.java +src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInner.java src/main/java/com/telnyx/sdk/model/Url.java src/main/java/com/telnyx/sdk/model/UrlShortenerSettings.java src/main/java/com/telnyx/sdk/model/UsagePaymentMethod.java src/main/java/com/telnyx/sdk/model/UserBalance.java -src/main/java/com/telnyx/sdk/model/UserBalanceResponse.java -src/main/java/com/telnyx/sdk/model/ValidateAddressRequest.java -src/main/java/com/telnyx/sdk/model/ValidateAddressResponse.java -src/main/java/com/telnyx/sdk/model/ValidateAddressResult.java src/main/java/com/telnyx/sdk/model/Verification.java src/main/java/com/telnyx/sdk/model/VerificationProfileRecordType.java src/main/java/com/telnyx/sdk/model/VerificationRecordType.java @@ -2059,9 +2216,11 @@ src/main/java/com/telnyx/sdk/model/VerificationStatus.java src/main/java/com/telnyx/sdk/model/VerificationType.java src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfile.java src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileBusinessIdentity.java -src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasons.java -src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbers.java +src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInner.java +src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInner.java src/main/java/com/telnyx/sdk/model/VerifyDetailRecord.java +src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201Response.java +src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequest.java src/main/java/com/telnyx/sdk/model/VerifyProfileCallResponse.java src/main/java/com/telnyx/sdk/model/VerifyProfileFlashcallResponse.java src/main/java/com/telnyx/sdk/model/VerifyProfilePSD2Response.java @@ -2073,587 +2232,362 @@ src/main/java/com/telnyx/sdk/model/VerifyVerificationCodeRequest.java src/main/java/com/telnyx/sdk/model/VerifyVerificationCodeResponse.java src/main/java/com/telnyx/sdk/model/VerifyVerificationCodeResponseData.java src/main/java/com/telnyx/sdk/model/Video.java +src/main/java/com/telnyx/sdk/model/Video1.java src/main/java/com/telnyx/sdk/model/VideoRegion.java +src/main/java/com/telnyx/sdk/model/ViewRoomParticipant200Response.java +src/main/java/com/telnyx/sdk/model/ViewRoomRecording200Response.java +src/main/java/com/telnyx/sdk/model/ViewRoomSession200Response.java +src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectList200Response.java +src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200Response.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnect.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnect1.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCombined.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200Response.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1.java +src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200Response.java src/main/java/com/telnyx/sdk/model/WdrReport.java src/main/java/com/telnyx/sdk/model/WdrReportRequest.java src/main/java/com/telnyx/sdk/model/WebhookApiVersion.java src/main/java/com/telnyx/sdk/model/WebhookDelivery.java src/main/java/com/telnyx/sdk/model/WebhookDeliveryWebhook.java +src/main/java/com/telnyx/sdk/model/WhatsAppBusinessAccount.java src/main/java/com/telnyx/sdk/model/WhatsAppContactAddress.java +src/main/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecord.java src/main/java/com/telnyx/sdk/model/WhatsAppDetailRecord.java src/main/java/com/telnyx/sdk/model/WhatsAppDetailRecordReport.java src/main/java/com/telnyx/sdk/model/WhatsAppDetailReportResponse.java src/main/java/com/telnyx/sdk/model/WhatsAppGetAllDetailReportResponse.java -src/main/java/com/telnyx/sdk/model/WhatsAppMessageResponse.java +src/main/java/com/telnyx/sdk/model/WhatsAppMessageTemplate.java +src/main/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1.java +src/main/java/com/telnyx/sdk/model/WhatsAppPhoneNumber.java +src/main/java/com/telnyx/sdk/model/WhatsAppProfilePhoto.java src/main/java/com/telnyx/sdk/model/WhatsAppReportsReq.java src/main/java/com/telnyx/sdk/model/WhatsAppUsageAggregation.java src/main/java/com/telnyx/sdk/model/WhatsAppUsageAggregationsResponseContainer.java src/main/java/com/telnyx/sdk/model/WhatsAppUser.java src/main/java/com/telnyx/sdk/model/WhatsappBusinessAccount.java src/main/java/com/telnyx/sdk/model/WhatsappBusinessAccountWhatsappSettings.java +src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplate.java +src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInner.java +src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScore.java src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumber.java +src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettings.java src/main/java/com/telnyx/sdk/model/WhatsappProfilePhoto.java +src/main/java/com/telnyx/sdk/model/WireguardAllowedIP.java +src/main/java/com/telnyx/sdk/model/WireguardInterface.java +src/main/java/com/telnyx/sdk/model/WireguardInterface1.java +src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate.java +src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate202Response.java +src/main/java/com/telnyx/sdk/model/WireguardInterfaceList200Response.java +src/main/java/com/telnyx/sdk/model/WireguardInterfaceRead.java +src/main/java/com/telnyx/sdk/model/WireguardPeer.java +src/main/java/com/telnyx/sdk/model/WireguardPeer1.java +src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIP.java +src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreate.java +src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200Response.java +src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200Response.java +src/main/java/com/telnyx/sdk/model/WireguardPeerCreate.java +src/main/java/com/telnyx/sdk/model/WireguardPeerCreate202Response.java +src/main/java/com/telnyx/sdk/model/WireguardPeerList200Response.java +src/main/java/com/telnyx/sdk/model/WireguardPeerPatch.java src/main/java/com/telnyx/sdk/model/WirelessConnectivityLog.java -src/main/java/com/telnyx/sdk/model/WirelessConnectivityLogCollectionResponse.java +src/main/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200Response.java src/main/java/com/telnyx/sdk/model/WirelessCost.java src/main/java/com/telnyx/sdk/model/WirelessRate.java -src/test/java/com/telnyx/sdk/api/AccessControlIpsApiTest.java -src/test/java/com/telnyx/sdk/api/AddressesApiTest.java -src/test/java/com/telnyx/sdk/api/AuthenticationProvidersApiTest.java -src/test/java/com/telnyx/sdk/api/BillingApiTest.java -src/test/java/com/telnyx/sdk/api/BillingGroupsApiTest.java -src/test/java/com/telnyx/sdk/api/BusinessIdentityApiTest.java -src/test/java/com/telnyx/sdk/api/CallRecordingsApiTest.java -src/test/java/com/telnyx/sdk/api/CdrUsageReportsApiTest.java -src/test/java/com/telnyx/sdk/api/ChannelZonesApiTest.java -src/test/java/com/telnyx/sdk/api/CustomerServiceRequestApiTest.java -src/test/java/com/telnyx/sdk/api/DocumentsApiTest.java -src/test/java/com/telnyx/sdk/api/DynamicEmergencyAddressesApiTest.java -src/test/java/com/telnyx/sdk/api/DynamicEmergencyEndpointsApiTest.java -src/test/java/com/telnyx/sdk/api/InboundChannelsApiTest.java -src/test/java/com/telnyx/sdk/api/InventoryLevelApiTest.java -src/test/java/com/telnyx/sdk/api/IpAddressesApiTest.java -src/test/java/com/telnyx/sdk/api/IpRangesApiTest.java -src/test/java/com/telnyx/sdk/api/ManagedAccountsApiTest.java -src/test/java/com/telnyx/sdk/api/MdrDetailReportsApiTest.java -src/test/java/com/telnyx/sdk/api/MdrUsageReportsApiTest.java -src/test/java/com/telnyx/sdk/api/MediaStorageApiApiTest.java -src/test/java/com/telnyx/sdk/api/MobileApplicationsApiTest.java -src/test/java/com/telnyx/sdk/api/MobileOperatorNetworksApiTest.java -src/test/java/com/telnyx/sdk/api/NotificationsApiTest.java -src/test/java/com/telnyx/sdk/api/NumberPortoutApiTest.java -src/test/java/com/telnyx/sdk/api/OtaUpdatesApiTest.java -src/test/java/com/telnyx/sdk/api/PhoneNumberPortingApiTest.java -src/test/java/com/telnyx/sdk/api/PortingOrderApiTest.java -src/test/java/com/telnyx/sdk/api/PrivateWirelessGatewaysApiTest.java -src/test/java/com/telnyx/sdk/api/PushCredentialsApiTest.java -src/test/java/com/telnyx/sdk/api/RegisterCallApiTest.java -src/test/java/com/telnyx/sdk/api/ReportingApiTest.java -src/test/java/com/telnyx/sdk/api/ReportsApiTest.java -src/test/java/com/telnyx/sdk/api/RequirementTypesApiTest.java -src/test/java/com/telnyx/sdk/api/RequirementsApiTest.java -src/test/java/com/telnyx/sdk/api/RoomCompositionsApiTest.java -src/test/java/com/telnyx/sdk/api/RoomParticipantsApiTest.java -src/test/java/com/telnyx/sdk/api/RoomRecordingsApiTest.java -src/test/java/com/telnyx/sdk/api/RoomSessionsApiTest.java -src/test/java/com/telnyx/sdk/api/RoomsApiTest.java -src/test/java/com/telnyx/sdk/api/RoomsClientTokensApiTest.java -src/test/java/com/telnyx/sdk/api/SimCardActionsApiTest.java -src/test/java/com/telnyx/sdk/api/SimCardGroupActionsApiTest.java -src/test/java/com/telnyx/sdk/api/SimCardGroupsApiTest.java -src/test/java/com/telnyx/sdk/api/SimCardOrdersApiTest.java -src/test/java/com/telnyx/sdk/api/SimCardsApiTest.java -src/test/java/com/telnyx/sdk/api/VerifiedCallsDisplayProfileApiTest.java -src/test/java/com/telnyx/sdk/api/WebhooksApiTest.java -src/test/java/com/telnyx/sdk/api/WhatsAppBusinessAccountApiTest.java -src/test/java/com/telnyx/sdk/api/WhatsAppContactsApiTest.java -src/test/java/com/telnyx/sdk/api/WhatsAppDetailReportsApiTest.java -src/test/java/com/telnyx/sdk/api/WhatsAppMediaApiTest.java -src/test/java/com/telnyx/sdk/api/WhatsAppMessagesApiTest.java -src/test/java/com/telnyx/sdk/api/WhatsAppPhoneNumberApiTest.java -src/test/java/com/telnyx/sdk/api/WhatsAppUsageAggregationsApiTest.java -src/test/java/com/telnyx/sdk/model/AccessControlIpCreateTest.java -src/test/java/com/telnyx/sdk/model/AccessControlIpIpAddressTypeTest.java -src/test/java/com/telnyx/sdk/model/AccessControlIpResponseTest.java -src/test/java/com/telnyx/sdk/model/AccessControlIpTest.java -src/test/java/com/telnyx/sdk/model/AccessControlIpUpdateTest.java -src/test/java/com/telnyx/sdk/model/AccessIPAddressListResponseSchemaTest.java -src/test/java/com/telnyx/sdk/model/AccessIPAddressPOSTTest.java -src/test/java/com/telnyx/sdk/model/AccessIPAddressResponseSchemaTest.java -src/test/java/com/telnyx/sdk/model/AccessIPRangeListResponseSchemaTest.java -src/test/java/com/telnyx/sdk/model/AccessIPRangePOSTTest.java -src/test/java/com/telnyx/sdk/model/AccessIPRangeResponseSchemaTest.java -src/test/java/com/telnyx/sdk/model/ActionSuccessResponseDataTest.java -src/test/java/com/telnyx/sdk/model/ActionSuccessResponseTest.java -src/test/java/com/telnyx/sdk/model/ActionsParticipantsRequestTest.java -src/test/java/com/telnyx/sdk/model/AddressCreateTest.java -src/test/java/com/telnyx/sdk/model/AddressResponseTest.java -src/test/java/com/telnyx/sdk/model/AddressTest.java -src/test/java/com/telnyx/sdk/model/AmdDetailRecordTest.java -src/test/java/com/telnyx/sdk/model/AttemptTest.java -src/test/java/com/telnyx/sdk/model/AudioTest.java -src/test/java/com/telnyx/sdk/model/AuthenticationProviderCreateTest.java -src/test/java/com/telnyx/sdk/model/AuthenticationProviderResponseTest.java -src/test/java/com/telnyx/sdk/model/AuthenticationProviderSettingsTest.java -src/test/java/com/telnyx/sdk/model/AuthenticationProviderTest.java -src/test/java/com/telnyx/sdk/model/BillingGroupTest.java -src/test/java/com/telnyx/sdk/model/BulkRoomRecordingsDeleteResponseDataTest.java -src/test/java/com/telnyx/sdk/model/BulkRoomRecordingsDeleteResponseTest.java -src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferenceResponseTest.java -src/test/java/com/telnyx/sdk/model/BulkUpdateSimNetworkPreferenceTest.java -src/test/java/com/telnyx/sdk/model/BusinessIdentityAddressTest.java -src/test/java/com/telnyx/sdk/model/BusinessIdentityContactsTest.java -src/test/java/com/telnyx/sdk/model/BusinessIdentityTest.java -src/test/java/com/telnyx/sdk/model/CallCostMetaMetaTest.java -src/test/java/com/telnyx/sdk/model/CallCostMetaTest.java -src/test/java/com/telnyx/sdk/model/CallCostPayloadCostPartsTest.java -src/test/java/com/telnyx/sdk/model/CallCostPayloadTest.java -src/test/java/com/telnyx/sdk/model/CallCostTest.java -src/test/java/com/telnyx/sdk/model/CallRecordingErrorEventTest.java -src/test/java/com/telnyx/sdk/model/CallRecordingErrorPayloadTest.java -src/test/java/com/telnyx/sdk/model/CallRecordingErrorTest.java -src/test/java/com/telnyx/sdk/model/CallStreamingStartedEventTest.java -src/test/java/com/telnyx/sdk/model/CallStreamingStartedPayloadTest.java -src/test/java/com/telnyx/sdk/model/CallStreamingStartedTest.java -src/test/java/com/telnyx/sdk/model/CallStreamingStoppedEventTest.java -src/test/java/com/telnyx/sdk/model/CallStreamingStoppedTest.java -src/test/java/com/telnyx/sdk/model/CallbackWebhookMetaTest.java -src/test/java/com/telnyx/sdk/model/CdrGetSyncUsageReportResponseTest.java -src/test/java/com/telnyx/sdk/model/CdrUsageReportResponseTest.java -src/test/java/com/telnyx/sdk/model/CheckContactRequestBodyTest.java -src/test/java/com/telnyx/sdk/model/CheckContactResponseTest.java -src/test/java/com/telnyx/sdk/model/CheckContactTest.java -src/test/java/com/telnyx/sdk/model/ClientStateUpdateRequestTest.java -src/test/java/com/telnyx/sdk/model/CloudflareSyncStatusTest.java -src/test/java/com/telnyx/sdk/model/CommentResponseTest.java -src/test/java/com/telnyx/sdk/model/CommentTest.java -src/test/java/com/telnyx/sdk/model/CompleteOTAUpdateSettingsTest.java -src/test/java/com/telnyx/sdk/model/CompleteOTAUpdateTest.java -src/test/java/com/telnyx/sdk/model/CompositionCompletedEventTest.java -src/test/java/com/telnyx/sdk/model/CompositionCompletedPayloadTest.java -src/test/java/com/telnyx/sdk/model/CompositionCompletedTest.java -src/test/java/com/telnyx/sdk/model/ConsumedDataTest.java -src/test/java/com/telnyx/sdk/model/ContactTest.java -src/test/java/com/telnyx/sdk/model/CreateAndroidPushCredentialRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateBillingGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateCommentPortoutRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateDocServiceDocumentRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateIosPushCredentialRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReportResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateManagedAccountRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateMobileApplicationRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateNotificationChannelTest.java -src/test/java/com/telnyx/sdk/model/CreateNotificationProfileTest.java -src/test/java/com/telnyx/sdk/model/CreateNotificationSettingAsyncTest.java -src/test/java/com/telnyx/sdk/model/CreateNotificationSettingTest.java -src/test/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequestTest.java -src/test/java/com/telnyx/sdk/model/CreatePhoneNumberEmergencyEnableTest.java -src/test/java/com/telnyx/sdk/model/CreatePhoneNumberEmergencyRequestedTest.java -src/test/java/com/telnyx/sdk/model/CreatePhoneNumbersEnableEmergencyTest.java -src/test/java/com/telnyx/sdk/model/CreatePhoneNumbersJobDeletePhoneNumbersTest.java -src/test/java/com/telnyx/sdk/model/CreatePortOutSupportingDocumentsResponseTest.java -src/test/java/com/telnyx/sdk/model/CreatePortabilityCheckRequestTest.java -src/test/java/com/telnyx/sdk/model/CreatePortingOrderCommentTest.java -src/test/java/com/telnyx/sdk/model/CreatePortingOrderTest.java -src/test/java/com/telnyx/sdk/model/CreatePortingSupportingDocsRequestTest.java -src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayResponseTest.java -src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatwewayRequest1Test.java -src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatwewayRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateRoomClientTokenRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateRoomClientTokenResponseDataTest.java -src/test/java/com/telnyx/sdk/model/CreateRoomClientTokenResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateRoomCompositionRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateRoomCompositionResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateRoomRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateRoomResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateSIMCardDataUsageNotificationRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateSIMCardValidateRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateSimCardDataUsageNotificationResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateSimCardGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateSimCardOrderPreviewTest.java -src/test/java/com/telnyx/sdk/model/CreateSimCardOrderResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequestTest.java -src/test/java/com/telnyx/sdk/model/CreateWdrReportResponseTest.java -src/test/java/com/telnyx/sdk/model/CreateWhatsAppMessageRequestTest.java -src/test/java/com/telnyx/sdk/model/CredentialsResponseTest.java -src/test/java/com/telnyx/sdk/model/CustomerServiceRequestAddressTest.java -src/test/java/com/telnyx/sdk/model/CustomerServiceRequestPhoneNumberCoverageTest.java -src/test/java/com/telnyx/sdk/model/CustomerServiceRequestStatusChangedEventPayloadTest.java -src/test/java/com/telnyx/sdk/model/CustomerServiceRequestStatusChangedEventTest.java -src/test/java/com/telnyx/sdk/model/CustomerServiceRequestTest.java -src/test/java/com/telnyx/sdk/model/DateTimeComponentTest.java -src/test/java/com/telnyx/sdk/model/DateTimeObjectTest.java -src/test/java/com/telnyx/sdk/model/DateTimeUnixEpochTest.java -src/test/java/com/telnyx/sdk/model/DeleteBillingGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/DeleteNotificationChannelTest.java -src/test/java/com/telnyx/sdk/model/DeleteNotificationProfilesTest.java -src/test/java/com/telnyx/sdk/model/DeleteNotificationSettingAsyncTest.java -src/test/java/com/telnyx/sdk/model/DeleteNotificationSettingTest.java -src/test/java/com/telnyx/sdk/model/DeletePrivateWirelessGatewayResponseTest.java -src/test/java/com/telnyx/sdk/model/DeleteSIMCardNetworkPreferenceResponseTest.java -src/test/java/com/telnyx/sdk/model/DeleteSimCardDataUsageNotificationResponseTest.java -src/test/java/com/telnyx/sdk/model/DeleteSimCardGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/DeleteSimCardResponseTest.java -src/test/java/com/telnyx/sdk/model/DeleteWdrReportResponseTest.java -src/test/java/com/telnyx/sdk/model/DocReqsListRequirementTypesResponseTest.java -src/test/java/com/telnyx/sdk/model/DocReqsRequirementResponseTest.java -src/test/java/com/telnyx/sdk/model/DocReqsRequirementTest.java -src/test/java/com/telnyx/sdk/model/DocReqsRequirementTypeAcceptanceCriteriaTest.java -src/test/java/com/telnyx/sdk/model/DocReqsRequirementTypeResponseTest.java -src/test/java/com/telnyx/sdk/model/DocReqsRequirementTypeTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentAllOfSizeTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentAllOfTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentLinkAllOfTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentLinkTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentResponseTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentUploadInlineTest.java -src/test/java/com/telnyx/sdk/model/DocServiceDocumentUploadURLTest.java -src/test/java/com/telnyx/sdk/model/DocServiceRecordTest.java -src/test/java/com/telnyx/sdk/model/DocumentTest.java -src/test/java/com/telnyx/sdk/model/DownlinkDataTest.java -src/test/java/com/telnyx/sdk/model/DynamicEmergencyAddressResponseTest.java -src/test/java/com/telnyx/sdk/model/DynamicEmergencyAddressTest.java -src/test/java/com/telnyx/sdk/model/DynamicEmergencyEndpointResponseTest.java -src/test/java/com/telnyx/sdk/model/DynamicEmergencyEndpointTest.java -src/test/java/com/telnyx/sdk/model/EmailTest.java -src/test/java/com/telnyx/sdk/model/ExternalWdrDetailRecordDtoTest.java -src/test/java/com/telnyx/sdk/model/ExternalWdrGetDetailResponseTest.java -src/test/java/com/telnyx/sdk/model/FilterTest.java -src/test/java/com/telnyx/sdk/model/ForbiddenErrorAllOfMetaTest.java -src/test/java/com/telnyx/sdk/model/ForbiddenErrorAllOfTest.java -src/test/java/com/telnyx/sdk/model/ForbiddenErrorTest.java -src/test/java/com/telnyx/sdk/model/GCSConfigurationDataTest.java -src/test/java/com/telnyx/sdk/model/GCSConfigurationTest.java -src/test/java/com/telnyx/sdk/model/GcbChannelZoneTest.java -src/test/java/com/telnyx/sdk/model/GcbPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/GenericErrorTest.java -src/test/java/com/telnyx/sdk/model/GetAllAccessControlIpResponseTest.java -src/test/java/com/telnyx/sdk/model/GetAllAddressResponseTest.java -src/test/java/com/telnyx/sdk/model/GetAllAuthenticationProvidersResponseTest.java -src/test/java/com/telnyx/sdk/model/GetAllPrivateWirelessGatewaysResponseTest.java -src/test/java/com/telnyx/sdk/model/GetAllSimCardGroupsResponseTest.java -src/test/java/com/telnyx/sdk/model/GetAllSimCardOrderResponseTest.java -src/test/java/com/telnyx/sdk/model/GetGcbChannelZonesRequestResponseTest.java -src/test/java/com/telnyx/sdk/model/GetGcbPhoneNumbersRequestResponseTest.java -src/test/java/com/telnyx/sdk/model/GetPrivateWirelessGatewayResponseTest.java -src/test/java/com/telnyx/sdk/model/GetRoomCompositionResponseTest.java -src/test/java/com/telnyx/sdk/model/GetRoomParticipantResponseTest.java -src/test/java/com/telnyx/sdk/model/GetRoomRecordingResponseTest.java -src/test/java/com/telnyx/sdk/model/GetRoomResponseTest.java -src/test/java/com/telnyx/sdk/model/GetRoomSessionResponseTest.java -src/test/java/com/telnyx/sdk/model/GetSimCardDataUsageNotificationResponseTest.java -src/test/java/com/telnyx/sdk/model/GetSimCardGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/GetSimCardOrderResponseTest.java -src/test/java/com/telnyx/sdk/model/GetSimCardResponseTest.java -src/test/java/com/telnyx/sdk/model/GetSubRequestByPortingOrderTest.java -src/test/java/com/telnyx/sdk/model/GetWdrReportResponseTest.java -src/test/java/com/telnyx/sdk/model/GetWdrReportsResponseTest.java -src/test/java/com/telnyx/sdk/model/HsmTest.java -src/test/java/com/telnyx/sdk/model/HttpTest.java -src/test/java/com/telnyx/sdk/model/ImageTest.java -src/test/java/com/telnyx/sdk/model/ImmutableSetLongTest.java -src/test/java/com/telnyx/sdk/model/InventoryCoverageMetadataTest.java -src/test/java/com/telnyx/sdk/model/InventoryCoverageResponseTest.java -src/test/java/com/telnyx/sdk/model/InventoryCoverageTest.java -src/test/java/com/telnyx/sdk/model/LanguageTest.java -src/test/java/com/telnyx/sdk/model/LeaveConferenceRequestTest.java -src/test/java/com/telnyx/sdk/model/LedgerBillingGroupReportTest.java -src/test/java/com/telnyx/sdk/model/ListAllowedFocWindowTest.java -src/test/java/com/telnyx/sdk/model/ListBillingGroupsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListBusinessIdentitiesResponseTest.java -src/test/java/com/telnyx/sdk/model/ListChannelZonesByPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/ListCommentsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequestPhoneNumberCoverageTest.java -src/test/java/com/telnyx/sdk/model/ListDocServiceDocumentLinksResponseTest.java -src/test/java/com/telnyx/sdk/model/ListDocServiceDocumentsResposneTest.java -src/test/java/com/telnyx/sdk/model/ListDraftPortingOrderWithoutPaginationTest.java -src/test/java/com/telnyx/sdk/model/ListDynamicEmergencyAddressesTest.java -src/test/java/com/telnyx/sdk/model/ListDynamicEmergencyEndpointsTest.java -src/test/java/com/telnyx/sdk/model/ListInboundChannelsDataTest.java -src/test/java/com/telnyx/sdk/model/ListInboundChannelsTest.java -src/test/java/com/telnyx/sdk/model/ListManagedAccountsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListNotificationChannelsTest.java -src/test/java/com/telnyx/sdk/model/ListNotificationEvenConditionsTest.java -src/test/java/com/telnyx/sdk/model/ListNotificationEventsTest.java -src/test/java/com/telnyx/sdk/model/ListNotificationProfilesTest.java -src/test/java/com/telnyx/sdk/model/ListNotificationSettingsTest.java -src/test/java/com/telnyx/sdk/model/ListNumberOrderPhoneNumbersResponseTest.java -src/test/java/com/telnyx/sdk/model/ListOfMediaResourcesResponseTest.java -src/test/java/com/telnyx/sdk/model/ListPortingOrderDocumentsTest.java -src/test/java/com/telnyx/sdk/model/ListPortingOrderTest.java -src/test/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobsTest.java -src/test/java/com/telnyx/sdk/model/ListPortingOrdersCommentsTest.java -src/test/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypesTest.java -src/test/java/com/telnyx/sdk/model/ListPortingPhoneNumbersTest.java -src/test/java/com/telnyx/sdk/model/ListPortoutCommentsTest.java -src/test/java/com/telnyx/sdk/model/ListPortoutResponseTest.java -src/test/java/com/telnyx/sdk/model/ListRegulatoryRequirementsTest.java -src/test/java/com/telnyx/sdk/model/ListRequirementsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListRoomCompositionsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListRoomParticipantsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListRoomRecordingsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListRoomSessionsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListRoomsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListSubNumberOrdersResponseTest.java -src/test/java/com/telnyx/sdk/model/ListVerifiedCallsDisplayProfilesResponseTest.java -src/test/java/com/telnyx/sdk/model/ListWebhookDeliveriesResponseTest.java -src/test/java/com/telnyx/sdk/model/ListWhatsAppBusinessAccountsResponseTest.java -src/test/java/com/telnyx/sdk/model/ListWhatsAppPhoneNumbersResponseTest.java -src/test/java/com/telnyx/sdk/model/LocalizableParamTest.java -src/test/java/com/telnyx/sdk/model/LocationTest.java -src/test/java/com/telnyx/sdk/model/ManagedAccountBalanceTest.java -src/test/java/com/telnyx/sdk/model/ManagedAccountResponseTest.java -src/test/java/com/telnyx/sdk/model/ManagedAccountTest.java -src/test/java/com/telnyx/sdk/model/MarkMessageAsReadRequestBodyTest.java -src/test/java/com/telnyx/sdk/model/MdrDeleteDetailReportResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrDeleteUsageReportsResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrDetailReportResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrDetailResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrGetDetailReportByIdResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrGetDetailReportResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrGetDetailResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrGetSyncUsageReportResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrGetUsageReportsByIdResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrGetUsageReportsResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrPostDetailReportRequestTest.java -src/test/java/com/telnyx/sdk/model/MdrPostDetailReportResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrPostUsageReportRequestTest.java -src/test/java/com/telnyx/sdk/model/MdrPostUsageReportsResponseTest.java -src/test/java/com/telnyx/sdk/model/MdrUsageRecordTest.java -src/test/java/com/telnyx/sdk/model/MdrUsageReportResponseTest.java -src/test/java/com/telnyx/sdk/model/MediaResourceResponseTest.java -src/test/java/com/telnyx/sdk/model/MediaResourceTest.java -src/test/java/com/telnyx/sdk/model/MediaStorageDetailRecordTest.java -src/test/java/com/telnyx/sdk/model/MessageTest.java -src/test/java/com/telnyx/sdk/model/MetadataTest.java -src/test/java/com/telnyx/sdk/model/MobileApplicationResponseTest.java -src/test/java/com/telnyx/sdk/model/MobileApplicationTest.java -src/test/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesRequestTest.java -src/test/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesResponseTest.java -src/test/java/com/telnyx/sdk/model/MobileOperatorNetworkTest.java -src/test/java/com/telnyx/sdk/model/MoneyTest.java -src/test/java/com/telnyx/sdk/model/NewBillingGroupTest.java -src/test/java/com/telnyx/sdk/model/NewLedgerBillingGroupReportTest.java -src/test/java/com/telnyx/sdk/model/NotificationChannelTest.java -src/test/java/com/telnyx/sdk/model/NotificationEventConditionParametersTest.java -src/test/java/com/telnyx/sdk/model/NotificationEventConditionTest.java -src/test/java/com/telnyx/sdk/model/NotificationEventTest.java -src/test/java/com/telnyx/sdk/model/NotificationProfileTest.java -src/test/java/com/telnyx/sdk/model/NotificationSettingParametersTest.java -src/test/java/com/telnyx/sdk/model/NotificationSettingTest.java -src/test/java/com/telnyx/sdk/model/NumberOrderPhoneNumberResponseTest.java -src/test/java/com/telnyx/sdk/model/NumberOrderPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/NumberOrderWithPhoneNumbersAllOfTest.java -src/test/java/com/telnyx/sdk/model/NumberOrderWithPhoneNumbersTest.java -src/test/java/com/telnyx/sdk/model/OTAUpdateResponseTest.java -src/test/java/com/telnyx/sdk/model/OrganizationTest.java -src/test/java/com/telnyx/sdk/model/PUTSIMCardNetworkPreferenceResponseTest.java -src/test/java/com/telnyx/sdk/model/ParticipantJoinedEventTest.java -src/test/java/com/telnyx/sdk/model/ParticipantJoinedPayloadTest.java -src/test/java/com/telnyx/sdk/model/ParticipantJoinedTest.java -src/test/java/com/telnyx/sdk/model/ParticipantLeftEventTest.java -src/test/java/com/telnyx/sdk/model/ParticipantLeftPayloadTest.java -src/test/java/com/telnyx/sdk/model/ParticipantLeftTest.java -src/test/java/com/telnyx/sdk/model/PatchRoomRequestTest.java -src/test/java/com/telnyx/sdk/model/PatchRoomResponseTest.java -src/test/java/com/telnyx/sdk/model/PhoneNumberRegulatoryRequirementAllOfTest.java -src/test/java/com/telnyx/sdk/model/PhoneNumbersJobPendingOperationTest.java -src/test/java/com/telnyx/sdk/model/PhoneNumbersJobPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/PhoneTest.java -src/test/java/com/telnyx/sdk/model/PortOutListSupportingDocumentsResponseTest.java -src/test/java/com/telnyx/sdk/model/PortOutSupportingDocumentTest.java -src/test/java/com/telnyx/sdk/model/PortabilityCheckDetailsTest.java -src/test/java/com/telnyx/sdk/model/PortabilityCheckResponseTest.java -src/test/java/com/telnyx/sdk/model/PortabilityStatusTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderActivationSettingsTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderActivationStatusTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderDocumentTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderDocumentsCreatedTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderDocumentsTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderEndUserAdminTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderEndUserLocationTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderEndUserTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderMiscTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderPhoneNumberConfigurationTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderRequirementTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderStatusTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderTypeTest.java -src/test/java/com/telnyx/sdk/model/PortingOrderUserFeedbackTest.java -src/test/java/com/telnyx/sdk/model/PortingOrdersActivationJobTest.java -src/test/java/com/telnyx/sdk/model/PortingOrdersAllowedFocWindowTest.java -src/test/java/com/telnyx/sdk/model/PortingOrdersCommentTest.java -src/test/java/com/telnyx/sdk/model/PortingOrdersExceptionTypeTest.java -src/test/java/com/telnyx/sdk/model/PortingPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/PortoutCommentResposneTest.java -src/test/java/com/telnyx/sdk/model/PortoutCommentTest.java -src/test/java/com/telnyx/sdk/model/PortoutDetailsTest.java -src/test/java/com/telnyx/sdk/model/PortoutResponseTest.java -src/test/java/com/telnyx/sdk/model/PortoutsIdSupportingDocumentsDocumentsTest.java -src/test/java/com/telnyx/sdk/model/PrivateWirelessGatewayRequestTest.java -src/test/java/com/telnyx/sdk/model/PrivateWirelessGatewayStatusTest.java -src/test/java/com/telnyx/sdk/model/PrivateWirelessGatewayTest.java -src/test/java/com/telnyx/sdk/model/PushCredentialResponseTest.java -src/test/java/com/telnyx/sdk/model/PushCredentialTest.java -src/test/java/com/telnyx/sdk/model/PutNetworkPreferenceRequestTest.java -src/test/java/com/telnyx/sdk/model/ReadCommentAllOfTest.java -src/test/java/com/telnyx/sdk/model/ReadCommentResponseTest.java -src/test/java/com/telnyx/sdk/model/ReadCommentTest.java -src/test/java/com/telnyx/sdk/model/RecordingCompletedEventTest.java -src/test/java/com/telnyx/sdk/model/RecordingCompletedPayloadTest.java -src/test/java/com/telnyx/sdk/model/RecordingCompletedTest.java -src/test/java/com/telnyx/sdk/model/RecordingStartedEventTest.java -src/test/java/com/telnyx/sdk/model/RecordingStartedPayloadTest.java -src/test/java/com/telnyx/sdk/model/RecordingStartedTest.java -src/test/java/com/telnyx/sdk/model/RefreshRoomClientTokenRequestTest.java -src/test/java/com/telnyx/sdk/model/RefreshRoomClientTokenResponseDataTest.java -src/test/java/com/telnyx/sdk/model/RefreshRoomClientTokenResponseTest.java -src/test/java/com/telnyx/sdk/model/RegisterCallCommandResultTest.java -src/test/java/com/telnyx/sdk/model/RegisterCallRequestTest.java -src/test/java/com/telnyx/sdk/model/RegisterCallResponseTest.java -src/test/java/com/telnyx/sdk/model/RegisterSimCardsResponseTest.java -src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsAcceptanceCriteriaTest.java -src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationTest.java -src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsTest.java -src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsTest.java -src/test/java/com/telnyx/sdk/model/ResourceNotFoundErrorAllOfMetaTest.java -src/test/java/com/telnyx/sdk/model/ResourceNotFoundErrorAllOfTest.java -src/test/java/com/telnyx/sdk/model/ResourceNotFoundErrorTest.java -src/test/java/com/telnyx/sdk/model/RetrieveBillingGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/RetrieveLedgerBillingGroupReportResponseTest.java -src/test/java/com/telnyx/sdk/model/RetrieveNotificationChannelTest.java -src/test/java/com/telnyx/sdk/model/RetrieveNotificationProfileTest.java -src/test/java/com/telnyx/sdk/model/RetrieveNotificationSettingTest.java -src/test/java/com/telnyx/sdk/model/RetrievePhoneNumberBlocksJobTest.java -src/test/java/com/telnyx/sdk/model/RetrievePhoneNumbersJobTest.java -src/test/java/com/telnyx/sdk/model/RetrieveWebhookDeliveryTest.java -src/test/java/com/telnyx/sdk/model/RetrieveWhatsAppBusinessAccountTest.java -src/test/java/com/telnyx/sdk/model/RetrieveWhatsAppPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/RetrieveWhatsAppProfilePhotoTest.java -src/test/java/com/telnyx/sdk/model/RoomCompositionTest.java -src/test/java/com/telnyx/sdk/model/RoomParticipantTest.java -src/test/java/com/telnyx/sdk/model/RoomRecordingTest.java -src/test/java/com/telnyx/sdk/model/RoomSessionTest.java -src/test/java/com/telnyx/sdk/model/RoomTest.java -src/test/java/com/telnyx/sdk/model/SIMCardActionResponseTest.java -src/test/java/com/telnyx/sdk/model/SIMCardActionStatusTest.java -src/test/java/com/telnyx/sdk/model/SIMCardActionTest.java -src/test/java/com/telnyx/sdk/model/SIMCardCurrentBillingPeriodConsumedDataTest.java -src/test/java/com/telnyx/sdk/model/SIMCardCurrentDeviceLocationTest.java -src/test/java/com/telnyx/sdk/model/SIMCardDataLimitTest.java -src/test/java/com/telnyx/sdk/model/SIMCardGroupActionResponseTest.java -src/test/java/com/telnyx/sdk/model/SIMCardGroupActionSettingsTest.java -src/test/java/com/telnyx/sdk/model/SIMCardGroupActionTest.java -src/test/java/com/telnyx/sdk/model/SIMCardGroupCreateTest.java -src/test/java/com/telnyx/sdk/model/SIMCardGroupDataLimitTest.java -src/test/java/com/telnyx/sdk/model/SIMCardGroupPatchTest.java -src/test/java/com/telnyx/sdk/model/SIMCardGroupTest.java -src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceTest.java -src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdatesResponseTest.java -src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdatesTest.java -src/test/java/com/telnyx/sdk/model/SIMCardOrderCostTest.java -src/test/java/com/telnyx/sdk/model/SIMCardOrderOrderAddressTest.java -src/test/java/com/telnyx/sdk/model/SIMCardOrderPreviewTest.java -src/test/java/com/telnyx/sdk/model/SIMCardOrderPreviewTotalCostTest.java -src/test/java/com/telnyx/sdk/model/SIMCardOrderTest.java -src/test/java/com/telnyx/sdk/model/SIMCardOrdersPreviewResponseTest.java -src/test/java/com/telnyx/sdk/model/SIMCardPublicIPResponseTest.java -src/test/java/com/telnyx/sdk/model/SIMCardPublicIPTest.java -src/test/java/com/telnyx/sdk/model/SIMCardRegistrationCodeValidationTest.java -src/test/java/com/telnyx/sdk/model/SIMCardRegistrationCodeValidationsTest.java -src/test/java/com/telnyx/sdk/model/SIMCardRegistrationTest.java -src/test/java/com/telnyx/sdk/model/SIMCardStatusTest.java -src/test/java/com/telnyx/sdk/model/SIMCardTest.java -src/test/java/com/telnyx/sdk/model/SearchMobileOperatorNetworksResponseTest.java -src/test/java/com/telnyx/sdk/model/SearchOTAUpdateResponseTest.java -src/test/java/com/telnyx/sdk/model/SearchSimCardsResponseTest.java -src/test/java/com/telnyx/sdk/model/SessionEndedEventTest.java -src/test/java/com/telnyx/sdk/model/SessionEndedPayloadTest.java -src/test/java/com/telnyx/sdk/model/SessionEndedTest.java -src/test/java/com/telnyx/sdk/model/SessionStartedEventTest.java -src/test/java/com/telnyx/sdk/model/SessionStartedPayloadTest.java -src/test/java/com/telnyx/sdk/model/SessionStartedTest.java -src/test/java/com/telnyx/sdk/model/SettingsTest.java -src/test/java/com/telnyx/sdk/model/ShowBusinessIdentityResponseTest.java -src/test/java/com/telnyx/sdk/model/ShowCustomerServiceRequestTest.java -src/test/java/com/telnyx/sdk/model/ShowPortingOrderCommentTest.java -src/test/java/com/telnyx/sdk/model/ShowPortingOrderMetaTest.java -src/test/java/com/telnyx/sdk/model/ShowPortingOrderTest.java -src/test/java/com/telnyx/sdk/model/ShowPortingOrdersActivationJobTest.java -src/test/java/com/telnyx/sdk/model/ShowVerifiedCallsDisplayProfileResponseTest.java -src/test/java/com/telnyx/sdk/model/SimCardActionCollectionResponseTest.java -src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationCollectionTest.java -src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationTest.java -src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsThresholdTest.java -src/test/java/com/telnyx/sdk/model/SimCardGroupActionCollectionResponseTest.java -src/test/java/com/telnyx/sdk/model/SimCardOrderCreateTest.java -src/test/java/com/telnyx/sdk/model/SimCardUsageDetailRecordTest.java -src/test/java/com/telnyx/sdk/model/SimpleSIMCardDataLimitTest.java -src/test/java/com/telnyx/sdk/model/SimpleSIMCardTest.java -src/test/java/com/telnyx/sdk/model/SimplifiedOTAUpdateTest.java -src/test/java/com/telnyx/sdk/model/SipHeaderTest.java -src/test/java/com/telnyx/sdk/model/SoundModificationsTest.java -src/test/java/com/telnyx/sdk/model/StartStreamingRequestTest.java -src/test/java/com/telnyx/sdk/model/StopStreamingRequestTest.java -src/test/java/com/telnyx/sdk/model/SubNumberOrderRegulatoryRequirementTest.java -src/test/java/com/telnyx/sdk/model/SubNumberOrderResponseTest.java -src/test/java/com/telnyx/sdk/model/SubNumberOrderTest.java -src/test/java/com/telnyx/sdk/model/SubRequestByPortingOrderTest.java -src/test/java/com/telnyx/sdk/model/TemplateTest.java -src/test/java/com/telnyx/sdk/model/TextTest.java -src/test/java/com/telnyx/sdk/model/UnauthorizedErrorAllOfMetaTest.java -src/test/java/com/telnyx/sdk/model/UnauthorizedErrorAllOfTest.java -src/test/java/com/telnyx/sdk/model/UnauthorizedErrorTest.java -src/test/java/com/telnyx/sdk/model/UnexpectedErrorAllOfMetaTest.java -src/test/java/com/telnyx/sdk/model/UnexpectedErrorAllOfTest.java -src/test/java/com/telnyx/sdk/model/UnexpectedErrorTest.java -src/test/java/com/telnyx/sdk/model/UnprocessableEntityErrorAllOfMetaTest.java -src/test/java/com/telnyx/sdk/model/UnprocessableEntityErrorAllOfSourceTest.java -src/test/java/com/telnyx/sdk/model/UnprocessableEntityErrorAllOfTest.java -src/test/java/com/telnyx/sdk/model/UnprocessableEntityErrorTest.java -src/test/java/com/telnyx/sdk/model/UnprocessableManagedAccountEntityTest.java -src/test/java/com/telnyx/sdk/model/UpdateAuthenticationProviderRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdateBillingGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/UpdateBillingGroupTest.java -src/test/java/com/telnyx/sdk/model/UpdateChannelZoneTest.java -src/test/java/com/telnyx/sdk/model/UpdateInbouncChannelsDataTest.java -src/test/java/com/telnyx/sdk/model/UpdateInbouncChannelsTest.java -src/test/java/com/telnyx/sdk/model/UpdateInboundChannelsTest.java -src/test/java/com/telnyx/sdk/model/UpdateManagedAccountRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdateMediaRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdateNotificationChannelTest.java -src/test/java/com/telnyx/sdk/model/UpdateNotificationProfileTest.java -src/test/java/com/telnyx/sdk/model/UpdateNumberOrderPhoneNumberRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdatePortingOrderActivationSettingsTest.java -src/test/java/com/telnyx/sdk/model/UpdatePortingOrderRequirementTest.java -src/test/java/com/telnyx/sdk/model/UpdatePortingOrderTest.java -src/test/java/com/telnyx/sdk/model/UpdatePortoutStatusRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdateRegulatoryRequirementTest.java -src/test/java/com/telnyx/sdk/model/UpdateSimCardDataUsageNotificationResponseTest.java -src/test/java/com/telnyx/sdk/model/UpdateSimCardGroupResponseTest.java -src/test/java/com/telnyx/sdk/model/UpdateSimCardResponseTest.java -src/test/java/com/telnyx/sdk/model/UpdateSubNumberOrderRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdateWhatsAppPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/UpdateWhatsAppProfilePhotoTest.java -src/test/java/com/telnyx/sdk/model/UpdateWhatsappPhoneNumberAboutRequestTest.java -src/test/java/com/telnyx/sdk/model/UpdateWhatsappPhoneNumberRequestTest.java -src/test/java/com/telnyx/sdk/model/UplinkDataTest.java -src/test/java/com/telnyx/sdk/model/UploadMediaRequestTest.java -src/test/java/com/telnyx/sdk/model/UploadMediaTest.java -src/test/java/com/telnyx/sdk/model/UrlTest.java -src/test/java/com/telnyx/sdk/model/UserBalanceResponseTest.java -src/test/java/com/telnyx/sdk/model/UserBalanceTest.java -src/test/java/com/telnyx/sdk/model/ValidateAddressRequestTest.java -src/test/java/com/telnyx/sdk/model/ValidateAddressResponseTest.java -src/test/java/com/telnyx/sdk/model/ValidateAddressResultTest.java -src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileBusinessIdentityTest.java -src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsTest.java -src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersTest.java -src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileTest.java -src/test/java/com/telnyx/sdk/model/VerifyDetailRecordTest.java -src/test/java/com/telnyx/sdk/model/VideoRegionTest.java -src/test/java/com/telnyx/sdk/model/VideoTest.java -src/test/java/com/telnyx/sdk/model/WdrReportRequestTest.java -src/test/java/com/telnyx/sdk/model/WdrReportTest.java -src/test/java/com/telnyx/sdk/model/WebhookDeliveryTest.java -src/test/java/com/telnyx/sdk/model/WebhookDeliveryWebhookTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppContactAddressTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppDetailRecordReportTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppDetailRecordTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppDetailReportResponseTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppGetAllDetailReportResponseTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppMessageResponseTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppReportsReqTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppUsageAggregationTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppUsageAggregationsResponseContainerTest.java -src/test/java/com/telnyx/sdk/model/WhatsAppUserTest.java -src/test/java/com/telnyx/sdk/model/WhatsappBusinessAccountTest.java -src/test/java/com/telnyx/sdk/model/WhatsappBusinessAccountWhatsappSettingsTest.java -src/test/java/com/telnyx/sdk/model/WhatsappPhoneNumberTest.java -src/test/java/com/telnyx/sdk/model/WhatsappProfilePhotoTest.java -src/test/java/com/telnyx/sdk/model/WirelessConnectivityLogCollectionResponseTest.java -src/test/java/com/telnyx/sdk/model/WirelessConnectivityLogTest.java -src/test/java/com/telnyx/sdk/model/WirelessCostTest.java -src/test/java/com/telnyx/sdk/model/WirelessRateTest.java +src/test/java/com/telnyx/sdk/api/DialogflowIntegrationApiTest.java +src/test/java/com/telnyx/sdk/api/NetworksApiTest.java +src/test/java/com/telnyx/sdk/api/PublicInternetGatewaysApiTest.java +src/test/java/com/telnyx/sdk/api/RegionsApiTest.java +src/test/java/com/telnyx/sdk/api/TeXmlRestCommandsApiTest.java +src/test/java/com/telnyx/sdk/api/VirtualCrossConnectsApiTest.java +src/test/java/com/telnyx/sdk/api/WdrDetailReportsApiTest.java +src/test/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApiTest.java +src/test/java/com/telnyx/sdk/api/WireGuardInterfacesApiTest.java +src/test/java/com/telnyx/sdk/model/ActionTest.java +src/test/java/com/telnyx/sdk/model/ActionsParticipantsRequestParticipantsTest.java +src/test/java/com/telnyx/sdk/model/ActivatePortingOrder202ResponseTest.java +src/test/java/com/telnyx/sdk/model/AssignPhoneNumberRequestTest.java +src/test/java/com/telnyx/sdk/model/BodyTest.java +src/test/java/com/telnyx/sdk/model/BulkSIMCardActionDetailedTest.java +src/test/java/com/telnyx/sdk/model/BulkSIMCardActionTest.java +src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202ResponseTest.java +src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequestTest.java +src/test/java/com/telnyx/sdk/model/BulkSetPublicIPs202ResponseTest.java +src/test/java/com/telnyx/sdk/model/BulkSetPublicIPsRequestTest.java +src/test/java/com/telnyx/sdk/model/BulkSimCardActionGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/BusinessIdentityContactsInnerTest.java +src/test/java/com/telnyx/sdk/model/ButtonComponentTypeTest.java +src/test/java/com/telnyx/sdk/model/ButtonParameterTest.java +src/test/java/com/telnyx/sdk/model/ButtonParameterTypeTest.java +src/test/java/com/telnyx/sdk/model/ButtonSubtypeTest.java +src/test/java/com/telnyx/sdk/model/ButtonTest.java +src/test/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInnerTest.java +src/test/java/com/telnyx/sdk/model/CallRequestToTest.java +src/test/java/com/telnyx/sdk/model/CallStreamingFailedEventTest.java +src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParamsTest.java +src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadTest.java +src/test/java/com/telnyx/sdk/model/CallStreamingFailedTest.java +src/test/java/com/telnyx/sdk/model/CancelPortingOrder200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ConfirmPortingOrder200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateAuthenticationProvider200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateBillingGroup200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateComment200ResponseDataTest.java +src/test/java/com/telnyx/sdk/model/CreateComment200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequestTest.java +src/test/java/com/telnyx/sdk/model/CreateDocument200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateManagedAccount200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateManagedAccount422ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateNotificationChannels200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateNotificationProfile200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateNotificationSetting200ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreatePortingOrder201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreatePortingOrderComment201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequestTest.java +src/test/java/com/telnyx/sdk/model/CreatePushCredentialRequestTest.java +src/test/java/com/telnyx/sdk/model/CreateRoom201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseDataTest.java +src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateRoomComposition202ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateWdrReport201ResponseTest.java +src/test/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBodyTest.java +src/test/java/com/telnyx/sdk/model/CursorPaginationCursorsTest.java +src/test/java/com/telnyx/sdk/model/CursorPaginationTest.java +src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponseTest.java +src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponseTest.java +src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatchTest.java +src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPostTest.java +src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchemaTest.java +src/test/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequestTest.java +src/test/java/com/telnyx/sdk/model/DialogflowConfigTest.java +src/test/java/com/telnyx/sdk/model/DialogflowConnectionResponseTest.java +src/test/java/com/telnyx/sdk/model/DialogflowConnectionTest.java +src/test/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200ResponseTest.java +src/test/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200ResponseTest.java +src/test/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200ResponseTest.java +src/test/java/com/telnyx/sdk/model/Document1Test.java +src/test/java/com/telnyx/sdk/model/EndSession200ResponseDataTest.java +src/test/java/com/telnyx/sdk/model/EndSession200ResponseTest.java +src/test/java/com/telnyx/sdk/model/FindAuthenticationProviders200ResponseTest.java +src/test/java/com/telnyx/sdk/model/FindNotificationsEvents200ResponseTest.java +src/test/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200ResponseTest.java +src/test/java/com/telnyx/sdk/model/FindNotificationsProfiles200ResponseTest.java +src/test/java/com/telnyx/sdk/model/FindPortoutComments200ResponseTest.java +src/test/java/com/telnyx/sdk/model/FindPortoutRequest200ResponseTest.java +src/test/java/com/telnyx/sdk/model/FooterTest.java +src/test/java/com/telnyx/sdk/model/GatherRequestTest.java +src/test/java/com/telnyx/sdk/model/GetChannelZones200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetCustomerServiceRequest404ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetPhoneNumbers200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMetaTest.java +src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetUserBalance200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetWdrReports200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetWebhookDeliveries200ResponseTest.java +src/test/java/com/telnyx/sdk/model/GetWebhookDelivery200ResponseTest.java +src/test/java/com/telnyx/sdk/model/HeaderTest.java +src/test/java/com/telnyx/sdk/model/HttpRequestTest.java +src/test/java/com/telnyx/sdk/model/HttpResponseTest.java +src/test/java/com/telnyx/sdk/model/Image1Test.java +src/test/java/com/telnyx/sdk/model/InboundMessagePayloadCcInnerTest.java +src/test/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInnerTest.java +src/test/java/com/telnyx/sdk/model/InboundMessagePayloadToInnerTest.java +src/test/java/com/telnyx/sdk/model/InteractiveActionTest.java +src/test/java/com/telnyx/sdk/model/InteractiveBodyTest.java +src/test/java/com/telnyx/sdk/model/InteractiveButtonReplyTest.java +src/test/java/com/telnyx/sdk/model/InteractiveButtonTest.java +src/test/java/com/telnyx/sdk/model/InteractiveButtonTypeTest.java +src/test/java/com/telnyx/sdk/model/InteractiveFooterTest.java +src/test/java/com/telnyx/sdk/model/InteractiveHeaderTest.java +src/test/java/com/telnyx/sdk/model/InteractiveProductTest.java +src/test/java/com/telnyx/sdk/model/InteractiveSectionRowTest.java +src/test/java/com/telnyx/sdk/model/InteractiveSectionTest.java +src/test/java/com/telnyx/sdk/model/InteractiveTest.java +src/test/java/com/telnyx/sdk/model/InteractiveTypeTest.java +src/test/java/com/telnyx/sdk/model/InterfaceStatusTest.java +src/test/java/com/telnyx/sdk/model/IpItemTest.java +src/test/java/com/telnyx/sdk/model/ListAllowedFocWindows200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListBillingGroups200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListBulkSIMCardActions200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListComments200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests401ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests403ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests422ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests500ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListDocumentLinks200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListDocuments200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListManagedAccounts200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListNotificationChannels200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListNotificationSettings200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseDataTest.java +src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortingOrderDocuments200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortingOrderRequirements200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortingOrders200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortingOrdersComments200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListPortoutRequest200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListRegulartoryRequirements200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListRequirements200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListRoomCompositions200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListRoomParticipants200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListRoomRecordings200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListRoomSessions200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListRooms200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListSIMCardActions200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ListTagsResponseDataInnerTest.java +src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseDataTest.java +src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseTest.java +src/test/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ModelInterfaceTest.java +src/test/java/com/telnyx/sdk/model/Network1Test.java +src/test/java/com/telnyx/sdk/model/NetworkCreate200ResponseTest.java +src/test/java/com/telnyx/sdk/model/NetworkCreateTest.java +src/test/java/com/telnyx/sdk/model/NetworkInterface1Test.java +src/test/java/com/telnyx/sdk/model/NetworkInterfaceList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/NetworkInterfaceTest.java +src/test/java/com/telnyx/sdk/model/NetworkList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/NetworkTest.java +src/test/java/com/telnyx/sdk/model/NotificationEventConditionParametersInnerTest.java +src/test/java/com/telnyx/sdk/model/NotificationSettingParametersInnerTest.java +src/test/java/com/telnyx/sdk/model/OTAUpdateGET200ResponseTest.java +src/test/java/com/telnyx/sdk/model/OTAUpdatesList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInnerTest.java +src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadToInnerTest.java +src/test/java/com/telnyx/sdk/model/PWGAssignedResourcesSummaryTest.java +src/test/java/com/telnyx/sdk/model/PatchGroupRequestTest.java +src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementTypeTest.java +src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailTest.java +src/test/java/com/telnyx/sdk/model/PostPortRequestComment201ResponseTest.java +src/test/java/com/telnyx/sdk/model/PostPortRequestCommentRequestTest.java +src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInnerTest.java +src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestTest.java +src/test/java/com/telnyx/sdk/model/PostPortabilityCheck201ResponseTest.java +src/test/java/com/telnyx/sdk/model/PostPortabilityCheckRequestTest.java +src/test/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequestTest.java +src/test/java/com/telnyx/sdk/model/PublicInternetGateway1Test.java +src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202ResponseTest.java +src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreateTest.java +src/test/java/com/telnyx/sdk/model/PublicInternetGatewayList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/PublicInternetGatewayReadTest.java +src/test/java/com/telnyx/sdk/model/PublicInternetGatewayTest.java +src/test/java/com/telnyx/sdk/model/RecordTest.java +src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseDataTest.java +src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseTest.java +src/test/java/com/telnyx/sdk/model/RegionInTest.java +src/test/java/com/telnyx/sdk/model/RegionList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/RegionOutRegionTest.java +src/test/java/com/telnyx/sdk/model/RegionOutTest.java +src/test/java/com/telnyx/sdk/model/RegionTest.java +src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInnerTest.java +src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteriaTest.java +src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerTest.java +src/test/java/com/telnyx/sdk/model/ReplyTest.java +src/test/java/com/telnyx/sdk/model/SIMCardActionsSummaryTest.java +src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsTest.java +src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequestTest.java +src/test/java/com/telnyx/sdk/model/SIMCardPublicIPGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SearchedSIMCardGroupTest.java +src/test/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequestTest.java +src/test/java/com/telnyx/sdk/model/SimCardActionGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestTest.java +src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThresholdTest.java +src/test/java/com/telnyx/sdk/model/SimCardGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardGroupActionGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardGroupActionsGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardGroupsGetAll200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardGroupsPost200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardOrdersGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardOrdersPost200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardOrdersPreview202ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequestTest.java +src/test/java/com/telnyx/sdk/model/SimCardRegister202ResponseTest.java +src/test/java/com/telnyx/sdk/model/SimCardsGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommandTest.java +src/test/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSentTest.java +src/test/java/com/telnyx/sdk/model/TeXmlRESTCommandResponseTest.java +src/test/java/com/telnyx/sdk/model/TemplateButtonComponentTest.java +src/test/java/com/telnyx/sdk/model/TemplateButtonParameterTest.java +src/test/java/com/telnyx/sdk/model/TemplateComponentTest.java +src/test/java/com/telnyx/sdk/model/TemplateComponentTypeTest.java +src/test/java/com/telnyx/sdk/model/TemplateComponentsTest.java +src/test/java/com/telnyx/sdk/model/TemplateParametersTest.java +src/test/java/com/telnyx/sdk/model/UpdateCallRequestTest.java +src/test/java/com/telnyx/sdk/model/UpdateCommandResultTest.java +src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseDataTest.java +src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseTest.java +src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSourceTest.java +src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerTest.java +src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseTest.java +src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequestTest.java +src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMetaTest.java +src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseTest.java +src/test/java/com/telnyx/sdk/model/UpdatePortoutRequestRequestTest.java +src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201ResponseTest.java +src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInnerTest.java +src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestTest.java +src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInnerTest.java +src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInnerTest.java +src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201ResponseTest.java +src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequestTest.java +src/test/java/com/telnyx/sdk/model/Video1Test.java +src/test/java/com/telnyx/sdk/model/ViewRoomParticipant200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ViewRoomRecording200ResponseTest.java +src/test/java/com/telnyx/sdk/model/ViewRoomSession200ResponseTest.java +src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnect1Test.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCombinedTest.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200ResponseTest.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreateTest.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1Test.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatchTest.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1Test.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionTest.java +src/test/java/com/telnyx/sdk/model/VirtualCrossConnectTest.java +src/test/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecordTest.java +src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1Test.java +src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplateTest.java +src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInnerTest.java +src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScoreTest.java +src/test/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettingsTest.java +src/test/java/com/telnyx/sdk/model/WireguardAllowedIPTest.java +src/test/java/com/telnyx/sdk/model/WireguardInterface1Test.java +src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreate202ResponseTest.java +src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreateTest.java +src/test/java/com/telnyx/sdk/model/WireguardInterfaceList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/WireguardInterfaceReadTest.java +src/test/java/com/telnyx/sdk/model/WireguardInterfaceTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeer1Test.java +src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreateTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200ResponseTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerCreate202ResponseTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerCreateTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerList200ResponseTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerPatchTest.java +src/test/java/com/telnyx/sdk/model/WireguardPeerTest.java +src/test/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200ResponseTest.java diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 5f68295f..6d54bbd7 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.0-SNAPSHOT \ No newline at end of file +6.0.1 \ No newline at end of file diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..1b6741c0 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,22 @@ +# +# Generated by OpenAPI Generator: https://openapi-generator.tech +# +# Ref: https://docs.travis-ci.com/user/languages/java/ +# +language: java +jdk: + - openjdk12 + - openjdk11 + - openjdk10 + - openjdk9 + - openjdk8 +before_install: + # ensure gradlew has proper permission + - chmod a+x ./gradlew +script: + # test using maven + #- mvn test + # test using gradle + - gradle test + # test using sbt + # - sbt test diff --git a/README.md b/README.md index d4110500..80b64d1c 100644 --- a/README.md +++ b/README.md @@ -82,7 +82,7 @@ import org.glassfish.jersey.apache.connector.ApacheConnectorProvider; import org.glassfish.jersey.client.ClientConfig; import org.glassfish.jersey.client.ClientProperties; import com.telnyx.sdk.*; -import com.telnyx.sdk.api.AccessControlIpsApi; +import com.telnyx.sdk.api.AccessTokensApi; ... @@ -94,7 +94,7 @@ clientConfig.property(ClientProperties.PROXY_USERNAME, "proxy_username"); clientConfig.property(ClientProperties.PROXY_PASSWORD, "proxy_password"); defaultClient.setClientConfig(clientConfig); -AccessControlIpsApi apiInstance = new AccessControlIpsApi(defaultClient); +AccessTokensApi apiInstance = new AccessTokensApi(defaultClient); ``` @@ -107,9 +107,9 @@ Please follow the [installation](#installation) instruction and execute the foll import com.telnyx.sdk.*; import com.telnyx.sdk.auth.*; import com.telnyx.sdk.model.*; -import com.telnyx.sdk.api.AccessControlIpsApi; +import com.telnyx.sdk.api.AccessTokensApi; -public class AccessControlIpsApiExample { +public class AccessTokensApiExample { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); @@ -119,13 +119,13 @@ public class AccessControlIpsApiExample { HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); bearerAuth.setBearerToken("BEARER TOKEN"); - AccessControlIpsApi apiInstance = new AccessControlIpsApi(defaultClient); - AccessControlIpCreate accessControlIpCreate = new AccessControlIpCreate(); // AccessControlIpCreate | Parameters that can be defined during access control IP creation + AccessTokensApi apiInstance = new AccessTokensApi(defaultClient); + String id = "id_example"; // String | Identifies the resource. try { - AccessControlIpResponse result = apiInstance.createAccessControlIp(accessControlIpCreate); + String result = apiInstance.createTelephonyCredentialToken(id); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AccessControlIpsApi#createAccessControlIp"); + System.err.println("Exception when calling AccessTokensApi#createTelephonyCredentialToken"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -142,17 +142,7 @@ All URIs are relative to *https://api.telnyx.com/v2* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AccessControlIpsApi* | [**createAccessControlIp**](docs/AccessControlIpsApi.md#createAccessControlIp) | **POST** /access_control_ips | Adds an access control IP -*AccessControlIpsApi* | [**deleteAccessControlIp**](docs/AccessControlIpsApi.md#deleteAccessControlIp) | **DELETE** /access_control_ips/{id} | Deletes an access control IP -*AccessControlIpsApi* | [**findAccessControlIps**](docs/AccessControlIpsApi.md#findAccessControlIps) | **GET** /access_control_ips | List all access control IPs -*AccessControlIpsApi* | [**getAccessControlIp**](docs/AccessControlIpsApi.md#getAccessControlIp) | **GET** /access_control_ips/{id} | Retrieve an access control IP -*AccessControlIpsApi* | [**updateAccessControlIp**](docs/AccessControlIpsApi.md#updateAccessControlIp) | **PATCH** /access_control_ips/{id} | Update an access control IP *AccessTokensApi* | [**createTelephonyCredentialToken**](docs/AccessTokensApi.md#createTelephonyCredentialToken) | **POST** /telephony_credentials/{id}/token | Create an Access Token. -*AddressesApi* | [**createAddress**](docs/AddressesApi.md#createAddress) | **POST** /addresses | Creates an address -*AddressesApi* | [**deleteAddress**](docs/AddressesApi.md#deleteAddress) | **DELETE** /addresses/{id} | Deletes an address -*AddressesApi* | [**findAddresss**](docs/AddressesApi.md#findAddresss) | **GET** /addresses | List all addresses -*AddressesApi* | [**getAddress**](docs/AddressesApi.md#getAddress) | **GET** /addresses/{id} | Retrieve an address -*AddressesApi* | [**validateAddress**](docs/AddressesApi.md#validateAddress) | **POST** /addresses/actions/validate | Validate an address *AuthenticationProvidersApi* | [**createAuthenticationProvider**](docs/AuthenticationProvidersApi.md#createAuthenticationProvider) | **POST** /authentication_providers | Creates an authentication provider *AuthenticationProvidersApi* | [**deleteAuthenticationProvider**](docs/AuthenticationProvidersApi.md#deleteAuthenticationProvider) | **DELETE** /authentication_providers/{id} | Deletes an authentication provider *AuthenticationProvidersApi* | [**findAuthenticationProviders**](docs/AuthenticationProvidersApi.md#findAuthenticationProviders) | **GET** /authentication_providers | List all SSO authentication providers @@ -179,6 +169,7 @@ Class | Method | HTTP request | Description *CallCommandsApi* | [**callEnqueue**](docs/CallCommandsApi.md#callEnqueue) | **POST** /calls/{call_control_id}/actions/enqueue | Enqueue call *CallCommandsApi* | [**callForkStart**](docs/CallCommandsApi.md#callForkStart) | **POST** /calls/{call_control_id}/actions/fork_start | Forking start *CallCommandsApi* | [**callForkStop**](docs/CallCommandsApi.md#callForkStop) | **POST** /calls/{call_control_id}/actions/fork_stop | Forking stop +*CallCommandsApi* | [**callGather**](docs/CallCommandsApi.md#callGather) | **POST** /calls/{call_control_id}/actions/gather | Gather *CallCommandsApi* | [**callGatherStop**](docs/CallCommandsApi.md#callGatherStop) | **POST** /calls/{call_control_id}/actions/gather_stop | Gather stop *CallCommandsApi* | [**callGatherUsingAudio**](docs/CallCommandsApi.md#callGatherUsingAudio) | **POST** /calls/{call_control_id}/actions/gather_using_audio | Gather using audio *CallCommandsApi* | [**callGatherUsingSpeak**](docs/CallCommandsApi.md#callGatherUsingSpeak) | **POST** /calls/{call_control_id}/actions/gather_using_speak | Gather using speak @@ -193,11 +184,11 @@ Class | Method | HTTP request | Description *CallCommandsApi* | [**callReject**](docs/CallCommandsApi.md#callReject) | **POST** /calls/{call_control_id}/actions/reject | Reject a call *CallCommandsApi* | [**callSendDTMF**](docs/CallCommandsApi.md#callSendDTMF) | **POST** /calls/{call_control_id}/actions/send_dtmf | Send DTMF *CallCommandsApi* | [**callSpeak**](docs/CallCommandsApi.md#callSpeak) | **POST** /calls/{call_control_id}/actions/speak | Speak text -*CallCommandsApi* | [**callStreamingStart**](docs/CallCommandsApi.md#callStreamingStart) | **POST** /calls/{call_control_id}/actions/streaming_start | Streaming start *CallCommandsApi* | [**callStreamingStop**](docs/CallCommandsApi.md#callStreamingStop) | **POST** /calls/{call_control_id}/actions/streaming_stop | Streaming stop *CallCommandsApi* | [**callTranscriptionStart**](docs/CallCommandsApi.md#callTranscriptionStart) | **POST** /calls/{call_control_id}/actions/transcription_start | Transcription start *CallCommandsApi* | [**callTranscriptionStop**](docs/CallCommandsApi.md#callTranscriptionStop) | **POST** /calls/{call_control_id}/actions/transcription_stop | Transcription stop *CallCommandsApi* | [**callTransfer**](docs/CallCommandsApi.md#callTransfer) | **POST** /calls/{call_control_id}/actions/transfer | Transfer call +*CallCommandsApi* | [**callsCallControlIdActionsStreamingStartPost**](docs/CallCommandsApi.md#callsCallControlIdActionsStreamingStartPost) | **POST** /calls/{call_control_id}/actions/streaming_start | Streaming start *CallCommandsApi* | [**clientStateUpdate**](docs/CallCommandsApi.md#clientStateUpdate) | **PUT** /calls/{call_control_id}/actions/client_state_update | Update client state *CallCommandsApi* | [**leaveQueue**](docs/CallCommandsApi.md#leaveQueue) | **POST** /calls/{call_control_id}/actions/leave_queue | Remove call from a queue *CallControlApplicationsApi* | [**createCallControlApplication**](docs/CallControlApplicationsApi.md#createCallControlApplication) | **POST** /call_control_applications | Create a call control application @@ -251,10 +242,16 @@ Class | Method | HTTP request | Description *CsvDownloadsApi* | [**createCsvDownload**](docs/CsvDownloadsApi.md#createCsvDownload) | **POST** /phone_numbers/csv_downloads | Create a CSV download *CsvDownloadsApi* | [**listCsvDownloads**](docs/CsvDownloadsApi.md#listCsvDownloads) | **GET** /phone_numbers/csv_downloads | List CSV downloads *CsvDownloadsApi* | [**retrieveCsvDownload**](docs/CsvDownloadsApi.md#retrieveCsvDownload) | **GET** /phone_numbers/csv_downloads/{id} | Retrieve a CSV download +*CustomerServiceRequestApi* | [**createCustomerServiceRequest**](docs/CustomerServiceRequestApi.md#createCustomerServiceRequest) | **POST** /customer_service_requests | Create a customer service request *CustomerServiceRequestApi* | [**getCustomerServiceRequest**](docs/CustomerServiceRequestApi.md#getCustomerServiceRequest) | **GET** /customer_service_requests/{customer_service_request_id} | Get a customer service request +*CustomerServiceRequestApi* | [**listCustomerServiceRequests**](docs/CustomerServiceRequestApi.md#listCustomerServiceRequests) | **GET** /customer_service_requests | List customer service requests *CustomerServiceRequestApi* | [**verifyPhoneNumberCoverage**](docs/CustomerServiceRequestApi.md#verifyPhoneNumberCoverage) | **POST** /customer_service_requests/phone_number_coverages | Verify CSR phone number coverage *DebuggingApi* | [**listCallEvents**](docs/DebuggingApi.md#listCallEvents) | **GET** /call_events | List call events *DetailRecordsApi* | [**detailRecordsSearch**](docs/DetailRecordsApi.md#detailRecordsSearch) | **GET** /detail_records | Search detail records +*DialogflowIntegrationApi* | [**createDialogflowConnection**](docs/DialogflowIntegrationApi.md#createDialogflowConnection) | **POST** /dialogflow_connections/{connection_id} | Create a Dialogflow Connection +*DialogflowIntegrationApi* | [**deleteDialogflowConnection**](docs/DialogflowIntegrationApi.md#deleteDialogflowConnection) | **DELETE** /dialogflow_connections/{connection_id} | Delete stored Dialogflow Connection +*DialogflowIntegrationApi* | [**getDialogflowConnection**](docs/DialogflowIntegrationApi.md#getDialogflowConnection) | **GET** /dialogflow_connections/{connection_id} | Retrieve stored Dialogflow Connection +*DialogflowIntegrationApi* | [**updateDialogflowConnection**](docs/DialogflowIntegrationApi.md#updateDialogflowConnection) | **PUT** /dialogflow_connections/{connection_id} | Update stored Dialogflow Connection *DocumentsApi* | [**createDocument**](docs/DocumentsApi.md#createDocument) | **POST** /documents | Upload a document *DocumentsApi* | [**deleteDocument**](docs/DocumentsApi.md#deleteDocument) | **DELETE** /documents/{id} | Delete a document *DocumentsApi* | [**downloadDocServiceDocument**](docs/DocumentsApi.md#downloadDocServiceDocument) | **GET** /documents/{id}/download | Download a document @@ -275,17 +272,24 @@ Class | Method | HTTP request | Description *FqdnConnectionsApi* | [**listFqdnConnections**](docs/FqdnConnectionsApi.md#listFqdnConnections) | **GET** /fqdn_connections | List FQDN connections *FqdnConnectionsApi* | [**retrieveFqdnConnection**](docs/FqdnConnectionsApi.md#retrieveFqdnConnection) | **GET** /fqdn_connections/{id} | Retrieve an FQDN connection *FqdnConnectionsApi* | [**updateFqdnConnection**](docs/FqdnConnectionsApi.md#updateFqdnConnection) | **PATCH** /fqdn_connections/{id} | Update an FQDN connection +*FqdnsApi* | [**createAccessFqdn**](docs/FqdnsApi.md#createAccessFqdn) | **POST** /access_fqdns | Create new Access FQDN *FqdnsApi* | [**createFqdn**](docs/FqdnsApi.md#createFqdn) | **POST** /fqdns | Create an FQDN +*FqdnsApi* | [**deleteAccessFqdn**](docs/FqdnsApi.md#deleteAccessFqdn) | **DELETE** /access_fqdns/{fqdn_id} | Delete Access FQDN *FqdnsApi* | [**deleteFqdn**](docs/FqdnsApi.md#deleteFqdn) | **DELETE** /fqdns/{id} | Delete an FQDN +*FqdnsApi* | [**listAccessFqdnById**](docs/FqdnsApi.md#listAccessFqdnById) | **GET** /access_fqdns/{fqdn_id} | List an Access FQDN +*FqdnsApi* | [**listAllAccessFqdns**](docs/FqdnsApi.md#listAllAccessFqdns) | **GET** /access_fqdns | List all Access FQDNs +*FqdnsApi* | [**listAllIpsByFqdn**](docs/FqdnsApi.md#listAllIpsByFqdn) | **GET** /access_fqdns/{fqdn_id}/ips | List Access FQDN's IP Addresses *FqdnsApi* | [**listFqdns**](docs/FqdnsApi.md#listFqdns) | **GET** /fqdns | List FQDNs *FqdnsApi* | [**retrieveFqdn**](docs/FqdnsApi.md#retrieveFqdn) | **GET** /fqdns/{id} | Retrieve an FQDN +*FqdnsApi* | [**updateAccessFqdn**](docs/FqdnsApi.md#updateAccessFqdn) | **PATCH** /access_fqdns/{fqdn_id} | Update Access FQDN *FqdnsApi* | [**updateFqdn**](docs/FqdnsApi.md#updateFqdn) | **PATCH** /fqdns/{id} | Update an FQDN *InboundChannelsApi* | [**listOutboundChannels**](docs/InboundChannelsApi.md#listOutboundChannels) | **GET** /phone_numbers/inbound_channels | Retrieve your inbound channels *InboundChannelsApi* | [**updateOutboundChannels**](docs/InboundChannelsApi.md#updateOutboundChannels) | **PATCH** /phone_numbers/inbound_channels | Update inbound channels *InventoryLevelApi* | [**createInventoryCoverageRequest**](docs/InventoryLevelApi.md#createInventoryCoverageRequest) | **GET** /inventory_coverage | Create an inventory coverage request *IpAddressesApi* | [**accessIPAddressCreate**](docs/IpAddressesApi.md#accessIPAddressCreate) | **POST** /access_ip_address | Create new Access IP Address +*IpAddressesApi* | [**accessIPAddressDelete**](docs/IpAddressesApi.md#accessIPAddressDelete) | **DELETE** /access_ip_address/{access_ip_address_id} | Delete access IP address +*IpAddressesApi* | [**accessIPAddressGet**](docs/IpAddressesApi.md#accessIPAddressGet) | **GET** /access_ip_address/{access_ip_address_id} | Retrieve an access IP address *IpAddressesApi* | [**accessIPAddressList**](docs/IpAddressesApi.md#accessIPAddressList) | **GET** /access_ip_address | List all Access IP Addresses -*IpAddressesApi* | [**accessIpAddressAccessIpAddressIdDelete**](docs/IpAddressesApi.md#accessIpAddressAccessIpAddressIdDelete) | **DELETE** /access_ip_address/{access_ip_address_id} | Delete access IP address *IpConnectionsApi* | [**createIpConnection**](docs/IpConnectionsApi.md#createIpConnection) | **POST** /ip_connections | Create an Ip connection *IpConnectionsApi* | [**deleteIpConnection**](docs/IpConnectionsApi.md#deleteIpConnection) | **DELETE** /ip_connections/{id} | Delete an Ip connection *IpConnectionsApi* | [**listIpConnections**](docs/IpConnectionsApi.md#listIpConnections) | **GET** /ip_connections | List Ip connections @@ -341,13 +345,13 @@ Class | Method | HTTP request | Description *MessagingProfilesApi* | [**retrieveMessagingProfileDetailedMetrics**](docs/MessagingProfilesApi.md#retrieveMessagingProfileDetailedMetrics) | **GET** /messaging_profiles/{id}/metrics | Retrieve messaging profile metrics *MessagingProfilesApi* | [**updateMessagingProfile**](docs/MessagingProfilesApi.md#updateMessagingProfile) | **PATCH** /messaging_profiles/{id} | Update a messaging profile *MessagingUrlDomainsApi* | [**listMessagingUrlDomains**](docs/MessagingUrlDomainsApi.md#listMessagingUrlDomains) | **GET** /messaging_url_domains | List messaging URL domains -*MobileApplicationsApi* | [**addMobileApplication**](docs/MobileApplicationsApi.md#addMobileApplication) | **POST** /mobile_applications | Adds a mobile application -*MobileApplicationsApi* | [**addPushCredential**](docs/MobileApplicationsApi.md#addPushCredential) | **POST** /mobile_applications/{mobile_application_id}/push_credentials | Adds push credential to a given mobile application -*MobileApplicationsApi* | [**deleteMobileApplicationById**](docs/MobileApplicationsApi.md#deleteMobileApplicationById) | **DELETE** /mobile_applications/{mobile_application_id} | Deletes a mobile application -*MobileApplicationsApi* | [**getAllMobileApplications**](docs/MobileApplicationsApi.md#getAllMobileApplications) | **GET** /mobile_applications | Retrieves mobile applications -*MobileApplicationsApi* | [**getMobileApplicationById**](docs/MobileApplicationsApi.md#getMobileApplicationById) | **GET** /mobile_applications/{mobile_application_id} | Retrieves a given mobile application -*MobileApplicationsApi* | [**updateMobileApplicationById**](docs/MobileApplicationsApi.md#updateMobileApplicationById) | **PATCH** /mobile_applications/{mobile_application_id} | Updates a mobile application *MobileOperatorNetworksApi* | [**mobileOperatorNetworksGet**](docs/MobileOperatorNetworksApi.md#mobileOperatorNetworksGet) | **GET** /mobile_operator_networks | List mobile operator networks +*NetworksApi* | [**networkCreate**](docs/NetworksApi.md#networkCreate) | **POST** /networks | Create a Network +*NetworksApi* | [**networkDelete**](docs/NetworksApi.md#networkDelete) | **DELETE** /networks/{id} | Delete a Network +*NetworksApi* | [**networkGet**](docs/NetworksApi.md#networkGet) | **GET** /networks/{id} | Retrieve a Network +*NetworksApi* | [**networkInterfaceList**](docs/NetworksApi.md#networkInterfaceList) | **GET** /networks/{id}/network_interfaces | List all Interfaces for a Network. +*NetworksApi* | [**networkList**](docs/NetworksApi.md#networkList) | **GET** /networks | List all Networks +*NetworksApi* | [**networkUpdate**](docs/NetworksApi.md#networkUpdate) | **PATCH** /networks/{id} | Update a Network *NotificationsApi* | [**createNotificationChannels**](docs/NotificationsApi.md#createNotificationChannels) | **POST** /notification_channels | Create a notification channel *NotificationsApi* | [**createNotificationProfile**](docs/NotificationsApi.md#createNotificationProfile) | **POST** /notification_profiles | Create a notification profile *NotificationsApi* | [**createNotificationSetting**](docs/NotificationsApi.md#createNotificationSetting) | **POST** /notification_settings | Add a Notification Setting @@ -439,6 +443,7 @@ Class | Method | HTTP request | Description *PortingOrderApi* | [**getPortingOrdersActivationJob**](docs/PortingOrderApi.md#getPortingOrdersActivationJob) | **GET** /porting_orders/{id}/activation_jobs/{activationJobId} | Retrieve a porting activation job *PortingOrderApi* | [**listAllowedFocWindows**](docs/PortingOrderApi.md#listAllowedFocWindows) | **GET** /porting_orders/{id}/allowed_foc_windows | List allowed FOC dates *PortingOrderApi* | [**listPortingOrderDocuments**](docs/PortingOrderApi.md#listPortingOrderDocuments) | **GET** /porting_orders/{id}/documents | List all documents associated with a porting order +*PortingOrderApi* | [**listPortingOrderRequirements**](docs/PortingOrderApi.md#listPortingOrderRequirements) | **GET** /porting_orders/{id}/requirements | List all required documents for this porting order *PortingOrderApi* | [**listPortingOrders**](docs/PortingOrderApi.md#listPortingOrders) | **GET** /porting_orders | List all porting orders *PortingOrderApi* | [**listPortingOrdersActivationJobs**](docs/PortingOrderApi.md#listPortingOrdersActivationJobs) | **GET** /porting_orders/{id}/activation_jobs | List all porting activation jobs *PortingOrderApi* | [**listPortingOrdersComments**](docs/PortingOrderApi.md#listPortingOrdersComments) | **GET** /porting_orders/{id}/comments | List all comments of a porting order @@ -455,20 +460,26 @@ Class | Method | HTTP request | Description *ProgrammableFaxApplicationsApi* | [**getFaxApplication**](docs/ProgrammableFaxApplicationsApi.md#getFaxApplication) | **GET** /fax_applications/{id} | Retrieve a Fax Application *ProgrammableFaxApplicationsApi* | [**listFaxApplications**](docs/ProgrammableFaxApplicationsApi.md#listFaxApplications) | **GET** /fax_applications | List all Fax Applications *ProgrammableFaxApplicationsApi* | [**updateFaxApplication**](docs/ProgrammableFaxApplicationsApi.md#updateFaxApplication) | **PATCH** /fax_applications/{id} | Update a Fax Application +*ProgrammableFaxCommandsApi* | [**cancelFax**](docs/ProgrammableFaxCommandsApi.md#cancelFax) | **POST** /faxes/{id}/actions/cancel | Cancel a fax *ProgrammableFaxCommandsApi* | [**deleteFax**](docs/ProgrammableFaxCommandsApi.md#deleteFax) | **DELETE** /faxes/{id} | Delete a fax *ProgrammableFaxCommandsApi* | [**listFaxes**](docs/ProgrammableFaxCommandsApi.md#listFaxes) | **GET** /faxes | View a list of faxes *ProgrammableFaxCommandsApi* | [**refreshFax**](docs/ProgrammableFaxCommandsApi.md#refreshFax) | **POST** /faxes/{id}/actions/refresh | Refresh a fax *ProgrammableFaxCommandsApi* | [**sendFax**](docs/ProgrammableFaxCommandsApi.md#sendFax) | **POST** /faxes | Send a fax *ProgrammableFaxCommandsApi* | [**viewFax**](docs/ProgrammableFaxCommandsApi.md#viewFax) | **GET** /faxes/{id} | View a fax -*PushCredentialsApi* | [**deletePushCredentialnById**](docs/PushCredentialsApi.md#deletePushCredentialnById) | **DELETE** /push_credentials/{push_credential_id} | Deletes a push credential -*PushCredentialsApi* | [**getPushCredentialById**](docs/PushCredentialsApi.md#getPushCredentialById) | **GET** /push_credentials/{push_credential_id} | Retrieves a push credential -*PushCredentialsApi* | [**getPushCredentials**](docs/PushCredentialsApi.md#getPushCredentials) | **GET** /mobile_applications/{mobile_application_id}/push_credentials | Retrieves push credentials associated to a mobile application -*PushCredentialsApi* | [**updatePushCredentialById**](docs/PushCredentialsApi.md#updatePushCredentialById) | **PATCH** /push_credentials/{push_credential_id} | Updates a push credential +*PublicInternetGatewaysApi* | [**publicInternetGatewayCreate**](docs/PublicInternetGatewaysApi.md#publicInternetGatewayCreate) | **POST** /public_internet_gateways | Create a Public Internet Gateway +*PublicInternetGatewaysApi* | [**publicInternetGatewayDelete**](docs/PublicInternetGatewaysApi.md#publicInternetGatewayDelete) | **DELETE** /public_internet_gateways/{id} | Delete a Public Internet Gateway +*PublicInternetGatewaysApi* | [**publicInternetGatewayGet**](docs/PublicInternetGatewaysApi.md#publicInternetGatewayGet) | **GET** /public_internet_gateways/{id} | Retrieve a Public Internet Gateway +*PublicInternetGatewaysApi* | [**publicInternetGatewayList**](docs/PublicInternetGatewaysApi.md#publicInternetGatewayList) | **GET** /public_internet_gateways | List all Public Internet Gateways +*PushCredentialsApi* | [**createPushCredential**](docs/PushCredentialsApi.md#createPushCredential) | **POST** /mobile_push_credentials | Creates a new mobile push credential +*PushCredentialsApi* | [**deletePushCredentialById**](docs/PushCredentialsApi.md#deletePushCredentialById) | **DELETE** /mobile_push_credentials/{push_credential_id} | Deletes a mobile push credential +*PushCredentialsApi* | [**getPushCredentialById**](docs/PushCredentialsApi.md#getPushCredentialById) | **GET** /mobile_push_credentials/{push_credential_id} | Retrieves a mobile push credential +*PushCredentialsApi* | [**listPushCredentials**](docs/PushCredentialsApi.md#listPushCredentials) | **GET** /mobile_push_credentials | List mobile push credentials *QueueCommandsApi* | [**listQueueCalls**](docs/QueueCommandsApi.md#listQueueCalls) | **GET** /queues/{queue_name}/calls | Retrieve calls from a queue *QueueCommandsApi* | [**retrieveCallFromQueue**](docs/QueueCommandsApi.md#retrieveCallFromQueue) | **GET** /queues/{queue_name}/calls/{call_control_id} | Retrieve a call from a queue *QueueCommandsApi* | [**retrieveCallQueue**](docs/QueueCommandsApi.md#retrieveCallQueue) | **GET** /queues/{queue_name} | Retrieve a call queue *RecordingsCommandsApi* | [**listRecordings**](docs/RecordingsCommandsApi.md#listRecordings) | **GET** /recordings | List recordings *RecordingsCommandsApi* | [**retrieveRecording**](docs/RecordingsCommandsApi.md#retrieveRecording) | **GET** /recordings/{id} | Retrieve a recording +*RegionsApi* | [**regionList**](docs/RegionsApi.md#regionList) | **GET** /regions | List all Regions *RegisterCallApi* | [**registerCall**](docs/RegisterCallApi.md#registerCall) | **POST** /calls/register | Register the call for Google Verified Calls *ReportingApi* | [**createWdrReport**](docs/ReportingApi.md#createWdrReport) | **POST** /wireless/detail_records_reports | Create a Wireless Detail Records (WDRs) Report *ReportingApi* | [**deleteWdrReport**](docs/ReportingApi.md#deleteWdrReport) | **DELETE** /wireless/detail_records_reports/{id} | Delete a Wireless Detail Record (WDR) Report @@ -490,6 +501,7 @@ Class | Method | HTTP request | Description *RoomRecordingsApi* | [**deleteRoomRecordings**](docs/RoomRecordingsApi.md#deleteRoomRecordings) | **DELETE** /room_recordings | Delete several room recordings in a bulk. *RoomRecordingsApi* | [**listRoomRecordings**](docs/RoomRecordingsApi.md#listRoomRecordings) | **GET** /room_recordings | View a list of room recordings. *RoomRecordingsApi* | [**viewRoomRecording**](docs/RoomRecordingsApi.md#viewRoomRecording) | **GET** /room_recordings/{room_recording_id} | View a room recording. +*RoomSessionsApi* | [**endSession**](docs/RoomSessionsApi.md#endSession) | **POST** /room_sessions/{room_session_id}/actions/end | End a room session. *RoomSessionsApi* | [**kickParticipantInSession**](docs/RoomSessionsApi.md#kickParticipantInSession) | **POST** /room_sessions/{room_session_id}/actions/kick | Kick participants from a room session. *RoomSessionsApi* | [**listRoomSessions**](docs/RoomSessionsApi.md#listRoomSessions) | **GET** /room_sessions | View a list of room sessions. *RoomSessionsApi* | [**muteParticipantInSession**](docs/RoomSessionsApi.md#muteParticipantInSession) | **POST** /room_sessions/{room_session_id}/actions/mute | Mute participants in room session. @@ -507,6 +519,8 @@ Class | Method | HTTP request | Description *ShortCodesApi* | [**listShortCodes**](docs/ShortCodesApi.md#listShortCodes) | **GET** /short_codes | List short codes *ShortCodesApi* | [**retrieveShortCode**](docs/ShortCodesApi.md#retrieveShortCode) | **GET** /short_codes/{id} | Retrieve a short code *ShortCodesApi* | [**updateShortCode**](docs/ShortCodesApi.md#updateShortCode) | **PATCH** /short_codes/{id} | Update short code +*SimCardActionsApi* | [**bulkSimCardActionGet**](docs/SimCardActionsApi.md#bulkSimCardActionGet) | **GET** /bulk_sim_card_actions/{id} | Get bulk SIM card action details +*SimCardActionsApi* | [**listBulkSIMCardActions**](docs/SimCardActionsApi.md#listBulkSIMCardActions) | **GET** /bulk_sim_card_actions | List bulk SIM card actions *SimCardActionsApi* | [**listSIMCardActions**](docs/SimCardActionsApi.md#listSIMCardActions) | **GET** /sim_card_actions | List SIM card actions *SimCardActionsApi* | [**simCardActionGet**](docs/SimCardActionsApi.md#simCardActionGet) | **GET** /sim_card_actions/{id} | Get SIM card action details *SimCardGroupActionsApi* | [**simCardGroupActionGet**](docs/SimCardGroupActionsApi.md#simCardGroupActionGet) | **GET** /sim_card_group_actions/{id} | Get SIM card group action details @@ -523,13 +537,17 @@ Class | Method | HTTP request | Description *SimCardOrdersApi* | [**simCardOrdersPost**](docs/SimCardOrdersApi.md#simCardOrdersPost) | **POST** /sim_card_orders | Create a SIM card order *SimCardOrdersApi* | [**simCardOrdersPreview**](docs/SimCardOrdersApi.md#simCardOrdersPreview) | **POST** /sim_card_order_preview | Preview SIM card orders *SimCardsApi* | [**bulkSIMCardNetworkPreferences**](docs/SimCardsApi.md#bulkSIMCardNetworkPreferences) | **PUT** /actions/network_preferences/sim_cards | Bulk Network Preferences for SIM cards +*SimCardsApi* | [**bulkSetPublicIPs**](docs/SimCardsApi.md#bulkSetPublicIPs) | **POST** /sim_cards/actions/bulk_set_public_ips | Request bulk setting SIM card public IPs. +*SimCardsApi* | [**deleteNetworkPreference**](docs/SimCardsApi.md#deleteNetworkPreference) | **POST** /sim_cards/{id}/actions/delete_network_preferences | Delete network preferences for a SIM card *SimCardsApi* | [**listSimCardDataUsageNotifications**](docs/SimCardsApi.md#listSimCardDataUsageNotifications) | **GET** /sim_card_data_usage_notifications | List SIM card data usage notifications *SimCardsApi* | [**postValidateRegistrationCodes**](docs/SimCardsApi.md#postValidateRegistrationCodes) | **POST** /sim_cards/actions/validate_registration_codes | Validate SIM cards registration codes *SimCardsApi* | [**removeSIMCardPublicIP**](docs/SimCardsApi.md#removeSIMCardPublicIP) | **POST** /sim_cards/{id}/actions/remove_public_ip | Request removing a SIM card public IP +*SimCardsApi* | [**sIMCardDeviceDetailsGet**](docs/SimCardsApi.md#sIMCardDeviceDetailsGet) | **GET** /sim_cards/{sim_card_id}/device_details | Get SIM card device details *SimCardsApi* | [**sIMCardNetworkPreferencesDelete**](docs/SimCardsApi.md#sIMCardNetworkPreferencesDelete) | **DELETE** /sim_cards/{sim_card_id}/network_preferences | DELETE network preferences *SimCardsApi* | [**sIMCardNetworkPreferencesGet**](docs/SimCardsApi.md#sIMCardNetworkPreferencesGet) | **GET** /sim_cards/{sim_card_id}/network_preferences | Get network preferences *SimCardsApi* | [**sIMCardNetworkPreferencesPut**](docs/SimCardsApi.md#sIMCardNetworkPreferencesPut) | **PUT** /sim_cards/{sim_card_id}/network_preferences | Set network preferences *SimCardsApi* | [**sIMCardPublicIPGet**](docs/SimCardsApi.md#sIMCardPublicIPGet) | **GET** /sim_cards/{sim_card_id}/public_ip | Get SIM card public IP definition +*SimCardsApi* | [**setNetworkPreference**](docs/SimCardsApi.md#setNetworkPreference) | **POST** /sim_cards/{id}/actions/set_network_preferences | Create or update network preferences for a SIM card *SimCardsApi* | [**setSIMCardPublicIP**](docs/SimCardsApi.md#setSIMCardPublicIP) | **POST** /sim_cards/{id}/actions/set_public_ip | Request setting a SIM card public IP *SimCardsApi* | [**simCardDataUsageNotificationsDelete**](docs/SimCardsApi.md#simCardDataUsageNotificationsDelete) | **DELETE** /sim_card_data_usage_notifications/{id} | Delete SIM card data usage notifications *SimCardsApi* | [**simCardDataUsageNotificationsGet**](docs/SimCardsApi.md#simCardDataUsageNotificationsGet) | **GET** /sim_card_data_usage_notifications/{id} | Get a single SIM card data usage notification @@ -549,6 +567,7 @@ Class | Method | HTTP request | Description *TeXmlApplicationsApi* | [**findTexmlApplications**](docs/TeXmlApplicationsApi.md#findTexmlApplications) | **GET** /texml_applications | List all TeXML Applications *TeXmlApplicationsApi* | [**getTexmlApplication**](docs/TeXmlApplicationsApi.md#getTexmlApplication) | **GET** /texml_applications/{id} | Retrieve a TeXML Application *TeXmlApplicationsApi* | [**updateTexmlApplication**](docs/TeXmlApplicationsApi.md#updateTexmlApplication) | **PATCH** /texml_applications/{id} | Update a TeXML Application +*TeXmlRestCommandsApi* | [**updateTeXMLCall**](docs/TeXmlRestCommandsApi.md#updateTeXMLCall) | **POST** /texml/{call_sid}/update | Update call *VerifiedCallsDisplayProfileApi* | [**createVerifiedCallsDisplayProfile**](docs/VerifiedCallsDisplayProfileApi.md#createVerifiedCallsDisplayProfile) | **POST** /verified_calls_display_profiles | Creates a Verified Calls Display Profile *VerifiedCallsDisplayProfileApi* | [**createVerifiedCallsDisplayProfileVerificationRequest**](docs/VerifiedCallsDisplayProfileApi.md#createVerifiedCallsDisplayProfileVerificationRequest) | **POST** /verified_calls_display_profiles/{id}/verification_request | Creates a Verification Request *VerifiedCallsDisplayProfileApi* | [**deleteVerifiedCallsDisplayProfile**](docs/VerifiedCallsDisplayProfileApi.md#deleteVerifiedCallsDisplayProfile) | **DELETE** /verified_calls_display_profiles/{id} | Deletes the Verified Calls Display Profile @@ -568,6 +587,15 @@ Class | Method | HTTP request | Description *VerifyApi* | [**retrieveVerifyProfile**](docs/VerifyApi.md#retrieveVerifyProfile) | **GET** /verify_profiles/{verify_profile_id} | Retrieve a Verify profile *VerifyApi* | [**updateVerifyProfile**](docs/VerifyApi.md#updateVerifyProfile) | **PATCH** /verify_profiles/{verify_profile_id} | Update a Verify profile *VerifyApi* | [**verifyVerificationCode**](docs/VerifyApi.md#verifyVerificationCode) | **POST** /verifications/by_phone_number/{phone_number}/actions/verify | Submit a verification code. Deprecation notice: `verify_profile_id' is now a mandatory field. The sunset date for this change is 2022-04-02 00:00:00. +*VirtualCrossConnectsApi* | [**virtaulCrossConnectList**](docs/VirtualCrossConnectsApi.md#virtaulCrossConnectList) | **GET** /virtual_cross_connects | List all Virtual Cross Connects +*VirtualCrossConnectsApi* | [**virtaulCrossConnectRegionList**](docs/VirtualCrossConnectsApi.md#virtaulCrossConnectRegionList) | **GET** /virtual_cross_connect_regions | List all Virtual Cross Connect Cloud Regions +*VirtualCrossConnectsApi* | [**virtualCrossConnectCreate**](docs/VirtualCrossConnectsApi.md#virtualCrossConnectCreate) | **POST** /virtual_cross_connects | Create a Virtual Cross Connect +*VirtualCrossConnectsApi* | [**virtualCrossConnectDelete**](docs/VirtualCrossConnectsApi.md#virtualCrossConnectDelete) | **DELETE** /virtual_cross_connects/{id} | Delete a Virtual Cross Connect +*VirtualCrossConnectsApi* | [**virtualCrossConnectGet**](docs/VirtualCrossConnectsApi.md#virtualCrossConnectGet) | **GET** /virtual_cross_connects/{id} | Retrieve a Virtual Cross Connect +*VirtualCrossConnectsApi* | [**virtualCrossConnectProvision**](docs/VirtualCrossConnectsApi.md#virtualCrossConnectProvision) | **POST** /virtual_cross_connects/{id}/actions/provision | Provision a Virtual Cross Connect +*VirtualCrossConnectsApi* | [**virtualCrossConnectRegionGet**](docs/VirtualCrossConnectsApi.md#virtualCrossConnectRegionGet) | **GET** /virtual_cross_connect_regions/{id} | Retrieve a Virtual Cross Connect Cloud Regions +*VirtualCrossConnectsApi* | [**virtualCrossConnectUpdate**](docs/VirtualCrossConnectsApi.md#virtualCrossConnectUpdate) | **PATCH** /virtual_cross_connects/{id} | Update the Virtual Cross Connect +*WdrDetailReportsApi* | [**getPaginatedWdrs**](docs/WdrDetailReportsApi.md#getPaginatedWdrs) | **GET** /reports/wdrs | *WebhooksApi* | [**getWebhookDeliveries**](docs/WebhooksApi.md#getWebhookDeliveries) | **GET** /webhook_deliveries | List webhook deliveries *WebhooksApi* | [**getWebhookDelivery**](docs/WebhooksApi.md#getWebhookDelivery) | **GET** /webhook_deliveries/{id} | Find webhook_delivery details by ID *WhatsAppBusinessAccountApi* | [**listWhatsappBusinessAccounts**](docs/WhatsAppBusinessAccountApi.md#listWhatsappBusinessAccounts) | **GET** /whatsapp_business_accounts | Lists the WhatsApp Business Accounts owned by the current organization @@ -581,6 +609,9 @@ Class | Method | HTTP request | Description *WhatsAppMediaApi* | [**deleteMedia**](docs/WhatsAppMediaApi.md#deleteMedia) | **DELETE** /whatsapp_media/{whatsapp_user_id}/{media_id} | Delete Media *WhatsAppMediaApi* | [**downloadMedia**](docs/WhatsAppMediaApi.md#downloadMedia) | **GET** /whatsapp_media/{whatsapp_user_id}/{media_id} | Download Media *WhatsAppMediaApi* | [**uploadMedia**](docs/WhatsAppMediaApi.md#uploadMedia) | **POST** /whatsapp_media | Upload Media +*WhatsAppMessageTemplateApi* | [**createWhatsappMessageTemplates**](docs/WhatsAppMessageTemplateApi.md#createWhatsappMessageTemplates) | **POST** /whatsapp_business_accounts/{id}/whatsapp_message_templates | Create WhatsApp Message Templates +*WhatsAppMessageTemplateApi* | [**deleteWhatsappMessageTemplates**](docs/WhatsAppMessageTemplateApi.md#deleteWhatsappMessageTemplates) | **DELETE** /whatsapp_business_accounts/{id}/whatsapp_message_templates/{name} | Delete WhatsApp Message Templates +*WhatsAppMessageTemplateApi* | [**listWhatsappMessageTemplates**](docs/WhatsAppMessageTemplateApi.md#listWhatsappMessageTemplates) | **GET** /whatsapp_business_accounts/{id}/whatsapp_message_templates | List WhatsApp Message Templates *WhatsAppMessagesApi* | [**markMessageAsRead**](docs/WhatsAppMessagesApi.md#markMessageAsRead) | **PATCH** /whatsapp_messages/{message_id} | Mark Message As Read *WhatsAppMessagesApi* | [**sendMessage**](docs/WhatsAppMessagesApi.md#sendMessage) | **POST** /whatsapp_messages | Send Message *WhatsAppPhoneNumberApi* | [**patchWhatsappPhoneNumber**](docs/WhatsAppPhoneNumberApi.md#patchWhatsappPhoneNumber) | **PATCH** /whatsapp_phone_numbers/{id} | Update a WhatsApp Phone Number webhook @@ -589,51 +620,67 @@ Class | Method | HTTP request | Description *WhatsAppPhoneNumberApi* | [**retrieveWhatsappPhoneNumber**](docs/WhatsAppPhoneNumberApi.md#retrieveWhatsappPhoneNumber) | **GET** /whatsapp_phone_numbers/{id} | Retrieves a WhatsApp Phone Number *WhatsAppPhoneNumberApi* | [**retrieveWhatsappProfilePhoto**](docs/WhatsAppPhoneNumberApi.md#retrieveWhatsappProfilePhoto) | **GET** /whatsapp_phone_numbers/{id}/photo | Retrieves a Whatsapp Profile Photo for a WhatsApp Phone Number *WhatsAppUsageAggregationsApi* | [**getUsageAggregationsSync**](docs/WhatsAppUsageAggregationsApi.md#getUsageAggregationsSync) | **GET** /whatsapp_usage_aggregations | +*WireGuardInterfacesApi* | [**wireguardInterfaceCreate**](docs/WireGuardInterfacesApi.md#wireguardInterfaceCreate) | **POST** /wireguard_interfaces | Create a WireGuard Interface +*WireGuardInterfacesApi* | [**wireguardInterfaceDelete**](docs/WireGuardInterfacesApi.md#wireguardInterfaceDelete) | **DELETE** /wireguard_interfaces/{id} | Delete a WireGuard Interface +*WireGuardInterfacesApi* | [**wireguardInterfaceGet**](docs/WireGuardInterfacesApi.md#wireguardInterfaceGet) | **GET** /wireguard_interfaces/{id} | Retrieve a WireGuard Interfaces +*WireGuardInterfacesApi* | [**wireguardInterfaceList**](docs/WireGuardInterfacesApi.md#wireguardInterfaceList) | **GET** /wireguard_interfaces | List all WireGuard Interfaces +*WireGuardInterfacesApi* | [**wireguardPeerAllowedIPGet**](docs/WireGuardInterfacesApi.md#wireguardPeerAllowedIPGet) | **GET** /wireguard_peers/{id}/allowed_ips/{child_id} | Retrieve the Allowed IP +*WireGuardInterfacesApi* | [**wireguardPeerAllowedIPList**](docs/WireGuardInterfacesApi.md#wireguardPeerAllowedIPList) | **GET** /wireguard_peers/{id}/allowed_ips | List all Allowed IPs for a WireGuard Peer +*WireGuardInterfacesApi* | [**wireguardPeerConfig**](docs/WireGuardInterfacesApi.md#wireguardPeerConfig) | **GET** /wireguard_peers/{id}/config | Retrieve Wireguard config template for Peer +*WireGuardInterfacesApi* | [**wireguardPeerCreate**](docs/WireGuardInterfacesApi.md#wireguardPeerCreate) | **POST** /wireguard_peers | Create a WireGuard Peer +*WireGuardInterfacesApi* | [**wireguardPeerDelete**](docs/WireGuardInterfacesApi.md#wireguardPeerDelete) | **DELETE** /wireguard_peers/{id} | Delete the WireGuard Peer +*WireGuardInterfacesApi* | [**wireguardPeerGet**](docs/WireGuardInterfacesApi.md#wireguardPeerGet) | **GET** /wireguard_peers/{id} | Retrieve the WireGuard Peer +*WireGuardInterfacesApi* | [**wireguardPeerList**](docs/WireGuardInterfacesApi.md#wireguardPeerList) | **GET** /wireguard_peers | List all WireGuard Peers +*WireGuardInterfacesApi* | [**wireguardPeerUpdate**](docs/WireGuardInterfacesApi.md#wireguardPeerUpdate) | **PATCH** /wireguard_peers/{id} | Update the WireGuard Peer ## Documentation for Models - - [AccessControlIp](docs/AccessControlIp.md) - - [AccessControlIpCreate](docs/AccessControlIpCreate.md) - - [AccessControlIpIpAddressType](docs/AccessControlIpIpAddressType.md) - - [AccessControlIpResponse](docs/AccessControlIpResponse.md) - - [AccessControlIpUpdate](docs/AccessControlIpUpdate.md) - [AccessIPAddressListResponseSchema](docs/AccessIPAddressListResponseSchema.md) - [AccessIPAddressPOST](docs/AccessIPAddressPOST.md) - [AccessIPAddressResponseSchema](docs/AccessIPAddressResponseSchema.md) - [AccessIPRangeListResponseSchema](docs/AccessIPRangeListResponseSchema.md) - [AccessIPRangePOST](docs/AccessIPRangePOST.md) - [AccessIPRangeResponseSchema](docs/AccessIPRangeResponseSchema.md) - - [ActionSuccessResponse](docs/ActionSuccessResponse.md) - - [ActionSuccessResponseData](docs/ActionSuccessResponseData.md) + - [Action](docs/Action.md) - [ActionsParticipantsRequest](docs/ActionsParticipantsRequest.md) - - [Address](docs/Address.md) - - [AddressCreate](docs/AddressCreate.md) - - [AddressResponse](docs/AddressResponse.md) + - [ActionsParticipantsRequestParticipants](docs/ActionsParticipantsRequestParticipants.md) + - [ActivatePortingOrder202Response](docs/ActivatePortingOrder202Response.md) - [AmdDetailRecord](docs/AmdDetailRecord.md) - [AnchorsiteOverride](docs/AnchorsiteOverride.md) - [AnswerRequest](docs/AnswerRequest.md) + - [AssignPhoneNumberRequest](docs/AssignPhoneNumberRequest.md) - [Attempt](docs/Attempt.md) - [Audio](docs/Audio.md) - [AuthenticationProvider](docs/AuthenticationProvider.md) - [AuthenticationProviderCreate](docs/AuthenticationProviderCreate.md) - - [AuthenticationProviderResponse](docs/AuthenticationProviderResponse.md) - [AuthenticationProviderSettings](docs/AuthenticationProviderSettings.md) - [AvailablePhoneNumber](docs/AvailablePhoneNumber.md) - [AvailablePhoneNumberBlock](docs/AvailablePhoneNumberBlock.md) - [AvailablePhoneNumbersMetadata](docs/AvailablePhoneNumbersMetadata.md) - [BillingGroup](docs/BillingGroup.md) + - [Body](docs/Body.md) - [BridgeRequest](docs/BridgeRequest.md) - [BulkCredentialRequest](docs/BulkCredentialRequest.md) - [BulkCredentialResponse](docs/BulkCredentialResponse.md) - [BulkCredentialResponseData](docs/BulkCredentialResponseData.md) - [BulkRoomRecordingsDeleteResponse](docs/BulkRoomRecordingsDeleteResponse.md) - [BulkRoomRecordingsDeleteResponseData](docs/BulkRoomRecordingsDeleteResponseData.md) - - [BulkSIMCardNetworkPreferenceResponse](docs/BulkSIMCardNetworkPreferenceResponse.md) - - [BulkUpdateSimNetworkPreference](docs/BulkUpdateSimNetworkPreference.md) + - [BulkSIMCardAction](docs/BulkSIMCardAction.md) + - [BulkSIMCardActionDetailed](docs/BulkSIMCardActionDetailed.md) + - [BulkSIMCardNetworkPreferences202Response](docs/BulkSIMCardNetworkPreferences202Response.md) + - [BulkSIMCardNetworkPreferencesRequest](docs/BulkSIMCardNetworkPreferencesRequest.md) + - [BulkSetPublicIPs202Response](docs/BulkSetPublicIPs202Response.md) + - [BulkSetPublicIPsRequest](docs/BulkSetPublicIPsRequest.md) + - [BulkSimCardActionGet200Response](docs/BulkSimCardActionGet200Response.md) - [BusinessIdentity](docs/BusinessIdentity.md) - [BusinessIdentityAddress](docs/BusinessIdentityAddress.md) - - [BusinessIdentityContacts](docs/BusinessIdentityContacts.md) + - [BusinessIdentityContactsInner](docs/BusinessIdentityContactsInner.md) + - [Button](docs/Button.md) + - [ButtonComponentType](docs/ButtonComponentType.md) + - [ButtonParameter](docs/ButtonParameter.md) + - [ButtonParameterType](docs/ButtonParameterType.md) + - [ButtonSubtype](docs/ButtonSubtype.md) - [CSVDownloadResponse](docs/CSVDownloadResponse.md) - [Call](docs/Call.md) - [CallAnswered](docs/CallAnswered.md) @@ -652,7 +699,7 @@ Class | Method | HTTP request | Description - [CallCostMeta](docs/CallCostMeta.md) - [CallCostMetaMeta](docs/CallCostMetaMeta.md) - [CallCostPayload](docs/CallCostPayload.md) - - [CallCostPayloadCostParts](docs/CallCostPayloadCostParts.md) + - [CallCostPayloadCostPartsInner](docs/CallCostPayloadCostPartsInner.md) - [CallDtmfReceived](docs/CallDtmfReceived.md) - [CallDtmfReceivedEvent](docs/CallDtmfReceivedEvent.md) - [CallDtmfReceivedPayload](docs/CallDtmfReceivedPayload.md) @@ -710,12 +757,17 @@ Class | Method | HTTP request | Description - [CallReferStartedPayload](docs/CallReferStartedPayload.md) - [CallRequest](docs/CallRequest.md) - [CallRequestAnsweringMachineDetectionConfig](docs/CallRequestAnsweringMachineDetectionConfig.md) + - [CallRequestTo](docs/CallRequestTo.md) - [CallSpeakEnded](docs/CallSpeakEnded.md) - [CallSpeakEndedEvent](docs/CallSpeakEndedEvent.md) - [CallSpeakEndedPayload](docs/CallSpeakEndedPayload.md) - [CallSpeakStarted](docs/CallSpeakStarted.md) - [CallSpeakStartedEvent](docs/CallSpeakStartedEvent.md) - [CallSpeakStartedPayload](docs/CallSpeakStartedPayload.md) + - [CallStreamingFailed](docs/CallStreamingFailed.md) + - [CallStreamingFailedEvent](docs/CallStreamingFailedEvent.md) + - [CallStreamingFailedPayload](docs/CallStreamingFailedPayload.md) + - [CallStreamingFailedPayloadStreamParams](docs/CallStreamingFailedPayloadStreamParams.md) - [CallStreamingStarted](docs/CallStreamingStarted.md) - [CallStreamingStartedEvent](docs/CallStreamingStartedEvent.md) - [CallStreamingStartedPayload](docs/CallStreamingStartedPayload.md) @@ -723,6 +775,7 @@ Class | Method | HTTP request | Description - [CallStreamingStoppedEvent](docs/CallStreamingStoppedEvent.md) - [CallbackWebhookMeta](docs/CallbackWebhookMeta.md) - [CallerName](docs/CallerName.md) + - [CancelPortingOrder200Response](docs/CancelPortingOrder200Response.md) - [Carrier](docs/Carrier.md) - [CdrGetSyncUsageReportResponse](docs/CdrGetSyncUsageReportResponse.md) - [CdrUsageReportResponse](docs/CdrUsageReportResponse.md) @@ -733,7 +786,6 @@ Class | Method | HTTP request | Description - [CloudflareSyncStatus](docs/CloudflareSyncStatus.md) - [CnamListing](docs/CnamListing.md) - [Comment](docs/Comment.md) - - [CommentResponse](docs/CommentResponse.md) - [CompleteOTAUpdate](docs/CompleteOTAUpdate.md) - [CompleteOTAUpdateSettings](docs/CompleteOTAUpdateSettings.md) - [CompositionCompleted](docs/CompositionCompleted.md) @@ -790,6 +842,7 @@ Class | Method | HTTP request | Description - [ConferenceStopRequest](docs/ConferenceStopRequest.md) - [ConferenceUnholdRequest](docs/ConferenceUnholdRequest.md) - [ConferenceUnmuteRequest](docs/ConferenceUnmuteRequest.md) + - [ConfirmPortingOrder200Response](docs/ConfirmPortingOrder200Response.md) - [Connection](docs/Connection.md) - [ConnectionResponse](docs/ConnectionResponse.md) - [ConnectionRtcpSettings](docs/ConnectionRtcpSettings.md) @@ -797,32 +850,40 @@ Class | Method | HTTP request | Description - [Contact](docs/Contact.md) - [CostInformation](docs/CostInformation.md) - [CreateAndroidPushCredentialRequest](docs/CreateAndroidPushCredentialRequest.md) - - [CreateBillingGroupResponse](docs/CreateBillingGroupResponse.md) + - [CreateAuthenticationProvider200Response](docs/CreateAuthenticationProvider200Response.md) + - [CreateBillingGroup200Response](docs/CreateBillingGroup200Response.md) - [CreateCallControlApplicationRequest](docs/CreateCallControlApplicationRequest.md) - - [CreateCommentPortoutRequest](docs/CreateCommentPortoutRequest.md) + - [CreateComment200Response](docs/CreateComment200Response.md) + - [CreateComment200ResponseData](docs/CreateComment200ResponseData.md) - [CreateConferenceRequest](docs/CreateConferenceRequest.md) - [CreateCredentialConnectionRequest](docs/CreateCredentialConnectionRequest.md) + - [CreateCustomerServiceRequest201Response](docs/CreateCustomerServiceRequest201Response.md) + - [CreateCustomerServiceRequestRequest](docs/CreateCustomerServiceRequestRequest.md) - [CreateDocServiceDocumentRequest](docs/CreateDocServiceDocumentRequest.md) + - [CreateDocument200Response](docs/CreateDocument200Response.md) + - [CreateDyanmicEmergencyAddress201Response](docs/CreateDyanmicEmergencyAddress201Response.md) + - [CreateDyanmicEmergencyEndpoint201Response](docs/CreateDyanmicEmergencyEndpoint201Response.md) - [CreateFaxApplicationRequest](docs/CreateFaxApplicationRequest.md) - [CreateFaxApplicationRequestInbound](docs/CreateFaxApplicationRequestInbound.md) - [CreateFaxApplicationRequestOutbound](docs/CreateFaxApplicationRequestOutbound.md) - [CreateFqdnConnectionRequest](docs/CreateFqdnConnectionRequest.md) - [CreateFqdnRequest](docs/CreateFqdnRequest.md) - [CreateInboundIpRequest](docs/CreateInboundIpRequest.md) + - [CreateInventoryCoverageRequest200Response](docs/CreateInventoryCoverageRequest200Response.md) - [CreateIosPushCredentialRequest](docs/CreateIosPushCredentialRequest.md) - [CreateIpConnectionRequest](docs/CreateIpConnectionRequest.md) - [CreateIpRequest](docs/CreateIpRequest.md) - - [CreateLedgerBillingGroupReportResponse](docs/CreateLedgerBillingGroupReportResponse.md) + - [CreateLedgerBillingGroupReport200Response](docs/CreateLedgerBillingGroupReport200Response.md) - [CreateLongCodeMessageRequest](docs/CreateLongCodeMessageRequest.md) + - [CreateManagedAccount200Response](docs/CreateManagedAccount200Response.md) + - [CreateManagedAccount422Response](docs/CreateManagedAccount422Response.md) - [CreateManagedAccountRequest](docs/CreateManagedAccountRequest.md) - [CreateMessageRequest](docs/CreateMessageRequest.md) - [CreateMessagingHostedNumberOrderRequest](docs/CreateMessagingHostedNumberOrderRequest.md) - [CreateMessagingProfileRequest](docs/CreateMessagingProfileRequest.md) - - [CreateMobileApplicationRequest](docs/CreateMobileApplicationRequest.md) - - [CreateNotificationChannel](docs/CreateNotificationChannel.md) - - [CreateNotificationProfile](docs/CreateNotificationProfile.md) - - [CreateNotificationSetting](docs/CreateNotificationSetting.md) - - [CreateNotificationSettingAsync](docs/CreateNotificationSettingAsync.md) + - [CreateNotificationChannels200Response](docs/CreateNotificationChannels200Response.md) + - [CreateNotificationProfile200Response](docs/CreateNotificationProfile200Response.md) + - [CreateNotificationSetting200Response](docs/CreateNotificationSetting200Response.md) - [CreateNumberBlockOrderRequest](docs/CreateNumberBlockOrderRequest.md) - [CreateNumberOrderDocumentRequest](docs/CreateNumberOrderDocumentRequest.md) - [CreateNumberOrderRequest](docs/CreateNumberOrderRequest.md) @@ -830,32 +891,21 @@ Class | Method | HTTP request | Description - [CreateNumberReservationRequest](docs/CreateNumberReservationRequest.md) - [CreateOrUpdateBusinessIdentityRequest](docs/CreateOrUpdateBusinessIdentityRequest.md) - [CreateOutboundVoiceProfileRequest](docs/CreateOutboundVoiceProfileRequest.md) - - [CreatePhoneNumberEmergencyEnable](docs/CreatePhoneNumberEmergencyEnable.md) - - [CreatePhoneNumberEmergencyRequested](docs/CreatePhoneNumberEmergencyRequested.md) - - [CreatePhoneNumbersEnableEmergency](docs/CreatePhoneNumbersEnableEmergency.md) - - [CreatePhoneNumbersJobDeletePhoneNumbers](docs/CreatePhoneNumbersJobDeletePhoneNumbers.md) - - [CreatePortOutSupportingDocumentsResponse](docs/CreatePortOutSupportingDocumentsResponse.md) - - [CreatePortabilityCheckRequest](docs/CreatePortabilityCheckRequest.md) - [CreatePortingOrder](docs/CreatePortingOrder.md) + - [CreatePortingOrder201Response](docs/CreatePortingOrder201Response.md) - [CreatePortingOrderComment](docs/CreatePortingOrderComment.md) - - [CreatePortingSupportingDocsRequest](docs/CreatePortingSupportingDocsRequest.md) - - [CreatePrivateWirelessGatewayResponse](docs/CreatePrivateWirelessGatewayResponse.md) - - [CreatePrivateWirelessGatwewayRequest](docs/CreatePrivateWirelessGatwewayRequest.md) - - [CreatePrivateWirelessGatwewayRequest1](docs/CreatePrivateWirelessGatwewayRequest1.md) + - [CreatePortingOrderComment201Response](docs/CreatePortingOrderComment201Response.md) + - [CreatePrivateWirelessGateway202Response](docs/CreatePrivateWirelessGateway202Response.md) + - [CreatePrivateWirelessGatewayRequest](docs/CreatePrivateWirelessGatewayRequest.md) + - [CreatePushCredentialRequest](docs/CreatePushCredentialRequest.md) + - [CreateRoom201Response](docs/CreateRoom201Response.md) + - [CreateRoomClientToken201Response](docs/CreateRoomClientToken201Response.md) + - [CreateRoomClientToken201ResponseData](docs/CreateRoomClientToken201ResponseData.md) - [CreateRoomClientTokenRequest](docs/CreateRoomClientTokenRequest.md) - - [CreateRoomClientTokenResponse](docs/CreateRoomClientTokenResponse.md) - - [CreateRoomClientTokenResponseData](docs/CreateRoomClientTokenResponseData.md) + - [CreateRoomComposition202Response](docs/CreateRoomComposition202Response.md) - [CreateRoomCompositionRequest](docs/CreateRoomCompositionRequest.md) - - [CreateRoomCompositionResponse](docs/CreateRoomCompositionResponse.md) - [CreateRoomRequest](docs/CreateRoomRequest.md) - - [CreateRoomResponse](docs/CreateRoomResponse.md) - - [CreateSIMCardDataUsageNotificationRequest](docs/CreateSIMCardDataUsageNotificationRequest.md) - - [CreateSIMCardValidateRequest](docs/CreateSIMCardValidateRequest.md) - [CreateShortCodeMessageRequest](docs/CreateShortCodeMessageRequest.md) - - [CreateSimCardDataUsageNotificationResponse](docs/CreateSimCardDataUsageNotificationResponse.md) - - [CreateSimCardGroupResponse](docs/CreateSimCardGroupResponse.md) - - [CreateSimCardOrderPreview](docs/CreateSimCardOrderPreview.md) - - [CreateSimCardOrderResponse](docs/CreateSimCardOrderResponse.md) - [CreateTexmlApplicationRequest](docs/CreateTexmlApplicationRequest.md) - [CreateTexmlApplicationRequestInbound](docs/CreateTexmlApplicationRequestInbound.md) - [CreateTexmlApplicationRequestOutbound](docs/CreateTexmlApplicationRequestOutbound.md) @@ -872,8 +922,9 @@ Class | Method | HTTP request | Description - [CreateVerifyProfileRequest](docs/CreateVerifyProfileRequest.md) - [CreateVerifyProfileSMSRequest](docs/CreateVerifyProfileSMSRequest.md) - [CreateVerifyProfileWhatsappRequest](docs/CreateVerifyProfileWhatsappRequest.md) - - [CreateWdrReportResponse](docs/CreateWdrReportResponse.md) + - [CreateWdrReport201Response](docs/CreateWdrReport201Response.md) - [CreateWhatsAppMessageRequest](docs/CreateWhatsAppMessageRequest.md) + - [CreateWhatsappMessageTemplateRequestBody](docs/CreateWhatsappMessageTemplateRequestBody.md) - [CredentialConnection](docs/CredentialConnection.md) - [CredentialConnectionResponse](docs/CredentialConnectionResponse.md) - [CredentialInbound](docs/CredentialInbound.md) @@ -882,53 +933,54 @@ Class | Method | HTTP request | Description - [CsvDownload](docs/CsvDownload.md) - [Currencies](docs/Currencies.md) - [Currency](docs/Currency.md) + - [CursorPagination](docs/CursorPagination.md) + - [CursorPaginationCursors](docs/CursorPaginationCursors.md) - [CustomSipHeader](docs/CustomSipHeader.md) + - [CustomerFacingFQDNsGetIPResponse](docs/CustomerFacingFQDNsGetIPResponse.md) + - [CustomerFacingFQDNsListResponse](docs/CustomerFacingFQDNsListResponse.md) + - [CustomerFacingFQDNsPatch](docs/CustomerFacingFQDNsPatch.md) + - [CustomerFacingFQDNsPost](docs/CustomerFacingFQDNsPost.md) + - [CustomerFacingFQDNsResponseSchema](docs/CustomerFacingFQDNsResponseSchema.md) - [CustomerServiceRequest](docs/CustomerServiceRequest.md) - [CustomerServiceRequestAddress](docs/CustomerServiceRequestAddress.md) - [CustomerServiceRequestPhoneNumberCoverage](docs/CustomerServiceRequestPhoneNumberCoverage.md) - [CustomerServiceRequestStatusChangedEvent](docs/CustomerServiceRequestStatusChangedEvent.md) - [CustomerServiceRequestStatusChangedEventPayload](docs/CustomerServiceRequestStatusChangedEventPayload.md) + - [CustomerServiceRequestsGetRequest](docs/CustomerServiceRequestsGetRequest.md) - [DateTimeComponent](docs/DateTimeComponent.md) - [DateTimeObject](docs/DateTimeObject.md) - [DateTimeUnixEpoch](docs/DateTimeUnixEpoch.md) - - [DeleteBillingGroupResponse](docs/DeleteBillingGroupResponse.md) - - [DeleteNotificationChannel](docs/DeleteNotificationChannel.md) - - [DeleteNotificationProfiles](docs/DeleteNotificationProfiles.md) - - [DeleteNotificationSetting](docs/DeleteNotificationSetting.md) - - [DeleteNotificationSettingAsync](docs/DeleteNotificationSettingAsync.md) - - [DeletePrivateWirelessGatewayResponse](docs/DeletePrivateWirelessGatewayResponse.md) - - [DeleteSIMCardNetworkPreferenceResponse](docs/DeleteSIMCardNetworkPreferenceResponse.md) - - [DeleteSimCardDataUsageNotificationResponse](docs/DeleteSimCardDataUsageNotificationResponse.md) - - [DeleteSimCardGroupResponse](docs/DeleteSimCardGroupResponse.md) - - [DeleteSimCardResponse](docs/DeleteSimCardResponse.md) - - [DeleteWdrReportResponse](docs/DeleteWdrReportResponse.md) - [DetailRecord](docs/DetailRecord.md) - [DetailRecordsSearchResponse](docs/DetailRecordsSearchResponse.md) - - [DocReqsListRequirementTypesResponse](docs/DocReqsListRequirementTypesResponse.md) + - [DialogflowConfig](docs/DialogflowConfig.md) + - [DialogflowConnection](docs/DialogflowConnection.md) + - [DialogflowConnectionResponse](docs/DialogflowConnectionResponse.md) + - [Direction](docs/Direction.md) + - [DocReqsListRequirementTypes200Response](docs/DocReqsListRequirementTypes200Response.md) - [DocReqsRequirement](docs/DocReqsRequirement.md) - - [DocReqsRequirementResponse](docs/DocReqsRequirementResponse.md) - [DocReqsRequirementType](docs/DocReqsRequirementType.md) - [DocReqsRequirementTypeAcceptanceCriteria](docs/DocReqsRequirementTypeAcceptanceCriteria.md) - - [DocReqsRequirementTypeResponse](docs/DocReqsRequirementTypeResponse.md) + - [DocReqsRetrieveDocumentRequirements200Response](docs/DocReqsRetrieveDocumentRequirements200Response.md) + - [DocReqsRetrieveRequirementType200Response](docs/DocReqsRetrieveRequirementType200Response.md) - [DocServiceDocument](docs/DocServiceDocument.md) - [DocServiceDocumentAllOf](docs/DocServiceDocumentAllOf.md) - [DocServiceDocumentAllOfSize](docs/DocServiceDocumentAllOfSize.md) - [DocServiceDocumentLink](docs/DocServiceDocumentLink.md) - [DocServiceDocumentLinkAllOf](docs/DocServiceDocumentLinkAllOf.md) - - [DocServiceDocumentResponse](docs/DocServiceDocumentResponse.md) - [DocServiceDocumentUploadInline](docs/DocServiceDocumentUploadInline.md) - [DocServiceDocumentUploadURL](docs/DocServiceDocumentUploadURL.md) - [DocServiceRecord](docs/DocServiceRecord.md) - [Document](docs/Document.md) + - [Document1](docs/Document1.md) - [DownlinkData](docs/DownlinkData.md) - [DtmfType](docs/DtmfType.md) - [DynamicEmergencyAddress](docs/DynamicEmergencyAddress.md) - - [DynamicEmergencyAddressResponse](docs/DynamicEmergencyAddressResponse.md) - [DynamicEmergencyEndpoint](docs/DynamicEmergencyEndpoint.md) - - [DynamicEmergencyEndpointResponse](docs/DynamicEmergencyEndpointResponse.md) - [Email](docs/Email.md) - [EmergencySettings](docs/EmergencySettings.md) - [EncryptedMedia](docs/EncryptedMedia.md) + - [EndSession200Response](docs/EndSession200Response.md) + - [EndSession200ResponseData](docs/EndSession200ResponseData.md) - [EnqueueRequest](docs/EnqueueRequest.md) - [Error](docs/Error.md) - [ErrorSource](docs/ErrorSource.md) @@ -952,6 +1004,13 @@ Class | Method | HTTP request | Description - [FaxSendingStartedPayload](docs/FaxSendingStartedPayload.md) - [Feature](docs/Feature.md) - [Filter](docs/Filter.md) + - [FindAuthenticationProviders200Response](docs/FindAuthenticationProviders200Response.md) + - [FindNotificationsEvents200Response](docs/FindNotificationsEvents200Response.md) + - [FindNotificationsEventsConditions200Response](docs/FindNotificationsEventsConditions200Response.md) + - [FindNotificationsProfiles200Response](docs/FindNotificationsProfiles200Response.md) + - [FindPortoutComments200Response](docs/FindPortoutComments200Response.md) + - [FindPortoutRequest200Response](docs/FindPortoutRequest200Response.md) + - [Footer](docs/Footer.md) - [ForbiddenError](docs/ForbiddenError.md) - [ForbiddenErrorAllOf](docs/ForbiddenErrorAllOf.md) - [ForbiddenErrorAllOfMeta](docs/ForbiddenErrorAllOfMeta.md) @@ -960,92 +1019,102 @@ Class | Method | HTTP request | Description - [FqdnConnectionTransportProtocol](docs/FqdnConnectionTransportProtocol.md) - [GCSConfiguration](docs/GCSConfiguration.md) - [GCSConfigurationData](docs/GCSConfigurationData.md) + - [GatherRequest](docs/GatherRequest.md) - [GatherUsingAudioRequest](docs/GatherUsingAudioRequest.md) - [GatherUsingSpeakRequest](docs/GatherUsingSpeakRequest.md) - [GcbChannelZone](docs/GcbChannelZone.md) - [GcbPhoneNumber](docs/GcbPhoneNumber.md) - [GenericError](docs/GenericError.md) - - [GetAllAccessControlIpResponse](docs/GetAllAccessControlIpResponse.md) - - [GetAllAddressResponse](docs/GetAllAddressResponse.md) - - [GetAllAuthenticationProvidersResponse](docs/GetAllAuthenticationProvidersResponse.md) - [GetAllFaxApplicationsResponse](docs/GetAllFaxApplicationsResponse.md) - - [GetAllPrivateWirelessGatewaysResponse](docs/GetAllPrivateWirelessGatewaysResponse.md) - - [GetAllSimCardGroupsResponse](docs/GetAllSimCardGroupsResponse.md) - - [GetAllSimCardOrderResponse](docs/GetAllSimCardOrderResponse.md) - [GetAllTelephonyCredentialResponse](docs/GetAllTelephonyCredentialResponse.md) - [GetAllTexmlApplicationsResponse](docs/GetAllTexmlApplicationsResponse.md) + - [GetChannelZones200Response](docs/GetChannelZones200Response.md) + - [GetCustomerServiceRequest404Response](docs/GetCustomerServiceRequest404Response.md) - [GetFaxResponse](docs/GetFaxResponse.md) - - [GetGcbChannelZonesRequestResponse](docs/GetGcbChannelZonesRequestResponse.md) - - [GetGcbPhoneNumbersRequestResponse](docs/GetGcbPhoneNumbersRequestResponse.md) - - [GetPrivateWirelessGatewayResponse](docs/GetPrivateWirelessGatewayResponse.md) + - [GetPhoneNumbers200Response](docs/GetPhoneNumbers200Response.md) + - [GetPortRequestSupportingDocuments201Response](docs/GetPortRequestSupportingDocuments201Response.md) + - [GetPortingOrder200Response](docs/GetPortingOrder200Response.md) + - [GetPortingOrder200ResponseMeta](docs/GetPortingOrder200ResponseMeta.md) + - [GetPortingOrderSubRequest200Response](docs/GetPortingOrderSubRequest200Response.md) + - [GetPrivateWirelessGateways200Response](docs/GetPrivateWirelessGateways200Response.md) - [GetRecordingResponse](docs/GetRecordingResponse.md) - - [GetRoomCompositionResponse](docs/GetRoomCompositionResponse.md) - - [GetRoomParticipantResponse](docs/GetRoomParticipantResponse.md) - - [GetRoomRecordingResponse](docs/GetRoomRecordingResponse.md) - - [GetRoomResponse](docs/GetRoomResponse.md) - - [GetRoomSessionResponse](docs/GetRoomSessionResponse.md) - - [GetSimCardDataUsageNotificationResponse](docs/GetSimCardDataUsageNotificationResponse.md) - - [GetSimCardGroupResponse](docs/GetSimCardGroupResponse.md) - - [GetSimCardOrderResponse](docs/GetSimCardOrderResponse.md) - - [GetSimCardResponse](docs/GetSimCardResponse.md) - [GetSubRequestByPortingOrder](docs/GetSubRequestByPortingOrder.md) - - [GetWdrReportResponse](docs/GetWdrReportResponse.md) - - [GetWdrReportsResponse](docs/GetWdrReportsResponse.md) + - [GetUserBalance200Response](docs/GetUserBalance200Response.md) + - [GetWdrReports200Response](docs/GetWdrReports200Response.md) + - [GetWebhookDeliveries200Response](docs/GetWebhookDeliveries200Response.md) + - [GetWebhookDelivery200Response](docs/GetWebhookDelivery200Response.md) - [HangupRequest](docs/HangupRequest.md) + - [Header](docs/Header.md) - [HostedNumber](docs/HostedNumber.md) - - [Hsm](docs/Hsm.md) - [Http](docs/Http.md) + - [HttpRequest](docs/HttpRequest.md) + - [HttpResponse](docs/HttpResponse.md) - [Image](docs/Image.md) + - [Image1](docs/Image1.md) - [ImmutableSetLong](docs/ImmutableSetLong.md) - [InboundFqdn](docs/InboundFqdn.md) - [InboundIp](docs/InboundIp.md) - [InboundMessage](docs/InboundMessage.md) - [InboundMessageEvent](docs/InboundMessageEvent.md) - [InboundMessagePayload](docs/InboundMessagePayload.md) - - [InboundMessagePayloadCc](docs/InboundMessagePayloadCc.md) + - [InboundMessagePayloadCcInner](docs/InboundMessagePayloadCcInner.md) - [InboundMessagePayloadCost](docs/InboundMessagePayloadCost.md) - [InboundMessagePayloadFrom](docs/InboundMessagePayloadFrom.md) - - [InboundMessagePayloadMedia](docs/InboundMessagePayloadMedia.md) - - [InboundMessagePayloadTo](docs/InboundMessagePayloadTo.md) + - [InboundMessagePayloadMediaInner](docs/InboundMessagePayloadMediaInner.md) + - [InboundMessagePayloadToInner](docs/InboundMessagePayloadToInner.md) + - [Interactive](docs/Interactive.md) + - [InteractiveAction](docs/InteractiveAction.md) + - [InteractiveBody](docs/InteractiveBody.md) + - [InteractiveButton](docs/InteractiveButton.md) + - [InteractiveButtonReply](docs/InteractiveButtonReply.md) + - [InteractiveButtonType](docs/InteractiveButtonType.md) + - [InteractiveFooter](docs/InteractiveFooter.md) + - [InteractiveHeader](docs/InteractiveHeader.md) + - [InteractiveProduct](docs/InteractiveProduct.md) + - [InteractiveSection](docs/InteractiveSection.md) + - [InteractiveSectionRow](docs/InteractiveSectionRow.md) + - [InteractiveType](docs/InteractiveType.md) + - [InterfaceStatus](docs/InterfaceStatus.md) - [InventoryCoverage](docs/InventoryCoverage.md) - [InventoryCoverageMetadata](docs/InventoryCoverageMetadata.md) - - [InventoryCoverageResponse](docs/InventoryCoverageResponse.md) - [Ip](docs/Ip.md) - [IpConnection](docs/IpConnection.md) - [IpConnectionResponse](docs/IpConnectionResponse.md) + - [IpItem](docs/IpItem.md) - [IpResponse](docs/IpResponse.md) - [JoinConferenceRequest](docs/JoinConferenceRequest.md) - [Language](docs/Language.md) - [LeaveConferenceRequest](docs/LeaveConferenceRequest.md) - [LeaveQueueRequest](docs/LeaveQueueRequest.md) - [LedgerBillingGroupReport](docs/LedgerBillingGroupReport.md) - - [ListAllowedFocWindow](docs/ListAllowedFocWindow.md) + - [ListAllowedFocWindows200Response](docs/ListAllowedFocWindows200Response.md) - [ListAvailablePhoneNumbersBlocksResponse](docs/ListAvailablePhoneNumbersBlocksResponse.md) - [ListAvailablePhoneNumbersResponse](docs/ListAvailablePhoneNumbersResponse.md) - - [ListBillingGroupsResponse](docs/ListBillingGroupsResponse.md) + - [ListBillingGroups200Response](docs/ListBillingGroups200Response.md) + - [ListBulkSIMCardActions200Response](docs/ListBulkSIMCardActions200Response.md) - [ListBusinessIdentitiesResponse](docs/ListBusinessIdentitiesResponse.md) - [ListCSVDownloadsResponse](docs/ListCSVDownloadsResponse.md) - [ListCallControlApplicationsResponse](docs/ListCallControlApplicationsResponse.md) - [ListCallEventsResponse](docs/ListCallEventsResponse.md) - - [ListChannelZonesByPhoneNumber](docs/ListChannelZonesByPhoneNumber.md) - - [ListCommentsResponse](docs/ListCommentsResponse.md) + - [ListComments200Response](docs/ListComments200Response.md) - [ListConferencesResponse](docs/ListConferencesResponse.md) - [ListConnectionsResponse](docs/ListConnectionsResponse.md) - [ListCredentialConnectionsResponse](docs/ListCredentialConnectionsResponse.md) - - [ListCustomerServiceRequestPhoneNumberCoverage](docs/ListCustomerServiceRequestPhoneNumberCoverage.md) - - [ListDocServiceDocumentLinksResponse](docs/ListDocServiceDocumentLinksResponse.md) - - [ListDocServiceDocumentsResposne](docs/ListDocServiceDocumentsResposne.md) - - [ListDraftPortingOrderWithoutPagination](docs/ListDraftPortingOrderWithoutPagination.md) - - [ListDynamicEmergencyAddresses](docs/ListDynamicEmergencyAddresses.md) - - [ListDynamicEmergencyEndpoints](docs/ListDynamicEmergencyEndpoints.md) + - [ListCustomerServiceRequests200Response](docs/ListCustomerServiceRequests200Response.md) + - [ListCustomerServiceRequests401Response](docs/ListCustomerServiceRequests401Response.md) + - [ListCustomerServiceRequests403Response](docs/ListCustomerServiceRequests403Response.md) + - [ListCustomerServiceRequests422Response](docs/ListCustomerServiceRequests422Response.md) + - [ListCustomerServiceRequests500Response](docs/ListCustomerServiceRequests500Response.md) + - [ListDocumentLinks200Response](docs/ListDocumentLinks200Response.md) + - [ListDocuments200Response](docs/ListDocuments200Response.md) + - [ListDyanmicEmergencyAddresses200Response](docs/ListDyanmicEmergencyAddresses200Response.md) + - [ListDyanmicEmergencyEndpoints200Response](docs/ListDyanmicEmergencyEndpoints200Response.md) - [ListFQDNConnectionsResponse](docs/ListFQDNConnectionsResponse.md) - [ListFQDNsResponse](docs/ListFQDNsResponse.md) - [ListFaxesResponse](docs/ListFaxesResponse.md) - - [ListInboundChannels](docs/ListInboundChannels.md) - - [ListInboundChannelsData](docs/ListInboundChannelsData.md) - [ListIpConnectionsResponse](docs/ListIpConnectionsResponse.md) - [ListIpsResponse](docs/ListIpsResponse.md) - - [ListManagedAccountsResponse](docs/ListManagedAccountsResponse.md) + - [ListManagedAccounts200Response](docs/ListManagedAccounts200Response.md) - [ListMessagingHostedNumberOrderResponse](docs/ListMessagingHostedNumberOrderResponse.md) - [ListMessagingProfileMetricsResponse](docs/ListMessagingProfileMetricsResponse.md) - [ListMessagingProfilePhoneNumbersResponse](docs/ListMessagingProfilePhoneNumbersResponse.md) @@ -1053,56 +1122,56 @@ Class | Method | HTTP request | Description - [ListMessagingProfileUrlDomainsResponse](docs/ListMessagingProfileUrlDomainsResponse.md) - [ListMessagingProfilesResponse](docs/ListMessagingProfilesResponse.md) - [ListMessagingSettingsResponse](docs/ListMessagingSettingsResponse.md) - - [ListNotificationChannels](docs/ListNotificationChannels.md) - - [ListNotificationEvenConditions](docs/ListNotificationEvenConditions.md) - - [ListNotificationEvents](docs/ListNotificationEvents.md) - - [ListNotificationProfiles](docs/ListNotificationProfiles.md) - - [ListNotificationSettings](docs/ListNotificationSettings.md) + - [ListNotificationChannels200Response](docs/ListNotificationChannels200Response.md) + - [ListNotificationSettings200Response](docs/ListNotificationSettings200Response.md) - [ListNumberBlockOrdersResponse](docs/ListNumberBlockOrdersResponse.md) - [ListNumberOrderDocumentsResponse](docs/ListNumberOrderDocumentsResponse.md) - [ListNumberOrderPhoneNumbersResponse](docs/ListNumberOrderPhoneNumbersResponse.md) - [ListNumberOrdersResponse](docs/ListNumberOrdersResponse.md) - [ListNumberReservationsResponse](docs/ListNumberReservationsResponse.md) - [ListOfMediaResourcesResponse](docs/ListOfMediaResourcesResponse.md) + - [ListOutboundChannels200Response](docs/ListOutboundChannels200Response.md) + - [ListOutboundChannels200ResponseData](docs/ListOutboundChannels200ResponseData.md) - [ListOutboundVoiceProfilesResponse](docs/ListOutboundVoiceProfilesResponse.md) - [ListParticipantsResponse](docs/ListParticipantsResponse.md) - [ListPhoneNumberBlocksBackgroundJobsResponse](docs/ListPhoneNumberBlocksBackgroundJobsResponse.md) - [ListPhoneNumbersBackgroundJobsResponse](docs/ListPhoneNumbersBackgroundJobsResponse.md) - [ListPhoneNumbersResponse](docs/ListPhoneNumbersResponse.md) - [ListPhoneNumbersWithVoiceSettingsResponse](docs/ListPhoneNumbersWithVoiceSettingsResponse.md) - - [ListPortingOrder](docs/ListPortingOrder.md) - - [ListPortingOrderDocuments](docs/ListPortingOrderDocuments.md) - - [ListPortingOrdersActivationJobs](docs/ListPortingOrdersActivationJobs.md) - - [ListPortingOrdersComments](docs/ListPortingOrdersComments.md) - - [ListPortingOrdersExceptionTypes](docs/ListPortingOrdersExceptionTypes.md) - - [ListPortingPhoneNumbers](docs/ListPortingPhoneNumbers.md) - - [ListPortoutComments](docs/ListPortoutComments.md) - - [ListPortoutResponse](docs/ListPortoutResponse.md) + - [ListPortingOrderDocuments200Response](docs/ListPortingOrderDocuments200Response.md) + - [ListPortingOrderRequirements200Response](docs/ListPortingOrderRequirements200Response.md) + - [ListPortingOrders200Response](docs/ListPortingOrders200Response.md) + - [ListPortingOrdersActivationJobs200Response](docs/ListPortingOrdersActivationJobs200Response.md) + - [ListPortingOrdersComments200Response](docs/ListPortingOrdersComments200Response.md) + - [ListPortingOrdersExceptionTypes200Response](docs/ListPortingOrdersExceptionTypes200Response.md) + - [ListPortingPhoneNumbers200Response](docs/ListPortingPhoneNumbers200Response.md) + - [ListPortoutRequest200Response](docs/ListPortoutRequest200Response.md) - [ListQueueCallsResponse](docs/ListQueueCallsResponse.md) - [ListRecordingsResponse](docs/ListRecordingsResponse.md) - - [ListRegulatoryRequirements](docs/ListRegulatoryRequirements.md) - - [ListRequirementsResponse](docs/ListRequirementsResponse.md) - - [ListRoomCompositionsResponse](docs/ListRoomCompositionsResponse.md) - - [ListRoomParticipantsResponse](docs/ListRoomParticipantsResponse.md) - - [ListRoomRecordingsResponse](docs/ListRoomRecordingsResponse.md) - - [ListRoomSessionsResponse](docs/ListRoomSessionsResponse.md) - - [ListRoomsResponse](docs/ListRoomsResponse.md) + - [ListRegulartoryRequirements200Response](docs/ListRegulartoryRequirements200Response.md) + - [ListRequirements200Response](docs/ListRequirements200Response.md) + - [ListRoomCompositions200Response](docs/ListRoomCompositions200Response.md) + - [ListRoomParticipants200Response](docs/ListRoomParticipants200Response.md) + - [ListRoomRecordings200Response](docs/ListRoomRecordings200Response.md) + - [ListRoomSessions200Response](docs/ListRoomSessions200Response.md) + - [ListRooms200Response](docs/ListRooms200Response.md) + - [ListSIMCardActions200Response](docs/ListSIMCardActions200Response.md) - [ListShortCodesResponse](docs/ListShortCodesResponse.md) + - [ListSimCardDataUsageNotifications200Response](docs/ListSimCardDataUsageNotifications200Response.md) - [ListSubNumberOrdersResponse](docs/ListSubNumberOrdersResponse.md) - [ListTagsResponse](docs/ListTagsResponse.md) - - [ListTagsResponseData](docs/ListTagsResponseData.md) + - [ListTagsResponseDataInner](docs/ListTagsResponseDataInner.md) - [ListVerificationsResponse](docs/ListVerificationsResponse.md) - [ListVerifiedCallsDisplayProfilesResponse](docs/ListVerifiedCallsDisplayProfilesResponse.md) - [ListVerifyProfilesResponse](docs/ListVerifyProfilesResponse.md) - - [ListWebhookDeliveriesResponse](docs/ListWebhookDeliveriesResponse.md) - [ListWhatsAppBusinessAccountsResponse](docs/ListWhatsAppBusinessAccountsResponse.md) - [ListWhatsAppPhoneNumbersResponse](docs/ListWhatsAppPhoneNumbersResponse.md) - - [LocalizableParam](docs/LocalizableParam.md) - [Location](docs/Location.md) - [Loopcount](docs/Loopcount.md) - [ManagedAccount](docs/ManagedAccount.md) - [ManagedAccountBalance](docs/ManagedAccountBalance.md) - - [ManagedAccountResponse](docs/ManagedAccountResponse.md) + - [MarkCommentRead200Response](docs/MarkCommentRead200Response.md) + - [MarkCommentRead200ResponseData](docs/MarkCommentRead200ResponseData.md) - [MarkMessageAsReadRequestBody](docs/MarkMessageAsReadRequestBody.md) - [MdrDeleteDetailReportResponse](docs/MdrDeleteDetailReportResponse.md) - [MdrDeleteUsageReportsResponse](docs/MdrDeleteUsageReportsResponse.md) @@ -1141,21 +1210,29 @@ Class | Method | HTTP request | Description - [MessagingUrlDomain](docs/MessagingUrlDomain.md) - [Meta](docs/Meta.md) - [Metadata](docs/Metadata.md) - - [MobileApplication](docs/MobileApplication.md) - - [MobileApplicationResponse](docs/MobileApplicationResponse.md) - [MobileOperatorNetwork](docs/MobileOperatorNetwork.md) - [MobileOperatorNetworkPreferencesRequest](docs/MobileOperatorNetworkPreferencesRequest.md) - [MobileOperatorNetworkPreferencesResponse](docs/MobileOperatorNetworkPreferencesResponse.md) + - [MobileOperatorNetworksGet200Response](docs/MobileOperatorNetworksGet200Response.md) + - [ModelInterface](docs/ModelInterface.md) - [Money](docs/Money.md) + - [Network](docs/Network.md) + - [Network1](docs/Network1.md) + - [NetworkCreate](docs/NetworkCreate.md) + - [NetworkCreate200Response](docs/NetworkCreate200Response.md) + - [NetworkInterface](docs/NetworkInterface.md) + - [NetworkInterface1](docs/NetworkInterface1.md) + - [NetworkInterfaceList200Response](docs/NetworkInterfaceList200Response.md) + - [NetworkList200Response](docs/NetworkList200Response.md) - [NewBillingGroup](docs/NewBillingGroup.md) - [NewLedgerBillingGroupReport](docs/NewLedgerBillingGroupReport.md) - [NotificationChannel](docs/NotificationChannel.md) - [NotificationEvent](docs/NotificationEvent.md) - [NotificationEventCondition](docs/NotificationEventCondition.md) - - [NotificationEventConditionParameters](docs/NotificationEventConditionParameters.md) + - [NotificationEventConditionParametersInner](docs/NotificationEventConditionParametersInner.md) - [NotificationProfile](docs/NotificationProfile.md) - [NotificationSetting](docs/NotificationSetting.md) - - [NotificationSettingParameters](docs/NotificationSettingParameters.md) + - [NotificationSettingParametersInner](docs/NotificationSettingParametersInner.md) - [NumberBlockOrder](docs/NumberBlockOrder.md) - [NumberBlockOrderResponse](docs/NumberBlockOrderResponse.md) - [NumberHealthMetrics](docs/NumberHealthMetrics.md) @@ -1175,7 +1252,8 @@ Class | Method | HTTP request | Description - [NumberPoolSettings](docs/NumberPoolSettings.md) - [NumberReservation](docs/NumberReservation.md) - [NumberReservationResponse](docs/NumberReservationResponse.md) - - [OTAUpdateResponse](docs/OTAUpdateResponse.md) + - [OTAUpdateGET200Response](docs/OTAUpdateGET200Response.md) + - [OTAUpdatesList200Response](docs/OTAUpdatesList200Response.md) - [Organization](docs/Organization.md) - [OutboundCallRecording](docs/OutboundCallRecording.md) - [OutboundIp](docs/OutboundIp.md) @@ -1184,11 +1262,11 @@ Class | Method | HTTP request | Description - [OutboundMessageEventMeta](docs/OutboundMessageEventMeta.md) - [OutboundMessagePayload](docs/OutboundMessagePayload.md) - [OutboundMessagePayloadFrom](docs/OutboundMessagePayloadFrom.md) - - [OutboundMessagePayloadMedia](docs/OutboundMessagePayloadMedia.md) - - [OutboundMessagePayloadTo](docs/OutboundMessagePayloadTo.md) + - [OutboundMessagePayloadMediaInner](docs/OutboundMessagePayloadMediaInner.md) + - [OutboundMessagePayloadToInner](docs/OutboundMessagePayloadToInner.md) - [OutboundVoiceProfile](docs/OutboundVoiceProfile.md) - [OutboundVoiceProfileResponse](docs/OutboundVoiceProfileResponse.md) - - [PUTSIMCardNetworkPreferenceResponse](docs/PUTSIMCardNetworkPreferenceResponse.md) + - [PWGAssignedResourcesSummary](docs/PWGAssignedResourcesSummary.md) - [PaginationMeta](docs/PaginationMeta.md) - [PaginationMetaSimple](docs/PaginationMetaSimple.md) - [Participant](docs/Participant.md) @@ -1199,10 +1277,11 @@ Class | Method | HTTP request | Description - [ParticipantLeft](docs/ParticipantLeft.md) - [ParticipantLeftEvent](docs/ParticipantLeftEvent.md) - [ParticipantLeftPayload](docs/ParticipantLeftPayload.md) + - [PatchGroupRequest](docs/PatchGroupRequest.md) - [PatchRoomRequest](docs/PatchRoomRequest.md) - - [PatchRoomResponse](docs/PatchRoomResponse.md) - [PauseRecordingRequest](docs/PauseRecordingRequest.md) - [Phone](docs/Phone.md) + - [PhoneNumber](docs/PhoneNumber.md) - [PhoneNumberBlocksJob](docs/PhoneNumberBlocksJob.md) - [PhoneNumberBlocksJobDeletePhoneNumberBlock](docs/PhoneNumberBlocksJobDeletePhoneNumberBlock.md) - [PhoneNumberBlocksJobDeletePhoneNumberBlockRequest](docs/PhoneNumberBlocksJobDeletePhoneNumberBlockRequest.md) @@ -1210,6 +1289,7 @@ Class | Method | HTTP request | Description - [PhoneNumberBlocksJobSuccessfulOperation](docs/PhoneNumberBlocksJobSuccessfulOperation.md) - [PhoneNumberDeletedDetailed](docs/PhoneNumberDeletedDetailed.md) - [PhoneNumberDetailed](docs/PhoneNumberDetailed.md) + - [PhoneNumberEnableEmergency](docs/PhoneNumberEnableEmergency.md) - [PhoneNumberEnableEmergencyRequest](docs/PhoneNumberEnableEmergencyRequest.md) - [PhoneNumberRegulatoryRequirement](docs/PhoneNumberRegulatoryRequirement.md) - [PhoneNumberRegulatoryRequirementAllOf](docs/PhoneNumberRegulatoryRequirementAllOf.md) @@ -1219,7 +1299,9 @@ Class | Method | HTTP request | Description - [PhoneNumberWithMessagingSettingsFeatures](docs/PhoneNumberWithMessagingSettingsFeatures.md) - [PhoneNumberWithVoiceSettings](docs/PhoneNumberWithVoiceSettings.md) - [PhoneNumbersBulkUpdateError](docs/PhoneNumbersBulkUpdateError.md) + - [PhoneNumbersEnableEmergency](docs/PhoneNumbersEnableEmergency.md) - [PhoneNumbersJob](docs/PhoneNumbersJob.md) + - [PhoneNumbersJobDeletePhoneNumbers](docs/PhoneNumbersJobDeletePhoneNumbers.md) - [PhoneNumbersJobDeletePhoneNumbersRequest](docs/PhoneNumbersJobDeletePhoneNumbersRequest.md) - [PhoneNumbersJobFailedOperation](docs/PhoneNumbersJobFailedOperation.md) - [PhoneNumbersJobPendingOperation](docs/PhoneNumbersJobPendingOperation.md) @@ -1230,24 +1312,23 @@ Class | Method | HTTP request | Description - [PhoneNumbersJobUpdatePhoneNumbersRequest](docs/PhoneNumbersJobUpdatePhoneNumbersRequest.md) - [PlayAudioUrlRequest](docs/PlayAudioUrlRequest.md) - [PlaybackStopRequest](docs/PlaybackStopRequest.md) - - [PortOutListSupportingDocumentsResponse](docs/PortOutListSupportingDocumentsResponse.md) - [PortOutSupportingDocument](docs/PortOutSupportingDocument.md) - [Portability](docs/Portability.md) - [PortabilityCheckDetails](docs/PortabilityCheckDetails.md) - - [PortabilityCheckResponse](docs/PortabilityCheckResponse.md) - [PortabilityStatus](docs/PortabilityStatus.md) - [PortingOrder](docs/PortingOrder.md) - [PortingOrderActivationSettings](docs/PortingOrderActivationSettings.md) - [PortingOrderActivationStatus](docs/PortingOrderActivationStatus.md) - [PortingOrderDocument](docs/PortingOrderDocument.md) - [PortingOrderDocuments](docs/PortingOrderDocuments.md) - - [PortingOrderDocumentsCreated](docs/PortingOrderDocumentsCreated.md) - [PortingOrderEndUser](docs/PortingOrderEndUser.md) - [PortingOrderEndUserAdmin](docs/PortingOrderEndUserAdmin.md) - [PortingOrderEndUserLocation](docs/PortingOrderEndUserLocation.md) - [PortingOrderMisc](docs/PortingOrderMisc.md) - [PortingOrderPhoneNumberConfiguration](docs/PortingOrderPhoneNumberConfiguration.md) - [PortingOrderRequirement](docs/PortingOrderRequirement.md) + - [PortingOrderRequirementDetail](docs/PortingOrderRequirementDetail.md) + - [PortingOrderRequirementDetailRequirementType](docs/PortingOrderRequirementDetailRequirementType.md) - [PortingOrderStatus](docs/PortingOrderStatus.md) - [PortingOrderType](docs/PortingOrderType.md) - [PortingOrderUserFeedback](docs/PortingOrderUserFeedback.md) @@ -1257,23 +1338,31 @@ Class | Method | HTTP request | Description - [PortingOrdersExceptionType](docs/PortingOrdersExceptionType.md) - [PortingPhoneNumber](docs/PortingPhoneNumber.md) - [PortoutComment](docs/PortoutComment.md) - - [PortoutCommentResposne](docs/PortoutCommentResposne.md) - [PortoutDetails](docs/PortoutDetails.md) - - [PortoutResponse](docs/PortoutResponse.md) - - [PortoutsIdSupportingDocumentsDocuments](docs/PortoutsIdSupportingDocumentsDocuments.md) + - [PostPortRequestComment201Response](docs/PostPortRequestComment201Response.md) + - [PostPortRequestCommentRequest](docs/PostPortRequestCommentRequest.md) + - [PostPortRequestSupportingDocumentsRequest](docs/PostPortRequestSupportingDocumentsRequest.md) + - [PostPortRequestSupportingDocumentsRequestDocumentsInner](docs/PostPortRequestSupportingDocumentsRequestDocumentsInner.md) + - [PostPortabilityCheck201Response](docs/PostPortabilityCheck201Response.md) + - [PostPortabilityCheckRequest](docs/PostPortabilityCheckRequest.md) + - [PostValidateRegistrationCodesRequest](docs/PostValidateRegistrationCodesRequest.md) - [PrivateWirelessGateway](docs/PrivateWirelessGateway.md) - [PrivateWirelessGatewayRequest](docs/PrivateWirelessGatewayRequest.md) - [PrivateWirelessGatewayStatus](docs/PrivateWirelessGatewayStatus.md) + - [PublicInternetGateway](docs/PublicInternetGateway.md) + - [PublicInternetGateway1](docs/PublicInternetGateway1.md) + - [PublicInternetGatewayCreate](docs/PublicInternetGatewayCreate.md) + - [PublicInternetGatewayCreate202Response](docs/PublicInternetGatewayCreate202Response.md) + - [PublicInternetGatewayList200Response](docs/PublicInternetGatewayList200Response.md) + - [PublicInternetGatewayRead](docs/PublicInternetGatewayRead.md) - [PushCredential](docs/PushCredential.md) - - [PushCredentialResponse](docs/PushCredentialResponse.md) - - [PutNetworkPreferenceRequest](docs/PutNetworkPreferenceRequest.md) - [Queue](docs/Queue.md) - [QueueCall](docs/QueueCall.md) - [QueueCallResponse](docs/QueueCallResponse.md) - [QueueResponse](docs/QueueResponse.md) - [ReadComment](docs/ReadComment.md) - [ReadCommentAllOf](docs/ReadCommentAllOf.md) - - [ReadCommentResponse](docs/ReadCommentResponse.md) + - [Record](docs/Record.md) - [Recording](docs/Recording.md) - [RecordingCompleted](docs/RecordingCompleted.md) - [RecordingCompletedEvent](docs/RecordingCompletedEvent.md) @@ -1284,44 +1373,38 @@ Class | Method | HTTP request | Description - [RecordingStartedPayload](docs/RecordingStartedPayload.md) - [ReferRequest](docs/ReferRequest.md) - [RefreshFaxResponse](docs/RefreshFaxResponse.md) + - [RefreshRoomClientToken201Response](docs/RefreshRoomClientToken201Response.md) + - [RefreshRoomClientToken201ResponseData](docs/RefreshRoomClientToken201ResponseData.md) - [RefreshRoomClientTokenRequest](docs/RefreshRoomClientTokenRequest.md) - - [RefreshRoomClientTokenResponse](docs/RefreshRoomClientTokenResponse.md) - - [RefreshRoomClientTokenResponseData](docs/RefreshRoomClientTokenResponseData.md) + - [Region](docs/Region.md) + - [RegionIn](docs/RegionIn.md) - [RegionInformation](docs/RegionInformation.md) + - [RegionList200Response](docs/RegionList200Response.md) + - [RegionOut](docs/RegionOut.md) + - [RegionOutRegion](docs/RegionOutRegion.md) - [RegisterCallCommandResult](docs/RegisterCallCommandResult.md) - [RegisterCallRequest](docs/RegisterCallRequest.md) - [RegisterCallResponse](docs/RegisterCallResponse.md) - - [RegisterSimCardsResponse](docs/RegisterSimCardsResponse.md) - [RegulatoryRequirements](docs/RegulatoryRequirements.md) - - [RegulatoryRequirementsAcceptanceCriteria](docs/RegulatoryRequirementsAcceptanceCriteria.md) - - [RegulatoryRequirementsRegionInformation](docs/RegulatoryRequirementsRegionInformation.md) - - [RegulatoryRequirementsRegulatoryRequirements](docs/RegulatoryRequirementsRegulatoryRequirements.md) + - [RegulatoryRequirementsRegionInformationInner](docs/RegulatoryRequirementsRegionInformationInner.md) + - [RegulatoryRequirementsRegulatoryRequirementsInner](docs/RegulatoryRequirementsRegulatoryRequirementsInner.md) + - [RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria](docs/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.md) - [RejectRequest](docs/RejectRequest.md) - [ReplacedLinkClick](docs/ReplacedLinkClick.md) - [ReplacedLinkClickEvent](docs/ReplacedLinkClickEvent.md) + - [Reply](docs/Reply.md) - [ReservedPhoneNumber](docs/ReservedPhoneNumber.md) - [ResourceNotFoundError](docs/ResourceNotFoundError.md) - [ResourceNotFoundErrorAllOf](docs/ResourceNotFoundErrorAllOf.md) - [ResourceNotFoundErrorAllOfMeta](docs/ResourceNotFoundErrorAllOfMeta.md) - [ResumeRecordingRequest](docs/ResumeRecordingRequest.md) - - [RetrieveBillingGroupResponse](docs/RetrieveBillingGroupResponse.md) - [RetrieveCallStatusResponse](docs/RetrieveCallStatusResponse.md) - - [RetrieveLedgerBillingGroupReportResponse](docs/RetrieveLedgerBillingGroupReportResponse.md) - [RetrieveMessagingHostedNumberOrderResponse](docs/RetrieveMessagingHostedNumberOrderResponse.md) - [RetrieveMessagingHostedNumberResponse](docs/RetrieveMessagingHostedNumberResponse.md) - [RetrieveMessagingProfileMetricsResponse](docs/RetrieveMessagingProfileMetricsResponse.md) - [RetrieveMessagingSettingsResponse](docs/RetrieveMessagingSettingsResponse.md) - - [RetrieveNotificationChannel](docs/RetrieveNotificationChannel.md) - - [RetrieveNotificationProfile](docs/RetrieveNotificationProfile.md) - - [RetrieveNotificationSetting](docs/RetrieveNotificationSetting.md) - - [RetrievePhoneNumberBlocksJob](docs/RetrievePhoneNumberBlocksJob.md) - [RetrievePhoneNumberVoiceResponse](docs/RetrievePhoneNumberVoiceResponse.md) - - [RetrievePhoneNumbersJob](docs/RetrievePhoneNumbersJob.md) - [RetrieveVerificationResponse](docs/RetrieveVerificationResponse.md) - - [RetrieveWebhookDelivery](docs/RetrieveWebhookDelivery.md) - - [RetrieveWhatsAppBusinessAccount](docs/RetrieveWhatsAppBusinessAccount.md) - - [RetrieveWhatsAppPhoneNumber](docs/RetrieveWhatsAppPhoneNumber.md) - - [RetrieveWhatsAppProfilePhoto](docs/RetrieveWhatsAppProfilePhoto.md) - [Room](docs/Room.md) - [RoomComposition](docs/RoomComposition.md) - [RoomParticipant](docs/RoomParticipant.md) @@ -1329,36 +1412,35 @@ Class | Method | HTTP request | Description - [RoomSession](docs/RoomSession.md) - [SIMCard](docs/SIMCard.md) - [SIMCardAction](docs/SIMCardAction.md) - - [SIMCardActionResponse](docs/SIMCardActionResponse.md) - [SIMCardActionStatus](docs/SIMCardActionStatus.md) + - [SIMCardActionsSummary](docs/SIMCardActionsSummary.md) - [SIMCardCurrentBillingPeriodConsumedData](docs/SIMCardCurrentBillingPeriodConsumedData.md) - [SIMCardCurrentDeviceLocation](docs/SIMCardCurrentDeviceLocation.md) - [SIMCardDataLimit](docs/SIMCardDataLimit.md) + - [SIMCardDeviceDetails](docs/SIMCardDeviceDetails.md) + - [SIMCardDeviceDetailsGet200Response](docs/SIMCardDeviceDetailsGet200Response.md) - [SIMCardGroup](docs/SIMCardGroup.md) - [SIMCardGroupAction](docs/SIMCardGroupAction.md) - - [SIMCardGroupActionResponse](docs/SIMCardGroupActionResponse.md) - [SIMCardGroupActionSettings](docs/SIMCardGroupActionSettings.md) - [SIMCardGroupCreate](docs/SIMCardGroupCreate.md) - [SIMCardGroupDataLimit](docs/SIMCardGroupDataLimit.md) - [SIMCardGroupPatch](docs/SIMCardGroupPatch.md) - [SIMCardNetworkPreference](docs/SIMCardNetworkPreference.md) - [SIMCardNetworkPreferenceWithOTAUpdates](docs/SIMCardNetworkPreferenceWithOTAUpdates.md) - - [SIMCardNetworkPreferenceWithOTAUpdatesResponse](docs/SIMCardNetworkPreferenceWithOTAUpdatesResponse.md) + - [SIMCardNetworkPreferencesGet200Response](docs/SIMCardNetworkPreferencesGet200Response.md) + - [SIMCardNetworkPreferencesPutRequest](docs/SIMCardNetworkPreferencesPutRequest.md) - [SIMCardOrder](docs/SIMCardOrder.md) - [SIMCardOrderCost](docs/SIMCardOrderCost.md) - [SIMCardOrderOrderAddress](docs/SIMCardOrderOrderAddress.md) - [SIMCardOrderPreview](docs/SIMCardOrderPreview.md) - [SIMCardOrderPreviewTotalCost](docs/SIMCardOrderPreviewTotalCost.md) - - [SIMCardOrdersPreviewResponse](docs/SIMCardOrdersPreviewResponse.md) - [SIMCardPublicIP](docs/SIMCardPublicIP.md) - - [SIMCardPublicIPResponse](docs/SIMCardPublicIPResponse.md) + - [SIMCardPublicIPGet200Response](docs/SIMCardPublicIPGet200Response.md) - [SIMCardRegistration](docs/SIMCardRegistration.md) - [SIMCardRegistrationCodeValidation](docs/SIMCardRegistrationCodeValidation.md) - [SIMCardRegistrationCodeValidations](docs/SIMCardRegistrationCodeValidations.md) - [SIMCardStatus](docs/SIMCardStatus.md) - - [SearchMobileOperatorNetworksResponse](docs/SearchMobileOperatorNetworksResponse.md) - - [SearchOTAUpdateResponse](docs/SearchOTAUpdateResponse.md) - - [SearchSimCardsResponse](docs/SearchSimCardsResponse.md) + - [SearchedSIMCardGroup](docs/SearchedSIMCardGroup.md) - [SendDTMFRequest](docs/SendDTMFRequest.md) - [SendFaxRequest](docs/SendFaxRequest.md) - [SendFaxResponse](docs/SendFaxResponse.md) @@ -1369,23 +1451,30 @@ Class | Method | HTTP request | Description - [SessionStarted](docs/SessionStarted.md) - [SessionStartedEvent](docs/SessionStartedEvent.md) - [SessionStartedPayload](docs/SessionStartedPayload.md) + - [SetSIMCardGroupPrivateWirelessGatewayRequest](docs/SetSIMCardGroupPrivateWirelessGatewayRequest.md) - [Settings](docs/Settings.md) - [ShortCode](docs/ShortCode.md) - [ShortCodeResponse](docs/ShortCodeResponse.md) - [ShowBusinessIdentityResponse](docs/ShowBusinessIdentityResponse.md) - - [ShowCustomerServiceRequest](docs/ShowCustomerServiceRequest.md) - - [ShowPortingOrder](docs/ShowPortingOrder.md) - - [ShowPortingOrderComment](docs/ShowPortingOrderComment.md) - - [ShowPortingOrderMeta](docs/ShowPortingOrderMeta.md) - - [ShowPortingOrdersActivationJob](docs/ShowPortingOrdersActivationJob.md) - [ShowVerifiedCallsDisplayProfileResponse](docs/ShowVerifiedCallsDisplayProfileResponse.md) - - [SimCardActionCollectionResponse](docs/SimCardActionCollectionResponse.md) + - [SimCardActionGet200Response](docs/SimCardActionGet200Response.md) - [SimCardDataUsageNotification](docs/SimCardDataUsageNotification.md) - - [SimCardDataUsageNotificationCollection](docs/SimCardDataUsageNotificationCollection.md) - - [SimCardDataUsageNotificationsThreshold](docs/SimCardDataUsageNotificationsThreshold.md) - - [SimCardGroupActionCollectionResponse](docs/SimCardGroupActionCollectionResponse.md) + - [SimCardDataUsageNotificationsPost201Response](docs/SimCardDataUsageNotificationsPost201Response.md) + - [SimCardDataUsageNotificationsPostRequest](docs/SimCardDataUsageNotificationsPostRequest.md) + - [SimCardDataUsageNotificationsPostRequestThreshold](docs/SimCardDataUsageNotificationsPostRequestThreshold.md) + - [SimCardGet200Response](docs/SimCardGet200Response.md) + - [SimCardGroupActionGet200Response](docs/SimCardGroupActionGet200Response.md) + - [SimCardGroupActionsGet200Response](docs/SimCardGroupActionsGet200Response.md) + - [SimCardGroupsGetAll200Response](docs/SimCardGroupsGetAll200Response.md) + - [SimCardGroupsPost200Response](docs/SimCardGroupsPost200Response.md) - [SimCardOrderCreate](docs/SimCardOrderCreate.md) + - [SimCardOrdersGet200Response](docs/SimCardOrdersGet200Response.md) + - [SimCardOrdersPost200Response](docs/SimCardOrdersPost200Response.md) + - [SimCardOrdersPreview202Response](docs/SimCardOrdersPreview202Response.md) + - [SimCardOrdersPreviewRequest](docs/SimCardOrdersPreviewRequest.md) + - [SimCardRegister202Response](docs/SimCardRegister202Response.md) - [SimCardUsageDetailRecord](docs/SimCardUsageDetailRecord.md) + - [SimCardsGet200Response](docs/SimCardsGet200Response.md) - [SimpleSIMCard](docs/SimpleSIMCard.md) - [SimpleSIMCardDataLimit](docs/SimpleSIMCardDataLimit.md) - [SimplifiedOTAUpdate](docs/SimplifiedOTAUpdate.md) @@ -1402,12 +1491,20 @@ Class | Method | HTTP request | Description - [SubNumberOrder](docs/SubNumberOrder.md) - [SubNumberOrderRegulatoryRequirement](docs/SubNumberOrderRegulatoryRequirement.md) - [SubNumberOrderResponse](docs/SubNumberOrderResponse.md) - - [SubRequestByPortingOrder](docs/SubRequestByPortingOrder.md) + - [SuccessfulResponseUponAcceptingCancelFaxCommand](docs/SuccessfulResponseUponAcceptingCancelFaxCommand.md) + - [SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent](docs/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.md) + - [TeXmlRESTCommandResponse](docs/TeXmlRESTCommandResponse.md) - [TelephonyCredential](docs/TelephonyCredential.md) - [TelephonyCredentialCreateRequest](docs/TelephonyCredentialCreateRequest.md) - [TelephonyCredentialResponse](docs/TelephonyCredentialResponse.md) - [TelephonyCredentialUpdateRequest](docs/TelephonyCredentialUpdateRequest.md) - [Template](docs/Template.md) + - [TemplateButtonComponent](docs/TemplateButtonComponent.md) + - [TemplateButtonParameter](docs/TemplateButtonParameter.md) + - [TemplateComponent](docs/TemplateComponent.md) + - [TemplateComponentType](docs/TemplateComponentType.md) + - [TemplateComponents](docs/TemplateComponents.md) + - [TemplateParameters](docs/TemplateParameters.md) - [TexmlApplication](docs/TexmlApplication.md) - [TexmlApplicationResponse](docs/TexmlApplicationResponse.md) - [Text](docs/Text.md) @@ -1429,43 +1526,42 @@ Class | Method | HTTP request | Description - [UnprocessableEntityErrorAllOf](docs/UnprocessableEntityErrorAllOf.md) - [UnprocessableEntityErrorAllOfMeta](docs/UnprocessableEntityErrorAllOfMeta.md) - [UnprocessableEntityErrorAllOfSource](docs/UnprocessableEntityErrorAllOfSource.md) - - [UnprocessableManagedAccountEntity](docs/UnprocessableManagedAccountEntity.md) - [UpdateAuthenticationProviderRequest](docs/UpdateAuthenticationProviderRequest.md) - [UpdateBillingGroup](docs/UpdateBillingGroup.md) - - [UpdateBillingGroupResponse](docs/UpdateBillingGroupResponse.md) - [UpdateCallControlApplicationRequest](docs/UpdateCallControlApplicationRequest.md) - - [UpdateChannelZone](docs/UpdateChannelZone.md) + - [UpdateCallRequest](docs/UpdateCallRequest.md) + - [UpdateCommandResult](docs/UpdateCommandResult.md) - [UpdateConferenceRequest](docs/UpdateConferenceRequest.md) - [UpdateCredentialConnectionRequest](docs/UpdateCredentialConnectionRequest.md) - [UpdateFaxApplicationRequest](docs/UpdateFaxApplicationRequest.md) - [UpdateFqdnConnectionRequest](docs/UpdateFqdnConnectionRequest.md) - [UpdateFqdnRequest](docs/UpdateFqdnRequest.md) - - [UpdateInbouncChannels](docs/UpdateInbouncChannels.md) - - [UpdateInbouncChannelsData](docs/UpdateInbouncChannelsData.md) - - [UpdateInboundChannels](docs/UpdateInboundChannels.md) - [UpdateIpConnectionRequest](docs/UpdateIpConnectionRequest.md) - [UpdateIpRequest](docs/UpdateIpRequest.md) - [UpdateManagedAccountRequest](docs/UpdateManagedAccountRequest.md) - [UpdateMediaRequest](docs/UpdateMediaRequest.md) - [UpdateMessagingProfileRequest](docs/UpdateMessagingProfileRequest.md) - - [UpdateNotificationChannel](docs/UpdateNotificationChannel.md) - - [UpdateNotificationProfile](docs/UpdateNotificationProfile.md) - [UpdateNumberOrderDocumentRequest](docs/UpdateNumberOrderDocumentRequest.md) - [UpdateNumberOrderPhoneNumberRequest](docs/UpdateNumberOrderPhoneNumberRequest.md) - [UpdateNumberOrderRequest](docs/UpdateNumberOrderRequest.md) + - [UpdateOutboundChannels200Response](docs/UpdateOutboundChannels200Response.md) + - [UpdateOutboundChannels200ResponseData](docs/UpdateOutboundChannels200ResponseData.md) + - [UpdateOutboundChannelsDefaultResponse](docs/UpdateOutboundChannelsDefaultResponse.md) + - [UpdateOutboundChannelsDefaultResponseErrorsInner](docs/UpdateOutboundChannelsDefaultResponseErrorsInner.md) + - [UpdateOutboundChannelsDefaultResponseErrorsInnerSource](docs/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md) + - [UpdateOutboundChannelsRequest](docs/UpdateOutboundChannelsRequest.md) - [UpdateOutboundVoiceProfileRequest](docs/UpdateOutboundVoiceProfileRequest.md) - [UpdatePhoneNumberMessagingSettingsRequest](docs/UpdatePhoneNumberMessagingSettingsRequest.md) - [UpdatePhoneNumberRequest](docs/UpdatePhoneNumberRequest.md) - [UpdatePhoneNumberVoiceSettingsRequest](docs/UpdatePhoneNumberVoiceSettingsRequest.md) - [UpdatePortingOrder](docs/UpdatePortingOrder.md) + - [UpdatePortingOrder200Response](docs/UpdatePortingOrder200Response.md) + - [UpdatePortingOrder200ResponseMeta](docs/UpdatePortingOrder200ResponseMeta.md) - [UpdatePortingOrderActivationSettings](docs/UpdatePortingOrderActivationSettings.md) - [UpdatePortingOrderRequirement](docs/UpdatePortingOrderRequirement.md) - - [UpdatePortoutStatusRequest](docs/UpdatePortoutStatusRequest.md) + - [UpdatePortoutRequestRequest](docs/UpdatePortoutRequestRequest.md) - [UpdateRegulatoryRequirement](docs/UpdateRegulatoryRequirement.md) - [UpdateShortCodeRequest](docs/UpdateShortCodeRequest.md) - - [UpdateSimCardDataUsageNotificationResponse](docs/UpdateSimCardDataUsageNotificationResponse.md) - - [UpdateSimCardGroupResponse](docs/UpdateSimCardGroupResponse.md) - - [UpdateSimCardResponse](docs/UpdateSimCardResponse.md) - [UpdateSubNumberOrderRequest](docs/UpdateSubNumberOrderRequest.md) - [UpdateTexmlApplicationRequest](docs/UpdateTexmlApplicationRequest.md) - [UpdateVerifiedCallsDisplayProfileRequest](docs/UpdateVerifiedCallsDisplayProfileRequest.md) @@ -1475,21 +1571,18 @@ Class | Method | HTTP request | Description - [UpdateVerifyProfileRequest](docs/UpdateVerifyProfileRequest.md) - [UpdateVerifyProfileSMSRequest](docs/UpdateVerifyProfileSMSRequest.md) - [UpdateVerifyProfileWhatsappRequest](docs/UpdateVerifyProfileWhatsappRequest.md) - - [UpdateWhatsAppPhoneNumber](docs/UpdateWhatsAppPhoneNumber.md) - - [UpdateWhatsAppProfilePhoto](docs/UpdateWhatsAppProfilePhoto.md) - [UpdateWhatsappPhoneNumberAboutRequest](docs/UpdateWhatsappPhoneNumberAboutRequest.md) - [UpdateWhatsappPhoneNumberRequest](docs/UpdateWhatsappPhoneNumberRequest.md) - [UplinkData](docs/UplinkData.md) - [UploadMedia](docs/UploadMedia.md) - [UploadMediaRequest](docs/UploadMediaRequest.md) + - [UploadPortingOrderDocuments201Response](docs/UploadPortingOrderDocuments201Response.md) + - [UploadPortingOrderDocumentsRequest](docs/UploadPortingOrderDocumentsRequest.md) + - [UploadPortingOrderDocumentsRequestDocumentsInner](docs/UploadPortingOrderDocumentsRequestDocumentsInner.md) - [Url](docs/Url.md) - [UrlShortenerSettings](docs/UrlShortenerSettings.md) - [UsagePaymentMethod](docs/UsagePaymentMethod.md) - [UserBalance](docs/UserBalance.md) - - [UserBalanceResponse](docs/UserBalanceResponse.md) - - [ValidateAddressRequest](docs/ValidateAddressRequest.md) - - [ValidateAddressResponse](docs/ValidateAddressResponse.md) - - [ValidateAddressResult](docs/ValidateAddressResult.md) - [Verification](docs/Verification.md) - [VerificationProfileRecordType](docs/VerificationProfileRecordType.md) - [VerificationRecordType](docs/VerificationRecordType.md) @@ -1497,9 +1590,11 @@ Class | Method | HTTP request | Description - [VerificationType](docs/VerificationType.md) - [VerifiedCallsDisplayProfile](docs/VerifiedCallsDisplayProfile.md) - [VerifiedCallsDisplayProfileBusinessIdentity](docs/VerifiedCallsDisplayProfileBusinessIdentity.md) - - [VerifiedCallsDisplayProfileCallReasons](docs/VerifiedCallsDisplayProfileCallReasons.md) - - [VerifiedCallsDisplayProfilePhoneNumbers](docs/VerifiedCallsDisplayProfilePhoneNumbers.md) + - [VerifiedCallsDisplayProfileCallReasonsInner](docs/VerifiedCallsDisplayProfileCallReasonsInner.md) + - [VerifiedCallsDisplayProfilePhoneNumbersInner](docs/VerifiedCallsDisplayProfilePhoneNumbersInner.md) - [VerifyDetailRecord](docs/VerifyDetailRecord.md) + - [VerifyPhoneNumberCoverage201Response](docs/VerifyPhoneNumberCoverage201Response.md) + - [VerifyPhoneNumberCoverageRequest](docs/VerifyPhoneNumberCoverageRequest.md) - [VerifyProfileCallResponse](docs/VerifyProfileCallResponse.md) - [VerifyProfileFlashcallResponse](docs/VerifyProfileFlashcallResponse.md) - [VerifyProfilePSD2Response](docs/VerifyProfilePSD2Response.md) @@ -1511,28 +1606,70 @@ Class | Method | HTTP request | Description - [VerifyVerificationCodeResponse](docs/VerifyVerificationCodeResponse.md) - [VerifyVerificationCodeResponseData](docs/VerifyVerificationCodeResponseData.md) - [Video](docs/Video.md) + - [Video1](docs/Video1.md) - [VideoRegion](docs/VideoRegion.md) + - [ViewRoomParticipant200Response](docs/ViewRoomParticipant200Response.md) + - [ViewRoomRecording200Response](docs/ViewRoomRecording200Response.md) + - [ViewRoomSession200Response](docs/ViewRoomSession200Response.md) + - [VirtaulCrossConnectList200Response](docs/VirtaulCrossConnectList200Response.md) + - [VirtaulCrossConnectRegionList200Response](docs/VirtaulCrossConnectRegionList200Response.md) + - [VirtualCrossConnect](docs/VirtualCrossConnect.md) + - [VirtualCrossConnect1](docs/VirtualCrossConnect1.md) + - [VirtualCrossConnectCombined](docs/VirtualCrossConnectCombined.md) + - [VirtualCrossConnectCreate](docs/VirtualCrossConnectCreate.md) + - [VirtualCrossConnectCreate200Response](docs/VirtualCrossConnectCreate200Response.md) + - [VirtualCrossConnectPatch](docs/VirtualCrossConnectPatch.md) + - [VirtualCrossConnectPatch1](docs/VirtualCrossConnectPatch1.md) + - [VirtualCrossConnectRegion](docs/VirtualCrossConnectRegion.md) + - [VirtualCrossConnectRegion1](docs/VirtualCrossConnectRegion1.md) + - [VirtualCrossConnectRegionGet200Response](docs/VirtualCrossConnectRegionGet200Response.md) - [WdrReport](docs/WdrReport.md) - [WdrReportRequest](docs/WdrReportRequest.md) - [WebhookApiVersion](docs/WebhookApiVersion.md) - [WebhookDelivery](docs/WebhookDelivery.md) - [WebhookDeliveryWebhook](docs/WebhookDeliveryWebhook.md) + - [WhatsAppBusinessAccount](docs/WhatsAppBusinessAccount.md) - [WhatsAppContactAddress](docs/WhatsAppContactAddress.md) + - [WhatsAppConversationDetailRecord](docs/WhatsAppConversationDetailRecord.md) - [WhatsAppDetailRecord](docs/WhatsAppDetailRecord.md) - [WhatsAppDetailRecordReport](docs/WhatsAppDetailRecordReport.md) - [WhatsAppDetailReportResponse](docs/WhatsAppDetailReportResponse.md) - [WhatsAppGetAllDetailReportResponse](docs/WhatsAppGetAllDetailReportResponse.md) - - [WhatsAppMessageResponse](docs/WhatsAppMessageResponse.md) + - [WhatsAppMessageTemplate](docs/WhatsAppMessageTemplate.md) + - [WhatsAppMessageTemplate1](docs/WhatsAppMessageTemplate1.md) + - [WhatsAppPhoneNumber](docs/WhatsAppPhoneNumber.md) + - [WhatsAppProfilePhoto](docs/WhatsAppProfilePhoto.md) - [WhatsAppReportsReq](docs/WhatsAppReportsReq.md) - [WhatsAppUsageAggregation](docs/WhatsAppUsageAggregation.md) - [WhatsAppUsageAggregationsResponseContainer](docs/WhatsAppUsageAggregationsResponseContainer.md) - [WhatsAppUser](docs/WhatsAppUser.md) - [WhatsappBusinessAccount](docs/WhatsappBusinessAccount.md) - [WhatsappBusinessAccountWhatsappSettings](docs/WhatsappBusinessAccountWhatsappSettings.md) + - [WhatsappMessageTemplate](docs/WhatsappMessageTemplate.md) + - [WhatsappMessageTemplateComponentsInner](docs/WhatsappMessageTemplateComponentsInner.md) + - [WhatsappMessageTemplateQualityScore](docs/WhatsappMessageTemplateQualityScore.md) - [WhatsappPhoneNumber](docs/WhatsappPhoneNumber.md) + - [WhatsappPhoneNumberWhatsappSettings](docs/WhatsappPhoneNumberWhatsappSettings.md) - [WhatsappProfilePhoto](docs/WhatsappProfilePhoto.md) + - [WireguardAllowedIP](docs/WireguardAllowedIP.md) + - [WireguardInterface](docs/WireguardInterface.md) + - [WireguardInterface1](docs/WireguardInterface1.md) + - [WireguardInterfaceCreate](docs/WireguardInterfaceCreate.md) + - [WireguardInterfaceCreate202Response](docs/WireguardInterfaceCreate202Response.md) + - [WireguardInterfaceList200Response](docs/WireguardInterfaceList200Response.md) + - [WireguardInterfaceRead](docs/WireguardInterfaceRead.md) + - [WireguardPeer](docs/WireguardPeer.md) + - [WireguardPeer1](docs/WireguardPeer1.md) + - [WireguardPeerAllowedIP](docs/WireguardPeerAllowedIP.md) + - [WireguardPeerAllowedIPCreate](docs/WireguardPeerAllowedIPCreate.md) + - [WireguardPeerAllowedIPGet200Response](docs/WireguardPeerAllowedIPGet200Response.md) + - [WireguardPeerAllowedIPList200Response](docs/WireguardPeerAllowedIPList200Response.md) + - [WireguardPeerCreate](docs/WireguardPeerCreate.md) + - [WireguardPeerCreate202Response](docs/WireguardPeerCreate202Response.md) + - [WireguardPeerList200Response](docs/WireguardPeerList200Response.md) + - [WireguardPeerPatch](docs/WireguardPeerPatch.md) - [WirelessConnectivityLog](docs/WirelessConnectivityLog.md) - - [WirelessConnectivityLogCollectionResponse](docs/WirelessConnectivityLogCollectionResponse.md) + - [WirelessConnectivityLogsGet200Response](docs/WirelessConnectivityLogsGet200Response.md) - [WirelessCost](docs/WirelessCost.md) - [WirelessRate](docs/WirelessRate.md) diff --git a/api/openapi.yaml b/api/openapi.yaml index 7f91762f..0b4f4b76 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,23 +1,21 @@ -openapi: 3.0.0 +openapi: 3.0.1 info: contact: email: support@telnyx.com - description: SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + description: "SIP trunking, SMS, MMS, Call Control and Telephony Data Services." + license: + name: MIT title: Telnyx API version: 2.0.0 - x-endpoint-cost: medium + x-endpoint-cost: light servers: - description: Version 2.0.0 of the Telnyx API url: https://api.telnyx.com/v2 security: - bearerAuth: [] tags: -- description: Access Control IP operations - name: Access Control IPs - description: Access Tokens creation name: Access Tokens -- description: Address operations - name: Addresses - description: Authentication Provider operations name: Authentication Providers - description: Billing operations @@ -52,6 +50,8 @@ tags: name: Debugging - description: Detail Records operations name: Detail Records +- description: Dialogflow Connection Operations. + name: Dialogflow Integration - description: Documents name: Documents - description: Dynamic emergency address operations @@ -60,7 +60,7 @@ tags: name: Dynamic Emergency Endpoints - description: FQDN connection operations name: FQDN Connections -- description: FQDN operations +- description: FQDN Operations name: FQDNs - description: IP Address Operations name: IP Addresses @@ -86,10 +86,10 @@ tags: name: Messaging Profiles - description: Messaging URL Domains name: Messaging URL Domains -- description: Mobile Application management - name: Mobile Applications - description: Mobile operator networks operations name: Mobile Operator Networks +- description: Network operations + name: Networks - description: Notification settings operations name: Notifications - description: Background jobs performed over a batch of phone numbers @@ -124,12 +124,16 @@ tags: name: Programmable Fax Applications - description: Programmable fax command operations name: Programmable Fax Commands -- description: Push credential management +- description: Public Internet Gateway operations + name: Public Internet Gateways +- description: Mobile push credential management name: Push Credentials - description: Queue commands operations name: Queue Commands - description: Recordings commands operations name: Recordings Commands +- description: Regions + name: Regions - description: Register Call commands name: Register Call - description: Wireless reporting operations @@ -150,8 +154,8 @@ tags: name: Rooms - description: Rooms Client Tokens operations. name: Rooms Client Tokens -- description: View SIM card actions, their progress and timestamps using the SIM - Card Actions API +- description: "View SIM card actions, their progress and timestamps using the SIM\ + \ Card Actions API" name: SIM Card Actions - description: SIM Card Group actions operations name: SIM Card Group Actions @@ -165,10 +169,14 @@ tags: name: Short Codes - description: TeXML Applications operations name: TeXML Applications +- description: TeXML REST Commands + name: TeXML REST Commands - description: Verified Calls Display Profile related endpoints name: Verified Calls Display Profile - description: Two factor authentication API name: Verify +- description: Virtual Cross Connect operations + name: Virtual Cross Connects - description: Webhooks operations name: Webhooks - description: WhatsApp Business Account @@ -177,118 +185,80 @@ tags: name: WhatsApp Contacts - description: WhatsApp media files name: WhatsApp Media +- description: WhatsApp message templates + name: WhatsApp Message Template - description: WhatsApp messages name: WhatsApp Messages - description: WhatsApp Phone Number name: WhatsApp Phone Number - description: WhatsApp user info name: WhatsApp Users +- description: WireGuard Interface operations + name: WireGuard Interfaces - description: Wireless operations name: Wireless paths: - /access_control_ips: + /access_fqdns: get: - description: 'This endpoint will be deprecated on 15th March 2022 and has been - replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) - and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). - We recommend that Customers already using this endpoint transition to using: - [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).' - operationId: findAccessControlIps + operationId: ListAllAccessFqdns parameters: - - description: The page number to load - explode: true + - explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 - minimum: 1 type: integer style: form - - description: The size of the page - explode: true + - explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 maximum: 250 - minimum: 1 type: integer style: form - - description: Filter access control IPs via the ip_address sent. - explode: true - in: query - name: filter[ip_address][eq] - required: false - schema: - type: string - style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Get_All_Access_Control_Ip_Response' - description: Successful response - "400": - description: Bad request - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Resource not found - summary: List all access control IPs + $ref: '#/components/schemas/CustomerFacingFQDNsListResponse' + description: Successful Response + summary: List all Access FQDNs tags: - - Access Control IPs - x-endpoint-cost: medium + - FQDNs x-latency-category: responsive x-accepts: application/json post: - description: 'This endpoint will be deprecated on 15th March 2022 and has been - replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) - and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). - We recommend that Customers already using this endpoint transition to using: - [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).)' - operationId: CreateAccessControlIp - parameters: [] + operationId: CreateAccessFqdn requestBody: content: application/json: schema: - $ref: '#/components/schemas/AccessControlIpCreate' - description: Parameters that can be defined during access control IP creation + $ref: '#/components/schemas/CustomerFacingFQDNsPost' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Access_Control_Ip_Response' - description: Successful response - "422": - description: Bad request - summary: Adds an access control IP + $ref: '#/components/schemas/CustomerFacingFQDNsResponseSchema' + description: Successful Response + summary: Create new Access FQDN tags: - - Access Control IPs - x-endpoint-cost: medium + - FQDNs x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json - /access_control_ips/{id}: + /access_fqdns/{fqdn_id}: delete: - description: 'This endpoint will be deprecated on 15th March 2022 and has been - replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) - and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). - We recommend that Customers already using this endpoint transition to using: - [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).)' - operationId: DeleteAccessControlIp + operationId: DeleteAccessFqdn parameters: - - description: access control IP ID - explode: false + - explode: false in: path - name: id + name: fqdn_id required: true schema: type: string @@ -298,33 +268,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Access_Control_Ip_Response' - description: Successful response - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Resource not found - "422": - description: Bad request - summary: Deletes an access control IP + $ref: '#/components/schemas/CustomerFacingFQDNsResponseSchema' + description: Successful Response + summary: Delete Access FQDN tags: - - Access Control IPs + - FQDNs x-latency-category: responsive x-accepts: application/json get: - description: 'This endpoint will be deprecated on 15th March 2022 and has been - replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) - and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). - We recommend that Customers already using this endpoint transition to using: - [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).' - operationId: getAccessControlIp + operationId: ListAccessFqdnById parameters: - - description: access control IP ID - explode: false + - explode: false in: path - name: id + name: fqdn_id required: true schema: type: string @@ -334,33 +290,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Access_Control_Ip_Response' - description: Successful response - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Resource not found - "422": - description: Bad request - summary: Retrieve an access control IP + $ref: '#/components/schemas/CustomerFacingFQDNsResponseSchema' + description: Successful Response + summary: List an Access FQDN tags: - - Access Control IPs + - FQDNs x-latency-category: responsive x-accepts: application/json patch: - description: 'This endpoint will be deprecated on 15th March 2022 and has been - replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) - and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). - We recommend that Customers already using this endpoint transition to using: - [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).)' - operationId: updateAccessControlIp + operationId: UpdateAccessFqdn parameters: - - description: access control IP ID - explode: false + - explode: false in: path - name: id + name: fqdn_id required: true schema: type: string @@ -369,29 +311,60 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/AccessControlIpUpdate' - description: Parameters to update on the access control IP record + $ref: '#/components/schemas/CustomerFacingFQDNsPatch' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Access_Control_Ip_Response' - description: Successful response - "401": - description: Unauthorized - "403": - description: Forbidden - "404": - description: Resource not found - "422": - description: Bad request - summary: Update an access control IP + $ref: '#/components/schemas/CustomerFacingFQDNsResponseSchema' + description: Successful Response + summary: Update Access FQDN + tags: + - FQDNs + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /access_fqdns/{fqdn_id}/ips: + get: + operationId: ListAllIpsByFqdn + parameters: + - explode: false + in: path + name: fqdn_id + required: true + schema: + type: string + style: simple + - explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + type: integer + style: form + - explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/CustomerFacingFQDNsGetIPResponse' + description: Successful Response + summary: List Access FQDN's IP Addresses tags: - - Access Control IPs + - FQDNs x-latency-category: responsive - x-contentType: application/json x-accepts: application/json /access_ip_address: get: @@ -399,28 +372,28 @@ paths: parameters: - explode: true in: query - name: filter[ip_source] + name: "filter[ip_source]" required: false schema: type: string style: form - explode: true in: query - name: filter[ip_address] + name: "filter[ip_address]" required: false schema: type: string style: form - explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: $ref: '#/components/schemas/CloudflareSyncStatus' style: form - explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: format: date-time @@ -428,7 +401,7 @@ paths: style: form - explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: format: date-time @@ -436,7 +409,7 @@ paths: style: form - explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -444,7 +417,7 @@ paths: style: form - explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -494,10 +467,11 @@ paths: tags: - IP Addresses x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /access_ip_address/{access_ip_address_id}: delete: + operationId: AccessIPAddressDelete parameters: - explode: false in: path @@ -518,48 +492,70 @@ paths: - IP Addresses x-latency-category: responsive x-accepts: application/json + get: + operationId: AccessIPAddressGet + parameters: + - explode: false + in: path + name: access_ip_address_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/AccessIPAddressResponseSchema' + description: Successful Response + summary: Retrieve an access IP address + tags: + - IP Addresses + x-latency-category: responsive + x-accepts: application/json /access_ip_ranges: get: operationId: AccessIPRangeList parameters: - explode: true in: query - name: filter[cidr_block] + name: "filter[cidr_block]" required: false schema: type: string style: form - explode: true in: query - name: filter[cidr_block][startswith] + name: "filter[cidr_block][startswith]" required: false schema: type: string style: form - explode: true in: query - name: filter[cidr_block][endswith] + name: "filter[cidr_block][endswith]" required: false schema: type: string style: form - explode: true in: query - name: filter[cidr_block][contains] + name: "filter[cidr_block][contains]" required: false schema: type: string style: form - explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: $ref: '#/components/schemas/CloudflareSyncStatus' style: form - explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: format: date-time @@ -567,7 +563,7 @@ paths: style: form - explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: format: date-time @@ -575,7 +571,7 @@ paths: style: form - explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -583,7 +579,7 @@ paths: style: form - explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -633,7 +629,7 @@ paths: tags: - IP Ranges x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /access_ip_ranges/{access_ip_range_id}: delete: @@ -662,10 +658,10 @@ paths: description: Delete several credentials in bulk. operationId: DeleteBulkTelephonyCredential parameters: - - description: Filter by tag, required by bulk operations. + - description: "Filter by tag, required by bulk operations." explode: true in: query - name: filter[tag] + name: "filter[tag]" required: true schema: type: string @@ -688,10 +684,10 @@ paths: description: Update several credentials in bulk. operationId: UpdateBulkTelephonyCredential parameters: - - description: Filter by tag, required by bulk operations. + - description: "Filter by tag, required by bulk operations." explode: true in: query - name: filter[tag] + name: "filter[tag]" required: true schema: type: string @@ -716,7 +712,7 @@ paths: tags: - Bulk Credentials x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json post: description: Creates several credentials in bulk. @@ -742,42 +738,31 @@ paths: tags: - Bulk Credentials x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /actions/network_preferences/sim_cards: put: - description: | - This API allows dispatching the same operation described for the PUT sim_cards/:sim_card_id/network_preferences API for multiple SIM cards at once.

- Although, a SIM card network preference may fail individually under any validation triggered as a consequence of its state. For example, a SIM can't have an in-progress OTA update for applying a Network Preference, so they'll fail when requested in this API. In that scenario, the specific error will be present in the response along with the successful definitions in the "errors" response node. + description: "This API allows dispatching the same operation described for the\ + \ PUT sim_cards/:sim_card_id/network_preferences API for multiple SIM cards\ + \ at once.

\nAlthough, a SIM card network preference may fail individually\ + \ under any validation triggered as a consequence of its state. For example,\ + \ a SIM can't have an in-progress OTA update for applying a Network Preference,\ + \ so they'll fail when requested in this API. In that scenario, the specific\ + \ error will be present in the response along with the successful definitions\ + \ in the \"errors\" response node.\n" operationId: BulkSIMCardNetworkPreferences requestBody: - $ref: '#/components/requestBodies/Bulk_Update_Sim_Network_Preference' content: application/json: schema: - properties: - sim_card_ids: - example: - - 6b14e151-8493-4fa1-8664-1cc4e6d14158 - - 6b14e151-8493-4fa1-8664-1cc4e6d14158 - items: - format: uuid - type: string - type: array - mobile_operator_networks_preferences: - description: A list of mobile operator networks and the priority - that should be applied when the SIM is connecting to the network. - items: - $ref: '#/components/schemas/MobileOperatorNetworkPreferencesRequest' - type: array - title: Bulk Update Sim Network Preference - type: object + $ref: '#/components/schemas/BulkSIMCardNetworkPreferences_request' responses: "202": content: application/json: schema: - $ref: '#/components/schemas/Bulk_SIM_Card_Network_Preference_Response' + $ref: '#/components/schemas/BulkSIMCardNetworkPreferences_202_response' + description: "" "422": content: application/json: @@ -789,13 +774,14 @@ paths: tags: - SIM Cards x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /actions/register/sim_cards: post: - description: | - Register the SIM cards associated with the provided registration codes to the current user's account.

- If sim_card_group_id is provided, the SIM cards will be associated with that group. Otherwise, the default group for the current user will be used.

+ description: "Register the SIM cards associated with the provided registration\ + \ codes to the current user's account.

\nIf sim_card_group_id\ + \ is provided, the SIM cards will be associated with that group. Otherwise,\ + \ the default group for the current user will be used.

\n" operationId: SimCardRegister requestBody: content: @@ -808,20 +794,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Register_SimCards_Response' + $ref: '#/components/schemas/SimCardRegister_202_response' description: Successful response summary: Register SIM cards tags: - SIM Cards x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /actions/{action}/telephony_credentials: post: - description: Perform activate or deactivate action on all credentials filtered - by the provided tag. Activate action will change the status to active, making - it possible to connect calls with the credential. Deactivate action will change - the status to inactive, making it impossible to connect calls with the credential. + description: "Perform activate or deactivate action on all credentials filtered\ + \ by the provided tag. Activate action will change the status to active, making\ + \ it possible to connect calls with the credential. Deactivate action will\ + \ change the status to inactive, making it impossible to connect calls with\ + \ the credential." operationId: BulkCredentialAction parameters: - description: Identifies the action to be taken. Activate will change the status @@ -836,10 +823,10 @@ paths: - deactivate type: string style: simple - - description: Filter by tag, required by bulk operations. + - description: "Filter by tag, required by bulk operations." explode: true in: query - name: filter[tag] + name: "filter[tag]" required: true schema: type: string @@ -863,245 +850,6 @@ paths: - Bulk Credentials x-latency-category: responsive x-accepts: application/json - /addresses: - get: - description: Returns a list of your addresses. - operationId: findAddresss - parameters: - - description: The page number to load - explode: true - in: query - name: page[number] - required: false - schema: - default: 1 - minimum: 1 - type: integer - style: form - - description: The size of the page - explode: true - in: query - name: page[size] - required: false - schema: - default: 20 - maximum: 250 - minimum: 1 - type: integer - style: form - - description: Filter addresses via the customer reference set. Matching is - not case-sensitive. - explode: true - in: query - name: filter[customer_reference][eq] - required: false - schema: - type: string - style: form - - description: If present, addresses with customer_reference containing - the given value will be returned. Matching is not case-sensitive. - explode: true - in: query - name: filter[customer_reference][contains] - required: false - schema: - type: string - style: form - - description: 'If set as ''true'', only addresses used as the emergency address - for at least one active phone-number will be returned. When set to ''false'', - the opposite happens: only addresses not used as the emergency address from - phone-numbers will be returned.' - explode: true - in: query - name: filter[used_as_emergency] - required: false - schema: - default: "null" - type: string - style: form - - description: If present, addresses with street_address containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. - explode: true - in: query - name: filter[street_address][contains] - required: false - schema: - default: "null" - type: string - style: form - - description: If present, only returns results with the address_book - flag set to the given value. - explode: true - in: query - name: filter[address_book][eq] - required: false - schema: - default: "null" - type: string - style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. - explode: true - in: query - name: sort - required: false - schema: - default: created_at - enum: - - created_at - - first_name - - last_name - - business_name - - street_address - example: street_address - type: string - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Get_All_Address_Response' - description: Successful response - "400": - description: Bad request - "401": - description: Unauthorized - "404": - description: Resource not found - summary: List all addresses - tags: - - Addresses - x-endpoint-cost: medium - x-latency-category: responsive - x-accepts: application/json - post: - description: Creates an address. - operationId: CreateAddress - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/AddressCreate' - description: Parameters that can be defined during address creation - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Address_Response' - description: Successful response - "422": - description: Bad request - summary: Creates an address - tags: - - Addresses - x-endpoint-cost: medium - x-latency-category: responsive - x-contentType: application/json - x-accepts: application/json - /addresses/actions/validate: - post: - description: Validates an address for emergency services. - operationId: validateAddress - parameters: [] - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ValidateAddressRequest' - description: Parameters that can be defined during address validation - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Validate_Address_Response' - description: Action response - "422": - description: Bad request - summary: Validate an address - tags: - - Addresses - x-latency-category: responsive - x-contentType: application/json - x-accepts: application/json - /addresses/{id}: - delete: - description: Deletes an existing address. - operationId: DeleteAddress - parameters: - - description: address ID - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Address_Response' - description: Successful response - "401": - description: Unauthorized - "404": - description: Resource not found - "422": - description: Bad request - summary: Deletes an address - tags: - - Addresses - x-latency-category: responsive - x-accepts: application/json - get: - description: Retrieves the details of an existing address. - operationId: getAddress - parameters: - - description: address ID - explode: false - in: path - name: id - required: true - schema: - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/Address_Response' - description: Successful response - "401": - description: Unauthorized - "404": - description: Resource not found - "422": - description: Bad request - summary: Retrieve an address - tags: - - Addresses - x-latency-category: responsive - x-accepts: application/json /authentication_providers: get: description: Returns a list of your SSO authentication providers. @@ -1110,7 +858,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -1120,7 +868,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -1128,19 +876,14 @@ paths: minimum: 1 type: integer style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If\ + \ not given, results are sorted by created_at in descending\ + \ order." explode: true in: query name: sort @@ -1166,7 +909,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_All_Authentication_Providers_Response' + $ref: '#/components/schemas/findAuthenticationProviders_200_response' description: Successful response "400": description: Bad request @@ -1196,7 +939,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Authentication_Provider_Response' + $ref: '#/components/schemas/CreateAuthenticationProvider_200_response' description: Successful response "422": description: Bad request @@ -1204,7 +947,7 @@ paths: tags: - Authentication Providers x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /authentication_providers/{id}: delete: @@ -1224,7 +967,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Authentication_Provider_Response' + $ref: '#/components/schemas/CreateAuthenticationProvider_200_response' description: Successful response "401": description: Unauthorized @@ -1254,7 +997,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Authentication_Provider_Response' + $ref: '#/components/schemas/CreateAuthenticationProvider_200_response' description: Successful response "401": description: Unauthorized @@ -1291,7 +1034,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Authentication_Provider_Response' + $ref: '#/components/schemas/CreateAuthenticationProvider_200_response' description: Successful response "401": description: Unauthorized @@ -1303,7 +1046,7 @@ paths: tags: - Authentication Providers x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /available_phone_number_blocks: get: @@ -1313,7 +1056,7 @@ paths: after `national_destination_code` filter has been set). explode: true in: query - name: filter[phone_number][starts_with] + name: "filter[phone_number][starts_with]" required: false schema: example: "201" @@ -1322,7 +1065,7 @@ paths: - description: Filter numbers ending with a pattern. explode: true in: query - name: filter[phone_number][ends_with] + name: "filter[phone_number][ends_with]" required: false schema: example: "8000" @@ -1331,7 +1074,7 @@ paths: - description: Filter numbers containing a pattern. explode: true in: query - name: filter[phone_number][contains] + name: "filter[phone_number][contains]" required: false schema: example: "456" @@ -1347,7 +1090,7 @@ paths: value: Canberra explode: true in: query - name: filter[locality] + name: "filter[locality]" required: false schema: type: string @@ -1355,7 +1098,7 @@ paths: - description: Filter phone numbers by US state/CA province. explode: true in: query - name: filter[administrative_area] + name: "filter[administrative_area]" required: false schema: example: IL @@ -1364,7 +1107,7 @@ paths: - description: Filter phone numbers by ISO alpha-2 country code. explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: example: US @@ -1381,7 +1124,7 @@ paths: value: "0251" explode: true in: query - name: filter[national_destination_code] + name: "filter[national_destination_code]" required: false schema: type: string @@ -1390,7 +1133,7 @@ paths: applicable to North American numbers. explode: true in: query - name: filter[rate_center] + name: "filter[rate_center]" required: false schema: example: CHICAGO HEIGHTS @@ -1399,7 +1142,7 @@ paths: - description: Filter phone numbers by number type. explode: true in: query - name: filter[number_type] + name: "filter[number_type]" required: false schema: enum: @@ -1407,14 +1150,14 @@ paths: example: toll-free type: string style: form - - description: Filter if the phone number should be used for voice, fax, mms, - sms, emergency. + - description: "Filter if the phone number should be used for voice, fax, mms,\ + \ sms, emergency." explode: true in: query - name: filter[features] + name: "filter[features]" required: false schema: - example: voice,sms + example: "voice,sms" items: enum: - sms @@ -1428,7 +1171,7 @@ paths: - description: Filter number blocks by minimum blocks size explode: true in: query - name: filter[minimum_block_size] + name: "filter[minimum_block_size]" required: false schema: example: 100 @@ -1437,7 +1180,7 @@ paths: - description: Limits the number of results. explode: true in: query - name: filter[limit] + name: "filter[limit]" required: false schema: example: 100 @@ -1474,7 +1217,7 @@ paths: value: FREE explode: true in: query - name: filter[phone_number][starts_with] + name: "filter[phone_number][starts_with]" required: false schema: type: string @@ -1487,7 +1230,7 @@ paths: value: CALL explode: true in: query - name: filter[phone_number][ends_with] + name: "filter[phone_number][ends_with]" required: false schema: type: string @@ -1500,7 +1243,7 @@ paths: value: FOO explode: true in: query - name: filter[phone_number][contains] + name: "filter[phone_number][contains]" required: false schema: type: string @@ -1515,7 +1258,7 @@ paths: value: Canberra explode: true in: query - name: filter[locality] + name: "filter[locality]" required: false schema: type: string @@ -1523,7 +1266,7 @@ paths: - description: Filter phone numbers by US state/CA province. explode: true in: query - name: filter[administrative_area] + name: "filter[administrative_area]" required: false schema: example: IL @@ -1532,7 +1275,7 @@ paths: - description: Filter phone numbers by ISO alpha-2 country code. explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: example: US @@ -1549,7 +1292,7 @@ paths: value: "0251" explode: true in: query - name: filter[national_destination_code] + name: "filter[national_destination_code]" required: false schema: type: string @@ -1558,7 +1301,7 @@ paths: applicable to North American numbers. explode: true in: query - name: filter[rate_center] + name: "filter[rate_center]" required: false schema: example: CHICAGO HEIGHTS @@ -1567,7 +1310,7 @@ paths: - description: Filter phone numbers by number type. explode: true in: query - name: filter[phone_number_type] + name: "filter[phone_number_type]" required: false schema: enum: @@ -1580,14 +1323,14 @@ paths: example: local type: string style: form - - description: Filter if the phone number should be used for voice, fax, mms, - sms, emergency. + - description: "Filter if the phone number should be used for voice, fax, mms,\ + \ sms, emergency." explode: true in: query - name: filter[features] + name: "filter[features]" required: false schema: - example: voice,sms + example: "voice,sms" items: enum: - sms @@ -1601,7 +1344,7 @@ paths: - description: Limits the number of results. explode: true in: query - name: filter[limit] + name: "filter[limit]" required: false schema: example: 100 @@ -1611,7 +1354,7 @@ paths: Only available in NANPA countries. explode: true in: query - name: filter[best_effort] + name: "filter[best_effort]" required: false schema: example: false @@ -1621,7 +1364,7 @@ paths: to purchase to receive phone calls. Only available for toll-free numbers. explode: true in: query - name: filter[quickship] + name: "filter[quickship]" required: false schema: example: true @@ -1631,7 +1374,7 @@ paths: purchase. explode: true in: query - name: filter[reservable] + name: "filter[reservable]" required: false schema: example: true @@ -1641,7 +1384,7 @@ paths: your account. explode: true in: query - name: filter[exclude_held_numbers] + name: "filter[exclude_held_numbers]" required: false schema: example: false @@ -1675,7 +1418,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User_Balance_Response' + $ref: '#/components/schemas/getUserBalance_200_response' description: Retrieve user balance details default: content: @@ -1695,7 +1438,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -1705,7 +1448,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -1718,7 +1461,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Billing_Groups_Response' + $ref: '#/components/schemas/listBillingGroups_200_response' description: A paginated array of billing groups default: content: @@ -1745,7 +1488,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request default: content: @@ -1757,7 +1500,7 @@ paths: tags: - Billing Groups x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /billing_groups/{id}: delete: @@ -1777,7 +1520,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request default: content: @@ -1807,7 +1550,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request default: content: @@ -1844,7 +1587,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request default: content: @@ -1856,7 +1599,99 @@ paths: tags: - Billing Groups x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json + x-accepts: application/json + /bulk_sim_card_actions: + get: + description: This API lists a paginated collection of bulk SIM card actions. + A bulk SIM card action contains details about a collection of individual SIM + card actions. + operationId: ListBulkSIMCardActions + parameters: + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: Filter by action type. + explode: true + in: query + name: "filter[action_type]" + required: false + schema: + enum: + - bulk_set_public_ips + example: bulk_set_public_ips + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListBulkSIMCardActions_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List bulk SIM card actions + tags: + - SIM Card Actions + x-latency-category: responsive + x-accepts: application/json + /bulk_sim_card_actions/{id}: + get: + description: This API fetches information about a bulk SIM card action. A bulk + SIM card action contains details about a collection of individual SIM card + actions. + operationId: BulkSimCardActionGet + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/BulkSimCardActionGet_200_response' + description: Successful Response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Get bulk SIM card action details + tags: + - SIM Card Actions + x-latency-category: responsive x-accepts: application/json /business_identities: get: @@ -1865,7 +1700,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -1875,7 +1710,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -1925,7 +1760,7 @@ paths: tags: - Business Identity x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /business_identities/{id}: delete: @@ -2025,7 +1860,7 @@ paths: tags: - Business Identity x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /call_control_applications: get: @@ -2035,7 +1870,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -2045,7 +1880,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -2053,12 +1888,12 @@ paths: minimum: 1 type: integer style: form - - description: If present, applications with application_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + - description: "If present, applications with application_name\ + \ containing the given value will be returned. Matching is not case-sensitive.\ + \ Requires at least three characters." explode: true in: query - name: filter[application_name][contains] + name: "filter[application_name][contains]" required: false schema: default: "null" @@ -2067,26 +1902,21 @@ paths: - description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" format: int64 type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -2110,7 +1940,8 @@ paths: "400": description: Bad request "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found summary: List call control applications @@ -2144,7 +1975,7 @@ paths: - Call Control Applications x-endpoint-cost: medium x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /call_control_applications/{id}: delete: @@ -2169,7 +2000,8 @@ paths: $ref: '#/components/schemas/Call_Control_Application_Response' description: Successful response with details about a call control application. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found "422": @@ -2201,7 +2033,8 @@ paths: $ref: '#/components/schemas/Call_Control_Application_Response' description: Successful response with details about a call control application. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found "422": @@ -2240,7 +2073,8 @@ paths: $ref: '#/components/schemas/Call_Control_Application_Response' description: Successful response with details about a call control application. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found "422": @@ -2249,20 +2083,20 @@ paths: tags: - Call Control Applications x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /call_events: get: - description: | - Filters call events by given filter parameters. Events are ordered by `event_timestamp`. If filter for `call_leg_id` or `call_session_id` is not present, it only filters events from the last 24 hours. - - **Note**: Only one `filter[event_timestamp]` can be passed. + description: "Filters call events by given filter parameters. Events are ordered\ + \ by `event_timestamp`. If filter for `call_leg_id` or `call_session_id` is\ + \ not present, it only filters events from the last 24 hours.\n\n**Note**:\ + \ Only one `filter[event_timestamp]` can be passed.\n" operationId: listCallEvents parameters: - description: The unique identifier of an individual call leg. explode: true in: query - name: filter[call_leg_id] + name: "filter[call_leg_id]" required: false schema: format: uuid @@ -2272,7 +2106,7 @@ paths: may include multiple call leg events. explode: true in: query - name: filter[call_session_id] + name: "filter[call_session_id]" required: false schema: format: uuid @@ -2281,7 +2115,7 @@ paths: - description: Event status explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -2293,7 +2127,7 @@ paths: - description: Event type explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: enum: @@ -2302,46 +2136,46 @@ paths: example: webhook type: string style: form - - description: 'Event timestamp: greater than' + - description: "Event timestamp: greater than" explode: true in: query - name: filter[event_timestamp][gt] + name: "filter[event_timestamp][gt]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form - - description: 'Event timestamp: greater than or equal' + - description: "Event timestamp: greater than or equal" explode: true in: query - name: filter[event_timestamp][gte] + name: "filter[event_timestamp][gte]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form - - description: 'Event timestamp: lower than' + - description: "Event timestamp: lower than" explode: true in: query - name: filter[event_timestamp][lt] + name: "filter[event_timestamp][lt]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form - - description: 'Event timestamp: lower than or equal' + - description: "Event timestamp: lower than or equal" explode: true in: query - name: filter[event_timestamp][lte] + name: "filter[event_timestamp][lte]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form - - description: 'Event timestamp: equal' + - description: "Event timestamp: equal" explode: true in: query - name: filter[event_timestamp][eq] + name: "filter[event_timestamp][eq]" required: false schema: example: 2019-03-29T11:10:00Z @@ -2350,7 +2184,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -2360,7 +2194,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -2402,8 +2236,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callAnswered: '{$request.body#/webhook_url}': @@ -2417,8 +2251,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callHangup: '{$request.body#/webhook_url}': @@ -2432,8 +2266,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callMachineDetectionEnded: '{$request.body#/webhook_url}': @@ -2447,8 +2281,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callMachineGreetingEnded: '{$request.body#/webhook_url}': @@ -2462,8 +2296,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true streamingStarted: '{$request.body#/webhook_url}': @@ -2477,8 +2311,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true streamingStopped: '{$request.body#/webhook_url}': @@ -2492,19 +2326,34 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks. - - **Expected Webhooks:** - - - `call.initiated` - - `call.answered` or `call.hangup` - - `call.machine.detection.ended` if `answering_machine_detection` was requested - - `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words` - - `streaming.started` and `streaming.stopped` if `stream_url` was set + streamingFailed: + '{$request.body#/webhook_url}': + post: + operationId: streamingFailed_Post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CallStreamingFailedEvent' + required: true + responses: + "200": + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." + x-callback-request: true + description: "Dial a number or SIP URI from a given connection. A successful\ + \ response will include a `call_leg_id` which can be used to correlate the\ + \ command with subsequent webhooks.\n\n**Expected Webhooks:**\n\n- `call.initiated`\n\ + - `call.answered` or `call.hangup`\n- `call.machine.detection.ended` if `answering_machine_detection`\ + \ was requested\n- `call.machine.greeting.ended` if `answering_machine_detection`\ + \ was requested to detect the end of machine greeting\n- `call.machine.premium.detection.ended`\ + \ if `answering_machine_detection=premium` was requested\n- `call.machine.premium.greeting.ended`\ + \ if `answering_machine_detection=premium` was requested and a beep was detected\n\ + - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url`\ + \ was set\n" operationId: callDial requestBody: content: @@ -2530,7 +2379,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/register: post: @@ -2562,7 +2411,7 @@ paths: tags: - Register Call x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}: get: @@ -2611,8 +2460,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true streamingStarted: '{$request.body#/webhook_url}': @@ -2626,8 +2475,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true streamingStopped: '{$request.body#/webhook_url}': @@ -2641,16 +2490,28 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: |- - Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call. - - **Expected Webhooks:** - - - `call.answered` - - `streaming.started` and `streaming.stopped` if `stream_url` was set + streamingFailed: + '{$request.body#/webhook_url}': + post: + operationId: streamingFailed_Post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CallStreamingFailedEvent' + required: true + responses: + "200": + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." + x-callback-request: true + description: "Answer an incoming call. You must issue this command before executing\ + \ subsequent commands on an incoming call.\n\n**Expected Webhooks:**\n\n-\ + \ `call.answered`\n- `streaming.started`, `streaming.stopped` or `streaming.failed`\ + \ if `stream_url` was set\n" operationId: callAnswer parameters: - description: Unique identifier and token for controlling the call @@ -2685,7 +2546,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/bridge: post: @@ -2702,8 +2563,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Bridge two call control calls. @@ -2746,7 +2607,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/client_state_update: put: @@ -2786,7 +2647,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/enqueue: post: @@ -2803,8 +2664,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callLeftQueue: '{$request.body#/webhook_url}': @@ -2818,8 +2679,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: Put the call in a queue. operationId: callEnqueue @@ -2856,7 +2717,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/fork_start: post: @@ -2873,8 +2734,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callForkStopped: '{$request.body#/webhook_url}': @@ -2888,8 +2749,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: "Call forking allows you to stream the media from a call to a specific\ \ target in realtime. \nThis stream can be used to enable realtime audio analysis\ @@ -2972,7 +2833,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/fork_stop: post: @@ -2989,8 +2850,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Stop forking a call. @@ -3032,7 +2893,80 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json + x-accepts: application/json + /calls/{call_control_id}/actions/gather: + post: + callbacks: + callDtmfReceived: + '{$request.body#/webhook_url}': + post: + operationId: callDtmfReceived_Post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CallDtmfReceivedEvent' + required: true + responses: + "200": + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." + x-callback-request: true + callGatherEnded: + '{$request.body#/webhook_url}': + post: + operationId: callGatherEnded_Post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CallGatherEndedEvent' + required: true + responses: + "200": + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." + x-callback-request: true + description: "Gather DTMF signals to build interactive menus.\n\nYou can pass\ + \ a list of valid digits. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer)\ + \ command must be issued before the `gather` command.\n\n**Expected Webhooks:**\n\ + \n- `call.dtmf.received` (you may receive many of these webhooks)\n- `call.gather.ended`\n" + operationId: callGather + parameters: + - description: Unique identifier and token for controlling the call + explode: false + in: path + name: call_control_id + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GatherRequest' + description: Gather + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/Call_Control_Command_Response' + description: Successful response upon making a call control command. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Gather + tags: + - Call Commands + x-latency-category: interactive + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/gather_stop: post: @@ -3049,8 +2983,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Stop current gather. @@ -3092,7 +3026,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/gather_using_audio: post: @@ -3109,8 +3043,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callPlaybackEnded: '{$request.body#/webhook_url}': @@ -3124,8 +3058,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callDtmfReceived: '{$request.body#/webhook_url}': @@ -3139,8 +3073,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callGatherEnded: '{$request.body#/webhook_url}': @@ -3154,20 +3088,17 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Play an audio file on the call until the required DTMF signals are gathered to build interactive menus. - - You can pass a list of valid digits along with an 'invalid_audio_url', which will be played back at the beginning of each prompt. Playback will be interrupted when a DTMF signal is received. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer) command must be issued before the `gather_using_audio` command. - - **Expected Webhooks:** - - - `call.playback.started` - - `call.playback.ended` - - `call.dtmf.received` (you may receive many of these webhooks) - - `call.gather.ended` + description: "Play an audio file on the call until the required DTMF signals\ + \ are gathered to build interactive menus.\n\nYou can pass a list of valid\ + \ digits along with an 'invalid_audio_url', which will be played back at the\ + \ beginning of each prompt. Playback will be interrupted when a DTMF signal\ + \ is received. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer)\ + \ command must be issued before the `gather_using_audio` command.\n\n**Expected\ + \ Webhooks:**\n\n- `call.playback.started`\n- `call.playback.ended`\n- `call.dtmf.received`\ + \ (you may receive many of these webhooks)\n- `call.gather.ended`\n" operationId: callGatherUsingAudio parameters: - description: Unique identifier and token for controlling the call @@ -3202,7 +3133,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/gather_using_speak: post: @@ -3219,8 +3150,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callGatherEnded: '{$request.body#/webhook_url}': @@ -3234,18 +3165,17 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Convert text to speech and play it on the call until the required DTMF signals are gathered to build interactive menus. - - You can pass a list of valid digits along with an 'invalid_payload', which will be played back at the beginning of each prompt. Speech will be interrupted when a DTMF signal is received. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer) command must be issued before the `gather_using_speak` command. - - **Expected Webhooks:** - - - `call.dtmf.received` (you may receive many of these webhooks) - - `call.gather.ended` + description: "Convert text to speech and play it on the call until the required\ + \ DTMF signals are gathered to build interactive menus.\n\nYou can pass a\ + \ list of valid digits along with an 'invalid_payload', which will be played\ + \ back at the beginning of each prompt. Speech will be interrupted when a\ + \ DTMF signal is received. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer)\ + \ command must be issued before the `gather_using_speak` command.\n\n**Expected\ + \ Webhooks:**\n\n- `call.dtmf.received` (you may receive many of these webhooks)\n\ + - `call.gather.ended`\n" operationId: callGatherUsingSpeak parameters: - description: Unique identifier and token for controlling the call @@ -3280,7 +3210,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/hangup: post: @@ -3297,8 +3227,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callRecordingSaved: '{$request.body#/webhook_url}': @@ -3312,8 +3242,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callRecordingError: '{$request.body#/webhook_url}': @@ -3327,23 +3257,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. - x-callback-request: true - callCost: - '{$request.body#/webhook_url}': - post: - operationId: callCost_Post - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CallCost' - required: true - responses: - "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Hang up the call. @@ -3386,7 +3301,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/leave_queue: post: @@ -3403,8 +3318,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: Removes the call from a queue. operationId: leaveQueue @@ -3422,8 +3337,8 @@ paths: application/json: schema: $ref: '#/components/schemas/LeaveQueueRequest' - description: Removes the call from the queue, the call currently is enqueued - in. + description: "Removes the call from the queue, the call currently is enqueued\ + \ in." required: true responses: "200": @@ -3442,7 +3357,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/playback_start: post: @@ -3459,8 +3374,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callPlaybackEnded: '{$request.body#/webhook_url}': @@ -3474,22 +3389,15 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Play an audio file on the call. If multiple play audio commands are issued consecutively, - the audio files will be placed in a queue awaiting playback. - - *Notes:* - - - When `overlay` is enabled, `target_legs` is limited to `self`. - - A customer cannot Play Audio with `overlay=true` unless there is a Play Audio with `overlay=false` actively playing. - - **Expected Webhooks:** - - - `call.playback.started` - - `call.playback.ended` + description: "Play an audio file on the call. If multiple play audio commands\ + \ are issued consecutively,\nthe audio files will be placed in a queue awaiting\ + \ playback.\n\n*Notes:*\n\n- When `overlay` is enabled, `target_legs` is limited\ + \ to `self`.\n- A customer cannot Play Audio with `overlay=true` unless there\ + \ is a Play Audio with `overlay=false` actively playing.\n\n**Expected Webhooks:**\n\ + \n- `call.playback.started`\n- `call.playback.ended`\n" operationId: callPlaybackStart parameters: - description: Unique identifier and token for controlling the call @@ -3524,7 +3432,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/playback_stop: post: @@ -3541,8 +3449,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callSpeakEnded: '{$request.body#/webhook_url}': @@ -3556,8 +3464,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Stop audio being played on the call. @@ -3599,7 +3507,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/record_pause: post: @@ -3643,7 +3551,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/record_resume: post: @@ -3687,16 +3595,13 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/record_start: post: - description: | - Start recording the call. Recording will stop on call hang-up, or can be initiated via the Stop Recording command. - - **Expected Webhooks:** - - - `call.recording.saved` + description: "Start recording the call. Recording will stop on call hang-up,\ + \ or can be initiated via the Stop Recording command.\n\n**Expected Webhooks:**\n\ + \n- `call.recording.saved`\n" operationId: callRecordStart parameters: - description: Unique identifier and token for controlling the call @@ -3731,7 +3636,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/record_stop: post: @@ -3748,8 +3653,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callRecordingError: '{$request.body#/webhook_url}': @@ -3763,8 +3668,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Stop recording the call. @@ -3806,7 +3711,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/refer: post: @@ -3823,8 +3728,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callReferCompleted: '{$request.body#/webhook_url}': @@ -3838,8 +3743,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callReferFailed: '{$request.body#/webhook_url}': @@ -3853,8 +3758,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Initiate a SIP Refer on a Call Control call. You can initiate a SIP Refer at any point in the duration of a call. @@ -3898,7 +3803,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/reject: post: @@ -3915,8 +3820,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Reject an incoming call. @@ -3958,7 +3863,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/send_dtmf: post: @@ -4002,7 +3907,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/speak: post: @@ -4019,8 +3924,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callSpeakEnded: '{$request.body#/webhook_url}': @@ -4034,16 +3939,13 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Convert text to speech and play it back on the call. If multiple speak text commands are issued consecutively, the audio files will be placed in a queue awaiting playback. - - **Expected Webhooks:** - - - `call.speak.started` - - `call.speak.ended` + description: "Convert text to speech and play it back on the call. If multiple\ + \ speak text commands are issued consecutively, the audio files will be placed\ + \ in a queue awaiting playback.\n\n**Expected Webhooks:**\n\n- `call.speak.started`\n\ + - `call.speak.ended`\n" operationId: callSpeak parameters: - description: Unique identifier and token for controlling the call @@ -4078,7 +3980,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/streaming_start: post: @@ -4095,8 +3997,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callStreamingStopped: '{$request.body#/webhook_url}': @@ -4110,35 +4012,67 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." + x-callback-request: true + callStreamingFailed: + '{$request.body#/webhook_url}': + post: + operationId: callStreamingFailed_Post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CallStreamingFailedEvent' + required: true + responses: + "200": + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: "Start streaming the media from a call to a specific WebSocket\ - \ address in near-realtime. \nAudio will be delivered as base64-encoded RTP\ - \ packets, wrapped in JSON payloads. \n\n**Expected Webhooks:**\n\n- `streaming.started`\n\ - - `streaming.stopped`\n\n**WebSocket events**\n\nWhen the WebSocket connection\ + \ address or Dialogflow connection in near-realtime. Audio will be delivered\ + \ as base64-encoded RTP payload (raw audio), wrapped in JSON payloads. \n\n\ + **Example: Starting a stream to a Websocket address**\n\n The `stream_url`\ + \ param is mandatory.\n\n```\ncurl -X POST \\ \n --header \"Content-Type:\ + \ application/json\" \\ \n --header \"Accept: application/json\" \\ \n --header\ + \ \"Authorization: Bearer YOUR_API_KEY\" \\ \n --data '{\n \"stream_url\"\ + : \"wss://www.example.com/websocket\",\\ \n\"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\"\ + ,\\ \n\"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\" \\ \n}' \\ \n\ + \ https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start\ + \ \n``` \n\n **Example: Starting a stream to a Dialogflow connection** \n\n\ + \ Enable the Dialogflow integration by sending `\"enable_dialogflow\": true`\ + \ in the request. You need to have a Dialogflow connection associated with\ + \ your Call Control application first, [click here for instructions](https://developers.telnyx.com/docs/v2/call-control/tutorials/dialogflow-es).\n\ + ```\ncurl -X POST \\ \n --header \"Content-Type: application/json\" \\ \n\ + \ --header \"Accept: application/json\" \\ \n --header \"Authorization:\ + \ Bearer YOUR_API_KEY\" \\ \n --data '{\n \"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\"\ + , \\ \n\"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\", \\ \n\"enable_dialogflow\"\ + : true \\ \n}' \\ \n https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start\ + \ \n```\n\n**Expected Webhooks:**\n\n- `streaming.started`\n- `streaming.stopped`\n\ + - `streaming.failed`\n\n**WebSocket events**\n\nWhen the WebSocket connection\ \ is established, the following event is being sent over it:\n```\n{\n \"\ event\": \"connected\",\n \"version\": \"1.0.0\"\n}\n```\nAnd when the call\ \ is started, an event which contains information about the encoding and `stream_id`\ \ that identifies a particular stream:\n```\n{\n \"event\": \"start\",\n\ - \ \"sequence_number\": \"1\",\n \"start\": {\n \"user_id\": \"3E6F995F-85F7-4705-9741-53B116D28237\"\ + \ \"sequence_number\": \"1\",\n \"start\": {\n \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\"\ + ,\n \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\"\ + , \n \"client_state\": \"aGF2ZSBhIG5pY2UgZGF5ID1d\",\n \"media_format\"\ + : {\n \"encoding\": \"audio/x-mulaw\",\n \"sample_rate\": 8000,\n\ + \ \"channels\": 1\n }\n },\n \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\"\ + \n}\n```\nThe start event is followed by the following media events that contain\ + \ base64-encoded RTP payload (raw audio, no RTP headers) (:\n```\n{ \n \"\ + event\": \"media\",\n \"sequence_number\": \"4\",\n \"media\": { \n \"\ + track\": \"inbound/outbound\", \n \"chunk\": \"2\",\n \"timestamp\"\ + : \"5\",\n \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\" \n\ + \ },\n \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" \n}\n```\n\ + Please note that the order of events is not guaranteed and the chunk number\ + \ can be used to reorder the events.\n\nWhen the call ends, the stop event\ + \ over WebSockets connection is sent:\n```\n{ \n \"event\": \"stop\",\n \ + \ \"sequence_number\": \"5\",\n \"stop\": {\n \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\"\ ,\n \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\"\ - ,\n \"media_format\": {\n \"encoding\": \"audio/x-mulaw\",\n \ - \ \"sample_rate\": 8000,\n \"channels\": 1\n }\n },\n \"stream_id\"\ - : \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\"\n}\n```\nThe start event is followed\ - \ by the following media events that contain base64-encoded RTP packets as\ - \ their payloads:\n```\n{ \n \"event\": \"media\",\n \"sequence_number\"\ - : \"4\",\n \"media\": { \n \"track\": \"inbound/outbound\", \n \"chunk\"\ - : \"2\",\n \"timestamp\": \"5\",\n \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\"\ - \ \n },\n \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\"\ - \ \n}\n```\nPlease note that the order of events is not guaranteed and the\ - \ chunk number can be used to reorder the events.\n\nWhen the call ends, the\ - \ stop event over WebSockets connection is sent:\n```\n{ \n \"event\": \"\ - stop\",\n \"sequence_number\": \"5\",\n \"stop\": {\n \"user_id\": \"\ - 3E6F995F-85F7-4705-9741-53B116D28237\",\n \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\"\ - \n },\n \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" \n }\n\ + \n },\n \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" \n }\n\ ```\n" - operationId: callStreamingStart parameters: - description: Unique identifier and token for controlling the call explode: false @@ -4172,7 +4106,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/streaming_stop: post: @@ -4189,8 +4123,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Stop streaming a call to a WebSocket. @@ -4232,7 +4166,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/transcription_start: post: @@ -4249,15 +4183,12 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Start real-time transcription. Transcription will stop on call hang-up, or can be initiated via the Transcription stop command. - - **Expected Webhooks:** - - - `call.transcription` + description: "Start real-time transcription. Transcription will stop on call\ + \ hang-up, or can be initiated via the Transcription stop command.\n\n**Expected\ + \ Webhooks:**\n\n- `call.transcription`\n" operationId: callTranscriptionStart parameters: - description: Unique identifier and token for controlling the call @@ -4292,7 +4223,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/transcription_stop: post: @@ -4331,7 +4262,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /calls/{call_control_id}/actions/transfer: post: @@ -4348,8 +4279,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callBridged: '{$request.body#/webhook_url}': @@ -4363,8 +4294,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callAnswered: '{$request.body#/webhook_url}': @@ -4378,8 +4309,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callHangup: '{$request.body#/webhook_url}': @@ -4393,19 +4324,18 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: |- - Transfer a call to a new destination. If the transfer is unsuccessful, a `call.hangup` webhook for the other call (Leg B) will be sent indicating that the transfer could not be completed. The original call will remain active and may be issued additional commands, potentially transfering the call to an alternate destination. - - **Expected Webhooks:** - - - `call.initiated` - - `call.bridged` to Leg B - - `call.answered` or `call.hangup` - - `call.machine.detection.ended` if `answering_machine_detection` was requested - - `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words` + description: "Transfer a call to a new destination. If the transfer is unsuccessful,\ + \ a `call.hangup` webhook for the other call (Leg B) will be sent indicating\ + \ that the transfer could not be completed. The original call will remain\ + \ active and may be issued additional commands, potentially transfering the\ + \ call to an alternate destination.\n\n**Expected Webhooks:**\n\n- `call.initiated`\n\ + - `call.bridged` to Leg B\n- `call.answered` or `call.hangup`\n- `call.machine.detection.ended`\ + \ if `answering_machine_detection` was requested\n- `call.machine.greeting.ended`\ + \ if `answering_machine_detection` was set to `detect_beep`, `greeting_end`\ + \ or `detect_words`" operationId: callTransfer parameters: - description: Unique identifier and token for controlling the call @@ -4440,7 +4370,7 @@ paths: tags: - Call Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /channel_zones: get: @@ -4450,7 +4380,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -4460,7 +4390,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -4473,7 +4403,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Gcb_Channel_Zones_Request_Response' + $ref: '#/components/schemas/getChannelZones_200_response' description: A list of channel zones summary: Get list of channel zones tags: @@ -4524,16 +4454,10 @@ paths: type: string style: simple requestBody: - $ref: '#/components/requestBodies/Update_Channel_Zone' content: application/json: schema: - properties: - channels: - format: int64 - type: integer - title: Update Channel Zone - type: object + $ref: '#/components/schemas/patchGroup_request' description: Quantity of reserved channels required: true responses: @@ -4554,7 +4478,7 @@ paths: - ChannelZones x-codegen-request-body-name: body x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /channel_zones/{channel_zone_id}/channel_zone_phone_numbers: get: @@ -4575,7 +4499,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -4585,7 +4509,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -4598,7 +4522,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Gcb_Phone_Numbers_Request_Response' + $ref: '#/components/schemas/getPhoneNumbers_200_response' description: A list of phone numbers summary: Get the list of phone numbers assigned to a channel zone tags: @@ -4606,9 +4530,9 @@ paths: x-latency-category: interactive x-accepts: application/json post: - description: You should own the phone number being assigned to the channel zone. - Remember that you should reserve channels in this channel zone, otherwise - you won't be able to receive incoming calls. + description: "You should own the phone number being assigned to the channel\ + \ zone. Remember that you should reserve channels in this channel zone, otherwise\ + \ you won't be able to receive incoming calls." operationId: assignPhoneNumber parameters: - description: Channel zone identifier @@ -4620,19 +4544,10 @@ paths: type: string style: simple requestBody: - $ref: '#/components/requestBodies/List_Channel_Zones_by_Phone_Number' content: application/json: schema: - properties: - phone_number: - example: +15554441234 - format: +E.164 - type: string - required: - - phone_number - title: List Channel Zones by Phone Number - type: object + $ref: '#/components/schemas/assignPhoneNumber_request' description: Phone number to assign to the channel zone. The phone number should be in E.164 format. required: true @@ -4654,7 +4569,7 @@ paths: - ChannelZones x-codegen-request-body-name: body x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /channel_zones/{channel_zone_id}/channel_zone_phone_numbers/{phone_number}: delete: @@ -4696,11 +4611,11 @@ paths: get: operationId: listComments parameters: - - description: Record type that the comment relates to i.e number_order, sub_number_order - or number_order_phone_number + - description: "Record type that the comment relates to i.e number_order, sub_number_order\ + \ or number_order_phone_number" explode: true in: query - name: filter[comment_record_type] + name: "filter[comment_record_type]" required: true schema: example: sub_number_order @@ -4709,7 +4624,7 @@ paths: - description: ID of the record the comments relate to explode: true in: query - name: filter[comment_record_id] + name: "filter[comment_record_id]" required: true schema: example: 8ffb3622-7c6b-4ccc-b65f-7a3dc0099576 @@ -4720,7 +4635,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Comments_Response' + $ref: '#/components/schemas/listComments_200_response' description: An array of Comment Responses default: content: @@ -4746,7 +4661,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Comment_Response' + $ref: '#/components/schemas/createComment_200_response' description: A Comment Response default: content: @@ -4758,7 +4673,7 @@ paths: tags: - Number Orders x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /comments/{id}: get: @@ -4777,7 +4692,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Comment_Response' + $ref: '#/components/schemas/createComment_200_response' description: A Comment Response default: content: @@ -4807,7 +4722,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Read_Comment_Response' + $ref: '#/components/schemas/markCommentRead_200_response' description: A Comment Response default: content: @@ -4822,25 +4737,25 @@ paths: x-accepts: application/json /conferences: get: - description: Lists conferences. Conferences are created on demand, and will - expire after all participants have left the conference or after 4 hours regardless - of the number of active participants. Conferences are listed in descending - order by `expires_at`. + description: "Lists conferences. Conferences are created on demand, and will\ + \ expire after all participants have left the conference or after 4 hours\ + \ regardless of the number of active participants. Conferences are listed\ + \ in descending order by `expires_at`." operationId: listConferences parameters: - - description: If present, conferences will be filtered to those with a matching - `name` attribute. Matching is case-sensitive + - description: "If present, conferences will be filtered to those with a matching\ + \ `name` attribute. Matching is case-sensitive" explode: true in: query - name: filter[name] + name: "filter[name]" required: false schema: type: string style: form - - description: If present, conferences will be filtered by status. + - description: "If present, conferences will be filtered by status." explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -4852,7 +4767,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -4862,7 +4777,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -4878,7 +4793,8 @@ paths: $ref: '#/components/schemas/List_Conferences_Response' description: Successful response with a list of conferences. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "422": description: Unprocessable entity summary: List conferences @@ -4901,8 +4817,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantJoined: '{$request.body#/webhook_url}': @@ -4916,8 +4832,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceEnded: '{$request.body#/webhook_url}': @@ -4931,8 +4847,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantLeft: '{$request.body#/webhook_url}': @@ -4946,8 +4862,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceFloorChanged: '{$request.body#/webhook_url}': @@ -4961,20 +4877,16 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Create a conference from an existing call leg using a `call_control_id` and a conference name. Upon creating the conference, the call will be automatically bridged to the conference. Conferences will expire after all participants have left the conference or after 4 hours regardless of the number of active participants. - - **Expected Webhooks:** - - - `conference.created` - - `conference.participant.joined` - - `conference.participant.left` - - `conference.ended` - - `conference.recording.saved` - - `conference.floor.changed` + description: "Create a conference from an existing call leg using a `call_control_id`\ + \ and a conference name. Upon creating the conference, the call will be automatically\ + \ bridged to the conference. Conferences will expire after all participants\ + \ have left the conference or after 4 hours regardless of the number of active\ + \ participants.\n\n**Expected Webhooks:**\n\n- `conference.created`\n- `conference.participant.joined`\n\ + - `conference.participant.left`\n- `conference.ended`\n- `conference.recording.saved`\n\ + - `conference.floor.changed`\n" operationId: createConference requestBody: content: @@ -4991,14 +4903,15 @@ paths: $ref: '#/components/schemas/Conference_Response' description: Successful response with details about a conference. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "422": description: Unprocessable entity summary: Create conference tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{conference_id}/participants: get: @@ -5013,29 +4926,29 @@ paths: schema: type: string style: simple - - description: If present, participants will be filtered to those who are/are - not muted + - description: "If present, participants will be filtered to those who are/are\ + \ not muted" explode: true in: query - name: filter[muted] + name: "filter[muted]" required: false schema: type: boolean style: form - - description: If present, participants will be filtered to those who are/are - not put on hold + - description: "If present, participants will be filtered to those who are/are\ + \ not put on hold" explode: true in: query - name: filter[on_hold] + name: "filter[on_hold]" required: false schema: type: boolean style: form - - description: If present, participants will be filtered to those who are whispering - or are not + - description: "If present, participants will be filtered to those who are whispering\ + \ or are not" explode: true in: query - name: filter[whispering] + name: "filter[whispering]" required: false schema: type: boolean @@ -5043,7 +4956,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -5053,7 +4966,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -5069,9 +4982,10 @@ paths: $ref: '#/components/schemas/List_Participants_Response' description: Successful response with a list of conference participants. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: List conference participants @@ -5101,7 +5015,7 @@ paths: $ref: '#/components/schemas/Conference_Response' description: Successful response with details about a conference. "404": - description: Conference does not exist + description: Fax does not exist summary: Retrieve a conference tags: - Conference Commands @@ -5122,8 +5036,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true callHangup: '{$request.body#/webhook_url}': @@ -5137,8 +5051,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantJoined: '{$request.body#/webhook_url}': @@ -5152,8 +5066,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantLeft: '{$request.body#/webhook_url}': @@ -5167,18 +5081,12 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Dials a phone number and, when the call is answered, automatically joins them into the specified conference. - - **Expected Webhooks:** - - - `call.hangup` - - `call.answered` - - `conference.participant.joined` - - `conference.participant.left` + description: "Dials a phone number and, when the call is answered, automatically\ + \ joins them into the specified conference.\n\n**Expected Webhooks:**\n\n\ + - `call.hangup`\n- `call.answered`\n- `conference.participant.joined`\n- `conference.participant.left`\n" operationId: conferenceDialParticipantIn parameters: - description: Uniquely identifies the conference by id or name @@ -5204,16 +5112,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Dial a new participant into a conference tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/hold: post: @@ -5242,16 +5151,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Hold conference participants tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/join: post: @@ -5268,8 +5178,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantLeft: '{$request.body#/webhook_url}': @@ -5283,8 +5193,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: "Join an existing call leg to a conference. Issue the Join Conference\ \ command with the conference ID in the path and the `call_control_id` of\ @@ -5317,14 +5227,15 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "422": description: Unprocessable entity summary: Join a conference tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/leave: post: @@ -5341,8 +5252,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Removes a call leg from a conference and moves it back to parked state. **Expected Webhooks:** @@ -5373,14 +5284,15 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "422": description: Unprocessable entity summary: Leave a conference tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/mute: post: @@ -5409,16 +5321,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Mute conference participants tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/play: post: @@ -5435,8 +5348,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferencePlaybackEnded: '{$request.body#/webhook_url}': @@ -5450,8 +5363,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantPlaybackStarted: '{$request.body#/webhook_url}': @@ -5465,8 +5378,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantPlaybackEnded: '{$request.body#/webhook_url}': @@ -5480,8 +5393,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: Play audio to all or some participants on a conference call. operationId: conferencePlayAudio @@ -5508,25 +5421,22 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Play audio to conference participants tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/record_start: post: - description: |- - Start recording the conference. Recording will stop on conference end, or via the Stop Recording command. - - **Expected Webhooks:** - - - `conference.recording.saved` + description: "Start recording the conference. Recording will stop on conference\ + \ end, or via the Stop Recording command.\n\n**Expected Webhooks:**\n\n- `conference.recording.saved`" operationId: conferenceStartRecording parameters: - description: Specifies the conference to record by id or name @@ -5551,16 +5461,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Conference recording start tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/record_stop: post: @@ -5577,8 +5488,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: | Stop recording the conference. @@ -5611,16 +5522,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Conference recording stop tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/speak: post: @@ -5637,8 +5549,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceSpeakEnded: '{$request.body#/webhook_url}': @@ -5652,8 +5564,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantSpeakStarted: '{$request.body#/webhook_url}': @@ -5667,8 +5579,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true conferenceParticipantSpeakEnded: '{$request.body#/webhook_url}': @@ -5682,8 +5594,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: Convert text to speech and play it to all or some participants. operationId: conferenceSpeakText @@ -5710,16 +5622,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Speak text to conference participants tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/stop: post: @@ -5736,8 +5649,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true description: Stop audio being played to all or some participants on a conference call. @@ -5765,16 +5678,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Stop audio being played on the conference tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/unhold: post: @@ -5803,16 +5717,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Unhold conference participants tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/unmute: post: @@ -5841,16 +5756,17 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist "422": description: Unprocessable entity summary: Unmute conference participants tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /conferences/{id}/actions/update: post: @@ -5880,14 +5796,15 @@ paths: $ref: '#/components/schemas/Conference_Command_Response' description: Successful response upon making a conference command. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "422": description: Unprocessable entity summary: Update conference participant tags: - Conference Commands x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /connections: get: @@ -5897,7 +5814,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -5907,7 +5824,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -5915,40 +5832,34 @@ paths: minimum: 1 type: integer style: form - - description: If present, connections with connection_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + - description: "If present, connections with connection_name containing\ + \ the given value will be returned. Matching is not case-sensitive. Requires\ + \ at least three characters." explode: true in: query - name: filter[connection_name][contains] + name: "filter[connection_name][contains]" required: false schema: - default: "null" type: string style: form - description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" format: int64 type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -5984,9 +5895,9 @@ paths: x-accepts: application/json /connections/{id}: get: - description: Retrieves the high-level details of an existing connection. To - retrieve specific authentication information, use the endpoint for the specific - connection type. + description: "Retrieves the high-level details of an existing connection. To\ + \ retrieve specific authentication information, use the endpoint for the specific\ + \ connection type." operationId: retrieveConnection parameters: - description: IP Connection ID @@ -6023,7 +5934,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -6033,7 +5944,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -6041,40 +5952,34 @@ paths: minimum: 1 type: integer style: form - - description: If present, connections with connection_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + - description: "If present, connections with connection_name containing\ + \ the given value will be returned. Matching is not case-sensitive. Requires\ + \ at least three characters." explode: true in: query - name: filter[connection_name][contains] + name: "filter[connection_name][contains]" required: false schema: - default: "null" type: string style: form - description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound.outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" format: int64 type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -6133,7 +6038,7 @@ paths: - Credential Connections x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /credential_connections/{id}: delete: @@ -6232,15 +6137,14 @@ paths: tags: - Credential Connections x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /custom_storage_credentials/{connection_id}: delete: description: Deletes a stored custom credentials configuration. operationId: deleteCustomStorageCredentials parameters: - - description: Uniquely identifies a Telnyx application (Call Control, TeXML) - or Sip connection resource. + - description: Uniquely identifies a Telnyx application (Call Control). explode: false in: path name: connection_id @@ -6267,8 +6171,7 @@ paths: description: Returns the information about custom storage credentials. operationId: getCustomStorageCredentials parameters: - - description: Uniquely identifies a Telnyx application (Call Control, TeXML) - or Sip connection resource. + - description: Uniquely identifies a Telnyx application (Call Control). explode: false in: path name: connection_id @@ -6298,8 +6201,7 @@ paths: description: Creates custom storage credentials configuration. operationId: createCustomStorageCredentials parameters: - - description: Uniquely identifies a Telnyx application (Call Control, TeXML) - or Sip connection resource. + - description: Uniquely identifies a Telnyx application (Call Control). explode: false in: path name: connection_id @@ -6326,14 +6228,13 @@ paths: tags: - Call Recordings x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json put: description: Updates a stored custom credentials configuration. operationId: updateCustomStorageCredentials parameters: - - description: Uniquely identifies a Telnyx application (Call Control, TeXML) - or Sip connection resource. + - description: Uniquely identifies a Telnyx application (Call Control). explode: false in: path name: connection_id @@ -6360,7 +6261,204 @@ paths: tags: - Call Recordings x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json + x-accepts: application/json + /customer_service_requests: + get: + description: List customer service requests. + operationId: listCustomerServiceRequests + parameters: + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: "Specifies the sort order for results. If not given, results\ + \ are sorted by created_at in descending order." + explode: true + in: query + name: "sort[]" + required: false + schema: + enum: + - created_at + - -created_at + example: created_at + type: string + style: form + - description: Filters records to those with a specified number. + explode: true + in: query + name: "filter[phone_number][eq]" + required: false + schema: + example: +12441239999 + type: string + style: form + - description: Filters records to those with at least one number in the list. + explode: true + in: query + name: "filter[phone_number][in][]" + required: false + schema: + items: + example: +12441239999 + type: string + type: array + style: form + - description: Filters records to those with a specific status. + explode: true + in: query + name: "filter[status][eq]" + required: false + schema: + enum: + - pending + - completed + - failed + example: pending + type: string + style: form + - description: Filters records to those with a least one status in the list. + explode: true + in: query + name: "filter[status][in][]" + required: false + schema: + items: + enum: + - pending + - completed + - failed + example: pending + type: string + type: array + style: form + - description: Filters records to those created before a specific date. + explode: true + in: query + name: "filter[created_at][lt]" + required: false + schema: + example: 2020-01-01T00:00:00Z + format: date-time + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_200_response' + description: Successful Response + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_401_response' + description: The required authentication headers were either invalid or + not included in the request. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_403_response' + description: You do not have permission to perform the requested action + on the specified resource or resources. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_422_response' + description: Unprocessable entity. Check the 'detail' field in response + for details. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_500_response' + description: An unexpected error occurred. + summary: List customer service requests + tags: + - Customer Service Request + x-latency-category: responsive + x-accepts: application/json + post: + callbacks: + CustomerServiceRequestStatusChanged: + '{$request.body#/webhook_url}': + post: + operationId: customerServiceRequestStatusChanged_Post + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/_customer_service_requests_get_request' + required: true + responses: + "200": + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." + x-callback-request: true + description: Create a new customer service request for the provided phone number. + operationId: createCustomerServiceRequest + requestBody: + $ref: '#/components/requestBodies/CreateCustomerServiceRequest' + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/createCustomerServiceRequest_201_response' + description: Successful Response + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_401_response' + description: The required authentication headers were either invalid or + not included in the request. + "403": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_403_response' + description: You do not have permission to perform the requested action + on the specified resource or resources. + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_422_response' + description: Unprocessable entity. Check the 'detail' field in response + for details. + "500": + content: + application/json: + schema: + $ref: '#/components/schemas/listCustomerServiceRequests_500_response' + description: An unexpected error occurred. + summary: Create a customer service request + tags: + - Customer Service Request + x-latency-category: responsive + x-content-type: application/json x-accepts: application/json /customer_service_requests/phone_number_coverages: post: @@ -6373,60 +6471,40 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Customer_Service_Request_PhoneNumber_Coverage' + $ref: '#/components/schemas/verifyPhoneNumberCoverage_201_response' description: Successful Response "401": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnauthorizedError' - type: array - title: Unauthorized Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_401_response' description: The required authentication headers were either invalid or not included in the request. "403": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/ForbiddenError' - type: array - title: Forbidden Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_403_response' description: You do not have permission to perform the requested action on the specified resource or resources. "422": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnprocessableEntityError' - type: array - title: Unprocessable Enttiy Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_422_response' description: Unprocessable entity. Check the 'detail' field in response for details. "500": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnexpectedError' - type: array - title: Unexpected Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_500_response' description: An unexpected error occurred. summary: Verify CSR phone number coverage tags: - Customer Service Request x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /customer_service_requests/{customer_service_request_id}: get: @@ -6446,52 +6524,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Customer_Service_Request' + $ref: '#/components/schemas/createCustomerServiceRequest_201_response' description: Successful Response "401": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnauthorizedError' - type: array - title: Unauthorized Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_401_response' description: The required authentication headers were either invalid or not included in the request. "403": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/ForbiddenError' - type: array - title: Forbidden Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_403_response' description: You do not have permission to perform the requested action on the specified resource or resources. "404": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/ResourceNotFoundError' - type: array + $ref: '#/components/schemas/getCustomerServiceRequest_404_response' description: Resource not found "500": content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnexpectedError' - type: array - title: Unexpected Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_500_response' description: An unexpected error occurred. summary: Get a customer service request tags: @@ -6500,39 +6559,70 @@ paths: x-accepts: application/json /detail_records: get: - description: Search for any detail record across the Telnyx Platform + description: "Search for any detail record across the Telnyx Platform. Examples\ + \ and additional information found [here](/docs/v2/debugging/detail-record-search)." operationId: DetailRecordsSearch parameters: - - description: Filter by the given record type + - description: Filter by the given record type. examples: filter[record_type]=messaging: summary: Searches for messaging detail records value: messaging + filter[record_type]=verify: + summary: Searches for verify detail records + value: verify explode: true in: query - name: filter[record_type] + name: "filter[record_type]" required: true schema: + enum: + - amd + - conference + - conference-participant + - media_storage + - messaging + - verify + - whatsapp + - whatsapp-conversation + - wireless type: string style: form - - description: Filter by the given user-friendly date range + - description: "Filter by the given user-friendly date range. You can specify\ + \ one of the following enum values, or a dynamic one using this format:\ + \ last_N_days." examples: filter[date_range]=today: summary: Searches for records with timestamp starting at `00:00:00` of the current day value: today - filter[date_range]=last_3_days: - summary: Searches for records with timestamp starting at `00:00:00` since - 3 days ago - value: last_3_days + filter[date_range]=yesterday: + summary: Searches for records with timestamp starting at `00:00:00` of + yesterday + value: yesterday + filter[date_range]=last_month: + summary: Searches for records with timestamp starting at `00:00:00` on + the first day of the month + value: last_month explode: true in: query - name: filter[date_range] + name: "filter[date_range]" required: false schema: + enum: + - yesterday + - today + - tomorrow + - last_week + - this_week + - next_week + - last_month + - this_month + - next_month type: string style: form - - description: Filter records + - description: "Filter records on a given record attribute and value.
Example:\ + \ filter[status]=delivered" examples: filter[created_at][gte]=2021-06-22: summary: Searches for records with `created_at` starting at `2021-06-22` @@ -6567,7 +6657,7 @@ paths: - description: Page number explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -6578,7 +6668,7 @@ paths: - description: Page size explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -6587,7 +6677,7 @@ paths: minimum: 1 type: integer style: form - - description: Specifies the sort order for results + - description: "Specifies the sort order for results.
Example: sort=-created_at" examples: sort=created_at: summary: Sorts search results using the `created_at` date-time in ascending @@ -6620,6 +6710,134 @@ paths: - Detail Records x-latency-category: interactive x-accepts: application/json + /dialogflow_connections/{connection_id}: + delete: + description: Deletes a stored Dialogflow Connection. + operationId: deleteDialogflowConnection + parameters: + - description: Uniquely identifies a Telnyx application (Call Control). + explode: false + in: path + name: connection_id + required: true + schema: + type: string + style: simple + responses: + "204": + description: The Dialogflow Connection for connection_id was deleted successfully. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Delete stored Dialogflow Connection + tags: + - Dialogflow Integration + x-latency-category: responsive + x-accepts: application/json + get: + description: Return details of the Dialogflow connection associated with the + given CallControl connection. + operationId: getDialogflowConnection + parameters: + - description: Uniquely identifies a Telnyx application (Call Control). + explode: false + in: path + name: connection_id + required: true + schema: + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DialogflowConnectionResponse' + description: Return details of the Dialogflow connection associated with + the given CallControl connection. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve stored Dialogflow Connection + tags: + - Dialogflow Integration + x-latency-category: responsive + x-accepts: application/json + post: + description: "Save Dialogflow Credentiails to Telnyx, so it can be used with\ + \ other Telnyx services." + operationId: createDialogflowConnection + parameters: + - description: Uniquely identifies a Telnyx application (Call Control). + explode: false + in: path + name: connection_id + required: true + schema: + type: string + style: simple + requestBody: + $ref: '#/components/requestBodies/DialogflowConnectionRequest' + responses: + "201": + content: + application/json: + schema: + $ref: '#/components/schemas/DialogflowConnectionResponse' + description: Return details of the Dialogflow connection associated with + the given CallControl connection. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Create a Dialogflow Connection + tags: + - Dialogflow Integration + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + put: + description: Updates a stored Dialogflow Connection. + operationId: updateDialogflowConnection + parameters: + - description: Uniquely identifies a Telnyx application (Call Control). + explode: false + in: path + name: connection_id + required: true + schema: + type: string + style: simple + requestBody: + $ref: '#/components/requestBodies/DialogflowConnectionRequest' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/DialogflowConnectionResponse' + description: Return details of the Dialogflow connection associated with + the given CallControl connection. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Update stored Dialogflow Connection + tags: + - Dialogflow Integration + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json /document_links: get: description: List all documents links ordered by created_at descending. @@ -6628,7 +6846,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -6638,7 +6856,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -6649,7 +6867,7 @@ paths: - description: Identifies the associated document to filter on. explode: true in: query - name: filter[document_id] + name: "filter[document_id]" required: false schema: example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -6659,7 +6877,7 @@ paths: - description: The `linked_record_type` of the document to filter on. explode: true in: query - name: filter[linked_record_type] + name: "filter[linked_record_type]" required: false schema: example: porting_order @@ -6668,7 +6886,7 @@ paths: - description: The `linked_resource_id` of the document to filter on. explode: true in: query - name: filter[linked_resource_id] + name: "filter[linked_resource_id]" required: false schema: example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -6680,7 +6898,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Doc_Service_Document_Links_Response' + $ref: '#/components/schemas/listDocumentLinks_200_response' description: Successful response default: content: @@ -6701,7 +6919,7 @@ paths: - description: Filter by string matching part of filename. explode: true in: query - name: filter[filename][contains] + name: "filter[filename][contains]" required: false schema: example: invoice @@ -6710,7 +6928,7 @@ paths: - description: Filter documents by a customer references. explode: true in: query - name: filter[customer_reference][eq] + name: "filter[customer_reference][eq]" required: false schema: example: MY REF 001 @@ -6719,7 +6937,7 @@ paths: - description: Filter documents by a list of customer references. explode: true in: query - name: filter[customer_reference][in][] + name: "filter[customer_reference][in][]" required: false schema: example: MY REF 001 @@ -6728,7 +6946,7 @@ paths: - description: Filter by created at greater than provided value. explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: description: ISO 8601 formatted date-time indicating when the resource was @@ -6739,7 +6957,7 @@ paths: - description: Filter by created at less than provided value. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: description: ISO 8601 formatted date-time indicating when the resource was @@ -6747,12 +6965,12 @@ paths: example: 2021-04-09T22:25:27.521Z type: string style: form - - description: Specifies the sort order for results. If you want to sort by - a field in ascending order, include it as a sort parameter. If you want - to sort in descending order, prepend a `-` in front of the field name. + - description: "Specifies the sort order for results. If you want to sort by\ + \ a field in ascending order, include it as a sort parameter. If you want\ + \ to sort in descending order, prepend a `-` in front of the field name." explode: true in: query - name: sort[] + name: "sort[]" required: false schema: enum: @@ -6765,7 +6983,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -6775,7 +6993,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -6788,7 +7006,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Doc_Service_Documents_Resposne' + $ref: '#/components/schemas/listDocuments_200_response' description: Successful response default: content: @@ -6819,7 +7037,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doc_Service_Document_Response' + $ref: '#/components/schemas/createDocument_200_response' description: Successful response "422": content: @@ -6838,22 +7056,21 @@ paths: tags: - Documents x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /documents/{id}: delete: - description: Delete a document.

A document can only be deleted if - it's not linked to a service. If it is linked to a service, it must be unlinked - prior to deleting. + description: "Delete a document.

A document can only be deleted if\ + \ it's not linked to a service. If it is linked to a service, it must be unlinked\ + \ prior to deleting." operationId: deleteDocument parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -6862,7 +7079,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doc_Service_Document_Response' + $ref: '#/components/schemas/createDocument_200_response' description: Successful response default: content: @@ -6879,13 +7096,12 @@ paths: description: Retrieve a document. operationId: retrieveDocument parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -6894,7 +7110,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doc_Service_Document_Response' + $ref: '#/components/schemas/createDocument_200_response' description: Successful response default: content: @@ -6911,13 +7127,12 @@ paths: description: Update a document. operationId: updateDocument parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -6932,7 +7147,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doc_Service_Document_Response' + $ref: '#/components/schemas/createDocument_200_response' description: Successful response default: content: @@ -6944,20 +7159,19 @@ paths: tags: - Documents x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /documents/{id}/download: get: description: Download a document. operationId: downloadDocServiceDocument parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -6967,7 +7181,6 @@ paths: '*': schema: format: binary - title: Download Doc Service Documents Response type: string description: Successful response default: @@ -6989,7 +7202,7 @@ paths: - description: Filter by status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -7001,7 +7214,7 @@ paths: - description: Filter by country code. explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: type: string @@ -7009,7 +7222,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -7019,7 +7232,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -7032,7 +7245,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Dynamic_Emergency_Addresses' + $ref: '#/components/schemas/listDyanmicEmergencyAddresses_200_response' description: Dynamic Emergency Address Responses "401": description: Unauthorized @@ -7059,7 +7272,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Address_Response' + $ref: '#/components/schemas/createDyanmicEmergencyAddress_201_response' description: Dynamic Emergency Address Response "401": description: Unauthorized @@ -7071,7 +7284,7 @@ paths: tags: - Dynamic Emergency Addresses x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /dynamic_emergency_addresses/{id}: delete: @@ -7092,7 +7305,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Address_Response' + $ref: '#/components/schemas/createDyanmicEmergencyAddress_201_response' description: Dynamic Emergency Address Response "401": description: Unauthorized @@ -7123,7 +7336,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Address_Response' + $ref: '#/components/schemas/createDyanmicEmergencyAddress_201_response' description: Dynamic Emergency Address Response "401": description: Unauthorized @@ -7144,7 +7357,7 @@ paths: - description: Filter by status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -7156,7 +7369,7 @@ paths: - description: Filter by country code. explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: type: string @@ -7164,7 +7377,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -7174,7 +7387,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -7187,7 +7400,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Dynamic_Emergency_Endpoints' + $ref: '#/components/schemas/listDyanmicEmergencyEndpoints_200_response' description: Dynamic Emergency Endpoints Responses "401": description: Unauthorized @@ -7214,7 +7427,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Endpoint_Response' + $ref: '#/components/schemas/createDyanmicEmergencyEndpoint_201_response' description: Dynamic Emergency Endpoint Response "401": description: Unauthorized @@ -7226,7 +7439,7 @@ paths: tags: - Dynamic Emergency Endpoints x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /dynamic_emergency_endpoints/{id}: delete: @@ -7247,7 +7460,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Endpoint_Response' + $ref: '#/components/schemas/createDyanmicEmergencyEndpoint_201_response' description: Dynamic Emergency Endpoint Response "401": description: Unauthorized @@ -7278,7 +7491,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Endpoint_Response' + $ref: '#/components/schemas/createDyanmicEmergencyEndpoint_201_response' description: Dynamic Emergency Endpoint Response "401": description: Unauthorized @@ -7302,7 +7515,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -7312,7 +7525,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -7320,12 +7533,12 @@ paths: minimum: 1 type: integer style: form - - description: If present, applications with application_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + - description: "If present, applications with application_name\ + \ containing the given value will be returned. Matching is not case-sensitive.\ + \ Requires at least three characters." explode: true in: query - name: filter[application_name][contains] + name: "filter[application_name][contains]" required: false schema: default: "null" @@ -7334,26 +7547,21 @@ paths: - description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" format: int64 type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -7387,10 +7595,10 @@ paths: x-latency-category: responsive x-accepts: application/json post: - description: Creates a new Fax Application based on the parameters sent in the - request. The application name and webhook URL are required. Once created, - you can assign phone numbers to your application using the `/phone_numbers` - endpoint. + description: "Creates a new Fax Application based on the parameters sent in\ + \ the request. The application name and webhook URL are required. Once created,\ + \ you can assign phone numbers to your application using the `/phone_numbers`\ + \ endpoint." operationId: CreateFaxApplication parameters: [] requestBody: @@ -7414,7 +7622,7 @@ paths: - Programmable Fax Applications x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /fax_applications/{id}: delete: @@ -7522,17 +7730,18 @@ paths: tags: - Programmable Fax Applications x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /faxes: get: + description: "" operationId: ListFaxes parameters: - description: ISO 8601 date time for filtering faxes created after or on that date explode: true in: query - name: filter[created_at][gte] + name: "filter[created_at][gte]" required: false schema: example: 2020-02-02T22:25:27.521992Z @@ -7542,7 +7751,7 @@ paths: - description: ISO 8601 date time for filtering faxes created after that date explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: example: 2020-02-02T22:25:27.521992Z @@ -7553,7 +7762,7 @@ paths: before that date explode: true in: query - name: filter[created_at][lte] + name: "filter[created_at][lte]" required: false schema: example: 2020-02-02T22:25:27.521992Z @@ -7564,28 +7773,28 @@ paths: that date explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: example: 2020-02-02T22:25:27.521992Z format: date-time type: string style: form - - description: The direction, inbound or outbound, for filtering faxes sent - from this account + - description: "The direction, inbound or outbound, for filtering faxes sent\ + \ from this account" explode: true in: query - name: filter[direction][eq] + name: "filter[direction][eq]" required: false schema: example: inbound type: string style: form - - description: The phone number, in E.164 format for filtering faxes sent from - this number + - description: "The phone number, in E.164 format for filtering faxes sent from\ + \ this number" explode: true in: query - name: filter[from][eq] + name: "filter[from][eq]" required: false schema: example: +13127367276 @@ -7594,7 +7803,7 @@ paths: - description: Number of fax resourcxes for the single page returned explode: true in: query - name: page[size] + name: "page[size]" required: false schema: example: 2 @@ -7603,7 +7812,7 @@ paths: - description: Number of the page to be retrieved explode: true in: query - name: page[number] + name: "page[number]" required: false schema: example: 2 @@ -7641,8 +7850,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true fax.media.processed: '{$response.body#/data/webhook_url}': @@ -7656,8 +7865,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true fax.sending.started: '{$response.body#/data/webhook_url}': @@ -7671,8 +7880,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true fax.delivered: '{$response.body#/data/webhook_url}': @@ -7686,8 +7895,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true fax.failed: '{$response.body#/data/webhook_url}': @@ -7701,9 +7910,14 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true + description: "Send a fax. Files have size limits and page count limit validations.\ + \ If a file is bigger than 50MB or has more than 350 pages it will fail with\ + \ `file_size_limit_exceeded` and `page_count_limit_exceeded` respectively.\ + \ \n\n**Expected Webhooks:**\n\n- `fax.queued`\n- `fax.media.processed`\n\ + - `fax.sending.started`\n- `fax.delivered`\n- `fax.failed`\n" operationId: SendFax requestBody: content: @@ -7732,7 +7946,7 @@ paths: tags: - Programmable Fax Commands x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /faxes/{id}: delete: @@ -7791,6 +8005,43 @@ paths: - Programmable Fax Commands x-latency-category: responsive x-accepts: application/json + /faxes/{id}/actions/cancel: + post: + description: "Cancel the outbound fax that is in one of the following states:\ + \ `queued`, `media.processed`, `originated` or `sending` " + operationId: CancelFax + parameters: + - description: The unique identifier of a fax. + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/Successful_response_upon_accepting_cancel_fax_command' + description: Successful response upon accepting cancel fax command + "404": + description: Fax does not exist + "422": + description: Unprocessable entity + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Cancel a fax + tags: + - Programmable Fax Commands + x-latency-category: responsive + x-accepts: application/json /faxes/{id}/actions/refresh: post: description: Refreshes the inbound fax's media_url when it has expired @@ -7813,7 +8064,7 @@ paths: $ref: '#/components/schemas/Refresh_Fax_Response' description: Refresh fax response "404": - description: Conference does not exist + description: Fax does not exist default: content: application/json: @@ -7833,7 +8084,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -7843,7 +8094,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -7851,30 +8102,24 @@ paths: minimum: 1 type: integer style: form - - description: If present, connections with connection_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + - description: "If present, connections with connection_name containing\ + \ the given value will be returned. Matching is not case-sensitive. Requires\ + \ at least three characters." explode: true in: query - name: filter[connection_name][contains] + name: "filter[connection_name][contains]" required: false schema: - default: "null" type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -7933,7 +8178,7 @@ paths: - FQDN Connections x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /fqdn_connections/{id}: delete: @@ -8032,7 +8277,7 @@ paths: tags: - FQDN Connections x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /fqdns: get: @@ -8042,7 +8287,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -8052,7 +8297,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -8063,7 +8308,7 @@ paths: - description: ID of the FQDN connection to which the FQDN belongs. explode: true in: query - name: filter[connection_id] + name: "filter[connection_id]" required: false schema: type: string @@ -8071,7 +8316,7 @@ paths: - description: FQDN represented by the resource. explode: true in: query - name: filter[fqdn] + name: "filter[fqdn]" required: false schema: example: example.com @@ -8080,7 +8325,7 @@ paths: - description: Port to use when connecting to the FQDN. explode: true in: query - name: filter[port] + name: "filter[port]" required: false schema: example: 5060 @@ -8089,7 +8334,7 @@ paths: - description: DNS record type used by the FQDN. explode: true in: query - name: filter[dns_record_type] + name: "filter[dns_record_type]" required: false schema: example: a @@ -8137,7 +8382,7 @@ paths: - FQDNs x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /fqdns/{id}: delete: @@ -8234,19 +8479,19 @@ paths: tags: - FQDNs x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /inventory_coverage: get: - description: Creates an inventory coverage request. If locality, npa or national_destination_code - is used in groupBy, and no region or locality filters are used, the whole - paginated set is returned. + description: "Creates an inventory coverage request. If locality, npa or national_destination_code\ + \ is used in groupBy, and no region or locality filters are used, the whole\ + \ paginated set is returned." operationId: createInventoryCoverageRequest parameters: - example: 318 explode: true in: query - name: filter[npa] + name: "filter[npa]" required: false schema: description: Filter by npa @@ -8255,7 +8500,7 @@ paths: - example: 202 explode: true in: query - name: filter[nxx] + name: "filter[nxx]" required: false schema: description: Filter by nxx @@ -8264,7 +8509,7 @@ paths: - example: LA explode: true in: query - name: filter[administrative_area] + name: "filter[administrative_area]" required: false schema: description: Filter by administrative area @@ -8273,7 +8518,7 @@ paths: - example: local explode: true in: query - name: filter[phone_number_type] + name: "filter[phone_number_type]" required: false schema: description: Filter by phone number type @@ -8289,7 +8534,7 @@ paths: - example: US explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: description: Filter by country. Defaults to US @@ -8302,7 +8547,7 @@ paths: - example: "true" explode: true in: query - name: filter[count] + name: "filter[count]" required: false schema: description: Include count in the result @@ -8311,7 +8556,7 @@ paths: - example: nxx explode: true in: query - name: filter[groupBy] + name: "filter[groupBy]" required: true schema: description: Filter to group results @@ -8326,7 +8571,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Inventory_Coverage_Response' + $ref: '#/components/schemas/createInventoryCoverageRequest_200_response' description: Successful response with a list of inventory coverage levels default: content: @@ -8347,7 +8592,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -8357,7 +8602,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -8365,40 +8610,34 @@ paths: minimum: 1 type: integer style: form - - description: If present, connections with connection_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + - description: "If present, connections with connection_name containing\ + \ the given value will be returned. Matching is not case-sensitive. Requires\ + \ at least three characters." explode: true in: query - name: filter[connection_name][contains] + name: "filter[connection_name][contains]" required: false schema: - default: "null" type: string style: form - description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound.outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" format: int64 type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -8457,7 +8696,7 @@ paths: - IP Connections x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /ip_connections/{id}: delete: @@ -8556,7 +8795,7 @@ paths: tags: - IP Connections x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /ips: get: @@ -8566,7 +8805,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -8576,7 +8815,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -8587,7 +8826,7 @@ paths: - description: ID of the IP Connection to which this IP should be attached. explode: true in: query - name: filter[connection_id] + name: "filter[connection_id]" required: false schema: type: string @@ -8595,7 +8834,7 @@ paths: - description: IP adddress represented by this resource. explode: true in: query - name: filter[ip_address] + name: "filter[ip_address]" required: false schema: example: 192.168.0.0 @@ -8604,7 +8843,7 @@ paths: - description: Port to use when connecting to this IP. explode: true in: query - name: filter[port] + name: "filter[port]" required: false schema: example: 5060 @@ -8652,7 +8891,7 @@ paths: - IPs x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /ips/{id}: delete: @@ -8749,7 +8988,7 @@ paths: tags: - IPs x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /ledger_billing_group_reports: post: @@ -8766,7 +9005,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Ledger_Billing_Group_Report_Response' + $ref: '#/components/schemas/createLedgerBillingGroupReport_200_response' description: Expected ledger billing group report response to a valid request default: content: @@ -8778,7 +9017,7 @@ paths: tags: - Reports x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /ledger_billing_group_reports/{id}: get: @@ -8798,7 +9037,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Ledger_Billing_Group_Report_Response' + $ref: '#/components/schemas/createLedgerBillingGroupReport_200_response' description: Expected ledger billing group report response to a valid request default: content: @@ -8820,7 +9059,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -8830,7 +9069,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -8838,39 +9077,34 @@ paths: minimum: 1 type: integer style: form - - description: If present, email containing the given value will be returned. - Matching is not case-sensitive. Requires at least three characters. + - description: "If present, email containing the given value will be returned.\ + \ Matching is not case-sensitive. Requires at least three characters." explode: true in: query - name: filter[email][contains] + name: "filter[email][contains]" required: false schema: default: "null" type: string style: form - - description: If present, only returns results with the email - matching exactly the value given. + - description: "If present, only returns results with the email\ + \ matching exactly the value given." explode: true in: query - name: filter[email][eq] + name: "filter[email][eq]" required: false schema: default: "null" type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
\ + \ If not given, results are sorted by created_at in descending\ + \ order." explode: true in: query name: sort @@ -8883,15 +9117,26 @@ paths: example: email type: string style: form + - description: Specifies if cancelled accounts should be included in the results. + explode: true + in: query + name: include_cancelled_accounts + required: false + schema: + default: false + example: true + type: boolean + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/List_Managed_Accounts_Response' + $ref: '#/components/schemas/listManagedAccounts_200_response' description: Successful response with a list of managed accounts. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. summary: Lists accounts managed by the current user. tags: - Managed Accounts @@ -8915,16 +9160,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Managed_Account_Response' + $ref: '#/components/schemas/createManagedAccount_200_response' description: Successful response with information about a single managed account. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "422": content: application/json: schema: - $ref: '#/components/schemas/Unprocessable_Managed_Account_Entity' + $ref: '#/components/schemas/createManagedAccount_422_response' description: Unprocessable entity. Check the 'detail' field in response for details. summary: Create a new managed account. @@ -8932,7 +9178,7 @@ paths: - Managed Accounts x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /managed_accounts/{id}: get: @@ -8952,11 +9198,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Managed_Account_Response' + $ref: '#/components/schemas/createManagedAccount_200_response' description: Successful response with information about a single managed account. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found summary: Retrieve a managed account @@ -8988,32 +9235,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Managed_Account_Response' + $ref: '#/components/schemas/createManagedAccount_200_response' description: Successful response with information about a single managed account. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found "422": content: application/json: schema: - $ref: '#/components/schemas/Unprocessable_Managed_Account_Entity' + $ref: '#/components/schemas/createManagedAccount_422_response' description: Unprocessable entity. Check the 'detail' field in response for details. summary: Update a managed account tags: - Managed Accounts x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /managed_accounts/{id}/actions/disable: post: - description: Disables a managed account, forbidding it to use Telnyx services, - including sending or receiving phone calls and SMS messages. Ongoing phone - calls will not be affected. The managed account and its sub-users will still - be able to log in via the mission control portal. + description: "Disables a managed account, forbidding it to use Telnyx services,\ + \ including sending or receiving phone calls and SMS messages. Ongoing phone\ + \ calls will not be affected. The managed account and its sub-users will still\ + \ be able to log in via the mission control portal." operationId: disableManagedAccount parameters: - description: Managed Account User ID @@ -9029,18 +9277,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Managed_Account_Response' + $ref: '#/components/schemas/createManagedAccount_200_response' description: Successful response with information about a single managed account. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found "422": content: application/json: schema: - $ref: '#/components/schemas/Unprocessable_Managed_Account_Entity' + $ref: '#/components/schemas/createManagedAccount_422_response' description: Unprocessable entity. Check the 'detail' field in response for details. summary: Disables a managed account @@ -9066,18 +9315,19 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Managed_Account_Response' + $ref: '#/components/schemas/createManagedAccount_200_response' description: Successful response with information about a single managed account. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": description: Resource not found "422": content: application/json: schema: - $ref: '#/components/schemas/Unprocessable_Managed_Account_Entity' + $ref: '#/components/schemas/createManagedAccount_422_response' description: Unprocessable entity. Check the 'detail' field in response for details. summary: Enables a managed account @@ -9093,7 +9343,7 @@ paths: - description: Filters files by given content types explode: true in: query - name: filter[content_type][] + name: "filter[content_type][]" required: false schema: example: application_xml @@ -9148,7 +9398,7 @@ paths: tags: - Media Storage API x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /media/{media_name}: delete: @@ -9246,7 +9496,7 @@ paths: tags: - Media Storage API x-latency-category: interactive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /media/{media_name}/download: get: @@ -9267,7 +9517,6 @@ paths: '*/*': schema: format: binary - title: Media Download Response type: string description: A response describing a media resource default: @@ -9296,15 +9545,13 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true - description: | - Send a message with a Phone Number, Alphanumeric Sender ID, Short Code or Number Pool. - - This endpoint allows you to send a message with any messaging resource. - Current messaging resources include: long-code, short-code, number-pool, and - alphanumeric-sender-id. + description: "Send a message with a Phone Number, Alphanumeric Sender ID, Short\ + \ Code or Number Pool.\n\nThis endpoint allows you to send a message with\ + \ any messaging resource.\nCurrent messaging resources include: long-code,\ + \ short-code, number-pool, and\nalphanumeric-sender-id.\n" operationId: createMessage requestBody: content: @@ -9329,7 +9576,7 @@ paths: tags: - Messages x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /messages/long_code: post: @@ -9346,8 +9593,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true operationId: createLongCodeMessage requestBody: @@ -9373,7 +9620,7 @@ paths: tags: - Messages x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /messages/number_pool: post: @@ -9390,8 +9637,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true operationId: createNumberPoolMessage requestBody: @@ -9417,7 +9664,7 @@ paths: tags: - Messages x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /messages/short_code: post: @@ -9434,8 +9681,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true operationId: createShortCodeMessage requestBody: @@ -9461,13 +9708,13 @@ paths: tags: - Messages x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /messages/{id}: get: - description: 'Note: This API endpoint can only retrieve messages that are no - older than 10 days since their creation. If you require messages older than - this, please generate an [MDR report.](https://developers.telnyx.com/docs/api/v1/reports/MDR-Reports)' + description: "Note: This API endpoint can only retrieve messages that are no\ + \ older than 10 days since their creation. If you require messages older than\ + \ this, please generate an [MDR report.](https://developers.telnyx.com/docs/api/v1/reports/MDR-Reports)" operationId: retrieveMessage parameters: - description: The id of the message @@ -9504,7 +9751,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -9514,7 +9761,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -9568,7 +9815,7 @@ paths: tags: - Messaging Hosted Number x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /messaging_hosted_number_orders/{id}: get: @@ -9644,7 +9891,7 @@ paths: tags: - Messaging Hosted Number x-latency-category: responsive - x-contentType: multipart/form-data + x-content-type: multipart/form-data x-accepts: application/json /messaging_hosted_numbers/{id}: delete: @@ -9683,7 +9930,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -9693,7 +9940,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -9752,7 +9999,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -9762,7 +10009,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -9804,8 +10051,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true deliveryUpdate: '{$request.body#/webhook_url}': @@ -9819,8 +10066,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true replacedLinkClick: '{$request.body#/webhook_url}': @@ -9834,8 +10081,8 @@ paths: required: true responses: "200": - description: The server must return an HTTP 200, otherwise we will - reattempt delivery at the failover webhook URL. + description: "The server must return an HTTP 200, otherwise we will\ + \ reattempt delivery at the failover webhook URL." x-callback-request: true operationId: createMessagingProfile requestBody: @@ -9863,7 +10110,7 @@ paths: - Messaging Profiles x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /messaging_profiles/{id}: delete: @@ -9962,7 +10209,7 @@ paths: tags: - Messaging Profiles x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /messaging_profiles/{id}/metrics: get: @@ -10020,7 +10267,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10030,7 +10277,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10074,7 +10321,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10084,7 +10331,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10128,7 +10375,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10138,7 +10385,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10165,357 +10412,20 @@ paths: x-group-parameters: "true" x-latency-category: responsive x-accepts: application/json - /mobile_applications: - get: - description: Retrieves all mobile applications for a user - operationId: getAllMobileApplications - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/MobileApplicationResponse' - type: array - description: Mobile application created - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Resource not found - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Retrieves mobile applications - tags: - - Mobile Applications - x-latency-category: responsive - x-accepts: application/json - post: - description: Creates a new mobile application which can be android or ios based - on the `type` parameter - operationId: addMobileApplication - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateMobileApplicationRequest' - description: Mobile application parameters that need to be sent in the request - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MobileApplicationResponse' - description: Mobile application created - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Adds a mobile application - tags: - - Mobile Applications - x-latency-category: responsive - x-contentType: application/json - x-accepts: application/json - /mobile_applications/{mobile_application_id}: - delete: - description: Deletes a mobile application based on the given `id` - operationId: deleteMobileApplicationById - parameters: - - description: The unique identifier of a mobile application - explode: false - in: path - name: mobile_application_id - required: true - schema: - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - format: uuid - type: string - style: simple - responses: - "204": - description: The mobile application was deleted successfully - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Resource not found - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Deletes a mobile application - tags: - - Mobile Applications - x-latency-category: responsive - x-accepts: application/json - get: - description: Retrieves a mobile application based on the given `id` - operationId: getMobileApplicationById - parameters: - - description: The unique identifier of a mobile application - explode: false - in: path - name: mobile_application_id - required: true - schema: - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - format: uuid - type: string - style: simple - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MobileApplicationResponse' - description: Successful get mobile application response - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Resource not found - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Retrieves a given mobile application - tags: - - Mobile Applications - x-latency-category: responsive - x-accepts: application/json - patch: - description: Updates a mobile application based on the given `id` - operationId: updateMobileApplicationById - parameters: - - description: The unique identifier of a mobile application - explode: false - in: path - name: mobile_application_id - required: true - schema: - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateMobileApplicationRequest' - description: Mobile application parameters that need to be sent in the request - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/MobileApplicationResponse' - description: The modile application was updated successfully - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Resource not found - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Updates a mobile application - tags: - - Mobile Applications - x-latency-category: responsive - x-contentType: application/json - x-accepts: application/json - /mobile_applications/{mobile_application_id}/push_credentials: - get: - description: Retrieves push credentials for a given mobile application based - on filters for a user - operationId: getPushCredentials - parameters: - - description: The unique identifier of a mobile application - explode: false - in: path - name: mobile_application_id - required: true - schema: - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - format: uuid - type: string - style: simple - - description: ISO 8601 date for filtering credentials created on that date - explode: true - in: query - name: filter[created_at][eq] - required: false - schema: - example: 2021-04-25 - format: date - type: string - style: form - - description: ISO 8601 date for filtering credentials created after that date - explode: true - in: query - name: filter[created_at][gte] - required: false - schema: - example: 2021-04-25 - format: date - type: string - style: form - - description: ISO 8601 date for filtering credentials created before that date - explode: true - in: query - name: filter[created_at][lte] - required: false - schema: - example: 2021-04-25 - format: date - type: string - style: form - - description: Unique push credential alias - explode: true - in: query - name: filter[alias] - required: false - schema: - example: LucyCredential - type: string - style: form - responses: - "200": - content: - application/json: - schema: - items: - $ref: '#/components/schemas/PushCredentialResponse' - type: array - description: Mobile application created - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Retrieves push credentials associated to a mobile application - tags: - - Push Credentials - x-latency-category: responsive - x-accepts: application/json - post: - description: Creates a new credential for a given mobile application - operationId: addPushCredential - parameters: - - description: The unique identifier of a mobile application - explode: false - in: path - name: mobile_application_id - required: true - schema: - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - format: uuid - type: string - style: simple - requestBody: - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/CreateIosPushCredentialRequest' - - $ref: '#/components/schemas/CreateAndroidPushCredentialRequest' - description: Push credential parameters that need to be sent in the request - required: true - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/PushCredentialResponse' - description: Push credential created - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "422": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Adds push credential to a given mobile application - tags: - - Mobile Applications - x-latency-category: responsive - x-contentType: application/json - x-accepts: application/json /mobile_operator_networks: get: - description: Telnyx has a set of GSM mobile operators partners that are available - through our mobile network roaming. This resource is entirely managed by Telnyx - and may change over time. That means that this resource won't allow any write - operations for it. Still, it's available so it can be used as a support resource - that can be related to other resources or become a configuration option. + description: "Telnyx has a set of GSM mobile operators partners that are available\ + \ through our mobile network roaming. This resource is entirely managed by\ + \ Telnyx and may change over time. That means that this resource won't allow\ + \ any write operations for it. Still, it's available so it can be used as\ + \ a support resource that can be related to other resources or become a configuration\ + \ option." operationId: MobileOperatorNetworksGet parameters: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10525,7 +10435,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10536,7 +10446,7 @@ paths: - description: Filter by name starting with. explode: true in: query - name: filter[name][starts_with] + name: "filter[name][starts_with]" required: false schema: example: AT @@ -10545,7 +10455,7 @@ paths: - description: Filter by name containing match. explode: true in: query - name: filter[name][contains] + name: "filter[name][contains]" required: false schema: example: T&T @@ -10554,7 +10464,7 @@ paths: - description: Filter by name ending with. explode: true in: query - name: filter[name][ends_with] + name: "filter[name][ends_with]" required: false schema: example: T @@ -10563,7 +10473,7 @@ paths: - description: Filter by exact country_code. explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: example: US @@ -10572,7 +10482,7 @@ paths: - description: Filter by exact MCC. explode: true in: query - name: filter[mcc] + name: "filter[mcc]" required: false schema: example: "310" @@ -10581,7 +10491,7 @@ paths: - description: Filter by exact MNC. explode: true in: query - name: filter[mnc] + name: "filter[mnc]" required: false schema: example: "410" @@ -10590,7 +10500,7 @@ paths: - description: Filter by exact TADIG. explode: true in: query - name: filter[tadig] + name: "filter[tadig]" required: false schema: example: USACG @@ -10601,7 +10511,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Search_Mobile_Operator_Networks_Response' + $ref: '#/components/schemas/MobileOperatorNetworksGet_200_response' description: Successful response default: content: @@ -10614,6 +10524,465 @@ paths: - Mobile Operator Networks x-latency-category: responsive x-accepts: application/json + /mobile_push_credentials: + get: + description: List mobile push credentials + operationId: listPushCredentials + parameters: + - description: type of mobile push credentials + explode: true + in: query + name: "filter[type]" + required: false + schema: + enum: + - ios + - android + example: ios + type: string + style: form + - description: Unique mobile push credential alias + explode: true + in: query + name: "filter[alias]" + required: false + schema: + example: LucyCredential + type: string + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/responses/ListPushCredentialsResponse' + description: Mobile mobile push credentials + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unauthorized request + summary: List mobile push credentials + tags: + - Push Credentials + x-latency-category: responsive + x-accepts: application/json + post: + description: Creates a new mobile push credential + operationId: createPushCredential + parameters: [] + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/createPushCredential_request' + description: Mobile push credential parameters that need to be sent in the + request + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/responses/PushCredentialResponse' + description: Mobile push credential created + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unauthorized request + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unable to process request + summary: Creates a new mobile push credential + tags: + - Push Credentials + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /mobile_push_credentials/{push_credential_id}: + delete: + description: Deletes a mobile push credential based on the given `push_credential_id` + operationId: deletePushCredentialById + parameters: + - description: The unique identifier of a mobile push credential + explode: false + in: path + name: push_credential_id + required: true + schema: + example: 0ccc7b76-4df3-4bca-a05a-3da1ecc389f0 + format: uuid + type: string + style: simple + responses: + "204": + description: The mobile push credential was deleted successfully + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unauthorized request + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Resource not found + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unable to process request + summary: Deletes a mobile push credential + tags: + - Push Credentials + x-latency-category: responsive + x-accepts: application/json + get: + description: Retrieves mobile push credential based on the given `push_credential_id` + operationId: getPushCredentialById + parameters: + - description: The unique identifier of a mobile push credential + explode: false + in: path + name: push_credential_id + required: true + schema: + example: 0ccc7b76-4df3-4bca-a05a-3da1ecc389f0 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/responses/PushCredentialResponse' + description: Successful get mobile push credential response + "401": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unauthorized request + "404": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Resource not found + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unable to process request + summary: Retrieves a mobile push credential + tags: + - Push Credentials + x-latency-category: responsive + x-accepts: application/json + /networks: + get: + description: List all Networks. + operationId: NetworkList + parameters: + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The network name to filter on. + explode: true + in: query + name: "filter[name]" + required: false + schema: + example: test network + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all Networks + tags: + - Networks + x-latency-category: responsive + x-accepts: application/json + post: + description: Create a new Network. + operationId: NetworkCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreate_200_response' + description: Successful response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Create a Network + tags: + - Networks + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /networks/{id}: + delete: + description: Delete a Network. + operationId: NetworkDelete + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreate_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Delete a Network + tags: + - Networks + x-latency-category: responsive + x-accepts: application/json + get: + description: Retrieve a Network. + operationId: NetworkGet + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreate_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve a Network + tags: + - Networks + x-latency-category: responsive + x-accepts: application/json + patch: + description: Update a Network. + operationId: NetworkUpdate + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreate_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Update a Network + tags: + - Networks + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /networks/{id}/network_interfaces: + get: + description: List all Interfaces for a Network. + operationId: NetworkInterfaceList + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The interface name to filter on. + explode: true + in: query + name: "filter[name]" + required: false + schema: + example: test interface + type: string + style: form + - description: The interface type to filter on. + explode: true + in: query + name: "filter[type]" + required: false + schema: + example: wireguard_interface + type: string + style: form + - description: The interface status to filter on. + explode: true + in: query + name: "filter[status]" + required: false + schema: + $ref: '#/components/schemas/InterfaceStatus' + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkInterfaceList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all Interfaces for a Network. + tags: + - Networks + x-latency-category: responsive + x-accepts: application/json /notification_channels: get: description: List notification channels. @@ -10622,7 +10991,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10632,7 +11001,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10643,7 +11012,7 @@ paths: - description: Filter by the id of a channel type explode: true in: query - name: filter[channel_type_id][eq] + name: "filter[channel_type_id][eq]" required: false schema: enum: @@ -10659,7 +11028,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Notification_Channels' + $ref: '#/components/schemas/listNotificationChannels_200_response' description: Returns a list of notification channels. default: content: @@ -10686,7 +11055,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Notification_Channel' + $ref: '#/components/schemas/createNotificationChannels_200_response' description: A Notification Channel response default: content: @@ -10698,20 +11067,19 @@ paths: tags: - Notifications x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /notification_channels/{id}: delete: description: Delete a notification channel. operationId: deleteNotificationChannel parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -10720,7 +11088,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Notification_Channel' + $ref: '#/components/schemas/createNotificationChannels_200_response' description: A Notification Channel response default: content: @@ -10737,13 +11105,12 @@ paths: description: Retrieve a notification channel. operationId: retrieveNotificationChannel parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -10752,7 +11119,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Notification_Channel' + $ref: '#/components/schemas/createNotificationChannels_200_response' description: A Notification Channel response default: content: @@ -10769,13 +11136,12 @@ paths: description: Update a notification channel. operationId: updateNotificationChannel parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -10791,7 +11157,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_Notification_Channel' + $ref: '#/components/schemas/createNotificationChannels_200_response' description: A Notification Channel response default: content: @@ -10803,7 +11169,7 @@ paths: tags: - Notifications x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /notification_event_conditions: get: @@ -10813,7 +11179,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10823,7 +11189,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10834,7 +11200,7 @@ paths: - description: Filter by the associated record type explode: true in: query - name: filter[associated_record_type][eq] + name: "filter[associated_record_type][eq]" required: false schema: enum: @@ -10848,7 +11214,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Notification_Even_Conditions' + $ref: '#/components/schemas/findNotificationsEventsConditions_200_response' description: Returns a list of notification event conditions available. default: content: @@ -10869,7 +11235,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10879,7 +11245,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10892,7 +11258,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Notification_Events' + $ref: '#/components/schemas/findNotificationsEvents_200_response' description: Returns a list of notification events available. default: content: @@ -10913,7 +11279,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -10923,7 +11289,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -10936,7 +11302,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Notification_Profiles' + $ref: '#/components/schemas/findNotificationsProfiles_200_response' description: Returns a list of notification profiles. default: content: @@ -10963,7 +11329,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Notification_Profile' + $ref: '#/components/schemas/createNotificationProfile_200_response' description: A Notification Profile response default: content: @@ -10975,20 +11341,19 @@ paths: tags: - Notifications x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /notification_profiles/{id}: delete: description: Delete a notification profile. operationId: deleteNotificationProfile parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -10997,7 +11362,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Notification_Profiles' + $ref: '#/components/schemas/createNotificationProfile_200_response' description: A Notification Profile response default: content: @@ -11014,13 +11379,12 @@ paths: description: Retrieve a notification profile. operationId: retrieveNotificationProfile parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -11029,7 +11393,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Notification_Profile' + $ref: '#/components/schemas/createNotificationProfile_200_response' description: A Notification Profile response default: content: @@ -11046,13 +11410,12 @@ paths: description: Update a notification profile. operationId: updateNotificationProfile parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -11068,7 +11431,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_Notification_Profile' + $ref: '#/components/schemas/createNotificationProfile_200_response' description: A Notification Profile response default: content: @@ -11080,7 +11443,7 @@ paths: tags: - Notifications x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /notification_settings: get: @@ -11090,7 +11453,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -11100,7 +11463,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -11111,7 +11474,7 @@ paths: - description: Filter by the id of a notification profile explode: true in: query - name: filter[notification_profile_id][eq] + name: "filter[notification_profile_id][eq]" required: false schema: example: 12455643-3cf1-4683-ad23-1cd32f7d5e0a @@ -11120,7 +11483,7 @@ paths: - description: Filter by the id of a notification channel explode: true in: query - name: filter[notification_channel][eq] + name: "filter[notification_channel][eq]" required: false schema: example: 12455643-3cf1-4683-ad23-1cd32f7d5e0a @@ -11129,7 +11492,7 @@ paths: - description: Filter by the id of a notification channel explode: true in: query - name: filter[notification_event_condition_id][eq] + name: "filter[notification_event_condition_id][eq]" required: false schema: example: 12455643-3cf1-4683-ad23-1cd32f7d5e0a @@ -11138,7 +11501,7 @@ paths: - description: Filter by the associated record type explode: true in: query - name: filter[associated_record_type][eq] + name: "filter[associated_record_type][eq]" required: false schema: enum: @@ -11150,7 +11513,7 @@ paths: - description: The status of a notification setting explode: true in: query - name: filter[status][eq] + name: "filter[status][eq]" required: false schema: enum: @@ -11170,7 +11533,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Notification_Settings' + $ref: '#/components/schemas/listNotificationSettings_200_response' description: Returns a list of notification settings. default: content: @@ -11196,13 +11559,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Notification_Setting' + $ref: '#/components/schemas/createNotificationSetting_200_response' description: A Notification Setting response "201": content: application/json: schema: - $ref: '#/components/schemas/Create_Notification_Setting_Async' + $ref: '#/components/schemas/createNotificationSetting_200_response' description: A Notification Setting response - async default: content: @@ -11214,20 +11577,19 @@ paths: tags: - Notifications x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /notification_settings/{id}: delete: description: Delete a notification setting. operationId: deleteNotificationSetting parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -11236,13 +11598,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Notification_Setting' + $ref: '#/components/schemas/createNotificationSetting_200_response' description: A Notification Setting response "201": content: application/json: schema: - $ref: '#/components/schemas/Delete_Notification_Setting_Async' + $ref: '#/components/schemas/createNotificationSetting_200_response' description: A Notification Setting response - async default: content: @@ -11259,13 +11621,12 @@ paths: description: Retrieve a notification setting. operationId: retrieveNotificationSetting parameters: - - description: Identifies the resource. + - description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -11274,7 +11635,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Notification_Setting' + $ref: '#/components/schemas/createNotificationSetting_200_response' description: A Notification Setting response default: content: @@ -11295,7 +11656,7 @@ paths: - description: Filter number block orders by status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: example: pending @@ -11304,7 +11665,7 @@ paths: - description: Filter number block orders later than this value. explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: example: 2018-01-01T00:00:00.000000Z @@ -11313,7 +11674,7 @@ paths: - description: Filter number block orders earlier than this value. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: example: 2018-01-01T00:00:00.000000Z @@ -11322,7 +11683,7 @@ paths: - description: Filter number block orders having these phone numbers. explode: true in: query - name: filter[phone_numbers.starting_number] + name: "filter[phone_numbers.starting_number]" required: false schema: example: +19705555000 @@ -11331,7 +11692,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -11341,7 +11702,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -11381,8 +11742,8 @@ paths: required: true responses: "200": - description: The server must return a HTTP 200, otherwise we will - reattempt to deliver the webhook to the failover URL. + description: "The server must return a HTTP 200, otherwise we will\ + \ reattempt to deliver the webhook to the failover URL." x-callback-request: true description: Creates a phone number block order. operationId: createNumberBlockOrder @@ -11409,7 +11770,7 @@ paths: tags: - Number Block Orders x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /number_block_orders/{number_block_order_id}: get: @@ -11500,7 +11861,7 @@ paths: - description: Filter number order documents by `requirement_id`. explode: true in: query - name: filter[requirement_id] + name: "filter[requirement_id]" required: false schema: type: string @@ -11508,7 +11869,7 @@ paths: - description: Filter number order documents after this datetime. explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: type: string @@ -11516,7 +11877,7 @@ paths: - description: Filter number order documents from before this datetime. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: type: string @@ -11524,7 +11885,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -11534,7 +11895,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -11587,7 +11948,7 @@ paths: tags: - Number Order Documents x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /number_order_documents/{number_order_document_id}: get: @@ -11655,7 +12016,7 @@ paths: tags: - Number Order Documents x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /number_order_phone_numbers: get: @@ -11747,7 +12108,7 @@ paths: tags: - Number Orders x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /number_orders: get: @@ -11757,7 +12118,7 @@ paths: - description: Filter number orders by status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: type: string @@ -11765,7 +12126,7 @@ paths: - description: Filter number orders later than this value. explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: type: string @@ -11773,7 +12134,7 @@ paths: - description: Filter number orders earlier than this value. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: type: string @@ -11781,7 +12142,7 @@ paths: - description: Filter number order with this amount of numbers explode: true in: query - name: filter[phone_numbers_count] + name: "filter[phone_numbers_count]" required: false schema: type: string @@ -11789,7 +12150,7 @@ paths: - description: Filter number orders via the customer reference set. explode: true in: query - name: filter[customer_reference] + name: "filter[customer_reference]" required: false schema: type: string @@ -11797,7 +12158,7 @@ paths: - description: Filter number orders by requirements met. explode: true in: query - name: filter[requirements_met] + name: "filter[requirements_met]" required: false schema: type: boolean @@ -11805,7 +12166,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -11815,7 +12176,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -11857,8 +12218,8 @@ paths: required: true responses: "200": - description: The server must return a HTTP 200, otherwise we will - reattempt to deliver the webhook to the failover URL. + description: "The server must return a HTTP 200, otherwise we will\ + \ reattempt to deliver the webhook to the failover URL." x-callback-request: true description: Creates a phone number order. operationId: createNumberOrder @@ -11886,7 +12247,7 @@ paths: - Number Orders x-endpoint-cost: heavy x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /number_orders/{number_order_id}: get: @@ -11954,7 +12315,7 @@ paths: tags: - Number Orders x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /number_reservations: get: @@ -11964,7 +12325,7 @@ paths: - description: Filter number reservations by status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: type: string @@ -11972,7 +12333,7 @@ paths: - description: Filter number reservations later than this value. explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: type: string @@ -11980,7 +12341,7 @@ paths: - description: Filter number reservations earlier than this value. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: type: string @@ -11988,7 +12349,7 @@ paths: - description: Filter number reservations having these phone numbers. explode: true in: query - name: filter[phone_numbers.phone_number] + name: "filter[phone_numbers.phone_number]" required: false schema: type: string @@ -11996,7 +12357,7 @@ paths: - description: Filter number reservations via the customer reference set. explode: true in: query - name: filter[customer_reference] + name: "filter[customer_reference]" required: false schema: type: string @@ -12004,7 +12365,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -12014,7 +12375,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -12067,7 +12428,7 @@ paths: tags: - Number Reservations x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /number_reservations/{number_reservation_id}: get: @@ -12138,7 +12499,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -12148,7 +12509,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -12159,7 +12520,7 @@ paths: - description: Filter by a specific status of the resource's lifecycle. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -12172,7 +12533,7 @@ paths: - description: The SIM card identification UUID. explode: true in: query - name: filter[sim_card_id] + name: "filter[sim_card_id]" required: false schema: type: string @@ -12180,7 +12541,7 @@ paths: - description: Filter by type. explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: enum: @@ -12193,7 +12554,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Search_OTA_Update_Response' + $ref: '#/components/schemas/OTAUpdatesList_200_response' description: Successful response default: content: @@ -12226,7 +12587,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/OTA_Update_Response' + $ref: '#/components/schemas/OTAUpdateGET_200_response' description: Successful response default: content: @@ -12248,7 +12609,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -12258,7 +12619,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -12269,25 +12630,18 @@ paths: - description: Optional filter on outbound voice profile name. explode: true in: query - name: filter[name][contains] + name: "filter[name][contains]" required: false schema: example: office-profile type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
+ - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the -\ + \ prefix.

\nThat is:
" explode: true in: query name: sort @@ -12356,7 +12710,7 @@ paths: tags: - Outbound Voice Profiles x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /outbound_voice_profiles/{id}: delete: @@ -12461,7 +12815,7 @@ paths: tags: - Outbound Voice Profiles x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_number_blocks/jobs: get: @@ -12470,7 +12824,7 @@ paths: - description: Filter the phone number blocks jobs by type. explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: description: Identifies the type of the background job. @@ -12482,7 +12836,7 @@ paths: - description: Filter the phone number blocks jobs by status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: description: Identifies the status of the background job. @@ -12497,7 +12851,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -12507,7 +12861,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -12515,8 +12869,8 @@ paths: minimum: 1 type: integer style: form - - description: Specifies the sort order for results. If not given, results are - sorted by created_at in descending order. + - description: "Specifies the sort order for results. If not given, results\ + \ are sorted by created_at in descending order." explode: true in: query name: sort @@ -12549,11 +12903,11 @@ paths: x-accepts: application/json /phone_number_blocks/jobs/delete_phone_number_block: post: - description: Creates a new background job to delete all the phone numbers associated - with the given block. We will only consider the phone number block as deleted - after all phone numbers associated with it are removed, so multiple executions - of this job may be necessary in case some of the phone numbers present errors - during the deletion process. + description: "Creates a new background job to delete all the phone numbers associated\ + \ with the given block. We will only consider the phone number block as deleted\ + \ after all phone numbers associated with it are removed, so multiple executions\ + \ of this job may be necessary in case some of the phone numbers present errors\ + \ during the deletion process." operationId: createPhoneNumberBlocksJobDeletePhoneNumberBlock requestBody: content: @@ -12579,7 +12933,7 @@ paths: - Number Blocks Background Jobs x-latency-category: background x-group-parameters: "true" - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_number_blocks/jobs/{id}: get: @@ -12598,7 +12952,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Phone_Number_Blocks_Job' + $ref: '#/components/schemas/Phone_Number_Blocks_Job' description: Phone number blocks job details. default: content: @@ -12619,7 +12973,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -12629,7 +12983,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -12640,7 +12994,7 @@ paths: - description: Filter by phone number tags. explode: true in: query - name: filter[tag] + name: "filter[tag]" required: false schema: type: string @@ -12650,7 +13004,7 @@ paths: Non-numerical characters will result in no values being returned. explode: true in: query - name: filter[phone_number] + name: "filter[phone_number]" required: false schema: type: string @@ -12658,7 +13012,7 @@ paths: - description: Filter by phone number status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -12677,7 +13031,7 @@ paths: - description: Filter by connection_id. explode: true in: query - name: filter[connection_id] + name: "filter[connection_id]" required: false schema: example: "1521916448077776306" @@ -12687,7 +13041,7 @@ paths: - description: Filter contains connection name. Requires at least three characters. explode: true in: query - name: filter[voice.connection_name][contains] + name: "filter[voice.connection_name][contains]" required: false schema: example: test @@ -12696,7 +13050,7 @@ paths: - description: Filter starts with connection name. Requires at least three characters. explode: true in: query - name: filter[voice.connection_name][starts_with] + name: "filter[voice.connection_name][starts_with]" required: false schema: example: test @@ -12705,7 +13059,7 @@ paths: - description: Filter ends with connection name. Requires at least three characters. explode: true in: query - name: filter[voice.connection_name][ends_with] + name: "filter[voice.connection_name][ends_with]" required: false schema: example: test @@ -12714,7 +13068,7 @@ paths: - description: Filter by connection name. explode: true in: query - name: filter[voice.connection_name][eq] + name: "filter[voice.connection_name][eq]" required: false schema: example: test @@ -12723,7 +13077,7 @@ paths: - description: Filter by usage_payment_method. explode: true in: query - name: filter[usage_payment_method] + name: "filter[usage_payment_method]" required: false schema: enum: @@ -12732,23 +13086,23 @@ paths: example: channel type: string style: form - - description: Filter by the billing_group_id associated with phone numbers. - To filter to only phone numbers that have no billing group associated them, - set the value of this filter to the string 'null'. + - description: "Filter by the billing_group_id associated with phone numbers.\ + \ To filter to only phone numbers that have no billing group associated\ + \ them, set the value of this filter to the string 'null'." explode: true in: query - name: filter[billing_group_id] + name: "filter[billing_group_id]" required: false schema: example: 62e4bf2e-c278-4282-b524-488d9c9c43b2 type: string style: form - - description: Filter by the emergency_address_id associated with phone numbers. - To filter only phone numbers that have no emergency address associated with - them, set the value of this filter to the string 'null'. + - description: "Filter by the emergency_address_id associated with phone numbers.\ + \ To filter only phone numbers that have no emergency address associated\ + \ with them, set the value of this filter to the string 'null'." explode: true in: query - name: filter[emergency_address_id] + name: "filter[emergency_address_id]" required: false schema: example: "9102160989215728032" @@ -12758,13 +13112,13 @@ paths: - description: Filter numbers via the customer_reference set. explode: true in: query - name: filter[customer_reference] + name: "filter[customer_reference]" required: false schema: type: string style: form - - description: Specifies the sort order for results. If not given, results are - sorted by created_at in descending order. + - description: "Specifies the sort order for results. If not given, results\ + \ are sorted by created_at in descending order." explode: true in: query name: sort @@ -12805,7 +13159,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -12815,7 +13169,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -12907,7 +13261,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Inbound_Channels' + $ref: '#/components/schemas/listOutboundChannels_200_response' description: Inbound Channels Response "401": description: Unauthorized @@ -12925,19 +13279,10 @@ paths: description: Update the inbound channels for the account operationId: updateOutboundChannels requestBody: - $ref: '#/components/requestBodies/Update_Inbound_Channels' content: application/json: schema: - properties: - channels: - description: The new number of concurrent channels for the account - example: 7 - type: integer - required: - - channels - title: Update Inbound Channels - type: object + $ref: '#/components/schemas/updateOutboundChannels_request' description: Inbound channels update required: true responses: @@ -12945,48 +13290,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_Inbounc_Channels' + $ref: '#/components/schemas/updateOutboundChannels_200_response' description: Expected Update response default: content: application/json: schema: - properties: - errors: - items: - properties: - code: - format: int - type: string - title: - type: string - detail: - type: string - source: - properties: - pointer: - description: JSON pointer (RFC6901) to the offending - entity. - format: json-pointer - type: string - parameter: - description: Indicates which query parameter caused - the error. - type: string - type: object - meta: - type: object - required: - - code - - title - type: array + $ref: '#/components/schemas/updateOutboundChannels_default_response' description: Unexpected error summary: Update inbound channels tags: - Inbound Channels x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers/jobs: get: @@ -12995,7 +13312,7 @@ paths: - description: Filter the phone number jobs by type. explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: description: Identifies the type of the background job. @@ -13009,7 +13326,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -13019,7 +13336,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -13027,8 +13344,8 @@ paths: minimum: 1 type: integer style: form - - description: Specifies the sort order for results. If not given, results are - sorted by created_at in descending order. + - description: "Specifies the sort order for results. If not given, results\ + \ are sorted by created_at in descending order." explode: true in: query name: sort @@ -13076,7 +13393,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Phone_Numbers_Job_Delete_Phone_Numbers' + $ref: '#/components/schemas/Phone_Numbers_Job_Delete_Phone_Numbers' description: Phone numbers job delete phone numbers requested. default: content: @@ -13089,7 +13406,7 @@ paths: - Number Background Jobs x-latency-category: background x-group-parameters: "true" - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers/jobs/update_emergency_settings: post: @@ -13108,7 +13425,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Phone_Numbers_Enable_Emergency' + $ref: '#/components/schemas/Phone_Numbers_Enable_Emergency' description: Phone numbers enable emergency requested. default: content: @@ -13120,7 +13437,7 @@ paths: tags: - Number Background Jobs x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers/jobs/update_phone_numbers: post: @@ -13152,7 +13469,7 @@ paths: - Number Background Jobs x-latency-category: background x-group-parameters: "true" - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers/jobs/{id}: get: @@ -13171,7 +13488,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Phone_Numbers_Job' + $ref: '#/components/schemas/Phone_Numbers_Job' description: Phone numbers job details. default: content: @@ -13192,7 +13509,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -13202,7 +13519,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -13237,7 +13554,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -13247,7 +13564,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -13260,7 +13577,7 @@ paths: Non-numerical characters will result in no values being returned. explode: true in: query - name: filter[phone_number] + name: "filter[phone_number]" required: false schema: type: string @@ -13268,7 +13585,7 @@ paths: - description: Filter contains connection name. Requires at least three characters. explode: true in: query - name: filter[connection_name][contains] + name: "filter[connection_name][contains]" required: false schema: example: test @@ -13277,7 +13594,7 @@ paths: - description: Filter numbers via the customer_reference set. explode: true in: query - name: filter[customer_reference] + name: "filter[customer_reference]" required: false schema: type: string @@ -13285,7 +13602,7 @@ paths: - description: Filter by usage_payment_method. explode: true in: query - name: filter[usage_payment_method] + name: "filter[usage_payment_method]" required: false schema: enum: @@ -13294,8 +13611,8 @@ paths: example: channel type: string style: form - - description: Specifies the sort order for results. If not given, results are - sorted by created_at in descending order. + - description: "Specifies the sort order for results. If not given, results\ + \ are sorted by created_at in descending order." explode: true in: query name: sort @@ -13433,7 +13750,7 @@ paths: - Number Configurations x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers/{id}/actions/enable_emergency: post: @@ -13460,13 +13777,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Phone_Number_Emergency_Enable' + $ref: '#/components/schemas/Phone_Number_Enable_Emergency' description: Phone number emergency enabled. "202": content: application/json: schema: - $ref: '#/components/schemas/Create_Phone_Number_Emergency_Requested' + $ref: '#/components/schemas/Phone_Number_Enable_Emergency' description: Phone number emergency requested. default: content: @@ -13479,7 +13796,7 @@ paths: - Number Configurations x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers/{id}/messaging: get: @@ -13548,7 +13865,7 @@ paths: tags: - Number Configurations x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers/{id}/voice: get: @@ -13623,7 +13940,7 @@ paths: - Number Configurations x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /phone_numbers_regulatory_requirements: get: @@ -13632,10 +13949,10 @@ paths: - description: Record type phone number/ phone numbers explode: true in: query - name: filter[phone_number] + name: "filter[phone_number]" required: true schema: - example: +41215470622,+41215470633 + example: "+41215470622,+41215470633" type: string style: form responses: @@ -13643,7 +13960,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Regulatory_Requirements' + $ref: '#/components/schemas/listRegulartoryRequirements_200_response' description: An array of Regulatory Requiremenst Responses default: content: @@ -13658,33 +13975,20 @@ paths: x-accepts: application/json /portability_checks: post: - description: Runs a portability check, returning the results immediately. + description: "Runs a portability check, returning the results immediately." operationId: postPortabilityCheck requestBody: - $ref: '#/components/requestBodies/Create_Portability_Check_Request' content: application/json: schema: - properties: - phone_numbers: - description: The list of +E.164 formatted phone numbers to check - for portability - example: - - +13035550000 - - +13035550001 - - +13035550002 - items: - type: string - type: array - title: Create Portability Check Request - type: object + $ref: '#/components/schemas/postPortabilityCheck_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Portability_Check_Response' + $ref: '#/components/schemas/postPortabilityCheck_201_response' description: PortabilityCheck Response "401": description: Unauthorized @@ -13694,7 +13998,7 @@ paths: tags: - Phone Number Porting x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /porting_orders: get: @@ -13704,7 +14008,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -13714,7 +14018,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -13734,7 +14038,7 @@ paths: - description: Filter results by status explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -13753,7 +14057,7 @@ paths: example: 123abc explode: true in: query - name: filter[customer_reference] + name: "filter[customer_reference]" required: false schema: type: string @@ -13762,7 +14066,7 @@ paths: example: US explode: true in: query - name: filter[phone_numbers][country_code] + name: "filter[phone_numbers][country_code]" required: false schema: type: string @@ -13771,7 +14075,7 @@ paths: example: Telnyx explode: true in: query - name: filter[phone_numbers][carrier_name] + name: "filter[phone_numbers][carrier_name]" required: false schema: type: string @@ -13780,7 +14084,7 @@ paths: example: full explode: true in: query - name: filter[misc][type] + name: "filter[misc][type]" required: false schema: $ref: '#/components/schemas/PortingOrderType' @@ -13789,7 +14093,7 @@ paths: example: Porter McPortersen explode: true in: query - name: filter[end_user][admin][entity_name] + name: "filter[end_user][admin][entity_name]" required: false schema: type: string @@ -13798,7 +14102,7 @@ paths: example: Admin McPortersen explode: true in: query - name: filter[end_user][admin][auth_person_name] + name: "filter[end_user][admin][auth_person_name]" required: false schema: type: string @@ -13807,7 +14111,7 @@ paths: example: false explode: true in: query - name: filter[activation_settings][fast_port_eligible] + name: "filter[activation_settings][fast_port_eligible]" required: false schema: type: boolean @@ -13816,7 +14120,7 @@ paths: example: 2021-03-25T10:00:00.000Z explode: true in: query - name: filter[activation_settings][foc_datetime_requested][gt] + name: "filter[activation_settings][foc_datetime_requested][gt]" required: false schema: type: string @@ -13825,13 +14129,13 @@ paths: example: 2021-03-25T10:00:00.000Z explode: true in: query - name: filter[activation_settings][foc_datetime_requested][lt] + name: "filter[activation_settings][foc_datetime_requested][lt]" required: false schema: type: string style: form - - description: Specifies the sort order for results. If not given, results are - sorted by created_at in descending order. + - description: "Specifies the sort order for results. If not given, results\ + \ are sorted by created_at in descending order." explode: true in: query name: sort @@ -13850,7 +14154,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Order' + $ref: '#/components/schemas/listPortingOrders_200_response' description: Successful response "401": description: Unauthorized @@ -13874,71 +14178,8 @@ paths: "201": content: application/json: - example: - data: - - activation_settings: - activation_status: null - fast_port_eligible: true - foc_datetime_actual: null - foc_datetime_requested: null - created_at: 2022-03-17T18:01:01Z - customer_reference: null - description: FP Telnyx - documents: - loa: null - invoice: null - end_user: - admin: - account_number: null - auth_person_name: null - billing_phone_number: null - business_identifier: null - entity_name: null - pin_passcode: null - tax_identifier: null - location: - administrative_area: null - country_code: null - extended_address: null - locality: null - postal_code: null - street_address: null - id: b0ea6d6f-de31-4079-a536-992e0c98b037 - misc: null - old_service_provider_ocn: Unreal Communications - parent_support_key: null - phone_number_configuration: - connection_id: null - emergency_address_id: null - messaging_profile_id: null - tags: [] - phone_number_type: local - phone_numbers: - - activation_status: null - phone_number: '{e.164 TN}' - phone_number_type: local - portability_status: confirmed - porting_order_id: b0ea6d6f-de31-4079-a536-992e0c98b037 - porting_order_status: draft - record_type: porting_phone_number - requirements_status: requirement-info-pending - support_key: null - porting_phone_numbers_count: 1 - record_type: porting_order - requirements: [] - requirements_met: false - status: - details: [] - value: draft - support_key: null - updated_at: 2022-03-17T18:01:01Z - user_feedback: - user_comment: null - user_rating: null - user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 - webhook_url: null - schema: - $ref: '#/components/schemas/List_Draft_Porting_Order_Without_Pagination' + schema: + $ref: '#/components/schemas/createPortingOrder_201_response' description: Successful response "401": description: Unauthorized @@ -13948,7 +14189,7 @@ paths: tags: - Porting Order x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /porting_orders/exception_types: get: @@ -13960,7 +14201,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Orders_Exception_Types' + $ref: '#/components/schemas/listPortingOrdersExceptionTypes_200_response' description: Successful response "401": description: Unauthorized @@ -14025,7 +14266,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Order' + $ref: '#/components/schemas/getPortingOrder_200_response' description: Successful response "401": description: Unauthorized @@ -14035,12 +14276,12 @@ paths: x-latency-category: responsive x-accepts: application/json patch: - description: |- - Edits the details of an existing porting order. - - Any or all of a porting order’s attributes may be included in the resource object included in a PATCH request. - - If a request does not include all of the attributes for a resource, the system will interpret the missing attributes as if they were included with their current values. To explicitly set something to null, it must be included in the request with a null value. + description: "Edits the details of an existing porting order.\n\nAny or all\ + \ of a porting order’s attributes may be included in the resource object included\ + \ in a PATCH request.\n\nIf a request does not include all of the attributes\ + \ for a resource, the system will interpret the missing attributes as if they\ + \ were included with their current values. To explicitly set something to\ + \ null, it must be included in the request with a null value." operationId: updatePortingOrder parameters: - description: Porting Order id @@ -14063,7 +14304,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Order' + $ref: '#/components/schemas/updatePortingOrder_200_response' description: Successful response "401": description: Unauthorized @@ -14073,7 +14314,7 @@ paths: tags: - Porting Order x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /porting_orders/{id}/actions/activate: post: @@ -14094,7 +14335,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Orders_Activation_Job' + $ref: '#/components/schemas/activatePortingOrder_202_response' description: Successful response "401": description: Unauthorized @@ -14124,7 +14365,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Order' + $ref: '#/components/schemas/cancelPortingOrder_200_response' description: Successful response "401": description: Unauthorized @@ -14154,7 +14395,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Order' + $ref: '#/components/schemas/confirmPortingOrder_200_response' description: Successful response "401": description: Unauthorized @@ -14182,7 +14423,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -14192,7 +14433,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -14205,7 +14446,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Orders_Activation_Jobs' + $ref: '#/components/schemas/listPortingOrdersActivationJobs_200_response' description: Successful response "401": description: Unauthorized @@ -14244,7 +14485,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Orders_Activation_Job' + $ref: '#/components/schemas/activatePortingOrder_202_response' description: Successful response "401": description: Unauthorized @@ -14274,7 +14515,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Allowed_Foc_Window' + $ref: '#/components/schemas/listAllowedFocWindows_200_response' description: Successful response "401": description: Unauthorized @@ -14300,7 +14541,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -14310,7 +14551,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -14323,7 +14564,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Orders_Comments' + $ref: '#/components/schemas/listPortingOrdersComments_200_response' description: Successful response "401": description: Unauthorized @@ -14358,7 +14599,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Order_Comment' + $ref: '#/components/schemas/createPortingOrderComment_201_response' description: Successful response "401": description: Unauthorized @@ -14368,7 +14609,7 @@ paths: tags: - Porting Order x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /porting_orders/{id}/documents: get: @@ -14387,7 +14628,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -14397,7 +14638,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -14410,7 +14651,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Order_Documents' + $ref: '#/components/schemas/listPortingOrderDocuments_200_response' description: Successful response "401": description: Unauthorized @@ -14441,7 +14682,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Porting_Order_Documents_Created' + $ref: '#/components/schemas/uploadPortingOrderDocuments_201_response' description: Successful response "401": description: Unauthorized @@ -14451,7 +14692,7 @@ paths: tags: - Porting Order x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /porting_orders/{id}/loa_template: get: @@ -14473,7 +14714,6 @@ paths: application/pdf: schema: format: binary - title: Download LOA Tempalte type: string description: Successful response "401": @@ -14483,6 +14723,57 @@ paths: - Porting Order x-latency-category: responsive x-accepts: application/pdf + /porting_orders/{id}/requirements: + get: + description: Returns a list of all requirements for this porting order. + operationId: ListPortingOrderRequirements + parameters: + - description: Porting Order id + explode: false + in: path + name: id + required: true + schema: + format: uuid + type: string + style: simple + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ListPortingOrderRequirements_200_response' + description: Successful response + "401": + description: Unauthorized + "422": + description: Unprocessable entity. Check message field in response for details. + summary: List all required documents for this porting order + tags: + - Porting Order + x-latency-category: responsive + x-accepts: application/json /porting_orders/{id}/sub_request: get: description: Retrieve the associated V1 sub_request_id and port_request_id @@ -14502,7 +14793,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Sub_Request_By_Porting_Order' + $ref: '#/components/schemas/getPortingOrderSubRequest_200_response' description: Successful response "401": description: Unauthorized @@ -14521,7 +14812,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -14531,7 +14822,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -14542,7 +14833,7 @@ paths: - description: Filter results by porting order id explode: true in: query - name: filter[porting_order_id] + name: "filter[porting_order_id]" required: false schema: example: f3575e15-32ce-400e-a4c0-dd78800c20b0 @@ -14552,7 +14843,7 @@ paths: - description: Filter results by a list of porting order ids explode: true in: query - name: filter[porting_order_id][in][] + name: "filter[porting_order_id][in][]" required: false schema: items: @@ -14564,7 +14855,7 @@ paths: - description: Filter results by support key explode: true in: query - name: filter[support_key][eq] + name: "filter[support_key][eq]" required: false schema: example: sr_a12345 @@ -14573,7 +14864,7 @@ paths: - description: Filter results by a list of support keys explode: true in: query - name: filter[support_key][in][] + name: "filter[support_key][in][]" required: false schema: items: @@ -14584,7 +14875,7 @@ paths: - description: Filter results by phone number explode: true in: query - name: filter[phone_number] + name: "filter[phone_number]" required: false schema: example: +12003151212 @@ -14593,7 +14884,7 @@ paths: - description: Filter results by a list of phone numbers explode: true in: query - name: filter[phone_number][in][] + name: "filter[phone_number][in][]" required: false schema: items: @@ -14604,7 +14895,7 @@ paths: - description: Filter results by porting order status explode: true in: query - name: filter[porting_order_status] + name: "filter[porting_order_status]" required: false schema: enum: @@ -14622,7 +14913,7 @@ paths: - description: Filter results by activation status explode: true in: query - name: filter[activation_status] + name: "filter[activation_status]" required: false schema: $ref: '#/components/schemas/PortingOrderActivationStatus' @@ -14630,7 +14921,7 @@ paths: - description: Filter results by portability status explode: true in: query - name: filter[portability_status] + name: "filter[portability_status]" required: false schema: $ref: '#/components/schemas/PortabilityStatus' @@ -14640,10 +14931,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Phone_Numbers' + $ref: '#/components/schemas/listPortingPhoneNumbers_200_response' text/csv: schema: - $ref: '#/components/schemas/List_Porting_Phone_Numbers' + example: "phone_number,phone_number_type,porting_order_id,support_key,porting_order_status\r\ + \n+12003155566,local,5f940c35-ef28-4408-bb95-af73b047d589,sr_a12345,draft\r\ + \n" + type: string description: Successful response "401": description: Unauthorized @@ -14662,7 +14956,7 @@ paths: - description: Filter by new carrier name. explode: true in: query - name: filter[carrier_name] + name: "filter[carrier_name]" required: false schema: type: string @@ -14670,7 +14964,7 @@ paths: - description: Filter by new carrier spid. explode: true in: query - name: filter[spid] + name: "filter[spid]" required: false schema: type: string @@ -14678,7 +14972,7 @@ paths: - description: Filter by portout status. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -14693,7 +14987,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -14703,7 +14997,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -14716,7 +15010,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Portout_Response' + $ref: '#/components/schemas/listPortoutRequest_200_response' description: Portout Response "401": description: Unauthorized @@ -14748,7 +15042,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Portout_Response' + $ref: '#/components/schemas/findPortoutRequest_200_response' description: Portout Response "401": description: Unauthorized @@ -14780,7 +15074,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Portout_Comments' + $ref: '#/components/schemas/findPortoutComments_200_response' description: Portout Comments "401": description: Unauthorized @@ -14807,23 +15101,17 @@ paths: type: string style: simple requestBody: - $ref: '#/components/requestBodies/Create_Comment_Portout_Request' content: application/json: schema: - properties: - body: - description: Comment to post on this portout request - type: string - title: Create Comment Portout Request - type: object + $ref: '#/components/schemas/postPortRequestComment_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Portout_Comment_Resposne' + $ref: '#/components/schemas/postPortRequestComment_201_response' description: Portout Comment Response "401": description: Unauthorized @@ -14835,7 +15123,7 @@ paths: tags: - Number Portout x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /portouts/{id}/supporting_documents: get: @@ -14856,7 +15144,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PortOut_List_Supporting_Documents_Response' + $ref: '#/components/schemas/getPortRequestSupportingDocuments_201_response' description: Portout Supporting Documents "401": description: Unauthorized @@ -14881,27 +15169,17 @@ paths: type: string style: simple requestBody: - $ref: '#/components/requestBodies/Create_Porting_Supporting_Docs_Request' content: application/json: schema: - properties: - documents: - description: List of supporting documents parameters - items: - $ref: '#/components/schemas/_portouts__id__supporting_documents_documents' - maxItems: 10 - minItems: 1 - type: array - title: Create Porting Supporting Docs Request - type: object + $ref: '#/components/schemas/postPortRequestSupportingDocuments_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Create_PortOut_Supporting_Documents_Response' + $ref: '#/components/schemas/getPortRequestSupportingDocuments_201_response' description: Portout Supporting Documents "401": description: Unauthorized @@ -14913,7 +15191,7 @@ paths: tags: - Number Portout x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /portouts/{id}/{status}: patch: @@ -14941,24 +15219,17 @@ paths: type: string style: simple requestBody: - $ref: '#/components/requestBodies/Update_Portout_Status_Request' content: application/json: schema: - properties: - reason: - description: Provide a reason if rejecting the port out request - example: I do not recognize this transaction - type: string - title: Update Portout Status Request - type: object + $ref: '#/components/schemas/updatePortoutRequest_request' required: true responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Portout_Response' + $ref: '#/components/schemas/findPortoutRequest_200_response' description: Portout Response "401": description: Unauthorized @@ -14970,7 +15241,7 @@ paths: tags: - Number Portout x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /private_wireless_gateways: get: @@ -14980,7 +15251,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -14990,7 +15261,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -15002,7 +15273,7 @@ paths: example: my private gateway explode: true in: query - name: filter[name] + name: "filter[name]" required: false schema: type: string @@ -15011,7 +15282,7 @@ paths: example: 192.168.0.0/24 explode: true in: query - name: filter[ip_range] + name: "filter[ip_range]" required: false schema: type: string @@ -15021,7 +15292,7 @@ paths: example: ashburn-va explode: true in: query - name: filter[region_code] + name: "filter[region_code]" required: false schema: type: string @@ -15030,7 +15301,7 @@ paths: example: 2018-02-02T22:25:27.521Z explode: true in: query - name: filter[created_at] + name: "filter[created_at]" required: false schema: type: string @@ -15039,7 +15310,7 @@ paths: example: 2018-02-02T22:25:27.521Z explode: true in: query - name: filter[updated_at] + name: "filter[updated_at]" required: false schema: type: string @@ -15049,7 +15320,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_All_Private_Wireless_Gateways_Response' + $ref: '#/components/schemas/getPrivateWirelessGateways_200_response' description: Successful response default: content: @@ -15067,32 +15338,17 @@ paths: for a previously created network. operationId: createPrivateWirelessGateway requestBody: - $ref: '#/components/requestBodies/Create_Private_Wireless_Gatweway_Request' content: application/json: schema: - properties: - network_id: - description: The identification of the related network resource. - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - format: uuid - type: string - name: - description: The private wireless gateway name. - example: My private wireless gateway - type: string - required: - - name - - network_id - title: Create Private Wireless Gatweway Request - type: object + $ref: '#/components/schemas/createPrivateWirelessGateway_request' required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/Create_Private_Wireless_Gateway_Response' + $ref: '#/components/schemas/createPrivateWirelessGateway_202_response' description: Successful response "422": content: @@ -15111,7 +15367,7 @@ paths: tags: - Private Wireless Gateways x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /private_wireless_gateways/{id}: delete: @@ -15133,7 +15389,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Private_Wireless_Gateway_Response' + $ref: '#/components/schemas/createPrivateWirelessGateway_202_response' description: Successful response "404": content: @@ -15171,7 +15427,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Private_Wireless_Gateway_Response' + $ref: '#/components/schemas/createPrivateWirelessGateway_202_response' description: Successful response "404": content: @@ -15190,58 +15446,106 @@ paths: - Private Wireless Gateways x-latency-category: responsive x-accepts: application/json - /push_credentials/{push_credential_id}: - delete: - description: Deletes a push credential based on the given `id` - operationId: deletePushCredentialnById + /public_internet_gateways: + get: + description: List all Public Internet Gateways. + operationId: PublicInternetGatewayList parameters: - - description: The unique identifier of a push credential - explode: false - in: path - name: push_credential_id - required: true + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false schema: - example: 0ccc7b76-4df3-4bca-a05a-3da1ecc389f0 - format: uuid + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The associated network id to filter on. + explode: true + in: query + name: "filter[network_id]" + required: false + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 type: string - style: simple + style: form responses: - "204": - description: The push credential was deleted successfully - "401": + "200": content: application/json: schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "404": + $ref: '#/components/schemas/PublicInternetGatewayList_200_response' + description: Successful response + default: content: application/json: schema: $ref: '#/components/schemas/Errors' - description: Resource not found + description: Unexpected error + summary: List all Public Internet Gateways + tags: + - Public Internet Gateways + x-latency-category: responsive + x-accepts: application/json + post: + description: Create a new Public Internet Gateway. + operationId: PublicInternetGatewayCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PublicInternetGatewayCreate' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/PublicInternetGatewayCreate_202_response' + description: Successful response "422": content: application/json: schema: $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Deletes a push credential + description: Unprocessable entity. Check the 'detail' field in response + for details. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Create a Public Internet Gateway tags: - - Push Credentials + - Public Internet Gateways x-latency-category: responsive + x-content-type: application/json x-accepts: application/json - get: - description: Retrieves push credential based on the given `id` - operationId: getPushCredentialById + /public_internet_gateways/{id}: + delete: + description: Delete a Public Internet Gateway. + operationId: PublicInternetGatewayDelete parameters: - - description: The unique identifier of a push credential + - description: Identifies the resource. explode: false in: path - name: push_credential_id + name: id required: true schema: - example: 0ccc7b76-4df3-4bca-a05a-3da1ecc389f0 + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple @@ -15250,83 +15554,50 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PushCredentialResponse' - description: Successful get push credential response - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Resource not found - "422": + $ref: '#/components/schemas/PublicInternetGatewayCreate_202_response' + description: Successful response + default: content: application/json: schema: $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Retrieves a push credential + description: Unexpected error + summary: Delete a Public Internet Gateway tags: - - Push Credentials + - Public Internet Gateways x-latency-category: responsive x-accepts: application/json - patch: - description: Updates a push credential based on the given `id` - operationId: updatePushCredentialById + get: + description: Retrieve a Public Internet Gateway. + operationId: PublicInternetGatewayGet parameters: - - description: The unique identifier of a push credential + - description: Identifies the resource. explode: false in: path - name: push_credential_id + name: id required: true schema: - example: 0ccc7b76-4df3-4bca-a05a-3da1ecc389f0 + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple - requestBody: - content: - application/json: - schema: - oneOf: - - $ref: '#/components/schemas/CreateIosPushCredentialRequest' - - $ref: '#/components/schemas/CreateAndroidPushCredentialRequest' - description: Push credential parameters that need to be sent in the request responses: "200": content: application/json: schema: - $ref: '#/components/schemas/PushCredentialResponse' - description: The push credential was updated successfully - "401": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unauthorized request - "404": - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Resource not found - "422": + $ref: '#/components/schemas/PublicInternetGatewayCreate_202_response' + description: Successful response + default: content: application/json: schema: $ref: '#/components/schemas/Errors' - description: Unable to process request - summary: Updates a push credential + description: Unexpected error + summary: Retrieve a Public Internet Gateway tags: - - Push Credentials + - Public Internet Gateways x-latency-category: responsive - x-contentType: application/json x-accepts: application/json /queues/{queue_name}: get: @@ -15349,7 +15620,7 @@ paths: $ref: '#/components/schemas/Queue_Response' description: Successful response with details about a queue. "404": - description: Conference does not exist + description: Fax does not exist summary: Retrieve a call queue tags: - Queue Commands @@ -15371,7 +15642,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -15381,7 +15652,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -15397,7 +15668,7 @@ paths: $ref: '#/components/schemas/List_Queue_Calls_Response' description: Successful response with a list of calls in a queue. "404": - description: Conference does not exist + description: Fax does not exist summary: Retrieve calls from a queue tags: - Queue Commands @@ -15432,7 +15703,7 @@ paths: $ref: '#/components/schemas/Queue_Call_Response' description: Successful response with details about a call in a queue. "404": - description: Conference does not exist + description: Fax does not exist summary: Retrieve a call from a queue tags: - Queue Commands @@ -15446,7 +15717,7 @@ paths: - description: Return only recordings associated with a given conference explode: true in: query - name: filter[conference_id] + name: "filter[conference_id]" required: false schema: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 @@ -15456,7 +15727,7 @@ paths: datetime explode: true in: query - name: filter[created_at][gte] + name: "filter[created_at][gte]" required: false schema: example: 2019-03-29T11:10:00Z @@ -15466,7 +15737,7 @@ paths: datetime explode: true in: query - name: filter[created_at][lte] + name: "filter[created_at][lte]" required: false schema: example: 2019-03-29T11:10:00Z @@ -15475,7 +15746,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -15485,7 +15756,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -15501,7 +15772,8 @@ paths: $ref: '#/components/schemas/List_Recordings_Response' description: Successful response with a list of recordings. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "422": description: Unprocessable entity summary: List recordings @@ -15531,14 +15803,37 @@ paths: $ref: '#/components/schemas/Get_Recording_Response' description: Successful response with details about a recording. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": - description: Conference does not exist + description: Fax does not exist summary: Retrieve a recording tags: - Recordings Commands x-latency-category: interactive x-accepts: application/json + /regions: + get: + description: List all regions and the interfaces that region supports + operationId: RegionList + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/RegionList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all Regions + tags: + - Regions + x-latency-category: responsive + x-accepts: application/json /reports/batch_mdr_reports: get: description: 'Fetch all previous requests for messaging detail reports. Messaging @@ -15548,7 +15843,7 @@ paths: - description: Page number explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -15558,7 +15853,7 @@ paths: - description: Size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -15601,7 +15896,7 @@ paths: tags: - MDR Detail Reports x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /reports/batch_mdr_reports/{id}: delete: @@ -15742,7 +16037,7 @@ paths: - description: Page number explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -15752,7 +16047,7 @@ paths: - description: Size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -15795,7 +16090,7 @@ paths: tags: - MDR Usage Reports x-latency-category: background - x-contentType: '*/*' + x-content-type: '*/*' x-accepts: application/json /reports/mdr_usage_reports/sync: get: @@ -16025,6 +16320,132 @@ paths: - MDR Detail Reports x-latency-category: interactive x-accepts: application/json + /reports/wdrs: + get: + description: 'Fetch all Wdr records ' + operationId: getPaginatedWdrs + parameters: + - description: Start date + explode: true + in: query + name: start_date + required: false + schema: + example: 2021-05-01T00:00:00Z + type: string + style: form + - description: End date + explode: true + in: query + name: end_date + required: false + schema: + example: 2021-06-01T00:00:00Z + type: string + style: form + - explode: true + in: query + name: id + required: false + schema: + description: WDR uuid + example: e093fbe0-5bde-11eb-ae93-0242ac130002 + type: string + style: form + - explode: true + in: query + name: mcc + required: false + schema: + description: Mobile country code + example: "204" + type: string + style: form + - explode: true + in: query + name: mnc + required: false + schema: + description: Mobile network code + example: "01" + type: string + style: form + - explode: true + in: query + name: imsi + required: false + schema: + description: International mobile subscriber identity + example: "123456" + type: string + style: form + - explode: true + in: query + name: sim_group_name + required: false + schema: + description: Sim group name + example: sim name + type: string + style: form + - explode: true + in: query + name: sim_group_id + required: false + schema: + description: Sim group unique identifier + example: f05a189f-7c46-4531-ac56-1460dc465a42 + type: string + style: form + - explode: true + in: query + name: sim_card_id + required: false + schema: + description: Sim card unique identifier + example: 877f80a6-e5b2-4687-9a04-88076265720f + type: string + style: form + - explode: true + in: query + name: phone_number + required: false + schema: + description: Phone number + example: +12345678910 + type: string + style: form + - description: Page number + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + format: int32 + type: integer + style: form + - description: Size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + format: int32 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/ExternalWdrGetDetailResponse' + description: Successful + tags: + - WDR Detail Reports + x-latency-category: interactive + x-accepts: application/json /requirement_types: get: description: List all requirement types ordered by created_at descending @@ -16034,18 +16455,18 @@ paths: string. explode: true in: query - name: filter[name][contains] + name: "filter[name][contains]" required: false schema: example: utility bill type: string style: form - - description: Specifies the sort order for results. If you want to sort by - a field in ascending order, include it as a sort parameter. If you want - to sort in descending order, prepend a `-` in front of the field name. + - description: "Specifies the sort order for results. If you want to sort by\ + \ a field in ascending order, include it as a sort parameter. If you want\ + \ to sort in descending order, prepend a `-` in front of the field name." explode: true in: query - name: sort[] + name: "sort[]" required: false schema: enum: @@ -16060,7 +16481,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doc_Reqs_List_Requirement_Types_Response' + $ref: '#/components/schemas/docReqsListRequirementTypes_200_response' description: Successful response default: content: @@ -16093,7 +16514,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doc_Reqs_Requirement_Type_Response' + $ref: '#/components/schemas/docReqsRetrieveRequirementType_200_response' description: Successful response default: content: @@ -16108,14 +16529,14 @@ paths: x-accepts: application/json /requirements: get: - description: List all requirements with filtering, sorting, and pagination + description: "List all requirements with filtering, sorting, and pagination" operationId: listRequirements parameters: - description: Filters results to those applying to a 2-character (ISO 3166-1 alpha-2) country code explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: example: US @@ -16124,7 +16545,7 @@ paths: - description: Filters results to those applying to a specific `phone_number_type` explode: true in: query - name: filter[phone_number_type] + name: "filter[phone_number_type]" required: false schema: enum: @@ -16137,7 +16558,7 @@ paths: - description: Filters requirements to those applying to a specific action. explode: true in: query - name: filter[action] + name: "filter[action]" required: false schema: enum: @@ -16146,12 +16567,12 @@ paths: example: porting type: string style: form - - description: Specifies the sort order for results. If you want to sort by - a field in ascending order, include it as a sort parameter. If you want - to sort in descending order, prepend a `-` in front of the field name. + - description: "Specifies the sort order for results. If you want to sort by\ + \ a field in ascending order, include it as a sort parameter. If you want\ + \ to sort in descending order, prepend a `-` in front of the field name." explode: true in: query - name: sort[] + name: "sort[]" required: false schema: enum: @@ -16165,7 +16586,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -16175,7 +16596,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -16188,7 +16609,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Requirements_Response' + $ref: '#/components/schemas/listRequirements_200_response' description: Successful response default: content: @@ -16221,7 +16642,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Doc_Reqs_Requirement_Response' + $ref: '#/components/schemas/docReqsRetrieveDocumentRequirements_200_response' description: Successful response default: content: @@ -16236,13 +16657,14 @@ paths: x-accepts: application/json /room_compositions: get: + description: "" operationId: ListRoomCompositions parameters: - description: ISO 8601 date for filtering room compositions created on that date. explode: true in: query - name: filter[date_created_at][eq] + name: "filter[date_created_at][eq]" required: false schema: example: 2021-04-25 @@ -16253,7 +16675,7 @@ paths: date. explode: true in: query - name: filter[date_created_at][gte] + name: "filter[date_created_at][gte]" required: false schema: example: 2021-04-25 @@ -16264,7 +16686,7 @@ paths: that date. explode: true in: query - name: filter[date_created_at][lte] + name: "filter[date_created_at][lte]" required: false schema: example: 2021-04-25 @@ -16274,7 +16696,7 @@ paths: - description: The session_id for filtering room compositions. explode: true in: query - name: filter[session_id] + name: "filter[session_id]" required: false schema: example: 92e7d459-bcc5-4386-9f5f-6dd14a82588d @@ -16284,7 +16706,7 @@ paths: - description: The status for filtering room compositions. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -16297,7 +16719,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -16308,7 +16730,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -16320,7 +16742,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Compositions_Response' + $ref: '#/components/schemas/ListRoomCompositions_200_response' description: List room compositions response. summary: View a list of room compositions. tags: @@ -16343,7 +16765,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Room_Composition_Response' + $ref: '#/components/schemas/CreateRoomComposition_202_response' description: Create room composition response. "422": content: @@ -16357,7 +16779,7 @@ paths: - Room Compositions x-endpoint-cost: heavy x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /room_compositions/{room_composition_id}: delete: @@ -16407,7 +16829,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Composition_Response' + $ref: '#/components/schemas/CreateRoomComposition_202_response' description: Get room composition response. "404": content: @@ -16423,13 +16845,14 @@ paths: x-accepts: application/json /room_participants: get: + description: "" operationId: ListRoomParticipants parameters: - description: ISO 8601 date for filtering room participants that joined on that date. explode: true in: query - name: filter[date_joined_at][eq] + name: "filter[date_joined_at][eq]" required: false schema: example: 2021-04-25 @@ -16440,7 +16863,7 @@ paths: that date. explode: true in: query - name: filter[date_joined_at][gte] + name: "filter[date_joined_at][gte]" required: false schema: example: 2021-04-25 @@ -16451,7 +16874,7 @@ paths: that date. explode: true in: query - name: filter[date_joined_at][lte] + name: "filter[date_joined_at][lte]" required: false schema: example: 2021-04-25 @@ -16462,7 +16885,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][eq] + name: "filter[date_updated_at][eq]" required: false schema: example: 2021-04-25 @@ -16473,7 +16896,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][gte] + name: "filter[date_updated_at][gte]" required: false schema: example: 2021-04-25 @@ -16484,7 +16907,7 @@ paths: that date. explode: true in: query - name: filter[date_updated_at][lte] + name: "filter[date_updated_at][lte]" required: false schema: example: 2021-04-25 @@ -16495,7 +16918,7 @@ paths: date. explode: true in: query - name: filter[date_left_at][eq] + name: "filter[date_left_at][eq]" required: false schema: example: 2021-04-25 @@ -16506,7 +16929,7 @@ paths: that date. explode: true in: query - name: filter[date_left_at][gte] + name: "filter[date_left_at][gte]" required: false schema: example: 2021-04-25 @@ -16517,7 +16940,7 @@ paths: that date. explode: true in: query - name: filter[date_left_at][lte] + name: "filter[date_left_at][lte]" required: false schema: example: 2021-04-25 @@ -16527,7 +16950,7 @@ paths: - description: Filter room participants based on the context. explode: true in: query - name: filter[context] + name: "filter[context]" required: false schema: example: Alice @@ -16536,7 +16959,7 @@ paths: - description: Session_id for filtering room participants. explode: true in: query - name: filter[session_id] + name: "filter[session_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -16545,7 +16968,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -16556,7 +16979,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -16568,7 +16991,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Participants_Response' + $ref: '#/components/schemas/ListRoomParticipants_200_response' description: List room participants response. summary: View a list of room participants. tags: @@ -16595,7 +17018,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Participant_Response' + $ref: '#/components/schemas/ViewRoomParticipant_200_response' description: Get room participant response. "404": content: @@ -16611,12 +17034,13 @@ paths: x-accepts: application/json /room_recordings: delete: + description: "" operationId: DeleteRoomRecordings parameters: - description: ISO 8601 date for filtering room recordings ended on that date. explode: true in: query - name: filter[date_ended_at][eq] + name: "filter[date_ended_at][eq]" required: false schema: example: 2021-04-25 @@ -16627,7 +17051,7 @@ paths: date. explode: true in: query - name: filter[date_ended_at][gte] + name: "filter[date_ended_at][gte]" required: false schema: example: 2021-04-25 @@ -16638,7 +17062,7 @@ paths: date. explode: true in: query - name: filter[date_ended_at][lte] + name: "filter[date_ended_at][lte]" required: false schema: example: 2021-04-25 @@ -16648,7 +17072,7 @@ paths: - description: ISO 8601 date for filtering room recordings started on that date. explode: true in: query - name: filter[date_started_at][eq] + name: "filter[date_started_at][eq]" required: false schema: example: 2021-04-25 @@ -16659,7 +17083,7 @@ paths: date. explode: true in: query - name: filter[date_started_at][gte] + name: "filter[date_started_at][gte]" required: false schema: example: 2021-04-25 @@ -16670,7 +17094,7 @@ paths: date. explode: true in: query - name: filter[date_started_at][lte] + name: "filter[date_started_at][lte]" required: false schema: example: 2021-04-25 @@ -16680,7 +17104,7 @@ paths: - description: room_id for filtering room recordings. explode: true in: query - name: filter[room_id] + name: "filter[room_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -16690,7 +17114,7 @@ paths: - description: participant_id for filtering room recordings. explode: true in: query - name: filter[participant_id] + name: "filter[participant_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -16700,7 +17124,7 @@ paths: - description: session_id for filtering room recordings. explode: true in: query - name: filter[session_id] + name: "filter[session_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -16710,7 +17134,7 @@ paths: - description: status for filtering room recordings. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: example: completed @@ -16719,7 +17143,7 @@ paths: - description: type for filtering room recordings. explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: example: audio @@ -16728,7 +17152,7 @@ paths: - description: duration_secs equal for filtering room recordings. explode: true in: query - name: filter[duration_secs][eq] + name: "filter[duration_secs][eq]" required: false schema: example: 20 @@ -16737,7 +17161,7 @@ paths: - description: duration_secs less or equal for filtering room recordings. explode: true in: query - name: filter[duration_secs][lte] + name: "filter[duration_secs][lte]" required: false schema: example: 20 @@ -16746,7 +17170,7 @@ paths: - description: duration_secs greater or equal for filtering room recordings. explode: true in: query - name: filter[duration_secs][gte] + name: "filter[duration_secs][gte]" required: false schema: example: 20 @@ -16755,7 +17179,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -16766,7 +17190,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -16794,12 +17218,13 @@ paths: x-latency-category: responsive x-accepts: application/json get: + description: "" operationId: ListRoomRecordings parameters: - description: ISO 8601 date for filtering room recordings ended on that date. explode: true in: query - name: filter[date_ended_at][eq] + name: "filter[date_ended_at][eq]" required: false schema: example: 2021-04-25 @@ -16810,7 +17235,7 @@ paths: date. explode: true in: query - name: filter[date_ended_at][gte] + name: "filter[date_ended_at][gte]" required: false schema: example: 2021-04-25 @@ -16821,7 +17246,7 @@ paths: date. explode: true in: query - name: filter[date_ended_at][lte] + name: "filter[date_ended_at][lte]" required: false schema: example: 2021-04-25 @@ -16831,7 +17256,7 @@ paths: - description: ISO 8601 date for filtering room recordings started on that date. explode: true in: query - name: filter[date_started_at][eq] + name: "filter[date_started_at][eq]" required: false schema: example: 2021-04-25 @@ -16842,7 +17267,7 @@ paths: date. explode: true in: query - name: filter[date_started_at][gte] + name: "filter[date_started_at][gte]" required: false schema: example: 2021-04-25 @@ -16853,7 +17278,7 @@ paths: date. explode: true in: query - name: filter[date_started_at][lte] + name: "filter[date_started_at][lte]" required: false schema: example: 2021-04-25 @@ -16863,7 +17288,7 @@ paths: - description: room_id for filtering room recordings. explode: true in: query - name: filter[room_id] + name: "filter[room_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -16873,7 +17298,7 @@ paths: - description: participant_id for filtering room recordings. explode: true in: query - name: filter[participant_id] + name: "filter[participant_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -16883,7 +17308,7 @@ paths: - description: session_id for filtering room recordings. explode: true in: query - name: filter[session_id] + name: "filter[session_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -16893,7 +17318,7 @@ paths: - description: status for filtering room recordings. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: example: completed @@ -16902,7 +17327,7 @@ paths: - description: type for filtering room recordings. explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: example: audio @@ -16911,7 +17336,7 @@ paths: - description: duration_secs equal for filtering room recordings. explode: true in: query - name: filter[duration_secs][eq] + name: "filter[duration_secs][eq]" required: false schema: example: 20 @@ -16920,7 +17345,7 @@ paths: - description: duration_secs less or equal for filtering room recordings. explode: true in: query - name: filter[duration_secs][lte] + name: "filter[duration_secs][lte]" required: false schema: example: 20 @@ -16929,7 +17354,7 @@ paths: - description: duration_secs greater or equal for filtering room recordings. explode: true in: query - name: filter[duration_secs][gte] + name: "filter[duration_secs][gte]" required: false schema: example: 20 @@ -16938,7 +17363,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -16949,7 +17374,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -16961,7 +17386,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Recordings_Response' + $ref: '#/components/schemas/ListRoomRecordings_200_response' description: List room recordings response. summary: View a list of room recordings. tags: @@ -17017,7 +17442,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Recording_Response' + $ref: '#/components/schemas/ViewRoomRecording_200_response' description: Get room recording response. "404": content: @@ -17033,12 +17458,13 @@ paths: x-accepts: application/json /room_sessions: get: + description: "" operationId: ListRoomSessions parameters: - description: ISO 8601 date for filtering room sessions created on that date. explode: true in: query - name: filter[date_created_at][eq] + name: "filter[date_created_at][eq]" required: false schema: example: 2021-04-25 @@ -17049,7 +17475,7 @@ paths: date. explode: true in: query - name: filter[date_created_at][gte] + name: "filter[date_created_at][gte]" required: false schema: example: 2021-04-25 @@ -17060,7 +17486,7 @@ paths: date. explode: true in: query - name: filter[date_created_at][lte] + name: "filter[date_created_at][lte]" required: false schema: example: 2021-04-25 @@ -17070,7 +17496,7 @@ paths: - description: ISO 8601 date for filtering room sessions updated on that date. explode: true in: query - name: filter[date_updated_at][eq] + name: "filter[date_updated_at][eq]" required: false schema: example: 2021-04-25 @@ -17081,7 +17507,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][gte] + name: "filter[date_updated_at][gte]" required: false schema: example: 2021-04-25 @@ -17092,7 +17518,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][lte] + name: "filter[date_updated_at][lte]" required: false schema: example: 2021-04-25 @@ -17102,7 +17528,7 @@ paths: - description: ISO 8601 date for filtering room sessions ended on that date. explode: true in: query - name: filter[date_ended_at][eq] + name: "filter[date_ended_at][eq]" required: false schema: example: 2021-04-25 @@ -17112,7 +17538,7 @@ paths: - description: ISO 8601 date for filtering room sessions ended after that date. explode: true in: query - name: filter[date_ended_at][gte] + name: "filter[date_ended_at][gte]" required: false schema: example: 2021-04-25 @@ -17122,7 +17548,7 @@ paths: - description: ISO 8601 date for filtering room sessions ended before that date. explode: true in: query - name: filter[date_ended_at][lte] + name: "filter[date_ended_at][lte]" required: false schema: example: 2021-04-25 @@ -17132,7 +17558,7 @@ paths: - description: Room_id for filtering room sessions. explode: true in: query - name: filter[room_id] + name: "filter[room_id]" required: false schema: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -17141,7 +17567,7 @@ paths: - description: Filter active or inactive room sessions. explode: true in: query - name: filter[active] + name: "filter[active]" required: false schema: example: true @@ -17159,7 +17585,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -17170,7 +17596,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -17182,7 +17608,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Sessions_Response' + $ref: '#/components/schemas/ListRoomSessions_200_response' description: List room sessions response. summary: View a list of room sessions. tags: @@ -17218,7 +17644,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Session_Response' + $ref: '#/components/schemas/ViewRoomSession_200_response' description: Get room session response. "404": content: @@ -17232,8 +17658,39 @@ paths: x-endpoint-cost: light x-latency-category: responsive x-accepts: application/json + /room_sessions/{room_session_id}/actions/end: + post: + description: "Note: this will also kick all participants currently present in\ + \ the room" + operationId: EndSession + parameters: + - description: The unique identifier of a room session. + explode: false + in: path + name: room_session_id + required: true + schema: + example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/EndSession_200_response' + description: Success Action Response + security: [] + summary: End a room session. + tags: + - Room Sessions + x-endpoint-cost: medium + x-latency-category: responsive + x-accepts: application/json /room_sessions/{room_session_id}/actions/kick: post: + description: "" operationId: KickParticipantInSession parameters: - description: The unique identifier of a room session. @@ -17258,7 +17715,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Action_Success_Response' + $ref: '#/components/schemas/EndSession_200_response' description: Success Action Response security: [] summary: Kick participants from a room session. @@ -17266,10 +17723,11 @@ paths: - Room Sessions x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /room_sessions/{room_session_id}/actions/mute: post: + description: "" operationId: MuteParticipantInSession parameters: - description: The unique identifier of a room session. @@ -17294,7 +17752,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Action_Success_Response' + $ref: '#/components/schemas/EndSession_200_response' description: Success Action Response security: [] summary: Mute participants in room session. @@ -17302,10 +17760,11 @@ paths: - Room Sessions x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /room_sessions/{room_session_id}/actions/unmute: post: + description: "" operationId: UnmuteParticipantInSession parameters: - description: The unique identifier of a room session. @@ -17330,7 +17789,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Action_Success_Response' + $ref: '#/components/schemas/EndSession_200_response' description: Success Action Response security: [] summary: Unmute participants in room session. @@ -17338,10 +17797,11 @@ paths: - Room Sessions x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /room_sessions/{room_session_id}/participants: get: + description: "" operationId: NestedListRoomParticipants parameters: - description: The unique identifier of a room session. @@ -17358,7 +17818,7 @@ paths: that date. explode: true in: query - name: filter[date_joined_at][eq] + name: "filter[date_joined_at][eq]" required: false schema: example: 2021-04-25 @@ -17369,7 +17829,7 @@ paths: that date. explode: true in: query - name: filter[date_joined_at][gte] + name: "filter[date_joined_at][gte]" required: false schema: example: 2021-04-25 @@ -17380,7 +17840,7 @@ paths: that date. explode: true in: query - name: filter[date_joined_at][lte] + name: "filter[date_joined_at][lte]" required: false schema: example: 2021-04-25 @@ -17391,7 +17851,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][eq] + name: "filter[date_updated_at][eq]" required: false schema: example: 2021-04-25 @@ -17402,7 +17862,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][gte] + name: "filter[date_updated_at][gte]" required: false schema: example: 2021-04-25 @@ -17413,7 +17873,7 @@ paths: that date. explode: true in: query - name: filter[date_updated_at][lte] + name: "filter[date_updated_at][lte]" required: false schema: example: 2021-04-25 @@ -17424,7 +17884,7 @@ paths: date. explode: true in: query - name: filter[date_left_at][eq] + name: "filter[date_left_at][eq]" required: false schema: example: 2021-04-25 @@ -17435,7 +17895,7 @@ paths: that date. explode: true in: query - name: filter[date_left_at][gte] + name: "filter[date_left_at][gte]" required: false schema: example: 2021-04-25 @@ -17446,7 +17906,7 @@ paths: that date. explode: true in: query - name: filter[date_left_at][lte] + name: "filter[date_left_at][lte]" required: false schema: example: 2021-04-25 @@ -17456,7 +17916,7 @@ paths: - description: Filter room participants based on the context. explode: true in: query - name: filter[context] + name: "filter[context]" required: false schema: example: Alice @@ -17465,7 +17925,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -17476,7 +17936,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -17488,7 +17948,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Participants_Response' + $ref: '#/components/schemas/ListRoomParticipants_200_response' description: List room participants response. summary: View a list of room participants. tags: @@ -17498,12 +17958,13 @@ paths: x-accepts: application/json /rooms: get: + description: "" operationId: ListRooms parameters: - description: ISO 8601 date for filtering rooms created on that date. explode: true in: query - name: filter[date_created_at][eq] + name: "filter[date_created_at][eq]" required: false schema: example: 2021-04-25 @@ -17513,7 +17974,7 @@ paths: - description: ISO 8601 date for filtering rooms created after that date. explode: true in: query - name: filter[date_created_at][gte] + name: "filter[date_created_at][gte]" required: false schema: example: 2021-04-25 @@ -17523,7 +17984,7 @@ paths: - description: ISO 8601 date for filtering rooms created before that date. explode: true in: query - name: filter[date_created_at][lte] + name: "filter[date_created_at][lte]" required: false schema: example: 2021-04-25 @@ -17533,7 +17994,7 @@ paths: - description: ISO 8601 date for filtering rooms updated on that date. explode: true in: query - name: filter[date_updated_at][eq] + name: "filter[date_updated_at][eq]" required: false schema: example: 2021-04-25 @@ -17543,7 +18004,7 @@ paths: - description: ISO 8601 date for filtering rooms updated after that date. explode: true in: query - name: filter[date_updated_at][gte] + name: "filter[date_updated_at][gte]" required: false schema: example: 2021-04-25 @@ -17553,7 +18014,7 @@ paths: - description: ISO 8601 date for filtering rooms updated before that date. explode: true in: query - name: filter[date_updated_at][lte] + name: "filter[date_updated_at][lte]" required: false schema: example: 2021-04-25 @@ -17563,7 +18024,7 @@ paths: - description: Unique_name for filtering rooms. explode: true in: query - name: filter[unique_name] + name: "filter[unique_name]" required: false schema: example: my_video_room @@ -17581,7 +18042,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -17592,7 +18053,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -17604,7 +18065,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Rooms_Response' + $ref: '#/components/schemas/ListRooms_200_response' description: List rooms response. summary: View a list of rooms. tags: @@ -17627,7 +18088,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Room_Response' + $ref: '#/components/schemas/CreateRoom_201_response' description: Create room response. "422": content: @@ -17641,13 +18102,13 @@ paths: - Rooms x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /rooms/{room_id}: delete: - description: Synchronously delete a Room. Participants from that room will be - kicked out, they won't be able to join that room anymore, and you won't be - charged anymore for that room. + description: "Synchronously delete a Room. Participants from that room will\ + \ be kicked out, they won't be able to join that room anymore, and you won't\ + \ be charged anymore for that room." operationId: DeleteRoom parameters: - description: The unique identifier of a room. @@ -17702,7 +18163,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Response' + $ref: '#/components/schemas/CreateRoom_201_response' description: Get room response. "404": content: @@ -17742,10 +18203,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Patch_Room_Response' + $ref: '#/components/schemas/CreateRoom_201_response' description: Update room response. "401": - description: Unauthorized + description: Unauthorized response. Happens when the current user is not + a manager account. "404": content: application/json: @@ -17759,14 +18221,14 @@ paths: - Rooms x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /rooms/{room_id}/actions/generate_join_client_token: post: - description: Synchronously create an Client Token to join a Room. Client Token - is necessary to join a Telnyx Room. Client Token will expire after `token_ttl_secs`, - a Refresh Token is also provided to refresh a Client Token, the Refresh Token - expires after `refresh_token_ttl_secs`. + description: "Synchronously create an Client Token to join a Room. Client Token\ + \ is necessary to join a Telnyx Room. Client Token will expire after `token_ttl_secs`,\ + \ a Refresh Token is also provided to refresh a Client Token, the Refresh\ + \ Token expires after `refresh_token_ttl_secs`." operationId: CreateRoomClientToken parameters: - description: The unique identifier of a room. @@ -17791,7 +18253,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Room_Client_Token_Response' + $ref: '#/components/schemas/CreateRoomClientToken_201_response' description: Create room client token response. "403": content: @@ -17804,7 +18266,7 @@ paths: - Rooms Client Tokens x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /rooms/{room_id}/actions/refresh_client_token: post: @@ -17834,7 +18296,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Refresh_Room_Client_Token_Response' + $ref: '#/components/schemas/RefreshRoomClientToken_201_response' description: Refresh room client token response. "403": content: @@ -17848,10 +18310,11 @@ paths: - Rooms Client Tokens x-endpoint-cost: light x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /rooms/{room_id}/sessions: get: + description: "" operationId: NestedListRoomSessions parameters: - description: The unique identifier of a room. @@ -17867,7 +18330,7 @@ paths: - description: ISO 8601 date for filtering room sessions created on that date. explode: true in: query - name: filter[date_created_at][eq] + name: "filter[date_created_at][eq]" required: false schema: example: 2021-04-25 @@ -17878,7 +18341,7 @@ paths: date. explode: true in: query - name: filter[date_created_at][gte] + name: "filter[date_created_at][gte]" required: false schema: example: 2021-04-25 @@ -17889,7 +18352,7 @@ paths: date. explode: true in: query - name: filter[date_created_at][lte] + name: "filter[date_created_at][lte]" required: false schema: example: 2021-04-25 @@ -17899,7 +18362,7 @@ paths: - description: ISO 8601 date for filtering room sessions updated on that date. explode: true in: query - name: filter[date_updated_at][eq] + name: "filter[date_updated_at][eq]" required: false schema: example: 2021-04-25 @@ -17910,7 +18373,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][gte] + name: "filter[date_updated_at][gte]" required: false schema: example: 2021-04-25 @@ -17921,7 +18384,7 @@ paths: date. explode: true in: query - name: filter[date_updated_at][lte] + name: "filter[date_updated_at][lte]" required: false schema: example: 2021-04-25 @@ -17931,7 +18394,7 @@ paths: - description: ISO 8601 date for filtering room sessions ended on that date. explode: true in: query - name: filter[date_ended_at][eq] + name: "filter[date_ended_at][eq]" required: false schema: example: 2021-04-25 @@ -17941,7 +18404,7 @@ paths: - description: ISO 8601 date for filtering room sessions ended after that date. explode: true in: query - name: filter[date_ended_at][gte] + name: "filter[date_ended_at][gte]" required: false schema: example: 2021-04-25 @@ -17951,7 +18414,7 @@ paths: - description: ISO 8601 date for filtering room sessions ended before that date. explode: true in: query - name: filter[date_ended_at][lte] + name: "filter[date_ended_at][lte]" required: false schema: example: 2021-04-25 @@ -17961,7 +18424,7 @@ paths: - description: Filter active or inactive room sessions. explode: true in: query - name: filter[active] + name: "filter[active]" required: false schema: example: true @@ -17979,7 +18442,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -17990,7 +18453,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -18002,7 +18465,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Sessions_Response' + $ref: '#/components/schemas/ListRoomSessions_200_response' description: List room sessions response. summary: View a list of room sessions. tags: @@ -18017,7 +18480,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -18027,7 +18490,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -18035,12 +18498,12 @@ paths: minimum: 1 type: integer style: form - - description: Filter by Messaging Profile ID. Use the string `null` for phone - numbers without assigned profiles. A synonym for the `/messaging_profiles/{id}/short_codes` - endpoint when querying about an extant profile. + - description: "Filter by Messaging Profile ID. Use the string `null` for phone\ + \ numbers without assigned profiles. A synonym for the `/messaging_profiles/{id}/short_codes`\ + \ endpoint when querying about an extant profile." explode: true in: query - name: filter[messaging_profile_id] + name: "filter[messaging_profile_id]" required: false schema: type: string @@ -18096,9 +18559,9 @@ paths: x-latency-category: responsive x-accepts: application/json patch: - description: Update the settings for a specific short code. To unbind a short - code from a profile, set the `messaging_profile_id` to `null` or an empty - string. + description: "Update the settings for a specific short code. To unbind a short\ + \ code from a profile, set the `messaging_profile_id` to `null` or an empty\ + \ string." operationId: updateShortCode parameters: - description: The id of the short code @@ -18134,7 +18597,7 @@ paths: tags: - Short Codes x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_actions: get: @@ -18146,7 +18609,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -18156,7 +18619,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -18167,7 +18630,7 @@ paths: - description: A valid SIM card ID. explode: true in: query - name: filter[sim_card_id] + name: "filter[sim_card_id]" required: false schema: example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 @@ -18177,7 +18640,7 @@ paths: - description: Filter by a specific status of the resource's lifecycle. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -18187,10 +18650,20 @@ paths: example: in-progress type: string style: form + - description: Filter by a bulk SIM card action ID. + explode: true + in: query + name: "filter[bulk_sim_card_action_id]" + required: false + schema: + example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 + format: uuid + type: string + style: form - description: Filter by action type. explode: true in: query - name: filter[action_type] + name: "filter[action_type]" required: false schema: enum: @@ -18208,7 +18681,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SimCard_Action_Collection_Response' + $ref: '#/components/schemas/ListSIMCardActions_200_response' description: Successful response default: content: @@ -18242,7 +18715,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Action_Response' + $ref: '#/components/schemas/SimCardActionGet_200_response' description: Successful Response default: content: @@ -18264,7 +18737,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -18274,7 +18747,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -18285,7 +18758,7 @@ paths: - description: A valid SIM card ID. explode: true in: query - name: filter[sim_card_id] + name: "filter[sim_card_id]" required: false schema: example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 @@ -18297,7 +18770,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SimCard_Data_Usage_Notification_Collection' + $ref: '#/components/schemas/ListSimCardDataUsageNotifications_200_response' description: Successful response default: content: @@ -18314,30 +18787,17 @@ paths: description: Creates a new SIM card data usage notification. operationId: SimCardDataUsageNotificationsPost requestBody: - $ref: '#/components/requestBodies/Create_SIM_Card_Data_Usage_Notification_Request' content: application/json: schema: - properties: - sim_card_id: - description: The identification UUID of the related SIM card resource. - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - format: uuid - type: string - threshold: - $ref: '#/components/schemas/_sim_card_data_usage_notifications_threshold' - required: - - sim_card_id - - threshold - title: Create SIM Card Data Usage Notification Request - type: object + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_request' required: true responses: "201": content: application/json: schema: - $ref: '#/components/schemas/Create_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response default: content: @@ -18349,7 +18809,7 @@ paths: tags: - SIM Cards x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_data_usage_notifications/{id}: delete: @@ -18371,7 +18831,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response default: content: @@ -18403,7 +18863,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response "404": content: @@ -18447,7 +18907,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response default: content: @@ -18459,7 +18919,7 @@ paths: tags: - SIM Cards x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_group_actions: get: @@ -18471,7 +18931,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -18481,7 +18941,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -18492,7 +18952,7 @@ paths: - description: A valid SIM card group ID. explode: true in: query - name: filter[sim_card_group_id] + name: "filter[sim_card_group_id]" required: false schema: example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 @@ -18502,7 +18962,7 @@ paths: - description: Filter by a specific status of the resource's lifecycle. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -18515,7 +18975,7 @@ paths: - description: Filter by action type. explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: enum: @@ -18529,7 +18989,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SimCard_Group_Action_Collection_Response' + $ref: '#/components/schemas/SimCardGroupActionsGet_200_response' description: Successful response default: content: @@ -18563,7 +19023,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Group_Action_Response' + $ref: '#/components/schemas/SimCardGroupActionGet_200_response' description: Successful Response default: content: @@ -18585,7 +19045,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -18595,7 +19055,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -18606,18 +19066,28 @@ paths: - description: A valid SIM card group name. explode: true in: query - name: filter[name] + name: "filter[name]" required: false schema: format: uuid type: string style: form + - description: A Private Wireless Gateway ID associated with the group. + explode: true + in: query + name: "filter[private_wireless_gateway_id]" + required: false + schema: + example: 7606c6d3-ff7c-49c1-943d-68879e9d584d + format: uuid + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Get_All_Sim_Card_Groups_Response' + $ref: '#/components/schemas/SimCardGroupsGetAll_200_response' description: Successful response default: content: @@ -18644,7 +19114,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Sim_Card_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response default: content: @@ -18656,7 +19126,7 @@ paths: tags: - SIM Card Groups x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_groups/{id}: delete: @@ -18678,7 +19148,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Sim_Card_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response default: content: @@ -18710,7 +19180,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response default: content: @@ -18748,7 +19218,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_SimCard_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response default: content: @@ -18760,7 +19230,7 @@ paths: tags: - SIM Card Groups x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_groups/{id}/actions/remove_private_wireless_gateway: post: @@ -18785,7 +19255,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Group_Action_Response' + $ref: '#/components/schemas/SimCardGroupActionGet_200_response' description: Successful Response default: content: @@ -18800,13 +19270,13 @@ paths: x-accepts: application/json /sim_card_groups/{id}/actions/set_private_wireless_gateway: post: - description: This action will asynchronously assign a provisioned Private Wireless - Gateway to the SIM card group. Completing this operation defines that all - SIM cards in the SIM card group will get their traffic controlled by the associated - Private Wireless Gateway. This operation will also imply that new SIM cards - assigned to a group will inherit its network definitions. If it's moved to - a different group that doesn't have a Private Wireless Gateway, it'll use - Telnyx's default mobile network configuration. + description: "This action will asynchronously assign a provisioned Private Wireless\ + \ Gateway to the SIM card group. Completing this operation defines that all\ + \ SIM cards in the SIM card group will get their traffic controlled by the\ + \ associated Private Wireless Gateway. This operation will also imply that\ + \ new SIM cards assigned to a group will inherit its network definitions.\ + \ If it's moved to a different group that doesn't have a Private Wireless\ + \ Gateway, it'll use Telnyx's default mobile network configuration." operationId: SetSIMCardGroupPrivateWirelessGateway parameters: - description: Identifies the resource. @@ -18820,28 +19290,17 @@ paths: type: string style: simple requestBody: - $ref: '#/components/requestBodies/Create_Private_Wireless_Gatweway_Request_1' content: application/json: schema: - properties: - private_wireless_gateway_id: - description: The identification of the related Private Wireless - Gateway resource. - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - format: uuid - type: string - required: - - private_wireless_gateway_id - title: Create Private Wireless Gatweway Request - type: object + $ref: '#/components/schemas/SetSIMCardGroupPrivateWirelessGateway_request' required: true responses: "202": content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Group_Action_Response' + $ref: '#/components/schemas/SimCardGroupActionGet_200_response' description: Successful Response default: content: @@ -18853,43 +19312,23 @@ paths: tags: - SIM Card Groups x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_order_preview: post: description: Preview SIM card order purchases. operationId: SimCardOrdersPreview requestBody: - $ref: '#/components/requestBodies/CreateSimCardOrderPreview' content: application/json: schema: - example: - quantity: 21 - address_id: "1293384261075731499" - properties: - quantity: - description: The amount of SIM cards that the user would like to - purchase in the SIM card order. - example: 21 - minimum: 1 - type: integer - address_id: - description: Uniquely identifies the address for the order. - example: "1293384261075731499" - format: int64 - type: string - required: - - address_id - - quantity - title: CreateSimCardOrderPreview - type: object + $ref: '#/components/schemas/SimCardOrdersPreview_request' responses: "202": content: application/json: schema: - $ref: '#/components/schemas/SIMCard_Orders_Preview_Response' + $ref: '#/components/schemas/SimCardOrdersPreview_202_response' description: Successful response "422": content: @@ -18902,7 +19341,7 @@ paths: tags: - SIM Card Orders x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_orders: get: @@ -18913,7 +19352,7 @@ paths: creation date-time. explode: true in: query - name: filter[created_at] + name: "filter[created_at]" required: false schema: example: 2018-02-02T22:25:27.521Z @@ -18924,7 +19363,7 @@ paths: last update date-time. explode: true in: query - name: filter[updated_at] + name: "filter[updated_at]" required: false schema: example: 2018-02-02T22:25:27.521Z @@ -18934,7 +19373,7 @@ paths: - description: Filter orders by how many SIM cards were ordered. explode: true in: query - name: filter[quantity] + name: "filter[quantity]" required: false schema: example: 21 @@ -18943,7 +19382,7 @@ paths: - description: The total monetary amount of the order. explode: true in: query - name: filter[cost.amount] + name: "filter[cost.amount]" required: false schema: example: "2.53" @@ -18952,7 +19391,7 @@ paths: - description: Filter by ISO 4217 currency string. explode: true in: query - name: filter[cost.currency] + name: "filter[cost.currency]" required: false schema: example: USD @@ -18961,7 +19400,7 @@ paths: - description: Uniquely identifies the address for the order. explode: true in: query - name: filter[address.id] + name: "filter[address.id]" required: false schema: example: "1293384261075731499" @@ -18972,7 +19411,7 @@ paths: is located. explode: true in: query - name: filter[address.street_address] + name: "filter[address.street_address]" required: false schema: example: 311 W Superior St @@ -18982,7 +19421,7 @@ paths: for address information. explode: true in: query - name: filter[address.extended_address] + name: "filter[address.extended_address]" required: false schema: example: Suite 504 @@ -18991,7 +19430,7 @@ paths: - description: Filter by the name of the city where the address is located. explode: true in: query - name: filter[address.locality] + name: "filter[address.locality]" required: false schema: example: Chicago @@ -19000,7 +19439,7 @@ paths: - description: Filter by state or province where the address is located. explode: true in: query - name: filter[address.administrative_area] + name: "filter[address.administrative_area]" required: false schema: example: IL @@ -19010,7 +19449,7 @@ paths: origin country code. explode: true in: query - name: filter[address.country_code] + name: "filter[address.country_code]" required: false schema: example: US @@ -19019,7 +19458,7 @@ paths: - description: Filter by postal code for the address. explode: true in: query - name: filter[address.postal_code] + name: "filter[address.postal_code]" required: false schema: example: "60654" @@ -19028,7 +19467,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -19038,7 +19477,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -19051,7 +19490,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_All_Sim_Card_Order_Response' + $ref: '#/components/schemas/SimCardOrdersGet_200_response' description: Successful response default: content: @@ -19078,7 +19517,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Sim_Card_Order_Response' + $ref: '#/components/schemas/SimCardOrdersPost_200_response' description: Successful Response default: content: @@ -19090,7 +19529,7 @@ paths: tags: - SIM Card Orders x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_card_orders/{id}: get: @@ -19112,7 +19551,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Order_Response' + $ref: '#/components/schemas/SimCardOrdersPost_200_response' description: Successful Response "404": content: @@ -19139,7 +19578,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -19149,7 +19588,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -19171,25 +19610,25 @@ paths: - description: A valid SIM card group ID. explode: true in: query - name: filter[sim_card_group_id] + name: "filter[sim_card_group_id]" required: false schema: example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 format: uuid type: string style: form - - description: | - A list of SIM card tags to filter on.

- If the SIM card contains all of the given tags they will be found.

- For example, if the SIM cards have the following tags: - Searching for ['customers', 'test'] returns only the first because it's the only one with both tags.
Searching for test returns the first two SIMs, because both of them have such tag.
Searching for customers returns the first and last SIMs.
+ - description: "A list of SIM card tags to filter on.

\nIf the SIM\ + \ card contains all of the given tags they will\ + \ be found.

\nFor example, if the SIM cards have the following\ + \ tags: \nSearching for ['customers',\ + \ 'test'] returns only the first because it's the only one with both\ + \ tags.
Searching for test returns the first two SIMs,\ + \ because both of them have such tag.
Searching for customers\ + \ returns the first and last SIMs.
\n" explode: true in: query - name: filter[tags] + name: "filter[tags]" required: false schema: example: @@ -19203,18 +19642,34 @@ paths: - description: A search string to partially match for the SIM card's ICCID. explode: true in: query - name: filter[iccid] + name: "filter[iccid]" required: false schema: example: "89310410106543789301" type: string style: form + - description: Filter by a SIM card's status. + explode: true + in: query + name: "filter[status]" + required: false + schema: + items: + enum: + - enabled + - disabled + - standby + - data_limit_exceeded + - unauthorized_imei + type: string + type: array + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/Search_SimCards_Response' + $ref: '#/components/schemas/SimCardsGet_200_response' description: Successful response default: content: @@ -19227,28 +19682,48 @@ paths: - SIM Cards x-latency-category: responsive x-accepts: application/json + /sim_cards/actions/bulk_set_public_ips: + post: + description: "This API triggers an asynchronous operation to set a public IP\ + \ for each of the specified SIM cards.
\nFor each SIM Card a SIM Card\ + \ Action will be generated. The status of the SIM Card Action can be followed\ + \ through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API.\n" + operationId: BulkSetPublicIPs + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BulkSetPublicIPs_request' + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/BulkSetPublicIPs_202_response' + description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. + summary: Request bulk setting SIM card public IPs. + tags: + - SIM Cards + x-latency-category: background + x-content-type: application/json + x-accepts: application/json /sim_cards/actions/validate_registration_codes: post: description: It validates whether SIM card registration codes are valid or not. operationId: postValidateRegistrationCodes requestBody: - $ref: '#/components/requestBodies/Create_SIM_Card_Validate_Request' content: application/json: schema: - description: The object containing the Array of SIM card registration - codes. - example: - registration_codes: - - "123456780" - - "1231231230" - properties: - registration_codes: - items: - type: string - type: array - title: Create SIM Card Validate Request - type: object + $ref: '#/components/schemas/postValidateRegistrationCodes_request' required: true responses: "200": @@ -19267,14 +19742,17 @@ paths: tags: - SIM Cards x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /sim_cards/{id}: delete: - description: |- - The SIM card will be decommissioned, removed from your account and you will stop being charged.
The SIM card won't be able to connect to the network after the deletion is completed, thus making it impossible to consume data.
- Transitioning to the disabled state may take a period of time.
- Until the transition is completed, the SIM card status will be disabling disabling.
In order to re-enable the SIM card, you will need to re-register it. + description: "The SIM card will be decommissioned, removed from your account\ + \ and you will stop being charged.
The SIM card won't be able to connect\ + \ to the network after the deletion is completed, thus making it impossible\ + \ to consume data.
\nTransitioning to the disabled state may take a period\ + \ of time.
\nUntil the transition is completed, the SIM card status will\ + \ be disabling disabling.
In order to re-enable the SIM\ + \ card, you will need to re-register it." operationId: SimCardDelete parameters: - description: Identifies the resource. @@ -19292,7 +19770,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Sim_Card_Response' + $ref: '#/components/schemas/SimCardGet_200_response' description: Successful response default: content: @@ -19335,7 +19813,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Response' + $ref: '#/components/schemas/SimCardGet_200_response' description: Successful response default: content: @@ -19373,7 +19851,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_SimCard_Response' + $ref: '#/components/schemas/SimCardGet_200_response' description: Successful response default: content: @@ -19385,14 +19863,16 @@ paths: tags: - SIM Cards x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json - /sim_cards/{id}/actions/disable: + /sim_cards/{id}/actions/delete_network_preferences: post: - description: | - This API disables a SIM card, disconnecting it from the network and making it impossible to consume data.
- The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the disabled state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. - operationId: SimCardDisable + description: "This API deletes network preferences for a SIM card.
\nThe\ + \ API will trigger an asynchronous operation called a SIM Card Action. Creating\ + \ network preferences may take a period of time. The status of the SIM Card\ + \ Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API.\n" + operationId: DeleteNetworkPreference parameters: - description: Identifies the resource. explode: false @@ -19409,43 +19889,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Action_Response' - description: Successful Response - default: - content: - application/json: - schema: - $ref: '#/components/schemas/Errors' - description: Unexpected error - summary: Request a SIM card disable - tags: - - SIM Cards - x-latency-category: background - x-accepts: application/json - /sim_cards/{id}/actions/enable: - post: - description: | - This API enables a SIM card, connecting it to the network and making it possible to consume data.
- To enable a SIM card, it must be associated with a SIM card group.
- The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the enabled state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. - operationId: SimCardEnable - parameters: - - description: Identifies the resource. - explode: false - in: path - name: id - required: true - schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - format: uuid - type: string - style: simple - responses: - "202": - content: - application/json: - schema: - $ref: '#/components/schemas/SIM_Card_Action_Response' + $ref: '#/components/schemas/SimCardActionGet_200_response' description: Successful Response "422": content: @@ -19460,17 +19904,20 @@ paths: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: Request a SIM card enable + summary: Delete network preferences for a SIM card tags: - SIM Cards x-latency-category: background x-accepts: application/json - /sim_cards/{id}/actions/remove_public_ip: + /sim_cards/{id}/actions/disable: post: - description: |- - This API removes an existing public IP from a SIM card.

- The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. - operationId: RemoveSIMCardPublicIP + description: "This API disables a SIM card, disconnecting it from the network\ + \ and making it impossible to consume data.
\nThe API will trigger an\ + \ asynchronous operation called a SIM Card Action. Transitioning to the disabled\ + \ state may take a period of time. The status of the SIM Card Action can be\ + \ followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API.\n" + operationId: SimCardDisable parameters: - description: Identifies the resource. explode: false @@ -19487,7 +19934,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Action_Response' + $ref: '#/components/schemas/SimCardActionGet_200_response' description: Successful Response default: content: @@ -19495,18 +19942,21 @@ paths: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: Request removing a SIM card public IP + summary: Request a SIM card disable tags: - SIM Cards x-latency-category: background x-accepts: application/json - /sim_cards/{id}/actions/set_public_ip: + /sim_cards/{id}/actions/enable: post: - description: |- - This API makes a SIM card reachable on the public internet by mapping a random public IP to the SIM card.

- The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API.

- Setting a Public IP to a SIM Card incurs a charge and will only succeed if the account has sufficient funds. - operationId: SetSIMCardPublicIP + description: "This API enables a SIM card, connecting it to the network and\ + \ making it possible to consume data.
\nTo enable a SIM card, it must\ + \ be associated with a SIM card group.
\nThe API will trigger an asynchronous\ + \ operation called a SIM Card Action. Transitioning to the enabled state may\ + \ take a period of time. The status of the SIM Card Action can be followed\ + \ through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API.\n" + operationId: SimCardEnable parameters: - description: Identifies the resource. explode: false @@ -19523,26 +19973,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Action_Response' + $ref: '#/components/schemas/SimCardActionGet_200_response' description: Successful Response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. default: content: application/json: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: Request setting a SIM card public IP + summary: Request a SIM card enable tags: - SIM Cards x-latency-category: background x-accepts: application/json - /sim_cards/{id}/actions/set_standby: + /sim_cards/{id}/actions/remove_public_ip: post: - description: | - The SIM card will be able to connect to the network once the process to set it to standby has been completed, thus making it possible to consume data.
- To set a SIM card to standby, it must be associated with SIM card group.
- The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the standby state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. - operationId: SimCardSetStandby + description: "This API removes an existing public IP from a SIM card.

\n\ + \ The API will trigger an asynchronous operation called a SIM Card Action.\ + \ The status of the SIM Card Action can be followed through the [List SIM\ + \ Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API." + operationId: RemoveSIMCardPublicIP parameters: - description: Identifies the resource. explode: false @@ -19559,7 +20017,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Action_Response' + $ref: '#/components/schemas/SimCardActionGet_200_response' description: Successful Response default: content: @@ -19567,21 +20025,30 @@ paths: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: Request setting a SIM card to standby + summary: Request removing a SIM card public IP tags: - SIM Cards x-latency-category: background x-accepts: application/json - /sim_cards/{sim_card_id}/network_preferences: - delete: - description: | - This API asynchronously removes the custom-defined network preferences settings. After this operation is done the Telnyx default settings, the same applied for an unaltered SIM card, will be in place. - operationId: SIMCardNetworkPreferencesDelete + /sim_cards/{id}/actions/set_network_preferences: + post: + description: "This API sets network preferences for a SIM card.
\nEvery\ + \ SIM card has default network preferences defined on Telnyx. These preferences\ + \ will determine how a SIMCard will connect to the network by considering\ + \ a list of preferable operators.

\nThe SIM card needs to be attached\ + \ to the network so this can connect and SMS must be available, otherwise,\ + \ the operation will fail. This preference will only be respected if the network\ + \ is available, otherwise the strongest signal will be used.

\n\ + The API will trigger an asynchronous operation called a SIM Card Action. Creating\ + \ network preferences may take a period of time. The status of the SIM Card\ + \ Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API.\n" + operationId: SetNetworkPreference parameters: - - description: Identifies a SIM card. + - description: Identifies the resource. explode: false in: path - name: sim_card_id + name: id required: true schema: example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -19593,138 +20060,80 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_SIM_Card_Network_Preference_Response' - description: |- - A successful network preferences deletion response.

- The delete won't be done right away - this is an asynchronous operation. The request will return the resource with an in-progress OTA update resource (in the ota_updates node) representing the delete operation. Similarly to the PUT API, the resource will only be deleted when the OTA updated is successfully completed. - default: + $ref: '#/components/schemas/SimCardActionGet_200_response' + description: Successful Response + "422": content: application/json: schema: $ref: '#/components/schemas/Errors' - description: Unexpected error - summary: DELETE network preferences - tags: - - SIM Cards - x-latency-category: responsive - x-accepts: application/json - get: - description: | - It returns the network preferences currently applied in the SIM card. - operationId: SIMCardNetworkPreferencesGet - parameters: - - description: Identifies a SIM card. - explode: false - in: path - name: sim_card_id - required: true - schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - format: uuid - type: string - style: simple - - description: It includes the associated OTA update objects in the response - when present. - explode: true - in: query - name: include_ota_updates - required: false - schema: - default: false - example: true - type: boolean - style: form - responses: - "200": - content: - application/json: - schema: - $ref: '#/components/schemas/SIM_Card_Network_Preference_With_OTA_Updates_Response' - description: A successful network preferences definition response. + description: Unprocessable entity. Check the 'detail' field in response + for details. default: content: application/json: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: Get network preferences + summary: Create or update network preferences for a SIM card tags: - SIM Cards - x-latency-category: responsive + x-latency-category: background x-accepts: application/json - put: - description: | - This API allows setting or updating a SIM card network preference.

- Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.

- There can be multiple scenarios where an operator can be preferred over another, for example, when a specific mobile operator can provide better network latency or better pricing. - operationId: SIMCardNetworkPreferencesPut + /sim_cards/{id}/actions/set_public_ip: + post: + description: "This API makes a SIM card reachable on the public internet by\ + \ mapping a random public IP to the SIM card.

\n The API will trigger\ + \ an asynchronous operation called a SIM Card Action. The status of the SIM\ + \ Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API.

\n Setting a Public IP to a SIM Card incurs a charge and\ + \ will only succeed if the account has sufficient funds." + operationId: SetSIMCardPublicIP parameters: - - description: Identifies a SIM card. + - description: Identifies the resource. explode: false in: path - name: sim_card_id + name: id required: true schema: example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple - requestBody: - $ref: '#/components/requestBodies/Put_Network_Preference_Request' - content: - application/json: - schema: - properties: - mobile_operator_networks_preferences: - description: A list of mobile operator networks and the priority - that should be applied when the SIM is connecting to the network. - items: - $ref: '#/components/schemas/MobileOperatorNetworkPreferencesRequest' - type: array - title: Put Network Preference Request - type: object responses: "202": content: application/json: schema: - $ref: '#/components/schemas/PUT_SIM_Card_Network_Preference_Response' - description: "A successful network preferences definition response.

\n\ - The sent mobile_operator_networks_preferences parameter won't be applied\ - \ to the main resource right away - this is an asynchronous operation.\ - \ While interacting with this API, you will face the following scenarios:\n\ - \n * The first request for this API will return an empty mobile_operator_networks_preferences\ - \ with an in-progress OTA update resource in the ota_updates node containing\ - \ the exact sent parameters to indicate the operation progress. The value\ - \ will be applied to the principal object when the OTA update finishes\ - \ its processing, thus indicating the SIM card network preference current\ - \ state. \n * The subsequent requests will contain the current state,\ - \ that is what's applied to the SIM card settings, and return the related\ - \ OTA update in the ota_updates node.\n \nThe returned OTA updated (present\ - \ in the ota_updates node) will, by default, be the resource related to\ - \ the operation, not all of them." + $ref: '#/components/schemas/SimCardActionGet_200_response' + description: Successful Response default: content: application/json: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: Set network preferences + summary: Request setting a SIM card public IP tags: - SIM Cards - x-latency-category: responsive - x-contentType: application/json + x-latency-category: background x-accepts: application/json - /sim_cards/{sim_card_id}/public_ip: - get: - description: | - It returns the public IP requested for a SIM card. - operationId: SIMCardPublicIPGet + /sim_cards/{id}/actions/set_standby: + post: + description: "The SIM card will be able to connect to the network once the process\ + \ to set it to standby has been completed, thus making it possible to consume\ + \ data.
\nTo set a SIM card to standby, it must be associated with SIM\ + \ card group.
\nThe API will trigger an asynchronous operation called\ + \ a SIM Card Action. Transitioning to the standby state may take a period\ + \ of time. The status of the SIM Card Action can be followed through the [List\ + \ SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions)\ + \ API.\n" + operationId: SimCardSetStandby parameters: - - description: Identifies a SIM card. + - description: Identifies the resource. explode: false in: path - name: sim_card_id + name: id required: true schema: example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -19732,50 +20141,29 @@ paths: type: string style: simple responses: - "200": + "202": content: application/json: schema: - $ref: '#/components/schemas/SIMCard_Public_IP_Response' - description: Successful response + $ref: '#/components/schemas/SimCardActionGet_200_response' + description: Successful Response default: content: application/json: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: Get SIM card public IP definition + summary: Request setting a SIM card to standby tags: - SIM Cards - x-latency-category: responsive + x-latency-category: background x-accepts: application/json - /sim_cards/{sim_card_id}/wireless_connectivity_logs: + /sim_cards/{sim_card_id}/device_details: get: - description: This API allows listing a paginated collection of Wireless Connectivity - Logs associated with a SIM Card, for troubleshooting purposes. - operationId: WirelessConnectivityLogsGet + description: | + It returns the device details where a SIM card is currently being used. + operationId: SIMCardDeviceDetailsGet parameters: - - description: The page number to load - explode: true - in: query - name: page[number] - required: false - schema: - default: 1 - minimum: 1 - type: integer - style: form - - description: The size of the page - explode: true - in: query - name: page[size] - required: false - schema: - default: 20 - maximum: 250 - minimum: 1 - type: integer - style: form - description: Identifies a SIM card. explode: false in: path @@ -19791,7 +20179,237 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Wireless_Connectivity_Log_Collection_Response' + $ref: '#/components/schemas/SIMCardDeviceDetailsGet_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Get SIM card device details + tags: + - SIM Cards + x-latency-category: responsive + x-accepts: application/json + /sim_cards/{sim_card_id}/network_preferences: + delete: + description: "This API asynchronously removes the custom-defined network preferences\ + \ settings. After this operation is done the Telnyx default settings, the\ + \ same applied for an unaltered SIM card, will be in place.\n" + operationId: SIMCardNetworkPreferencesDelete + parameters: + - description: Identifies a SIM card. + explode: false + in: path + name: sim_card_id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/SIMCardNetworkPreferencesGet_200_response' + description: "A successful network preferences deletion response.

\n\ + The delete won't be done right away - this is an asynchronous operation.\ + \ The request will return the resource with an in-progress OTA update\ + \ resource (in the ota_updates node) representing the delete operation.\ + \ Similarly to the PUT API, the resource will only be deleted when the\ + \ OTA updated is successfully completed." + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: DELETE network preferences + tags: + - SIM Cards + x-latency-category: responsive + x-accepts: application/json + get: + description: | + It returns the network preferences currently applied in the SIM card. + operationId: SIMCardNetworkPreferencesGet + parameters: + - description: Identifies a SIM card. + explode: false + in: path + name: sim_card_id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + - description: It includes the associated OTA update objects in the response + when present. + explode: true + in: query + name: include_ota_updates + required: false + schema: + default: false + example: true + type: boolean + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SIMCardNetworkPreferencesGet_200_response' + description: A successful network preferences definition response. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Get network preferences + tags: + - SIM Cards + x-latency-category: responsive + x-accepts: application/json + put: + description: "This API allows setting or updating a SIM card network preference.\ + \

\nEvery SIM card has default network preferences defined on Telnyx.\ + \ These preferences will determine how a SIMCard will connect to the network\ + \ by considering a list of preferable operators.

\nThere can be multiple\ + \ scenarios where an operator can be preferred over another, for example,\ + \ when a specific mobile operator can provide better network latency or better\ + \ pricing.\n" + operationId: SIMCardNetworkPreferencesPut + parameters: + - description: Identifies a SIM card. + explode: false + in: path + name: sim_card_id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SIMCardNetworkPreferencesPut_request' + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/SIMCardNetworkPreferencesGet_200_response' + description: "A successful network preferences definition response.

\n\ + The sent mobile_operator_networks_preferences parameter won't be applied\ + \ to the main resource right away - this is an asynchronous operation.\ + \ While interacting with this API, you will face the following scenarios:\n\ + \n * The first request for this API will return an empty mobile_operator_networks_preferences\ + \ with an in-progress OTA update resource in the ota_updates node containing\ + \ the exact sent parameters to indicate the operation progress. The value\ + \ will be applied to the principal object when the OTA update finishes\ + \ its processing, thus indicating the SIM card network preference current\ + \ state. \n * The subsequent requests will contain the current state,\ + \ that is what's applied to the SIM card settings, and return the related\ + \ OTA update in the ota_updates node.\n \nThe returned OTA updated (present\ + \ in the ota_updates node) will, by default, be the resource related to\ + \ the operation, not all of them." + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Set network preferences + tags: + - SIM Cards + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /sim_cards/{sim_card_id}/public_ip: + get: + description: | + It returns the public IP requested for a SIM card. + operationId: SIMCardPublicIPGet + parameters: + - description: Identifies a SIM card. + explode: false + in: path + name: sim_card_id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/SIMCardPublicIPGet_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Get SIM card public IP definition + tags: + - SIM Cards + x-latency-category: responsive + x-accepts: application/json + /sim_cards/{sim_card_id}/wireless_connectivity_logs: + get: + description: "This API allows listing a paginated collection of Wireless Connectivity\ + \ Logs associated with a SIM Card, for troubleshooting purposes." + operationId: WirelessConnectivityLogsGet + parameters: + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: Identifies a SIM card. + explode: false + in: path + name: sim_card_id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessConnectivityLogsGet_200_response' description: Successful response default: content: @@ -19812,7 +20430,7 @@ paths: - description: User ID of the user who owns the sub number order explode: true in: query - name: filter[user_id] + name: "filter[user_id]" required: false schema: example: d70873cd-7c98-401a-81b6-b1ae08246995 @@ -19822,7 +20440,7 @@ paths: - description: ID of the number order the sub number order belongs to explode: true in: query - name: filter[order_request_id] + name: "filter[order_request_id]" required: false schema: example: 12ade33a-21c0-473b-b055-b3c836e1c293 @@ -19832,7 +20450,7 @@ paths: - description: ISO alpha-2 country code. explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: example: US @@ -19841,7 +20459,7 @@ paths: - description: Phone Number Type explode: true in: query - name: filter[phone_number_type] + name: "filter[phone_number_type]" required: false schema: example: local @@ -19850,7 +20468,7 @@ paths: - description: Amount of numbers in the sub number order explode: true in: query - name: filter[phone_numbers_count] + name: "filter[phone_numbers_count]" required: false schema: example: 1 @@ -19891,7 +20509,7 @@ paths: - description: Include the first 50 phone number objects in the results explode: true in: query - name: filter[include_phone_numbers] + name: "filter[include_phone_numbers]" required: false schema: default: false @@ -19950,7 +20568,7 @@ paths: tags: - Number Orders x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /telephony_credentials: get: @@ -19960,7 +20578,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -19970,7 +20588,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -19981,7 +20599,7 @@ paths: - description: Filter by tag explode: true in: query - name: filter[tag] + name: "filter[tag]" required: false schema: type: string @@ -19989,7 +20607,7 @@ paths: - description: Filter by name explode: true in: query - name: filter[name] + name: "filter[name]" required: false schema: type: string @@ -19997,7 +20615,7 @@ paths: - description: Filter by status explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: type: string @@ -20005,7 +20623,7 @@ paths: - description: Filter by resource_id explode: true in: query - name: filter[resource_id] + name: "filter[resource_id]" required: false schema: type: string @@ -20013,7 +20631,7 @@ paths: - description: Filter by sip_username explode: true in: query - name: filter[sip_username] + name: "filter[sip_username]" required: false schema: type: string @@ -20061,7 +20679,7 @@ paths: tags: - Credentials x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /telephony_credentials/tags: get: @@ -20071,7 +20689,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -20081,7 +20699,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -20204,14 +20822,14 @@ paths: tags: - Credentials x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /telephony_credentials/{id}/actions/{action}: post: - description: Perform activate or deactivate action on provided Credential. Activate - action will change the status to active, making it possible to connect calls - with the credential. Deactivate action will change the status to inactive, - making it impossible to connect calls with the credential. + description: "Perform activate or deactivate action on provided Credential.\ + \ Activate action will change the status to active, making it possible to\ + \ connect calls with the credential. Deactivate action will change the status\ + \ to inactive, making it impossible to connect calls with the credential." operationId: telephonyCredentialAction parameters: - description: Identifies the resource. @@ -20279,6 +20897,40 @@ paths: - Access Tokens x-latency-category: responsive x-accepts: text/plain + /texml/{call_sid}/update: + post: + description: Update TeXml call + operationId: UpdateTeXMLCall + parameters: + - description: The CallSid that identifies the call to update. + explode: false + in: path + name: call_sid + required: true + schema: + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/UpdateCallRequest' + description: Update Call request object + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/TeXml_REST_Command_Response' + description: Successful response upon updating a TeXml call. + summary: Update call + tags: + - TeXML REST Commands + x-latency-category: responsive + x-group-parameters: "true" + x-content-type: application/json + x-accepts: application/json /texml_applications: get: description: Returns a list of your TeXML Applications. @@ -20287,7 +20939,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -20297,7 +20949,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -20305,12 +20957,12 @@ paths: minimum: 1 type: integer style: form - - description: If present, applications with friendly_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + - description: "If present, applications with friendly_name containing\ + \ the given value will be returned. Matching is not case-sensitive. Requires\ + \ at least three characters." explode: true in: query - name: filter[friendly_name][contains] + name: "filter[friendly_name][contains]" required: false schema: default: "null" @@ -20319,26 +20971,21 @@ paths: - description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" format: int64 type: string style: form - - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + - description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -20396,7 +21043,7 @@ paths: - TeXML Applications x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /texml_applications/{id}: delete: @@ -20501,7 +21148,7 @@ paths: tags: - TeXML Applications x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verifications/by_phone_number/{phone_number}: get: @@ -20569,12 +21216,13 @@ paths: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - summary: 'Submit a verification code. Deprecation notice: `verify_profile_id'' - is now a mandatory field. The sunset date for this change is 2022-04-02 00:00:00.' + summary: "Submit a verification code. Deprecation notice: `verify_profile_id'\ + \ is now a mandatory field. The sunset date for this change is 2022-04-02\ + \ 00:00:00." tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verifications/call: post: @@ -20602,7 +21250,7 @@ paths: tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verifications/flashcall: post: @@ -20630,7 +21278,7 @@ paths: tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verifications/psd2: post: @@ -20658,7 +21306,7 @@ paths: tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verifications/sms: post: @@ -20686,7 +21334,7 @@ paths: tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verifications/whatsapp: post: @@ -20714,7 +21362,7 @@ paths: tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verifications/{verification_id}: get: @@ -20755,7 +21403,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -20765,7 +21413,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -20822,7 +21470,7 @@ paths: x-group-parameters: "true" x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verified_calls_display_profiles/{id}: delete: @@ -20892,13 +21540,13 @@ paths: x-latency-category: responsive x-accepts: application/json patch: - description: 'Update an existing Verified Calls Display Profile and allows adding/removing - nested Call Reasons and Phone Numbers. Different attributes can be updated - depending on the Verified Calls Display Profile''s status: For the VERIFICATION_STATE_PENDING - status, no fields can be updated. For the VERIFICATION_STATE_VERIFIED status, - it is allowed only to add/remove Call Reaons and Phone Numbers. For the other - statuses, all fields can be updated. All existing Call Reasons and Phone Numbers - must be sent during the request, or the update will fail.' + description: "Update an existing Verified Calls Display Profile and allows adding/removing\ + \ nested Call Reasons and Phone Numbers. Different attributes can be updated\ + \ depending on the Verified Calls Display Profile's status: For the VERIFICATION_STATE_PENDING\ + \ status, no fields can be updated. For the VERIFICATION_STATE_VERIFIED status,\ + \ it is allowed only to add/remove Call Reaons and Phone Numbers. For the\ + \ other statuses, all fields can be updated. All existing Call Reasons and\ + \ Phone Numbers must be sent during the request, or the update will fail." operationId: updateVerifiedCallsDisplayProfile parameters: - description: Identifies the Verified Calls Display Profile @@ -20930,7 +21578,7 @@ paths: x-group-parameters: "true" x-endpoint-cost: medium x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verified_calls_display_profiles/{id}/verification_request: post: @@ -20966,29 +21614,29 @@ paths: parameters: - explode: true in: query - name: filter[name] + name: "filter[name]" required: false schema: description: Optional filter for profile names. - title: filter[name] + title: "filter[name]" type: string style: form - explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 25 - title: page[size] + title: "page[size]" type: integer style: form - explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 - title: page[number] + title: "page[number]" type: integer style: form responses: @@ -21014,37 +21662,10 @@ paths: description: Creates a new Verify profile to associate verifications with. operationId: createVerifyProfile requestBody: - $ref: '#/components/requestBodies/Create_Verify_Profile_Request' content: application/json: schema: - properties: - name: - example: Test Profile - type: string - webhook_url: - example: http://example.com/webhook - type: string - webhook_failover_url: - example: http://example.com/webhook/failover - type: string - sms: - $ref: '#/components/schemas/CreateVerifyProfileSMSRequest' - psd2: - $ref: '#/components/schemas/CreateVerifyProfilePSD2Request' - whatsapp: - $ref: '#/components/schemas/CreateVerifyProfileWhatsappRequest' - call: - $ref: '#/components/schemas/CreateVerifyProfileCallRequest' - flashcall: - $ref: '#/components/schemas/CreateVerifyProfileFlashcallRequest' - language: - example: en-US - type: string - required: - - name - title: Create Verify Profile Request - type: object + $ref: '#/components/schemas/Create_Verify_Profile_Request' required: true responses: "200": @@ -21063,7 +21684,7 @@ paths: tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /verify_profiles/{verify_profile_id}: delete: @@ -21143,35 +21764,10 @@ paths: type: string style: simple requestBody: - $ref: '#/components/requestBodies/Update_Verify_Profile_Request' content: application/json: schema: - properties: - name: - example: Test Profile - type: string - webhook_url: - example: http://example.com/webhook - type: string - webhook_failover_url: - example: http://example.com/webhook/failover - type: string - sms: - $ref: '#/components/schemas/UpdateVerifyProfileSMSRequest' - psd2: - $ref: '#/components/schemas/UpdateVerifyProfilePSD2Request' - whatsapp: - $ref: '#/components/schemas/UpdateVerifyProfileWhatsappRequest' - call: - $ref: '#/components/schemas/UpdateVerifyProfileCallRequest' - flashcall: - $ref: '#/components/schemas/UpdateVerifyProfileFlashcallRequest' - language: - example: en-US - type: string - title: Update Verify Profile Request - type: object + $ref: '#/components/schemas/Update_Verify_Profile_Request' required: true responses: "200": @@ -21190,7 +21786,355 @@ paths: tags: - Verify x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json + x-accepts: application/json + /virtual_cross_connect_regions: + get: + description: List all Virtual Cross Connects Cloud Regions.

This + endpoint shows which cloud regions are available for the `region_code` your + Virtual Cross Connect will be provisioned in. + operationId: VirtaulCrossConnectRegionList + parameters: + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The Telnyx region code + explode: true + in: query + name: "filter[region_code]" + required: false + schema: + example: ashburn-va + type: string + style: form + - description: The Telnyx region code + explode: true + in: query + name: "filter[cloud_provider]" + required: false + schema: + description: The Virtual Private Cloud provider. + enum: + - aws + - azure + - gce + example: aws + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtaulCrossConnectRegionList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all Virtual Cross Connect Cloud Regions + tags: + - Virtual Cross Connects + x-latency-category: responsive + x-accepts: application/json + /virtual_cross_connect_regions/{id}: + get: + description: Retrieve a Virtual Cross Connect Cloud Regions. + operationId: VirtualCrossConnectRegionGet + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectRegionGet_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve a Virtual Cross Connect Cloud Regions + tags: + - Virtual Cross Connects + x-latency-category: responsive + x-accepts: application/json + /virtual_cross_connects: + get: + description: List all Virtual Cross Connects. + operationId: VirtaulCrossConnectList + parameters: + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The associated network id to filter on. + explode: true + in: query + name: "filter[network_id]" + required: false + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtaulCrossConnectList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all Virtual Cross Connects + tags: + - Virtual Cross Connects + x-latency-category: responsive + x-accepts: application/json + post: + description: "Create a new Virtual Cross Connect.

For AWS and GCE,\ + \ you have the option of creating the primary connection first and the secondary\ + \ connection later. You also have the option of disabling the primary and/or\ + \ secondary connections at any time and later re-enabling them. With Azure,\ + \ you do not have this option. Azure requires both the primary and secondary\ + \ connections to be created at the same time and they can not be independantly\ + \ disabled." + operationId: VirtualCrossConnectCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectCreate' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectCreate_200_response' + description: Successful response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Create a Virtual Cross Connect + tags: + - Virtual Cross Connects + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /virtual_cross_connects/{id}: + delete: + description: Delete a Virtual Cross Connect. + operationId: VirtualCrossConnectDelete + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectCreate_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Delete a Virtual Cross Connect + tags: + - Virtual Cross Connects + x-latency-category: responsive + x-accepts: application/json + get: + description: Retrieve a Virtual Cross Connect. + operationId: VirtualCrossConnectGet + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectCreate_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve a Virtual Cross Connect + tags: + - Virtual Cross Connects + x-latency-category: responsive + x-accepts: application/json + patch: + description: "Update the Virtual Cross Connect.

Cloud IPs can only\ + \ be patched during the `created` state, as GCE will only inform you of your\ + \ generated IP once the pending connection requested has been accepted. Once\ + \ the Virtual Cross Connect has moved to `provisioning`, the IPs can no longer\ + \ be patched.

Once the Virtual Cross Connect has moved to `provisioned`\ + \ and you are ready to enable routing, you can toggle the routing announcements\ + \ to `true`." + operationId: VirtualCrossConnectUpdate + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectPatch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectCreate_200_response' + description: Successful response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Update the Virtual Cross Connect + tags: + - Virtual Cross Connects + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /virtual_cross_connects/{id}/actions/provision: + post: + description: "Provision a new Virtual Cross Connect.

This endpoint\ + \ is only necessary for GCE cloud regions. Once you have patched your Cloud\ + \ IPs, you must POST this request to trigger the provision." + operationId: VirtualCrossConnectProvision + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectCreate_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Provision a Virtual Cross Connect + tags: + - Virtual Cross Connects + x-latency-category: responsive x-accepts: application/json /webhook_deliveries: get: @@ -21200,7 +22144,7 @@ paths: - description: Return only webhook_deliveries matching the given `status` explode: true in: query - name: filter[status][eq] + name: "filter[status][eq]" required: false schema: enum: @@ -21209,11 +22153,21 @@ paths: example: delivered type: string style: form + - description: "Return only webhook_deliveries matching the given value of `event_type`.\ + \ Accepts multiple values separated by a `,`." + explode: true + in: query + name: "filter[event_type]" + required: false + schema: + example: "call_initiated,call.initiated" + type: string + style: form - description: Return only webhook deliveries whose `webhook` component contains the given text explode: true in: query - name: filter[webhook][contains] + name: "filter[webhook][contains]" required: false schema: example: call.initiated @@ -21223,7 +22177,7 @@ paths: the given text explode: true in: query - name: filter[attempts][contains] + name: "filter[attempts][contains]" required: false schema: example: https://fallback.example.com/webhooks @@ -21233,7 +22187,7 @@ paths: or at given ISO 8601 datetime explode: true in: query - name: filter[started_at][gte] + name: "filter[started_at][gte]" required: false schema: example: 2019-03-29T11:10:00Z @@ -21243,7 +22197,7 @@ paths: than or at given ISO 8601 datetime explode: true in: query - name: filter[started_at][lte] + name: "filter[started_at][lte]" required: false schema: example: 2019-03-29T11:10:00Z @@ -21253,7 +22207,7 @@ paths: than or at given ISO 8601 datetime explode: true in: query - name: filter[finished_at][gte] + name: "filter[finished_at][gte]" required: false schema: example: 2019-03-29T11:10:00Z @@ -21263,7 +22217,7 @@ paths: than or at given ISO 8601 datetime explode: true in: query - name: filter[finished_at][lte] + name: "filter[finished_at][lte]" required: false schema: example: 2019-03-29T11:10:00Z @@ -21272,7 +22226,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -21282,7 +22236,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -21295,7 +22249,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/List_Webhook_Deliveries_Response' + $ref: '#/components/schemas/getWebhookDeliveries_200_response' description: A paginated array of webhook_delivery attempts "401": description: Unauthorized @@ -21308,8 +22262,8 @@ paths: x-accepts: application/json /webhook_deliveries/{id}: get: - description: Provides webhook_delivery debug data, such as timestamps, delivery - status and attempts. + description: "Provides webhook_delivery debug data, such as timestamps, delivery\ + \ status and attempts." operationId: getWebhookDelivery parameters: - description: Uniquely identifies the webhook_delivery. @@ -21327,7 +22281,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Webhook_Delivery' + $ref: '#/components/schemas/getWebhookDelivery_200_response' description: Webhook delivery record. "401": description: Unauthorized @@ -21345,7 +22299,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -21355,7 +22309,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -21400,7 +22354,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_WhatsApp_Business_Account' + $ref: '#/components/schemas/WhatsApp_Business_Account' description: WhatsApp Business Account details default: content: @@ -21445,12 +22399,291 @@ paths: x-group-parameters: "true" x-latency-category: responsive x-accepts: application/json + /whatsapp_business_accounts/{id}/whatsapp_message_templates: + get: + operationId: listWhatsappMessageTemplates + parameters: + - description: Identifies the WhatsApp Business Account + explode: false + in: path + name: id + required: true + schema: + example: 12ade33a-21c0-473b-b055-b3c836e1c292 + format: uuid + type: string + style: simple + - description: The template category + explode: true + in: query + name: category + required: false + schema: + enum: + - ACCOUNT_UPDATE + - PAYMENT_UPDATE + - PERSONAL_FINANCE_UPDATE + - SHIPPING_UPDATE + - RESERVATION_UPDATE + - ISSUE_RESOLUTION + - APPOINTMENT_UPDATE + - TRANSPORTATION_UPDATE + - TICKET_UPDATE + - ALERT_UPDATE + - AUTO_REPLY + type: string + style: form + - description: The language of the whatsapp message template + explode: true + in: query + name: language + required: false + schema: + enum: + - af + - sq + - ar + - az + - bn + - bg + - ca + - zh_CN + - zh_HK + - zh_TW + - hr + - cs + - da + - nl + - en + - en_GB + - en_US + - et + - fil + - fi + - fr + - ka + - de + - el + - gu + - ha + - he + - hi + - hu + - id + - ga + - it + - ja + - kn + - kk + - rw_RW + - ko + - ky_KG + - lo + - lv + - lt + - mk + - ms + - ml + - mr + - nb + - fa + - pl + - pt_BR + - pt_PT + - pa + - ro + - ru + - sr + - sk + - sl + - es + - es_AR + - es_ES + - es_MX + - sw + - sv + - ta + - te + - th + - tr + - uk + - ur + - uz + - vi + - zu + type: string + style: form + - description: A name identifying this whatsapp message template + explode: true + in: query + name: name + required: false + schema: + type: string + style: form + - description: The score of the whatsapp message template + explode: true + in: query + name: quality_score + required: false + schema: + type: string + style: form + - description: The reason why a message template was rejected by Whatsapp + explode: true + in: query + name: rejected_reason + required: false + schema: + type: string + style: form + - description: "The maximum number of message_templates to be returned on a\ + \ query, we may return less than the limit number even if more pages are\ + \ available." + example: "10" + explode: true + in: query + name: limit + required: false + schema: + type: string + style: form + - description: Indicates that this is a query for entries before the given cursor + example: QAVCEP + explode: true + in: query + name: before + required: false + schema: + type: string + style: form + - description: Indicates that this is a query for entries after the given cursor + example: QAVCEP + explode: true + in: query + name: after + required: false + schema: + type: string + style: form + - description: Identifies the whatsApp Message Template status + example: APPROVED + explode: true + in: query + name: status + required: false + schema: + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WhatsApp_Message_Template' + description: WhatsApp Message Template + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List WhatsApp Message Templates + tags: + - WhatsApp Message Template + x-group-parameters: "true" + x-latency-category: responsive + x-accepts: application/json + post: + operationId: createWhatsappMessageTemplates + parameters: + - description: Identifies the WhatsApp Business Account + explode: false + in: path + name: id + required: true + schema: + example: 12ade33a-21c0-473b-b055-b3c836e1c292 + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CreateWhatsappMessageTemplateRequestBody' + multipart/form-data: + example: + name: my_test_template + category: APPOINTMENT_UPDATE + language: en_US + components: "[{\"type\":\"BODY\", \"text\":\"message-text\"}]" + schema: + $ref: '#/components/schemas/CreateWhatsappMessageTemplateRequestBody' + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WhatsApp_Message_Template_1' + description: WhatsApp Message Template + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Create WhatsApp Message Templates + tags: + - WhatsApp Message Template + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /whatsapp_business_accounts/{id}/whatsapp_message_templates/{name}: + delete: + description: Deletes all of the message templates with the given name and business + account + operationId: deleteWhatsappMessageTemplates + parameters: + - description: Identifies the WhatsApp Business Account + explode: false + in: path + name: id + required: true + schema: + example: 12ade33a-21c0-473b-b055-b3c836e1c292 + format: uuid + type: string + style: simple + - description: The name of the Whatsapp Message Template + example: my_test_template2 + explode: false + in: path + name: name + required: true + schema: + type: string + style: simple + responses: + "202": + description: All message templates with the given name have been deleted + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Delete WhatsApp Message Templates + tags: + - WhatsApp Message Template + x-latency-category: responsive + x-accepts: application/json /whatsapp_contacts: post: deprecated: false - description: Verify that a phone number belongs to a valid WhatsApp account. - You must ensure that the status is valid before you can message a user, and - you'll get their WhatsApp ID to use for messaging. + description: "Verify that a phone number belongs to a valid WhatsApp account.\ + \ You must ensure that the status is valid before you can message a user,\ + \ and you'll get their WhatsApp ID to use for messaging." operationId: checkContact requestBody: content: @@ -21484,7 +22717,7 @@ paths: tags: - WhatsApp Contacts x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /whatsapp_detail_record_reports: get: @@ -21495,7 +22728,7 @@ paths: - description: Page number explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -21505,7 +22738,7 @@ paths: - description: Size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -21548,7 +22781,7 @@ paths: tags: - WhatsApp Detail Reports x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /whatsapp_detail_record_reports/{id}: delete: @@ -21614,8 +22847,8 @@ paths: /whatsapp_media: post: deprecated: false - description: Upload media. Accepted media types include image/jpeg, image/png, - video/mp4, video/3gpp, audio/aac, audio/ogg. + description: "Upload media. Accepted media types include image/jpeg, image/png,\ + \ video/mp4, video/3gpp, audio/aac, audio/ogg." operationId: uploadMedia requestBody: content: @@ -21632,7 +22865,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Upload_Media' + $ref: '#/components/schemas/Upload_Media_' description: Successful response default: content: @@ -21644,7 +22877,7 @@ paths: tags: - WhatsApp Media x-latency-category: responsive - x-contentType: multipart/form-data + x-content-type: multipart/form-data x-accepts: application/json /whatsapp_media/{whatsapp_user_id}/{media_id}: delete: @@ -21670,7 +22903,7 @@ paths: style: simple responses: "204": - description: Request successful, empty response body. + description: "Request successful, empty response body." default: content: application/json: @@ -21727,8 +22960,8 @@ paths: /whatsapp_messages: post: deprecated: false - description: Send text messages, media/documents, and message templates to your - customers. + description: "Send text messages, media/documents, and message templates to\ + \ your customers." operationId: sendMessage requestBody: content: @@ -21747,7 +22980,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WhatsApp_Message_Response' + $ref: '#/components/schemas/Successful_response_with_details_about_the_WhatsApp_message_sent_' description: Successful response default: content: @@ -21759,7 +22992,7 @@ paths: tags: - WhatsApp Messages x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /whatsapp_messages/{message_id}: patch: @@ -21786,7 +23019,7 @@ paths: required: true responses: "204": - description: Request successful, empty response body. + description: "Request successful, empty response body." default: content: application/json: @@ -21797,7 +23030,7 @@ paths: tags: - WhatsApp Messages x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /whatsapp_phone_numbers/{id}: get: @@ -21816,7 +23049,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_WhatsApp_Phone_Number' + $ref: '#/components/schemas/WhatsApp_Phone_Number' description: WhatsApp Phone Number details default: content: @@ -21852,7 +23085,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_WhatsApp_Phone_Number' + $ref: '#/components/schemas/WhatsApp_Phone_Number' description: Updated WhatsApp Phone Number details default: content: @@ -21865,7 +23098,7 @@ paths: - WhatsApp Phone Number x-group-parameters: "true" x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /whatsapp_phone_numbers/{id}/about: patch: @@ -21899,7 +23132,7 @@ paths: - WhatsApp Phone Number x-group-parameters: "true" x-latency-category: responsive - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /whatsapp_phone_numbers/{id}/photo: get: @@ -21918,7 +23151,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_WhatsApp_Profile_Photo' + $ref: '#/components/schemas/WhatsApp_Profile_Photo' description: WhatsApp Profile Photo default: content: @@ -21948,7 +23181,7 @@ paths: multipart/form-data: encoding: photo: - contentType: image/png, image/jpeg + contentType: "image/png, image/jpeg" style: form schema: $ref: '#/components/schemas/UploadWhatsappProfilePhotoRequest' @@ -21958,7 +23191,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Update_WhatsApp_Profile_Photo' + $ref: '#/components/schemas/WhatsApp_Profile_Photo' description: WhatsApp Profile Photo default: content: @@ -21971,7 +23204,7 @@ paths: - WhatsApp Phone Number x-group-parameters: "true" x-latency-category: responsive - x-contentType: multipart/form-data + x-content-type: multipart/form-data x-accepts: application/json /whatsapp_usage_aggregations: get: @@ -22011,6 +23244,516 @@ paths: - WhatsApp Usage Aggregations x-latency-category: background x-accepts: application/json + /wireguard_interfaces: + get: + description: List all WireGuard Interfaces. + operationId: WireguardInterfaceList + parameters: + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The associated network id to filter on. + explode: true + in: query + name: "filter[network_id]" + required: false + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardInterfaceList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all WireGuard Interfaces + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + post: + description: Create a new WireGuard Interface. Current limitation of 10 interfaces + per user can be created. + operationId: WireguardInterfaceCreate + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardInterfaceCreate' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardInterfaceCreate_202_response' + description: Successful response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Create a WireGuard Interface + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /wireguard_interfaces/{id}: + delete: + description: Delete a WireGuard Interface. + operationId: WireguardInterfaceDelete + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardInterfaceCreate_202_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Delete a WireGuard Interface + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + get: + description: Retrieve a WireGuard Interfaces. + operationId: WireguardInterfaceGet + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardInterfaceCreate_202_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve a WireGuard Interfaces + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + /wireguard_peers: + get: + description: List all WireGuard peers. + operationId: WireguardPeerList + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + - description: The id of the associated WireGuard interface to filter on. + explode: true + in: query + name: "filter[wireguard_interface_id]" + required: false + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all WireGuard Peers + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + post: + description: Create a new WireGuard Peer. Current limitation of 5 peers per + interface can be created. + operationId: WireguardPeerCreate + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerCreate' + required: true + responses: + "202": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerCreate_202_response' + description: Successful response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Create a WireGuard Peer + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /wireguard_peers/{id}: + delete: + description: Delete the WireGuard peer. + operationId: WireguardPeerDelete + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerCreate_202_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Delete the WireGuard Peer + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + get: + description: Retrieve the WireGuard peer. + operationId: WireguardPeerGet + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerCreate_202_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve the WireGuard Peer + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + patch: + description: Update the WireGuard peer. + operationId: WireguardPeerUpdate + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerPatch' + required: true + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerCreate_202_response' + description: Successful response + "422": + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unprocessable entity. Check the 'detail' field in response + for details. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Update the WireGuard Peer + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-content-type: application/json + x-accepts: application/json + /wireguard_peers/{id}/allowed_ips: + get: + description: List all Allowed IPs for a WireGuard peer. + operationId: WireguardPeerAllowedIPList + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + - description: The page number to load + explode: true + in: query + name: "page[number]" + required: false + schema: + default: 1 + minimum: 1 + type: integer + style: form + - description: The size of the page + explode: true + in: query + name: "page[size]" + required: false + schema: + default: 20 + maximum: 250 + minimum: 1 + type: integer + style: form + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerAllowedIPList_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: List all Allowed IPs for a WireGuard Peer + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + /wireguard_peers/{id}/allowed_ips/{child_id}: + get: + description: Retrieve the Allowed IP. + operationId: WireguardPeerAllowedIPGet + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + - description: Identifies the child resource + explode: false + in: path + name: child_id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerAllowedIPGet_200_response' + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve the Allowed IP + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json + /wireguard_peers/{id}/config: + get: + description: Retrieve Wireguard config template for Peer + operationId: WireguardPeerConfig + parameters: + - description: Identifies the resource. + explode: false + in: path + name: id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple + responses: + "200": + content: + text/plain; charset=utf-8: + schema: + example: "[Interface]\nPrivateKey = \nAddress = 198.51.100.1/32\n\n[Peer]\nPublicKey = qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=\n\ + AllowedIPs = 198.51.100.0/29\nEndpoint = 203.0.113.0:51871\nPersistentKeepalive\ + \ = 25\n" + type: string + description: Successful response + default: + content: + application/json: + schema: + $ref: '#/components/schemas/Errors' + description: Unexpected error + summary: Retrieve Wireguard config template for Peer + tags: + - WireGuard Interfaces + x-latency-category: responsive + x-accepts: application/json /wireless/detail_records_reports: get: description: Returns the WDR Reports that match the given parameters. @@ -22019,7 +23762,7 @@ paths: - description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -22029,7 +23772,7 @@ paths: - description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -22042,7 +23785,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Wdr_Reports_Response' + $ref: '#/components/schemas/getWdrReports_200_response' description: Successful response default: content: @@ -22070,7 +23813,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Create_Wdr_Report_Response' + $ref: '#/components/schemas/createWdrReport_201_response' description: Successful response "422": content: @@ -22089,7 +23832,7 @@ paths: tags: - Reporting x-latency-category: background - x-contentType: application/json + x-content-type: application/json x-accepts: application/json /wireless/detail_records_reports/{id}: delete: @@ -22111,7 +23854,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Delete_Wdr_Report_Response' + $ref: '#/components/schemas/createWdrReport_201_response' description: Successful response "404": content: @@ -22149,7 +23892,7 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Get_Wdr_Report_Response' + $ref: '#/components/schemas/createWdrReport_201_response' description: Successful response "404": content: @@ -22178,7 +23921,7 @@ components: description: Filter by the associated record type explode: true in: query - name: filter[associated_record_type][eq] + name: "filter[associated_record_type][eq]" required: false schema: enum: @@ -22206,11 +23949,20 @@ components: schema: type: string style: simple + CallSid: + description: The CallSid that identifies the call to update. + explode: false + in: path + name: call_sid + required: true + schema: + type: string + style: simple ChannelTypeId: description: Filter by the id of a channel type explode: true in: query - name: filter[channel_type_id][eq] + name: "filter[channel_type_id][eq]" required: false schema: enum: @@ -22221,9 +23973,19 @@ components: example: webhook type: string style: form + ChildId: + description: Identifies the child resource + explode: false + in: path + name: child_id + required: true + schema: + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + style: simple ConnectionId: - description: Uniquely identifies a Telnyx application (Call Control, TeXML) - or Sip connection resource. + description: Uniquely identifies a Telnyx application (Call Control). explode: false in: path name: connection_id @@ -22235,7 +23997,7 @@ components: description: Filters records to those created after a specific date. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: example: 2020-01-01T00:00:00Z @@ -22246,7 +24008,7 @@ components: description: Filters records to those created before a specific date. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: example: 2020-01-01T00:00:00Z @@ -22257,7 +24019,7 @@ components: description: Filters requirements to those applying to a specific action. explode: true in: query - name: filter[action] + name: "filter[action]" required: false schema: enum: @@ -22271,7 +24033,7 @@ components: alpha-2) country code explode: true in: query - name: filter[country_code] + name: "filter[country_code]" required: false schema: example: US @@ -22281,7 +24043,7 @@ components: description: Filters results to those applying to a specific `phone_number_type` explode: true in: query - name: filter[phone_number_type] + name: "filter[phone_number_type]" required: false schema: enum: @@ -22318,19 +24080,19 @@ components: string. explode: true in: query - name: filter[name][contains] + name: "filter[name][contains]" required: false schema: example: utility bill type: string style: form DocReqsRequirementTypesSort: - description: Specifies the sort order for results. If you want to sort by a - field in ascending order, include it as a sort parameter. If you want to sort - in descending order, prepend a `-` in front of the field name. + description: "Specifies the sort order for results. If you want to sort by a\ + \ field in ascending order, include it as a sort parameter. If you want to\ + \ sort in descending order, prepend a `-` in front of the field name." explode: true in: query - name: sort[] + name: "sort[]" required: false schema: enum: @@ -22341,12 +24103,12 @@ components: type: string style: form DocReqsRequirementsSort: - description: Specifies the sort order for results. If you want to sort by a - field in ascending order, include it as a sort parameter. If you want to sort - in descending order, prepend a `-` in front of the field name. + description: "Specifies the sort order for results. If you want to sort by a\ + \ field in ascending order, include it as a sort parameter. If you want to\ + \ sort in descending order, prepend a `-` in front of the field name." explode: true in: query - name: sort[] + name: "sort[]" required: false schema: enum: @@ -22361,7 +24123,7 @@ components: description: Identifies the associated document to filter on. explode: true in: query - name: filter[document_id] + name: "filter[document_id]" required: false schema: example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -22372,7 +24134,7 @@ components: description: Filter by created at greater than provided value. explode: true in: query - name: filter[created_at][gt] + name: "filter[created_at][gt]" required: false schema: description: ISO 8601 formatted date-time indicating when the resource was @@ -22384,7 +24146,7 @@ components: description: Filter by created at less than provided value. explode: true in: query - name: filter[created_at][lt] + name: "filter[created_at][lt]" required: false schema: description: ISO 8601 formatted date-time indicating when the resource was @@ -22396,7 +24158,7 @@ components: description: Filter documents by a customer references. explode: true in: query - name: filter[customer_reference][eq] + name: "filter[customer_reference][eq]" required: false schema: example: MY REF 001 @@ -22406,7 +24168,7 @@ components: description: Filter documents by a list of customer references. explode: true in: query - name: filter[customer_reference][in][] + name: "filter[customer_reference][in][]" required: false schema: example: MY REF 001 @@ -22416,19 +24178,19 @@ components: description: Filter by string matching part of filename. explode: true in: query - name: filter[filename][contains] + name: "filter[filename][contains]" required: false schema: example: invoice type: string style: form DocumentsSort: - description: Specifies the sort order for results. If you want to sort by a - field in ascending order, include it as a sort parameter. If you want to sort - in descending order, prepend a `-` in front of the field name. + description: "Specifies the sort order for results. If you want to sort by a\ + \ field in ascending order, include it as a sort parameter. If you want to\ + \ sort in descending order, prepend a `-` in front of the field name." explode: true in: query - name: sort[] + name: "sort[]" required: false schema: enum: @@ -22438,22 +24200,11 @@ components: example: filename type: string style: form - FilterAddressBook: - description: If present, only returns results with the address_book - flag set to the given value. - explode: true - in: query - name: filter[address_book][eq] - required: false - schema: - default: "null" - type: string - style: form FilterAddressByAdministrativeArea: description: Filter by state or province where the address is located. explode: true in: query - name: filter[address.administrative_area] + name: "filter[address.administrative_area]" required: false schema: example: IL @@ -22464,7 +24215,7 @@ components: origin country code. explode: true in: query - name: filter[address.country_code] + name: "filter[address.country_code]" required: false schema: example: US @@ -22475,7 +24226,7 @@ components: address information. explode: true in: query - name: filter[address.extended_address] + name: "filter[address.extended_address]" required: false schema: example: Suite 504 @@ -22485,7 +24236,7 @@ components: description: Uniquely identifies the address for the order. explode: true in: query - name: filter[address.id] + name: "filter[address.id]" required: false schema: example: "1293384261075731499" @@ -22496,7 +24247,7 @@ components: description: Filter by the name of the city where the address is located. explode: true in: query - name: filter[address.locality] + name: "filter[address.locality]" required: false schema: example: Chicago @@ -22506,7 +24257,7 @@ components: description: Filter by postal code for the address. explode: true in: query - name: filter[address.postal_code] + name: "filter[address.postal_code]" required: false schema: example: "60654" @@ -22517,19 +24268,19 @@ components: is located. explode: true in: query - name: filter[address.street_address] + name: "filter[address.street_address]" required: false schema: example: 311 W Superior St type: string style: form FilterApplicationName: - description: If present, applications with application_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + description: "If present, applications with application_name containing\ + \ the given value will be returned. Matching is not case-sensitive. Requires\ + \ at least three characters." explode: true in: query - name: filter[application_name][contains] + name: "filter[application_name][contains]" required: false schema: default: "null" @@ -22539,7 +24290,7 @@ components: description: Filter by a specific status of the resource's lifecycle. explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -22549,11 +24300,22 @@ components: example: in-progress type: string style: form + FilterBulkSIMCardActionId: + description: Filter by a bulk SIM card action ID. + explode: true + in: query + name: "filter[bulk_sim_card_action_id]" + required: false + schema: + example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 + format: uuid + type: string + style: form FilterByPhoneNumber: description: Filter results by phone number explode: true in: query - name: filter[phone_number] + name: "filter[phone_number]" required: false schema: example: +12003151212 @@ -22563,7 +24325,7 @@ components: description: Filter results by a list of phone numbers explode: true in: query - name: filter[phone_number][in][] + name: "filter[phone_number][in][]" required: false schema: items: @@ -22575,7 +24337,7 @@ components: description: Filter results by portability status explode: true in: query - name: filter[portability_status] + name: "filter[portability_status]" required: false schema: $ref: '#/components/schemas/PortabilityStatus' @@ -22584,7 +24346,7 @@ components: description: Filter results by activation status explode: true in: query - name: filter[activation_status] + name: "filter[activation_status]" required: false schema: $ref: '#/components/schemas/PortingOrderActivationStatus' @@ -22593,7 +24355,7 @@ components: description: Filter results by porting order id explode: true in: query - name: filter[porting_order_id] + name: "filter[porting_order_id]" required: false schema: example: f3575e15-32ce-400e-a4c0-dd78800c20b0 @@ -22604,7 +24366,7 @@ components: description: Filter results by a list of porting order ids explode: true in: query - name: filter[porting_order_id][in][] + name: "filter[porting_order_id][in][]" required: false schema: items: @@ -22617,7 +24379,7 @@ components: description: Filter results by status explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -22636,7 +24398,7 @@ components: description: Filter results by support key explode: true in: query - name: filter[support_key][eq] + name: "filter[support_key][eq]" required: false schema: example: sr_a12345 @@ -22646,7 +24408,7 @@ components: description: Filter results by a list of support keys explode: true in: query - name: filter[support_key][in][] + name: "filter[support_key][in][]" required: false schema: items: @@ -22658,7 +24420,7 @@ components: description: Event status explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -22668,50 +24430,50 @@ components: type: string style: form FilterCallEventTimestampEqualTo: - description: 'Event timestamp: equal' + description: "Event timestamp: equal" explode: true in: query - name: filter[event_timestamp][eq] + name: "filter[event_timestamp][eq]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form FilterCallEventTimestampGreaterThan: - description: 'Event timestamp: greater than' + description: "Event timestamp: greater than" explode: true in: query - name: filter[event_timestamp][gt] + name: "filter[event_timestamp][gt]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form FilterCallEventTimestampGreaterThanOrEqualTo: - description: 'Event timestamp: greater than or equal' + description: "Event timestamp: greater than or equal" explode: true in: query - name: filter[event_timestamp][gte] + name: "filter[event_timestamp][gte]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form FilterCallEventTimestampLessThan: - description: 'Event timestamp: lower than' + description: "Event timestamp: lower than" explode: true in: query - name: filter[event_timestamp][lt] + name: "filter[event_timestamp][lt]" required: false schema: example: 2019-03-29T11:10:00Z type: string style: form FilterCallEventTimestampLessThanOrEqualTo: - description: 'Event timestamp: lower than or equal' + description: "Event timestamp: lower than or equal" explode: true in: query - name: filter[event_timestamp][lte] + name: "filter[event_timestamp][lte]" required: false schema: example: 2019-03-29T11:10:00Z @@ -22721,7 +24483,7 @@ components: description: Event type explode: true in: query - name: filter[type] + name: "filter[type]" required: false schema: enum: @@ -22734,7 +24496,7 @@ components: description: The unique identifier of an individual call leg. explode: true in: query - name: filter[call_leg_id] + name: "filter[call_leg_id]" required: false schema: format: uuid @@ -22745,27 +24507,27 @@ components: include multiple call leg events. explode: true in: query - name: filter[call_session_id] + name: "filter[call_session_id]" required: false schema: format: uuid type: string style: form FilterConferenceName: - description: If present, conferences will be filtered to those with a matching - `name` attribute. Matching is case-sensitive + description: "If present, conferences will be filtered to those with a matching\ + \ `name` attribute. Matching is case-sensitive" explode: true in: query - name: filter[name] + name: "filter[name]" required: false schema: type: string style: form FilterConferenceStatus: - description: If present, conferences will be filtered by status. + description: "If present, conferences will be filtered by status." explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: enum: @@ -22775,22 +24537,21 @@ components: type: string style: form FilterConnectionName: - description: If present, connections with connection_name containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. + description: "If present, connections with connection_name containing\ + \ the given value will be returned. Matching is not case-sensitive. Requires\ + \ at least three characters." explode: true in: query - name: filter[connection_name][contains] + name: "filter[connection_name][contains]" required: false schema: - default: "null" type: string style: form FilterCostByAmount: description: The total monetary amount of the order. explode: true in: query - name: filter[cost.amount] + name: "filter[cost.amount]" required: false schema: example: "2.53" @@ -22800,7 +24561,7 @@ components: description: Filter by ISO 4217 currency string. explode: true in: query - name: filter[cost.currency] + name: "filter[cost.currency]" required: false schema: example: USD @@ -22811,50 +24572,30 @@ components: creation date-time. explode: true in: query - name: filter[created_at] + name: "filter[created_at]" required: false schema: example: 2018-02-02T22:25:27.521Z format: datetime type: string style: form - FilterCustomerReferenceContains: - description: If present, addresses with customer_reference containing - the given value will be returned. Matching is not case-sensitive. - explode: true - in: query - name: filter[customer_reference][contains] - required: false - schema: - type: string - style: form - FilterCustomerReferenceEquals: - description: Filter addresses via the customer reference set. Matching is not - case-sensitive. - explode: true - in: query - name: filter[customer_reference][eq] - required: false - schema: - type: string - style: form FilterEmailContains: - description: If present, email containing the given value will be returned. - Matching is not case-sensitive. Requires at least three characters. + description: "If present, email containing the given value will be returned.\ + \ Matching is not case-sensitive. Requires at least three characters." explode: true in: query - name: filter[email][contains] + name: "filter[email][contains]" required: false schema: default: "null" type: string style: form FilterEmailEq: - description: If present, only returns results with the email matching - exactly the value given. + description: "If present, only returns results with the email matching\ + \ exactly the value given." explode: true in: query - name: filter[email][eq] + name: "filter[email][eq]" required: false schema: default: "null" @@ -22864,27 +24605,18 @@ components: description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound.outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" format: int64 type: string style: form - FilterIpAddressEquals: - description: Filter access control IPs via the ip_address sent. - explode: true - in: query - name: filter[ip_address][eq] - required: false - schema: - type: string - style: form FilterName: description: Filter by name explode: true in: query - name: filter[name] + name: "filter[name]" required: false schema: type: string @@ -22893,7 +24625,7 @@ components: description: Identifies the associated outbound voice profile. explode: true in: query - name: filter[outbound.outbound_voice_profile_id] + name: "filter[outbound_voice_profile_id]" required: false schema: example: "1293384261075731499" @@ -22904,7 +24636,7 @@ components: description: Filter orders by how many SIM cards were ordered. explode: true in: query - name: filter[quantity] + name: "filter[quantity]" required: false schema: example: 21 @@ -22915,7 +24647,7 @@ components: argument. explode: true in: query - name: filter[quantity][lt] + name: "filter[quantity][lt]" required: false schema: example: 21 @@ -22925,7 +24657,7 @@ components: description: Filter by resource_id explode: true in: query - name: filter[resource_id] + name: "filter[resource_id]" required: false schema: type: string @@ -22934,7 +24666,7 @@ components: description: A valid SIM card group ID. explode: true in: query - name: filter[sim_card_group_id] + name: "filter[sim_card_group_id]" required: false schema: example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 @@ -22945,7 +24677,7 @@ components: description: A valid SIM card ID. explode: true in: query - name: filter[sim_card_id] + name: "filter[sim_card_id]" required: false schema: example: 47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9 @@ -22956,7 +24688,7 @@ components: description: Filter by sip_username explode: true in: query - name: filter[sip_username] + name: "filter[sip_username]" required: false schema: type: string @@ -22965,48 +24697,23 @@ components: description: Filter by status explode: true in: query - name: filter[status] + name: "filter[status]" required: false schema: type: string style: form - FilterStreetAddress: - description: If present, addresses with street_address containing - the given value will be returned. Matching is not case-sensitive. Requires - at least three characters. - explode: true - in: query - name: filter[street_address][contains] - required: false - schema: - default: "null" - type: string - style: form FilterUpdatedAt: description: Filter by ISO 8601 formatted date-time string matching resource last update date-time. explode: true in: query - name: filter[updated_at] + name: "filter[updated_at]" required: false schema: example: 2018-02-02T22:25:27.521Z format: datetime type: string style: form - FilterUsedAsEmergency: - description: 'If set as ''true'', only addresses used as the emergency address - for at least one active phone-number will be returned. When set to ''false'', - the opposite happens: only addresses not used as the emergency address from - phone-numbers will be returned.' - explode: true - in: query - name: filter[used_as_emergency] - required: false - schema: - default: "null" - type: string - style: form FqdnId: description: Identifies the resource. explode: false @@ -23039,16 +24746,26 @@ components: type: string style: simple Id: - description: Identifies the resource. + description: The id of the resource. explode: false in: path name: id required: true schema: - example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid type: string style: simple + IncludeCancelledAccounts: + description: Specifies if cancelled accounts should be included in the results. + explode: true + in: query + name: include_cancelled_accounts + required: false + schema: + default: false + example: true + type: boolean + style: form IncludeOTAUpdates: description: It includes the associated OTA update objects in the response when present. @@ -23109,7 +24826,7 @@ components: description: The `linked_record_type` of the document to filter on. explode: true in: query - name: filter[linked_record_type] + name: "filter[linked_record_type]" required: false schema: example: porting_order @@ -23119,7 +24836,7 @@ components: description: The `linked_resource_id` of the document to filter on. explode: true in: query - name: filter[linked_resource_id] + name: "filter[linked_resource_id]" required: false schema: example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -23176,7 +24893,7 @@ components: description: Optional filter on outbound voice profile name. explode: true in: query - name: filter[name][contains] + name: "filter[name][contains]" required: false schema: example: office-profile @@ -23186,7 +24903,7 @@ components: description: Filter by the id of a notification channel explode: true in: query - name: filter[notification_channel][eq] + name: "filter[notification_channel][eq]" required: false schema: example: 12455643-3cf1-4683-ad23-1cd32f7d5e0a @@ -23196,7 +24913,7 @@ components: description: Filter by the id of a notification channel explode: true in: query - name: filter[notification_event_condition_id][eq] + name: "filter[notification_event_condition_id][eq]" required: false schema: example: 12455643-3cf1-4683-ad23-1cd32f7d5e0a @@ -23206,7 +24923,7 @@ components: description: Filter by the id of a notification profile explode: true in: query - name: filter[notification_profile_id][eq] + name: "filter[notification_profile_id][eq]" required: false schema: example: 12455643-3cf1-4683-ad23-1cd32f7d5e0a @@ -23228,7 +24945,7 @@ components: description: Filter by tag explode: true in: query - name: filter[tag] + name: "filter[tag]" required: false schema: type: string @@ -23237,7 +24954,7 @@ components: description: The page number to load explode: true in: query - name: page[number] + name: "page[number]" required: false schema: default: 1 @@ -23248,7 +24965,7 @@ components: description: The size of the page explode: true in: query - name: page[size] + name: "page[size]" required: false schema: default: 20 @@ -23317,7 +25034,7 @@ components: description: Filters records to those with a specified number. explode: true in: query - name: filter[phone_number][eq] + name: "filter[phone_number][eq]" required: false schema: example: +12441239999 @@ -23327,7 +25044,7 @@ components: description: Filters records to those with at least one number in the list. explode: true in: query - name: filter[phone_number][in][] + name: "filter[phone_number][in][]" required: false schema: items: @@ -23346,10 +25063,10 @@ components: type: boolean style: form RequiredTag: - description: Filter by tag, required by bulk operations. + description: "Filter by tag, required by bulk operations." explode: true in: query - name: filter[tag] + name: "filter[tag]" required: true schema: type: string @@ -23387,19 +25104,13 @@ components: type: string style: simple Sort: - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not\ + \ given, results are sorted by created_at in descending order." explode: true in: query name: sort @@ -23412,49 +25123,14 @@ components: example: email type: string style: form - SortAddress: - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. - explode: true - in: query - name: sort - required: false - schema: - default: created_at - enum: - - created_at - - first_name - - last_name - - business_name - - street_address - example: street_address - type: string - style: form SortAuthenticationProvider: - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are\ + \ sorted by created_at in descending order." explode: true in: query name: sort @@ -23476,19 +25152,14 @@ components: type: string style: form SortConnection: - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
If not given, results are sorted by created_at in descending order. + description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the \ + \ - prefix.

\nThat is:
If not given, results are sorted by created_at\ + \ in descending order." explode: true in: query name: sort @@ -23503,19 +25174,12 @@ components: type: string style: form SortOutboundVoiceProfile: - description: |- - Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

- That is:
+ description: "Specifies the sort order for results. By default sorting direction\ + \ is ascending. To have the results sorted in descending order add the -\ + \ prefix.

\nThat is:
" explode: true in: query name: sort @@ -23542,7 +25206,7 @@ components: description: The status of a notification setting explode: true in: query - name: filter[status][eq] + name: "filter[status][eq]" required: false schema: enum: @@ -23561,7 +25225,7 @@ components: description: Filters records to those with a specific status. explode: true in: query - name: filter[status][eq] + name: "filter[status][eq]" required: false schema: enum: @@ -23575,7 +25239,7 @@ components: description: Filters records to those with a least one status in the list. explode: true in: query - name: filter[status][in][] + name: "filter[status][in][]" required: false schema: items: @@ -23610,189 +25274,40 @@ components: content: application/json: schema: - properties: - phone_number: - description: A valid US phone number in E164 format. - example: +1234567890 - pattern: ^\+1\d{10}$ - type: string - webhook_url: - description: Callback URL to receive webhook notifications. - example: https://example.com/webhook - type: string - required: - - phone_number - title: Create Customer Service Request - type: object + $ref: '#/components/schemas/createCustomerServiceRequest_request' required: true CreatePortingOrderDocuments: content: application/json: schema: - properties: - documents: - description: A list of documents to be associated with a porting order. - items: - properties: - document_type: - description: The type of the document. - enum: - - loa - - invoice - - other - example: loa - type: string - document_id: - description: Uniquely identifies a document uploaded via the - /v2/documents - endpoint. - example: 5f940c35-ef28-4408-bb95-af73b047d589 - type: string - required: - - document_id - - document_type - type: object - type: array - required: - - documents - title: Create Porting Order Documents - type: object - required: true - VerifyCustomerServiceRequestPhoneNumberCoverage: - content: - application/json: - schema: - properties: - phone_numbers: - description: The phone numbers list to be verified. - items: - description: A valid US phone number in E164 format. - example: +1234567890 - pattern: ^\+1\d{10}$ - type: string - type: array - required: - - phone_numbers - title: Verify Customer Service Request Phone Number Coverage - type: object + $ref: '#/components/schemas/uploadPortingOrderDocuments_request' required: true - Bulk_Update_Sim_Network_Preference: - content: - application/json: - schema: - $ref: '#/components/schemas/Bulk_Update_Sim_Network_Preference' - Update_Channel_Zone: - content: - application/json: - schema: - $ref: '#/components/schemas/Update_Channel_Zone' - required: true - List_Channel_Zones_by_Phone_Number: - content: - application/json: - schema: - $ref: '#/components/schemas/List_Channel_Zones_by_Phone_Number' - required: true - Update_Inbound_Channels: - content: - application/json: - schema: - $ref: '#/components/schemas/Update_Inbound_Channels' - required: true - Create_Portability_Check_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Create_Portability_Check_Request' - required: true - Create_Comment_Portout_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Create_Comment_Portout_Request' - required: true - Create_Porting_Supporting_Docs_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Create_Porting_Supporting_Docs_Request' - required: true - Update_Portout_Status_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Update_Portout_Status_Request' - required: true - Create_Private_Wireless_Gatweway_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Create_Private_Wireless_Gatweway_Request' - required: true - Create_SIM_Card_Data_Usage_Notification_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Create_SIM_Card_Data_Usage_Notification_Request' - required: true - Create_Private_Wireless_Gatweway_Request_1: - content: - application/json: - schema: - $ref: '#/components/schemas/Create_Private_Wireless_Gatweway_Request_1' - required: true - CreateSimCardOrderPreview: - content: - application/json: - schema: - $ref: '#/components/schemas/CreateSimCardOrderPreview' - Create_SIM_Card_Validate_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Create_SIM_Card_Validate_Request' - required: true - Put_Network_Preference_Request: - content: - application/json: - schema: - $ref: '#/components/schemas/Put_Network_Preference_Request' - Create_Verify_Profile_Request: + DialogflowConnectionRequest: content: application/json: schema: - $ref: '#/components/schemas/Create_Verify_Profile_Request' + $ref: '#/components/schemas/DialogflowConnection' + description: The params expected to create/update a Dialogflow Connection for + given connection_id. required: true - Update_Verify_Profile_Request: + VerifyCustomerServiceRequestPhoneNumberCoverage: content: application/json: schema: - $ref: '#/components/schemas/Update_Verify_Profile_Request' + $ref: '#/components/schemas/verifyPhoneNumberCoverage_request' required: true responses: - AccessControlIpResponse: - content: - application/json: - schema: - $ref: '#/components/schemas/Access_Control_Ip_Response' - description: Successful response ActionSuccessResponse: content: application/json: schema: - $ref: '#/components/schemas/Action_Success_Response' + $ref: '#/components/schemas/EndSession_200_response' description: Success Action Response - AddressResponse: - content: - application/json: - schema: - $ref: '#/components/schemas/Address_Response' - description: Successful response AuthenticationProviderResponse: content: application/json: schema: - $ref: '#/components/schemas/Authentication_Provider_Response' + $ref: '#/components/schemas/CreateAuthenticationProvider_200_response' description: Successful response BulkCredentialResponse: content: @@ -23806,11 +25321,30 @@ components: schema: $ref: '#/components/schemas/Bulk_Room_Recordings_Delete_Response' description: Successful response for Bulk Delete Room recordings requests + BulkSIMCardActionCollectionResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/ListBulkSIMCardActions_200_response' + description: Successful response + BulkSIMCardActionDetailedResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/BulkSimCardActionGet_200_response' + description: Successful Response + BulkSIMCardActionResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/BulkSetPublicIPs_202_response' + description: Successful Response BulkSIMCardNetworkPreferenceResponse: content: application/json: schema: - $ref: '#/components/schemas/Bulk_SIM_Card_Network_Preference_Response' + $ref: '#/components/schemas/BulkSIMCardNetworkPreferences_202_response' + description: "" BulkUploadDocServiceDocumentsResponse: content: application/json: @@ -23820,7 +25354,6 @@ components: items: $ref: '#/components/schemas/DocServiceDocument' type: array - title: Bulk Upload Doc Service Documents Response type: object description: Successful response CallControlApplicationResponse: @@ -23835,6 +25368,18 @@ components: schema: $ref: '#/components/schemas/Call_Control_Command_Response' description: Successful response upon making a call control command. + CancelFaxResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/Successful_response_upon_accepting_cancel_fax_command' + description: Successful response upon accepting cancel fax command + CancelPortingOrderResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/cancelPortingOrder_200_response' + description: Successful response CheckContactResponse: content: application/json: @@ -23845,7 +25390,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Comment_Response' + $ref: '#/components/schemas/createComment_200_response' description: A Comment Response ConferenceCommandResponse: content: @@ -23859,6 +25404,12 @@ components: schema: $ref: '#/components/schemas/Conference_Response' description: Successful response with details about a conference. + ConfirmPortingOrderResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/confirmPortingOrder_200_response' + description: Successful response ConnectionResponse: content: application/json: @@ -23869,67 +25420,67 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Create_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request CreateLedgerBillingGroupReportResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Ledger_Billing_Group_Report_Response' + $ref: '#/components/schemas/createLedgerBillingGroupReport_200_response' description: Expected ledger billing group report response to a valid request CreatePortOutSupportingDocumentsResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_PortOut_Supporting_Documents_Response' + $ref: '#/components/schemas/getPortRequestSupportingDocuments_201_response' description: Portout Supporting Documents CreatePrivateWirelessGatewayResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Private_Wireless_Gateway_Response' + $ref: '#/components/schemas/createPrivateWirelessGateway_202_response' description: Successful response CreateRoomClientTokenResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Room_Client_Token_Response' + $ref: '#/components/schemas/CreateRoomClientToken_201_response' description: Create room client token response. CreateRoomCompositionResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Room_Composition_Response' + $ref: '#/components/schemas/CreateRoomComposition_202_response' description: Create room composition response. CreateRoomResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Room_Response' + $ref: '#/components/schemas/CreateRoom_201_response' description: Create room response. CreateSimCardDataUsageNotificationResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response CreateSimCardGroupResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Sim_Card_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response CreateSimCardOrderResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Sim_Card_Order_Response' + $ref: '#/components/schemas/SimCardOrdersPost_200_response' description: Successful Response CreateWdrReportResponse: content: application/json: schema: - $ref: '#/components/schemas/Create_Wdr_Report_Response' + $ref: '#/components/schemas/createWdrReport_201_response' description: Successful response CredentialConnectionResponse: content: @@ -23953,15 +25504,18 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Delete_SIM_Card_Network_Preference_Response' - description: |- - A successful network preferences deletion response.

- The delete won't be done right away - this is an asynchronous operation. The request will return the resource with an in-progress OTA update resource (in the ota_updates node) representing the delete operation. Similarly to the PUT API, the resource will only be deleted when the OTA updated is successfully completed. + $ref: '#/components/schemas/SIMCardNetworkPreferencesGet_200_response' + description: "A successful network preferences deletion response.

\n\ + The delete won't be done right away - this is an asynchronous operation. The\ + \ request will return the resource with an in-progress OTA update resource\ + \ (in the ota_updates node) representing the delete operation. Similarly to\ + \ the PUT API, the resource will only be deleted when the OTA updated is successfully\ + \ completed." DeleteBillingGroupResponse: content: application/json: schema: - $ref: '#/components/schemas/Delete_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request DeletePhoneNumberResponse: content: @@ -23973,62 +25527,68 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Delete_Private_Wireless_Gateway_Response' + $ref: '#/components/schemas/createPrivateWirelessGateway_202_response' description: Successful response DeleteSimCardDataUsageNotificationResponse: content: application/json: schema: - $ref: '#/components/schemas/Delete_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response DeleteSimCardGroupResponse: content: application/json: schema: - $ref: '#/components/schemas/Delete_Sim_Card_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response DeleteSimCardResponse: content: application/json: schema: - $ref: '#/components/schemas/Delete_Sim_Card_Response' + $ref: '#/components/schemas/SimCardGet_200_response' description: Successful response DeleteWdrReportResponse: content: application/json: schema: - $ref: '#/components/schemas/Delete_Wdr_Report_Response' + $ref: '#/components/schemas/createWdrReport_201_response' description: Successful response + DialogflowConnectionResponseBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DialogflowConnectionResponse' + description: Return details of the Dialogflow connection associated with the + given CallControl connection. DocReqsListRequirementTypesResponse: content: application/json: schema: - $ref: '#/components/schemas/Doc_Reqs_List_Requirement_Types_Response' + $ref: '#/components/schemas/docReqsListRequirementTypes_200_response' description: Successful response DocReqsRequirementResponse: content: application/json: schema: - $ref: '#/components/schemas/Doc_Reqs_Requirement_Response' + $ref: '#/components/schemas/docReqsRetrieveDocumentRequirements_200_response' description: Successful response DocReqsRequirementTypeResponse: content: application/json: schema: - $ref: '#/components/schemas/Doc_Reqs_Requirement_Type_Response' + $ref: '#/components/schemas/docReqsRetrieveRequirementType_200_response' description: Successful response DocServiceDocumentResponse: content: application/json: schema: - $ref: '#/components/schemas/Doc_Service_Document_Response' + $ref: '#/components/schemas/createDocument_200_response' description: Successful response DownloadDocServiceDocumentResponse: content: '*': schema: format: binary - title: Download Doc Service Documents Response type: string description: Successful response DownloadLOATemplate: @@ -24036,20 +25596,19 @@ components: application/pdf: schema: format: binary - title: Download LOA Tempalte type: string description: Successful response DynamicEmergencyAddressResponse: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Address_Response' + $ref: '#/components/schemas/createDyanmicEmergencyAddress_201_response' description: Dynamic Emergency Address Response DynamicEmergencyEndpointResponse: content: application/json: schema: - $ref: '#/components/schemas/Dynamic_Emergency_Endpoint_Response' + $ref: '#/components/schemas/createDyanmicEmergencyEndpoint_201_response' description: Dynamic Emergency Endpoint Response FaxApplicationResponse: content: @@ -24067,12 +25626,7 @@ components: content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/ForbiddenError' - type: array - title: Forbidden Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_403_response' description: You do not have permission to perform the requested action on the specified resource or resources. FqdnConnectionResponse: @@ -24093,23 +25647,11 @@ components: schema: $ref: '#/components/schemas/Errors' description: Unexpected error - GetAllAccessControlIpResponse: - content: - application/json: - schema: - $ref: '#/components/schemas/Get_All_Access_Control_Ip_Response' - description: Successful response - GetAllAddressResponse: - content: - application/json: - schema: - $ref: '#/components/schemas/Get_All_Address_Response' - description: Successful response GetAllAuthenticationProviderResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_All_Authentication_Providers_Response' + $ref: '#/components/schemas/findAuthenticationProviders_200_response' description: Successful response GetAllFaxApplicationsResponse: content: @@ -24121,19 +25663,19 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Get_All_Private_Wireless_Gateways_Response' + $ref: '#/components/schemas/getPrivateWirelessGateways_200_response' description: Successful response GetAllSimCardGroupsResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_All_Sim_Card_Groups_Response' + $ref: '#/components/schemas/SimCardGroupsGetAll_200_response' description: Successful response GetAllSimCardOrdersResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_All_Sim_Card_Order_Response' + $ref: '#/components/schemas/SimCardOrdersGet_200_response' description: Successful response GetAllTelephonyCredentialResponse: content: @@ -24163,91 +25705,91 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Get_Gcb_Channel_Zones_Request_Response' + $ref: '#/components/schemas/getChannelZones_200_response' description: A list of channel zones GetGcbPhoneNumbersRequestResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Gcb_Phone_Numbers_Request_Response' + $ref: '#/components/schemas/getPhoneNumbers_200_response' description: A list of phone numbers GetPrivateWirelessGatewayResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Private_Wireless_Gateway_Response' + $ref: '#/components/schemas/createPrivateWirelessGateway_202_response' description: Successful response GetRoomCompositionResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Composition_Response' + $ref: '#/components/schemas/CreateRoomComposition_202_response' description: Get room composition response. GetRoomParticipantResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Participant_Response' + $ref: '#/components/schemas/ViewRoomParticipant_200_response' description: Get room participant response. GetRoomRecordingResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Recording_Response' + $ref: '#/components/schemas/ViewRoomRecording_200_response' description: Get room recording response. GetRoomResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Response' + $ref: '#/components/schemas/CreateRoom_201_response' description: Get room response. GetRoomSessionResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Room_Session_Response' + $ref: '#/components/schemas/ViewRoomSession_200_response' description: Get room session response. GetSimCardDataUsageNotificationResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response GetSimCardGroupResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response GetSimCardOrderResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Order_Response' + $ref: '#/components/schemas/SimCardOrdersPost_200_response' description: Successful Response GetSimCardResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Sim_Card_Response' + $ref: '#/components/schemas/SimCardGet_200_response' description: Successful response GetWdrReportResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Wdr_Report_Response' + $ref: '#/components/schemas/createWdrReport_201_response' description: Successful response GetWdrReportsResponse: content: application/json: schema: - $ref: '#/components/schemas/Get_Wdr_Reports_Response' + $ref: '#/components/schemas/getWdrReports_200_response' description: Successful response InventoryCoverageResponse: content: application/json: schema: - $ref: '#/components/schemas/Inventory_Coverage_Response' + $ref: '#/components/schemas/createInventoryCoverageRequest_200_response' description: Successful response with a list of inventory coverage levels IpConnectionResponse: content: @@ -24265,7 +25807,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Allowed_Foc_Window' + $ref: '#/components/schemas/listAllowedFocWindows_200_response' description: Successful response ListAvailablePhoneNumbersBlockResponse: content: @@ -24283,7 +25825,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Billing_Groups_Response' + $ref: '#/components/schemas/listBillingGroups_200_response' description: A paginated array of billing groups ListBusinessIdentitiesResponse: content: @@ -24331,102 +25873,31 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Customer_Service_Request_PhoneNumber_Coverage' + $ref: '#/components/schemas/verifyPhoneNumberCoverage_201_response' description: Successful Response ListCustomerServiceRequests: content: application/json: schema: - properties: - data: - items: - $ref: '#/components/schemas/CustomerServiceRequest' - type: array - meta: - $ref: '#/components/schemas/PaginationMeta' - title: List Customer Service Requests - type: object + $ref: '#/components/schemas/listCustomerServiceRequests_200_response' description: Successful Response ListDocServiceDocumentLinksResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Doc_Service_Document_Links_Response' + $ref: '#/components/schemas/listDocumentLinks_200_response' description: Successful response ListDocServiceDocumentsResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Doc_Service_Documents_Resposne' + $ref: '#/components/schemas/listDocuments_200_response' description: Successful response ListDraftPortingOrdersWithoutPagination: content: application/json: - example: - data: - - activation_settings: - activation_status: null - fast_port_eligible: true - foc_datetime_actual: null - foc_datetime_requested: null - created_at: 2022-03-17T18:01:01Z - customer_reference: null - description: FP Telnyx - documents: - loa: null - invoice: null - end_user: - admin: - account_number: null - auth_person_name: null - billing_phone_number: null - business_identifier: null - entity_name: null - pin_passcode: null - tax_identifier: null - location: - administrative_area: null - country_code: null - extended_address: null - locality: null - postal_code: null - street_address: null - id: b0ea6d6f-de31-4079-a536-992e0c98b037 - misc: null - old_service_provider_ocn: Unreal Communications - parent_support_key: null - phone_number_configuration: - connection_id: null - emergency_address_id: null - messaging_profile_id: null - tags: [] - phone_number_type: local - phone_numbers: - - activation_status: null - phone_number: '{e.164 TN}' - phone_number_type: local - portability_status: confirmed - porting_order_id: b0ea6d6f-de31-4079-a536-992e0c98b037 - porting_order_status: draft - record_type: porting_phone_number - requirements_status: requirement-info-pending - support_key: null - porting_phone_numbers_count: 1 - record_type: porting_order - requirements: [] - requirements_met: false - status: - details: [] - value: draft - support_key: null - updated_at: 2022-03-17T18:01:01Z - user_feedback: - user_comment: null - user_rating: null - user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 - webhook_url: null - schema: - $ref: '#/components/schemas/List_Draft_Porting_Order_Without_Pagination' + schema: + $ref: '#/components/schemas/createPortingOrder_201_response' description: Successful response ListFaxesResponse: content: @@ -24462,7 +25933,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Managed_Accounts_Response' + $ref: '#/components/schemas/listManagedAccounts_200_response' description: Successful response with a list of managed accounts. ListMediaResponse: content: @@ -24584,53 +26055,76 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Order' + $ref: '#/components/schemas/listPortingOrders_200_response' description: Successful response ListPortingOrderDocuments: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Order_Documents' + $ref: '#/components/schemas/listPortingOrderDocuments_200_response' + description: Successful response + ListPortingOrderRequirements: + content: + application/json: + schema: + $ref: '#/components/schemas/ListPortingOrderRequirements_200_response' description: Successful response ListPortingOrdersActivationJobs: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Orders_Activation_Jobs' + $ref: '#/components/schemas/listPortingOrdersActivationJobs_200_response' description: Successful response ListPortingOrdersComments: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Orders_Comments' + $ref: '#/components/schemas/listPortingOrdersComments_200_response' description: Successful response ListPortingOrdersExceptionTypes: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Orders_Exception_Types' + $ref: '#/components/schemas/listPortingOrdersExceptionTypes_200_response' description: Successful response ListPortingPhoneNumbers: content: application/json: schema: - $ref: '#/components/schemas/List_Porting_Phone_Numbers' + $ref: '#/components/schemas/listPortingPhoneNumbers_200_response' text/csv: schema: - $ref: '#/components/schemas/List_Porting_Phone_Numbers' + example: "phone_number,phone_number_type,porting_order_id,support_key,porting_order_status\r\ + \n+12003155566,local,5f940c35-ef28-4408-bb95-af73b047d589,sr_a12345,draft\r\ + \n" + type: string description: Successful response ListPortoutComments: content: application/json: schema: - $ref: '#/components/schemas/List_Portout_Comments' + $ref: '#/components/schemas/findPortoutComments_200_response' description: Portout Comments ListPortoutResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Portout_Response' + $ref: '#/components/schemas/listPortoutRequest_200_response' description: Portout Response + ListPushCredentialsResponse: + content: + application/json: + schema: + properties: + data: + items: + $ref: '#/components/schemas/PushCredential' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + title: List Push Credentials Response + type: object + description: Mobile mobile push credentials ListQueueCallsResponse: content: application/json: @@ -24647,37 +26141,37 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Requirements_Response' + $ref: '#/components/schemas/listRequirements_200_response' description: Successful response ListRoomCompositionsResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Compositions_Response' + $ref: '#/components/schemas/ListRoomCompositions_200_response' description: List room compositions response. ListRoomParticipantsResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Participants_Response' + $ref: '#/components/schemas/ListRoomParticipants_200_response' description: List room participants response. ListRoomRecordingsResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Recordings_Response' + $ref: '#/components/schemas/ListRoomRecordings_200_response' description: List room recordings response. ListRoomSessionsResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Room_Sessions_Response' + $ref: '#/components/schemas/ListRoomSessions_200_response' description: List room sessions response. ListRoomsResponse: content: application/json: schema: - $ref: '#/components/schemas/List_Rooms_Response' + $ref: '#/components/schemas/ListRooms_200_response' description: List rooms response. ListShortCodesResponse: content: @@ -24707,7 +26201,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Webhook_Deliveries_Response' + $ref: '#/components/schemas/getWebhookDeliveries_200_response' description: A paginated array of webhook_delivery attempts ListWhatsappBusinessAccountsResponse: content: @@ -24725,14 +26219,13 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Managed_Account_Response' + $ref: '#/components/schemas/createManagedAccount_200_response' description: Successful response with information about a single managed account. MediaDownloadResponse: content: '*/*': schema: format: binary - title: Media Download Response type: string description: A response describing a media resource MediaResponse: @@ -24766,8 +26259,26 @@ components: schema: $ref: '#/components/schemas/Messaging_Profile_Response' description: Successful response with details about a messaging profile. + NetworkInterfaceListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkInterfaceList_200_response' + description: Successful response + NetworkListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkList_200_response' + description: Successful response + NetworkResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/NetworkCreate_200_response' + description: Successful response NotFoundResponse: - description: Conference does not exist + description: Fax does not exist NumberBlockOrderResponse: content: application/json: @@ -24808,7 +26319,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/OTA_Update_Response' + $ref: '#/components/schemas/OTAUpdateGET_200_response' description: Successful response OutboundVoiceProfileResponse: content: @@ -24820,7 +26331,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/PUT_SIM_Card_Network_Preference_Response' + $ref: '#/components/schemas/SIMCardNetworkPreferencesGet_200_response' description: "A successful network preferences definition response.

\n\ The sent mobile_operator_networks_preferences parameter won't be applied to\ \ the main resource right away - this is an asynchronous operation. While\ @@ -24845,7 +26356,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Patch_Room_Response' + $ref: '#/components/schemas/CreateRoom_201_response' description: Update room response. PhoneNumberResponse: content: @@ -24871,31 +26382,31 @@ components: content: application/json: schema: - $ref: '#/components/schemas/PortOut_List_Supporting_Documents_Response' + $ref: '#/components/schemas/getPortRequestSupportingDocuments_201_response' description: Portout Supporting Documents PortabilityCheckResponse: content: application/json: schema: - $ref: '#/components/schemas/Portability_Check_Response' + $ref: '#/components/schemas/postPortabilityCheck_201_response' description: PortabilityCheck Response PortingOrderDocumentsCreated: content: application/json: schema: - $ref: '#/components/schemas/Porting_Order_Documents_Created' + $ref: '#/components/schemas/uploadPortingOrderDocuments_201_response' description: Successful response PortoutCommentResponse: content: application/json: schema: - $ref: '#/components/schemas/Portout_Comment_Resposne' + $ref: '#/components/schemas/postPortRequestComment_201_response' description: Portout Comment Response PortoutResponse: content: application/json: schema: - $ref: '#/components/schemas/Portout_Response' + $ref: '#/components/schemas/findPortoutRequest_200_response' description: Portout Response PostGcbPhoneNumberRequestResponse: content: @@ -24903,6 +26414,28 @@ components: schema: $ref: '#/components/schemas/GcbPhoneNumber' description: A new inserted phone number + PublicInternetGatewayListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/PublicInternetGatewayList_200_response' + description: Successful response + PublicInternetGatewayResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/PublicInternetGatewayCreate_202_response' + description: Successful response + PushCredentialResponse: + content: + application/json: + schema: + properties: + data: + $ref: '#/components/schemas/QueueCall' + title: Queue Call Response + type: object + description: Success response with details about a push credential QueueCallResponse: content: application/json: @@ -24919,7 +26452,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Read_Comment_Response' + $ref: '#/components/schemas/markCommentRead_200_response' description: A Comment Response RecordingResponse: content: @@ -24937,8 +26470,14 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Refresh_Room_Client_Token_Response' + $ref: '#/components/schemas/RefreshRoomClientToken_201_response' description: Refresh room client token response. + RegionListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/RegionList_200_response' + description: Successful response RegisterCallResponse: content: application/json: @@ -24949,7 +26488,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Register_SimCards_Response' + $ref: '#/components/schemas/SimCardRegister_202_response' description: Successful response ResourceNotFound: content: @@ -24961,17 +26500,13 @@ components: content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/ResourceNotFoundError' - type: array + $ref: '#/components/schemas/getCustomerServiceRequest_404_response' description: Resource not found RetrieveBillingGroupResponse: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request RetrieveCallStatusResponse: content: @@ -24983,7 +26518,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Retrieve_Ledger_Billing_Group_Report_Response' + $ref: '#/components/schemas/createLedgerBillingGroupReport_200_response' description: Expected ledger billing group report response to a valid request RetrieveMessagingProfileMetrics: content: @@ -24998,20 +26533,25 @@ components: properties: data: $ref: '#/components/schemas/PortoutDetails' - title: Retrieve Portout Response type: object description: Expected portout response to a valid request SIMCardActionResponse: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Action_Response' + $ref: '#/components/schemas/SimCardActionGet_200_response' description: Successful Response + SIMCardDeviceDetailsResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/SIMCardDeviceDetailsGet_200_response' + description: Successful response SIMCardGroupActionResponse: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Group_Action_Response' + $ref: '#/components/schemas/SimCardGroupActionGet_200_response' description: Successful Response SIMCardNetworkPreferenceResponse: content: @@ -25020,44 +26560,43 @@ components: properties: data: $ref: '#/components/schemas/SIMCardNetworkPreference' - title: SIM Card Network Preference Response type: object description: A successful network preferences definition response. SIMCardNetworkPreferenceWithOTAUpdatesResponse: content: application/json: schema: - $ref: '#/components/schemas/SIM_Card_Network_Preference_With_OTA_Updates_Response' + $ref: '#/components/schemas/SIMCardNetworkPreferencesGet_200_response' description: A successful network preferences definition response. SIMCardOrdersPreviewResponse: content: application/json: schema: - $ref: '#/components/schemas/SIMCard_Orders_Preview_Response' + $ref: '#/components/schemas/SimCardOrdersPreview_202_response' description: Successful response SIMCardPublicIPResponse: content: application/json: schema: - $ref: '#/components/schemas/SIMCard_Public_IP_Response' + $ref: '#/components/schemas/SIMCardPublicIPGet_200_response' description: Successful response SearchMobileOperatorNetworksResponse: content: application/json: schema: - $ref: '#/components/schemas/Search_Mobile_Operator_Networks_Response' + $ref: '#/components/schemas/MobileOperatorNetworksGet_200_response' description: Successful response SearchOTAUpdateResponse: content: application/json: schema: - $ref: '#/components/schemas/Search_OTA_Update_Response' + $ref: '#/components/schemas/OTAUpdatesList_200_response' description: Successful response SearchSimCardsResponse: content: application/json: schema: - $ref: '#/components/schemas/Search_SimCards_Response' + $ref: '#/components/schemas/SimCardsGet_200_response' description: Successful response SendFaxResponse: content: @@ -25075,25 +26614,25 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Show_Customer_Service_Request' + $ref: '#/components/schemas/createCustomerServiceRequest_201_response' description: Successful Response ShowPortingOrder: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Order' + $ref: '#/components/schemas/getPortingOrder_200_response' description: Successful response ShowPortingOrdersActivationJob: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Orders_Activation_Job' + $ref: '#/components/schemas/activatePortingOrder_202_response' description: Successful response ShowPortingOrdersComment: content: application/json: schema: - $ref: '#/components/schemas/Show_Porting_Order_Comment' + $ref: '#/components/schemas/createPortingOrderComment_201_response' description: Successful response ShowPortingPhoneNumber: content: @@ -25110,26 +26649,25 @@ components: format: uri type: string type: object - title: Show Porting Phone Number type: object description: Successful response SimCardActionCollectionResponse: content: application/json: schema: - $ref: '#/components/schemas/SimCard_Action_Collection_Response' + $ref: '#/components/schemas/ListSIMCardActions_200_response' description: Successful response SimCardDataUsageNotificationCollectionResponse: content: application/json: schema: - $ref: '#/components/schemas/SimCard_Data_Usage_Notification_Collection' + $ref: '#/components/schemas/ListSimCardDataUsageNotifications_200_response' description: Successful response SimCardGroupActionCollectionResponse: content: application/json: schema: - $ref: '#/components/schemas/SimCard_Group_Action_Collection_Response' + $ref: '#/components/schemas/SimCardGroupActionsGet_200_response' description: Successful response SimpleSimCardResponse: content: @@ -25138,7 +26676,6 @@ components: properties: data: $ref: '#/components/schemas/SimpleSIMCard' - title: Simple SimCard Response type: object description: Successful response SubNumberOrderResponse: @@ -25151,7 +26688,7 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Sub_Request_By_Porting_Order' + $ref: '#/components/schemas/getPortingOrderSubRequest_200_response' description: Successful response TelephonyCredentialResponse: content: @@ -25169,26 +26706,17 @@ components: content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnauthorizedError' - type: array - title: Unauthorized Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_401_response' description: The required authentication headers were either invalid or not included in the request. UnauthorizedResponse: - description: Unauthorized + description: Unauthorized response. Happens when the current user is not a manager + account. UnexpectedErrorResponse: content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnexpectedError' - type: array - title: Unexpected Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_500_response' description: An unexpected error occurred. UnprocessableEntity: content: @@ -25201,12 +26729,7 @@ components: content: application/json: schema: - properties: - errors: - items: - $ref: '#/components/schemas/UnprocessableEntityError' - type: array - title: Unprocessable Enttiy Error Response + $ref: '#/components/schemas/listCustomerServiceRequests_422_response' description: Unprocessable entity. Check the 'detail' field in response for details. UnprocessableEntityResponse: @@ -25215,15 +26738,21 @@ components: content: application/json: schema: - $ref: '#/components/schemas/Unprocessable_Managed_Account_Entity' + $ref: '#/components/schemas/createManagedAccount_422_response' description: Unprocessable entity. Check the 'detail' field in response for details. UpdateBillingGroupResponse: content: application/json: schema: - $ref: '#/components/schemas/Update_Billing_Group_Response' + $ref: '#/components/schemas/createBillingGroup_200_response' description: Expected billing group response to a valid request + UpdatePortingOrderResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/updatePortingOrder_200_response' + description: Successful response UpdatePortoutResponse: content: application/json: @@ -25231,32 +26760,37 @@ components: properties: data: $ref: '#/components/schemas/PortoutDetails' - title: Update Portout Response type: object description: Expected portout response to a valid request UpdateSimCardDataUsageNotificationResponse: content: application/json: schema: - $ref: '#/components/schemas/Update_Sim_Card_Data_Usage_Notification_Response' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_201_response' description: Successful response UpdateSimCardGroupResponse: content: application/json: schema: - $ref: '#/components/schemas/Update_SimCard_Group_Response' + $ref: '#/components/schemas/SimCardGroupsPost_200_response' description: Successful Response UpdateSimCardResponse: content: application/json: schema: - $ref: '#/components/schemas/Update_SimCard_Response' + $ref: '#/components/schemas/SimCardGet_200_response' description: Successful response + UpdateTeXMLCallResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/TeXml_REST_Command_Response' + description: Successful response upon updating a TeXml call. UploadMediaResponse: content: application/json: schema: - $ref: '#/components/schemas/Upload_Media' + $ref: '#/components/schemas/Upload_Media_' description: Successful response UploadedMediaResponse: content: @@ -25270,25 +26804,79 @@ components: content: application/json: schema: - $ref: '#/components/schemas/User_Balance_Response' + $ref: '#/components/schemas/getUserBalance_200_response' description: Retrieve user balance details - ValidateAddressResponse: + VirtualCrossConnectListResponse: content: application/json: schema: - $ref: '#/components/schemas/Validate_Address_Response' - description: Action response + $ref: '#/components/schemas/VirtaulCrossConnectList_200_response' + description: Successful response + VirtualCrossConnectRegionListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtaulCrossConnectRegionList_200_response' + description: Successful response + VirtualCrossConnectRegionResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectRegionGet_200_response' + description: Successful response + VirtualCrossConnectResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualCrossConnectCreate_200_response' + description: Successful response WhatsAppMessageResponse: content: application/json: schema: - $ref: '#/components/schemas/WhatsApp_Message_Response' + $ref: '#/components/schemas/Successful_response_with_details_about_the_WhatsApp_message_sent_' + description: Successful response + WireguardInterfaceListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardInterfaceList_200_response' + description: Successful response + WireguardInterfaceResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardInterfaceCreate_202_response' + description: Successful response + WireguardPeerAllowedIPListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerAllowedIPList_200_response' + description: Successful response + WireguardPeerAllowedIPResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerAllowedIPGet_200_response' + description: Successful response + WireguardPeerListResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerList_200_response' + description: Successful response + WireguardPeerResponse: + content: + application/json: + schema: + $ref: '#/components/schemas/WireguardPeerCreate_202_response' description: Successful response WirelessConnectivityLogCollectionResponse: content: application/json: schema: - $ref: '#/components/schemas/Wireless_Connectivity_Log_Collection_Response' + $ref: '#/components/schemas/WirelessConnectivityLogsGet_200_response' description: Successful response displayBusinessIdentityResponse: content: @@ -25306,108 +26894,27 @@ components: content: application/json: schema: - $ref: '#/components/schemas/List_Comments_Response' + $ref: '#/components/schemas/listComments_200_response' description: An array of Comment Responses listDynamicEmergencyAddresses: content: application/json: schema: - $ref: '#/components/schemas/List_Dynamic_Emergency_Addresses' + $ref: '#/components/schemas/listDyanmicEmergencyAddresses_200_response' description: Dynamic Emergency Address Responses listDynamicEmergencyEndpoints: content: application/json: schema: - $ref: '#/components/schemas/List_Dynamic_Emergency_Endpoints' + $ref: '#/components/schemas/listDyanmicEmergencyEndpoints_200_response' description: Dynamic Emergency Endpoints Responses listRegulatoryRequirements: content: application/json: schema: - $ref: '#/components/schemas/List_Regulatory_Requirements' + $ref: '#/components/schemas/listRegulartoryRequirements_200_response' description: An array of Regulatory Requiremenst Responses schemas: - AccessControlIp: - example: - updated_at: 2018-02-02T22:25:27.521Z - description: Signaling IP for system1 - created_at: 2018-02-02T22:25:27.521Z - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - ip_address: 100.101.102.103 - record_type: access_control_ip - properties: - id: - description: Uniquely identifies the access control IP. - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - format: uuid - type: string - record_type: - description: Identifies the type of the resource. - example: access_control_ip - type: string - ip_address: - description: The IP address for which you are saving an access control IP - record. Must be a single IPv4 address. Cannot be a range of IP addresses - or use CIDR notation. - example: 100.101.102.103 - type: string - ip_address_type: - $ref: '#/components/schemas/access_control_ip_ip_address_type' - description: - description: User-supplied freeform textual description field. Maximum length - of 150 characters is enforced. - example: Signaling IP for system1 - type: string - created_at: - description: ISO 8601 formatted date indicating when the resource was created. - example: 2018-02-02T22:25:27.521Z - type: string - updated_at: - description: ISO 8601 formatted date indicating when the resource was updated. - example: 2018-02-02T22:25:27.521Z - type: string - title: AccessControlIp - type: object - AccessControlIpCreate: - example: - description: Signaling IP for system1 - ip_address: 100.101.102.103 - properties: - ip_address: - description: The IP address for which you are saving an access control IP - record. Must be a single IPv4 address. Cannot be a range of IP addresses - or use CIDR notation. - example: 100.101.102.103 - type: string - ip_address_type: - $ref: '#/components/schemas/access_control_ip_ip_address_type' - description: - description: User-supplied freeform textual description field. Maximum length - of 150 characters is enforced. - example: Signaling IP for system1 - type: string - required: - - ip_address - type: object - AccessControlIpUpdate: - example: - description: Signaling IP for system1 - ip_address: 100.101.102.103 - properties: - ip_address: - description: The IP address for which you are saving an access control IP - record. Must be a single IPv4 address. Cannot be a range of IP addresses - or use CIDR notation. - example: 100.101.102.103 - type: string - ip_address_type: - $ref: '#/components/schemas/access_control_ip_ip_address_type' - description: - description: User-supplied freeform textual description field. Maximum length - of 150 characters is enforced. - example: Signaling IP for system1 - type: string - type: object AccessIPAddressListResponseSchema: example: data: @@ -25418,6 +26925,7 @@ components: id: id ip_address: ip_address source: source + status: null - updated_at: 2000-01-23T04:56:07.000+00:00 user_id: user_id description: description @@ -25425,6 +26933,7 @@ components: id: id ip_address: ip_address source: source + status: null meta: page_number: 2 total_pages: 3 @@ -25467,6 +26976,7 @@ components: id: id ip_address: ip_address source: source + status: null properties: id: title: Id @@ -25510,12 +27020,14 @@ components: created_at: 2000-01-23T04:56:07.000+00:00 cidr_block: cidr_block id: id + status: null - updated_at: 2000-01-23T04:56:07.000+00:00 user_id: user_id description: description created_at: 2000-01-23T04:56:07.000+00:00 cidr_block: cidr_block id: id + status: null meta: page_number: 2 total_pages: 3 @@ -25557,6 +27069,7 @@ components: created_at: 2000-01-23T04:56:07.000+00:00 cidr_block: cidr_block id: id + status: null properties: id: title: Id @@ -25592,21 +27105,10 @@ components: exclude: - 7b61621f-62e0-4aad-ab11-9fd19e272e73 - 7b61621f-62e0-4aad-ab11-9fd19e272e73 - participants: "" + participants: null properties: participants: - description: Either a list of participant id to perform the action on, or - the keyword "all" to perform the action on all participant. - oneOf: - - enum: - - all - example: all - type: string - - items: - example: 7b61621f-62e0-4aad-ab11-9fd19e272e73 - format: uuid - type: string - type: array + $ref: '#/components/schemas/ActionsParticipantsRequest_participants' exclude: description: List of participant id to exclude from the action. items: @@ -25615,227 +27117,6 @@ components: type: string type: array type: object - Address: - example: - business_name: Toy-O'Kon - street_address: 311 W Superior Street - validate_address: true - locality: Chicago - last_name: Foster - administrative_area: IL - created_at: 2018-02-02T22:25:27.521Z - borough: Guadalajara - address_book: false - record_type: address - extended_address: '#504' - country_code: US - updated_at: 2018-02-02T22:25:27.521Z - customer_reference: MY REF 001 - phone_number: +12125559000 - id: "1293384261075731499" - neighborhood: Ciudad de los deportes - postal_code: "60654" - first_name: Alfred - properties: - id: - description: Uniquely identifies the address. - example: "1293384261075731499" - format: int64 - type: string - record_type: - description: Identifies the type of the resource. - example: address - type: string - customer_reference: - description: A customer reference string for customer look ups. - example: MY REF 001 - type: string - first_name: - description: The first name associated with the address. An address must - have either a first last name or a business name. - example: Alfred - type: string - last_name: - description: The last name associated with the address. An address must - have either a first last name or a business name. - example: Foster - type: string - business_name: - description: The business name associated with the address. An address must - have either a first last name or a business name. - example: Toy-O'Kon - type: string - phone_number: - description: The phone number associated with the address. - example: +12125559000 - type: string - street_address: - description: The primary street address information about the address. - example: 311 W Superior Street - type: string - extended_address: - description: Additional street address information about the address such - as, but not limited to, unit number or apartment number. - example: '#504' - type: string - locality: - description: The locality of the address. For US addresses, this corresponds - to the city of the address. - example: Chicago - type: string - administrative_area: - description: The locality of the address. For US addresses, this corresponds - to the state of the address. - example: IL - type: string - neighborhood: - description: The neighborhood of the address. This field is not used for - addresses in the US but is used for some international addresses. - example: Ciudad de los deportes - type: string - borough: - description: The borough of the address. This field is not used for addresses - in the US but is used for some international addresses. - example: Guadalajara - type: string - postal_code: - description: The postal code of the address. - example: "60654" - type: string - country_code: - description: The two-character (ISO 3166-1 alpha-2) country code of the - address. - example: US - type: string - address_book: - default: true - description: Indicates whether or not the address should be considered part - of your list of addresses that appear for regular use. - example: false - type: boolean - validate_address: - default: true - description: Indicates whether or not the address should be validated for - emergency use upon creation or not. This should be left with the default - value of `true` unless you have used the `/addresses/actions/validate` - endpoint to validate the address separately prior to creation. If an address - is not validated for emergency use upon creation and it is not valid, - it will not be able to be used for emergency services. - example: true - type: boolean - created_at: - description: ISO 8601 formatted date indicating when the resource was created. - example: 2018-02-02T22:25:27.521Z - type: string - updated_at: - description: ISO 8601 formatted date indicating when the resource was updated. - example: 2018-02-02T22:25:27.521Z - type: string - title: Address - type: object - AddressCreate: - example: - business_name: Toy-O'Kon - street_address: 311 W Superior Street - validate_address: true - locality: Chicago - last_name: Foster - administrative_area: IL - borough: Guadalajara - address_book: false - extended_address: '#504' - country_code: US - customer_reference: MY REF 001 - phone_number: +12125559000 - neighborhood: Ciudad de los deportes - postal_code: "60654" - first_name: Alfred - properties: - customer_reference: - description: A customer reference string for customer look ups. - example: MY REF 001 - type: string - first_name: - description: The first name associated with the address. An address must - have either a first last name or a business name. - example: Alfred - type: string - last_name: - description: The last name associated with the address. An address must - have either a first last name or a business name. - example: Foster - type: string - business_name: - description: The business name associated with the address. An address must - have either a first last name or a business name. - example: Toy-O'Kon - type: string - phone_number: - description: The phone number associated with the address. - example: +12125559000 - type: string - street_address: - description: The primary street address information about the address. - example: 311 W Superior Street - type: string - extended_address: - description: Additional street address information about the address such - as, but not limited to, unit number or apartment number. - example: '#504' - type: string - locality: - description: The locality of the address. For US addresses, this corresponds - to the city of the address. - example: Chicago - type: string - administrative_area: - description: The locality of the address. For US addresses, this corresponds - to the state of the address. - example: IL - type: string - neighborhood: - description: The neighborhood of the address. This field is not used for - addresses in the US but is used for some international addresses. - example: Ciudad de los deportes - type: string - borough: - description: The borough of the address. This field is not used for addresses - in the US but is used for some international addresses. - example: Guadalajara - type: string - postal_code: - description: The postal code of the address. - example: "60654" - type: string - country_code: - description: The two-character (ISO 3166-1 alpha-2) country code of the - address. - example: US - type: string - address_book: - default: true - description: Indicates whether or not the address should be considered part - of your list of addresses that appear for regular use. - example: false - type: boolean - validate_address: - default: true - description: Indicates whether or not the address should be validated for - emergency use upon creation or not. This should be left with the default - value of `true` unless you have used the `/addresses/actions/validate` - endpoint to validate the address separately prior to creation. If an address - is not validated for emergency use upon creation and it is not valid, - it will not be able to be used for emergency services. - example: true - type: boolean - required: - - business_name - - country_code - - first_name - - last_name - - locality - - street_address - type: object AmdDetailRecord: properties: id: @@ -25854,7 +27135,7 @@ components: type: string tags: description: User-provided tags - example: tag1,tag2 + example: "tag1,tag2" type: string billing_group_id: description: Billing Group id @@ -25898,8 +27179,8 @@ components: example: "0.004" type: string currency: - description: Telnyx account currency used to describe monetary values, including - billing cost + description: "Telnyx account currency used to describe monetary values,\ + \ including billing cost" example: USD type: string record_type: @@ -25917,16 +27198,16 @@ components: handle all media.' enum: - Latency - - Chicago, IL - - Ashburn, VA - - San Jose, CA - - Sydney, Australia - - Amsterdam, Netherlands - - London, UK - - Toronto, Canada - - Vancouver, Canada - - Frankfurt, Germany - example: Amsterdam, Netherlands + - "Chicago, IL" + - "Ashburn, VA" + - "San Jose, CA" + - "Sydney, Australia" + - "Amsterdam, Netherlands" + - "London, UK" + - "Toronto, Canada" + - "Vancouver, Canada" + - "Frankfurt, Germany" + example: "Amsterdam, Netherlands" title: Anchorsite Override type: string AnswerRequest: @@ -25999,8 +27280,8 @@ components: example: your-media-id type: string link: - description: The protocol and URL of the media to be sent. Use only with - HTTP/HTTPS URLs. Either id or link must be provided, not both. + description: "The protocol and URL of the media to be sent. Use only with\ + \ HTTP/HTTPS URLs. Either id or link must be provided, not both." example: http://www.example.com/file type: string title: Audio @@ -26038,9 +27319,9 @@ components: example: Okta type: string short_name: - description: The short name associated with the authentication provider. - This must be unique and URL-friendly, as it's going to be part of the - login URL. + description: "The short name associated with the authentication provider.\ + \ This must be unique and URL-friendly, as it's going to be part of the\ + \ login URL." example: myorg type: string organization_id: @@ -26083,9 +27364,9 @@ components: example: Okta type: string short_name: - description: The short name associated with the authentication provider. - This must be unique and URL-friendly, as it's going to be part of the - login URL. + description: "The short name associated with the authentication provider.\ + \ This must be unique and URL-friendly, as it's going to be part of the\ + \ login URL." example: myorg type: string active: @@ -26096,9 +27377,9 @@ components: settings: $ref: '#/components/schemas/settings' settings_url: - description: The URL for the identity provider metadata file to populate - the settings automatically. If the settings attribute is provided, that - will be used instead. + description: "The URL for the identity provider metadata file to populate\ + \ the settings automatically. If the settings attribute is provided, that\ + \ will be used instead." example: https://myorg.myidp.com/saml/metadata type: string required: @@ -26279,18 +27560,18 @@ components: example: 891510ac-f3e4-11e8-af5b-de00688a4901 type: string queue: - description: The name of the queue you want to bridge with, can't be used - together with call_control_id parameter. Bridging with a queue means bridging - with the first call in the queue. The call will always be removed from - the queue regardless of whether bridging succeeds. Returns an error when - the queue is empty. + description: "The name of the queue you want to bridge with, can't be used\ + \ together with call_control_id parameter. Bridging with a queue means\ + \ bridging with the first call in the queue. The call will always be removed\ + \ from the queue regardless of whether bridging succeeds. Returns an error\ + \ when the queue is empty." example: support type: string park_after_unbridge: - description: Specifies behavior after the bridge ends (i.e. the opposite - leg either hangs up or is transferred). If supplied with the value `self`, - the current leg will be parked after unbridge. If not set, the default - behavior is to hang up the leg. + description: "Specifies behavior after the bridge ends (i.e. the opposite\ + \ leg either hangs up or is transferred). If supplied with the value `self`,\ + \ the current leg will be parked after unbridge. If not set, the default\ + \ behavior is to hang up the leg." example: self type: string required: @@ -26330,6 +27611,110 @@ components: - tag title: Bulk Credential Request type: object + BulkSIMCardAction: + description: This object represents a bulk SIM card action. It groups SIM card + actions created through a bulk endpoint under a single resource for further + lookup. + example: + settings: {} + updated_at: 2018-02-02T22:25:27.521Z + action_type: bulk_set_public_ips + created_at: 2018-02-02T22:25:27.521Z + id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + record_type: bulk_sim_card_action + properties: + id: + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + readOnly: true + type: string + record_type: + example: bulk_sim_card_action + readOnly: true + type: string + action_type: + description: "The operation type. It can be one of the following:
\n\ + " + enum: + - bulk_set_public_ips + example: bulk_set_public_ips + readOnly: true + type: string + settings: + description: A JSON object representation of the bulk action payload. + example: {} + readOnly: true + type: object + created_at: + description: ISO 8601 formatted date-time indicating when the resource was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + updated_at: + description: ISO 8601 formatted date-time indicating when the resource was + updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + type: object + BulkSIMCardActionDetailed: + example: + settings: {} + updated_at: 2018-02-02T22:25:27.521Z + action_type: bulk_set_public_ips + created_at: 2018-02-02T22:25:27.521Z + id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + sim_card_actions_summary: + - count: 0 + status: in-progress + - count: 0 + status: in-progress + record_type: bulk_sim_card_action + properties: + id: + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + readOnly: true + type: string + record_type: + example: bulk_sim_card_action + readOnly: true + type: string + action_type: + description: "The operation type. It can be one of the following:
\n\ + " + enum: + - bulk_set_public_ips + example: bulk_set_public_ips + readOnly: true + type: string + settings: + description: A JSON object representation of the bulk action payload. + example: {} + readOnly: true + type: object + sim_card_actions_summary: + items: + $ref: '#/components/schemas/SIMCardActionsSummary' + type: array + created_at: + description: ISO 8601 formatted date-time indicating when the resource was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + updated_at: + description: ISO 8601 formatted date-time indicating when the resource was + updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + type: object BusinessIdentity: example: id: 6786c69b-0063-47de-865f-cf64b7e7f59e @@ -26415,7 +27800,7 @@ components: $ref: '#/components/schemas/BusinessIdentity_address' contacts: items: - $ref: '#/components/schemas/BusinessIdentity_contacts' + $ref: '#/components/schemas/BusinessIdentity_contacts_inner' type: array created_at: description: An ISO 8601 datetime string for when the business identity @@ -26432,6 +27817,65 @@ components: readOnly: true type: string type: object + Button: + properties: + sub_type: + description: Type of button being created. + index: + description: Position index of the button. You can have up to 3 buttons + using index values of 0-2. + title: Index + type: integer + parameters: + description: "The parameters for the button, which are set at creation time\ + \ in your Business Manager." + items: + $ref: '#/components/schemas/ButtonParameter' + title: Parameters + type: array + required: + - index + - parameters + - sub_type + title: Button + type: object + ButtonComponentType: + description: An enumeration. + enum: + - button + title: ButtonComponentType + type: string + ButtonParameter: + properties: + type: + description: Indicates the type of parameter for the button. + payload: + description: Developer-defined payload that will be returned when the button + is clicked in addition to the display text on the button. Required for + quick_reply buttons. + title: Payload + text: + description: Developer provided suffix that will be appended to a previously + created dynamic URL button. Required for url buttons. + title: Text + required: + - type + title: ButtonParameter + type: object + ButtonParameterType: + description: An enumeration. + enum: + - payload + - text + title: ButtonParameterType + type: string + ButtonSubtype: + description: An enumeration. + enum: + - quick_reply + - url + title: ButtonSubtype + type: string Call: example: call_control_id: v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ @@ -26446,10 +27890,10 @@ components: example: call type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call" example: 428c31b6-7af4-4bcb-b68e-5013ef9657c1 type: string call_leg_id: @@ -26634,10 +28078,10 @@ components: `Latency` directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. enum: - '"Latency"' - - '"Chicago, IL"' - - '"Ashburn, VA"' - - '"San Jose, CA"' - example: '"Amsterdam, Netherlands"' + - "\"Chicago, IL\"" + - "\"Ashburn, VA\"" + - "\"San Jose, CA\"" + example: "\"Amsterdam, Netherlands\"" type: string application_name: description: A user-assigned name to help manage the application. @@ -26688,8 +28132,8 @@ components: type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -26697,16 +28141,16 @@ components: type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as `https`. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as `https`." example: https://failover.example.com format: url nullable: true type: string webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as `https`. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as `https`." example: https://example.com format: url type: string @@ -26721,25 +28165,24 @@ components: CallControlApplicationInbound: properties: channel_limit: - description: When set, this will limit the total number of inbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of inbound calls\ + \ to phone numbers associated with this connection." example: 10 type: integer sip_subdomain: - default: "null" - description: 'Specifies a subdomain that can be used to receive Inbound - calls to a Connection, in the same way a phone number is used, from a - SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called - from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" - where the user part can be any alphanumeric value. Please note TLS encrypted - calls are not allowed for subdomain calls.' + description: "Specifies a subdomain that can be used to receive Inbound\ + \ calls to a Connection, in the same way a phone number is used, from\ + \ a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can\ + \ be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\"\ + \ where the user part can be any alphanumeric value. Please note TLS encrypted\ + \ calls are not allowed for subdomain calls." example: example type: string sip_subdomain_receive_settings: default: from_anyone - description: 'This option can be enabled to receive calls from: "Anyone" - (any SIP endpoint in the public Internet) or "Only my connections" (any - connection assigned to the same Telnyx user).' + description: "This option can be enabled to receive calls from: \"Anyone\"\ + \ (any SIP endpoint in the public Internet) or \"Only my connections\"\ + \ (any connection assigned to the same Telnyx user)." enum: - only_my_connections - from_anyone @@ -26750,8 +28193,8 @@ components: CallControlApplicationOutbound: properties: channel_limit: - description: When set, this will limit the total number of outbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of outbound calls\ + \ to phone numbers associated with this connection." example: 10 type: integer outbound_voice_profile_id: @@ -26771,35 +28214,6 @@ components: title: Call Control Command Result type: object CallCost: - example: - occurred_at: 2018-02-02T22:25:27.521992Z - event_type: call.cost - payload: - call_leg_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 - total_cost: 0.0 - client_state: aGF2ZSBhIG5pY2UgZGF5ID1d - connection_id: 7267xxxxxxxxxxxxxx - call_control_id: v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ - billed_duration_secs: 0 - call_session_id: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 - cost_parts: - - call_part: call-control - cost: 0.0 - rate: 0.001 - billed_duration_secs: 0 - currency: USD - - call_part: call-control - cost: 0.0 - rate: 0.001 - billed_duration_secs: 0 - currency: USD - status: valid - meta: - meta: - delivered_to: https://example.com - attempt: 1 - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - record_type: event properties: record_type: description: Identifies the type of resource. @@ -26993,8 +28407,8 @@ components: example: webhook type: string metadata: - description: Event metadata, which includes raw event, and extra information - based on event type + description: "Event metadata, which includes raw event, and extra information\ + \ based on event type" type: object required: - call_leg_id @@ -27014,8 +28428,11 @@ components: occurred_at: 2018-02-02T22:25:27.521992Z payload: connection_id: 7267xxxxxxxxxxxxxx + call_control_id: v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA call_leg_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 call_session_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 + client_state: aGF2ZSBhIG5pY2UgZGF5ID1d + stream_type: decrypted properties: record_type: description: Identifies the type of the resource. @@ -27052,8 +28469,11 @@ components: occurred_at: 2018-02-02T22:25:27.521992Z payload: connection_id: 7267xxxxxxxxxxxxxx + call_control_id: v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA call_leg_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 call_session_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 + client_state: aGF2ZSBhIG5pY2UgZGF5ID1d + stream_type: decrypted properties: data: $ref: '#/components/schemas/CallForkStarted' @@ -27067,8 +28487,11 @@ components: occurred_at: 2018-02-02T22:25:27.521992Z payload: connection_id: 7267xxxxxxxxxxxxxx + call_control_id: v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA call_leg_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 call_session_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 + client_state: aGF2ZSBhIG5pY2UgZGF5ID1d + stream_type: decrypted properties: record_type: description: Identifies the type of the resource. @@ -27105,8 +28528,11 @@ components: occurred_at: 2018-02-02T22:25:27.521992Z payload: connection_id: 7267xxxxxxxxxxxxxx + call_control_id: v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA call_leg_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 call_session_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 + client_state: aGF2ZSBhIG5pY2UgZGF5ID1d + stream_type: decrypted properties: data: $ref: '#/components/schemas/CallForkStopped' @@ -27127,9 +28553,9 @@ components: example: true type: boolean forwards_to: - description: The phone number to which inbound calls to this number are - forwarded. Inbound calls will not be forwarded if this field is left blank. - If set, must be a +E.164-formatted phone number. + description: "The phone number to which inbound calls to this number are\ + \ forwarded. Inbound calls will not be forwarded if this field is left\ + \ blank. If set, must be a +E.164-formatted phone number." type: string forwarding_type: description: Call forwarding type. 'forwards_to' must be set for this to @@ -27659,7 +29085,7 @@ components: properties: inbound_call_recording_enabled: default: false - description: When enabled, any inbound call to this number will be recorded. + description: "When enabled, any inbound call to this number will be recorded." type: boolean inbound_call_recording_format: default: wav @@ -27670,8 +29096,8 @@ components: type: string inbound_call_recording_channels: default: single - description: When using 'dual' channels, final audio file will be stereo - recorded with the first leg on channel A, and the rest on channel B. + description: "When using 'dual' channels, final audio file will be stereo\ + \ recorded with the first leg on channel A, and the rest on channel B." enum: - single - dual @@ -27972,17 +29398,13 @@ components: link_to: ilditnZK_eVysupV21KzmzN_sM29ygfauQojpm4BgFtfX5hXAcjotg== sip_auth_username: username sip_auth_password: password + enable_dialogflow: false + dialogflow_config: + analyze_sentiment: false + partial_automated_agent_reply: false properties: to: - description: The DID or SIP URI to dial out to. Multiple DID or SIP URIs - can be provided using an array of strings - oneOf: - - example: +18005550100 or sip:username@sip.telnyx.com - type: string - - example: '["+18005550100", "sip:username@sip.telnyx.com"]' - items: - type: string - type: array + $ref: '#/components/schemas/CallRequest_to' from: description: The `from` number to be used as the caller id presented to the destination (`to` number). The number should be in +E164 format. This @@ -27990,11 +29412,11 @@ components: example: +18005550101 type: string from_display_name: - description: The `from_display_name` string to be used as the caller id - name (SIP From Display Name) presented to the destination (`to` number). - The string should have a maximum of 128 characters, containing only letters, - numbers, spaces, and -_~!.+ special characters. If ommited, the display - name will be the same as the number in the `from` field. + description: "The `from_display_name` string to be used as the caller id\ + \ name (SIP From Display Name) presented to the destination (`to` number).\ + \ The string should have a maximum of 128 characters, containing only\ + \ letters, numbers, spaces, and -_~!.+ special characters. If ommited,\ + \ the display name will be the same as the number in the `from` field." example: Company Name type: string connection_id: @@ -28017,39 +29439,40 @@ components: preferred_codecs: description: The list of comma-separated codecs in a preferred order for the forked media to be received. - example: G722,PCMU,PCMA,G729,OPUS,VP8,H264 + example: "G722,PCMU,PCMA,G729,OPUS,VP8,H264" type: string timeout_secs: default: 30 - description: The number of seconds that Telnyx will wait for the call to - be answered by the destination to which it is being called. If the timeout - is reached before an answer is received, the call will hangup and a `call.hangup` - webhook with a `hangup_cause` of `timeout` will be sent. Minimum value - is 5 seconds. Maximum value is 120 seconds. + description: "The number of seconds that Telnyx will wait for the call to\ + \ be answered by the destination to which it is being called. If the timeout\ + \ is reached before an answer is received, the call will hangup and a\ + \ `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent.\ + \ Minimum value is 5 seconds. Maximum value is 120 seconds." example: 60 format: int32 type: integer time_limit_secs: default: 14400 - description: Sets the maximum duration of a Call Control Leg in seconds. - If the time limit is reached, the call will hangup and a `call.hangup` - webhook with a `hangup_cause` of `time_limit` will be sent. For example, - by setting a time limit of 120 seconds, a Call Leg will be automatically - terminated two minutes after being answered. The default time limit is - 14400 seconds or 4 hours and this is also the maximum allowed call length. + description: "Sets the maximum duration of a Call Control Leg in seconds.\ + \ If the time limit is reached, the call will hangup and a `call.hangup`\ + \ webhook with a `hangup_cause` of `time_limit` will be sent. For example,\ + \ by setting a time limit of 120 seconds, a Call Leg will be automatically\ + \ terminated two minutes after being answered. The default time limit\ + \ is 14400 seconds or 4 hours and this is also the maximum allowed call\ + \ length." example: 600 format: int32 type: integer answering_machine_detection: default: disabled - description: Enables Answering Machine Detection. When a call is answered, - Telnyx runs real-time detection to determine if it was picked up by a - human or a machine and sends an `call.machine.detection.ended` webhook - with the analysis result. If 'greeting_end' or 'detect_words' is used - and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' - webhook when the answering machine greeting ends with a beep or silence. - If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' - if a beep is detected. + description: "Enables Answering Machine Detection. When a call is answered,\ + \ Telnyx runs real-time detection to determine if it was picked up by\ + \ a human or a machine and sends an `call.machine.detection.ended` webhook\ + \ with the analysis result. If 'greeting_end' or 'detect_words' is used\ + \ and a 'machine' is detected, you will receive another 'call.machine.greeting.ended'\ + \ webhook when the answering machine greeting ends with a beep or silence.\ + \ If `detect_beep` is used, you will only receive 'call.machine.greeting.ended'\ + \ if a beep is detected." enum: - detect - detect_beep @@ -28125,6 +29548,55 @@ components: - GET example: GET type: string + record: + description: Start recording automatically after an event. Disabled by default. + enum: + - record-from-answer + example: record-from-answer + type: string + record_channels: + default: dual + description: Defines which channel should be recorded ('single' or 'dual') + when `record` is specified. + enum: + - single + - dual + example: single + type: string + record_format: + default: mp3 + description: Defines the format of the recording ('wav' or 'mp3') when `record` + is specified. + enum: + - wav + - mp3 + example: wav + type: string + record_max_length: + default: 0 + description: Defines the maximum length for the recording in seconds when + `record` is specified. The minimum value is 0. The maximum value is 43200. + The default value is 0 (infinite). + example: 1000 + format: int32 + type: integer + record_timeout_secs: + default: 0 + description: The number of seconds that Telnyx will wait for the recording + to be stopped if silence is detected when `record` is specified. The timer + only starts when the speech is detected. The minimum value is 0. The default + value is 0 (infinite). + example: 100 + format: int32 + type: integer + enable_dialogflow: + default: false + description: Enables Dialogflow for the current call. The default value + is false. + example: true + type: boolean + dialogflow_config: + $ref: '#/components/schemas/DialogflowConfig' required: - connection_id - from @@ -28247,6 +29719,75 @@ components: $ref: '#/components/schemas/CallSpeakStarted' title: Call Speak Started Event type: object + CallStreamingFailed: + example: + record_type: event + event_type: streaming.failed + id: 25dc3731-e51e-4927-a50d-a61cc25984b1 + occurred_at: 2021-12-15T14:11:24.613295Z + payload: + call_control_id: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + connection_id: 7267xxxxxxxxxxxxxx + call_leg_id: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + call_session_id: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + client_state: aGF2ZSBhIG5pY2UgZGF5ID1d + failure_reason: connection_failed + stream_id: 1edb94f9-7ef0-4150-b502-e0ebadfd9491 + stream_params: + stream_url: wss://www.example.com/websocket + stream_track: inbound_track + stream_type: websocket + properties: + record_type: + description: Identifies the resource. + enum: + - event + example: event + type: string + event_type: + description: The type of event being delivered. + enum: + - streaming.failed + example: streaming.failed + type: string + id: + description: Identifies the type of resource. + example: 25dc3731-e51e-4927-a50d-a61cc25984b1 + format: uuid + type: string + occurred_at: + description: ISO 8601 datetime of when the event occurred. + example: 2021-12-15T14:11:24.613295Z + format: date-time + type: string + payload: + $ref: '#/components/schemas/CallStreamingFailed_payload' + title: Streaming Failed + type: object + CallStreamingFailedEvent: + example: + data: + record_type: event + event_type: streaming.failed + id: 25dc3731-e51e-4927-a50d-a61cc25984b1 + occurred_at: 2021-12-15T14:11:24.613295Z + payload: + call_control_id: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + connection_id: 7267xxxxxxxxxxxxxx + call_leg_id: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + call_session_id: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + client_state: aGF2ZSBhIG5pY2UgZGF5ID1d + failure_reason: connection_failed + stream_id: 1edb94f9-7ef0-4150-b502-e0ebadfd9491 + stream_params: + stream_url: wss://www.example.com/websocket + stream_track: inbound_track + stream_type: websocket + properties: + data: + $ref: '#/components/schemas/CallStreamingFailed' + title: Streaming Failed Event + type: object CallStreamingStarted: example: record_type: event @@ -28387,8 +29928,8 @@ components: example: TELNYX LLC type: string error_code: - description: A caller-name lookup specific error code, expressed as a stringified - 5-digit integer + description: "A caller-name lookup specific error code, expressed as a stringified\ + \ 5-digit integer" example: "10001" type: string type: object @@ -28406,14 +29947,14 @@ components: example: US type: string mobile_network_code: - description: National destination code (NDC), with a 0 prefix, if an NDC - is found and the requested phone number type is mobile + description: "National destination code (NDC), with a 0 prefix, if an NDC\ + \ is found and the requested phone number type is mobile" example: "0866" type: string name: - description: SPID (Service Provider ID) name, if the requested phone number - has been ported; otherwise, the name of carrier who owns the phone number - block + description: "SPID (Service Provider ID) name, if the requested phone number\ + \ has been ported; otherwise, the name of carrier who owns the phone number\ + \ block" example: Telnyx/4 type: string type: @@ -28442,7 +29983,7 @@ components: example: data: aggregation_type: NO_AGGREGATION - result: '{}' + result: "{}" start_time: 2018-02-02T22:25:27.521Z updated_at: 2018-02-02T22:25:27.521Z report_url: http://portal.telnyx.com/downloads/report_name_8hvb45Gu.csv @@ -28450,7 +29991,7 @@ components: product_breakdown: NO_BREAKDOWN created_at: 2018-02-02T22:25:27.521Z id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - connections: '[1234567890L, 9876543210L]' + connections: "[1234567890L, 9876543210L]" record_type: cdr_usage_report status: PENDING properties: @@ -28460,7 +30001,7 @@ components: CdrUsageReportResponse: example: aggregation_type: NO_AGGREGATION - result: '{}' + result: "{}" start_time: 2018-02-02T22:25:27.521Z updated_at: 2018-02-02T22:25:27.521Z report_url: http://portal.telnyx.com/downloads/report_name_8hvb45Gu.csv @@ -28468,7 +30009,7 @@ components: product_breakdown: NO_BREAKDOWN created_at: 2018-02-02T22:25:27.521Z id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - connections: '[1234567890L, 9876543210L]' + connections: "[1234567890L, 9876543210L]" record_type: cdr_usage_report status: PENDING properties: @@ -28485,7 +30026,7 @@ components: format: date-time type: string connections: - example: '[1234567890L, 9876543210L]' + example: "[1234567890L, 9876543210L]" items: format: int64 type: integer @@ -28532,6 +30073,7 @@ components: type: string type: object CheckContact: + description: "" example: record_type: whatsapp_contact input: +1 (512) 555-1234 @@ -28555,10 +30097,10 @@ components: - invalid type: string x-enum-descriptions: - - 'processing: Input is still being processed.' - - 'valid: Input determined to be a valid WhatsApp user.' - - 'invalid: Input determined to not be a valid WhatsApp user or the phone - number is in a bad format.' + - "processing: Input is still being processed." + - "valid: Input determined to be a valid WhatsApp user." + - "invalid: Input determined to not be a valid WhatsApp user or the phone\ + \ number is in a bad format." id: description: WhatsApp user identifier that can be used in other API calls. Only returned if the status is valid. @@ -28643,7 +30185,7 @@ components: created_at: 2018-01-01T00:00:00.000000Z id: 12ade33a-21c0-473b-b055-b3c836e1c292 comment_record_type: sub_number_order - body: Hi there, .... + body: "Hi there, ...." commenter_type: user commenter: user@company.com properties: @@ -28653,7 +30195,7 @@ components: readOnly: true type: string body: - example: Hi there, .... + example: "Hi there, ...." type: string commenter: example: user@company.com @@ -28925,11 +30467,11 @@ components: example: true type: boolean hold_audio_url: - description: The URL of a file to be played to the participant when they - are put on hold after joining the conference. If media_name is also supplied, - this is currently ignored. Takes effect only when "start_conference_on_create" - is set to "false". This property takes effect only if "hold" is set to - "true". + description: "The URL of a file to be played to the participant when they\ + \ are put on hold after joining the conference. If media_name is also\ + \ supplied, this is currently ignored. Takes effect only when \"start_conference_on_create\"\ + \ is set to \"false\". This property takes effect only if \"hold\" is\ + \ set to \"true\"." example: http://example.com/message.wav type: string hold_media_name: @@ -28972,9 +30514,9 @@ components: example: +18005550100 or sip:username@sip.telnyx.com type: string whisper_call_control_ids: - description: Array of unique call_control_ids the joining supervisor can - whisper to. If none provided, the supervisor will join the conference - as a monitoring participant only. + description: "Array of unique call_control_ids the joining supervisor can\ + \ whisper to. If none provided, the supervisor will join the conference\ + \ as a monitoring participant only." example: - v2:Sg1xxxQ_U3ixxxyXT_VDNI3xxxazZdg6Vxxxs4-GNYxxxVaJPOhFMRQ - v2:qqpb0mmvd-ovhhBr0BUQQn0fld5jIboaaX3-De0DkqXHzbf8d75xkw @@ -29323,8 +30865,8 @@ components: example: "0.004" type: string currency: - description: Telnyx account currency used to describe monetary values, including - billing cost + description: "Telnyx account currency used to describe monetary values,\ + \ including billing cost" example: USD type: string record_type: @@ -29706,9 +31248,9 @@ components: loop: $ref: '#/components/schemas/Loopcount' call_control_ids: - description: List of call control ids identifying participants the audio - file should be played to. If not given, the audio file will be played - to the entire conference. + description: "List of call control ids identifying participants the audio\ + \ file should be played to. If not given, the audio file will be played\ + \ to the entire conference." items: type: string type: array @@ -29959,14 +31501,14 @@ components: type: string type: array payload: - description: The text or SSML to be converted into speech. There is a 3,000 - character limit. + description: "The text or SSML to be converted into speech. There is a 3,000\ + \ character limit." example: Say this to participants type: string payload_type: default: text - description: The type of the provided payload. The payload can either be - plain text, or Speech Synthesis Markup Language (SSML). + description: "The type of the provided payload. The payload can either be\ + \ plain text, or Speech Synthesis Markup Language (SSML)." enum: - text - ssml @@ -30082,9 +31624,9 @@ components: - call_control_ids properties: call_control_ids: - description: List of call control ids identifying participants the audio - file should stop be played to. If not given, the audio will be stoped - to the entire conference. + description: "List of call control ids identifying participants the audio\ + \ file should stop be played to. If not given, the audio will be stoped\ + \ to the entire conference." items: type: string type: array @@ -30160,7 +31702,6 @@ components: example: 2018-02-02T22:25:27.521Z type: string webhook_event_url: - default: "null" description: The URL where webhooks related to this connection will be sent. example: https://example.com format: url @@ -30176,8 +31717,8 @@ components: type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -30197,6 +31738,10 @@ components: example: false title: Connection Active type: boolean + ConnectionId: + description: The ID of the connection used to send the fax. + example: "234423" + type: string ConnectionName: description: A user-assigned name to help manage the connection. example: office-connection @@ -30210,7 +31755,7 @@ components: properties: port: default: rtp+1 - description: RTCP port by default is rtp+1, it can also be set to rtcp-mux + description: "RTCP port by default is rtp+1, it can also be set to rtcp-mux" enum: - rtcp-mux - rtp+1 @@ -30300,6 +31845,7 @@ components: $ref: '#/components/schemas/Email' type: array ims: + description: "" items: type: string type: array @@ -30319,6 +31865,11 @@ components: type: array title: Contact type: object + Contents: + description: The file you want to upload. The maximum allowed size is 20 MB. + contents and media_name/media_url can't be submitted together. + format: binary + type: string CostInformation: example: upfront_cost: "3.21" @@ -30338,9 +31889,15 @@ components: type: object CreateAndroidPushCredentialRequest: properties: + type: + description: Type of mobile push credential. Should be android + here + enum: + - android + type: string server_key: description: Server key as received from Google firebase - example: BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0 + example: BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja... type: string alias: description: Alias to uniquely identify the credential @@ -30349,6 +31906,7 @@ components: required: - alias - server_key + - type title: Create Android Push Credential Request type: object CreateCallControlApplicationRequest: @@ -30376,8 +31934,8 @@ components: example: call-router type: string webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string @@ -30391,10 +31949,10 @@ components: Latency directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. enum: - '"Latency"' - - '"Chicago, IL"' - - '"Ashburn, VA"' - - '"San Jose, CA"' - example: '"Amsterdam, Netherlands"' + - "\"Chicago, IL\"" + - "\"Ashburn, VA\"" + - "\"San Jose, CA\"" + example: "\"Amsterdam, Netherlands\"" type: string dtmf_type: default: RFC 2833 @@ -30424,8 +31982,8 @@ components: $ref: '#/components/schemas/CallControlApplicationOutbound' webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -30433,9 +31991,9 @@ components: type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -30612,9 +32170,9 @@ components: type: string default_on_hold_comfort_noise_enabled: default: false - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." type: boolean dtmf_type: $ref: '#/components/schemas/DtmfType' @@ -30627,30 +32185,30 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer the sender and receiver negotiating - T38 directly if both are on the Telnyx network. If this is disabled, Telnyx - will be able to use T38 on just one leg of the call depending on each - leg's settings. + description: "Enable on-net T38 if you prefer the sender and receiver negotiating\ + \ T38 directly if both are on the Telnyx network. If this is disabled,\ + \ Telnyx will be able to use T38 on just one leg of the call depending\ + \ on each leg's settings." type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -30683,7 +32241,7 @@ components: example: application_name: fax-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" webhook_event_url: https://example.com webhook_event_failover_url: https://failover.example.com webhook_timeout_secs: 25 @@ -30709,17 +32267,17 @@ components: anchorsite_override: $ref: '#/components/schemas/AnchorsiteOverride' webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url title: Webhook Event URL type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -30791,9 +32349,9 @@ components: $ref: '#/components/schemas/FqdnConnectionTransportProtocol' default_on_hold_comfort_noise_enabled: default: true - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." type: boolean dtmf_type: $ref: '#/components/schemas/DtmfType' @@ -30806,30 +32364,30 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer the sender and receiver negotiating - T38 directly if both are on the Telnyx network. If this is disabled, Telnyx - will be able to use T38 on just one leg of the call depending on each - leg's settings. + description: "Enable on-net T38 if you prefer the sender and receiver negotiating\ + \ T38 directly if both are on the Telnyx network. If this is disabled,\ + \ Telnyx will be able to use T38 on just one leg of the call depending\ + \ on each leg's settings." type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -30870,10 +32428,10 @@ components: nullable: true type: integer dns_record_type: - description: The DNS record type for the FQDN. For cases where a port is - not set, the DNS record type must be 'srv'. For cases where a port is - set, the DNS record type must be 'a'. If the DNS record type is 'a' and - a port is not specified, 5060 will be used. + description: "The DNS record type for the FQDN. For cases where a port is\ + \ not set, the DNS record type must be 'srv'. For cases where a port is\ + \ set, the DNS record type must be 'a'. If the DNS record type is 'a'\ + \ and a port is not specified, 5060 will be used." example: a type: string required: @@ -30926,25 +32484,25 @@ components: - G729 - OPUS - H.264 - description: 'Defines the list of codecs that Telnyx will send for inbound - calls to a specific number on your portal account, in priority order. - This only works when the Connection the number is assigned to uses Media - Handling mode: default. OPUS and H.264 codecs are available only when - using TCP or TLS transport for SIP.' + description: "Defines the list of codecs that Telnyx will send for inbound\ + \ calls to a specific number on your portal account, in priority order.\ + \ This only works when the Connection the number is assigned to uses Media\ + \ Handling mode: default. OPUS and H.264 codecs are available only when\ + \ using TCP or TLS transport for SIP." items: type: string type: array default_routing_method: - description: Default routing method to be used when a number is associated - with the connection. Must be one of the routing method types or left blank, - other values are not allowed. + description: "Default routing method to be used when a number is associated\ + \ with the connection. Must be one of the routing method types or left\ + \ blank, other values are not allowed." enum: - sequential - round-robin type: string channel_limit: - description: When set, this will limit the total number of inbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of inbound calls\ + \ to phone numbers associated with this connection." type: integer generate_ringback_tone: default: false @@ -30953,8 +32511,9 @@ components: type: boolean isup_headers_enabled: default: false - description: When set, inbound phone calls will receive ISUP parameters - via SIP headers. (Only when available and only when using TCP or TLS transport.) + description: "When set, inbound phone calls will receive ISUP parameters\ + \ via SIP headers. (Only when available and only when using TCP or TLS\ + \ transport.)" type: boolean prack_enabled: default: false @@ -30962,10 +32521,10 @@ components: type: boolean privacy_zone_enabled: default: false - description: By default, Telnyx does not send caller-id information when - the caller has chosen to hide this information. When this option is enabled, - Telnyx will send the SIP header Privacy:id plus the caller-id information - so that the receiver side can choose when to hide it. + description: "By default, Telnyx does not send caller-id information when\ + \ the caller has chosen to hide this information. When this option is\ + \ enabled, Telnyx will send the SIP header Privacy:id plus the caller-id\ + \ information so that the receiver side can choose when to hide it." type: boolean sip_compact_headers_enabled: default: true @@ -30973,25 +32532,25 @@ components: type: boolean sip_region: default: US - description: Selects which `sip_region` to receive inbound calls from. If - null, the default region (US) will be used. + description: "Selects which `sip_region` to receive inbound calls from.\ + \ If null, the default region (US) will be used." enum: - US - Europe - Australia type: string sip_subdomain: - description: 'Specifies a subdomain that can be used to receive Inbound - calls to a Connection, in the same way a phone number is used, from a - SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called - from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" - where the user part can be any alphanumeric value. Please note TLS encrypted - calls are not allowed for subdomain calls.' + description: "Specifies a subdomain that can be used to receive Inbound\ + \ calls to a Connection, in the same way a phone number is used, from\ + \ a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can\ + \ be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\"\ + \ where the user part can be any alphanumeric value. Please note TLS encrypted\ + \ calls are not allowed for subdomain calls." type: string sip_subdomain_receive_settings: - description: 'This option can be enabled to receive calls from: "Anyone" - (any SIP endpoint in the public Internet) or "Only my connections" (any - connection assigned to the same Telnyx user).' + description: "This option can be enabled to receive calls from: \"Anyone\"\ + \ (any SIP endpoint in the public Internet) or \"Only my connections\"\ + \ (any connection assigned to the same Telnyx user)." enum: - only_my_connections - from_anyone @@ -31004,82 +32563,29 @@ components: type: integer timeout_2xx_secs: default: 90 - description: 'Time(sec) before aborting if call is unanswered (min: 1, max: - 600).' + description: "Time(sec) before aborting if call is unanswered (min: 1, max:\ + \ 600)." type: integer title: Create Inbound Ip Request type: object CreateIosPushCredentialRequest: properties: + type: + description: Type of mobile push credential. Should be ios + here + enum: + - ios + type: string certificate: description: Certificate as received from APNs - example: | - Bag Attributes - friendlyName: VoIP Services: com.telnyx.webrtcapp - localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA - subject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US - issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority - -----BEGIN CERTIFICATE----- - MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3 - o6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt - hRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ - cakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk - MAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw - PwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j - b20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC - DRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq - dGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF - MIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh - dGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109 - CfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx - cHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ - Y2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0 - YXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk - LLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj - /xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d - BPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg== - -----END CERTIFICATE----- + example: '-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... + -----END CERTIFICATE-----' type: string private_key: description: Corresponding private key to the certificate as received from APNs - example: |- - -----BEGIN RSA PRIVATE KEY----- - MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r - B8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2 - Zgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4 - 3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG - wfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k - wsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0 - cE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC - 3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St - mu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO - IWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu - y3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/ - zkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU - hxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh - RUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV - QOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv - 8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4= - -----END RSA PRIVATE KEY----- + example: '-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... + -----END RSA PRIVATE KEY-----' type: string alias: description: Alias to uniquely identify the credential @@ -31089,7 +32595,8 @@ components: - alias - certificate - private_key - title: Create IOS Push Credential Request + - type + title: Create iOS push credential request type: object CreateIpConnectionRequest: example: @@ -31154,8 +32661,8 @@ components: type: string transport_protocol: default: UDP - description: One of UDP, TLS, or TCP. Applies only to connections with IP - authentication or FQDN authentication. + description: "One of UDP, TLS, or TCP. Applies only to connections with\ + \ IP authentication or FQDN authentication." enum: - UDP - TCP @@ -31164,9 +32671,9 @@ components: type: string default_on_hold_comfort_noise_enabled: default: true - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." example: true type: boolean dtmf_type: @@ -31181,31 +32688,31 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer the sender and receiver negotiating - T38 directly if both are on the Telnyx network. If this is disabled, Telnyx - will be able to use T38 on just one leg of the call depending on each - leg's settings. + description: "Enable on-net T38 if you prefer the sender and receiver negotiating\ + \ T38 directly if both are on the Telnyx network. If this is disabled,\ + \ Telnyx will be able to use T38 on just one leg of the call depending\ + \ on each leg's settings." example: false type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -31251,7 +32758,7 @@ components: example: from: +18445550001 to: +13125550002 - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media_urls: - http://example.com @@ -31261,7 +32768,7 @@ components: type: MMS properties: from: - description: Phone number, in +E.164 format, used to send the message. + description: "Phone number, in +E.164 format, used to send the message." format: address type: string to: @@ -31270,10 +32777,8 @@ components: format: address type: string text: - description: |- - Message body (i.e., content) as a non-empty string. - - **Required for SMS** + description: "Message body (i.e., content) as a non-empty string.\n\n**Required\ + \ for SMS**" type: string subject: description: Subject of multimedia message @@ -31298,12 +32803,13 @@ components: type: string use_profile_webhooks: default: true - description: If the profile this number is associated with has webhooks, - use them for delivery notifications. If webhooks are also specified on - the message itself, they will be attempted first, then those on the profile. + description: "If the profile this number is associated with has webhooks,\ + \ use them for delivery notifications. If webhooks are also specified\ + \ on the message itself, they will be attempted first, then those on the\ + \ profile." type: boolean type: - description: The protocol for sending the message, either SMS or MMS. + description: "The protocol for sending the message, either SMS or MMS." enum: - SMS - MMS @@ -31326,38 +32832,38 @@ components: rollup_billing: false properties: email: - description: The email address for the managed account. If not provided, - the email address will be generated based on the email address of the - manager account. + description: "The email address for the managed account. If not provided,\ + \ the email address will be generated based on the email address of the\ + \ manager account." example: new_managed_account@customer.org type: string password: - description: Password for the managed account. If a password is not supplied, - the account will not be able to be signed into directly. (A password reset - may still be performed later to enable sign-in via password.) + description: "Password for the managed account. If a password is not supplied,\ + \ the account will not be able to be signed into directly. (A password\ + \ reset may still be performed later to enable sign-in via password.)" example: 3jVjLq!tMuWKyWx4NN*CvhnB type: string business_name: - description: The name of the business for which the new managed account - is being created, that will be used as the managed accounts's organization's - name. + description: "The name of the business for which the new managed account\ + \ is being created, that will be used as the managed accounts's organization's\ + \ name." example: Larry's Cat Food Inc type: string managed_account_allow_custom_pricing: - description: Boolean value that indicates if the managed account is able - to have custom pricing set for it or not. If false, uses the pricing of - the manager account. Defaults to false. This value may be changed after - creation, but there may be time lag between when the value is changed - and pricing changes take effect. + description: "Boolean value that indicates if the managed account is able\ + \ to have custom pricing set for it or not. If false, uses the pricing\ + \ of the manager account. Defaults to false. This value may be changed\ + \ after creation, but there may be time lag between when the value is\ + \ changed and pricing changes take effect." example: false type: boolean rollup_billing: - description: Boolean value that indicates if the billing information and - charges to the managed account "roll up" to the manager account. If true, - the managed account will not have its own balance and will use the shared - balance with the manager account. This value cannot be changed after account - creation without going through Telnyx support as changes require manual - updates to the account ledger. Defaults to false. + description: "Boolean value that indicates if the billing information and\ + \ charges to the managed account \"roll up\" to the manager account. If\ + \ true, the managed account will not have its own balance and will use\ + \ the shared balance with the manager account. This value cannot be changed\ + \ after account creation without going through Telnyx support as changes\ + \ require manual updates to the account ledger. Defaults to false." example: false type: boolean required: @@ -31368,7 +32874,7 @@ components: from: +18445550001 messaging_profile_id: abc85f64-5717-4562-b3fc-2c9600000000 to: +18445550001 - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media_urls: - http://example.com @@ -31378,10 +32884,9 @@ components: type: MMS properties: from: - description: | - Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). - - **Required if sending with a phone number, short code, or alphanumeric sender ID.** + description: "Sending address (+E.164 formatted phone number, alphanumeric\ + \ sender ID, or short code).\n\n**Required if sending with a phone number,\ + \ short code, or alphanumeric sender ID.**\n" format: address type: string messaging_profile_id: @@ -31396,10 +32901,8 @@ components: format: address type: string text: - description: |- - Message body (i.e., content) as a non-empty string. - - **Required for SMS** + description: "Message body (i.e., content) as a non-empty string.\n\n**Required\ + \ for SMS**" type: string subject: description: Subject of multimedia message @@ -31424,12 +32927,13 @@ components: type: string use_profile_webhooks: default: true - description: If the profile this number is associated with has webhooks, - use them for delivery notifications. If webhooks are also specified on - the message itself, they will be attempted first, then those on the profile. + description: "If the profile this number is associated with has webhooks,\ + \ use them for delivery notifications. If webhooks are also specified\ + \ on the message itself, they will be attempted first, then those on the\ + \ profile." type: boolean type: - description: The protocol for sending the message, either SMS or MMS. + description: "The protocol for sending the message, either SMS or MMS." enum: - SMS - MMS @@ -31502,8 +33006,8 @@ components: type: string webhook_api_version: default: "2" - description: Determines which webhook format will be used, Telnyx API v1, - v2, or a legacy 2010-04-01 format. + description: "Determines which webhook format will be used, Telnyx API v1,\ + \ v2, or a legacy 2010-04-01 format." enum: - "1" - "2" @@ -31516,24 +33020,6 @@ components: required: - name type: object - CreateMobileApplicationRequest: - example: - application_name: FlashEmergency - type: android - properties: - application_name: - description: Name of the appplication to be created - example: FlashEmergency - type: string - type: - description: Type of application to be created (IOS or Android) - example: android - type: string - required: - - application_name - - type - title: Create Mobile Application Request - type: object CreateMultiPartDocServiceDocumentRequest: properties: file: @@ -31610,8 +33096,8 @@ components: readOnly: true type: string requirements_met: - description: True if all requirements are met for every phone number, false - otherwise. + description: "True if all requirements are met for every phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -31753,8 +33239,8 @@ components: readOnly: true type: string requirements_met: - description: True if all requirements are met for every phone number, false - otherwise. + description: "True if all requirements are met for every phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -31764,7 +33250,7 @@ components: messaging_profile_id: abc85f64-5717-4562-b3fc-2c9600000000 to: - +13125550002 - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media_urls: - http://example.com @@ -31782,10 +33268,8 @@ components: format: address type: string text: - description: |- - Message body (i.e., content) as a non-empty string. - - **Required for SMS** + description: "Message body (i.e., content) as a non-empty string.\n\n**Required\ + \ for SMS**" type: string subject: description: Subject of multimedia message @@ -31810,12 +33294,13 @@ components: type: string use_profile_webhooks: default: true - description: If the profile this number is associated with has webhooks, - use them for delivery notifications. If webhooks are also specified on - the message itself, they will be attempted first, then those on the profile. + description: "If the profile this number is associated with has webhooks,\ + \ use them for delivery notifications. If webhooks are also specified\ + \ on the message itself, they will be attempted first, then those on the\ + \ profile." type: boolean type: - description: The protocol for sending the message, either SMS or MMS. + description: "The protocol for sending the message, either SMS or MMS." enum: - SMS - MMS @@ -31917,10 +33402,7 @@ components: business_email: $ref: '#/components/schemas/BusinessIdentity/properties/business_email' business_name: - description: The business name associated with the address. An address must - have either a first last name or a business name. - example: Toy-O'Kon - type: string + $ref: '#/components/schemas/BusinessIdentity/properties/business_name' business_phone_number: $ref: '#/components/schemas/BusinessIdentity/properties/business_phone_number' business_description: @@ -32003,9 +33485,9 @@ components: when making outbound calls. type: number daily_spend_limit: - description: The maximum amount of usage charges, in USD, you want Telnyx - to allow on this outbound voice profile in a day before disallowing new - calls. + description: "The maximum amount of usage charges, in USD, you want Telnyx\ + \ to allow on this outbound voice profile in a day before disallowing\ + \ new calls." example: "100.00" type: string daily_spend_limit_enabled: @@ -32049,10 +33531,10 @@ components: type: object CreatePortingOrderComment: example: - body: Please, let me know when the port completes + body: "Please, let me know when the port completes" properties: body: - example: Please, let me know when the port completes + example: "Please, let me know when the port completes" type: string type: object CreateRoomClientTokenRequest: @@ -32062,17 +33544,17 @@ components: properties: token_ttl_secs: default: 600 - description: The time to live in seconds of the Client Token, after that - time the Client Token is invalid and can't be used to join a Room. + description: "The time to live in seconds of the Client Token, after that\ + \ time the Client Token is invalid and can't be used to join a Room." example: 600 maximum: 3600 minimum: 10 type: integer refresh_token_ttl_secs: default: 3600 - description: The time to live in seconds of the Refresh Token, after that - time the Refresh Token is invalid and can't be used to refresh Client - Token. + description: "The time to live in seconds of the Refresh Token, after that\ + \ time the Refresh Token is invalid and can't be used to refresh Client\ + \ Token." example: 3600 maximum: 86400 minimum: 60 @@ -32126,16 +33608,16 @@ components: of regions. type: object webhook_event_url: - description: The URL where webhooks related to this room composition will - be sent. Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this room composition will\ + \ be sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this room composition - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this room composition\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -32163,9 +33645,9 @@ components: type: string max_participants: default: 10 - description: The maximum amount of participants allowed in a room. If new - participants try to join after that limit is reached, their request will - be rejected. + description: "The maximum amount of participants allowed in a room. If new\ + \ participants try to join after that limit is reached, their request\ + \ will be rejected." example: 10 maximum: 50 minimum: 2 @@ -32176,16 +33658,16 @@ components: example: true type: boolean webhook_event_url: - description: The URL where webhooks related to this room will be sent. Must - include a scheme, such as 'https'. + description: "The URL where webhooks related to this room will be sent.\ + \ Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this room will be - sent if sending to the primary URL fails. Must include a scheme, such - as 'https'. + description: "The failover URL where webhooks related to this room will\ + \ be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -32202,7 +33684,7 @@ components: example: from: +18445550001 to: +18445550001 - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media_urls: - http://example.com @@ -32212,7 +33694,7 @@ components: type: MMS properties: from: - description: Phone number, in +E.164 format, used to send the message. + description: "Phone number, in +E.164 format, used to send the message." format: address type: string to: @@ -32221,10 +33703,8 @@ components: format: address type: string text: - description: |- - Message body (i.e., content) as a non-empty string. - - **Required for SMS** + description: "Message body (i.e., content) as a non-empty string.\n\n**Required\ + \ for SMS**" type: string subject: description: Subject of multimedia message @@ -32249,12 +33729,13 @@ components: type: string use_profile_webhooks: default: true - description: If the profile this number is associated with has webhooks, - use them for delivery notifications. If webhooks are also specified on - the message itself, they will be attempted first, then those on the profile. + description: "If the profile this number is associated with has webhooks,\ + \ use them for delivery notifications. If webhooks are also specified\ + \ on the message itself, they will be attempted first, then those on the\ + \ profile." type: boolean type: - description: The protocol for sending the message, either SMS or MMS. + description: "The protocol for sending the message, either SMS or MMS." enum: - SMS - MMS @@ -32272,7 +33753,7 @@ components: example: friendly_name: call-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" dtmf_type: Inband first_command_timeout: true first_command_timeout_secs: 10 @@ -32324,7 +33805,6 @@ components: format: url type: string voice_fallback_url: - default: "null" description: URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. example: https://fallback.example.com @@ -32340,7 +33820,6 @@ components: example: get type: string status_callback: - default: "null" description: URL for Telnyx to send requests to containing information about call progress events. example: https://example.com @@ -32386,8 +33865,8 @@ components: example: 300 type: integer call_timeout_secs: - description: Must be less than the profile's default_verification_timeout_secs - or timeout_secs, whichever is lesser. + description: "Must be less than the profile's default_verification_timeout_secs\ + \ or timeout_secs, whichever is lesser." example: 30 type: integer required: @@ -32564,15 +34043,15 @@ components: CreateVerifyProfileCallRequest: properties: speech_template: - description: Optionally sets a speech text template when sending the verification - code. Uses `{code}` to template in the actual verification code. - example: 'Hello, this is the Acme Inc verification code you requested: {code}.' + description: "Optionally sets a speech text template when sending the verification\ + \ code. Uses `{code}` to template in the actual verification code." + example: "Hello, this is the Acme Inc verification code you requested: {code}." type: string default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer default_call_timeout_secs: @@ -32587,10 +34066,10 @@ components: CreateVerifyProfileFlashcallRequest: properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer required: @@ -32600,10 +34079,10 @@ components: CreateVerifyProfilePSD2Request: properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer title: CreateVerifyProfilePSD2Request @@ -32619,16 +34098,16 @@ components: example: true type: boolean messaging_template: - description: Optionally sets a messaging text template when sending the - verification code. Uses `{code}` to template in the actual verification - code. - example: 'Hello, this is the Acme Inc verification code you requested: {code}.' + description: "Optionally sets a messaging text template when sending the\ + \ verification code. Uses `{code}` to template in the actual verification\ + \ code." + example: "Hello, this is the Acme Inc verification code you requested: {code}." type: string default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer vsms_enabled: @@ -32640,10 +34119,10 @@ components: CreateVerifyProfileWhatsappRequest: properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer app_name: @@ -32659,7 +34138,7 @@ components: to: "15125557878" type: text text: - body: 'Check out this site: http://www.telnyx.com' + body: "Check out this site: http://www.telnyx.com" properties: whatsapp_user_id: description: The sender's WhatsApp ID. @@ -32679,18 +34158,13 @@ components: $ref: '#/components/schemas/Document' video: $ref: '#/components/schemas/Video' - hsm: - $ref: '#/components/schemas/Hsm' - contacts: - items: - $ref: '#/components/schemas/Contact' - type: array location: $ref: '#/components/schemas/Location' preview_url: - description: |- - Specifying preview_url in the request is optional when not including a URL in your message. - To include a URL preview, set preview_url to true in the message body and make sure the URL begins with http:// or https://. + description: "Specifying preview_url in the request is optional when not\ + \ including a URL in your message.\nTo include a URL preview, set preview_url\ + \ to true in the message body and make sure the URL begins with http://\ + \ or https://." type: boolean template: $ref: '#/components/schemas/Template' @@ -32699,10 +34173,118 @@ components: - whatsapp_user_id title: Send Message Request Body type: object + CreateWhatsappMessageTemplateRequestBody: + example: + components: components + name: name + language: af + category: ACCOUNT_UPDATE + properties: + category: + description: The template category + enum: + - ACCOUNT_UPDATE + - PAYMENT_UPDATE + - PERSONAL_FINANCE_UPDATE + - SHIPPING_UPDATE + - RESERVATION_UPDATE + - ISSUE_RESOLUTION + - APPOINTMENT_UPDATE + - TRANSPORTATION_UPDATE + - TICKET_UPDATE + - ALERT_UPDATE + - AUTO_REPLY + type: string + language: + description: The language of the whatsapp message template + enum: + - af + - sq + - ar + - az + - bn + - bg + - ca + - zh_CN + - zh_HK + - zh_TW + - hr + - cs + - da + - nl + - en + - en_GB + - en_US + - et + - fil + - fi + - fr + - ka + - de + - el + - gu + - ha + - he + - hi + - hu + - id + - ga + - it + - ja + - kn + - kk + - rw_RW + - ko + - ky_KG + - lo + - lv + - lt + - mk + - ms + - ml + - mr + - nb + - fa + - pl + - pt_BR + - pt_PT + - pa + - ro + - ru + - sr + - sk + - sl + - es + - es_AR + - es_ES + - es_MX + - sw + - sv + - ta + - te + - th + - tr + - uk + - ur + - uz + - vi + - zu + type: string + name: + description: A name identifying this whatsapp message template + type: string + components: + description: "The JSON-formatted components for the this whatsapp message\ + \ template, please refer to whatsapp documentation on the correct structure\ + \ for this field" + format: json + type: string + title: Create WhatsApp Message Template Request Body + type: object CreatedAt: - description: ISO 8601 formatted date indicating when the resource was created. - example: 2020-02-02T22:25:27.521Z - title: Created At + description: ISO 8601 formatted date-time indicating when the resource was created. + example: 2018-02-02T22:25:27.521Z + readOnly: true type: string CredentialConnection: example: @@ -32789,7 +34371,6 @@ components: connection_name: type: string sip_uri_calling_preference: - default: "null" description: This feature enables inbound SIP URI calls to your Credential Auth Connection. If enabled for all (unrestricted) then anyone who calls the SIP URI @telnyx.com will be connected to your Connection. @@ -32803,9 +34384,9 @@ components: type: string default_on_hold_comfort_noise_enabled: default: true - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." type: boolean dtmf_type: $ref: '#/components/schemas/DtmfType' @@ -32818,30 +34399,30 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer the sender and receiver negotiating - T38 directly if both are on the Telnyx network. If this is disabled, Telnyx - will be able to use T38 on just one leg of the call depending on each - leg's settings. + description: "Enable on-net T38 if you prefer the sender and receiver negotiating\ + \ T38 directly if both are on the Telnyx network. If this is disabled,\ + \ Telnyx will be able to use T38 on just one leg of the call depending\ + \ on each leg's settings." type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -32903,17 +34484,17 @@ components: - G729 - OPUS - H.264 - description: 'Defines the list of codecs that Telnyx will send for inbound - calls to a specific number on your portal account, in priority order. - This only works when the Connection the number is assigned to uses Media - Handling mode: default. OPUS and H.264 codecs are available only when - using TCP or TLS transport for SIP.' + description: "Defines the list of codecs that Telnyx will send for inbound\ + \ calls to a specific number on your portal account, in priority order.\ + \ This only works when the Connection the number is assigned to uses Media\ + \ Handling mode: default. OPUS and H.264 codecs are available only when\ + \ using TCP or TLS transport for SIP." items: type: string type: array channel_limit: - description: When set, this will limit the total number of inbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of inbound calls\ + \ to phone numbers associated with this connection." type: integer generate_ringback_tone: default: false @@ -32922,8 +34503,9 @@ components: type: boolean isup_headers_enabled: default: false - description: When set, inbound phone calls will receive ISUP parameters - via SIP headers. (Only when available and only when using TCP or TLS transport.) + description: "When set, inbound phone calls will receive ISUP parameters\ + \ via SIP headers. (Only when available and only when using TCP or TLS\ + \ transport.)" type: boolean prack_enabled: default: false @@ -32931,10 +34513,10 @@ components: type: boolean privacy_zone_enabled: default: false - description: By default, Telnyx does not send caller-id information when - the caller has chosen to hide this information. When this option is enabled, - Telnyx will send the SIP header Privacy:id plus the caller-id information - so that the receiver side can choose when to hide it. + description: "By default, Telnyx does not send caller-id information when\ + \ the caller has chosen to hide this information. When this option is\ + \ enabled, Telnyx will send the SIP header Privacy:id plus the caller-id\ + \ information so that the receiver side can choose when to hide it." type: boolean sip_compact_headers_enabled: default: true @@ -32948,8 +34530,8 @@ components: type: integer timeout_2xx_secs: default: "90" - description: 'Time(sec) before aborting if call is unanswered (min: 1, max: - 600).' + description: "Time(sec) before aborting if call is unanswered (min: 1, max:\ + \ 600)." maximum: 600 minimum: 1 type: string @@ -32988,13 +34570,13 @@ components: - emergency type: string channel_limit: - description: When set, this will limit the total number of outbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of outbound calls\ + \ to phone numbers associated with this connection." type: integer instant_ringback_enabled: default: true - description: When set, ringback will not wait for indication before sending - ringback tone to calling party. + description: "When set, ringback will not wait for indication before sending\ + \ ringback tone to calling party." type: boolean generate_ringback_tone: default: false @@ -33003,18 +34585,18 @@ components: type: boolean localization: default: US - description: A 2-character country code specifying the country whose national - dialing rules should be used. For example, if set to `US` then any US - number can be dialed without preprending +1 to the number. When left blank, - Telnyx will try US and GB dialing rules, in that order, by default. + description: "A 2-character country code specifying the country whose national\ + \ dialing rules should be used. For example, if set to `US` then any US\ + \ number can be dialed without preprending +1 to the number. When left\ + \ blank, Telnyx will try US and GB dialing rules, in that order, by default." example: US type: string t38_reinvite_source: default: telnyx - description: This setting only affects connections with Fax-type Outbound - Voice Profiles. The setting dictates whether or not Telnyx sends a t.38 - reinvite.

By default, Telnyx will send the re-invite. If set - to `customer`, the caller is expected to send the t.38 reinvite. + description: "This setting only affects connections with Fax-type Outbound\ + \ Voice Profiles. The setting dictates whether or not Telnyx sends a t.38\ + \ reinvite.

By default, Telnyx will send the re-invite. If set\ + \ to `customer`, the caller is expected to send the t.38 reinvite." enum: - telnyx - customer @@ -33044,13 +34626,15 @@ components: bucket: example-bucket credentials: OPAQUE_CREDENTIALS_TOKEN backend: gcs - connection_id: '{}' + connection_id: "234423" record_type: record_type properties: data: $ref: '#/components/schemas/GCSConfiguration' connection_id: - $ref: '#/components/parameters/ConnectionId' + description: The ID of the connection used to send the fax. + example: "234423" + type: string record_type: description: Identifies record type. pattern: custom_storage_credentials @@ -33106,6 +34690,7 @@ components: title: Currencies type: string Currency: + description: "" example: currency_code: USD amount_1000: 100990 @@ -33122,6 +34707,23 @@ components: - currency_code title: Currency type: object + CursorPagination: + example: + cursors: + after: MQZDZD + before: MQZDZD + next: "/v2/whatsapp_business_accounts/4444451-4222-9222-3bd5555501c0/whatsapp_message_templates?page[after]=MQZDZD&page[limit]=1" + previous: "/v2/whatsapp_business_accounts/4444451-4222-9222-3bd5555501c0/whatsapp_message_templates?page[before]=MQZDZD&page[limit]=1" + properties: + cursors: + $ref: '#/components/schemas/CursorPagination_cursors' + next: + description: A URL to the next page of results. + type: string + previous: + description: A URL to the previous page of results. + type: string + type: object CustomSipHeader: example: name: head_1 @@ -33140,6 +34742,102 @@ components: - value title: Custom SIP Header type: object + CustomerFacingFQDNsGetIPResponse: + example: + data: + - updated_at: 2000-01-23T04:56:07.000+00:00 + fqdn: fqdn + created_at: 2000-01-23T04:56:07.000+00:00 + ip_address: ip_address + - updated_at: 2000-01-23T04:56:07.000+00:00 + fqdn: fqdn + created_at: 2000-01-23T04:56:07.000+00:00 + ip_address: ip_address + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/IpItem' + title: Data + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + title: CustomerFacingFQDNsGetIP + type: object + CustomerFacingFQDNsListResponse: + example: + data: + - updated_at: 2000-01-23T04:56:07.000+00:00 + fqdn: fqdn + description: description + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + - updated_at: 2000-01-23T04:56:07.000+00:00 + fqdn: fqdn + description: description + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/CustomerFacingFQDNsResponseSchema' + title: Data + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + title: CustomerFacingFQDNsListResponse + type: object + CustomerFacingFQDNsPost: + example: + fqdn: fqdn + description: description + properties: + fqdn: + title: Fully Qualified Domain Name (FQDN) + type: string + description: + title: Description + type: string + required: + - fqdn + title: CustomerFacingFQDNsResponseSchema + type: object + CustomerFacingFQDNsResponseSchema: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + fqdn: fqdn + description: description + created_at: 2000-01-23T04:56:07.000+00:00 + id: id + properties: + id: + title: Id + type: string + fqdn: + title: Fully Qualified Domain Name (FQDN) + type: string + description: + title: Description + type: string + created_at: + format: date-time + title: Created At + type: string + updated_at: + format: date-time + title: Updated At + type: string + title: CustomerFacingFQDNsResponseSchema + type: object CustomerServiceRequest: example: address: @@ -33152,7 +34850,7 @@ components: created_at: 2021-03-19T10:07:15.527Z phone_number: +12065551212 id: f1486bae-f067-460c-ad43-73a92848f902 - carrier_name: ABC CARRIER, INC. + carrier_name: "ABC CARRIER, INC." record_type: customer_service_request status: completed properties: @@ -33177,7 +34875,7 @@ components: carrier_name: description: The name of the carrier that the customer service request is for. - example: ABC CARRIER, INC. + example: "ABC CARRIER, INC." type: string name: description: The name of the customer service request. @@ -33267,8 +34965,8 @@ components: minute: 33 properties: day_of_week: - description: Both strings and numbers are accepted. If different from the - value derived from the date (if specified), use the derived value. + description: "Both strings and numbers are accepted. If different from the\ + \ value derived from the date (if specified), use the derived value." enum: - 1 - 2 @@ -33355,6 +35053,7 @@ components: - $ref: '#/components/schemas/ConferenceDetailRecord' - $ref: '#/components/schemas/ConferenceParticipantDetailRecord' - $ref: '#/components/schemas/WhatsAppDetailRecord' + - $ref: '#/components/schemas/WhatsAppConversationDetailRecord' - $ref: '#/components/schemas/AmdDetailRecord' - $ref: '#/components/schemas/VerifyDetailRecord' - $ref: '#/components/schemas/SimCardUsageDetailRecord' @@ -33380,6 +35079,91 @@ components: meta: $ref: '#/components/schemas/PaginationMeta' type: object + DialogflowConfig: + properties: + analyze_sentiment: + default: false + description: Enable sentiment analysis from Dialogflow. + example: true + type: boolean + partial_automated_agent_reply: + default: false + description: Enable partial automated agent reply from Dialogflow. + example: true + type: boolean + title: Dialogflow Config + type: object + DialogflowConnection: + example: + service_Account: "{\"type\":\"service_account\",\"project_id\":\"your-project-id\"\ + ,\"private_key_id\":\"your-private-key\",\"private_key\":\"-----BEGIN PRIVATE\ + \ KEY-----n-----END PRIVATE\",\"client_email\":\"example@example.com\",\"\ + client_id\":\"your-client-id\",\"auth_uri\":\"http://example.com\",\"token_uri\"\ + :\"http://example.com\",\"auth_provider_x509_cert_url\":\"http://example.com\"\ + ,\"client_x509_cert_url\":\"http://example.com\"}" + dialogflow_api: cx + conversation_profile_id: a-VMHLWzTmKjiJw5S6O0-w + location: global + environment: development + properties: + service_account: + description: The JSON map to connect your Dialoglow account. + example: "{\"service_account\":{\"type\":\"service_account\",\"project_id\"\ + :\"your-project-id\",\"private_key_id\":\"your-private-key\",\"private_key\"\ + :\"-----BEGIN PRIVATE KEY-----n-----END PRIVATE\",\"client_email\":\"\ + example@example.com\",\"client_id\":\"your-client-id\",\"auth_uri\":\"\ + http://example.com\",\"token_uri\":\"http://example.com\",\"auth_provider_x509_cert_url\"\ + :\"http://example.com\",\"client_x509_cert_url\":\"http://example.com\"\ + }}" + type: object + dialogflow_api: + default: es + description: Determin which Dialogflow will be used. + enum: + - cx + - es + example: cx + type: string + conversation_profile_id: + description: "The id of a configured conversation profile on your Dialogflow\ + \ account. (If you use Dialogflow CX, this param is required)" + example: a-VMHLWzTmKjiJw5S6O0-w + type: string + location: + description: "The region of your agent is. (If you use Dialogflow CX, this\ + \ param is required)" + example: global + type: string + environment: + description: Which Dialogflow environment will be used. + example: development + type: string + required: + - service_account + title: Dialogflow Connection Params + type: object + DialogflowConnectionResponse: + example: + data: + conversation_profile_id: a-VMHLWzTmKjiJw5S6O0-w + service_account: '****' + environment: development + connection_id: "1234541231" + record_type: dialogflow_connections + properties: + data: + $ref: '#/components/schemas/Dialogflow_Connection' + required: + - data + title: Dialogflow Connection Response + type: object + Direction: + description: The direction of the fax. + enum: + - inbound + - outbound + example: outbound + type: string DocReqsRequirement: example: requirements_types: @@ -33395,7 +35179,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" - updated_at: 2021-04-12T20:20:20.020Z name: Proof of Address description: Proves the customer has a physical address in the same locality @@ -33408,7 +35192,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" country_code: FR phone_number_type: local updated_at: 2021-04-12T20:20:20.020Z @@ -33445,8 +35229,8 @@ components: readOnly: false type: string action: - description: Indicates whether this requirement applies to ordering, porting, - or both + description: "Indicates whether this requirement applies to ordering, porting,\ + \ or both" enum: - both - ordering @@ -33497,7 +35281,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" properties: acceptance_criteria: $ref: '#/components/schemas/DocReqsRequirementType_acceptance_criteria' @@ -33509,7 +35293,7 @@ components: type: string example: description: Provides one or more examples of acceptable documents - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" readOnly: false type: string type: @@ -33582,8 +35366,8 @@ components: DocServiceDocumentUploadURL: properties: url: - description: If the file is already hosted publicly, you can provide a URL - and have the documents service fetch it for you. + description: "If the file is already hosted publicly, you can provide a\ + \ URL and have the documents service fetch it for you." example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string filename: @@ -33636,8 +35420,8 @@ components: example: f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68 type: string link: - description: The protocol and URL of the media to be sent. Use only with - HTTP/HTTPS URLs. Either id or link must be provided, not both. + description: "The protocol and URL of the media to be sent. Use only with\ + \ HTTP/HTTPS URLs. Either id or link must be provided, not both." example: http://www.example.com/file type: string caption: @@ -33651,6 +35435,9 @@ components: title: Document type: object DownlinkData: + example: + amount: 1 + unit: MB properties: amount: description: Downlink data @@ -33852,8 +35639,9 @@ components: properties: emergency_enabled: default: false - description: Allows you to enable or disable emergency services on the phone - number. In order to enable emergency services, you must also set an emergency_address_id. + description: "Allows you to enable or disable emergency services on the\ + \ phone number. In order to enable emergency services, you must also set\ + \ an emergency_address_id." type: boolean emergency_address_id: description: Identifies the address to be used with emergency services. @@ -33880,7 +35668,7 @@ components: type: string EnqueueRequest: example: - queue: support + queue_name: support max_wait_time_secs: 600 max_size: 20 client_state: aGF2ZSBhIG5pY2UgZGF5ID1d @@ -33890,6 +35678,8 @@ components: description: The name of the queue the call should be put in. If a queue with a given name doesn't exist yet it will be created. example: tier_1_support + required: + - "true" type: string client_state: description: Use this field to add state to every subsequent webhook. It @@ -33917,7 +35707,7 @@ components: Error: example: code: code - meta: '{}' + meta: "{}" detail: detail source: pointer: pointer @@ -33925,14 +35715,14 @@ components: title: title properties: code: - format: int + format: integer type: string title: type: string detail: type: string source: - $ref: '#/components/schemas/Error_source' + $ref: '#/components/schemas/updateOutboundChannels_default_response_errors_inner_source' meta: type: object required: @@ -33954,6 +35744,30 @@ components: $ref: '#/components/schemas/Error' type: array ExternalWdrDetailRecordDto: + example: + duration_seconds: 1 + cost: + amount: "0.1" + currency: USD + mnc: "01" + created_at: 2020-07-01T00:00:00-06:00 + imsi: "123" + mcc: "204" + record_type: wdr + sim_group_id: f05a189f-7c46-4531-ac56-1460dc465a42 + sim_card_id: 877f80a6-e5b2-4687-9a04-88076265720f + rate: + amount: "0.1" + currency: USD + downlink_data: + amount: 1 + unit: MB + phone_number: +12345678910 + id: 3ca7bd3d-7d82-4e07-9df4-009123068320 + uplink_data: + amount: 1 + unit: MB + sim_group_name: sim name properties: id: description: WDR id @@ -34009,6 +35823,59 @@ components: type: string type: object ExternalWdrGetDetailResponse: + example: + data: + - duration_seconds: 1 + cost: + amount: "0.1" + currency: USD + mnc: "01" + created_at: 2020-07-01T00:00:00-06:00 + imsi: "123" + mcc: "204" + record_type: wdr + sim_group_id: f05a189f-7c46-4531-ac56-1460dc465a42 + sim_card_id: 877f80a6-e5b2-4687-9a04-88076265720f + rate: + amount: "0.1" + currency: USD + downlink_data: + amount: 1 + unit: MB + phone_number: +12345678910 + id: 3ca7bd3d-7d82-4e07-9df4-009123068320 + uplink_data: + amount: 1 + unit: MB + sim_group_name: sim name + - duration_seconds: 1 + cost: + amount: "0.1" + currency: USD + mnc: "01" + created_at: 2020-07-01T00:00:00-06:00 + imsi: "123" + mcc: "204" + record_type: wdr + sim_group_id: f05a189f-7c46-4531-ac56-1460dc465a42 + sim_card_id: 877f80a6-e5b2-4687-9a04-88076265720f + rate: + amount: "0.1" + currency: USD + downlink_data: + amount: 1 + unit: MB + phone_number: +12345678910 + id: 3ca7bd3d-7d82-4e07-9df4-009123068320 + uplink_data: + amount: 1 + unit: MB + sim_group_name: sim name + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 properties: data: items: @@ -34042,42 +35909,40 @@ components: example: fax type: string id: - description: Identifies the fax. - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid + readOnly: true type: string connection_id: - description: The connection ID to send the fax with. + description: The ID of the connection used to send the fax. example: "234423" type: string direction: - description: The direction of the fax. - enum: - - inbound - - outbound - example: outbound - type: string + $ref: '#/components/schemas/Direction' media_url: - description: The URL to the PDF used for the fax's media. If media_name - was supplied, this is omitted. + description: The URL to the PDF used for the fax's media. media_url and + media_name/contents can't be submitted together. example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string media_name: - description: The media_name of a file used for the fax's media. + description: The media_name used for the fax's media. Must point to a file + previously uploaded to api.telnyx.com/v2/media by the same user/organization. + media_name and media_url/contents can't be submitted together. example: my_media_uploaded_to_media_storage_api type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI + description: "The phone number, in E.164 format, the fax will be sent to\ + \ or SIP URI" example: +13127367276 type: string from: - description: The phone number, in E.164 format, the fax will be sent from. + description: "The phone number, in E.164 format, the fax will be sent from." example: +13125790015 type: string quality: default: high - description: The quality of the fax. Can be normal, high, very_high + description: "The quality of the fax. Can be normal, high, very_high" example: high type: string status: @@ -34085,6 +35950,7 @@ components: enum: - queued - media.processed + - originated - sending - delivered - failed @@ -34102,11 +35968,12 @@ components: doesn't return a 2XX response type: string store_media: - description: Should fax media be stored on temporary URL. + description: Should fax media be stored on temporary URL. It does not support + media_name. type: boolean stored_media_url: - description: If store_media was set to true, this is a link to temporary - location. Link expires after 10 minutes. + description: "If store_media was set to true, this is a link to temporary\ + \ location. Link expires after 10 minutes." type: string created_at: description: ISO 8601 timestamp when resource was created @@ -34123,7 +35990,7 @@ components: record_type: fax_application application_name: fax-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" webhook_event_url: https://example.com webhook_event_failover_url: https://failover.example.com webhook_timeout_secs: 25 @@ -34161,17 +36028,17 @@ components: anchorsite_override: $ref: '#/components/schemas/AnchorsiteOverride' webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url title: Webhook Event URL type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -34219,15 +36086,14 @@ components: record_type: event properties: record_type: - description: Identifies the type of the resource. - enum: - - event - example: event + description: Identifies record type. + pattern: custom_storage_credentials type: string id: - description: Identifies the type of resource. - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid + readOnly: true type: string event_type: description: The type of event being delivered. @@ -34239,7 +36105,6 @@ components: $ref: '#/components/schemas/FaxDelivered_payload' type: object FaxEmailRecipient: - default: "null" description: Specifies an email address where faxes sent to this application will be forwarded to (as pdf or tiff attachments) example: user@example.com @@ -34266,15 +36131,14 @@ components: record_type: event properties: record_type: - description: Identifies the type of the resource. - enum: - - event - example: event + description: Identifies record type. + pattern: custom_storage_credentials type: string id: - description: Identifies the type of resource. - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid + readOnly: true type: string event_type: description: The type of event being delivered. @@ -34285,6 +36149,11 @@ components: payload: $ref: '#/components/schemas/FaxFailed_payload' type: object + FaxId: + description: Identifies the fax. + example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + format: uuid + type: string FaxMediaProcessed: example: data: @@ -34303,15 +36172,14 @@ components: record_type: event properties: record_type: - description: Identifies the type of the resource. - enum: - - event - example: event + description: Identifies record type. + pattern: custom_storage_credentials type: string id: - description: Identifies the type of resource. - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid + readOnly: true type: string event_type: description: The type of event being delivered. @@ -34340,15 +36208,14 @@ components: record_type: event properties: record_type: - description: Identifies the type of the resource. - enum: - - event - example: event + description: Identifies record type. + pattern: custom_storage_credentials type: string id: - description: Identifies the type of resource. - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid + readOnly: true type: string event_type: description: The type of event being delivered. @@ -34377,15 +36244,14 @@ components: record_type: event properties: record_type: - description: Identifies the type of the resource. - enum: - - event - example: event + description: Identifies record type. + pattern: custom_storage_credentials type: string id: - description: Identifies the type of resource. - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 format: uuid + readOnly: true type: string event_type: description: The type of event being delivered. @@ -34493,10 +36359,10 @@ components: example: 5060 type: integer dns_record_type: - description: The DNS record type for the FQDN. For cases where a port is - not set, the DNS record type must be 'srv'. For cases where a port is - set, the DNS record type must be 'a'. If the DNS record type is 'a' and - a port is not specified, 5060 will be used. + description: "The DNS record type for the FQDN. For cases where a port is\ + \ not set, the DNS record type must be 'srv'. For cases where a port is\ + \ set, the DNS record type must be 'a'. If the DNS record type is 'a'\ + \ and a port is not specified, 5060 will be used." example: a type: string created_at: @@ -34570,9 +36436,9 @@ components: $ref: '#/components/schemas/FqdnConnectionTransportProtocol' default_on_hold_comfort_noise_enabled: default: true - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." type: boolean dtmf_type: $ref: '#/components/schemas/DtmfType' @@ -34585,30 +36451,30 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer that the sender and receiver - negotiate T38 directly when both are on the Telnyx network. If this is - disabled, Telnyx will be able to use T38 on just one leg of the call according - to each leg's settings. + description: "Enable on-net T38 if you prefer that the sender and receiver\ + \ negotiate T38 directly when both are on the Telnyx network. If this\ + \ is disabled, Telnyx will be able to use T38 on just one leg of the call\ + \ according to each leg's settings." type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -34639,13 +36505,17 @@ components: type: object FqdnConnectionTransportProtocol: default: UDP - description: One of UDP, TLS, or TCP. Applies only to connections with IP authentication - or FQDN authentication. + description: "One of UDP, TLS, or TCP. Applies only to connections with IP authentication\ + \ or FQDN authentication." enum: - UDP - TCP - TLS type: string + From: + description: "The phone number, in E.164 format, the fax will be sent from." + example: +13125790015 + type: string GCSConfiguration: example: configuration: @@ -34682,6 +36552,73 @@ components: type: string title: Google Cloud Storage Configuration Data type: object + GatherRequest: + example: + minimum_digits: 1 + valid_digits: "123" + initial_timeout_millis: 10000 + terminating_digit: '#' + command_id: 891510ac-f3e4-11e8-af5b-de00688a4901 + client_state: aGF2ZSBhIG5pY2UgZGF5ID1d + timeout_millis: 60000 + maximum_digits: 10 + inter_digit_timeout_millis: 10000 + properties: + minimum_digits: + default: 1 + description: The minimum number of digits to fetch. This parameter has a + minimum value of 1. + example: 1 + format: int32 + type: integer + maximum_digits: + default: 128 + description: The maximum number of digits to fetch. This parameter has a + maximum value of 128. + example: 10 + format: int32 + type: integer + timeout_millis: + default: 60000 + description: The number of milliseconds to wait to complete the request. + example: 60000 + format: int32 + type: integer + inter_digit_timeout_millis: + default: 5000 + description: The number of milliseconds to wait for input between digits. + example: 10000 + format: int32 + type: integer + initial_timeout_millis: + default: 5000 + description: The number of milliseconds to wait for the first DTMF. + example: 10000 + format: int32 + type: integer + terminating_digit: + default: '#' + description: The digit used to terminate input if fewer than `maximum_digits` + digits have been gathered. + example: '#' + type: string + valid_digits: + default: 0123456789#* + description: A list of all digits accepted as valid. + example: "123" + type: string + client_state: + description: Use this field to add state to every subsequent webhook. It + must be a valid Base-64 encoded string. + example: aGF2ZSBhIG5pY2UgZGF5ID1d + type: string + command_id: + description: Use this field to avoid duplicate commands. Telnyx will ignore + any command with the same `command_id` for the same `call_control_id`. + example: 891510ac-f3e4-11e8-af5b-de00688a4901 + type: string + title: Gather + type: object GatherUsingAudioRequest: example: audio_url: http://example.com/message.wav @@ -34797,20 +36734,20 @@ components: command_id: 891510ac-f3e4-11e8-af5b-de00688a4901 properties: payload: - description: The text or SSML to be converted into speech. There is a 3,000 - character limit. + description: "The text or SSML to be converted into speech. There is a 3,000\ + \ character limit." example: Say this on the call type: string invalid_payload: - description: The text or SSML to be converted into speech when digits don't - match the `valid_digits` parameter or the number of digits is not between - `min` and `max`. There is a 3,000 character limit. + description: "The text or SSML to be converted into speech when digits don't\ + \ match the `valid_digits` parameter or the number of digits is not between\ + \ `min` and `max`. There is a 3,000 character limit." example: Say this on the call type: string payload_type: default: text - description: The type of the provided payload. The payload can either be - plain text, or Speech Synthesis Markup Language (SSML). + description: "The type of the provided payload. The payload can either be\ + \ plain text, or Speech Synthesis Markup Language (SSML)." enum: - text - ssml @@ -34818,9 +36755,9 @@ components: type: string service_level: default: premium - description: This parameter impacts speech quality, language options and - payload types. When using `basic`, only the `en-US` language and payload - type `text` are allowed. + description: "This parameter impacts speech quality, language options and\ + \ payload types. When using `basic`, only the `en-US` language and payload\ + \ type `text` are allowed." enum: - basic - premium @@ -34971,8 +36908,8 @@ components: example: channel_zone type: string countries: - description: List of countries (in ISO 3166-2, capitalized) members of the - billing channel zone + description: "List of countries (in ISO 3166-2, capitalized) members of\ + \ the billing channel zone" example: - BE - EL @@ -35073,7 +37010,7 @@ components: detail: type: string source: - $ref: '#/components/schemas/Error_source' + $ref: '#/components/schemas/updateOutboundChannels_default_response_errors_inner_source' meta: type: object GetSubRequestByPortingOrder: @@ -35134,41 +37071,6 @@ components: - successful type: string type: object - Hsm: - description: The containing element for the message content — Indicates that - the message is highly structured. Parameters contained within provide the - structure. - example: - namespace: business_a_namespace - element_name: hello_world - language: - policy: deterministic - code: en - localizable_params: - - default: "1234" - properties: - namespace: - description: The namespace that will be used - type: string - element_name: - description: The element name that indicates which template to use within - the namespace - type: string - language: - $ref: '#/components/schemas/Language' - localizable_params: - description: This field is an array of values to apply to variables in the - template - items: - $ref: '#/components/schemas/LocalizableParam' - type: array - required: - - element_name - - language - - localizable_params - - namespace - title: Hsm - type: object Id: description: Identifies the resource. example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -35187,8 +37089,8 @@ components: example: f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68 type: string link: - description: The protocol and URL of the media to be sent. Use only with - HTTP/HTTPS URLs. Either id or link must be provided, not both. + description: "The protocol and URL of the media to be sent. Use only with\ + \ HTTP/HTTPS URLs. Either id or link must be provided, not both." example: http://www.example.com/file type: string caption: @@ -35198,7 +37100,7 @@ components: title: Image type: object ImmutableSetLong: - example: '[1234567890L, 9876543210L]' + example: "[1234567890L, 9876543210L]" items: format: int64 type: integer @@ -35251,27 +37153,26 @@ components: - G729 - OPUS - H.264 - description: 'Defines the list of codecs that Telnyx will send for inbound - calls to a specific number on your portal account, in priority order. - This only works when the Connection the number is assigned to uses Media - Handling mode: default. OPUS and H.264 codecs are available only when - using TCP or TLS transport for SIP.' + description: "Defines the list of codecs that Telnyx will send for inbound\ + \ calls to a specific number on your portal account, in priority order.\ + \ This only works when the Connection the number is assigned to uses Media\ + \ Handling mode: default. OPUS and H.264 codecs are available only when\ + \ using TCP or TLS transport for SIP." items: type: string type: array default_routing_method: - default: "null" - description: Default routing method to be used when a number is associated - with the connection. Must be one of the routing method types or null, - other values are not allowed. + description: "Default routing method to be used when a number is associated\ + \ with the connection. Must be one of the routing method types or null,\ + \ other values are not allowed." enum: - sequential - round-robin nullable: true type: string channel_limit: - description: When set, this will limit the total number of inbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of inbound calls\ + \ to phone numbers associated with this connection." nullable: true type: integer generate_ringback_tone: @@ -35281,8 +37182,9 @@ components: type: boolean isup_headers_enabled: default: false - description: When set, inbound phone calls will receive ISUP parameters - via SIP headers. (Only when available and only when using TCP or TLS transport.) + description: "When set, inbound phone calls will receive ISUP parameters\ + \ via SIP headers. (Only when available and only when using TCP or TLS\ + \ transport.)" type: boolean prack_enabled: default: false @@ -35290,10 +37192,10 @@ components: type: boolean privacy_zone_enabled: default: false - description: By default, Telnyx does not send caller-id information when - the caller has chosen to hide this information. When this option is enabled, - Telnyx will send the SIP header Privacy:id plus the caller-id information - so that the receiver side can choose when to hide it. + description: "By default, Telnyx does not send caller-id information when\ + \ the caller has chosen to hide this information. When this option is\ + \ enabled, Telnyx will send the SIP header Privacy:id plus the caller-id\ + \ information so that the receiver side can choose when to hide it." type: boolean sip_compact_headers_enabled: default: true @@ -35301,28 +37203,27 @@ components: type: boolean sip_region: default: US - description: Selects which `sip_region` to receive inbound calls from. If - null, the default region (US) will be used. + description: "Selects which `sip_region` to receive inbound calls from.\ + \ If null, the default region (US) will be used." enum: - US - Europe - Australia type: string sip_subdomain: - default: "null" - description: 'Specifies a subdomain that can be used to receive Inbound - calls to a Connection, in the same way a phone number is used, from a - SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called - from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" - where the user part can be any alphanumeric value. Please note TLS encrypted - calls are not allowed for subdomain calls.' + description: "Specifies a subdomain that can be used to receive Inbound\ + \ calls to a Connection, in the same way a phone number is used, from\ + \ a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can\ + \ be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\"\ + \ where the user part can be any alphanumeric value. Please note TLS encrypted\ + \ calls are not allowed for subdomain calls." nullable: true type: string sip_subdomain_receive_settings: default: from_anyone - description: 'This option can be enabled to receive calls from: "Anyone" - (any SIP endpoint in the public Internet) or "Only my connections" (any - connection assigned to the same Telnyx user).' + description: "This option can be enabled to receive calls from: \"Anyone\"\ + \ (any SIP endpoint in the public Internet) or \"Only my connections\"\ + \ (any connection assigned to the same Telnyx user)." enum: - only_my_connections - from_anyone @@ -35335,8 +37236,8 @@ components: type: integer timeout_2xx_secs: default: 90 - description: 'Time(sec) before aborting if call is unanswered (min: 1, max: - 600).' + description: "Time(sec) before aborting if call is unanswered (min: 1, max:\ + \ 600)." type: integer title: Inbound FQDN type: object @@ -35387,11 +37288,11 @@ components: - G729 - OPUS - H.264 - description: 'Defines the list of codecs that Telnyx will send for inbound - calls to a specific number on your portal account, in priority order. - This only works when the Connection the number is assigned to uses Media - Handling mode: default. OPUS and H.264 codecs are available only when - using TCP or TLS transport for SIP.' + description: "Defines the list of codecs that Telnyx will send for inbound\ + \ calls to a specific number on your portal account, in priority order.\ + \ This only works when the Connection the number is assigned to uses Media\ + \ Handling mode: default. OPUS and H.264 codecs are available only when\ + \ using TCP or TLS transport for SIP." items: type: string type: array @@ -35414,16 +37315,16 @@ components: example: 192.168.0.0 type: string default_routing_method: - description: Default routing method to be used when a number is associated - with the connection. Must be one of the routing method types or left blank, - other values are not allowed. + description: "Default routing method to be used when a number is associated\ + \ with the connection. Must be one of the routing method types or left\ + \ blank, other values are not allowed." enum: - sequential - round-robin type: string channel_limit: - description: When set, this will limit the total number of inbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of inbound calls\ + \ to phone numbers associated with this connection." example: 10 type: integer generate_ringback_tone: @@ -35433,8 +37334,9 @@ components: type: boolean isup_headers_enabled: default: false - description: When set, inbound phone calls will receive ISUP parameters - via SIP headers. (Only when available and only when using TCP or TLS transport.) + description: "When set, inbound phone calls will receive ISUP parameters\ + \ via SIP headers. (Only when available and only when using TCP or TLS\ + \ transport.)" type: boolean prack_enabled: default: false @@ -35442,10 +37344,10 @@ components: type: boolean privacy_zone_enabled: default: false - description: By default, Telnyx does not send caller-id information when - the caller has chosen to hide this information. When this option is enabled, - Telnyx will send the SIP header Privacy:id plus the caller-id information - so that the receiver side can choose when to hide it. + description: "By default, Telnyx does not send caller-id information when\ + \ the caller has chosen to hide this information. When this option is\ + \ enabled, Telnyx will send the SIP header Privacy:id plus the caller-id\ + \ information so that the receiver side can choose when to hide it." type: boolean sip_compact_headers_enabled: default: true @@ -35453,25 +37355,25 @@ components: type: boolean sip_region: default: US - description: Selects which `sip_region` to receive inbound calls from. If - null, the default region (US) will be used. + description: "Selects which `sip_region` to receive inbound calls from.\ + \ If null, the default region (US) will be used." enum: - US - Europe - Australia type: string sip_subdomain: - description: 'Specifies a subdomain that can be used to receive Inbound - calls to a Connection, in the same way a phone number is used, from a - SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called - from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" - where the user part can be any alphanumeric value. Please note TLS encrypted - calls are not allowed for subdomain calls.' + description: "Specifies a subdomain that can be used to receive Inbound\ + \ calls to a Connection, in the same way a phone number is used, from\ + \ a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can\ + \ be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\"\ + \ where the user part can be any alphanumeric value. Please note TLS encrypted\ + \ calls are not allowed for subdomain calls." type: string sip_subdomain_receive_settings: - description: 'This option can be enabled to receive calls from: "Anyone" - (any SIP endpoint in the public Internet) or "Only my connections" (any - connection assigned to the same Telnyx user).' + description: "This option can be enabled to receive calls from: \"Anyone\"\ + \ (any SIP endpoint in the public Internet) or \"Only my connections\"\ + \ (any connection assigned to the same Telnyx user)." enum: - only_my_connections - from_anyone @@ -35484,8 +37386,8 @@ components: type: integer timeout_2xx_secs: default: 90 - description: 'Time(sec) before aborting if call is unanswered (min: 1, max: - 600).' + description: "Time(sec) before aborting if call is unanswered (min: 1, max:\ + \ 600)." type: integer title: Inbound Ip type: object @@ -35504,14 +37406,14 @@ components: organization_id: b448f9cc-a842-4784-98e9-03c1a5872950 from: phone_number: +18665550001 - carrier: T-MOBILE USA, INC. + carrier: "T-MOBILE USA, INC." line_type: Wireless to: - phone_number: +18445550001 status: delivered carrier: TELNYX LLC line_type: VoIP - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media: [] webhook_url: https://www.example.com/hooks @@ -35566,14 +37468,14 @@ components: organization_id: b448f9cc-a842-4784-98e9-03c1a5872950 from: phone_number: +18665550001 - carrier: T-MOBILE USA, INC. + carrier: "T-MOBILE USA, INC." line_type: Wireless to: - phone_number: +18445550001 status: delivered carrier: TELNYX LLC line_type: VoIP - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media: [] webhook_url: https://www.example.com/hooks @@ -35603,14 +37505,14 @@ components: from: phone_number: +18665550001 status: delivered - carrier: T-MOBILE USA, INC. + carrier: "T-MOBILE USA, INC." line_type: Wireless to: - phone_number: +18445550001 status: delivered carrier: TELNYX LLC line_type: VoIP - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media: [] webhook_url: https://www.example.com/hooks @@ -35654,23 +37556,21 @@ components: type: string to: items: - $ref: '#/components/schemas/InboundMessagePayload_to' + $ref: '#/components/schemas/InboundMessagePayload_to_inner' type: array cc: items: - $ref: '#/components/schemas/InboundMessagePayload_cc' + $ref: '#/components/schemas/InboundMessagePayload_cc_inner' type: array from: $ref: '#/components/schemas/InboundMessagePayload_from' text: - description: |- - Message body (i.e., content) as a non-empty string. - - **Required for SMS** + description: "Message body (i.e., content) as a non-empty string.\n\n**Required\ + \ for SMS**" type: string media: items: - $ref: '#/components/schemas/InboundMessagePayload_media' + $ref: '#/components/schemas/InboundMessagePayload_media_inner' type: array webhook_url: description: The URL where webhooks related to this message will be sent. @@ -35730,6 +37630,231 @@ components: format: int64 title: Int ID type: string + Interactive: + properties: + type: + allOf: + - $ref: '#/components/schemas/InteractiveType' + description: The type of interactive message you want to send. + header: + $ref: '#/components/schemas/Header' + body: + $ref: '#/components/schemas/Body' + footer: + $ref: '#/components/schemas/Footer' + action: + $ref: '#/components/schemas/Action' + required: + - action + - type + title: Interactive + type: object + InteractiveAction: + properties: + button: + description: "Button content. It cannot be an empty string and must be unique\ + \ within the message. Emojis are supported, markdown is not. Required\ + \ for List Messages." + title: Button + type: string + buttons: + description: A list of buttons. Required for Reply Button Messages. + items: + $ref: '#/components/schemas/InteractiveButton' + title: Buttons + type: array + sections: + description: Array of section objects. Required for List Messages and Multi-Product + Messages. + items: + $ref: '#/components/schemas/InteractiveSection' + title: Sections + type: array + catalog_id: + description: Unique identifier of the Facebook catalog linked to your WhatsApp + Business Account. This ID can be retrieved via Commerce Manager. Required + for Single Product Messages and Multi-Product Messages. + title: Catalog Id + type: string + product_retailer_id: + description: "Unique identifier of the product in a catalog. To get this\ + \ ID, go to Commerce Manager, select your Facebook Business account, and\ + \ you will see a list of shops connected to your account. Click the shop\ + \ you want to use. On the left-side panel, click Catalog > Items, and\ + \ find the item you want to mention. The ID for that item is displayed\ + \ under the item's name." + title: Product Retailer Id + type: string + title: InteractiveAction + type: object + InteractiveBody: + properties: + text: + description: The body content of the message. Emojis and markdown are supported. + Links are supported. + title: Text + type: string + required: + - text + title: InteractiveBody + type: object + InteractiveButton: + properties: + type: + allOf: + - $ref: '#/components/schemas/InteractiveButtonType' + description: The only supported type is reply (for Reply Button Messages). + reply: + $ref: '#/components/schemas/Reply' + required: + - reply + title: InteractiveButton + type: object + InteractiveButtonReply: + properties: + title: + description: "Button title. It cannot be an empty string and must be unique\ + \ within the message. Emojis are supported, markdown is not." + title: Title + type: string + id: + description: Unique identifier for your button. This ID is returned in the + webhook when the button is clicked by the user. You cannot have leading + or trailing spaces when setting the ID. + title: Id + type: string + required: + - id + - title + title: InteractiveButtonReply + type: object + InteractiveButtonType: + description: An enumeration. + enum: + - reply + title: InteractiveButtonType + type: string + InteractiveFooter: + properties: + text: + description: The footer content. Emojis and markdown are supported. Links + are supported. + title: Text + type: string + required: + - text + title: InteractiveFooter + type: object + InteractiveHeader: + properties: + type: + description: The header type you would like to use. + title: Type + type: string + text: + description: "Text for the header. Formatting allows emojis, but not markdown." + title: Text + type: string + video: + $ref: '#/components/schemas/Video_1' + image: + $ref: '#/components/schemas/Image_1' + document: + $ref: '#/components/schemas/Document_1' + required: + - type + title: InteractiveHeader + type: object + InteractiveProduct: + properties: + product_retailer_id: + description: "Unique identifier of the product in a catalog. To get this\ + \ ID, go to Commerce Manager, select your Facebook Business account, and\ + \ you will see a list of shops connected to your account. Click the shop\ + \ you want to use. On the left-side panel, click Catalog > Items, and\ + \ find the item you want to mention. The ID for that item is displayed\ + \ under the item's name." + title: Product Retailer Id + type: string + required: + - product_retailer_id + title: InteractiveProduct + type: object + InteractiveSection: + properties: + title: + description: Title of the section. Required if the message has more than + one section. + title: Title + type: string + rows: + description: Contains a list of rows. Limited to 10 rows across all sections. + Required for List Messages. + items: + $ref: '#/components/schemas/InteractiveSectionRow' + title: Rows + type: array + product_items: + description: Array of product objects. There is a minimum of 1 product per + section. There is a maximum of 30 products across all sections. + items: + $ref: '#/components/schemas/InteractiveProduct' + title: Product Items + type: array + title: InteractiveSection + type: object + InteractiveSectionRow: + properties: + id: + description: "Maximum length: 200 characters" + title: Id + type: string + title: + description: "Maximum length: 24 characters" + title: Title + type: string + description: + description: "Maximum length: 72 characters" + title: Description + type: string + required: + - id + - title + title: InteractiveSectionRow + type: object + InteractiveType: + description: An enumeration. + enum: + - list + - button + - product + - product_list + title: InteractiveType + type: string + Interface: + properties: + network_id: + description: The id of the network associated with the interface. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + name: + description: A user specified name for the interface. + example: test interface + type: string + status: + $ref: '#/components/schemas/InterfaceStatus' + type: object + InterfaceStatus: + description: The current status of the interface deployment. + enum: + - created + - provisioning + - provisioned + - deleting + example: provisioned + readOnly: true + type: string InventoryCoverage: example: group: "318" @@ -35786,7 +37911,6 @@ components: total_results: example: 25 type: integer - title: InventoryCoverageMetadata type: object Ip: example: @@ -35906,8 +38030,8 @@ components: type: string transport_protocol: default: UDP - description: One of UDP, TLS, or TCP. Applies only to connections with IP - authentication or FQDN authentication. + description: "One of UDP, TLS, or TCP. Applies only to connections with\ + \ IP authentication or FQDN authentication." enum: - UDP - TCP @@ -35916,9 +38040,9 @@ components: type: string default_on_hold_comfort_noise_enabled: default: true - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." example: true type: boolean dtmf_type: @@ -35933,31 +38057,31 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer the sender and receiver negotiating - T38 directly if both are on the Telnyx network. If this is disabled, Telnyx - will be able to use T38 on just one leg of the call depending on each - leg's settings. + description: "Enable on-net T38 if you prefer the sender and receiver negotiating\ + \ T38 directly if both are on the Telnyx network. If this is disabled,\ + \ Telnyx will be able to use T38 on just one leg of the call depending\ + \ on each leg's settings." example: false type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -35986,6 +38110,30 @@ components: $ref: '#/components/schemas/OutboundIp' title: Ip Connection type: object + IpItem: + example: + updated_at: 2000-01-23T04:56:07.000+00:00 + fqdn: fqdn + created_at: 2000-01-23T04:56:07.000+00:00 + ip_address: ip_address + properties: + ip_address: + format: ipv4 + title: IP address + type: string + fqdn: + title: Fully Qualified Domain Name (FQDN) + type: string + created_at: + format: date-time + title: Created At + type: string + updated_at: + format: date-time + title: Updated At + type: string + title: IP Item + type: object JoinConferenceRequest: example: call_control_id: v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ @@ -36078,9 +38226,9 @@ components: example: whisper type: string whisper_call_control_ids: - description: Array of unique call_control_ids the joining supervisor can - whisper to. If none provided, the supervisor will join the conference - as a monitoring participant only. + description: "Array of unique call_control_ids the joining supervisor can\ + \ whisper to. If none provided, the supervisor will join the conference\ + \ as a monitoring participant only." example: - v2:Sg1xxxQ_U3ixxxyXT_VDNI3xxxazZdg6Vxxxs4-GNYxxxVaJPOhFMRQ - v2:qqpb0mmvd-ovhhBr0BUQQn0fld5jIboaaX3-De0DkqXHzbf8d75xkw @@ -36114,8 +38262,8 @@ components: - deterministic type: string code: - description: The code of the language or locale to use — Accepts both language - and language_locale formats (e.g., en and en_US). + description: "The code of the language or locale to use — Accepts both language\ + \ and language_locale formats (e.g., en and en_US)." type: string required: - code @@ -36201,8 +38349,8 @@ components: format: string type: string report_url: - description: External url of the ledger billing group report, if the status - is complete + description: "External url of the ledger billing group report, if the status\ + \ is complete" format: string nullable: true type: string @@ -36271,8 +38419,8 @@ components: language: en-US record_type: verification_profile call: - speech_template: 'Hello, this is the Acme Inc verification code you requested: - {code}.' + speech_template: "Hello, this is the Acme Inc verification code you requested:\ + \ {code}." default_call_timeout_secs: 30 default_verification_timeout_secs: 300 updated_at: 2020-09-14T17:03:32.965812 @@ -36281,8 +38429,8 @@ components: sms: messaging_enabled: true vsms_enabled: true - messaging_template: 'Hello, this is the Acme Inc verification code you - requested: {code}.' + messaging_template: "Hello, this is the Acme Inc verification code you\ + \ requested: {code}." default_verification_timeout_secs: 300 rcs_enabled: true id: 12ade33a-21c0-473b-b055-b3c836e1c292 @@ -36298,8 +38446,8 @@ components: language: en-US record_type: verification_profile call: - speech_template: 'Hello, this is the Acme Inc verification code you requested: - {code}.' + speech_template: "Hello, this is the Acme Inc verification code you requested:\ + \ {code}." default_call_timeout_secs: 30 default_verification_timeout_secs: 300 updated_at: 2020-09-14T17:03:32.965812 @@ -36308,8 +38456,8 @@ components: sms: messaging_enabled: true vsms_enabled: true - messaging_template: 'Hello, this is the Acme Inc verification code you - requested: {code}.' + messaging_template: "Hello, this is the Acme Inc verification code you\ + \ requested: {code}." default_verification_timeout_secs: 300 rcs_enabled: true id: 12ade33a-21c0-473b-b055-b3c836e1c292 @@ -36330,21 +38478,6 @@ components: - meta title: ListVerifyProfilesResponse type: object - LocalizableParam: - example: - default: - properties: - default: - description: Default text if localization fails - type: string - currency: - $ref: '#/components/schemas/Currency' - date_time: - $ref: '#/components/schemas/DateTimeObject' - required: - - default - title: LocalizableParam - type: object Location: example: longitude: @@ -36417,8 +38550,8 @@ components: example: KEY0174227C1D16D1B180A8FF742AD37F70_1bA4vlJKHpZcJGaSXaadFu type: string api_user: - description: The manager account's email, which serves as the V1 API user - identifier + description: "The manager account's email, which serves as the V1 API user\ + \ identifier" example: managed_account@example.com type: string api_token: @@ -36444,19 +38577,19 @@ components: example: 2018-02-02T22:25:27.521Z type: string managed_account_allow_custom_pricing: - description: Boolean value that indicates if the managed account is able - to have custom pricing set for it or not. If false, uses the pricing of - the manager account. Defaults to false. There may be time lag between - when the value is changed and pricing changes take effect. + description: "Boolean value that indicates if the managed account is able\ + \ to have custom pricing set for it or not. If false, uses the pricing\ + \ of the manager account. Defaults to false. There may be time lag between\ + \ when the value is changed and pricing changes take effect." example: true type: boolean rollup_billing: - description: Boolean value that indicates if the billing information and - charges to the managed account "roll up" to the manager account. If true, - the managed account will not have its own balance and will use the shared - balance with the manager account. This value cannot be changed after account - creation without going through Telnyx support as changes require manual - updates to the account ledger. Defaults to false. + description: "Boolean value that indicates if the billing information and\ + \ charges to the managed account \"roll up\" to the manager account. If\ + \ true, the managed account will not have its own balance and will use\ + \ the shared balance with the manager account. This value cannot be changed\ + \ after account creation without going through Telnyx support as changes\ + \ require manual updates to the account ledger. Defaults to false." example: false type: boolean required: @@ -36763,12 +38896,12 @@ components: example: DELIVERED type: string cld: - description: The destination number for a call, or the callee + description: "The destination number for a call, or the callee" example: +1555123456 type: string cli: - description: The number associated with the person initiating the call, - or the caller + description: "The number associated with the person initiating the call,\ + \ or the caller" example: +1555123456 type: string rate: @@ -37531,23 +39664,23 @@ components: properties: rtp_auto_adjust_enabled: default: true - description: When RTP Auto-Adjust is enabled, the destination RTP address - port will be automatically changed to match the source of the incoming - RTP packets. + description: "When RTP Auto-Adjust is enabled, the destination RTP address\ + \ port will be automatically changed to match the source of the incoming\ + \ RTP packets." type: boolean media_handling_mode: default: default - description: 'Controls how media is handled for the phone number. default: - media routed through Telnyx with transcode support. proxy: media routed - through Telnyx with no transcode support.' + description: "Controls how media is handled for the phone number. default:\ + \ media routed through Telnyx with transcode support. proxy: media routed\ + \ through Telnyx with no transcode support." enum: - default - proxy type: string accept_any_rtp_packets_enabled: default: false - description: When enabled, Telnyx will accept RTP packets from any customer-side - IP address and port, not just those to which Telnyx is sending RTP. + description: "When enabled, Telnyx will accept RTP packets from any customer-side\ + \ IP address and port, not just those to which Telnyx is sending RTP." type: boolean t38_fax_gateway_enabled: default: false @@ -37556,7 +39689,14 @@ components: only controls whether one will be accepted. type: boolean type: object + MediaName: + description: The media_name used for the fax's media. Must point to a file previously + uploaded to api.telnyx.com/v2/media by the same user/organization. media_name + and media_url/contents can't be submitted together. + example: my_media_uploaded_to_media_storage_api + type: string MediaRequestBody: + description: "" properties: whatsapp_user_id: description: The user's WhatsApp ID. @@ -37662,8 +39802,8 @@ components: example: "0.004" type: string currency: - description: Telnyx account currency used to describe monetary values, including - billing cost + description: "Telnyx account currency used to describe monetary values,\ + \ including billing cost" example: USD type: string record_type: @@ -37673,7 +39813,13 @@ components: required: - record_type type: object + MediaUrl: + description: The URL to the PDF used for the fax's media. media_url and media_name/contents + can't be submitted together. + example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf + type: string Message: + description: "" example: record_type: whatsapp_message_id id: gBEGkYiEB1VXAglK1ZEqA1YKPrU @@ -37734,8 +39880,8 @@ components: example: +1555123456 type: string cli: - description: The sender of the message (from parameter in the Messaging - API). For Alphanumeric ID messages, this is the sender ID value + description: "The sender of the message (from parameter in the Messaging\ + \ API). For Alphanumeric ID messages, this is the sender ID value" example: +1555123456 type: string country_code: @@ -37745,7 +39891,7 @@ components: type: string delivery_status: description: Final webhook delivery status - example: 'success: webhook succeeded' + example: "success: webhook succeeded" type: string delivery_status_failover_url: description: Failover customer-provided URL which Telnyx posts delivery @@ -37758,9 +39904,9 @@ components: example: https://api.example.com/sms/telnyx/inbound type: string direction: - description: Logical direction of the message from the Telnyx customer's - perspective. It's inbound when the Telnyx customer receives the message, - or outbound otherwise + description: "Logical direction of the message from the Telnyx customer's\ + \ perspective. It's inbound when the Telnyx customer receives the message,\ + \ or outbound otherwise" enum: - inbound - outbound @@ -37772,19 +39918,19 @@ components: example: false type: boolean mcc: - description: Mobile country code. Only available for certain products, such - as Global Outbound-Only from Alphanumeric Sender ID + description: "Mobile country code. Only available for certain products,\ + \ such as Global Outbound-Only from Alphanumeric Sender ID" example: "204" type: string mnc: - description: Mobile network code. Only available for certain products, such - as Global Outbound-Only from Alphanumeric Sender ID + description: "Mobile network code. Only available for certain products,\ + \ such as Global Outbound-Only from Alphanumeric Sender ID" example: "01" type: string message_type: - description: 'Describes the Messaging service used to send the message. - Available services are: Short Message Service (SMS), Multimedia Messaging - Service (MMS), and Rich Communication Services (RCS)' + description: "Describes the Messaging service used to send the message.\ + \ Available services are: Short Message Service (SMS), Multimedia Messaging\ + \ Service (MMS), and Rich Communication Services (RCS)" enum: - SMS - MMS @@ -37824,7 +39970,7 @@ components: tags: description: Comma-separated tags assigned to the Telnyx number associated with the message - example: tag1,tag2,tag3 + example: "tag1,tag2,tag3" type: string rate: description: Currency amount per billing unit used to calculate the Telnyx @@ -37832,12 +39978,12 @@ components: example: "0.003" type: string currency: - description: Telnyx account currency used to describe monetary values, including - billing cost + description: "Telnyx account currency used to describe monetary values,\ + \ including billing cost" example: USD type: string cost: - description: Amount, in the user currency, for the Telnyx billing cost + description: "Amount, in the user currency, for the Telnyx billing cost" example: "0.003" type: string errors: @@ -37866,7 +40012,6 @@ components: - audio - contacts - document - - hsm - image - location - template @@ -37877,10 +40022,9 @@ components: title: Message Type type: string MessagingFeatureSet: - description: | - The set of features available for a specific messaging use case (SMS or MMS). Features - can vary depending on the characteristics the phone number, as well as its current - product configuration. + description: "The set of features available for a specific messaging use case\ + \ (SMS or MMS). Features\ncan vary depending on the characteristics the phone\ + \ number, as well as its current\nproduct configuration.\n" example: domestic_two_way: true international_inbound: false @@ -38000,21 +40144,21 @@ components: nullable: true type: string webhook_api_version: - description: Determines which webhook format will be used, Telnyx API v1, - v2, or a legacy 2010-04-01 format. + description: "Determines which webhook format will be used, Telnyx API v1,\ + \ v2, or a legacy 2010-04-01 format." enum: - "1" - "2" - 2010-04-01 type: string whitelisted_destinations: - description: Destinations to which the messaging profile is allowed to send. - If set to `null`, all destinations will be allowed. Setting a value of - `["*"]` has the equivalent effect. The elements in the list must be valid - ISO 3166-1 alpha-2 country codes. + description: "Destinations to which the messaging profile is allowed to\ + \ send. If set to `null`, all destinations will be allowed. Setting a\ + \ value of `[\"*\"]` has the equivalent effect. The elements in the list\ + \ must be valid ISO 3166-1 alpha-2 country codes." items: description: ISO 3166-1 alpha-2 country code. - pattern: ^[A-Z]{2}$ + pattern: "^[A-Z]{2}$" type: string nullable: true type: array @@ -38205,62 +40349,6 @@ components: type: number title: Metadata type: object - MobileApplication: - example: - application_name: FlashEmergency - updated_at: 2021-03-26T17:51:59.588408Z - created_at: 2021-03-26T17:51:59.588408Z - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - type: android - record_type: mobile_application - properties: - id: - description: ID of the appplication that was created - example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - type: string - application_name: - description: Name of the appplication to be created - example: FlashEmergency - type: string - type: - description: Type of application to be created (IOS or Android) - example: android - type: string - record_type: - example: mobile_application - readOnly: true - type: string - created_at: - description: ISO 8601 timestamp when the room was created. - example: 2021-03-26T17:51:59.588408Z - format: datetime - type: string - updated_at: - description: ISO 8601 timestamp when the room was updated. - example: 2021-03-26T17:51:59.588408Z - format: datetime - type: string - required: - - application_name - - created_at - - id - - record_type - - type - - updated_at - type: object - MobileApplicationResponse: - description: Success response with details about a mobile application - example: - data: - application_name: FlashEmergency - updated_at: 2021-03-26T17:51:59.588408Z - created_at: 2021-03-26T17:51:59.588408Z - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - type: android - record_type: mobile_application - properties: - data: - $ref: '#/components/schemas/MobileApplication' MobileOperatorNetwork: example: country_code: US @@ -38312,6 +40400,7 @@ components: title: MobileOperatorNetwork type: object MobileOperatorNetworkPreferencesRequest: + description: "" properties: mobile_operator_network_id: description: The mobile operator network resource identification UUID. @@ -38319,13 +40408,14 @@ components: format: uuid type: string priority: - description: It determines what is the priority of a specific operator network - that should be assumed by a SIM card when connecting to a network. The - highest priority is 0, the second highest is 1 and so on. + description: "It determines what is the priority of a specific operator\ + \ network that should be assumed by a SIM card when connecting to a network.\ + \ The highest priority is 0, the second highest is 1 and so on." example: 0 type: integer type: object MobileOperatorNetworkPreferencesResponse: + description: "" example: mobile_operator_network_name: AT&T Mobility (USACG) priority: 0 @@ -38341,9 +40431,9 @@ components: example: AT&T Mobility (USACG) type: string priority: - description: It determines what is the priority of a specific operator network - that should be assumed by a SIM card when connecting to a network. The - highest priority is 0, the second highest is 1 and so on. + description: "It determines what is the priority of a specific operator\ + \ network that should be assumed by a SIM card when connecting to a network.\ + \ The highest priority is 0, the second highest is 1 and so on." example: 0 type: integer type: object @@ -38376,6 +40466,10 @@ components: - USD type: string type: object + Monochrome: + default: false + description: "The flag to enable monochrome, true black and white fax results." + type: boolean Name: description: Full contact name example: @@ -38402,6 +40496,23 @@ components: - formatted_name title: Name type: object + Network: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/Network_1' + NetworkCreate: + allOf: + - $ref: '#/components/schemas/Network' + - required: + - name + title: NetworkCreate + type: object + NetworkInterface: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/Interface' + - $ref: '#/components/schemas/RegionOut' + - $ref: '#/components/schemas/NetworkInterface_1' NewBillingGroup: example: name: string @@ -38547,7 +40658,7 @@ components: type: string parameters: items: - $ref: '#/components/schemas/NotificationEventCondition_parameters' + $ref: '#/components/schemas/NotificationEventCondition_parameters_inner' type: array enabled: example: true @@ -38649,8 +40760,8 @@ components: readOnly: true type: string status: - description: Most preferences apply immediately; however, other may needs - to propagate. + description: "Most preferences apply immediately; however, other may needs\ + \ to propagate." enum: - enabled - enable-received @@ -38669,7 +40780,7 @@ components: type: string parameters: items: - $ref: '#/components/schemas/NotificationSetting_parameters' + $ref: '#/components/schemas/NotificationSetting_parameters_inner' type: array created_at: description: ISO 8601 formatted date indicating when the resource was created. @@ -38758,8 +40869,8 @@ components: readOnly: true type: string requirements_met: - description: True if all requirements are met for every phone number, false - otherwise. + description: "True if all requirements are met for every phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -38836,8 +40947,8 @@ components: example: US type: string national_format: - description: Hyphen-separated national number, preceded by the national - destination code (NDC), with a 0 prefix, if an NDC is found + description: "Hyphen-separated national number, preceded by the national\ + \ destination code (NDC), with a 0 prefix, if an NDC is found" example: (0312) 945-7420 type: string phone_number: @@ -38931,8 +41042,8 @@ components: readOnly: true type: string requirements_met: - description: True if all requirements are met for every phone number, false - otherwise. + description: "True if all requirements are met for every phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -39057,8 +41168,8 @@ components: $ref: '#/components/schemas/PhoneNumberRegulatoryRequirement' type: array requirements_met: - description: True if all requirements are met for a phone number, false - otherwise. + description: "True if all requirements are met for a phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -39146,12 +41257,10 @@ components: title: Number Order Event type: object NumberPoolSettings: - description: | - Number Pool allows you to send messages from a pool of numbers of different types, assigning - weights to each type. The pool consists of all the long code and toll free numbers - assigned to the messaging profile. - - To disable this feature, set the object field to `null`. + description: "Number Pool allows you to send messages from a pool of numbers\ + \ of different types, assigning\nweights to each type. The pool consists of\ + \ all the long code and toll free numbers\nassigned to the messaging profile.\n\ + \nTo disable this feature, set the object field to `null`.\n" example: toll_free_weight: 10 long_code_weight: 1 @@ -39161,42 +41270,43 @@ components: nullable: true properties: toll_free_weight: - description: | - Defines the probability weight for a Toll Free number to be selected when sending a message. - The higher the weight the higher the probability. The sum of the weights for all number types - does not necessarily need to add to 100. Weight must be a non-negative number, and when equal - to zero it will remove the number type from the pool. + description: "Defines the probability weight for a Toll Free number to be\ + \ selected when sending a message.\nThe higher the weight the higher the\ + \ probability. The sum of the weights for all number types\ndoes not necessarily\ + \ need to add to 100. Weight must be a non-negative number, and when equal\n\ + to zero it will remove the number type from the pool.\n" example: 10 type: number long_code_weight: - description: | - Defines the probability weight for a Long Code number to be selected when sending a message. - The higher the weight the higher the probability. The sum of the weights for all number types - does not necessarily need to add to 100. Weight must be a non-negative number, and when equal - to zero it will remove the number type from the pool. + description: "Defines the probability weight for a Long Code number to be\ + \ selected when sending a message.\nThe higher the weight the higher the\ + \ probability. The sum of the weights for all number types\ndoes not necessarily\ + \ need to add to 100. Weight must be a non-negative number, and when\ + \ equal\nto zero it will remove the number type from the pool.\n" example: 1 type: number skip_unhealthy: - description: | - If set to true all unhealthy numbers will be automatically excluded from the pool. - Health metrics per number are calculated on a regular basis, taking into account the deliverability - rate and the amount of messages marked as spam by upstream carriers. - Numbers with a deliverability rate below 25% or spam ratio over 75% will be considered unhealthy. + description: "If set to true all unhealthy numbers will be automatically\ + \ excluded from the pool.\nHealth metrics per number are calculated on\ + \ a regular basis, taking into account the deliverability\nrate and the\ + \ amount of messages marked as spam by upstream carriers.\nNumbers with\ + \ a deliverability rate below 25% or spam ratio over 75% will be considered\ + \ unhealthy.\n" example: true type: boolean sticky_sender: default: false - description: | - If set to true, Number Pool will try to choose the same sending number for all messages to a particular - recipient. If the sending number becomes unhealthy and `skip_unhealthy` is set to true, a new - number will be chosen. + description: "If set to true, Number Pool will try to choose the same sending\ + \ number for all messages to a particular\nrecipient. If the sending number\ + \ becomes unhealthy and `skip_unhealthy` is set to true, a new\nnumber\ + \ will be chosen.\n" type: boolean geomatch: default: false - description: | - If set to true, Number Pool will try to choose a sending number with the same area code as the destination - number. If there are no such numbers available, a nunber with a different area code will be chosen. Currently - only NANP numbers are supported. + description: "If set to true, Number Pool will try to choose a sending number\ + \ with the same area code as the destination\nnumber. If there are no\ + \ such numbers available, a nunber with a different area code will be\ + \ chosen. Currently\nonly NANP numbers are supported.\n" type: boolean required: - long_code_weight @@ -39280,6 +41390,11 @@ components: - company title: Organization type: object + OriginalMediaUrl: + description: "The original URL to the PDF used for the fax's media. If media_name\ + \ was supplied, this is omitted" + example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf + type: string OutboundCallRecording: example: call_recording_type: by_caller_phone_number @@ -39296,9 +41411,9 @@ components: - by_caller_phone_number type: string call_recording_caller_phone_numbers: - description: When call_recording_type is 'by_caller_phone_number', only - outbound calls using one of these numbers will be recorded. Numbers must - be specified in E164 format. + description: "When call_recording_type is 'by_caller_phone_number', only\ + \ outbound calls using one of these numbers will be recorded. Numbers\ + \ must be specified in E164 format." example: - +19705555098 items: @@ -39306,9 +41421,9 @@ components: type: array call_recording_channels: default: single - description: When using 'dual' channels, the final audio file will be a - stereo recording with the first leg on channel A, and the rest on channel - B. + description: "When using 'dual' channels, the final audio file will be a\ + \ stereo recording with the first leg on channel A, and the rest on channel\ + \ B." enum: - single - dual @@ -39360,13 +41475,13 @@ components: - emergency type: string channel_limit: - description: When set, this will limit the total number of outbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of outbound calls\ + \ to phone numbers associated with this connection." type: integer instant_ringback_enabled: default: true - description: When set, ringback will not wait for indication before sending - ringback tone to calling party. + description: "When set, ringback will not wait for indication before sending\ + \ ringback tone to calling party." type: boolean generate_ringback_tone: default: false @@ -39374,18 +41489,17 @@ components: with early media. type: boolean localization: - default: "null" - description: A 2-character country code specifying the country whose national - dialing rules should be used. For example, if set to `US` then any US - number can be dialed without preprending +1 to the number. When left blank, - Telnyx will try US and GB dialing rules, in that order, by default. + description: "A 2-character country code specifying the country whose national\ + \ dialing rules should be used. For example, if set to `US` then any US\ + \ number can be dialed without preprending +1 to the number. When left\ + \ blank, Telnyx will try US and GB dialing rules, in that order, by default." type: string t38_reinvite_source: default: telnyx - description: This setting only affects connections with Fax-type Outbound - Voice Profiles. The setting dictates whether or not Telnyx sends a t.38 - reinvite.

By default, Telnyx will send the re-invite. If set - to `customer`, the caller is expected to send the t.38 reinvite. + description: "This setting only affects connections with Fax-type Outbound\ + \ Voice Profiles. The setting dictates whether or not Telnyx sends a t.38\ + \ reinvite.

By default, Telnyx will send the re-invite. If set\ + \ to `customer`, the caller is expected to send the t.38 reinvite." enum: - telnyx - customer @@ -39396,7 +41510,7 @@ components: type: string tech_prefix: default: "" - description: Numerical chars only, exactly 4 characters. + description: "Numerical chars only, exactly 4 characters." type: string ip_authentication_method: default: tech-prefixp-charge-info @@ -39406,7 +41520,6 @@ components: example: tech-prefixp-charge-info type: string ip_authentication_token: - default: "null" type: string outbound_voice_profile_id: description: Identifies the associated outbound voice profile. @@ -39436,9 +41549,9 @@ components: to: - phone_number: +18665550001 status: queued - carrier: T-MOBILE USA, INC. + carrier: "T-MOBILE USA, INC." line_type: Wireless - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media: - url: https://pbs.twimg.com/profile_images/1142168442042118144/AW3F4fFD_400x400.png @@ -39502,9 +41615,9 @@ components: to: - phone_number: +18665550001 status: queued - carrier: T-MOBILE USA, INC. + carrier: "T-MOBILE USA, INC." line_type: Wireless - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media: - url: https://pbs.twimg.com/profile_images/1142168442042118144/AW3F4fFD_400x400.png @@ -39547,9 +41660,9 @@ components: to: - phone_number: +18665550001 status: queued - carrier: T-MOBILE USA, INC. + carrier: "T-MOBILE USA, INC." line_type: Wireless - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media: - url: https://pbs.twimg.com/profile_images/1142168442042118144/AW3F4fFD_400x400.png @@ -39603,13 +41716,11 @@ components: $ref: '#/components/schemas/OutboundMessagePayload_from' to: items: - $ref: '#/components/schemas/OutboundMessagePayload_to' + $ref: '#/components/schemas/OutboundMessagePayload_to_inner' type: array text: - description: |- - Message body (i.e., content) as a non-empty string. - - **Required for SMS** + description: "Message body (i.e., content) as a non-empty string.\n\n**Required\ + \ for SMS**" type: string subject: description: Subject of multimedia message @@ -39617,7 +41728,7 @@ components: type: string media: items: - $ref: '#/components/schemas/OutboundMessagePayload_media' + $ref: '#/components/schemas/OutboundMessagePayload_media_inner' type: array webhook_url: description: The URL where webhooks related to this message will be sent. @@ -39659,9 +41770,9 @@ components: format: date-time type: string valid_until: - description: Message must be out of the queue by this time or else it will - be discarded and marked as 'sending_failed'. Once the message moves out - of the queue, this field will be nulled + description: "Message must be out of the queue by this time or else it will\ + \ be discarded and marked as 'sending_failed'. Once the message moves\ + \ out of the queue, this field will be nulled" format: date-time nullable: true type: string @@ -39763,9 +41874,9 @@ components: when making outbound calls. type: number daily_spend_limit: - description: The maximum amount of usage charges, in USD, you want Telnyx - to allow on this outbound voice profile in a day before disallowing new - calls. + description: "The maximum amount of usage charges, in USD, you want Telnyx\ + \ to allow on this outbound voice profile in a day before disallowing\ + \ new calls." example: "100.00" type: string daily_spend_limit_enabled: @@ -39803,6 +41914,25 @@ components: format: int64 title: Outbound Voice Profile ID type: string + PWGAssignedResourcesSummary: + description: The summary of the resource that have been assigned to the Private + Wireless Gateway + example: + count: 1 + record_type: sim_card_group + properties: + record_type: + description: The type of the resource assigned to the Private Wireless Gateway + example: sim_card_group + readOnly: true + type: string + count: + description: The current count of a resource type assigned to the Private + Wireless Gateway + example: 1 + readOnly: true + type: integer + type: object PaginationMeta: example: page_number: 2 @@ -40047,9 +42177,9 @@ components: type: string max_participants: default: 10 - description: The maximum amount of participants allowed in a room. If new - participants try to join after that limit is reached, their request will - be rejected. + description: "The maximum amount of participants allowed in a room. If new\ + \ participants try to join after that limit is reached, their request\ + \ will be rejected." example: 10 maximum: 50 minimum: 2 @@ -40060,16 +42190,16 @@ components: example: true type: boolean webhook_event_url: - description: The URL where webhooks related to this room will be sent. Must - include a scheme, such as 'https'. + description: "The URL where webhooks related to this room will be sent.\ + \ Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this room will be - sent if sending to the primary URL fails. Must include a scheme, such - as 'https'. + description: "The failover URL where webhooks related to this room will\ + \ be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -40108,7 +42238,7 @@ components: phone: type: string type: - description: 'Standard Values: CELL, MAIN, IPHONE, HOME, WORK' + description: "Standard Values: CELL, MAIN, IPHONE, HOME, WORK" type: string id: description: WhatsApp ID @@ -40151,8 +42281,8 @@ components: $ref: '#/components/schemas/PhoneNumberRegulatoryRequirement' type: array requirements_met: - description: True if all requirements are met for a phone number, false - otherwise. + description: "True if all requirements are met for a phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -40349,10 +42479,10 @@ components: type: string type: array external_pin: - description: If someone attempts to port your phone number away from Telnyx - and your phone number has an external PIN set, Telnyx will attempt to - verify that you provided the correct external PIN to the winning carrier. - Note that not all carriers cooperate with this security mechanism. + description: "If someone attempts to port your phone number away from Telnyx\ + \ and your phone number has an external PIN set, Telnyx will attempt to\ + \ verify that you provided the correct external PIN to the winning carrier.\ + \ Note that not all carriers cooperate with this security mechanism." type: string connection_name: description: The user-assigned name of the connection to be associated with @@ -40427,12 +42557,13 @@ components: readOnly: true type: string number_level_routing: - default: enabled + default: disabled description: Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for - all routing settings (disabled). Defaults to enabled but will be changed - to disabled in the future. There are performance advantages to using disabled - and setting all routing information at the connection level. + all routing settings (disabled). Defaults to disabled or the value set + on your user profile in default_number_routing_setting. There are performance + advantages to using disabled and setting all routing information at the + connection level. enum: - enabled - disabled @@ -40513,10 +42644,10 @@ components: type: string type: array external_pin: - description: If someone attempts to port your phone number away from Telnyx - and your phone number has an external PIN set, Telnyx will attempt to - verify that you provided the correct external PIN to the winning carrier. - Note that not all carriers cooperate with this security mechanism. + description: "If someone attempts to port your phone number away from Telnyx\ + \ and your phone number has an external PIN set, Telnyx will attempt to\ + \ verify that you provided the correct external PIN to the winning carrier.\ + \ Note that not all carriers cooperate with this security mechanism." type: string connection_name: description: The user-assigned name of the connection to be associated with @@ -40585,12 +42716,13 @@ components: readOnly: true type: string number_level_routing: - default: enabled + default: disabled description: Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for - all routing settings (disabled). Defaults to enabled but will be changed - to disabled in the future. There are performance advantages to using disabled - and setting all routing information at the connection level. + all routing settings (disabled). Defaults to disabled or the value set + on your user profile in default_number_routing_setting. There are performance + advantages to using disabled and setting all routing information at the + connection level. enum: - enabled - disabled @@ -40687,7 +42819,7 @@ components: country_code: description: ISO 3166-1 alpha-2 country code. example: US - pattern: ^[A-Z]{2}$ + pattern: "^[A-Z]{2}$" readOnly: true type: string type: @@ -40782,10 +42914,10 @@ components: type: boolean translated_number: default: "" - description: This field allows you to rewrite the destination number of - an inbound call before the call is routed to you. The value of this field - may be any alphanumeric value, and the value will replace the number originally - dialed. + description: "This field allows you to rewrite the destination number of\ + \ an inbound call before the call is routed to you. The value of this\ + \ field may be any alphanumeric value, and the value will replace the\ + \ number originally dialed." example: +13035559999 type: string call_forwarding: @@ -41027,10 +43159,10 @@ components: type: string type: array external_pin: - description: If someone attempts to port your phone number away from Telnyx - and your phone number has an external PIN set, we will attempt to verify - that you provided the correct external PIN to the winning carrier. Note - that not all carriers cooperate with this security mechanism. + description: "If someone attempts to port your phone number away from Telnyx\ + \ and your phone number has an external PIN set, we will attempt to verify\ + \ that you provided the correct external PIN to the winning carrier. Note\ + \ that not all carriers cooperate with this security mechanism." type: string customer_reference: description: A customer reference string for customer look ups. @@ -41071,22 +43203,22 @@ components: $ref: '#/components/schemas/Loopcount' overlay: default: false - description: 'When enabled, audio will be mixed on top of any other audio - that is actively being played back. Note that `overlay: true` will only - work if there is another audio file already being played on the call.' + description: "When enabled, audio will be mixed on top of any other audio\ + \ that is actively being played back. Note that `overlay: true` will only\ + \ work if there is another audio file already being played on the call." example: true type: boolean stop: - description: When specified, it stops the current audio being played. Specify - `current` to stop the current audio being played, and to play the next - file in the queue. Specify `all` to stop the current audio file being - played and to also clear all audio files from the queue. + description: "When specified, it stops the current audio being played. Specify\ + \ `current` to stop the current audio being played, and to play the next\ + \ file in the queue. Specify `all` to stop the current audio file being\ + \ played and to also clear all audio files from the queue." example: current type: string target_legs: default: self - description: Specifies the leg or legs on which audio will be played. If - supplied, the value must be either `self`, `opposite` or `both`. + description: "Specifies the leg or legs on which audio will be played. If\ + \ supplied, the value must be either `self`, `opposite` or `both`." example: self type: string cache_audio: @@ -41095,6 +43227,12 @@ components: call. Useful when an audio file is queued. example: true type: boolean + playback_content: + description: "Allows a user to provide base64 encoded mp3. Note: when using\ + \ this parameter, `media_url` and `media_name` in the `playback_started`\ + \ and `playback_ended` webhooks will be empty" + example: SUQzAwAAAAADf1... + type: string client_state: description: Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. @@ -41116,8 +43254,8 @@ components: properties: overlay: default: false - description: When enabled, it stops the audio being played in the overlay - queue. + description: "When enabled, it stops the audio being played in the overlay\ + \ queue." example: true type: boolean stop: @@ -41210,7 +43348,7 @@ components: altspid_carrier_type: "3" properties: lrn: - description: Local Routing Number, if assigned to the requested phone number + description: "Local Routing Number, if assigned to the requested phone number" example: "2245701999" type: string ported_status: @@ -41289,8 +43427,8 @@ components: readOnly: true type: boolean not_portable_reason: - description: If this phone number is not portable, explains why. Empty string - if the number is portable. + description: "If this phone number is not portable, explains why. Empty\ + \ string if the number is portable." example: No coverage readOnly: true type: string @@ -41336,6 +43474,7 @@ components: field_type: document record_type: porting_requirement support_key: sr_123abc + phone_number_type: local webhook_url: https://example.com/porting_webhooks documents: invoice: ce74b771-d23d-4960-81ec-8741b3862146 @@ -41346,7 +43485,6 @@ components: record_type: porting_order old_service_provider_ocn: Unreal Communications updated_at: 2021-03-19T10:07:15.527Z - user_reference: Acct 123abc end_user: admin: account_number: 123abc @@ -41363,6 +43501,8 @@ components: locality: Chicago administrative_area: IL postal_code: "60654" + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + customer_reference: Acct 123abc phone_number_configuration: emergency_address_id: f1486bae-f067-460c-ad43-73a92848f902 messaging_profile_id: f1486bae-f067-460c-ad43-73a92848f901 @@ -41371,6 +43511,7 @@ components: - abc - "123" id: f1486bae-f067-460c-ad43-73a92848f902 + requirements_met: false status: details: - code: ENTITY_NAME_MISMATCH @@ -41389,6 +43530,11 @@ components: format: uuid readOnly: true type: string + customer_reference: + description: A customer-specified reference number for customer bookkeeping + purposes + example: Acct 123abc + type: string created_at: description: ISO 8601 formatted date indicating when the resource was created. example: 2021-03-19T10:07:15.527Z @@ -41436,6 +43582,17 @@ components: $ref: '#/components/schemas/PortingOrderActivationSettings' phone_number_configuration: $ref: '#/components/schemas/PortingOrderPhoneNumberConfiguration' + phone_number_type: + description: The type of the phone number + enum: + - landline + - local + - mobile + - national + - shared_cost + - toll_free + example: local + type: string description: description: A description of the porting order example: FP Telnyx @@ -41446,17 +43603,22 @@ components: items: $ref: '#/components/schemas/PortingOrderRequirement' type: array + requirements_met: + description: Is true when the required documentation is met + example: false + type: boolean user_feedback: $ref: '#/components/schemas/PortingOrderUserFeedback' + user_id: + description: Identifies the user (or organization) who requested the porting + order + example: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + format: uuid + type: string webhook_url: example: https://example.com/porting_webhooks format: uri type: string - user_reference: - description: A customer-specified reference number for customer bookkeeping - purposes - example: Acct 123abc - type: string record_type: description: Identifies the type of the resource. example: porting_order @@ -41648,7 +43810,7 @@ components: example: Chicago type: string administrative_area: - description: State, province, or similar of billing address + description: "State, province, or similar of billing address" example: IL type: string postal_code: @@ -41742,6 +43904,43 @@ components: example: porting_requirement type: string type: object + PortingOrderRequirementDetail: + example: + requirement_type: + name: Latest Invoice + description: A copy of the latest phone bill from the current provider + id: 53970723-fbff-4f46-a975-f62be6c1a585 + type: document + acceptance_criteria: + acceptable_values: [] + example: Most recent phone bill + field_value: 9787fb5f-cbe5-4de4-b765-3303774ee9fe + requirement_status: approved + field_type: document + record_type: porting_requirement + properties: + field_type: + description: Type of value expected on field_value field + enum: + - document + - textual + example: document + type: string + field_value: + description: Identifies the document that satisfies this requirement + example: 9787fb5f-cbe5-4de4-b765-3303774ee9fe + type: string + requirement_type: + $ref: '#/components/schemas/PortingOrderRequirementDetail_requirement_type' + requirement_status: + description: Status of the requirement + example: approved + type: string + record_type: + description: Identifies the type of the resource. + example: porting_requirement + type: string + type: object PortingOrderStatus: description: Porting order status example: @@ -41785,8 +43984,8 @@ components: user_rating: 5 properties: user_rating: - description: Once an order is ported, cancellation is requested or the request - is canceled, the user may rate their experience + description: "Once an order is ported, cancellation is requested or the\ + \ request is canceled, the user may rate their experience" example: 5 type: integer user_comment: @@ -41883,8 +44082,8 @@ components: format: uuid type: string user_type: - description: Indicates whether this comment was created by a Telnyx Admin, - user, or system + description: "Indicates whether this comment was created by a Telnyx Admin,\ + \ user, or system" enum: - admin - user @@ -42029,7 +44228,6 @@ components: example: This is a comment type: string portout_id: - default: "null" description: Identifies the associated port request example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 type: string @@ -42049,17 +44247,33 @@ components: - user_id PortoutDetails: example: + reason: reason + support_key: PO_764725 + city: Chicago + created_at: 2018-02-02T22:25:27.521Z + lsr: + - https://example.com/files/lsr.pdf + end_user_name: McPortersen + service_address: 000 Example Street + spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + pon: "00000000" + updated_at: 2018-02-02T22:25:27.521Z + vendor: 0e66ed3b-37e6-4fed-93d6-a30ce2493661 id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + state: IL + carrier_name: test + inserted_at: 2018-02-02T22:25:27.521Z + authorized_name: McPortersen + zip: "00000" + current_carrier: telnyx + already_ported: false record_type: portout phone_numbers: - +35312345678 - carrier_name: test - foc_date: 2018-02-02T22:25:27.521Z requested_foc_date: 2018-02-02T22:25:27.521Z - spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - status: pending - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z + user_id: 7865816a-ee85-4e50-b19e-52983dcc6d4a + foc_date: 2018-02-02T22:25:27.521Z + status: rejected properties: id: example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -42077,10 +44291,56 @@ components: description: E164 formatted phone number type: string type: array + authorized_name: + description: Name of person authorizing the porting order + example: McPortersen + type: string carrier_name: description: Carrier the number will be ported out to example: test type: string + current_carrier: + description: The current carrier + example: telnyx + type: string + end_user_name: + description: Person name or company name requesting the port + example: McPortersen + type: string + city: + description: City or municipality of billing address + example: Chicago + type: string + state: + description: "State, province, or similar of billing address" + example: IL + type: string + zip: + description: Postal Code of billing address + example: "00000" + type: string + lsr: + description: The Local Service Request + example: + - https://example.com/files/lsr.pdf + items: + description: A link to the Local Service Request + format: uri + type: string + type: array + pon: + description: Port order number assigned by the carrier the number will be + ported out to + example: "00000000" + type: string + reason: + description: "The reason why the order is being rejected by the user. If\ + \ the order is authorized, this field can be left null" + type: string + service_address: + description: First line of billing address (street address) + example: 000 Example Street + type: string foc_date: description: ISO 8601 formatted Date/Time of the FOC date example: 2018-02-02T22:25:27.521Z @@ -42093,6 +44353,11 @@ components: description: New service provider spid example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 type: string + support_key: + description: A key to reference this port out request when contacting Telnyx + customer support + example: PO_764725 + type: string status: description: Status of portout request enum: @@ -42104,10 +44369,29 @@ components: - canceled example: rejected type: string + already_ported: + description: Is true when the number is already ported + example: false + type: boolean + user_id: + description: Identifies the user (or organization) who requested the port + out + example: 7865816a-ee85-4e50-b19e-52983dcc6d4a + format: uuid + type: string + vendor: + description: Telnyx partner providing network coverage + example: 0e66ed3b-37e6-4fed-93d6-a30ce2493661 + format: uuid + type: string created_at: description: ISO 8601 formatted date of when the portout was created example: 2018-02-02T22:25:27.521Z type: string + inserted_at: + description: ISO 8601 formatted date of when the portout was created + example: 2018-02-02T22:25:27.521Z + type: string updated_at: description: ISO 8601 formatted date of when the portout was last updated example: 2018-02-02T22:25:27.521Z @@ -42120,12 +44404,17 @@ components: updated_at: 2018-02-02T22:25:27.521Z name: My private wireless gateway created_at: 2018-02-02T22:25:27.521Z + assigned_resources: + - count: 1 + record_type: sim_card_group + - count: 1 + record_type: sim_card_group id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: private_wireless_gateway region_code: ashburn-va status: - error_description: "null" - error_code: "null" + error_description: error_description + error_code: error_code value: provisioned properties: id: @@ -42168,12 +44457,17 @@ components: status: $ref: '#/components/schemas/PrivateWirelessGatewayStatus' ip_range: - default: "null" description: IP block used to assign IPs to the SIM cards in the Private Wireless Gateway. example: 100.64.1.0/24 readOnly: true type: string + assigned_resources: + description: A list of the resources that have been assigned to the Private + Wireless Gateway + items: + $ref: '#/components/schemas/PWGAssignedResourcesSummary' + type: array type: object PrivateWirelessGatewayRequest: example: @@ -42193,8 +44487,8 @@ components: PrivateWirelessGatewayStatus: description: The current status or failure details of the Private Wireless Gateway. example: - error_description: "null" - error_code: "null" + error_description: error_description + error_code: error_code value: provisioned properties: value: @@ -42216,172 +44510,65 @@ components: readOnly: true type: string error_description: - default: "null" description: This attribute provides a human-readable explanation of why a failure happened. readOnly: true type: string error_code: - default: "null" description: This attribute is an error code related to the failure reason. readOnly: true type: string type: object + PublicInternetGateway: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/Interface' + - $ref: '#/components/schemas/PublicInternetGateway_1' + PublicInternetGatewayCreate: + allOf: + - $ref: '#/components/schemas/PublicInternetGateway' + - $ref: '#/components/schemas/RegionIn' + - required: + - network_id + - region + title: PublicInternetGatewayCreate + type: object + PublicInternetGatewayRead: + allOf: + - $ref: '#/components/schemas/PublicInternetGateway' + - $ref: '#/components/schemas/RegionOut' PushCredential: - example: - updated_at: 2021-03-26T17:51:59.588408Z - certificate: | - Bag Attributes - friendlyName: VoIP Services: com.telnyx.webrtcapp - localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA - subject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US - issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority - -----BEGIN CERTIFICATE----- - MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3 - o6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt - hRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ - cakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk - MAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw - PwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j - b20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC - DRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq - dGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF - MIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh - dGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109 - CfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx - cHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ - Y2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0 - YXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk - LLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj - /xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d - BPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg== - -----END CERTIFICATE----- - alias: LucyCredential - created_at: 2021-03-26T17:51:59.588408Z - private_key: |- - -----BEGIN RSA PRIVATE KEY----- - MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r - B8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2 - Zgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4 - 3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG - wfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k - wsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0 - cE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC - 3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St - mu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO - IWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu - y3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/ - zkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU - hxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh - RUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV - QOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv - 8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4= - -----END RSA PRIVATE KEY----- - id: 0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7 - server_key: BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0 - record_type: push_credential properties: id: description: Unique identifier of a push credential example: 0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7 type: string certificate: - description: Apple certificate for sending push notifications - example: | - Bag Attributes - friendlyName: VoIP Services: com.telnyx.webrtcapp - localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA - subject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US - issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority - -----BEGIN CERTIFICATE----- - MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3 - o6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt - hRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ - cakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk - MAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw - PwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j - b20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC - DRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq - dGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF - MIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh - dGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109 - CfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx - cHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ - Y2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0 - YXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk - LLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj - /xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d - BPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg== - -----END CERTIFICATE----- + description: Apple certificate for sending push notifications. For iOS only + example: '-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... + -----END CERTIFICATE-----' type: string private_key: description: Apple private key for a given certificate for sending push - notifications - example: |- - -----BEGIN RSA PRIVATE KEY----- - MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r - B8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2 - Zgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4 - 3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG - wfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k - wsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0 - cE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC - 3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St - mu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO - IWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu - y3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/ - zkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU - hxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh - RUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV - QOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv - 8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4= - -----END RSA PRIVATE KEY----- + notifications. For iOS only + example: '-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... + -----END RSA PRIVATE KEY-----' type: string server_key: - description: Google server key for sending push notifications - example: BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0 + description: Google server key for sending push notifications. For Android + only + example: "" type: string alias: description: Alias to uniquely identify a credential example: LucyCredential type: string + type: + description: Type of mobile push credential. Either ios or + android + example: ios + type: string record_type: example: push_credential readOnly: true @@ -42404,85 +44591,15 @@ components: - private_key - record_type - server_key + - type - updated_at title: Successful response with details about a push credential type: object - PushCredentialResponse: - description: Success response with details about a push credential - example: - data: - updated_at: 2021-03-26T17:51:59.588408Z - certificate: | - Bag Attributes - friendlyName: VoIP Services: com.telnyx.webrtcapp - localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA - subject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US - issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority - -----BEGIN CERTIFICATE----- - MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3 - o6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt - hRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ - cakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk - MAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw - PwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j - b20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC - DRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq - dGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF - MIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh - dGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109 - CfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx - cHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ - Y2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0 - YXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk - LLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj - /xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d - BPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg== - -----END CERTIFICATE----- - alias: LucyCredential - created_at: 2021-03-26T17:51:59.588408Z - private_key: |- - -----BEGIN RSA PRIVATE KEY----- - MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ - DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H - FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM - UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak - qqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u - Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P - 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 - dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 - rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 - vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r - B8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2 - Zgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4 - 3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG - wfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k - wsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0 - cE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC - 3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St - mu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO - IWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu - y3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/ - zkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU - hxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh - RUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV - QOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv - 8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4= - -----END RSA PRIVATE KEY----- - id: 0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7 - server_key: BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0 - record_type: push_credential - properties: - data: - $ref: '#/components/schemas/PushCredential' + Quality: + default: high + description: "The quality of the fax. Can be normal, high, very_high" + example: high + type: string Queue: example: record_type: queue @@ -42524,8 +44641,8 @@ components: example: 50 type: integer average_wait_time_secs: - description: The average time that the calls currently in the queue have - spent waiting, given in seconds. + description: "The average time that the calls currently in the queue have\ + \ spent waiting, given in seconds." example: 175 type: integer required: @@ -42559,10 +44676,10 @@ components: example: queue_call type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call" example: 428c31b6-7af4-4bcb-b68e-5013ef9657c1 type: string call_leg_id: @@ -42591,7 +44708,8 @@ components: example: 2019-01-23T18:10:02.574Z type: string wait_time_secs: - description: The time the call has been waiting in the queue, given in seconds + description: "The time the call has been waiting in the queue, given in\ + \ seconds" example: 272 type: integer queue_position: @@ -42621,6 +44739,32 @@ components: allOf: - $ref: '#/components/schemas/Comment' - $ref: '#/components/schemas/ReadComment_allOf' + Record: + properties: + id: + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + readOnly: true + type: string + record_type: + description: Identifies the type of the resource. + example: sample_record_type + readOnly: true + type: string + created_at: + description: ISO 8601 formatted date-time indicating when the resource was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + updated_at: + description: ISO 8601 formatted date-time indicating when the resource was + updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + type: object RecordType: description: Identifies record type. pattern: custom_storage_credentials @@ -42681,8 +44825,8 @@ components: example: completed type: string channels: - description: When `dual`, final audio file has the first leg on channel - A, and the rest on channel B. + description: "When `dual`, final audio file has the first leg on channel\ + \ A, and the rest on channel B." enum: - single - dual @@ -42696,18 +44840,18 @@ components: example: conference type: string conference_id: - description: If a conference recording, uniquely identifies the recorded - conference + description: "If a conference recording, uniquely identifies the recorded\ + \ conference" example: 3fa85f64-5717-4562-b3fc-2c963f66afa6 type: string call_leg_id: - description: If a call recording, uniquely identifies the recorded call - leg + description: "If a call recording, uniquely identifies the recorded call\ + \ leg" example: 11111111-5717-4562-b3fc-2c963f66afa6 type: string call_session_id: - description: If a call recording, uniquely identifies the recorded call - session + description: "If a call recording, uniquely identifies the recorded call\ + \ session" example: 22222222-5717-4562-b3fc-2c963f66afa6 type: string download_urls: @@ -42866,8 +45010,8 @@ components: properties: token_ttl_secs: default: 600 - description: The time to live in seconds of the Client Token, after that - time the Client Token is invalid and can't be used to join a Room. + description: "The time to live in seconds of the Client Token, after that\ + \ time the Client Token is invalid and can't be used to join a Room." example: 600 maximum: 3600 minimum: 10 @@ -42879,6 +45023,57 @@ components: required: - refresh_token type: object + Region: + example: + code: ashburn-va + updated_at: 2018-02-02T22:25:27.521Z + name: Ashburn + created_at: 2018-02-02T22:25:27.521Z + supported_interfaces: + - wireguard_interface + - wireguard_interface + record_type: region + properties: + record_type: + description: Identifies the type of the resource. + example: region + readOnly: true + type: string + code: + description: A code for the region. + example: ashburn-va + type: string + name: + description: A name for the region. + example: Ashburn + type: string + supported_interfaces: + description: List of interface types supported in this region. + items: + example: wireguard_interface + type: string + type: array + created_at: + description: ISO 8601 formatted date-time indicating when the resource was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + updated_at: + description: ISO 8601 formatted date-time indicating when the resource was + updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + title: Region + type: object + RegionIn: + properties: + region_code: + description: The region the interface should be deployed to. + example: ashburn-va + type: string + type: object RegionInformation: example: region_type: country_code @@ -42895,6 +45090,15 @@ components: region_name: example: US type: string + RegionOut: + properties: + region_code: + description: The region interface is deployed to. + example: ashburn-va + type: string + region: + $ref: '#/components/schemas/RegionOut_region' + type: object RegisterCallRequest: example: to: +18005550100 @@ -42923,8 +45127,8 @@ components: RegulatoryRequirements: example: regulatory_requirements: - - description: Address matching the DID area code (street, building number, - postal code, city and country) + - description: "Address matching the DID area code (street, building number,\ + \ postal code, city and country)" id: 12ade33a-21c0-473b-b055-b3c836e1c292 label: Address matching the DID area code field_type: address_id @@ -42933,9 +45137,9 @@ components: locality_limit: Identical locality as the numbers desired field_type: address record_type: regulatory_requirement - example: 311 W Superior St, Chicago, IL 60654 - - description: Address matching the DID area code (street, building number, - postal code, city and country) + example: "311 W Superior St, Chicago, IL 60654" + - description: "Address matching the DID area code (street, building number,\ + \ postal code, city and country)" id: 12ade33a-21c0-473b-b055-b3c836e1c292 label: Address matching the DID area code field_type: address_id @@ -42944,7 +45148,7 @@ components: locality_limit: Identical locality as the numbers desired field_type: address record_type: regulatory_requirement - example: 311 W Superior St, Chicago, IL 60654 + example: "311 W Superior St, Chicago, IL 60654" phone_number_type: local region_information: - region_name: CH @@ -42964,7 +45168,7 @@ components: type: string region_information: items: - $ref: '#/components/schemas/RegulatoryRequirements_region_information' + $ref: '#/components/schemas/RegulatoryRequirements_region_information_inner' type: array record_type: example: phone_number_regulatory_requirements @@ -42972,7 +45176,7 @@ components: type: string regulatory_requirements: items: - $ref: '#/components/schemas/RegulatoryRequirements_regulatory_requirements' + $ref: '#/components/schemas/RegulatoryRequirements_regulatory_requirements_inner' type: array RejectRequest: example: @@ -43018,8 +45222,8 @@ components: example: link_clicked type: string to: - description: Sending address (+E.164 formatted phone number, alphanumeric - sender ID, or short code). + description: "Sending address (+E.164 formatted phone number, alphanumeric\ + \ sender ID, or short code)." format: address type: string message_id: @@ -43198,16 +45402,16 @@ components: example: true type: boolean webhook_event_url: - description: The URL where webhooks related to this room will be sent. Must - include a scheme, such as 'https'. + description: "The URL where webhooks related to this room will be sent.\ + \ Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this room will be - sent if sending to the primary URL fails. Must include a scheme, such - as 'https'. + description: "The failover URL where webhooks related to this room will\ + \ be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -43330,16 +45534,16 @@ components: of regions. Limited to 2 regions. type: object webhook_event_url: - description: The URL where webhooks related to this room composition will - be sent. Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this room composition will\ + \ be sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this room composition - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this room composition\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -43555,6 +45759,7 @@ components: data_limit: amount: "2048.1" unit: MB + current_imei: "457032284023794" current_mnc: "260" created_at: 2018-02-02T22:25:27.521Z imsi: "081932214823362973" @@ -43562,7 +45767,7 @@ components: accuracy_unit: m latitude: "41.143" accuracy: 1250 - longitude: -8.605 + longitude: "-8.605" record_type: sim_card tags: - personal @@ -43573,6 +45778,11 @@ components: updated_at: 2018-02-02T22:25:27.521Z ipv4: 192.168.0.0 ipv6: 2001:cdba:0000:0000:0000:0000:3257:9652 + live_data_session: connected + authorized_imeis: + - "106516771852751" + - "534051870479563" + - "508821468377961" id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 msisdn: +13109976224 current_mcc: "410" @@ -43580,8 +45790,8 @@ components: amount: "2049.0" unit: MB status: - reason: The SIM card is active, ready to connect to networks and consume - data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled properties: id: @@ -43635,6 +45845,23 @@ components: $ref: '#/components/schemas/SIMCard_data_limit' current_billing_period_consumed_data: $ref: '#/components/schemas/SIMCard_current_billing_period_consumed_data' + authorized_imeis: + description: List of IMEIs authorized to use a given SIM card. + example: + - "106516771852751" + - "534051870479563" + - "508821468377961" + items: + format: int64 + type: string + type: array + current_imei: + description: IMEI of the device where a given SIM card is currently being + used. + example: "457032284023794" + format: int64 + readOnly: true + type: string created_at: description: ISO 8601 formatted date-time indicating when the resource was created. @@ -43648,14 +45875,16 @@ components: readOnly: true type: string ipv4: - description: | - The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections. + description: "The SIM's address in the currently connected network. This\ + \ IPv4 address is usually obtained dynamically, so it may vary according\ + \ to the location or new connections.\n" example: 192.168.0.0 readOnly: true type: string ipv6: - description: | - The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections. + description: "The SIM's address in the currently connected network. This\ + \ IPv6 address is usually obtained dynamically, so it may vary according\ + \ to the location or new connections.\n" example: 2001:cdba:0000:0000:0000:0000:3257:9652 readOnly: true type: string @@ -43675,6 +45904,16 @@ components: example: "410" readOnly: true type: string + live_data_session: + description: Indicates whether the device is actively connected to a network + and able to run data. + enum: + - connected + - disconnected + - unknown + example: connected + readOnly: true + type: string title: SIMCard type: object SIMCardAction: @@ -43683,9 +45922,9 @@ components: example: sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 settings: {} - updated_at: 2020-02-03T22:25:27.521Z + updated_at: 2018-02-02T22:25:27.521Z action_type: enable - created_at: 2020-02-02T22:25:27.521Z + created_at: 2018-02-02T22:25:27.521Z id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: sim_card_action status: @@ -43709,14 +45948,13 @@ components: readOnly: true type: string action_type: - description: |- - The operation type. It can be one of the following:
- + description: "The operation type. It can be one of the following:
\n\ + " enum: - enable - enable_standby_sim_card @@ -43734,17 +45972,77 @@ components: readOnly: true type: object created_at: - description: ISO 8601 formatted date indicating when the resource was created. - example: 2020-02-02T22:25:27.521Z - title: Created At + description: ISO 8601 formatted date-time indicating when the resource was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true type: string updated_at: - description: ISO 8601 formatted date indicating when the resource was updated. - example: 2020-02-03T22:25:27.521Z - title: Updated At + description: ISO 8601 formatted date-time indicating when the resource was + updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true type: string title: SIMCardAction type: object + SIMCardActionsSummary: + example: + count: 0 + status: in-progress + properties: + status: + enum: + - in-progress + - completed + - failed + - interrupted + example: in-progress + type: string + count: + type: integer + type: object + SIMCardDeviceDetails: + example: + model_name: iPad Pro 11 2020 Cellular + imei: "457032284023794" + operating_system: iOS 12 + brand_name: Apple + device_type: Tablet + record_type: device_details + properties: + record_type: + example: device_details + readOnly: true + type: string + imei: + description: IMEI of the device where the SIM card is being used in. + example: "457032284023794" + format: int64 + readOnly: true + type: string + model_name: + description: Brand of the device where the SIM card is being used in. + example: iPad Pro 11 2020 Cellular + readOnly: true + type: string + brand_name: + description: Brand of the device where the SIM card is being used in. + example: Apple + readOnly: true + type: string + device_type: + description: Type of the device where the SIM card is being used in. + example: Tablet + readOnly: true + type: string + operating_system: + description: Operating system of the device where the SIM card is being + used in. + example: iOS 12 + readOnly: true + type: string + title: SIMCardDeviceDetails + type: object SIMCardGroup: example: default: true @@ -44133,7 +46431,6 @@ components: readOnly: true type: string ip: - default: "null" description: The provisioned IP address. This attribute will only be available when underlying resource status is in a "provisioned" status. example: 192.168.0.0 @@ -44246,23 +46543,22 @@ components: type: object SIMCardStatus: example: - reason: The SIM card is active, ready to connect to networks and consume data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled properties: value: - description: | - The current status of the SIM card. It will be one of the following:
- - Transitioning between the enabled and disabled states may take a period of time. + description: "The current status of the SIM card. It will be one of the\ + \ following:
\n\nTransitioning between the enabled\ + \ and disabled states may take a period of time.\n" enum: - registering - enabling @@ -44277,10 +46573,77 @@ components: type: string reason: description: It describes why the SIM card is in the current status. - example: The SIM card is active, ready to connect to networks and consume - data. + example: "The SIM card is active, ready to connect to networks and consume\ + \ data." + readOnly: true + type: string + type: object + SearchedSIMCardGroup: + example: + default: true + data_limit: + amount: "2048.1" + unit: MB + updated_at: 2018-02-02T22:25:27.521Z + sim_card_count: 10 + private_wireless_gateway_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + name: My Test Group + created_at: 2018-02-02T22:25:27.521Z + id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + record_type: sim_card_group + consumed_data: + unit: MB + amount: "2048.1" + properties: + id: + description: Identifies the resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid readOnly: true type: string + record_type: + description: Identifies the type of the resource. + example: sim_card_group + readOnly: true + type: string + default: + description: Indicates whether the SIM card group is the users default group.
The + default group is created for the user and can not be removed. + example: true + readOnly: true + type: boolean + name: + description: A user friendly name for the SIM card group. + example: My Test Group + type: string + data_limit: + $ref: '#/components/schemas/SIMCardGroup_data_limit' + consumed_data: + $ref: '#/components/schemas/ConsumedData' + sim_card_count: + default: 0 + description: The number of SIM cards associated with the group. + example: 10 + type: integer + private_wireless_gateway_id: + description: The identification of the related Private Wireless Gateway + resource. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + created_at: + description: ISO 8601 formatted date-time indicating when the resource was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + updated_at: + description: ISO 8601 formatted date-time indicating when the resource was + updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + title: SIMCardGroup type: object SendDTMFRequest: example: @@ -44290,8 +46653,8 @@ components: command_id: 891510ac-f3e4-11e8-af5b-de00688a4901 properties: digits: - description: 'DTMF digits to send. Valid digits are 0-9, A-D, *, and #. - Pauses can be added using w (0.5s) and W (1s).' + description: "DTMF digits to send. Valid digits are 0-9, A-D, *, and #.\ + \ Pauses can be added using w (0.5s) and W (1s)." example: 1www2WABCDw9 type: string duration_millis: @@ -44318,40 +46681,24 @@ components: SendFaxMultipartRequest: properties: connection_id: - description: The connection ID to send the fax with. - example: "234423" - type: string + $ref: '#/components/schemas/ConnectionId' contents: description: The file you want to upload. The maximum allowed size is 20 - MB. + MB. contents and media_name/media_url can't be submitted together. format: binary type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI. - example: +13127367276 - type: string + $ref: '#/components/schemas/To' from: - description: The phone number, in E.164 format, the fax will be sent from. - example: +13125790015 - type: string + $ref: '#/components/schemas/From' quality: - default: high - description: The quality of the fax. Can be normal, high, very_high. - example: high - type: string + $ref: '#/components/schemas/Quality' t38_enabled: - default: true - description: The flag to disable the T.38 protocol. - type: boolean + $ref: '#/components/schemas/T38Enabled' monochrome: - default: false - description: The flag to enable monochrome, true black and white fax results. - type: boolean + $ref: '#/components/schemas/Monochrome' store_media: - default: false - description: Should fax media be stored on temporary URL. - type: boolean + $ref: '#/components/schemas/StoreMedia' required: - connection_id - contents @@ -44377,28 +46724,27 @@ components: type: string media_url: description: The URL to the PDF used for the fax's media. media_url and - media_name can't be submitted together. + media_name/contents can't be submitted together. example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string media_name: - description: The media_name of a file to be used for the fax's media. The - media_name must point to a file previously uploaded to api.telnyx.com/v2/media - by the same user/organization. media_url and media_name can't be submitted - together. + description: The media_name used for the fax's media. Must point to a file + previously uploaded to api.telnyx.com/v2/media by the same user/organization. + media_name and media_url/contents can't be submitted together. example: my_media_uploaded_to_media_storage_api type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI. + description: "The phone number, in E.164 format, the fax will be sent to\ + \ or SIP URI" example: +13127367276 type: string from: - description: The phone number, in E.164 format, the fax will be sent from. + description: "The phone number, in E.164 format, the fax will be sent from." example: +13125790015 type: string quality: default: high - description: The quality of the fax. Can be normal, high, very_high. + description: "The quality of the fax. Can be normal, high, very_high" example: high type: string t38_enabled: @@ -44407,12 +46753,12 @@ components: type: boolean monochrome: default: false - description: The flag to enable monochrome, true black and white fax results. + description: "The flag to enable monochrome, true black and white fax results." type: boolean store_media: default: false - description: Should fax media be stored on temporary URL. It does not support - media_name, they can't be submitted together. + description: "Should fax media be stored on temporary URL. It does not support\ + \ media_name, they can't be submitted together." type: boolean required: - connection_id @@ -44546,7 +46892,7 @@ components: country_code: description: ISO 3166-1 alpha-2 country code. example: US - pattern: ^[A-Z]{2}$ + pattern: "^[A-Z]{2}$" readOnly: true type: string messaging_profile_id: @@ -44593,7 +46939,7 @@ components: readOnly: true type: string threshold: - $ref: '#/components/schemas/_sim_card_data_usage_notifications_threshold' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_request_threshold' created_at: description: ISO 8601 formatted date-time indicating when the resource was created. @@ -44665,8 +47011,8 @@ components: example: "69" type: string currency: - description: Telnyx account currency used to describe monetary values, including - billing cost + description: "Telnyx account currency used to describe monetary values,\ + \ including billing cost" example: USD type: string data_unit: @@ -44731,8 +47077,8 @@ components: unit: MB record_type: sim_card status: - reason: The SIM card is active, ready to connect to networks and consume - data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled tags: - personal @@ -44881,28 +47227,38 @@ components: title: SIP Header type: object SoundModifications: + description: "Use this field to modify sound effects, for example adjust the\ + \ pitch." example: - name: user-to-user - value: value + pitch: "0.8" + semitone: -2 + octaves: 0.1 + track: both properties: pitch: - description: Set the pitch directly, value should be > 0, default 1 (lower - = lower tone) + description: "Set the pitch directly, value should be > 0, default 1 (lower\ + \ = lower tone)" example: 0.8 format: double type: number semitone: - description: Adjust the pitch in semitones, values should be between -14 - and 14, default 0 + description: "Adjust the pitch in semitones, values should be between -14\ + \ and 14, default 0" example: -10 format: double type: number octaves: - description: Adjust the pitch in octaves, values should be between -1 and - 1, default 0 + description: "Adjust the pitch in octaves, values should be between -1 and\ + \ 1, default 0" example: -0.5 format: double type: number + track: + default: outbound + description: "The track to which the sound modifications will be applied.\ + \ Accepted values are `inbound`, `outbound`, or `both`" + example: both + type: string title: Sound modifications type: object SpeakRequest: @@ -44917,14 +47273,14 @@ components: command_id: 891510ac-f3e4-11e8-af5b-de00688a4901 properties: payload: - description: The text or SSML to be converted into speech. There is a 3,000 - character limit. + description: "The text or SSML to be converted into speech. There is a 3,000\ + \ character limit." example: Say this on the call type: string payload_type: default: text - description: The type of the provided payload. The payload can either be - plain text, or Speech Synthesis Markup Language (SSML). + description: "The type of the provided payload. The payload can either be\ + \ plain text, or Speech Synthesis Markup Language (SSML)." enum: - text - ssml @@ -44932,19 +47288,19 @@ components: type: string service_level: default: premium - description: This parameter impacts speech quality, language options and - payload types. When using `basic`, only the `en-US` language and payload - type `text` are allowed. + description: "This parameter impacts speech quality, language options and\ + \ payload types. When using `basic`, only the `en-US` language and payload\ + \ type `text` are allowed." enum: - basic - premium example: premium type: string stop: - description: When specified, it stops the current audio being played. Specify - `current` to stop the current audio being played, and to play the next - file in the queue. Specify `all` to stop the current audio file being - played and to also clear all audio files from the queue. + description: "When specified, it stops the current audio being played. Specify\ + \ `current` to stop the current audio being played, and to play the next\ + \ file in the queue. Specify `all` to stop the current audio file being\ + \ played and to also clear all audio files from the queue." example: current type: string voice: @@ -45013,32 +47369,32 @@ components: command_id: 891510ac-f3e4-11e8-af5b-de00688a4901 properties: target: - description: The network target, , where the call's - RTP media packets should be forwarded. Both incoming and outgoing media - packets will be delivered to the specified target, and information about - the stream will be included in the encapsulation protocol header, including - the direction (0 = inbound; 1 = outbound), leg (0 = A-leg; 1 = B-leg), - and call_leg_id. + description: "The network target, , where the call's\ + \ RTP media packets should be forwarded. Both incoming and outgoing media\ + \ packets will be delivered to the specified target, and information about\ + \ the stream will be included in the encapsulation protocol header, including\ + \ the direction (0 = inbound; 1 = outbound), leg (0 = A-leg; 1 = B-leg),\ + \ and call_leg_id." example: udp:192.0.2.1:9000 type: string rx: - description: The network target, , where the call's - incoming RTP media packets should be forwarded. + description: "The network target, , where the call's\ + \ incoming RTP media packets should be forwarded." example: udp:192.0.2.1:9000 type: string stream_type: default: raw - description: Optionally specify a media type to stream. If `decrypted` selected, - Telnyx will decrypt incoming SIP media before forking to the target. `rx` - and `tx` are required fields if `decrypted` selected. + description: "Optionally specify a media type to stream. If `decrypted`\ + \ selected, Telnyx will decrypt incoming SIP media before forking to the\ + \ target. `rx` and `tx` are required fields if `decrypted` selected." enum: - raw - decrypted example: decrypted type: string tx: - description: The network target, , where the call's - outgoing RTP media packets should be forwarded. + description: "The network target, , where the call's\ + \ outgoing RTP media packets should be forwarded." example: udp:192.0.2.1:9001 type: string client_state: @@ -45061,6 +47417,7 @@ components: command_id: 891510ac-f3e4-11e8-af5b-de00688a4901 play_beep: true max_length: 0 + timeout_secs: 0 properties: format: description: The audio file format used when storing the call recording. @@ -45071,8 +47428,8 @@ components: example: mp3 type: string channels: - description: When `dual`, final audio file will be stereo recorded with - the first leg on channel A, and the rest on channel B. + description: "When `dual`, final audio file will be stereo recorded with\ + \ the first leg on channel A, and the rest on channel B." enum: - single - dual @@ -45089,13 +47446,23 @@ components: example: 891510ac-f3e4-11e8-af5b-de00688a4901 type: string play_beep: - description: If enabled, a beep sound will be played at the start of a recording. + description: "If enabled, a beep sound will be played at the start of a\ + \ recording." example: true type: boolean max_length: default: 0 - description: Defines the maximum length for the recording in seconds. Minimum - value is 0. Maximum value is 14400. Default is 0 (infinite) + description: Defines the maximum length for the recording in seconds. The + minimum value is 0. The maximum value is 14400. The default value is 0 + (infinite) + example: 100 + format: int32 + type: integer + timeout_secs: + default: 0 + description: The number of seconds that Telnyx will wait for the recording + to be stopped if silence is detected. The timer only starts when the speech + is detected. The minimum value is 0. The default value is 0 (infinite) example: 100 format: int32 type: integer @@ -45110,6 +47477,10 @@ components: stream_track: both_tracks client_state: aGF2ZSBhIG5pY2UgZGF5ID1d command_id: 891510ac-f3e4-11e8-af5b-de00688a4901 + enable_dialogflow: false + dialogflow_config: + analyze_sentiment: false + partial_automated_agent_reply: false properties: stream_url: description: The destination WebSocket address where the stream is going @@ -45135,6 +47506,14 @@ components: any command with the same `command_id` for the same `call_control_id`. example: 891510ac-f3e4-11e8-af5b-de00688a4901 type: string + enable_dialogflow: + default: false + description: Enables Dialogflow for the current call. The default value + is false. + example: true + type: boolean + dialogflow_config: + $ref: '#/components/schemas/DialogflowConfig' title: Start Streaming Request type: object StopForkingRequest: @@ -45214,6 +47593,16 @@ components: type: string title: Stop Streaming Request type: object + StoreMedia: + default: false + description: "Should fax media be stored on temporary URL. It does not support\ + \ media_name, they can't be submitted together." + type: boolean + StoredMedia: + default: false + description: "Should fax media be stored on temporary URL. It does not support\ + \ media_name, they can't be submitted together." + type: boolean SubNumberOrder: example: country_code: US @@ -45289,8 +47678,8 @@ components: readOnly: true type: string requirements_met: - description: True if all requirements are met for every phone number, false - otherwise. + description: "True if all requirements are met for every phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -45318,6 +47707,10 @@ components: example: address readOnly: true type: string + T38Enabled: + default: true + description: The flag to disable the T.38 protocol. + type: boolean TelephonyCredential: example: id: c215ade3-0d39-418e-94be-c5f780760199 @@ -45437,20 +47830,7 @@ components: $ref: '#/components/schemas/Language' components: items: - properties: - type: - description: Describes the component type. - enum: - - header - - body - - footer - type: string - parameters: - $ref: '#/components/schemas/TemplateParameters' - required: - - type - title: Template Components - type: object + $ref: '#/components/schemas/Template_Components' title: Template Components type: array required: @@ -45459,54 +47839,90 @@ components: - namespace title: Template type: object + TemplateButtonComponent: + properties: + type: + allOf: + - $ref: '#/components/schemas/ButtonComponentType' + description: Describes the component type. + sub_type: + allOf: + - $ref: '#/components/schemas/ButtonSubtype' + description: Used when type is set to button. + index: + description: Position index of the button. You can have up to 3 buttons + using index values of 0-2. + title: Index + type: integer + parameters: + allOf: + - $ref: '#/components/schemas/TemplateButtonParameters' + description: "The parameters for the button, which are set at creation time\ + \ in your Business Manager." + title: Parameters + required: + - index + - parameters + - sub_type + - type + title: TemplateButtonComponent + type: object + TemplateButtonParameter: + properties: + type: + allOf: + - $ref: '#/components/schemas/ButtonParameterType' + description: Indicates the type of parameter for the button. + payload: + description: Required for quick_reply buttons. Developer-defined payload + that will be returned when the button is clicked in addition to the display + text on the button. + title: Payload + type: string + text: + description: Required for url buttons. Developer provided suffix that will + be appended to a previously created dynamic URL button. + title: Text + type: string + required: + - type + title: TemplateButtonParameter + type: object + TemplateButtonParameters: + items: + $ref: '#/components/schemas/TemplateButtonParameter' + title: TemplateButtonParameters + type: array + TemplateComponent: + properties: + type: + allOf: + - $ref: '#/components/schemas/TemplateComponentType' + description: Describes the component type. + parameters: + items: + $ref: '#/components/schemas/Template_Parameters' + title: Template Component Parameters + type: array + required: + - type + title: TemplateComponent + type: object + TemplateComponentType: + description: An enumeration. + enum: + - header + - body + title: TemplateComponentType + type: string TemplateComponents: items: - properties: - type: - description: Describes the component type. - enum: - - header - - body - - footer - type: string - parameters: - $ref: '#/components/schemas/TemplateParameters' - required: - - type - title: Template Components - type: object + $ref: '#/components/schemas/Template_Components' title: Template Components type: array TemplateParameters: items: - description: Array containing the content of the message. - properties: - type: - description: Describes the parameter type. - enum: - - text - - currency - - date_time - - image - - document - - video - type: string - text: - type: string - currency: - $ref: '#/components/schemas/Currency' - date_time: - $ref: '#/components/schemas/DateTimeObject' - image: - $ref: '#/components/schemas/Image' - document: - $ref: '#/components/schemas/Document' - video: - $ref: '#/components/schemas/Video' - required: - - type - title: Template Parameters - type: object + $ref: '#/components/schemas/Template_Parameters' title: Template Component Parameters type: array TexmlApplication: @@ -45515,7 +47931,7 @@ components: record_type: texml_application active: false friendly_name: call-router - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" dtmf_type: Inband first_command_timeout: true first_command_timeout_secs: 10 @@ -45579,7 +47995,6 @@ components: format: url type: string voice_fallback_url: - default: "null" description: URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. example: https://fallback.example.com @@ -45595,7 +48010,6 @@ components: example: get type: string status_callback: - default: "null" description: URL for Telnyx to send requests to containing information about call progress events. example: https://example.com @@ -45615,14 +48029,16 @@ components: outbound: $ref: '#/components/schemas/CreateTexmlApplicationRequest_outbound' created_at: - description: ISO 8601 formatted date indicating when the resource was created. - example: 2020-02-02T22:25:27.521Z - title: Created At + description: ISO 8601 formatted date-time indicating when the resource was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true type: string updated_at: - description: ISO 8601 formatted date indicating when the resource was updated. - example: 2020-02-03T22:25:27.521Z - title: Updated At + description: ISO 8601 formatted date-time indicating when the resource was + updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true type: string title: Texml Application type: object @@ -45636,6 +48052,11 @@ components: - body title: Text type: object + To: + description: "The phone number, in E.164 format, the fax will be sent to or\ + \ SIP URI" + example: +13127367276 + type: string ToNumber: description: Receiving address (+E.164 formatted phone number or short code). example: +E.164 @@ -45734,8 +48155,8 @@ components: type: string interim_results: default: false - description: Whether to send also interim results. If set to false, only - final results will be sent. + description: "Whether to send also interim results. If set to false, only\ + \ final results will be sent." example: true type: boolean client_state: @@ -45743,6 +48164,13 @@ components: must be a valid Base-64 encoded string. example: aGF2ZSBhIG5pY2UgZGF5ID1d type: string + transcription_tracks: + default: inbound + description: "Indicates which leg of the call will be transcribed. Use `inbound`\ + \ for the leg that requested the transcription, `outbound` for the other\ + \ leg, and `both` for both legs of the call. Will default to `inbound`." + example: both + type: string command_id: description: Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. @@ -45815,11 +48243,11 @@ components: example: +18005550101 type: string from_display_name: - description: The `from_display_name` string to be used as the caller id - name (SIP From Display Name) presented to the destination (`to` number). - The string should have a maximum of 128 characters, containing only letters, - numbers, spaces, and -_~!.+ special characters. If ommited, the display - name will be the same as the number in the `from` field. + description: "The `from_display_name` string to be used as the caller id\ + \ name (SIP From Display Name) presented to the destination (`to` number).\ + \ The string should have a maximum of 128 characters, containing only\ + \ letters, numbers, spaces, and -_~!.+ special characters. If ommited,\ + \ the display name will be the same as the number in the `from` field." example: Company Name type: string audio_url: @@ -45837,35 +48265,36 @@ components: type: string timeout_secs: default: 30 - description: The number of seconds that Telnyx will wait for the call to - be answered by the destination to which it is being transferred. If the - timeout is reached before an answer is received, the call will hangup - and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be - sent. Minimum value is 5 seconds. Maximum value is 120 seconds. + description: "The number of seconds that Telnyx will wait for the call to\ + \ be answered by the destination to which it is being transferred. If\ + \ the timeout is reached before an answer is received, the call will hangup\ + \ and a `call.hangup` webhook with a `hangup_cause` of `timeout` will\ + \ be sent. Minimum value is 5 seconds. Maximum value is 120 seconds." example: 60 format: int32 type: integer time_limit_secs: default: 14400 - description: Sets the maximum duration of a Call Control Leg in seconds. - If the time limit is reached, the call will hangup and a `call.hangup` - webhook with a `hangup_cause` of `time_limit` will be sent. For example, - by setting a time limit of 120 seconds, a Call Leg will be automatically - terminated two minutes after being answered. The default time limit is - 14400 seconds or 4 hours and this is also the maximum allowed call length. + description: "Sets the maximum duration of a Call Control Leg in seconds.\ + \ If the time limit is reached, the call will hangup and a `call.hangup`\ + \ webhook with a `hangup_cause` of `time_limit` will be sent. For example,\ + \ by setting a time limit of 120 seconds, a Call Leg will be automatically\ + \ terminated two minutes after being answered. The default time limit\ + \ is 14400 seconds or 4 hours and this is also the maximum allowed call\ + \ length." example: 600 format: int32 type: integer answering_machine_detection: default: disabled - description: Enables Answering Machine Detection. When a call is answered, - Telnyx runs real-time detection to determine if it was picked up by a - human or a machine and sends an `call.machine.detection.ended` webhook - with the analysis result. If 'greeting_end' or 'detect_words' is used - and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' - webhook when the answering machine greeting ends with a beep or silence. - If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' - if a beep is detected. + description: "Enables Answering Machine Detection. When a call is answered,\ + \ Telnyx runs real-time detection to determine if it was picked up by\ + \ a human or a machine and sends an `call.machine.detection.ended` webhook\ + \ with the analysis result. If 'greeting_end' or 'detect_words' is used\ + \ and a 'machine' is detected, you will receive another 'call.machine.greeting.ended'\ + \ webhook when the answering machine greeting ends with a beep or silence.\ + \ If `detect_beep` is used, you will only receive 'call.machine.greeting.ended'\ + \ if a beep is detected." enum: - detect - detect_beep @@ -45917,6 +48346,8 @@ components: items: $ref: '#/components/schemas/SipHeader' type: array + sound_modifications: + $ref: '#/components/schemas/SoundModifications' webhook_url: description: Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call. @@ -45962,9 +48393,9 @@ components: example: Okta type: string short_name: - description: The short name associated with the authentication provider. - This must be unique and URL-friendly, as it's going to be part of the - login URL. + description: "The short name associated with the authentication provider.\ + \ This must be unique and URL-friendly, as it's going to be part of the\ + \ login URL." example: myorg type: string active: @@ -45975,9 +48406,9 @@ components: settings: $ref: '#/components/schemas/settings' settings_url: - description: The URL for the identity provider metadata file to populate - the settings automatically. If the settings attribute is provided, that - will be used instead. + description: "The URL for the identity provider metadata file to populate\ + \ the settings automatically. If the settings attribute is provided, that\ + \ will be used instead." example: https://myorg.myidp.com/saml/metadata type: string title: Update Authentication Provider Request @@ -46014,8 +48445,8 @@ components: example: call-router type: string webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string @@ -46029,10 +48460,10 @@ components: Latency directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. enum: - '"Latency"' - - '"Chicago, IL"' - - '"Ashburn, VA"' - - '"San Jose, CA"' - example: '"Amsterdam, Netherlands"' + - "\"Chicago, IL\"" + - "\"Ashburn, VA\"" + - "\"San Jose, CA\"" + example: "\"Amsterdam, Netherlands\"" type: string dtmf_type: default: RFC 2833 @@ -46062,8 +48493,8 @@ components: $ref: '#/components/schemas/CallControlApplicationOutbound' webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -46071,9 +48502,9 @@ components: type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -46090,6 +48521,70 @@ components: - webhook_event_url title: Update Call Control Application Request type: object + UpdateCallRequest: + example: + Status: completed + properties: + Status: + description: The value to set the call status to. Setting the status to + completed ends the call. + example: completed + type: string + Url: + description: The URL where TeXML will make a request to retrieve a new set + of TeXML instructions to continue the call flow. + example: https://www.example.com/intruction-b.xml + type: string + Method: + description: HTTP request type used for `Url`. + enum: + - GET + - POST + example: GET + type: string + FallbackUrl: + description: A failover URL for which Telnyx will retrieve the TeXML call + instructions if the Url is not responding. + example: https://www.example.com/intruction-c.xml + type: string + FallbackMethod: + description: HTTP request type used for `FallbackUrl`. + enum: + - GET + - POST + example: GET + type: string + StatusCallback: + description: URL destination for Telnyx to send status callback events to + for the call. + example: https://www.example.com/callback + type: string + StatusCallbackMethod: + description: HTTP request type used for `StatusCallback`. + enum: + - GET + - POST + example: GET + type: string + Texml: + description: TeXml to replace the current one with. + example: Hello + type: string + title: Update Call Request + type: object + UpdateCommandResult: + example: + sid: c46e06d7-b78f-4b13-96b6-c576af9640ff + status: accepted + properties: + sid: + example: c46e06d7-b78f-4b13-96b6-c576af9640ff + type: string + status: + example: accepted + type: string + title: TeXml REST Update Command Result + type: object UpdateConferenceRequest: example: call_control_id: v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ @@ -46124,9 +48619,9 @@ components: example: whisper type: string whisper_call_control_ids: - description: Array of unique call_control_ids the supervisor can whisper - to. If none provided, the supervisor will join the conference as a monitoring - participant only. + description: "Array of unique call_control_ids the supervisor can whisper\ + \ to. If none provided, the supervisor will join the conference as a monitoring\ + \ participant only." example: - v2:Sg1xxxQ_U3ixxxyXT_VDNI3xxxazZdg6Vxxxs4-GNYxxxVaJPOhFMRQ - v2:qqpb0mmvd-ovhhBr0BUQQn0fld5jIboaaX3-De0DkqXHzbf8d75xkw @@ -46214,9 +48709,9 @@ components: type: string default_on_hold_comfort_noise_enabled: default: false - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." type: boolean dtmf_type: $ref: '#/components/schemas/DtmfType' @@ -46229,30 +48724,30 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer the sender and receiver negotiating - T38 directly if both are on the Telnyx network. If this is disabled, Telnyx - will be able to use T38 on just one leg of the call depending on each - leg's settings. + description: "Enable on-net T38 if you prefer the sender and receiver negotiating\ + \ T38 directly if both are on the Telnyx network. If this is disabled,\ + \ Telnyx will be able to use T38 on just one leg of the call depending\ + \ on each leg's settings." type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -46277,7 +48772,7 @@ components: example: application_name: fax-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" webhook_event_url: https://example.com webhook_event_failover_url: https://failover.example.com webhook_timeout_secs: 25 @@ -46303,17 +48798,17 @@ components: anchorsite_override: $ref: '#/components/schemas/AnchorsiteOverride' webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url title: Webhook Event URL type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true @@ -46328,7 +48823,6 @@ components: title: Webhook Timeout Secs type: integer fax_email_recipient: - default: "null" description: Specifies an email address where faxes sent to this application will be forwarded to (as pdf or tiff attachments) example: user@example.com @@ -46393,9 +48887,9 @@ components: $ref: '#/components/schemas/FqdnConnectionTransportProtocol' default_on_hold_comfort_noise_enabled: default: true - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." type: boolean dtmf_type: $ref: '#/components/schemas/DtmfType' @@ -46408,30 +48902,30 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer that the sender and receiver - negotiate T38 directly when both are on the Telnyx network. If this is - disabled, Telnyx will be able to use T38 on just one leg of the call according - to each leg's settings. + description: "Enable on-net T38 if you prefer that the sender and receiver\ + \ negotiate T38 directly when both are on the Telnyx network. If this\ + \ is disabled, Telnyx will be able to use T38 on just one leg of the call\ + \ according to each leg's settings." type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -46470,10 +48964,10 @@ components: nullable: true type: integer dns_record_type: - description: The DNS record type for the FQDN. For cases where a port is - not set, the DNS record type must be 'srv'. For cases where a port is - set, the DNS record type must be 'a'. If the DNS record type is 'a' and - a port is not specified, 5060 will be used. + description: "The DNS record type for the FQDN. For cases where a port is\ + \ not set, the DNS record type must be 'srv'. For cases where a port is\ + \ set, the DNS record type must be 'a'. If the DNS record type is 'a'\ + \ and a port is not specified, 5060 will be used." example: a type: string title: Update FQDN Request @@ -46539,8 +49033,8 @@ components: type: string transport_protocol: default: UDP - description: One of UDP, TLS, or TCP. Applies only to connections with IP - authentication or FQDN authentication. + description: "One of UDP, TLS, or TCP. Applies only to connections with\ + \ IP authentication or FQDN authentication." enum: - UDP - TCP @@ -46548,9 +49042,9 @@ components: type: string default_on_hold_comfort_noise_enabled: default: true - description: When enabled, Telnyx will generate comfort noise when you place - the call on hold. If disabled, you will need to generate comfort noise - or on hold music to avoid RTP timeout. + description: "When enabled, Telnyx will generate comfort noise when you\ + \ place the call on hold. If disabled, you will need to generate comfort\ + \ noise or on hold music to avoid RTP timeout." type: boolean dtmf_type: $ref: '#/components/schemas/DtmfType' @@ -46563,30 +49057,30 @@ components: $ref: '#/components/schemas/EncryptedMedia' onnet_t38_passthrough_enabled: default: false - description: Enable on-net T38 if you prefer the sender and receiver negotiating - T38 directly if both are on the Telnyx network. If this is disabled, Telnyx - will be able to use T38 on just one leg of the call depending on each - leg's settings. + description: "Enable on-net T38 if you prefer the sender and receiver negotiating\ + \ T38 directly if both are on the Telnyx network. If this is disabled,\ + \ Telnyx will be able to use T38 on just one leg of the call depending\ + \ on each leg's settings." type: boolean webhook_event_url: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be\ + \ sent. Must include a scheme, such as 'https'." example: https://example.com format: url type: string webhook_event_failover_url: default: "" - description: The failover URL where webhooks related to this connection - will be sent if sending to the primary URL fails. Must include a scheme, - such as 'https'. + description: "The failover URL where webhooks related to this connection\ + \ will be sent if sending to the primary URL fails. Must include a scheme,\ + \ such as 'https'." example: https://failover.example.com format: url nullable: true type: string webhook_api_version: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 - or v2. + description: "Determines which webhook format will be used, Telnyx API v1\ + \ or v2." enum: - "1" - "2" @@ -46633,11 +49127,11 @@ components: managed_account_allow_custom_pricing: true properties: managed_account_allow_custom_pricing: - description: Boolean value that indicates if the managed account is able - to have custom pricing set for it or not. If false, uses the pricing of - the manager account. Defaults to false. This value may be changed, but - there may be time lag between when the value is changed and pricing changes - take effect. + description: "Boolean value that indicates if the managed account is able\ + \ to have custom pricing set for it or not. If false, uses the pricing\ + \ of the manager account. Defaults to false. This value may be changed,\ + \ but there may be time lag between when the value is changed and pricing\ + \ changes take effect." example: false type: boolean title: Update Managed Account Request @@ -46652,9 +49146,9 @@ components: format: binary type: string ttl_secs: - description: The number of seconds after which the media resource will be - deleted, defaults to 2 days. The maximum allowed vale is 630720000, which - translates to 20 years. + description: "The number of seconds after which the media resource will\ + \ be deleted, defaults to 2 days. The maximum allowed vale is 630720000,\ + \ which translates to 20 years." example: 86400 type: integer title: Upload media multipart request @@ -46670,9 +49164,9 @@ components: example: http://www.example.com/audio.mp3 type: string ttl_secs: - description: The number of seconds after which the media resource will be - deleted, defaults to 2 days. The maximum allowed vale is 630720000, which - translates to 20 years. + description: "The number of seconds after which the media resource will\ + \ be deleted, defaults to 2 days. The maximum allowed vale is 630720000,\ + \ which translates to 20 years." example: 86400 type: integer title: Upload media request @@ -46729,21 +49223,21 @@ components: nullable: true type: string webhook_api_version: - description: Determines which webhook format will be used, Telnyx API v1, - v2, or a legacy 2010-04-01 format. + description: "Determines which webhook format will be used, Telnyx API v1,\ + \ v2, or a legacy 2010-04-01 format." enum: - "1" - "2" - 2010-04-01 type: string whitelisted_destinations: - description: Destinations to which the messaging profile is allowed to send. - If set to `null`, all destinations will be allowed. Setting a value of - `["*"]` has the equivalent effect. The elements in the list must be valid - ISO 3166-1 alpha-2 country codes. + description: "Destinations to which the messaging profile is allowed to\ + \ send. If set to `null`, all destinations will be allowed. Setting a\ + \ value of `[\"*\"]` has the equivalent effect. The elements in the list\ + \ must be valid ISO 3166-1 alpha-2 country codes." items: description: ISO 3166-1 alpha-2 country code. - pattern: ^[A-Z]{2}$ + pattern: "^[A-Z]{2}$" type: string nullable: true type: array @@ -46890,8 +49384,8 @@ components: readOnly: true type: string requirements_met: - description: True if all requirements are met for every phone number, false - otherwise. + description: "True if all requirements are met for every phone number, false\ + \ otherwise." example: true readOnly: true type: boolean @@ -46962,9 +49456,9 @@ components: when making outbound calls. type: number daily_spend_limit: - description: The maximum amount of usage charges, in USD, you want Telnyx - to allow on this outbound voice profile in a day before disallowing new - calls. + description: "The maximum amount of usage charges, in USD, you want Telnyx\ + \ to allow on this outbound voice profile in a day before disallowing\ + \ new calls." example: "100.00" type: string daily_spend_limit_enabled: @@ -47021,10 +49515,10 @@ components: type: string type: array external_pin: - description: If someone attempts to port your phone number away from Telnyx - and your phone number has an external PIN set, we will attempt to verify - that you provided the correct external PIN to the winning carrier. Note - that not all carriers cooperate with this security mechanism. + description: "If someone attempts to port your phone number away from Telnyx\ + \ and your phone number has an external PIN set, we will attempt to verify\ + \ that you provided the correct external PIN to the winning carrier. Note\ + \ that not all carriers cooperate with this security mechanism." type: string customer_reference: description: A customer reference string for customer look ups. @@ -47075,10 +49569,10 @@ components: description: Controls whether a tech prefix is enabled for this phone number. type: boolean translated_number: - description: This field allows you to rewrite the destination number of - an inbound call before the call is routed to you. The value of this field - may be any alphanumeric value, and the value will replace the number originally - dialed. + description: "This field allows you to rewrite the destination number of\ + \ an inbound call before the call is routed to you. The value of this\ + \ field may be any alphanumeric value, and the value will replace the\ + \ number originally dialed." type: string call_forwarding: $ref: '#/components/schemas/CallForwarding' @@ -47194,8 +49688,8 @@ components: format: uuid type: string field_value: - description: The value of the requirement, this could be an id to a resource - or a string value. + description: "The value of the requirement, this could be an id to a resource\ + \ or a string value." example: 45f45a04-b4be-4592-95b1-9306b9db2b21 type: string UpdateShortCodeRequest: @@ -47224,7 +49718,7 @@ components: example: friendly_name: call-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" dtmf_type: Inband first_command_timeout: true first_command_timeout_secs: 10 @@ -47276,7 +49770,6 @@ components: format: url type: string voice_fallback_url: - default: "null" description: URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. example: https://fallback.example.com @@ -47292,7 +49785,6 @@ components: example: get type: string status_callback: - default: "null" description: URL for Telnyx to send requests to containing information about call progress events. example: https://example.com @@ -47338,15 +49830,15 @@ components: UpdateVerifyProfileCallRequest: properties: speech_template: - description: Optionally sets a speech text template when sending the verification - code. Uses `{code}` to template in the actual verification code. - example: 'Hello, this is the Acme Inc verification code you requested: {code}.' + description: "Optionally sets a speech text template when sending the verification\ + \ code. Uses `{code}` to template in the actual verification code." + example: "Hello, this is the Acme Inc verification code you requested: {code}." type: string default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer default_call_timeout_secs: @@ -47359,10 +49851,10 @@ components: UpdateVerifyProfileFlashcallRequest: properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer title: UpdateVerifyProfileFlashcallRequest @@ -47370,10 +49862,10 @@ components: UpdateVerifyProfilePSD2Request: properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer title: UpdateVerifyProfilePSD2Request @@ -47389,16 +49881,16 @@ components: example: true type: boolean messaging_template: - description: Optionally sets a messaging text template when sending the - verification code. Uses `{code}` to template in the actual verification - code. - example: 'Hello, this is the Acme Inc verification code you requested: {code}.' + description: "Optionally sets a messaging text template when sending the\ + \ verification code. Uses `{code}` to template in the actual verification\ + \ code." + example: "Hello, this is the Acme Inc verification code you requested: {code}." type: string default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer vsms_enabled: @@ -47410,10 +49902,10 @@ components: UpdateVerifyProfileWhatsappRequest: properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer app_name: @@ -47450,11 +49942,14 @@ components: title: UpdateWhatsappPhoneNumberRequest type: object UpdatedAt: - description: ISO 8601 formatted date indicating when the resource was updated. - example: 2020-02-03T22:25:27.521Z - title: Updated At + description: ISO 8601 formatted date-time indicating when the resource was updated. + example: 2018-02-02T22:25:27.521Z + readOnly: true type: string UplinkData: + example: + amount: 1 + unit: MB properties: amount: description: Uplink data @@ -47485,6 +49980,7 @@ components: type: string type: object UploadMedia: + description: "" example: record_type: whatsapp_media_id id: f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68 @@ -47511,9 +50007,9 @@ components: format: binary type: string ttl_secs: - description: The number of seconds after which the media resource will be - deleted, defaults to 2 days. The maximum allowed vale is 630720000, which - translates to 20 years. + description: "The number of seconds after which the media resource will\ + \ be deleted, defaults to 2 days. The maximum allowed vale is 630720000,\ + \ which translates to 20 years." example: 86400 type: integer media_name: @@ -47536,9 +50032,9 @@ components: example: http://www.example.com/audio.mp3 type: string ttl_secs: - description: The number of seconds after which the media resource will be - deleted, defaults to 2 days. The maximum allowed vale is 630720000, which - translates to 20 years. + description: "The number of seconds after which the media resource will\ + \ be deleted, defaults to 2 days. The maximum allowed vale is 630720000,\ + \ which translates to 20 years." example: 86400 type: integer media_name: @@ -47562,7 +50058,7 @@ components: title: UploadWhatsappProfilePhotoRequest type: object Url: - description: 'Standard Values: HOME, WORK' + description: "Standard Values: HOME, WORK" example: url: https://www.facebook.com type: WORK @@ -47571,19 +50067,17 @@ components: description: URL type: string type: - description: 'Standard Values: HOME, WORK' + description: "Standard Values: HOME, WORK" type: string title: Root Type for Url type: object UrlShortenerSettings: - description: | - The URL shortener feature allows automatic replacement of URLs that were generated using - a public URL shortener service. Some examples include bit.do, bit.ly, goo.gl, ht.ly, - is.gd, ow.ly, rebrand.ly, t.co, tiny.cc, and tinyurl.com. Such URLs are replaced with - with links generated by Telnyx. The use of custom links can improve branding and message - deliverability. - - To disable this feature, set the object field to `null`. + description: "The URL shortener feature allows automatic replacement of URLs\ + \ that were generated using\na public URL shortener service. Some examples\ + \ include bit.do, bit.ly, goo.gl, ht.ly,\nis.gd, ow.ly, rebrand.ly, t.co,\ + \ tiny.cc, and tinyurl.com. Such URLs are replaced with\nwith links generated\ + \ by Telnyx. The use of custom links can improve branding and message\ndeliverability.\n\ + \nTo disable this feature, set the object field to `null`.\n" example: domain: example.ex prefix: "" @@ -47597,8 +50091,8 @@ components: example: acct.fyi type: string prefix: - description: | - Optional prefix that can be used to identify your brand, and will appear in the Telnyx generated URLs after the domain name. + description: "Optional prefix that can be used to identify your brand, and\ + \ will appear in the Telnyx generated URLs after the domain name.\n" example: "" type: string replace_blacklist_only: @@ -47657,136 +50151,10 @@ components: format: iso4217 type: string type: object - ValidateAddress: - example: - extended_address: '#504' - street_address: 311 W Superior Street - country_code: US - locality: Chicago - administrative_area: IL - postal_code: "60654" - properties: - street_address: - description: The primary street address information about the address. - example: 311 W Superior Street - type: string - extended_address: - description: Additional street address information about the address such - as, but not limited to, unit number or apartment number. - example: '#504' - type: string - locality: - description: The locality of the address. For US addresses, this corresponds - to the city of the address. - example: Chicago - type: string - administrative_area: - description: The locality of the address. For US addresses, this corresponds - to the state of the address. - example: IL - type: string - postal_code: - description: The postal code of the address. - example: "60654" - type: string - country_code: - description: The two-character (ISO 3166-1 alpha-2) country code of the - address. - example: US - type: string - title: ValidateAddress - type: object - ValidateAddressRequest: - example: - extended_address: '#504' - street_address: 311 W Superior Street - country_code: US - locality: Chicago - administrative_area: IL - postal_code: "60654" - properties: - street_address: - description: The primary street address information about the address. - example: 311 W Superior Street - type: string - extended_address: - description: Additional street address information about the address such - as, but not limited to, unit number or apartment number. - example: '#504' - type: string - locality: - description: The locality of the address. For US addresses, this corresponds - to the city of the address. - example: Chicago - type: string - administrative_area: - description: The locality of the address. For US addresses, this corresponds - to the state of the address. - example: IL - type: string - postal_code: - description: The postal code of the address. - example: "60654" - type: string - country_code: - description: The two-character (ISO 3166-1 alpha-2) country code of the - address. - example: US - type: string - required: - - country_code - - postal_code - - street_address - type: object - ValidateAddressResult: - example: - result: valid - suggested: - extended_address: '#504' - street_address: 311 W Superior Street - country_code: US - locality: Chicago - administrative_area: IL - postal_code: "60654" - record_type: address_validation - errors: - - code: code - meta: '{}' - detail: detail - source: - pointer: pointer - parameter: parameter - title: title - - code: code - meta: '{}' - detail: detail - source: - pointer: pointer - parameter: parameter - title: title - properties: - result: - description: Indicates whether an address is valid or invalid. - enum: - - valid - - invalid - example: valid - type: string - suggested: - $ref: '#/components/schemas/ValidateAddress' - record_type: - description: Identifies the type of the resource. - example: address_validation - type: string - errors: - items: - $ref: '#/components/schemas/Error' - type: array - required: - - result - - suggested - title: Validate address action result - type: object + UserId: + description: Identifier of the user to whom the fax belongs + format: uuid + type: string Verification: example: verify_profile_id: 12ade33a-21c0-473b-b055-b3c836e1c292 @@ -47818,16 +50186,16 @@ components: format: uuid type: string timeout_secs: - description: 'This is the number of seconds before the code of the request - is expired. Once this request has expired, the code will no longer verify - the user. Note: this will override the `default_verification_timeout_secs` - on the Verify profile.' + description: "This is the number of seconds before the code of the request\ + \ is expired. Once this request has expired, the code will no longer verify\ + \ the user. Note: this will override the `default_verification_timeout_secs`\ + \ on the Verify profile." example: 300 type: integer call_timeout_secs: - description: 'This is the number of seconds before the call ends, if the - verification makes a call. Note: this will override the `default_call_timeout_secs` - on the Verify profile.' + description: "This is the number of seconds before the call ends, if the\ + \ verification makes a call. Note: this will override the `default_call_timeout_secs`\ + \ on the Verify profile." example: 299 type: integer status: @@ -47943,11 +50311,11 @@ components: $ref: '#/components/schemas/VerifiedCallsDisplayProfile_business_identity' phone_numbers: items: - $ref: '#/components/schemas/VerifiedCallsDisplayProfile_phone_numbers' + $ref: '#/components/schemas/VerifiedCallsDisplayProfile_phone_numbers_inner' type: array call_reasons: items: - $ref: '#/components/schemas/VerifiedCallsDisplayProfile_call_reasons' + $ref: '#/components/schemas/VerifiedCallsDisplayProfile_call_reasons_inner' type: array created_at: description: An ISO 8601 datetime string for when the display profile was @@ -47986,16 +50354,11 @@ components: example: +13124515883 type: string verify_channel_type: - description: | - Depending on the type of verification, the `verify_channel_id` - points to one of the following channel ids; - --- - verify_channel_type | verify_channel_id - ------------------- | ----------------- - sms, psd2 | messaging_id - call, flashcall | call_control_id - whatsapp | messaging_whatsapp_id - --- + description: "Depending on the type of verification, the `verify_channel_id`\n\ + points to one of the following channel ids;\n---\nverify_channel_type\ + \ | verify_channel_id\n------------------- | -----------------\nsms, psd2\ + \ | messaging_id\ncall, flashcall | call_control_id\nwhatsapp\ + \ | messaging_whatsapp_id\n---\n" enum: - sms - psd2 @@ -48029,8 +50392,8 @@ components: example: "0.002" type: string currency: - description: Telnyx account currency used to describe monetary values, including - billing costs + description: "Telnyx account currency used to describe monetary values,\ + \ including billing costs" example: USD type: string record_type: @@ -48042,21 +50405,21 @@ components: type: object VerifyProfileCallResponse: example: - speech_template: 'Hello, this is the Acme Inc verification code you requested: - {code}.' + speech_template: "Hello, this is the Acme Inc verification code you requested:\ + \ {code}." default_call_timeout_secs: 30 default_verification_timeout_secs: 300 properties: speech_template: - description: Optionally sets a speech text template when sending the verification - code. Uses `{code}` to template in the actual verification code. - example: 'Hello, this is the Acme Inc verification code you requested: {code}.' + description: "Optionally sets a speech text template when sending the verification\ + \ code. Uses `{code}` to template in the actual verification code." + example: "Hello, this is the Acme Inc verification code you requested: {code}." type: string default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer default_call_timeout_secs: @@ -48071,10 +50434,10 @@ components: default_verification_timeout_secs: 300 properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer title: VerifyProfileFlashcallResponse @@ -48084,10 +50447,10 @@ components: default_verification_timeout_secs: 300 properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer title: VerifyProfilePSD2Response @@ -48106,8 +50469,8 @@ components: language: en-US record_type: verification_profile call: - speech_template: 'Hello, this is the Acme Inc verification code you requested: - {code}.' + speech_template: "Hello, this is the Acme Inc verification code you requested:\ + \ {code}." default_call_timeout_secs: 30 default_verification_timeout_secs: 300 updated_at: 2020-09-14T17:03:32.965812 @@ -48116,8 +50479,8 @@ components: sms: messaging_enabled: true vsms_enabled: true - messaging_template: 'Hello, this is the Acme Inc verification code you requested: - {code}.' + messaging_template: "Hello, this is the Acme Inc verification code you requested:\ + \ {code}." default_verification_timeout_secs: 300 rcs_enabled: true id: 12ade33a-21c0-473b-b055-b3c836e1c292 @@ -48173,8 +50536,8 @@ components: language: en-US record_type: verification_profile call: - speech_template: 'Hello, this is the Acme Inc verification code you requested: - {code}.' + speech_template: "Hello, this is the Acme Inc verification code you requested:\ + \ {code}." default_call_timeout_secs: 30 default_verification_timeout_secs: 300 updated_at: 2020-09-14T17:03:32.965812 @@ -48183,8 +50546,8 @@ components: sms: messaging_enabled: true vsms_enabled: true - messaging_template: 'Hello, this is the Acme Inc verification code you - requested: {code}.' + messaging_template: "Hello, this is the Acme Inc verification code you\ + \ requested: {code}." default_verification_timeout_secs: 300 rcs_enabled: true id: 12ade33a-21c0-473b-b055-b3c836e1c292 @@ -48197,8 +50560,8 @@ components: example: messaging_enabled: true vsms_enabled: true - messaging_template: 'Hello, this is the Acme Inc verification code you requested: - {code}.' + messaging_template: "Hello, this is the Acme Inc verification code you requested:\ + \ {code}." default_verification_timeout_secs: 300 rcs_enabled: true properties: @@ -48211,16 +50574,16 @@ components: example: true type: boolean messaging_template: - description: Optionally sets a messaging text template when sending the - verification code. Uses `{code}` to template in the actual verification - code. - example: 'Hello, this is the Acme Inc verification code you requested: {code}.' + description: "Optionally sets a messaging text template when sending the\ + \ verification code. Uses `{code}` to template in the actual verification\ + \ code." + example: "Hello, this is the Acme Inc verification code you requested: {code}." type: string default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer vsms_enabled: @@ -48235,10 +50598,10 @@ components: default_verification_timeout_secs: 300 properties: default_verification_timeout_secs: - description: For every request that is initiated via this Verify profile, - this sets the number of seconds before a verification request code expires. - Once the verification request expires, the user cannot use the code to - verify their identity. + description: "For every request that is initiated via this Verify profile,\ + \ this sets the number of seconds before a verification request code expires.\ + \ Once the verification request expires, the user cannot use the code\ + \ to verify their identity." example: 300 type: integer app_name: @@ -48291,8 +50654,8 @@ components: example: f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68 type: string link: - description: The protocol and URL of the media to be sent. Use only with - HTTP/HTTPS URLs. Either id or link must be provided, not both. + description: "The protocol and URL of the media to be sent. Use only with\ + \ HTTP/HTTPS URLs. Either id or link must be provided, not both." example: http://www.example.com/file type: string caption: @@ -48350,18 +50713,18 @@ components: nullable: true type: integer max_columns: - description: Maximum number of columns of the region's placement grid. By - default, the region has as many columns as needed to layout all the specified - video sources. + description: "Maximum number of columns of the region's placement grid.\ + \ By default, the region has as many columns as needed to layout all the\ + \ specified video sources." example: 3 maximum: 1000 minimum: 1 nullable: true type: integer max_rows: - description: Maximum number of rows of the region's placement grid. By default, - the region has as many rows as needed to layout all the specified video - sources. + description: "Maximum number of rows of the region's placement grid. By\ + \ default, the region has as many rows as needed to layout all the specified\ + \ video sources." example: 3 maximum: 1000 minimum: 1 @@ -48376,6 +50739,36 @@ components: type: string type: array type: object + VirtualCrossConnect: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/Interface' + - $ref: '#/components/schemas/VirtualCrossConnect_1' + VirtualCrossConnectCombined: + allOf: + - $ref: '#/components/schemas/VirtualCrossConnectCreate' + - $ref: '#/components/schemas/VirtualCrossConnectPatch' + - $ref: '#/components/schemas/RegionOut' + VirtualCrossConnectCreate: + allOf: + - $ref: '#/components/schemas/VirtualCrossConnect' + - $ref: '#/components/schemas/RegionIn' + - required: + - bgp_asn + - cloud_provider + - cloud_region + - network_id + - primary_cloud_account_id + - region_code + title: VirtualCrossConnectCreate + type: object + VirtualCrossConnectPatch: + allOf: + - $ref: '#/components/schemas/VirtualCrossConnectPatch_1' + VirtualCrossConnectRegion: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/VirtualCrossConnectRegion_1' WdrReport: example: start_time: 2018-02-02T22:25:27.521Z @@ -48418,7 +50811,7 @@ components: example: 2018-02-02T22:25:27.521Z type: string status: - description: Indicates the status of the report, which is updated asynchronously. + description: "Indicates the status of the report, which is updated asynchronously." enum: - pending - complete @@ -48427,8 +50820,8 @@ components: example: pending type: string report_url: - description: The URL where the report content, when generated, will be published - to. + description: "The URL where the report content, when generated, will be\ + \ published to." example: http://example.com type: string type: object @@ -48448,8 +50841,8 @@ components: type: object WebhookApiVersion: default: "1" - description: Determines which webhook format will be used, Telnyx API v1 or - v2. + description: "Determines which webhook format will be used, Telnyx API v1 or\ + \ v2." enum: - "1" - "2" @@ -48458,17 +50851,17 @@ components: type: string WebhookEventFailoverUrl: default: "" - description: The failover URL where webhooks related to this connection will - be sent if sending to the primary URL fails. Must include a scheme, such as - 'https'. + description: "The failover URL where webhooks related to this connection will\ + \ be sent if sending to the primary URL fails. Must include a scheme, such\ + \ as 'https'." example: https://failover.example.com format: url nullable: true title: Webhook Event Failover URL type: string WebhookEventUrl: - description: The URL where webhooks related to this connection will be sent. - Must include a scheme, such as 'https'. + description: "The URL where webhooks related to this connection will be sent.\ + \ Must include a scheme, such as 'https'." example: https://example.com format: url title: Webhook Event URL @@ -48507,7 +50900,7 @@ components: description: Street number and name type: string type: - description: 'Standard Values: HOME, WORK' + description: "Standard Values: HOME, WORK" type: string zip: description: ZIP code @@ -48522,6 +50915,48 @@ components: - zip title: Address type: object + WhatsAppConversationDetailRecord: + properties: + recipient_region_code: + description: CLDR two-letter region-code of recipient + example: US + type: string + currency: + description: "Telnyx account currency used to describe monetary values,\ + \ including billing cost" + example: USD + type: string + created_at: + description: UTC time when the message was created + example: 2021-08-06T03:32:01.125Z + format: date-time + type: string + whatsapp_fee: + description: Currency amount for WhatsApp cost + example: "0.003" + type: string + conversation_id: + description: Whatsapp Conversation ID + example: f44ae083-c800-4433-baac-b439e5270aa4 + type: string + conversation_origin: + description: Whatsapp Conversation Origin + enum: + - business_initiated + - user_initiated + - referral_conversion + type: string + whatsapp_business_account_id: + description: Whatsapp Business Account ID + example: "421452453" + type: string + record_type: + default: whatsapp-conversation_detail_record + example: whatsapp-conversation_detail_record + type: string + required: + - record_type + type: object WhatsAppDetailRecord: properties: id: @@ -48560,9 +50995,9 @@ components: example: delivered type: string direction: - description: Logical direction of the message from the Telnyx customer's - perspective. It's inbound when the Telnyx customer receives the message, - or outbound otherwise + description: "Logical direction of the message from the Telnyx customer's\ + \ perspective. It's inbound when the Telnyx customer receives the message,\ + \ or outbound otherwise" enum: - inbound - outbound @@ -48573,8 +51008,8 @@ components: example: US type: string currency: - description: Telnyx account currency used to describe monetary values, including - billing cost + description: "Telnyx account currency used to describe monetary values,\ + \ including billing cost" example: USD type: string whatsapp_error_code: @@ -48604,6 +51039,21 @@ components: description: Currency amount for WhatsApp cost example: "0.003" type: string + conversation_id: + description: Whatsapp Conversation ID + example: f44ae083-c800-4433-baac-b439e5270aa4 + type: string + conversation_origin: + description: Whatsapp Conversation Origin + enum: + - business_initiated + - user_initiated + - referral_conversion + type: string + whatsapp_business_account_id: + description: Whatsapp Business Account ID + example: "421452453" + type: string record_type: default: whatsapp_detail_record example: whatsapp_detail_record @@ -48807,7 +51257,7 @@ components: readOnly: true type: string id: - description: The WhatsApp User ID, usually a phone number. + description: "The WhatsApp User ID, usually a phone number." example: "15125551212" type: string webhook_url: @@ -48867,6 +51317,157 @@ components: format: datetime type: string type: object + WhatsappMessageTemplate: + example: + components: + - format: VIDEO + text: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: text + - format: VIDEO + text: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: text + rejected_reason: NONE + quality_score: + score: UNKNOWN + name: sample_happy_hour_announcement + language: en_US + id: "23492349423" + category: APPOINTMENT_UPDATE + record_type: whatsapp_message_template + status: APPROVED + properties: + record_type: + description: Telnyx record type + example: whatsapp_message_template + type: string + category: + description: "The category of the message template, The possible values\ + \ are provided by WhatsApp and are subject to change." + enum: + - ACCOUNT_UPDATE + - PAYMENT_UPDATE + - PERSONAL_FINANCE_UPDATE + - SHIPPING_UPDATE + - RESERVATION_UPDATE + - ISSUE_RESOLUTION + - APPOINTMENT_UPDATE + - TRANSPORTATION_UPDATE + - TICKET_UPDATE + - ALERT_UPDATE + - AUTO_REPLY + example: APPOINTMENT_UPDATE + type: string + components: + description: The components of the message template + items: + $ref: '#/components/schemas/WhatsappMessageTemplate_components_inner' + type: array + id: + description: The id of the template on WhatsApp + example: "23492349423" + format: bigint + type: string + language: + description: "The language of the message template, The available languages\ + \ are provided by WhatsApp and are subject to change." + enum: + - af + - sq + - ar + - az + - bn + - bg + - ca + - zh_CN + - zh_HK + - zh_TW + - hr + - cs + - da + - nl + - en + - en_GB + - en_US + - et + - fil + - fi + - fr + - ka + - de + - el + - gu + - ha + - he + - hi + - hu + - id + - ga + - it + - ja + - kn + - kk + - rw_RW + - ko + - ky_KG + - lo + - lv + - lt + - mk + - ms + - ml + - mr + - nb + - fa + - pl + - pt_BR + - pt_PT + - pa + - ro + - ru + - sr + - sk + - sl + - es + - es_AR + - es_ES + - es_MX + - sw + - sv + - ta + - te + - th + - tr + - uk + - ur + - uz + - vi + - zu + example: en_US + type: string + name: + description: "This name will act as an identifier grouping similar message\ + \ templates together, the same name can be used to different languages." + example: sample_happy_hour_announcement + type: string + quality_score: + $ref: '#/components/schemas/WhatsappMessageTemplate_quality_score' + rejected_reason: + example: NONE + type: string + status: + description: "The current status of the message template, The possible values\ + \ are provided by WhatsApp and are subject to change." + enum: + - APPROVED + - IN_APPEAL + - PENDING + - REJECTED + - PENDING_DELETION + - DELETED + - DISABLED + example: APPROVED + type: string + type: object WhatsappPhoneNumber: example: record_type: whatsapp_phone_number @@ -48908,6 +51509,7 @@ components: enum: - pending - ready + - disconnected type: string webhook_url: description: The webhook url to be used by facebook @@ -48922,31 +51524,11 @@ components: format: e164 type: string whatsapp_user_id: - description: The phone number's WhatsApp User ID, used in other Telnyx Whatsapp - API endpoints + description: "The phone number's WhatsApp User ID, used in other Telnyx\ + \ Whatsapp API endpoints" type: string whatsapp_settings: - description: The WhatsApp settings associated with the business account - properties: - id: - description: The unique ID of the phone number in Facebook - type: string - display_name: - description: The display name of the phone number in the WhatsApp app - type: string - display_name_status: - description: The Facebook approval status of the phone numbers display - name - enum: - - PENDING_REVIEW - - APPROVED - - DECLINED - - EXPIRED - - NONE - type: string - quality_rating: - description: The quality rating of the number in the WhatsApp app - type: string + $ref: '#/components/schemas/WhatsappPhoneNumber_whatsapp_settings' created_at: description: An ISO 8601 datetime string denoting when the account was added to the Telnyx platform @@ -48980,11 +51562,63 @@ components: format: uuid type: string whatsapp_user_id: - description: The phone number's WhatsApp User ID, used in other Telnyx Whatsapp - API endpoints + description: "The phone number's WhatsApp User ID, used in other Telnyx\ + \ Whatsapp API endpoints" example: "123456789" type: string - title: WhatsApp Profile Photo + type: object + WireguardInterface: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/Interface' + - $ref: '#/components/schemas/WireguardInterface_1' + WireguardInterfaceCreate: + allOf: + - $ref: '#/components/schemas/WireguardInterface' + - $ref: '#/components/schemas/RegionIn' + - required: + - network_id + - region_code + title: WireguardInterfaceCreate + type: object + WireguardInterfaceRead: + allOf: + - $ref: '#/components/schemas/WireguardInterface' + - $ref: '#/components/schemas/RegionOut' + WireguardPeer: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/WireguardPeerPatch' + - $ref: '#/components/schemas/WireguardPeer_1' + WireguardPeerAllowedIP: + allOf: + - $ref: '#/components/schemas/Record' + - $ref: '#/components/schemas/WireguardAllowedIP' + WireguardPeerAllowedIPCreate: + allOf: + - $ref: '#/components/schemas/WireguardPeerAllowedIP' + - required: + - ip_address + title: WireguardPeerAllowedIPCreate + type: object + WireguardPeerCreate: + allOf: + - $ref: '#/components/schemas/WireguardPeer' + - required: + - wireguard_interface_id + title: WireguardPeerCreate + type: object + WireguardPeerPatch: + example: + public_key: qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU= + properties: + public_key: + description: "The WireGuard `PublicKey`.

If you do not provide\ + \ a Public Key, a new Public and Private key pair will be generated for\ + \ you." + example: qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU= + type: string + title: WireguardPeerPatch type: object WirelessConnectivityLog: description: This object represents a wireless connectivity session log that @@ -48992,6 +51626,8 @@ components: the SIM is not able to attach properly. example: stop_time: 2018-02-02T22:25:27.521Z + last_seen: 2018-02-02T22:25:27.521Z + created_at: 2018-02-02T22:25:27.521Z imsi: "081932214823362973" mobile_country_code: "310" record_type: wireless_connectivity_log @@ -49023,8 +51659,8 @@ components: format: uuid type: string log_type: - description: The type of the session, 'registration' being the initial authentication - session and 'data' the actual data transfer sessions. + description: "The type of the session, 'registration' being the initial\ + \ authentication session and 'data' the actual data transfer sessions." enum: - registration - data @@ -49039,9 +51675,9 @@ components: readOnly: true type: string imei: - description: The International Mobile Equipment Identity (or IMEI) is a - number, usually unique, that identifies the device currently being used - connect to the network. + description: "The International Mobile Equipment Identity (or IMEI) is a\ + \ number, usually unique, that identifies the device currently being used\ + \ connect to the network." example: "490154203237518" readOnly: true type: string @@ -49069,6 +51705,18 @@ components: example: 2018-02-02T22:25:27.521Z readOnly: true type: string + created_at: + description: ISO 8601 formatted date-time indicating when the record was + created. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + last_seen: + description: ISO 8601 formatted date-time indicating when the last heartbeat + to the device was successfully recorded. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string apn: description: The Access Point Name (APN) identifies the packet data network that a mobile data user wants to communicate with. @@ -49076,14 +51724,16 @@ components: readOnly: true type: string ipv4: - description: | - The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections. + description: "The SIM's address in the currently connected network. This\ + \ IPv4 address is usually obtained dynamically, so it may vary according\ + \ to the location or new connections.\n" example: 192.168.0.0 readOnly: true type: string ipv6: - description: | - The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections. + description: "The SIM's address in the currently connected network. This\ + \ IPv6 address is usually obtained dynamically, so it may vary according\ + \ to the location or new connections.\n" example: 2001:cdba:0000:0000:0000:0000:3257:9652 readOnly: true type: string @@ -49105,6 +51755,9 @@ components: title: WirelessConnectivityLog type: object WirelessCost: + example: + amount: "0.1" + currency: USD properties: amount: description: Final cost. Cost is calculated as rate * unit @@ -49122,6 +51775,9 @@ components: type: string type: object WirelessRate: + example: + amount: "0.1" + currency: USD properties: amount: description: Rate from which cost is calculated @@ -49138,42 +51794,11 @@ components: example: USD type: string type: object - access_control_ip_description: - description: User-supplied freeform textual description field. Maximum length - of 150 characters is enforced. - example: Signaling IP for system1 - type: string - access_control_ip_ip_address: - description: The IP address for which you are saving an access control IP record. - Must be a single IPv4 address. Cannot be a range of IP addresses or use CIDR - notation. - example: 100.101.102.103 - type: string - access_control_ip_ip_address_type: - description: Deprecated field. This field originally indicated the type of the - access control IP. If a value is specified, it must be either `media` or `signaling`. - Other values are not allowed. May be left blank. - enum: - - "" - - media - - signaling - type: string active: default: true description: The active status of the authentication provider example: true type: boolean - address_book: - default: true - description: Indicates whether or not the address should be considered part - of your list of addresses that appear for regular use. - example: false - type: boolean - administrative_area: - description: The locality of the address. For US addresses, this corresponds - to the state of the address. - example: IL - type: string attempt: description: Webhook delivery attempt details. example: @@ -49184,11 +51809,11 @@ components: request: url: https://fallback.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 200 headers: - - 'Content-Type: text/html' + - "Content-Type: text/html" body: All good. - status: failed started_at: 2020-08-10T14:00:05.004Z @@ -49197,12 +51822,12 @@ components: request: url: https://typo.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 404 headers: - - 'Content-Type: text/html' - - 'Pragma: no-cache' + - "Content-Type: text/html" + - "Pragma: no-cache" body: Oops. Not found. errors: - code: "75499" @@ -49215,7 +51840,7 @@ components: request: url: https://slow.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" reponse: null errors: - code: "75001" @@ -49242,16 +51867,6 @@ components: items: $ref: '#/components/schemas/error' type: array - borough: - description: The borough of the address. This field is not used for addresses - in the US but is used for some international addresses. - example: Guadalajara - type: string - business_name: - description: The business name associated with the address. An address must - have either a first last name or a business name. - example: Toy-O'Kon - type: string callRecordingError: example: record_type: event @@ -49297,14 +51912,6 @@ components: $ref: '#/components/schemas/callRecordingError' title: Call Recording Error Event type: object - country_code: - description: The two-character (ISO 3166-1 alpha-2) country code of the address. - example: US - type: string - customer_reference: - description: A customer reference string for customer look ups. - example: MY REF 001 - type: string error: properties: code: @@ -49314,78 +51921,29 @@ components: type: string detail: type: string - extended_address: - description: Additional street address information about the address such as, - but not limited to, unit number or apartment number. - example: '#504' - type: string - first_name: - description: The first name associated with the address. An address must have - either a first last name or a business name. - example: Alfred - type: string http: description: HTTP request and response information. properties: request: - description: Request details. - properties: - url: - example: https://example.com/webhooks - type: string - headers: - $ref: '#/components/schemas/http_headers' + $ref: '#/components/schemas/http_request' response: - description: Response details, optional. - nullable: true - properties: - status: - example: 200 - type: integer - headers: - $ref: '#/components/schemas/http_headers' - body: - description: Raw response body, limited to 10kB. - type: string + $ref: '#/components/schemas/http_response' http_headers: - description: List of headers, limited to 10kB. + description: "List of headers, limited to 10kB." items: - example: 'Header-Name: header value' + example: "Header-Name: header value" type: string type: array - last_name: - description: The last name associated with the address. An address must have - either a first last name or a business name. - example: Foster - type: string - locality: - description: The locality of the address. For US addresses, this corresponds - to the city of the address. - example: Chicago - type: string name: description: The name associated with the authentication provider. example: Okta type: string - neighborhood: - description: The neighborhood of the address. This field is not used for addresses - in the US but is used for some international addresses. - example: Ciudad de los deportes - type: string organization_id: description: The id from the Organization the authentication provider belongs to. example: 24b4a4bb-c4df-46ad-bbcb-23fc741c5ad7 format: uuid type: string - phone_number: - description: The phone number associated with the address. - example: +12125559000 - type: string - postal_code: - description: The postal code of the address. - example: "60654" - type: string settings: description: The settings associated with the authentication provider. example: @@ -49423,30 +51981,16 @@ components: - idp_sso_target_url type: object settings_url: - description: The URL for the identity provider metadata file to populate the - settings automatically. If the settings attribute is provided, that will be - used instead. + description: "The URL for the identity provider metadata file to populate the\ + \ settings automatically. If the settings attribute is provided, that will\ + \ be used instead." example: https://myorg.myidp.com/saml/metadata type: string short_name: - description: The short name associated with the authentication provider. This - must be unique and URL-friendly, as it's going to be part of the login URL. + description: "The short name associated with the authentication provider. This\ + \ must be unique and URL-friendly, as it's going to be part of the login URL." example: myorg type: string - street_address: - description: The primary street address information about the address. - example: 311 W Superior Street - type: string - validate_address: - default: true - description: Indicates whether or not the address should be validated for emergency - use upon creation or not. This should be left with the default value of `true` - unless you have used the `/addresses/actions/validate` endpoint to validate - the address separately prior to creation. If an address is not validated for - emergency use upon creation and it is not valid, it will not be able to be - used for emergency services. - example: true - type: boolean webhook_delivery: description: Record of all attempts to deliver a webhook. example: @@ -49471,11 +52015,11 @@ components: request: url: https://fallback.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 200 headers: - - 'Content-Type: text/html' + - "Content-Type: text/html" body: All good. - status: failed started_at: 2020-08-10T14:00:05.004Z @@ -49484,12 +52028,12 @@ components: request: url: https://typo.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 404 headers: - - 'Content-Type: text/html' - - 'Pragma: no-cache' + - "Content-Type: text/html" + - "Pragma: no-cache" body: Oops. Not found. errors: - code: "75499" @@ -49512,8 +52056,8 @@ components: example: webhook_delivery type: string status: - description: 'Delivery status: ''delivered'' when successfuly delivered - or ''failed'' if all attempts have failed.' + description: "Delivery status: 'delivered' when successfuly delivered or\ + \ 'failed' if all attempts have failed." enum: - delivered - failed @@ -49533,7 +52077,7 @@ components: format: date-time type: string attempts: - description: Detailed delivery attempts, ordered by most recent. + description: "Detailed delivery attempts, ordered by most recent." example: - status: delivered started_at: 2020-08-10T14:00:05.364Z @@ -49542,11 +52086,11 @@ components: request: url: https://fallback.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 200 headers: - - 'Content-Type: text/html' + - "Content-Type: text/html" body: All good. - status: failed started_at: 2020-08-10T14:00:05.004Z @@ -49555,12 +52099,12 @@ components: request: url: https://typo.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 404 headers: - - 'Content-Type: text/html' - - 'Pragma: no-cache' + - "Content-Type: text/html" + - "Pragma: no-cache" body: Oops. Not found. errors: - code: "75499" @@ -49569,48 +52113,16 @@ components: items: $ref: '#/components/schemas/attempt' type: array - Get_All_Access_Control_Ip_Response: - example: - data: - - updated_at: 2018-02-02T22:25:27.521Z - description: Signaling IP for system1 - created_at: 2018-02-02T22:25:27.521Z - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - ip_address: 100.101.102.103 - record_type: access_control_ip - - updated_at: 2018-02-02T22:25:27.521Z - description: Signaling IP for system1 - created_at: 2018-02-02T22:25:27.521Z - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - ip_address: 100.101.102.103 - record_type: access_control_ip - meta: - page_number: 2 - total_pages: 3 - total_results: 55 - page_size: 25 - properties: - data: - items: - $ref: '#/components/schemas/AccessControlIp' - type: array - meta: - $ref: '#/components/schemas/PaginationMeta' - title: Get All Access Control Ip Response - type: object - Access_Control_Ip_Response: + CustomerFacingFQDNsPatch: example: - data: - updated_at: 2018-02-02T22:25:27.521Z - description: Signaling IP for system1 - created_at: 2018-02-02T22:25:27.521Z - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - ip_address: 100.101.102.103 - record_type: access_control_ip + description: description properties: - data: - $ref: '#/components/schemas/AccessControlIp' - title: Access Control Ip Response + description: + title: Description + type: string + required: + - description + title: CustomerFacingFQDNsPatch type: object Bulk_Credential_Response_data: example: @@ -49630,7 +52142,7 @@ components: $ref: '#/components/schemas/Bulk_Credential_Response_data' title: Bulk Credential Response type: object - Bulk_Update_Sim_Network_Preference: + BulkSIMCardNetworkPreferences_request: properties: sim_card_ids: example: @@ -49646,9 +52158,8 @@ components: items: $ref: '#/components/schemas/MobileOperatorNetworkPreferencesRequest' type: array - title: Bulk Update Sim Network Preference type: object - Bulk_SIM_Card_Network_Preference_Response: + BulkSIMCardNetworkPreferences_202_response: example: data: - sim_card_id: 6b14e151-8493-4fa1-8664-1cc4e6d14158 @@ -49725,14 +52236,14 @@ components: record_type: sim_card_network_preferences errors: - code: code - meta: '{}' + meta: "{}" detail: detail source: pointer: pointer parameter: parameter title: title - code: code - meta: '{}' + meta: "{}" detail: detail source: pointer: pointer @@ -49748,9 +52259,8 @@ components: items: $ref: '#/components/schemas/Error' type: array - title: Bulk SIM Card Network Preference Response type: object - Register_SimCards_Response: + SimCardRegister_202_response: example: data: - sim_card_group_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -49768,8 +52278,8 @@ components: unit: MB record_type: sim_card status: - reason: The SIM card is active, ready to connect to networks and consume - data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled tags: - personal @@ -49790,8 +52300,8 @@ components: unit: MB record_type: sim_card status: - reason: The SIM card is active, ready to connect to networks and consume - data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled tags: - personal @@ -49799,14 +52309,14 @@ components: - active-customers errors: - code: code - meta: '{}' + meta: "{}" detail: detail source: pointer: pointer parameter: parameter title: title - code: code - meta: '{}' + meta: "{}" detail: detail source: pointer: pointer @@ -49822,123 +52332,8 @@ components: items: $ref: '#/components/schemas/Error' type: array - title: Register SimCards Response type: object - Get_All_Address_Response: - example: - data: - - business_name: Toy-O'Kon - street_address: 311 W Superior Street - validate_address: true - locality: Chicago - last_name: Foster - administrative_area: IL - created_at: 2018-02-02T22:25:27.521Z - borough: Guadalajara - address_book: false - record_type: address - extended_address: '#504' - country_code: US - updated_at: 2018-02-02T22:25:27.521Z - customer_reference: MY REF 001 - phone_number: +12125559000 - id: "1293384261075731499" - neighborhood: Ciudad de los deportes - postal_code: "60654" - first_name: Alfred - - business_name: Toy-O'Kon - street_address: 311 W Superior Street - validate_address: true - locality: Chicago - last_name: Foster - administrative_area: IL - created_at: 2018-02-02T22:25:27.521Z - borough: Guadalajara - address_book: false - record_type: address - extended_address: '#504' - country_code: US - updated_at: 2018-02-02T22:25:27.521Z - customer_reference: MY REF 001 - phone_number: +12125559000 - id: "1293384261075731499" - neighborhood: Ciudad de los deportes - postal_code: "60654" - first_name: Alfred - meta: - page_number: 2 - total_pages: 3 - total_results: 55 - page_size: 25 - properties: - data: - items: - $ref: '#/components/schemas/Address' - type: array - meta: - $ref: '#/components/schemas/PaginationMeta' - title: Get All Address Response - type: object - Address_Response: - example: - data: - business_name: Toy-O'Kon - street_address: 311 W Superior Street - validate_address: true - locality: Chicago - last_name: Foster - administrative_area: IL - created_at: 2018-02-02T22:25:27.521Z - borough: Guadalajara - address_book: false - record_type: address - extended_address: '#504' - country_code: US - updated_at: 2018-02-02T22:25:27.521Z - customer_reference: MY REF 001 - phone_number: +12125559000 - id: "1293384261075731499" - neighborhood: Ciudad de los deportes - postal_code: "60654" - first_name: Alfred - properties: - data: - $ref: '#/components/schemas/Address' - title: Address Response - type: object - Validate_Address_Response: - example: - data: - result: valid - suggested: - extended_address: '#504' - street_address: 311 W Superior Street - country_code: US - locality: Chicago - administrative_area: IL - postal_code: "60654" - record_type: address_validation - errors: - - code: code - meta: '{}' - detail: detail - source: - pointer: pointer - parameter: parameter - title: title - - code: code - meta: '{}' - detail: detail - source: - pointer: pointer - parameter: parameter - title: title - properties: - data: - $ref: '#/components/schemas/ValidateAddressResult' - title: Validate Address Response - type: object - Get_All_Authentication_Providers_Response: + findAuthenticationProviders_200_response: example: data: - settings: @@ -49985,9 +52380,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Get All Authentication Providers Response type: object - Authentication_Provider_Response: + CreateAuthenticationProvider_200_response: example: data: settings: @@ -50009,7 +52403,6 @@ components: properties: data: $ref: '#/components/schemas/AuthenticationProvider' - title: Authentication Provider Response type: object List_Available_Phone_Numbers_Blocks_Response: example: @@ -50099,7 +52492,7 @@ components: $ref: '#/components/schemas/AvailablePhoneNumbersMetadata' title: List Available Phone Numbers Response type: object - User_Balance_Response: + getUserBalance_200_response: example: data: record_type: balance @@ -50110,9 +52503,8 @@ components: properties: data: $ref: '#/components/schemas/UserBalance' - title: User Balance Response type: object - List_Billing_Groups_Response: + listBillingGroups_200_response: example: data: - record_type: billing_group @@ -50141,9 +52533,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Billing Groups Response type: object - Create_Billing_Group_Response: + createBillingGroup_200_response: example: data: record_type: billing_group @@ -50156,52 +52547,62 @@ components: properties: data: $ref: '#/components/schemas/BillingGroup' - title: Create Billing Group Response type: object - Retrieve_Billing_Group_Response: + ListBulkSIMCardActions_200_response: example: data: - record_type: billing_group - id: f5586561-8ff0-4291-a0ac-84fe544797bd - organization_id: f1486bae-f067-460c-ad43-73a92848f902 - name: My billing group name - created_at: 2019-10-15T10:07:15.527Z - updated_at: 2019-10-15T10:07:15.527Z - deleted_at: null - properties: - data: - $ref: '#/components/schemas/BillingGroup' - title: Retrieve Billing Group Response - type: object - Delete_Billing_Group_Response: - example: - data: - record_type: billing_group - id: f5586561-8ff0-4291-a0ac-84fe544797bd - organization_id: f1486bae-f067-460c-ad43-73a92848f902 - name: My billing group name - created_at: 2019-10-15T10:07:15.527Z - updated_at: 2019-10-15T10:07:15.527Z - deleted_at: null + - settings: {} + updated_at: 2018-02-02T22:25:27.521Z + action_type: bulk_set_public_ips + created_at: 2018-02-02T22:25:27.521Z + id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + sim_card_actions_summary: + - count: 0 + status: in-progress + - count: 0 + status: in-progress + record_type: bulk_sim_card_action + - settings: {} + updated_at: 2018-02-02T22:25:27.521Z + action_type: bulk_set_public_ips + created_at: 2018-02-02T22:25:27.521Z + id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + sim_card_actions_summary: + - count: 0 + status: in-progress + - count: 0 + status: in-progress + record_type: bulk_sim_card_action + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 properties: data: - $ref: '#/components/schemas/BillingGroup' - title: Delete Billing Group Response + items: + $ref: '#/components/schemas/BulkSIMCardActionDetailed' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' type: object - Update_Billing_Group_Response: + BulkSimCardActionGet_200_response: example: data: - record_type: billing_group - id: f5586561-8ff0-4291-a0ac-84fe544797bd - organization_id: f1486bae-f067-460c-ad43-73a92848f902 - name: My billing group name - created_at: 2019-10-15T10:07:15.527Z - updated_at: 2019-10-15T10:07:15.527Z - deleted_at: null + settings: {} + updated_at: 2018-02-02T22:25:27.521Z + action_type: bulk_set_public_ips + created_at: 2018-02-02T22:25:27.521Z + id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + sim_card_actions_summary: + - count: 0 + status: in-progress + - count: 0 + status: in-progress + record_type: bulk_sim_card_action properties: data: - $ref: '#/components/schemas/BillingGroup' - title: Update Billing Group Response + $ref: '#/components/schemas/BulkSIMCardActionDetailed' type: object List_Business_Identities_Response: example: @@ -50489,7 +52890,7 @@ components: $ref: '#/components/schemas/CallControlCommandResult' title: Call Control Command Response type: object - Get_Gcb_Channel_Zones_Request_Response: + getChannelZones_200_response: example: data: - channels: 7 @@ -50572,16 +52973,14 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Get Gcb Channel Zones Request Response type: object - Update_Channel_Zone: + patchGroup_request: properties: channels: format: int64 type: integer - title: Update Channel Zone type: object - Get_Gcb_Phone_Numbers_Request_Response: + getPhoneNumbers_200_response: example: data: - channel_zone_id: 1653e6a1-4bfd-4857-97c6-6a51e1c34477 @@ -50606,9 +53005,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Get Gcb Phone Numbers Request Response type: object - List_Channel_Zones_by_Phone_Number: + assignPhoneNumber_request: properties: phone_number: example: +15554441234 @@ -50616,9 +53014,8 @@ components: type: string required: - phone_number - title: List Channel Zones by Phone Number type: object - List_Comments_Response: + listComments_200_response: example: data: - updated_at: 2018-01-01T00:00:00.000000Z @@ -50627,7 +53024,7 @@ components: created_at: 2018-01-01T00:00:00.000000Z id: 12ade33a-21c0-473b-b055-b3c836e1c292 comment_record_type: sub_number_order - body: Hi there, .... + body: "Hi there, ...." commenter_type: user commenter: user@company.com - updated_at: 2018-01-01T00:00:00.000000Z @@ -50636,7 +53033,7 @@ components: created_at: 2018-01-01T00:00:00.000000Z id: 12ade33a-21c0-473b-b055-b3c836e1c292 comment_record_type: sub_number_order - body: Hi there, .... + body: "Hi there, ...." commenter_type: user commenter: user@company.com meta: @@ -50651,27 +53048,28 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Comments Response type: object - Comment_Response: + createComment_200_response_data: + allOf: + - $ref: '#/components/schemas/Comment' + - type: object + createComment_200_response: example: - data: "" + data: null properties: data: - allOf: - - $ref: '#/components/schemas/Comment' - - type: object - title: Comment Response + $ref: '#/components/schemas/createComment_200_response_data' type: object - Read_Comment_Response: + markCommentRead_200_response_data: + allOf: + - $ref: '#/components/schemas/ReadComment' + - type: object + markCommentRead_200_response: example: - data: "" + data: null properties: data: - allOf: - - $ref: '#/components/schemas/ReadComment' - - type: object - title: Read Comment Response + $ref: '#/components/schemas/markCommentRead_200_response_data' type: object List_Conferences_Response: example: @@ -51018,25 +53416,87 @@ components: $ref: '#/components/schemas/CredentialConnection' title: Credential Connection Response type: object - List_Customer_Service_Request_PhoneNumber_Coverage: + listCustomerServiceRequests_200_response: example: data: - - reason: The phone number '+19999999999' is invalid. - phone_number: +12223334444 - has_csr_coverage: true - record_type: customer_service_request_phone_number_coverage - - reason: The phone number '+19999999999' is invalid. - phone_number: +12223334444 - has_csr_coverage: true - record_type: customer_service_request_phone_number_coverage + - address: + street_address: 123 Main St + locality: New York + administrative_area: NY + postal_code: "10001" + updated_at: 2021-03-19T10:07:15.527Z + name: John Doe + created_at: 2021-03-19T10:07:15.527Z + phone_number: +12065551212 + id: f1486bae-f067-460c-ad43-73a92848f902 + carrier_name: "ABC CARRIER, INC." + record_type: customer_service_request + status: completed + - address: + street_address: 123 Main St + locality: New York + administrative_area: NY + postal_code: "10001" + updated_at: 2021-03-19T10:07:15.527Z + name: John Doe + created_at: 2021-03-19T10:07:15.527Z + phone_number: +12065551212 + id: f1486bae-f067-460c-ad43-73a92848f902 + carrier_name: "ABC CARRIER, INC." + record_type: customer_service_request + status: completed + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 properties: data: items: - $ref: '#/components/schemas/CustomerServiceRequestPhoneNumberCoverage' + $ref: '#/components/schemas/CustomerServiceRequest' type: array - title: List Customer Service Request PhoneNumber Coverage + meta: + $ref: '#/components/schemas/PaginationMeta' type: object - Show_Customer_Service_Request: + listCustomerServiceRequests_401_response: + properties: + errors: + items: + $ref: '#/components/schemas/UnauthorizedError' + type: array + listCustomerServiceRequests_403_response: + properties: + errors: + items: + $ref: '#/components/schemas/ForbiddenError' + type: array + listCustomerServiceRequests_422_response: + properties: + errors: + items: + $ref: '#/components/schemas/UnprocessableEntityError' + type: array + listCustomerServiceRequests_500_response: + properties: + errors: + items: + $ref: '#/components/schemas/UnexpectedError' + type: array + createCustomerServiceRequest_request: + properties: + phone_number: + description: A valid US phone number in E164 format. + example: +1234567890 + pattern: "^\\+1\\d{10}$" + type: string + webhook_url: + description: Callback URL to receive webhook notifications. + example: https://example.com/webhook + type: string + required: + - phone_number + type: object + createCustomerServiceRequest_201_response: example: data: address: @@ -51049,15 +53509,57 @@ components: created_at: 2021-03-19T10:07:15.527Z phone_number: +12065551212 id: f1486bae-f067-460c-ad43-73a92848f902 - carrier_name: ABC CARRIER, INC. + carrier_name: "ABC CARRIER, INC." record_type: customer_service_request status: completed properties: data: $ref: '#/components/schemas/CustomerServiceRequest' - title: Show Customer Service Request type: object - List_Doc_Service_Document_Links_Response: + _customer_service_requests_get_request: + properties: + data: + $ref: '#/components/schemas/CustomerServiceRequestStatusChangedEvent' + meta: + $ref: '#/components/schemas/CallbackWebhookMeta' + type: object + verifyPhoneNumberCoverage_request: + properties: + phone_numbers: + description: The phone numbers list to be verified. + items: + description: A valid US phone number in E164 format. + example: +1234567890 + pattern: "^\\+1\\d{10}$" + type: string + type: array + required: + - phone_numbers + type: object + verifyPhoneNumberCoverage_201_response: + example: + data: + - reason: The phone number '+19999999999' is invalid. + phone_number: +12223334444 + has_csr_coverage: true + record_type: customer_service_request_phone_number_coverage + - reason: The phone number '+19999999999' is invalid. + phone_number: +12223334444 + has_csr_coverage: true + record_type: customer_service_request_phone_number_coverage + properties: + data: + items: + $ref: '#/components/schemas/CustomerServiceRequestPhoneNumberCoverage' + type: array + type: object + getCustomerServiceRequest_404_response: + properties: + errors: + items: + $ref: '#/components/schemas/ResourceNotFoundError' + type: array + listDocumentLinks_200_response: example: data: - null @@ -51074,9 +53576,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Doc Service Document Links Response type: object - List_Doc_Service_Documents_Resposne: + listDocuments_200_response: example: data: - null @@ -51093,16 +53594,15 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Doc Service Documents Resposne type: object - Doc_Service_Document_Response: - example: {} + createDocument_200_response: + example: + data: null properties: data: $ref: '#/components/schemas/DocServiceDocument' - title: Doc Service Document Response type: object - List_Dynamic_Emergency_Addresses: + listDyanmicEmergencyAddresses_200_response: example: data: - street_pre_directional: W @@ -51151,9 +53651,8 @@ components: type: array meta: $ref: '#/components/schemas/Metadata' - title: List Dynamic Emergency Addresses type: object - Dynamic_Emergency_Address_Response: + createDyanmicEmergencyAddress_201_response: example: data: street_pre_directional: W @@ -51176,9 +53675,8 @@ components: properties: data: $ref: '#/components/schemas/DynamicEmergencyAddress' - title: Dynamic Emergency Address Response type: object - List_Dynamic_Emergency_Endpoints: + listDyanmicEmergencyEndpoints_200_response: example: data: - caller_name: Jane Doe Desk Phone @@ -51211,9 +53709,8 @@ components: type: array meta: $ref: '#/components/schemas/Metadata' - title: List Dynamic Emergency Endpoints type: object - Dynamic_Emergency_Endpoint_Response: + createDyanmicEmergencyEndpoint_201_response: example: data: caller_name: Jane Doe Desk Phone @@ -51228,7 +53725,6 @@ components: properties: data: $ref: '#/components/schemas/DynamicEmergencyEndpoint' - title: Dynamic Emergency Endpoint Response type: object Get_All_Fax_Applications_Response: example: @@ -51237,7 +53733,7 @@ components: record_type: fax_application application_name: fax-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" webhook_event_url: https://example.com webhook_event_failover_url: https://failover.example.com webhook_timeout_secs: 25 @@ -51254,7 +53750,7 @@ components: record_type: fax_application application_name: fax-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" webhook_event_url: https://example.com webhook_event_failover_url: https://failover.example.com webhook_timeout_secs: 25 @@ -51288,7 +53784,7 @@ components: record_type: fax_application application_name: fax-router active: false - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" webhook_event_url: https://example.com webhook_event_failover_url: https://failover.example.com webhook_timeout_secs: 25 @@ -51404,6 +53900,16 @@ components: $ref: '#/components/schemas/Fax' title: Get Fax Response type: object + Successful_response_upon_accepting_cancel_fax_command: + example: + data: + result: ok + properties: + result: + example: ok + type: string + title: Successful response upon accepting cancel fax command + type: object Refresh_Fax_Response: example: data: @@ -51602,7 +54108,7 @@ components: $ref: '#/components/schemas/Fqdn' title: FQDN Response type: object - Inventory_Coverage_Response: + createInventoryCoverageRequest_200_response: example: data: - group: "318" @@ -51630,7 +54136,6 @@ components: type: array meta: $ref: '#/components/schemas/InventoryCoverageMetadata' - title: Inventory Coverage Response type: object List_Ip_Connections_Response: example: @@ -51858,7 +54363,7 @@ components: $ref: '#/components/schemas/Ip' title: Ip Response type: object - Create_Ledger_Billing_Group_Report_Response: + createLedgerBillingGroupReport_200_response: example: data: record_type: ledger_billing_group_report @@ -51870,23 +54375,8 @@ components: properties: data: $ref: '#/components/schemas/LedgerBillingGroupReport' - title: Create Ledger Billing Group Report Response type: object - Retrieve_Ledger_Billing_Group_Report_Response: - example: - data: - record_type: ledger_billing_group_report - id: f5586561-8ff0-4291-a0ac-84fe544797bd - organization_id: f5586561-8ff0-4291-a0ac-84fe544797bd - report_url: https://example.com - created_at: 2019-10-15T10:07:15.527Z - updated_at: 2019-10-15T10:07:15.527Z - properties: - data: - $ref: '#/components/schemas/LedgerBillingGroupReport' - title: Retrieve Ledger Billing Group Report Response - type: object - List_Managed_Accounts_Response: + listManagedAccounts_200_response: example: data: - api_token: x6oexQNHTs-fZ7-QsDMOeg @@ -51937,9 +54427,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Managed Accounts Response type: object - Managed_Account_Response: + createManagedAccount_200_response: example: data: api_token: x6oexQNHTs-fZ7-QsDMOeg @@ -51963,15 +54452,13 @@ components: properties: data: $ref: '#/components/schemas/ManagedAccount' - title: Managed Account Response type: object - Unprocessable_Managed_Account_Entity: + createManagedAccount_422_response: properties: errors: items: $ref: '#/components/schemas/UnprocessableEntityError' type: array - title: Unprocessable Managed Account Entity type: object List_of_media_resources_response: example: @@ -52029,9 +54516,9 @@ components: to: - phone_number: +18665550001 status: queued - carrier: T-MOBILE USA, INC. + carrier: "T-MOBILE USA, INC." line_type: Wireless - text: Hello, World! + text: "Hello, World!" subject: From Telnyx! media: - url: https://pbs.twimg.com/profile_images/1142168442042118144/AW3F4fFD_400x400.png @@ -52405,7 +54892,7 @@ components: $ref: '#/components/schemas/PaginationMeta' title: List Messaging Profile Url Domains Response type: object - Search_Mobile_Operator_Networks_Response: + MobileOperatorNetworksGet_200_response: example: data: - country_code: US @@ -52434,9 +54921,55 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Search Mobile Operator Networks Response type: object - List_Notification_Channels: + createPushCredential_request: + oneOf: + - $ref: '#/components/schemas/CreateIosPushCredentialRequest' + - $ref: '#/components/schemas/CreateAndroidPushCredentialRequest' + NetworkList_200_response: + example: + data: + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/Network' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + type: object + NetworkCreate_200_response: + example: + data: null + properties: + data: + $ref: '#/components/schemas/Network' + type: object + NetworkInterfaceList_200_response: + example: + data: + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/NetworkInterface' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + type: object + listNotificationChannels_200_response: example: data: - channel_destination: +13125550000 @@ -52463,9 +54996,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Notification Channels type: object - Create_Notification_Channel: + createNotificationChannels_200_response: example: data: channel_destination: +13125550000 @@ -52477,51 +55009,8 @@ components: properties: data: $ref: '#/components/schemas/NotificationChannel' - title: Create Notification Channel type: object - Retrieve_Notification_Channel: - example: - data: - channel_destination: +13125550000 - updated_at: 2019-10-15T10:07:15.527Z - channel_type_id: sms - created_at: 2019-10-15T10:07:15.527Z - id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - notification_profile_id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - properties: - data: - $ref: '#/components/schemas/NotificationChannel' - title: Retrieve Notification Channel - type: object - Delete_Notification_Channel: - example: - data: - channel_destination: +13125550000 - updated_at: 2019-10-15T10:07:15.527Z - channel_type_id: sms - created_at: 2019-10-15T10:07:15.527Z - id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - notification_profile_id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - properties: - data: - $ref: '#/components/schemas/NotificationChannel' - title: Delete Notification Channel - type: object - Update_Notification_Channel: - example: - data: - channel_destination: +13125550000 - updated_at: 2019-10-15T10:07:15.527Z - channel_type_id: sms - created_at: 2019-10-15T10:07:15.527Z - id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - notification_profile_id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - properties: - data: - $ref: '#/components/schemas/NotificationChannel' - title: Update Notification Channel - type: object - List_Notification_Even_Conditions: + findNotificationsEventsConditions_200_response: example: data: - associated_record_type: phone_number @@ -52580,9 +55069,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Notification Even Conditions type: object - List_Notification_Events: + findNotificationsEvents_200_response: example: data: - notification_category: Calls @@ -52609,9 +55097,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Notification Events type: object - List_Notification_Profiles: + findNotificationsProfiles_200_response: example: data: - updated_at: 2019-10-15T10:07:15.527Z @@ -52634,33 +55121,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Notification Profiles - type: object - Create_Notification_Profile: - example: - data: - updated_at: 2019-10-15T10:07:15.527Z - name: name - created_at: 2019-10-15T10:07:15.527Z - id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - properties: - data: - $ref: '#/components/schemas/NotificationProfile' - title: Create Notification Profile - type: object - Retrieve_Notification_Profile: - example: - data: - updated_at: 2019-10-15T10:07:15.527Z - name: name - created_at: 2019-10-15T10:07:15.527Z - id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - properties: - data: - $ref: '#/components/schemas/NotificationProfile' - title: Retrieve Notification Profile type: object - Delete_Notification_Profiles: + createNotificationProfile_200_response: example: data: updated_at: 2019-10-15T10:07:15.527Z @@ -52670,21 +55132,8 @@ components: properties: data: $ref: '#/components/schemas/NotificationProfile' - title: Delete Notification Profiles type: object - Update_Notification_Profile: - example: - data: - updated_at: 2019-10-15T10:07:15.527Z - name: name - created_at: 2019-10-15T10:07:15.527Z - id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - properties: - data: - $ref: '#/components/schemas/NotificationProfile' - title: Update Notification Profile - type: object - List_Notification_Settings: + listNotificationSettings_200_response: example: data: - associated_record_type: phone_number @@ -52727,37 +55176,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Notification Settings - type: object - Create_Notification_Setting: - example: - data: - associated_record_type: phone_number - notification_channel_id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - updated_at: 2019-10-15T10:07:15.527Z - notification_event_condition_id: 70c7c5cb-dce2-4124-accb-870d39dbe852 - created_at: 2019-10-15T10:07:15.527Z - associated_record_type_value: +13125550000 - id: 8eb5b5f9-5893-423c-9f15-b487713d44d4 - notification_profile_id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - parameters: - - name: phone_number - value: +13125550000 - - name: phone_number - value: +13125550000 - status: enable-received - properties: - data: - $ref: '#/components/schemas/NotificationSetting' - title: Create Notification Setting type: object - Create_Notification_Setting_Async: - properties: - data: - $ref: '#/components/schemas/NotificationSetting' - title: Create Notification Setting Async - type: object - Retrieve_Notification_Setting: + createNotificationSetting_200_response: example: data: associated_record_type: phone_number @@ -52777,35 +55197,6 @@ components: properties: data: $ref: '#/components/schemas/NotificationSetting' - title: Retrieve Notification Setting - type: object - Delete_Notification_Setting: - example: - data: - associated_record_type: phone_number - notification_channel_id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - updated_at: 2019-10-15T10:07:15.527Z - notification_event_condition_id: 70c7c5cb-dce2-4124-accb-870d39dbe852 - created_at: 2019-10-15T10:07:15.527Z - associated_record_type_value: +13125550000 - id: 8eb5b5f9-5893-423c-9f15-b487713d44d4 - notification_profile_id: 12455643-3cf1-4683-ad23-1cd32f7d5e0a - parameters: - - name: phone_number - value: +13125550000 - - name: phone_number - value: +13125550000 - status: enable-received - properties: - data: - $ref: '#/components/schemas/NotificationSetting' - title: Delete Notification Setting - type: object - Delete_Notification_Setting_Async: - properties: - data: - $ref: '#/components/schemas/NotificationSetting' - title: Delete Notification Setting Async type: object List_Number_Block_Orders_Response: example: @@ -53057,7 +55448,8 @@ components: title: List Number Orders Response type: object Number_Order_Response: - example: {} + example: + data: null properties: data: $ref: '#/components/schemas/NumberOrderWithPhoneNumbers' @@ -53133,7 +55525,7 @@ components: $ref: '#/components/schemas/NumberReservation' title: Number Reservation Response type: object - Search_OTA_Update_Response: + OTAUpdatesList_200_response: example: data: - sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -53162,9 +55554,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Search OTA Update Response type: object - OTA_Update_Response: + OTAUpdateGET_200_response: example: data: created_at: 2018-02-02T22:25:27.521Z @@ -53182,7 +55573,6 @@ components: properties: data: $ref: '#/components/schemas/CompleteOTAUpdate' - title: OTA Update Response type: object List_Outbound_Voice_Profiles_Response: example: @@ -53342,7 +55732,7 @@ components: $ref: '#/components/schemas/PhoneNumberBlocksJob' title: Phone Number Blocks Job Delete Phone Number Block type: object - Retrieve_Phone_Number_Blocks_Job: + Phone_Number_Blocks_Job: example: data: id: 42587e44-3a3e-46de-9255-0c9a7a1d1ec7 @@ -53357,7 +55747,7 @@ components: properties: data: $ref: '#/components/schemas/PhoneNumberBlocksJob' - title: Retrieve Phone Number Blocks Job + title: Phone Number Blocks Job type: object List_Phone_Numbers_Response: example: @@ -53471,7 +55861,7 @@ components: type: array title: CSV Download Response type: object - List_Inbound_Channels_data: + listOutboundChannels_200_response_data: example: channels: 7 record_type: inbound_channels @@ -53485,17 +55875,16 @@ components: example: inbound_channels type: string type: object - List_Inbound_Channels: + listOutboundChannels_200_response: example: data: channels: 7 record_type: inbound_channels properties: data: - $ref: '#/components/schemas/List_Inbound_Channels_data' - title: List Inbound Channels + $ref: '#/components/schemas/listOutboundChannels_200_response_data' type: object - Update_Inbound_Channels: + updateOutboundChannels_request: properties: channels: description: The new number of concurrent channels for the account @@ -53503,9 +55892,8 @@ components: type: integer required: - channels - title: Update Inbound Channels type: object - Update_Inbounc_Channels_data: + updateOutboundChannels_200_response_data: example: channels: 7 record_type: inbound_channels @@ -53519,16 +55907,50 @@ components: example: inbound_channels type: string type: object - Update_Inbounc_Channels: + updateOutboundChannels_200_response: example: data: channels: 7 record_type: inbound_channels properties: data: - $ref: '#/components/schemas/Update_Inbounc_Channels_data' - title: Update Inbounc Channels + $ref: '#/components/schemas/updateOutboundChannels_200_response_data' + type: object + updateOutboundChannels_default_response_errors_inner_source: + example: + pointer: pointer + parameter: parameter + properties: + pointer: + description: JSON pointer (RFC6901) to the offending entity. + format: json-pointer + type: string + parameter: + description: Indicates which query parameter caused the error. + type: string type: object + updateOutboundChannels_default_response_errors_inner: + properties: + code: + format: int + type: string + title: + type: string + detail: + type: string + source: + $ref: '#/components/schemas/updateOutboundChannels_default_response_errors_inner_source' + meta: + type: object + required: + - code + - title + updateOutboundChannels_default_response: + properties: + errors: + items: + $ref: '#/components/schemas/updateOutboundChannels_default_response_errors_inner' + type: array List_Phone_Numbers_Background_Jobs_Response: example: data: @@ -53602,7 +56024,7 @@ components: $ref: '#/components/schemas/PaginationMeta' title: List Phone Numbers Background Jobs Response type: object - Create_Phone_Numbers_Job_Delete_Phone_Numbers: + Phone_Numbers_Job_Delete_Phone_Numbers: example: data: id: 42587e44-3a3e-46de-9255-0c9a7a1d1ec7 @@ -53636,9 +56058,9 @@ components: properties: data: $ref: '#/components/schemas/PhoneNumbersJob' - title: Create Phone Numbers Job Delete Phone Numbers + title: Phone Numbers Job Delete Phone Numbers type: object - Create_Phone_Numbers_Enable_Emergency: + Phone_Numbers_Enable_Emergency: example: data: id: 42587e44-3a3e-46de-9255-0c9a7a1d1ec7 @@ -53672,7 +56094,7 @@ components: properties: data: $ref: '#/components/schemas/PhoneNumbersJob' - title: Create Phone Numbers Enable Emergency + title: Phone Numbers Enable Emergency type: object Phone_Numbers_Job_Update_Phone_Numbers: example: @@ -53710,7 +56132,7 @@ components: $ref: '#/components/schemas/PhoneNumbersJob' title: Phone Numbers Job Update Phone Numbers type: object - Retrieve_Phone_Numbers_Job: + Phone_Numbers_Job: example: data: id: 42587e44-3a3e-46de-9255-0c9a7a1d1ec7 @@ -53744,7 +56166,7 @@ components: properties: data: $ref: '#/components/schemas/PhoneNumbersJob' - title: Retrieve Phone Numbers Job + title: Phone Numbers Job type: object List_Messaging_Settings_Response: example: @@ -53946,7 +56368,7 @@ components: $ref: '#/components/schemas/PhoneNumberDeletedDetailed' title: Phone Number Response type: object - Create_Phone_Number_Emergency_Enable: + Phone_Number_Enable_Emergency: example: data: id: "1293384261075731499" @@ -53978,13 +56400,7 @@ components: properties: data: $ref: '#/components/schemas/PhoneNumberWithVoiceSettings' - title: Create Phone Number Emergency Enable - type: object - Create_Phone_Number_Emergency_Requested: - properties: - data: - $ref: '#/components/schemas/PhoneNumberWithVoiceSettings' - title: Create Phone Number Emergency Requested + title: Phone Number Enable Emergency type: object Retrieve_Messaging_Settings_Response: example: @@ -54051,12 +56467,12 @@ components: $ref: '#/components/schemas/PhoneNumberWithVoiceSettings' title: Retrieve Phone Number Voice Response type: object - List_Regulatory_Requirements: + listRegulartoryRequirements_200_response: example: data: - regulatory_requirements: - - description: Address matching the DID area code (street, building number, - postal code, city and country) + - description: "Address matching the DID area code (street, building number,\ + \ postal code, city and country)" id: 12ade33a-21c0-473b-b055-b3c836e1c292 label: Address matching the DID area code field_type: address_id @@ -54065,9 +56481,9 @@ components: locality_limit: Identical locality as the numbers desired field_type: address record_type: regulatory_requirement - example: 311 W Superior St, Chicago, IL 60654 - - description: Address matching the DID area code (street, building number, - postal code, city and country) + example: "311 W Superior St, Chicago, IL 60654" + - description: "Address matching the DID area code (street, building number,\ + \ postal code, city and country)" id: 12ade33a-21c0-473b-b055-b3c836e1c292 label: Address matching the DID area code field_type: address_id @@ -54076,7 +56492,7 @@ components: locality_limit: Identical locality as the numbers desired field_type: address record_type: regulatory_requirement - example: 311 W Superior St, Chicago, IL 60654 + example: "311 W Superior St, Chicago, IL 60654" phone_number_type: local region_information: - region_name: CH @@ -54086,8 +56502,8 @@ components: phone_number: +41215471644 record_type: phone_number_regulatory_requirements - regulatory_requirements: - - description: Address matching the DID area code (street, building number, - postal code, city and country) + - description: "Address matching the DID area code (street, building number,\ + \ postal code, city and country)" id: 12ade33a-21c0-473b-b055-b3c836e1c292 label: Address matching the DID area code field_type: address_id @@ -54096,9 +56512,9 @@ components: locality_limit: Identical locality as the numbers desired field_type: address record_type: regulatory_requirement - example: 311 W Superior St, Chicago, IL 60654 - - description: Address matching the DID area code (street, building number, - postal code, city and country) + example: "311 W Superior St, Chicago, IL 60654" + - description: "Address matching the DID area code (street, building number,\ + \ postal code, city and country)" id: 12ade33a-21c0-473b-b055-b3c836e1c292 label: Address matching the DID area code field_type: address_id @@ -54107,7 +56523,7 @@ components: locality_limit: Identical locality as the numbers desired field_type: address record_type: regulatory_requirement - example: 311 W Superior St, Chicago, IL 60654 + example: "311 W Superior St, Chicago, IL 60654" phone_number_type: local region_information: - region_name: CH @@ -54128,9 +56544,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Regulatory Requirements type: object - Create_Portability_Check_Request: + postPortabilityCheck_request: properties: phone_numbers: description: The list of +E.164 formatted phone numbers to check for portability @@ -54141,9 +56556,8 @@ components: items: type: string type: array - title: Create Portability Check Request type: object - Portability_Check_Response: + postPortabilityCheck_201_response: example: data: - fast_portable: true @@ -54161,9 +56575,8 @@ components: items: $ref: '#/components/schemas/PortabilityCheckDetails' type: array - title: Portability Check Response type: object - List_Porting_Order: + listPortingOrders_200_response: example: data: - parent_support_key: pr_123abc @@ -54185,6 +56598,7 @@ components: field_type: document record_type: porting_requirement support_key: sr_123abc + phone_number_type: local webhook_url: https://example.com/porting_webhooks documents: invoice: ce74b771-d23d-4960-81ec-8741b3862146 @@ -54195,7 +56609,6 @@ components: record_type: porting_order old_service_provider_ocn: Unreal Communications updated_at: 2021-03-19T10:07:15.527Z - user_reference: Acct 123abc end_user: admin: account_number: 123abc @@ -54212,6 +56625,8 @@ components: locality: Chicago administrative_area: IL postal_code: "60654" + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + customer_reference: Acct 123abc phone_number_configuration: emergency_address_id: f1486bae-f067-460c-ad43-73a92848f902 messaging_profile_id: f1486bae-f067-460c-ad43-73a92848f901 @@ -54220,6 +56635,7 @@ components: - abc - "123" id: f1486bae-f067-460c-ad43-73a92848f902 + requirements_met: false status: details: - code: ENTITY_NAME_MISMATCH @@ -54250,6 +56666,7 @@ components: field_type: document record_type: porting_requirement support_key: sr_123abc + phone_number_type: local webhook_url: https://example.com/porting_webhooks documents: invoice: ce74b771-d23d-4960-81ec-8741b3862146 @@ -54260,7 +56677,6 @@ components: record_type: porting_order old_service_provider_ocn: Unreal Communications updated_at: 2021-03-19T10:07:15.527Z - user_reference: Acct 123abc end_user: admin: account_number: 123abc @@ -54277,6 +56693,8 @@ components: locality: Chicago administrative_area: IL postal_code: "60654" + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + customer_reference: Acct 123abc phone_number_configuration: emergency_address_id: f1486bae-f067-460c-ad43-73a92848f902 messaging_profile_id: f1486bae-f067-460c-ad43-73a92848f901 @@ -54285,6 +56703,7 @@ components: - abc - "123" id: f1486bae-f067-460c-ad43-73a92848f902 + requirements_met: false status: details: - code: ENTITY_NAME_MISMATCH @@ -54308,149 +56727,78 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Porting Order type: object - List_Draft_Porting_Order_Without_Pagination: + createPortingOrder_201_response: example: data: - - parent_support_key: pr_123abc - user_feedback: - user_comment: I loved my experience porting numbers with Telnyx - user_rating: 5 - activation_settings: - activation_status: Active - foc_datetime_requested: 2021-03-19T10:07:15.527Z - foc_datetime_actual: 2021-03-19T10:07:15.527Z + - activation_settings: + activation_status: null fast_port_eligible: true - requirements: - - requirement_type_id: 59b0762a-b274-4f76-ac32-4d5cf0272e66 - field_value: 9787fb5f-cbe5-4de4-b765-3303774ee9fe - field_type: document - record_type: porting_requirement - - requirement_type_id: 59b0762a-b274-4f76-ac32-4d5cf0272e66 - field_value: 9787fb5f-cbe5-4de4-b765-3303774ee9fe - field_type: document - record_type: porting_requirement - support_key: sr_123abc - webhook_url: https://example.com/porting_webhooks - documents: - invoice: ce74b771-d23d-4960-81ec-8741b3862146 - loa: 64ffb720-04c7-455b-92d6-20fcca92e935 - porting_phone_numbers_count: 1 - created_at: 2021-03-19T10:07:15.527Z + foc_datetime_actual: null + foc_datetime_requested: null + created_at: 2022-03-17T18:01:01Z + customer_reference: null description: FP Telnyx - record_type: porting_order - old_service_provider_ocn: Unreal Communications - updated_at: 2021-03-19T10:07:15.527Z - user_reference: Acct 123abc + documents: + loa: null + invoice: null end_user: admin: - account_number: 123abc - pin_passcode: "1234" - entity_name: Porter McPortersen - business_identifier: abc123 - auth_person_name: Porter McPortersen II - billing_phone_number: "13035551234" - tax_identifier: 1234abcd + account_number: null + auth_person_name: null + billing_phone_number: null + business_identifier: null + entity_name: null + pin_passcode: null + tax_identifier: null location: - extended_address: Suite 504 - street_address: 311 W. Superior St - country_code: US - locality: Chicago - administrative_area: IL - postal_code: "60654" + administrative_area: null + country_code: null + extended_address: null + locality: null + postal_code: null + street_address: null + id: b0ea6d6f-de31-4079-a536-992e0c98b037 + misc: null + old_service_provider_ocn: Unreal Communications + parent_support_key: null phone_number_configuration: - emergency_address_id: f1486bae-f067-460c-ad43-73a92848f902 - messaging_profile_id: f1486bae-f067-460c-ad43-73a92848f901 - connection_id: f1486bae-f067-460c-ad43-73a92848f902 - tags: - - abc - - "123" - id: f1486bae-f067-460c-ad43-73a92848f902 - status: - details: - - code: ENTITY_NAME_MISMATCH - description: Entity name does not match that on the CSR - - code: ENTITY_NAME_MISMATCH - description: Entity name does not match that on the CSR - value: ported - misc: - new_billing_phone_number: new_billing_phone_number - remaining_numbers_action: disconnect - type: full - - parent_support_key: pr_123abc - user_feedback: - user_comment: I loved my experience porting numbers with Telnyx - user_rating: 5 - activation_settings: - activation_status: Active - foc_datetime_requested: 2021-03-19T10:07:15.527Z - foc_datetime_actual: 2021-03-19T10:07:15.527Z - fast_port_eligible: true - requirements: - - requirement_type_id: 59b0762a-b274-4f76-ac32-4d5cf0272e66 - field_value: 9787fb5f-cbe5-4de4-b765-3303774ee9fe - field_type: document - record_type: porting_requirement - - requirement_type_id: 59b0762a-b274-4f76-ac32-4d5cf0272e66 - field_value: 9787fb5f-cbe5-4de4-b765-3303774ee9fe - field_type: document - record_type: porting_requirement - support_key: sr_123abc - webhook_url: https://example.com/porting_webhooks - documents: - invoice: ce74b771-d23d-4960-81ec-8741b3862146 - loa: 64ffb720-04c7-455b-92d6-20fcca92e935 + connection_id: null + emergency_address_id: null + messaging_profile_id: null + tags: [] + phone_number_type: local + phone_numbers: + - activation_status: null + phone_number: "{e.164 TN}" + phone_number_type: local + portability_status: confirmed + porting_order_id: b0ea6d6f-de31-4079-a536-992e0c98b037 + porting_order_status: draft + record_type: porting_phone_number + requirements_status: requirement-info-pending + support_key: null porting_phone_numbers_count: 1 - created_at: 2021-03-19T10:07:15.527Z - description: FP Telnyx record_type: porting_order - old_service_provider_ocn: Unreal Communications - updated_at: 2021-03-19T10:07:15.527Z - user_reference: Acct 123abc - end_user: - admin: - account_number: 123abc - pin_passcode: "1234" - entity_name: Porter McPortersen - business_identifier: abc123 - auth_person_name: Porter McPortersen II - billing_phone_number: "13035551234" - tax_identifier: 1234abcd - location: - extended_address: Suite 504 - street_address: 311 W. Superior St - country_code: US - locality: Chicago - administrative_area: IL - postal_code: "60654" - phone_number_configuration: - emergency_address_id: f1486bae-f067-460c-ad43-73a92848f902 - messaging_profile_id: f1486bae-f067-460c-ad43-73a92848f901 - connection_id: f1486bae-f067-460c-ad43-73a92848f902 - tags: - - abc - - "123" - id: f1486bae-f067-460c-ad43-73a92848f902 + requirements: [] + requirements_met: false status: - details: - - code: ENTITY_NAME_MISMATCH - description: Entity name does not match that on the CSR - - code: ENTITY_NAME_MISMATCH - description: Entity name does not match that on the CSR - value: ported - misc: - new_billing_phone_number: new_billing_phone_number - remaining_numbers_action: disconnect - type: full + details: [] + value: draft + support_key: null + updated_at: 2022-03-17T18:01:01Z + user_feedback: + user_comment: null + user_rating: null + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + webhook_url: null properties: data: items: $ref: '#/components/schemas/PortingOrder' type: array - title: List Draft Porting Order Without Pagination type: object - List_Porting_Orders_Exception_Types: + listPortingOrdersExceptionTypes_200_response: example: data: - code: ENTITY_NAME_MISMATCH @@ -54462,18 +56810,17 @@ components: items: $ref: '#/components/schemas/PortingOrdersExceptionType' type: array - title: List Porting Orders Exception Types type: object - Show_Porting_Order_meta: + getPortingOrder_200_response_meta: example: - phone_numbers_url: /porting_phone_numbers?filter[porting_order_id]=a700d03c-4062-4091-8189-1b75216cf7a2 + phone_numbers_url: "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" properties: phone_numbers_url: description: Link to list all phone numbers - example: /porting_phone_numbers?filter[porting_order_id]=a700d03c-4062-4091-8189-1b75216cf7a2 + example: "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" type: string type: object - Show_Porting_Order: + getPortingOrder_200_response: example: data: parent_support_key: pr_123abc @@ -54495,6 +56842,7 @@ components: field_type: document record_type: porting_requirement support_key: sr_123abc + phone_number_type: local webhook_url: https://example.com/porting_webhooks documents: invoice: ce74b771-d23d-4960-81ec-8741b3862146 @@ -54505,7 +56853,6 @@ components: record_type: porting_order old_service_provider_ocn: Unreal Communications updated_at: 2021-03-19T10:07:15.527Z - user_reference: Acct 123abc end_user: admin: account_number: 123abc @@ -54522,6 +56869,8 @@ components: locality: Chicago administrative_area: IL postal_code: "60654" + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + customer_reference: Acct 123abc phone_number_configuration: emergency_address_id: f1486bae-f067-460c-ad43-73a92848f902 messaging_profile_id: f1486bae-f067-460c-ad43-73a92848f901 @@ -54530,6 +56879,7 @@ components: - abc - "123" id: f1486bae-f067-460c-ad43-73a92848f902 + requirements_met: false status: details: - code: ENTITY_NAME_MISMATCH @@ -54542,15 +56892,85 @@ components: remaining_numbers_action: disconnect type: full meta: - phone_numbers_url: /porting_phone_numbers?filter[porting_order_id]=a700d03c-4062-4091-8189-1b75216cf7a2 + phone_numbers_url: "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" properties: data: $ref: '#/components/schemas/PortingOrder' meta: - $ref: '#/components/schemas/Show_Porting_Order_meta' - title: Show Porting Order + $ref: '#/components/schemas/getPortingOrder_200_response_meta' type: object - Show_Porting_Orders_Activation_Job: + updatePortingOrder_200_response_meta: + properties: + phone_numbers_url: + description: Link to list all phone numbers + type: string + type: object + updatePortingOrder_200_response: + example: + data: + activation_settings: + activation_status: null + fast_port_eligible: true + foc_datetime_actual: null + foc_datetime_requested: 2022-04-08T15:00:00Z + created_at: 2022-03-24T14:22:28Z + customer_reference: Test1234 + description: FP Telnyx + documents: + loa: null + invoice: null + end_user: + admin: + account_number: 123abc + auth_person_name: Porter McPortersen II + billing_phone_number: +13035551234 + business_identifier: abc123 + entity_name: Porter McPortersen + pin_passcode: "1234" + tax_identifier: 1234abcd + location: + administrative_area: IL + country_code: US + extended_address: Suite 504 + locality: Chicago + postal_code: "60654" + street_address: 311 W. Superior St + id: eef10fb8-f3df-4c67-97c5-e18179723222 + misc: + new_billing_phone_number: null + remaining_numbers_action: null + type: full + old_service_provider_ocn: Unreal Communications + parent_support_key: null + phone_number_configuration: + connection_id: "1752379429071357070" + emergency_address_id: null + messaging_profile_id: null + tags: [] + phone_number_type: local + porting_phone_numbers_count: 1 + record_type: porting_order + requirements: [] + requirements_met: false + status: + details: [] + value: draft + support_key: null + updated_at: 2022-03-24T14:26:53Z + user_feedback: + user_comment: null + user_rating: null + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + webhook_url: https://example.com/porting_webhooks + meta: + phone_numbers_url: "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" + properties: + data: + $ref: '#/components/schemas/PortingOrder' + meta: + $ref: '#/components/schemas/updatePortingOrder_200_response_meta' + type: object + activatePortingOrder_202_response: example: data: updated_at: 2021-03-19T10:07:15.527Z @@ -54561,9 +56981,138 @@ components: properties: data: $ref: '#/components/schemas/PortingOrdersActivationJob' - title: Show Porting Orders Activation Job type: object - List_Porting_Orders_Activation_Jobs: + cancelPortingOrder_200_response: + example: + data: + activation_settings: + activation_status: null + fast_port_eligible: true + foc_datetime_actual: null + foc_datetime_requested: 2022-04-08T15:00:00Z + created_at: 2022-03-24T14:22:28Z + customer_reference: Test1234 + description: FP Telnyx + documents: + loa: 3a5b98a0-5049-47c3-96e1-aa6c8d119117 + invoice: 3a5b98a0-5049-47c3-96e1-aa6c8d119117 + end_user: + admin: + account_number: 123abc + auth_person_name: Porter McPortersen II + billing_phone_number: +13035551234 + business_identifier: abc123 + entity_name: Porter McPortersen + pin_passcode: "1234" + tax_identifier: 1234abcd + location: + administrative_area: IL + country_code: US + extended_address: Suite 504 + locality: Chicago + postal_code: "60654" + street_address: 311 W. Superior St + id: eef10fb8-f3df-4c67-97c5-e18179723222 + misc: + new_billing_phone_number: null + remaining_numbers_action: null + type: full + old_service_provider_ocn: Unreal Communications + parent_support_key: pr_4bec1a + phone_number_configuration: + connection_id: "1752379429071357070" + emergency_address_id: null + messaging_profile_id: null + tags: [] + phone_number_type: local + porting_phone_numbers_count: 1 + record_type: porting_order + requirements: [] + requirements_met: true + status: + details: [] + value: cancel-pending + support_key: sr_10b316 + updated_at: 2022-03-24T16:43:35Z + user_feedback: + user_comment: null + user_rating: null + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + webhook_url: https://example.com/porting_webhooks + meta: + phone_numbers_url: "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" + properties: + data: + $ref: '#/components/schemas/PortingOrder' + meta: + $ref: '#/components/schemas/updatePortingOrder_200_response_meta' + type: object + confirmPortingOrder_200_response: + example: + data: + activation_settings: + activation_status: null + fast_port_eligible: true + foc_datetime_actual: null + foc_datetime_requested: 2022-04-08T15:00:00Z + created_at: 2022-03-24T14:22:28Z + customer_reference: Test1234 + description: FP Telnyx + documents: + loa: 3a5b98a0-5049-47c3-96e1-aa6c8d119117 + invoice: 3a5b98a0-5049-47c3-96e1-aa6c8d119117 + end_user: + admin: + account_number: 123abc + auth_person_name: Porter McPortersen II + billing_phone_number: +13035551234 + business_identifier: abc123 + entity_name: Porter McPortersen + pin_passcode: "1234" + tax_identifier: 1234abcd + location: + administrative_area: IL + country_code: US + extended_address: Suite 504 + locality: Chicago + postal_code: "60654" + street_address: 311 W. Superior St + id: eef10fb8-f3df-4c67-97c5-e18179723222 + misc: + new_billing_phone_number: null + remaining_numbers_action: null + type: full + old_service_provider_ocn: Unreal Communications + parent_support_key: pr_4bec1a + phone_number_configuration: + connection_id: "1752379429071357070" + emergency_address_id: null + messaging_profile_id: null + tags: [] + phone_number_type: local + porting_phone_numbers_count: 1 + record_type: porting_order + requirements: [] + requirements_met: true + status: + details: [] + value: in-process + support_key: sr_10b316 + updated_at: 2022-03-24T16:42:43Z + user_feedback: + user_comment: null + user_rating: null + user_id: 40d68ba2-0847-4df2-be9c-b0e0cb673e75 + webhook_url: https://example.com/porting_webhooks + meta: + phone_numbers_url: "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" + properties: + data: + $ref: '#/components/schemas/PortingOrder' + meta: + $ref: '#/components/schemas/updatePortingOrder_200_response_meta' + type: object + listPortingOrdersActivationJobs_200_response: example: data: - updated_at: 2021-03-19T10:07:15.527Z @@ -54588,9 +57137,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Porting Orders Activation Jobs type: object - List_Allowed_Foc_Window: + listAllowedFocWindows_200_response: example: data: - started_at: 2021-03-19T10:07:15.527Z @@ -54611,9 +57159,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Allowed Foc Window type: object - List_Porting_Orders_Comments: + listPortingOrdersComments_200_response: example: data: - user_type: user @@ -54640,9 +57187,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Porting Orders Comments type: object - Show_Porting_Order_Comment: + createPortingOrderComment_201_response: example: data: user_type: user @@ -54654,9 +57200,8 @@ components: properties: data: $ref: '#/components/schemas/PortingOrdersComment' - title: Show Porting Order Comment type: object - List_Porting_Order_Documents: + listPortingOrderDocuments_200_response: example: data: - created_at: 2020-03-19T10:07:15.527Z @@ -54681,9 +57226,37 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Porting Order Documents type: object - Porting_Order_Documents_Created: + uploadPortingOrderDocuments_request_documents_inner: + properties: + document_type: + description: The type of the document. + enum: + - loa + - invoice + - other + example: loa + type: string + document_id: + description: Uniquely identifies a document uploaded via the /v2/documents + endpoint. + example: 5f940c35-ef28-4408-bb95-af73b047d589 + type: string + required: + - document_id + - document_type + type: object + uploadPortingOrderDocuments_request: + properties: + documents: + description: A list of documents to be associated with a porting order. + items: + $ref: '#/components/schemas/uploadPortingOrderDocuments_request_documents_inner' + type: array + required: + - documents + type: object + uploadPortingOrderDocuments_201_response: example: data: - created_at: 2020-03-19T10:07:15.527Z @@ -54701,9 +57274,48 @@ components: items: $ref: '#/components/schemas/PortingOrderDocument' type: array - title: Porting Order Documents Created type: object - Sub_Request_By_Porting_Order: + ListPortingOrderRequirements_200_response: + example: + data: + - requirement_type: + name: Latest Invoice + description: A copy of the latest phone bill from the current provider + id: 53970723-fbff-4f46-a975-f62be6c1a585 + type: document + acceptance_criteria: + acceptable_values: [] + example: Most recent phone bill + field_value: 9787fb5f-cbe5-4de4-b765-3303774ee9fe + requirement_status: approved + field_type: document + record_type: porting_requirement + - requirement_type: + name: Latest Invoice + description: A copy of the latest phone bill from the current provider + id: 53970723-fbff-4f46-a975-f62be6c1a585 + type: document + acceptance_criteria: + acceptable_values: [] + example: Most recent phone bill + field_value: 9787fb5f-cbe5-4de4-b765-3303774ee9fe + requirement_status: approved + field_type: document + record_type: porting_requirement + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/PortingOrderRequirementDetail' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + type: object + getPortingOrderSubRequest_200_response: example: data: sub_request_id: 9787fb5f-cbe5-4de4-b765-3303774ee9fe @@ -54711,9 +57323,8 @@ components: properties: data: $ref: '#/components/schemas/GetSubRequestByPortingOrder' - title: Sub Request By Porting Order type: object - List_Porting_Phone_Numbers: + listPortingPhoneNumbers_200_response: example: data: - activation_status: Active @@ -54746,33 +57357,64 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Porting Phone Numbers type: object - List_Portout_Response: + listPortoutRequest_200_response: example: data: - - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + - reason: reason + support_key: PO_764725 + city: Chicago + created_at: 2018-02-02T22:25:27.521Z + lsr: + - https://example.com/files/lsr.pdf + end_user_name: McPortersen + service_address: 000 Example Street + spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + pon: "00000000" + updated_at: 2018-02-02T22:25:27.521Z + vendor: 0e66ed3b-37e6-4fed-93d6-a30ce2493661 + id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + state: IL + carrier_name: test + inserted_at: 2018-02-02T22:25:27.521Z + authorized_name: McPortersen + zip: "00000" + current_carrier: telnyx + already_ported: false record_type: portout phone_numbers: - +35312345678 - carrier_name: test - foc_date: 2018-02-02T22:25:27.521Z requested_foc_date: 2018-02-02T22:25:27.521Z - spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - status: pending + user_id: 7865816a-ee85-4e50-b19e-52983dcc6d4a + foc_date: 2018-02-02T22:25:27.521Z + status: rejected + - reason: reason + support_key: PO_764725 + city: Chicago created_at: 2018-02-02T22:25:27.521Z + lsr: + - https://example.com/files/lsr.pdf + end_user_name: McPortersen + service_address: 000 Example Street + spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + pon: "00000000" updated_at: 2018-02-02T22:25:27.521Z - - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + vendor: 0e66ed3b-37e6-4fed-93d6-a30ce2493661 + id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + state: IL + carrier_name: test + inserted_at: 2018-02-02T22:25:27.521Z + authorized_name: McPortersen + zip: "00000" + current_carrier: telnyx + already_ported: false record_type: portout phone_numbers: - +35312345678 - carrier_name: test - foc_date: 2018-02-02T22:25:27.521Z requested_foc_date: 2018-02-02T22:25:27.521Z - spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - status: pending - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z + user_id: 7865816a-ee85-4e50-b19e-52983dcc6d4a + foc_date: 2018-02-02T22:25:27.521Z + status: rejected meta: page_number: 3 total_pages: 13 @@ -54785,28 +57427,42 @@ components: type: array meta: $ref: '#/components/schemas/Metadata' - title: List Portout Response type: object - Portout_Response: + findPortoutRequest_200_response: example: data: + reason: reason + support_key: PO_764725 + city: Chicago + created_at: 2018-02-02T22:25:27.521Z + lsr: + - https://example.com/files/lsr.pdf + end_user_name: McPortersen + service_address: 000 Example Street + spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + pon: "00000000" + updated_at: 2018-02-02T22:25:27.521Z + vendor: 0e66ed3b-37e6-4fed-93d6-a30ce2493661 id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 + state: IL + carrier_name: test + inserted_at: 2018-02-02T22:25:27.521Z + authorized_name: McPortersen + zip: "00000" + current_carrier: telnyx + already_ported: false record_type: portout phone_numbers: - +35312345678 - carrier_name: test - foc_date: 2018-02-02T22:25:27.521Z requested_foc_date: 2018-02-02T22:25:27.521Z - spid: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - status: pending - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z + user_id: 7865816a-ee85-4e50-b19e-52983dcc6d4a + foc_date: 2018-02-02T22:25:27.521Z + status: rejected properties: data: $ref: '#/components/schemas/PortoutDetails' - title: Portout Response type: object - List_Portout_Comments: + findPortoutComments_200_response: example: data: - id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -54833,16 +57489,14 @@ components: type: array meta: $ref: '#/components/schemas/Metadata' - title: List Portout Comments type: object - Create_Comment_Portout_Request: + postPortRequestComment_request: properties: body: description: Comment to post on this portout request type: string - title: Create Comment Portout Request type: object - Portout_Comment_Resposne: + postPortRequestComment_201_response: example: data: id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 @@ -54854,9 +57508,8 @@ components: properties: data: $ref: '#/components/schemas/PortoutComment' - title: Portout Comment Resposne type: object - PortOut_List_Supporting_Documents_Response: + getPortRequestSupportingDocuments_201_response: example: data: - id: 5a16902a-2ee9-4882-a247-420fc6627b62 @@ -54878,9 +57531,8 @@ components: items: $ref: '#/components/schemas/PortOutSupportingDocument' type: array - title: PortOut List Supporting Documents Response type: object - _portouts__id__supporting_documents_documents: + postPortRequestSupportingDocuments_request_documents_inner: properties: type: description: Identifies the type of the document @@ -54898,50 +57550,24 @@ components: - document_id - type type: object - Create_Porting_Supporting_Docs_Request: + postPortRequestSupportingDocuments_request: properties: documents: description: List of supporting documents parameters items: - $ref: '#/components/schemas/_portouts__id__supporting_documents_documents' + $ref: '#/components/schemas/postPortRequestSupportingDocuments_request_documents_inner' maxItems: 10 minItems: 1 type: array - title: Create Porting Supporting Docs Request - type: object - Create_PortOut_Supporting_Documents_Response: - example: - data: - - id: 5a16902a-2ee9-4882-a247-420fc6627b62 - record_type: supporting_document - type: loa - portout_id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - document_id: f1c5e079-9d82-4f50-95bc-ae2f6b8d84d7 - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - - id: 5a16902a-2ee9-4882-a247-420fc6627b62 - record_type: supporting_document - type: loa - portout_id: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 - document_id: f1c5e079-9d82-4f50-95bc-ae2f6b8d84d7 - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - properties: - data: - items: - $ref: '#/components/schemas/PortOutSupportingDocument' - type: array - title: Create PortOut Supporting Documents Response type: object - Update_Portout_Status_Request: + updatePortoutRequest_request: properties: reason: description: Provide a reason if rejecting the port out request example: I do not recognize this transaction type: string - title: Update Portout Status Request type: object - Get_All_Private_Wireless_Gateways_Response: + getPrivateWirelessGateways_200_response: example: data: - ip_range: 100.64.1.0/24 @@ -54949,24 +57575,34 @@ components: updated_at: 2018-02-02T22:25:27.521Z name: My private wireless gateway created_at: 2018-02-02T22:25:27.521Z + assigned_resources: + - count: 1 + record_type: sim_card_group + - count: 1 + record_type: sim_card_group id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: private_wireless_gateway region_code: ashburn-va status: - error_description: "null" - error_code: "null" + error_description: error_description + error_code: error_code value: provisioned - ip_range: 100.64.1.0/24 network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 updated_at: 2018-02-02T22:25:27.521Z name: My private wireless gateway created_at: 2018-02-02T22:25:27.521Z + assigned_resources: + - count: 1 + record_type: sim_card_group + - count: 1 + record_type: sim_card_group id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: private_wireless_gateway region_code: ashburn-va status: - error_description: "null" - error_code: "null" + error_description: error_description + error_code: error_code value: provisioned meta: page_number: 2 @@ -54980,9 +57616,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Get All Private Wireless Gateways Response type: object - Create_Private_Wireless_Gatweway_Request: + createPrivateWirelessGateway_request: properties: network_id: description: The identification of the related network resource. @@ -54996,9 +57631,8 @@ components: required: - name - network_id - title: Create Private Wireless Gatweway Request type: object - Create_Private_Wireless_Gateway_Response: + createPrivateWirelessGateway_202_response: example: data: ip_range: 100.64.1.0/24 @@ -55006,57 +57640,46 @@ components: updated_at: 2018-02-02T22:25:27.521Z name: My private wireless gateway created_at: 2018-02-02T22:25:27.521Z + assigned_resources: + - count: 1 + record_type: sim_card_group + - count: 1 + record_type: sim_card_group id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: private_wireless_gateway region_code: ashburn-va status: - error_description: "null" - error_code: "null" + error_description: error_description + error_code: error_code value: provisioned properties: data: $ref: '#/components/schemas/PrivateWirelessGateway' - title: Create Private Wireless Gateway Response type: object - Get_Private_Wireless_Gateway_Response: + PublicInternetGatewayList_200_response: example: data: - ip_range: 100.64.1.0/24 - network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - updated_at: 2018-02-02T22:25:27.521Z - name: My private wireless gateway - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: private_wireless_gateway - region_code: ashburn-va - status: - error_description: "null" - error_code: "null" - value: provisioned + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 properties: data: - $ref: '#/components/schemas/PrivateWirelessGateway' - title: Get Private Wireless Gateway Response + items: + $ref: '#/components/schemas/PublicInternetGatewayRead' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' type: object - Delete_Private_Wireless_Gateway_Response: + PublicInternetGatewayCreate_202_response: example: - data: - ip_range: 100.64.1.0/24 - network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - updated_at: 2018-02-02T22:25:27.521Z - name: My private wireless gateway - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: private_wireless_gateway - region_code: ashburn-va - status: - error_description: "null" - error_code: "null" - value: provisioned + data: null properties: data: - $ref: '#/components/schemas/PrivateWirelessGateway' - title: Delete Private Wireless Gateway Response + $ref: '#/components/schemas/PublicInternetGatewayRead' type: object Queue_Response: example: @@ -55202,7 +57825,32 @@ components: $ref: '#/components/schemas/Recording' title: Get Recording Response type: object - Doc_Reqs_List_Requirement_Types_Response: + RegionList_200_response: + example: + data: + - code: ashburn-va + updated_at: 2018-02-02T22:25:27.521Z + name: Ashburn + created_at: 2018-02-02T22:25:27.521Z + supported_interfaces: + - wireguard_interface + - wireguard_interface + record_type: region + - code: ashburn-va + updated_at: 2018-02-02T22:25:27.521Z + name: Ashburn + created_at: 2018-02-02T22:25:27.521Z + supported_interfaces: + - wireguard_interface + - wireguard_interface + record_type: region + properties: + data: + items: + $ref: '#/components/schemas/Region' + type: array + type: object + docReqsListRequirementTypes_200_response: example: data: - updated_at: 2021-04-12T20:20:20.020Z @@ -55217,7 +57865,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" - updated_at: 2021-04-12T20:20:20.020Z name: Proof of Address description: Proves the customer has a physical address in the same locality @@ -55230,7 +57878,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" meta: page_number: 2 total_pages: 3 @@ -55243,9 +57891,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Doc Reqs List Requirement Types Response type: object - Doc_Reqs_Requirement_Type_Response: + docReqsRetrieveRequirementType_200_response: example: data: updated_at: 2021-04-12T20:20:20.020Z @@ -55260,13 +57907,12 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" properties: data: $ref: '#/components/schemas/DocReqsRequirementType' - title: Doc Reqs Requirement Type Response type: object - List_Requirements_Response: + listRequirements_200_response: example: data: - requirements_types: @@ -55282,7 +57928,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" - updated_at: 2021-04-12T20:20:20.020Z name: Proof of Address description: Proves the customer has a physical address in the same locality @@ -55295,7 +57941,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" country_code: FR phone_number_type: local updated_at: 2021-04-12T20:20:20.020Z @@ -55317,7 +57963,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" - updated_at: 2021-04-12T20:20:20.020Z name: Proof of Address description: Proves the customer has a physical address in the same locality @@ -55330,7 +57976,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" country_code: FR phone_number_type: local updated_at: 2021-04-12T20:20:20.020Z @@ -55351,9 +57997,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Requirements Response type: object - Doc_Reqs_Requirement_Response: + docReqsRetrieveDocumentRequirements_200_response: example: data: requirements_types: @@ -55369,7 +58014,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" - updated_at: 2021-04-12T20:20:20.020Z name: Proof of Address description: Proves the customer has a physical address in the same locality @@ -55382,7 +58027,7 @@ components: locality_limit: Issued by the same country that the phone number belongs to record_type: requirement_type - example: Utility bill, internet bill, phone bill, or lease + example: "Utility bill, internet bill, phone bill, or lease" country_code: FR phone_number_type: local updated_at: 2021-04-12T20:20:20.020Z @@ -55394,9 +58039,8 @@ components: properties: data: $ref: '#/components/schemas/DocReqsRequirement' - title: Doc Reqs Requirement Response type: object - List_Room_Compositions_Response: + ListRoomCompositions_200_response: example: data: - completed_at: 2022-02-25T05:39:56.377426Z @@ -55459,41 +58103,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Room Compositions Response - type: object - Create_Room_Composition_Response: - example: - data: - completed_at: 2022-02-25T05:39:56.377426Z - download_url: null - duration_secs: 84 - ended_at: 2022-02-24T23:22:24.577677Z - format: mp4 - id: 7103dc53-ee59-4b54-a58b-c77d99ceb037 - record_type: composition - resolution: 1280x720 - room_id: f981dbb3-228a-44e9-ac54-e87f0e2658b0 - session_id: 8f728d7b-00e2-4c59-8c27-f564b828df87 - size_mb: 6 - started_at: 2022-02-24T23:21:00.077209Z - status: enqueued - user_id: 12a04ec9-0f91-4a91-9f3a-a19d9931182e - video_layout: - first: - height: 720 - video_sources: - - '*' - width: 1280 - x_pos: 0 - y_pos: 0 - z_pos: 0 - webhook_event_url: https://webhook.site/544663ce-b692-4f9c-80ed-e5ad97cd5c02 - properties: - data: - $ref: '#/components/schemas/RoomComposition' - title: Create Room Composition Response type: object - Get_Room_Composition_Response: + CreateRoomComposition_202_response: example: data: completed_at: 2022-02-25T05:39:56.377426Z @@ -55523,9 +58134,8 @@ components: properties: data: $ref: '#/components/schemas/RoomComposition' - title: Get Room Composition Response type: object - List_Room_Participants_Response: + ListRoomParticipants_200_response: example: data: - id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55554,9 +58164,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Room Participants Response type: object - Get_Room_Participant_Response: + ViewRoomParticipant_200_response: example: data: id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55569,9 +58178,8 @@ components: properties: data: $ref: '#/components/schemas/RoomParticipant' - title: Get Room Participant Response type: object - List_Room_Recordings_Response: + ListRoomRecordings_200_response: example: data: - id: 6b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55618,7 +58226,6 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Room Recordings Response type: object Bulk_Room_Recordings_Delete_Response_data: example: @@ -55638,7 +58245,7 @@ components: $ref: '#/components/schemas/Bulk_Room_Recordings_Delete_Response_data' title: Bulk Room Recordings Delete Response type: object - Get_Room_Recording_Response: + ViewRoomRecording_200_response: example: data: id: 6b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55660,9 +58267,8 @@ components: properties: data: $ref: '#/components/schemas/RoomRecording' - title: Get Room Recording Response type: object - List_Room_Sessions_Response: + ListRoomSessions_200_response: example: data: - id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55693,9 +58299,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Room Sessions Response type: object - Get_Room_Session_Response: + ViewRoomSession_200_response: example: data: id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55709,9 +58314,8 @@ components: properties: data: $ref: '#/components/schemas/RoomSession' - title: Get Room Session Response type: object - Action_Success_Response_data: + EndSession_200_response_data: example: result: ok properties: @@ -55719,16 +58323,15 @@ components: example: ok type: string type: object - Action_Success_Response: + EndSession_200_response: example: data: result: ok properties: data: - $ref: '#/components/schemas/Action_Success_Response_data' - title: Action Success Response + $ref: '#/components/schemas/EndSession_200_response_data' type: object - List_Rooms_Response: + ListRooms_200_response: example: data: - id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55781,9 +58384,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: List Rooms Response type: object - Create_Room_Response: + CreateRoom_201_response: example: data: id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 @@ -55808,63 +58410,8 @@ components: properties: data: $ref: '#/components/schemas/Room' - title: Create Room Response type: object - Get_Room_Response: - example: - data: - id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 - max_participants: 50 - unique_name: My Room - created_at: 2021-04-16T09:46:20.954863Z - updated_at: 2021-04-16T10:24:55.962200Z - active_session_id: 7b61621f-62e0-4aad-ab11-9fd19e272e74 - enable_recording: true - webhook_event_failover_url: https://failover.example.com - webhook_timeout_secs: 25 - webhook_event_url: https://www.example.com - sessions: - - id: 7b61621f-62e0-4aad-ab11-9fd19e272e74 - room_id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 - active: true - created_at: 2021-04-16T09:46:20.954863Z - updated_at: 2021-04-16T10:24:55.962200Z - participants: [] - record_type: room_session - record_type: room - properties: - data: - $ref: '#/components/schemas/Room' - title: Get Room Response - type: object - Patch_Room_Response: - example: - data: - id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 - max_participants: 50 - unique_name: My Room - created_at: 2021-04-16T09:46:20.954863Z - updated_at: 2021-04-16T10:24:55.962200Z - active_session_id: 7b61621f-62e0-4aad-ab11-9fd19e272e74 - enable_recording: true - webhook_event_failover_url: https://failover.example.com - webhook_timeout_secs: 25 - webhook_event_url: https://www.example.com - sessions: - - id: 7b61621f-62e0-4aad-ab11-9fd19e272e74 - room_id: 7b61621f-62e0-4aad-ab11-9fd19e272e73 - active: true - created_at: 2021-04-16T09:46:20.954863Z - updated_at: 2021-04-16T10:24:55.962200Z - participants: [] - record_type: room_session - record_type: room - properties: - data: - $ref: '#/components/schemas/Room' - title: Patch Room Response - type: object - Create_Room_Client_Token_Response_data: + CreateRoomClientToken_201_response_data: example: token: eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0.eyJhdWQiOiJ0ZWxueXhfYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjE5MDk0Mjk1LCJncmFudHMiOlt7ImFjdGlvbnMiOlsiam9pbiJdLCJyZXNvdXJjZXMiOlsidGVsbnl4OnZpZGVvOnJvb21zOjllMmEwY2JlLWNlNjYtNDExZS1hMWFjLTQ2OGYwYjEwM2M5YSJdLCJzdWJqZWN0cyI6WyJ0ZWxueXg6dXNlcnM6NzgyYjJjYmUtODQ2Ni00ZTNmLWE0ZDMtOTc4MWViNTc3ZTUwIl19XSwiZ3JhbnRzX3ZlcnNpb24iOiIxLjAuMCIsImlhdCI6MTYxOTA5MzY5NSwiaXNzIjoidGVsbnl4X2FjY2Vzc190b2tlbiIsImp0aSI6IjllNjIyOTA2LTc1ZTctNDBiNi1iOTAwLTc1NGIxZjNlZDMyZiIsIm5iZiI6MTYxOTA5MzY5NCwic3ViIjoibnVsbCIsInR5cCI6ImFjY2VzcyJ9.1JGK9PyHkTtoP_iMu-8TzXH_fhmnsDtZZOAJLDzLW6DDtAb80wZ93l1VH5yNx5tFqwIFG0t48dRiBKWlW-nzDA token_expires_at: 2021-04-22T12:24:55Z @@ -55890,7 +58437,7 @@ components: format: datetime type: string type: object - Create_Room_Client_Token_Response: + CreateRoomClientToken_201_response: example: data: token: eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0.eyJhdWQiOiJ0ZWxueXhfYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjE5MDk0Mjk1LCJncmFudHMiOlt7ImFjdGlvbnMiOlsiam9pbiJdLCJyZXNvdXJjZXMiOlsidGVsbnl4OnZpZGVvOnJvb21zOjllMmEwY2JlLWNlNjYtNDExZS1hMWFjLTQ2OGYwYjEwM2M5YSJdLCJzdWJqZWN0cyI6WyJ0ZWxueXg6dXNlcnM6NzgyYjJjYmUtODQ2Ni00ZTNmLWE0ZDMtOTc4MWViNTc3ZTUwIl19XSwiZ3JhbnRzX3ZlcnNpb24iOiIxLjAuMCIsImlhdCI6MTYxOTA5MzY5NSwiaXNzIjoidGVsbnl4X2FjY2Vzc190b2tlbiIsImp0aSI6IjllNjIyOTA2LTc1ZTctNDBiNi1iOTAwLTc1NGIxZjNlZDMyZiIsIm5iZiI6MTYxOTA5MzY5NCwic3ViIjoibnVsbCIsInR5cCI6ImFjY2VzcyJ9.1JGK9PyHkTtoP_iMu-8TzXH_fhmnsDtZZOAJLDzLW6DDtAb80wZ93l1VH5yNx5tFqwIFG0t48dRiBKWlW-nzDA @@ -55899,10 +58446,9 @@ components: refresh_token_expires_at: 2021-04-22T12:15:05Z properties: data: - $ref: '#/components/schemas/Create_Room_Client_Token_Response_data' - title: Create Room Client Token Response + $ref: '#/components/schemas/CreateRoomClientToken_201_response_data' type: object - Refresh_Room_Client_Token_Response_data: + RefreshRoomClientToken_201_response_data: example: token: eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0.eyJhdWQiOiJ0ZWxueXhfYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjE5MDk0Mjk1LCJncmFudHMiOlt7ImFjdGlvbnMiOlsiam9pbiJdLCJyZXNvdXJjZXMiOlsidGVsbnl4OnZpZGVvOnJvb21zOjllMmEwY2JlLWNlNjYtNDExZS1hMWFjLTQ2OGYwYjEwM2M5YSJdLCJzdWJqZWN0cyI6WyJ0ZWxueXg6dXNlcnM6NzgyYjJjYmUtODQ2Ni00ZTNmLWE0ZDMtOTc4MWViNTc3ZTUwIl19XSwiZ3JhbnRzX3ZlcnNpb24iOiIxLjAuMCIsImlhdCI6MTYxOTA5MzY5NSwiaXNzIjoidGVsbnl4X2FjY2Vzc190b2tlbiIsImp0aSI6IjllNjIyOTA2LTc1ZTctNDBiNi1iOTAwLTc1NGIxZjNlZDMyZiIsIm5iZiI6MTYxOTA5MzY5NCwic3ViIjoibnVsbCIsInR5cCI6ImFjY2VzcyJ9.1JGK9PyHkTtoP_iMu-8TzXH_fhmnsDtZZOAJLDzLW6DDtAb80wZ93l1VH5yNx5tFqwIFG0t48dRiBKWlW-nzDA token_expires_at: 2021-04-22T12:24:55Z @@ -55917,15 +58463,14 @@ components: format: datetime type: string type: object - Refresh_Room_Client_Token_Response: + RefreshRoomClientToken_201_response: example: data: token: eyJhbGciOiJFZDI1NTE5IiwidHlwIjoiSldUIn0.eyJhdWQiOiJ0ZWxueXhfYWNjZXNzX3Rva2VuIiwiZXhwIjoxNjE5MDk0Mjk1LCJncmFudHMiOlt7ImFjdGlvbnMiOlsiam9pbiJdLCJyZXNvdXJjZXMiOlsidGVsbnl4OnZpZGVvOnJvb21zOjllMmEwY2JlLWNlNjYtNDExZS1hMWFjLTQ2OGYwYjEwM2M5YSJdLCJzdWJqZWN0cyI6WyJ0ZWxueXg6dXNlcnM6NzgyYjJjYmUtODQ2Ni00ZTNmLWE0ZDMtOTc4MWViNTc3ZTUwIl19XSwiZ3JhbnRzX3ZlcnNpb24iOiIxLjAuMCIsImlhdCI6MTYxOTA5MzY5NSwiaXNzIjoidGVsbnl4X2FjY2Vzc190b2tlbiIsImp0aSI6IjllNjIyOTA2LTc1ZTctNDBiNi1iOTAwLTc1NGIxZjNlZDMyZiIsIm5iZiI6MTYxOTA5MzY5NCwic3ViIjoibnVsbCIsInR5cCI6ImFjY2VzcyJ9.1JGK9PyHkTtoP_iMu-8TzXH_fhmnsDtZZOAJLDzLW6DDtAb80wZ93l1VH5yNx5tFqwIFG0t48dRiBKWlW-nzDA token_expires_at: 2021-04-22T12:24:55Z properties: data: - $ref: '#/components/schemas/Refresh_Room_Client_Token_Response_data' - title: Refresh Room Client Token Response + $ref: '#/components/schemas/RefreshRoomClientToken_201_response_data' type: object List_Short_Codes_Response: example: @@ -55973,14 +58518,14 @@ components: $ref: '#/components/schemas/ShortCode' title: Short Code Response type: object - SimCard_Action_Collection_Response: + ListSIMCardActions_200_response: example: data: - sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 settings: {} - updated_at: 2020-02-03T22:25:27.521Z + updated_at: 2018-02-02T22:25:27.521Z action_type: enable - created_at: 2020-02-02T22:25:27.521Z + created_at: 2018-02-02T22:25:27.521Z id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: sim_card_action status: @@ -55988,9 +58533,9 @@ components: value: completed - sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 settings: {} - updated_at: 2020-02-03T22:25:27.521Z + updated_at: 2018-02-02T22:25:27.521Z action_type: enable - created_at: 2020-02-02T22:25:27.521Z + created_at: 2018-02-02T22:25:27.521Z id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: sim_card_action status: @@ -56008,16 +58553,15 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: SimCard Action Collection Response type: object - SIM_Card_Action_Response: + SimCardActionGet_200_response: example: data: sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 settings: {} - updated_at: 2020-02-03T22:25:27.521Z + updated_at: 2018-02-02T22:25:27.521Z action_type: enable - created_at: 2020-02-02T22:25:27.521Z + created_at: 2018-02-02T22:25:27.521Z id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: sim_card_action status: @@ -56026,9 +58570,8 @@ components: properties: data: $ref: '#/components/schemas/SIMCardAction' - title: SIM Card Action Response type: object - SimCard_Data_Usage_Notification_Collection: + ListSimCardDataUsageNotifications_200_response: example: data: - id: 79228acc-3f08-4e70-ac68-cb5aae8b537a @@ -56057,9 +58600,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: SimCard Data Usage Notification Collection type: object - _sim_card_data_usage_notifications_threshold: + SimCardDataUsageNotificationsPost_request_threshold: description: Data usage threshold that will trigger the notification. properties: amount: @@ -56073,7 +58615,7 @@ components: example: MB type: string type: object - Create_SIM_Card_Data_Usage_Notification_Request: + SimCardDataUsageNotificationsPost_request: properties: sim_card_id: description: The identification UUID of the related SIM card resource. @@ -56081,43 +58623,12 @@ components: format: uuid type: string threshold: - $ref: '#/components/schemas/_sim_card_data_usage_notifications_threshold' + $ref: '#/components/schemas/SimCardDataUsageNotificationsPost_request_threshold' required: - sim_card_id - threshold - title: Create SIM Card Data Usage Notification Request - type: object - Create_Sim_Card_Data_Usage_Notification_Response: - example: - data: - id: 79228acc-3f08-4e70-ac68-cb5aae8b537a - sim_card_id: b34c1683-cd85-4493-b9a5-315eb4bc5e19 - threshold: - amount: "2048.0" - unit: MB - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - properties: - data: - $ref: '#/components/schemas/SimCardDataUsageNotification' - title: Create Sim Card Data Usage Notification Response - type: object - Get_Sim_Card_Data_Usage_Notification_Response: - example: - data: - id: 79228acc-3f08-4e70-ac68-cb5aae8b537a - sim_card_id: b34c1683-cd85-4493-b9a5-315eb4bc5e19 - threshold: - amount: "2048.0" - unit: MB - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - properties: - data: - $ref: '#/components/schemas/SimCardDataUsageNotification' - title: Get Sim Card Data Usage Notification Response type: object - Delete_Sim_Card_Data_Usage_Notification_Response: + SimCardDataUsageNotificationsPost_201_response: example: data: id: 79228acc-3f08-4e70-ac68-cb5aae8b537a @@ -56130,24 +58641,8 @@ components: properties: data: $ref: '#/components/schemas/SimCardDataUsageNotification' - title: Delete Sim Card Data Usage Notification Response type: object - Update_Sim_Card_Data_Usage_Notification_Response: - example: - data: - id: 79228acc-3f08-4e70-ac68-cb5aae8b537a - sim_card_id: b34c1683-cd85-4493-b9a5-315eb4bc5e19 - threshold: - amount: "2048.0" - unit: MB - created_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - properties: - data: - $ref: '#/components/schemas/SimCardDataUsageNotification' - title: Update Sim Card Data Usage Notification Response - type: object - SimCard_Group_Action_Collection_Response: + SimCardGroupActionsGet_200_response: example: data: - sim_card_group_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -56180,9 +58675,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: SimCard Group Action Collection Response type: object - SIM_Card_Group_Action_Response: + SimCardGroupActionGet_200_response: example: data: sim_card_group_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -56197,9 +58691,8 @@ components: properties: data: $ref: '#/components/schemas/SIMCardGroupAction' - title: SIM Card Group Action Response type: object - Get_All_Sim_Card_Groups_Response: + SimCardGroupsGetAll_200_response: example: data: - default: true @@ -56207,6 +58700,7 @@ components: amount: "2048.1" unit: MB updated_at: 2018-02-02T22:25:27.521Z + sim_card_count: 10 private_wireless_gateway_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 name: My Test Group created_at: 2018-02-02T22:25:27.521Z @@ -56220,6 +58714,7 @@ components: amount: "2048.1" unit: MB updated_at: 2018-02-02T22:25:27.521Z + sim_card_count: 10 private_wireless_gateway_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 name: My Test Group created_at: 2018-02-02T22:25:27.521Z @@ -56236,76 +58731,12 @@ components: properties: data: items: - $ref: '#/components/schemas/SIMCardGroup' + $ref: '#/components/schemas/SearchedSIMCardGroup' type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Get All Sim Card Groups Response - type: object - Create_Sim_Card_Group_Response: - example: - data: - default: true - data_limit: - amount: "2048.1" - unit: MB - updated_at: 2018-02-02T22:25:27.521Z - private_wireless_gateway_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - name: My Test Group - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: sim_card_group - consumed_data: - unit: MB - amount: "2048.1" - properties: - data: - $ref: '#/components/schemas/SIMCardGroup' - title: Create Sim Card Group Response - type: object - Get_Sim_Card_Group_Response: - example: - data: - default: true - data_limit: - amount: "2048.1" - unit: MB - updated_at: 2018-02-02T22:25:27.521Z - private_wireless_gateway_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - name: My Test Group - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: sim_card_group - consumed_data: - unit: MB - amount: "2048.1" - properties: - data: - $ref: '#/components/schemas/SIMCardGroup' - title: Get Sim Card Group Response - type: object - Delete_Sim_Card_Group_Response: - example: - data: - default: true - data_limit: - amount: "2048.1" - unit: MB - updated_at: 2018-02-02T22:25:27.521Z - private_wireless_gateway_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - name: My Test Group - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: sim_card_group - consumed_data: - unit: MB - amount: "2048.1" - properties: - data: - $ref: '#/components/schemas/SIMCardGroup' - title: Delete Sim Card Group Response type: object - Update_SimCard_Group_Response: + SimCardGroupsPost_200_response: example: data: default: true @@ -56324,9 +58755,8 @@ components: properties: data: $ref: '#/components/schemas/SIMCardGroup' - title: Update SimCard Group Response type: object - Create_Private_Wireless_Gatweway_Request_1: + SetSIMCardGroupPrivateWirelessGateway_request: properties: private_wireless_gateway_id: description: The identification of the related Private Wireless Gateway @@ -56336,12 +58766,8 @@ components: type: string required: - private_wireless_gateway_id - title: Create Private Wireless Gatweway Request type: object - CreateSimCardOrderPreview: - example: - quantity: 21 - address_id: "1293384261075731499" + SimCardOrdersPreview_request: properties: quantity: description: The amount of SIM cards that the user would like to purchase @@ -56357,9 +58783,8 @@ components: required: - address_id - quantity - title: CreateSimCardOrderPreview type: object - SIMCard_Orders_Preview_Response: + SimCardOrdersPreview_202_response: example: data: sim_cards_cost: @@ -56376,9 +58801,8 @@ components: properties: data: $ref: '#/components/schemas/SIMCardOrderPreview' - title: SIMCard Orders Preview Response type: object - Get_All_Sim_Card_Order_Response: + SimCardOrdersGet_200_response: example: data: - quantity: 21 @@ -56429,9 +58853,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Get All Sim Card Order Response type: object - Create_Sim_Card_Order_Response: + SimCardOrdersPost_200_response: example: data: quantity: 21 @@ -56455,35 +58878,8 @@ components: properties: data: $ref: '#/components/schemas/SIMCardOrder' - title: Create Sim Card Order Response type: object - Get_Sim_Card_Order_Response: - example: - data: - quantity: 21 - cost: - amount: "2.52" - currency: USD - updated_at: 2018-02-02T22:25:27.521Z - order_address: - id: "1293384261075731499" - street_address: 311 W Superior St - extended_address: Suite 504 - locality: Chicago - administrative_area: IL - country_code: US - postal_code: "60654" - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - tracking_url: http://www.example.com/ - record_type: sim_card_order - status: pending - properties: - data: - $ref: '#/components/schemas/SIMCardOrder' - title: Get Sim Card Order Response - type: object - Search_SimCards_Response: + SimCardsGet_200_response: example: data: - sim_card_group_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 @@ -56501,8 +58897,8 @@ components: unit: MB record_type: sim_card status: - reason: The SIM card is active, ready to connect to networks and consume - data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled tags: - personal @@ -56523,8 +58919,8 @@ components: unit: MB record_type: sim_card status: - reason: The SIM card is active, ready to connect to networks and consume - data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled tags: - personal @@ -56542,105 +58938,50 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Search SimCards Response type: object - Create_SIM_Card_Validate_Request: - description: The object containing the Array of SIM card registration codes. - example: - registration_codes: - - "123456780" - - "1231231230" + BulkSetPublicIPs_request: properties: - registration_codes: + sim_card_ids: + example: + - 6b14e151-8493-4fa1-8664-1cc4e6d14158 items: - type: string + $ref: '#/components/schemas/Id' type: array - title: Create SIM Card Validate Request + required: + - sim_card_ids type: object - Get_Sim_Card_Response: + BulkSetPublicIPs_202_response: example: data: - data_limit: - amount: "2048.1" - unit: MB - current_mnc: "260" - created_at: 2018-02-02T22:25:27.521Z - imsi: "081932214823362973" - current_device_location: - accuracy_unit: m - latitude: "41.143" - accuracy: 1250 - longitude: -8.605 - record_type: sim_card - tags: - - personal - - customers - - active-customers - sim_card_group_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - iccid: "89310410106543789301" + settings: {} updated_at: 2018-02-02T22:25:27.521Z - ipv4: 192.168.0.0 - ipv6: 2001:cdba:0000:0000:0000:0000:3257:9652 + action_type: bulk_set_public_ips + created_at: 2018-02-02T22:25:27.521Z id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - msisdn: +13109976224 - current_mcc: "410" - current_billing_period_consumed_data: - amount: "2049.0" - unit: MB - status: - reason: The SIM card is active, ready to connect to networks and consume - data. - value: enabled + record_type: bulk_sim_card_action properties: data: - $ref: '#/components/schemas/SIMCard' - title: Get Sim Card Response + $ref: '#/components/schemas/BulkSIMCardAction' type: object - Delete_Sim_Card_Response: + postValidateRegistrationCodes_request: + description: The object containing the Array of SIM card registration codes. example: - data: - data_limit: - amount: "2048.1" - unit: MB - current_mnc: "260" - created_at: 2018-02-02T22:25:27.521Z - imsi: "081932214823362973" - current_device_location: - accuracy_unit: m - latitude: "41.143" - accuracy: 1250 - longitude: -8.605 - record_type: sim_card - tags: - - personal - - customers - - active-customers - sim_card_group_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - iccid: "89310410106543789301" - updated_at: 2018-02-02T22:25:27.521Z - ipv4: 192.168.0.0 - ipv6: 2001:cdba:0000:0000:0000:0000:3257:9652 - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - msisdn: +13109976224 - current_mcc: "410" - current_billing_period_consumed_data: - amount: "2049.0" - unit: MB - status: - reason: The SIM card is active, ready to connect to networks and consume - data. - value: enabled + registration_codes: + - "123456780" + - "1231231230" properties: - data: - $ref: '#/components/schemas/SIMCard' - title: Delete Sim Card Response + registration_codes: + items: + type: string + type: array type: object - Update_SimCard_Response: + SimCardGet_200_response: example: data: data_limit: amount: "2048.1" unit: MB + current_imei: "457032284023794" current_mnc: "260" created_at: 2018-02-02T22:25:27.521Z imsi: "081932214823362973" @@ -56648,7 +58989,7 @@ components: accuracy_unit: m latitude: "41.143" accuracy: 1250 - longitude: -8.605 + longitude: "-8.605" record_type: sim_card tags: - personal @@ -56659,6 +59000,11 @@ components: updated_at: 2018-02-02T22:25:27.521Z ipv4: 192.168.0.0 ipv6: 2001:cdba:0000:0000:0000:0000:3257:9652 + live_data_session: connected + authorized_imeis: + - "106516771852751" + - "534051870479563" + - "508821468377961" id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 msisdn: +13109976224 current_mcc: "410" @@ -56666,113 +59012,27 @@ components: amount: "2049.0" unit: MB status: - reason: The SIM card is active, ready to connect to networks and consume - data. + reason: "The SIM card is active, ready to connect to networks and consume\ + \ data." value: enabled properties: data: $ref: '#/components/schemas/SIMCard' - title: Update SimCard Response type: object - SIM_Card_Network_Preference_With_OTA_Updates_Response: + SIMCardDeviceDetailsGet_200_response: example: data: - sim_card_id: 6b14e151-8493-4fa1-8664-1cc4e6d14158 - mobile_operator_networks_preferences: - - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - ota_updates: - - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: ota_update - settings: - mobile_operator_networks_preferences: - - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - status: in-progress - type: sim_card_network_preferences - updated_at: 2018-02-02T22:25:27.521Z - - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: ota_update - settings: - mobile_operator_networks_preferences: - - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - status: in-progress - type: sim_card_network_preferences - updated_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - created_at: 2018-02-02T22:25:27.521Z - record_type: sim_card_network_preferences + model_name: iPad Pro 11 2020 Cellular + imei: "457032284023794" + operating_system: iOS 12 + brand_name: Apple + device_type: Tablet + record_type: device_details properties: data: - $ref: '#/components/schemas/SIMCardNetworkPreferenceWithOTAUpdates' - title: SIM Card Network Preference With OTA Updates Response - type: object - Put_Network_Preference_Request: - properties: - mobile_operator_networks_preferences: - description: A list of mobile operator networks and the priority that should - be applied when the SIM is connecting to the network. - items: - $ref: '#/components/schemas/MobileOperatorNetworkPreferencesRequest' - type: array - title: Put Network Preference Request - type: object - PUT_SIM_Card_Network_Preference_Response: - example: - data: - sim_card_id: 6b14e151-8493-4fa1-8664-1cc4e6d14158 - mobile_operator_networks_preferences: - - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - ota_updates: - - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: ota_update - settings: - mobile_operator_networks_preferences: - - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - status: in-progress - type: sim_card_network_preferences - updated_at: 2018-02-02T22:25:27.521Z - - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: ota_update - settings: - mobile_operator_networks_preferences: - - mobile_operator_network_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - mobile_operator_network_name: AT&T Mobility (USACG) - priority: 0 - sim_card_id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - status: in-progress - type: sim_card_network_preferences - updated_at: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - created_at: 2018-02-02T22:25:27.521Z - record_type: sim_card_network_preferences - properties: - data: - $ref: '#/components/schemas/SIMCardNetworkPreferenceWithOTAUpdates' - title: PUT SIM Card Network Preference Response + $ref: '#/components/schemas/SIMCardDeviceDetails' type: object - Delete_SIM_Card_Network_Preference_Response: + SIMCardNetworkPreferencesGet_200_response: example: data: sim_card_id: 6b14e151-8493-4fa1-8664-1cc4e6d14158 @@ -56814,9 +59074,17 @@ components: properties: data: $ref: '#/components/schemas/SIMCardNetworkPreferenceWithOTAUpdates' - title: Delete SIM Card Network Preference Response type: object - SIMCard_Public_IP_Response: + SIMCardNetworkPreferencesPut_request: + properties: + mobile_operator_networks_preferences: + description: A list of mobile operator networks and the priority that should + be applied when the SIM is connecting to the network. + items: + $ref: '#/components/schemas/MobileOperatorNetworkPreferencesRequest' + type: array + type: object + SIMCardPublicIPGet_200_response: example: data: sim_card_id: 6b14e151-8493-4fa1-8664-1cc4e6d14158 @@ -56828,12 +59096,13 @@ components: properties: data: $ref: '#/components/schemas/SIMCardPublicIP' - title: SIMCard Public IP Response type: object - Wireless_Connectivity_Log_Collection_Response: + WirelessConnectivityLogsGet_200_response: example: data: - stop_time: 2018-02-02T22:25:27.521Z + last_seen: 2018-02-02T22:25:27.521Z + created_at: 2018-02-02T22:25:27.521Z imsi: "081932214823362973" mobile_country_code: "310" record_type: wireless_connectivity_log @@ -56850,6 +59119,8 @@ components: apn: data00.telnyx cell_id: 311210-6813 - stop_time: 2018-02-02T22:25:27.521Z + last_seen: 2018-02-02T22:25:27.521Z + created_at: 2018-02-02T22:25:27.521Z imsi: "081932214823362973" mobile_country_code: "310" record_type: wireless_connectivity_log @@ -56877,7 +59148,6 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMeta' - title: Wireless Connectivity Log Collection Response type: object List_Sub_Number_Orders_Response: example: @@ -57013,7 +59283,7 @@ components: $ref: '#/components/schemas/TelephonyCredential' title: Telephony Credential Response type: object - List_Tags_Response_data: + List_Tags_Response_data_inner: example: amount: 1 tag: a_tag @@ -57040,12 +59310,22 @@ components: properties: data: items: - $ref: '#/components/schemas/List_Tags_Response_data' + $ref: '#/components/schemas/List_Tags_Response_data_inner' type: array meta: $ref: '#/components/schemas/PaginationMeta' title: List Tags Response type: object + TeXml_REST_Command_Response: + example: + data: + sid: c46e06d7-b78f-4b13-96b6-c576af9640ff + status: accepted + properties: + data: + $ref: '#/components/schemas/UpdateCommandResult' + title: TeXml REST Command Response + type: object Get_All_Texml_Applications_Response: example: data: @@ -57053,7 +59333,7 @@ components: record_type: texml_application active: false friendly_name: call-router - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" dtmf_type: Inband first_command_timeout: true first_command_timeout_secs: 10 @@ -57075,7 +59355,7 @@ components: record_type: texml_application active: false friendly_name: call-router - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" dtmf_type: Inband first_command_timeout: true first_command_timeout_secs: 10 @@ -57114,7 +59394,7 @@ components: record_type: texml_application active: false friendly_name: call-router - anchorsite_override: Amsterdam, Netherlands + anchorsite_override: "Amsterdam, Netherlands" dtmf_type: Inband first_command_timeout: true first_command_timeout_secs: 10 @@ -57282,7 +59562,57 @@ components: type: string title: Update Verify Profile Request type: object - List_Webhook_Deliveries_Response: + VirtaulCrossConnectRegionList_200_response: + example: + data: + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/VirtualCrossConnectRegion' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + type: object + VirtualCrossConnectRegionGet_200_response: + example: + data: null + properties: + data: + $ref: '#/components/schemas/VirtualCrossConnectRegion' + type: object + VirtaulCrossConnectList_200_response: + example: + data: + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/VirtualCrossConnectCombined' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + type: object + VirtualCrossConnectCreate_200_response: + example: + data: null + properties: + data: + $ref: '#/components/schemas/VirtualCrossConnectCombined' + type: object + getWebhookDeliveries_200_response: example: data: - webhook: @@ -57306,11 +59636,11 @@ components: request: url: https://fallback.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 200 headers: - - 'Content-Type: text/html' + - "Content-Type: text/html" body: All good. - status: failed started_at: 2020-08-10T14:00:05.004Z @@ -57319,12 +59649,12 @@ components: request: url: https://typo.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 404 headers: - - 'Content-Type: text/html' - - 'Pragma: no-cache' + - "Content-Type: text/html" + - "Pragma: no-cache" body: Oops. Not found. errors: - code: "75499" @@ -57351,11 +59681,11 @@ components: request: url: https://fallback.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 200 headers: - - 'Content-Type: text/html' + - "Content-Type: text/html" body: All good. - status: failed started_at: 2020-08-10T14:00:05.004Z @@ -57364,12 +59694,12 @@ components: request: url: https://typo.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 404 headers: - - 'Content-Type: text/html' - - 'Pragma: no-cache' + - "Content-Type: text/html" + - "Pragma: no-cache" body: Oops. Not found. errors: - code: "75499" @@ -57387,9 +59717,8 @@ components: type: array meta: $ref: '#/components/schemas/PaginationMetaSimple' - title: List Webhook Deliveries Response type: object - Retrieve_Webhook_Delivery: + getWebhookDelivery_200_response: example: data: webhook: @@ -57413,11 +59742,11 @@ components: request: url: https://fallback.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 200 headers: - - 'Content-Type: text/html' + - "Content-Type: text/html" body: All good. - status: failed started_at: 2020-08-10T14:00:05.004Z @@ -57426,12 +59755,12 @@ components: request: url: https://typo.example.com/webhooks headers: - - 'Accept: */*' + - "Accept: */*" response: status: 404 headers: - - 'Content-Type: text/html' - - 'Pragma: no-cache' + - "Content-Type: text/html" + - "Pragma: no-cache" body: Oops. Not found. errors: - code: "75499" @@ -57440,7 +59769,6 @@ components: properties: data: $ref: '#/components/schemas/webhook_delivery' - title: Retrieve Webhook Delivery type: object List_WhatsApp_Business_Accounts_Response: example: @@ -57489,7 +59817,7 @@ components: $ref: '#/components/schemas/PaginationMeta' title: List WhatsApp Business Accounts Response type: object - Retrieve_WhatsApp_Business_Account: + WhatsApp_Business_Account: example: data: record_type: whatsapp_business_account @@ -57510,7 +59838,7 @@ components: properties: data: $ref: '#/components/schemas/WhatsappBusinessAccount' - title: Retrieve WhatsApp Business Account + title: WhatsApp Business Account type: object List_WhatsApp_Phone_Numbers_Response: example: @@ -57559,6 +59887,69 @@ components: $ref: '#/components/schemas/PaginationMeta' title: List WhatsApp Phone Numbers Response type: object + WhatsApp_Message_Template: + example: + data: + - components: + - format: VIDEO + text: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: text + - format: VIDEO + text: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: text + rejected_reason: NONE + quality_score: + score: UNKNOWN + name: sample_happy_hour_announcement + language: en_US + id: "23492349423" + category: APPOINTMENT_UPDATE + record_type: whatsapp_message_template + status: APPROVED + - components: + - format: VIDEO + text: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: text + - format: VIDEO + text: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: text + rejected_reason: NONE + quality_score: + score: UNKNOWN + name: sample_happy_hour_announcement + language: en_US + id: "23492349423" + category: APPOINTMENT_UPDATE + record_type: whatsapp_message_template + status: APPROVED + meta: + cursors: + after: MQZDZD + before: MQZDZD + next: "/v2/whatsapp_business_accounts/4444451-4222-9222-3bd5555501c0/whatsapp_message_templates?page[after]=MQZDZD&page[limit]=1" + previous: "/v2/whatsapp_business_accounts/4444451-4222-9222-3bd5555501c0/whatsapp_message_templates?page[before]=MQZDZD&page[limit]=1" + properties: + data: + items: + $ref: '#/components/schemas/WhatsappMessageTemplate' + type: array + meta: + $ref: '#/components/schemas/CursorPagination' + title: WhatsApp Message Template + type: object + WhatsApp_Message_Template_1: + example: + id: 12ac836e1c292 + record_type: whatsapp_message_template + properties: + id: + example: 12ac836e1c292 + type: string + record_type: + example: whatsapp_message_template + type: string + title: WhatsApp Message Template + type: object Check_Contact_Response: example: data: @@ -57577,7 +59968,7 @@ components: type: array title: Check Contact Response type: object - Upload_Media: + Upload_Media_: example: data: - record_type: whatsapp_media_id @@ -57589,9 +59980,9 @@ components: items: $ref: '#/components/schemas/UploadMedia' type: array - title: Upload Media + title: Upload Media. type: object - WhatsApp_Message_Response: + Successful_response_with_details_about_the_WhatsApp_message_sent_: example: data: record_type: whatsapp_message_id @@ -57599,9 +59990,9 @@ components: properties: data: $ref: '#/components/schemas/Message' - title: WhatsApp Message Response + title: Successful response with details about the WhatsApp message sent. type: object - Retrieve_WhatsApp_Phone_Number: + WhatsApp_Phone_Number: example: data: record_type: whatsapp_phone_number @@ -57622,32 +60013,9 @@ components: properties: data: $ref: '#/components/schemas/WhatsappPhoneNumber' - title: Retrieve WhatsApp Phone Number + title: WhatsApp Phone Number type: object - Update_WhatsApp_Phone_Number: - example: - data: - record_type: whatsapp_phone_number - id: 2ade33a-21c0-473b-b055-b3c836e1c292 - organization_id: 29f187ff-6f27-449f-a2d3-d7188a50008c - about: This is our about section - phone_number: +1879832178 - whatsapp_user_id: "1879832178" - status: pending - webhook_url: http://www.myurl.com/webhook - whatsapp_settings: - id: "487117329074690" - display_name: Acme Inc. - display_name_status: APPROVED - quality_rating: UNKNOWN - created_at: 2020-01-01T00:00:00.000000Z - updated_at: 2020-01-01T00:00:00.000000Z - properties: - data: - $ref: '#/components/schemas/WhatsappPhoneNumber' - title: Update WhatsApp Phone Number - type: object - Retrieve_WhatsApp_Profile_Photo: + WhatsApp_Profile_Photo: example: data: phone_number_id: 12ade33a-21c0-473b-b055-b3c836e1c292 @@ -57657,50 +60025,87 @@ components: properties: data: $ref: '#/components/schemas/WhatsappProfilePhoto' - title: Retrieve WhatsApp Profile Photo + title: WhatsApp Profile Photo type: object - Update_WhatsApp_Profile_Photo: + WireguardInterfaceList_200_response: example: data: - phone_number_id: 12ade33a-21c0-473b-b055-b3c836e1c292 - thumbnail_photo_url: https://pps.whatsapp.net/v/t61.24694-24/11111111_2222222222222222_3333333_n.jpg?oh=f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8f8&oe=5E5E5E5E - whatsapp_user_id: "123456789" - record_type: whatsapp_profile_photo + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 properties: data: - $ref: '#/components/schemas/WhatsappProfilePhoto' - title: Update WhatsApp Profile Photo + items: + $ref: '#/components/schemas/WireguardInterfaceRead' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' type: object - Get_Wdr_Reports_Response: + WireguardInterfaceCreate_202_response: example: + data: null + properties: data: - - start_time: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - report_url: http://example.com - end_time: 2018-02-02T22:25:27.521Z - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: detail_records_report - status: pending - - start_time: 2018-02-02T22:25:27.521Z - updated_at: 2018-02-02T22:25:27.521Z - report_url: http://example.com - end_time: 2018-02-02T22:25:27.521Z - created_at: 2018-02-02T22:25:27.521Z - id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 - record_type: detail_records_report - status: pending + $ref: '#/components/schemas/WireguardInterfaceRead' + type: object + WireguardPeerList_200_response: + example: + data: + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 properties: data: items: - $ref: '#/components/schemas/WdrReport' + $ref: '#/components/schemas/WireguardPeer' type: array - title: Get Wdr Reports Response + meta: + $ref: '#/components/schemas/PaginationMeta' type: object - Create_Wdr_Report_Response: + WireguardPeerCreate_202_response: example: + data: null + properties: data: - start_time: 2018-02-02T22:25:27.521Z + $ref: '#/components/schemas/WireguardPeer' + type: object + WireguardPeerAllowedIPList_200_response: + example: + data: + - null + - null + meta: + page_number: 2 + total_pages: 3 + total_results: 55 + page_size: 25 + properties: + data: + items: + $ref: '#/components/schemas/WireguardPeerAllowedIP' + type: array + meta: + $ref: '#/components/schemas/PaginationMeta' + type: object + WireguardPeerAllowedIPGet_200_response: + example: + data: null + properties: + data: + $ref: '#/components/schemas/WireguardPeerAllowedIP' + type: object + getWdrReports_200_response: + example: + data: + - start_time: 2018-02-02T22:25:27.521Z updated_at: 2018-02-02T22:25:27.521Z report_url: http://example.com end_time: 2018-02-02T22:25:27.521Z @@ -57708,15 +60113,7 @@ components: id: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 record_type: detail_records_report status: pending - properties: - data: - $ref: '#/components/schemas/WdrReport' - title: Create Wdr Report Response - type: object - Get_Wdr_Report_Response: - example: - data: - start_time: 2018-02-02T22:25:27.521Z + - start_time: 2018-02-02T22:25:27.521Z updated_at: 2018-02-02T22:25:27.521Z report_url: http://example.com end_time: 2018-02-02T22:25:27.521Z @@ -57726,10 +60123,11 @@ components: status: pending properties: data: - $ref: '#/components/schemas/WdrReport' - title: Get Wdr Report Response + items: + $ref: '#/components/schemas/WdrReport' + type: array type: object - Delete_Wdr_Report_Response: + createWdrReport_201_response: example: data: start_time: 2018-02-02T22:25:27.521Z @@ -57743,8 +60141,20 @@ components: properties: data: $ref: '#/components/schemas/WdrReport' - title: Delete Wdr Report Response type: object + ActionsParticipantsRequest_participants: + description: "Either a list of participant id to perform the action on, or the\ + \ keyword \"all\" to perform the action on all participant." + oneOf: + - enum: + - all + example: all + type: string + - items: + example: 7b61621f-62e0-4aad-ab11-9fd19e272e73 + format: uuid + type: string + type: array AuthenticationProvider_settings: description: The settings associated with the authentication provider. example: @@ -57826,7 +60236,7 @@ components: example: 311 W. Superior St type: string type: object - BusinessIdentity_contacts: + BusinessIdentity_contacts_inner: description: A contact person for the business properties: record_type: @@ -57871,10 +60281,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -57913,10 +60323,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -57939,9 +60349,6 @@ components: type: string type: object CallCost_meta_meta: - example: - delivered_to: https://example.com - attempt: 1 properties: attempt: description: The number of attempts made to deliver the webhook @@ -57954,21 +60361,11 @@ components: type: string type: object CallCost_meta: - example: - meta: - delivered_to: https://example.com - attempt: 1 properties: meta: $ref: '#/components/schemas/CallCost_meta_meta' type: object - CallCost_payload_cost_parts: - example: - call_part: call-control - cost: 0.0 - rate: 0.001 - billed_duration_secs: 0 - currency: USD + CallCost_payload_cost_parts_inner: properties: billed_duration_secs: description: The number of seconds for which this item will be billed @@ -57980,8 +60377,8 @@ components: example: call-control type: string cost: - description: The billed cost of the item, in currency shown in the `currency` - field + description: "The billed cost of the item, in currency shown in the `currency`\ + \ field" example: 0.0 minimum: 0.0 type: number @@ -57996,26 +60393,6 @@ components: type: number type: object CallCost_payload: - example: - call_leg_id: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 - total_cost: 0.0 - client_state: aGF2ZSBhIG5pY2UgZGF5ID1d - connection_id: 7267xxxxxxxxxxxxxx - call_control_id: v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ - billed_duration_secs: 0 - call_session_id: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 - cost_parts: - - call_part: call-control - cost: 0.0 - rate: 0.001 - billed_duration_secs: 0 - currency: USD - - call_part: call-control - cost: 0.0 - rate: 0.001 - billed_duration_secs: 0 - currency: USD - status: valid properties: billed_duration_secs: description: The number of seconds for which this call will be billed @@ -58032,10 +60409,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58048,7 +60425,7 @@ components: type: string cost_parts: items: - $ref: '#/components/schemas/CallCost_payload_cost_parts' + $ref: '#/components/schemas/CallCost_payload_cost_parts_inner' type: array total_cost: description: The billed cost of the call @@ -58082,10 +60459,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58121,10 +60498,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58147,18 +60524,33 @@ components: the call. example: 7267xxxxxxxxxxxxxx type: string + call_control_id: + description: Unique ID for controlling the call. + example: v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA + type: string call_leg_id: description: ID that is unique to the call and can be used to correlate webhook events. example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string + client_state: + description: State received from a command. + example: aGF2ZSBhIG5pY2UgZGF5ID1d + type: string + stream_type: + description: Type of media streamed. It can be either 'raw' or 'decrypted'. + enum: + - raw + - decrypted + example: raw + type: string type: object CallGatherEnded_payload: properties: @@ -58177,10 +60569,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58207,6 +60599,7 @@ components: - call_hangup - cancelled - cancelled_amd + - timeout example: valid type: string type: object @@ -58227,10 +60620,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58257,9 +60650,9 @@ components: example: hangup type: string hangup_cause: - description: The reason the call was ended (`call_rejected`, `normal_clearing`, - `originator_cancel`, `timeout`, `time_limit`, `user_busy`, `not_found` - or `unspecified`). + description: "The reason the call was ended (`call_rejected`, `normal_clearing`,\ + \ `originator_cancel`, `timeout`, `time_limit`, `user_busy`, `not_found`\ + \ or `unspecified`)." enum: - call_rejected - normal_clearing @@ -58272,7 +60665,7 @@ components: example: call_rejected type: string hangup_source: - description: The party who ended the call (`callee`, `caller`, `unknown`). + description: "The party who ended the call (`callee`, `caller`, `unknown`)." enum: - caller - callee @@ -58303,10 +60696,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58352,10 +60745,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58398,10 +60791,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58442,10 +60835,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58485,10 +60878,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58496,13 +60889,13 @@ components: example: aGF2ZSBhIG5pY2UgZGF5ID1d type: string media_url: - description: The audio URL being played back, if audio_url has been used - to start. + description: "The audio URL being played back, if audio_url has been used\ + \ to start." example: http://example.com/audio.wav type: string media_name: - description: The name of the audio media file being played back, if media_name - has been used to start. + description: "The name of the audio media file being played back, if media_name\ + \ has been used to start." example: my_media_uploaded_to_media_storage_api type: string overlay: @@ -58539,10 +60932,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58550,13 +60943,13 @@ components: example: aGF2ZSBhIG5pY2UgZGF5ID1d type: string media_url: - description: The audio URL being played back, if audio_url has been used - to start. + description: "The audio URL being played back, if audio_url has been used\ + \ to start." example: http://example.com/audio.wav type: string media_name: - description: The name of the audio media file being played back, if media_name - has been used to start. + description: "The name of the audio media file being played back, if media_name\ + \ has been used to start." example: my_media_uploaded_to_media_storage_api type: string overlay: @@ -58566,10 +60959,10 @@ components: type: boolean type: object CallRecordingSaved_payload_recording_urls: - description: Recording URLs in requested format. These URLs are valid for 10 - minutes. After 10 minutes, you may retrieve recordings via API using Reports - -> Call Recordings documentation, or via Mission Control under Reporting -> - Recordings. + description: "Recording URLs in requested format. These URLs are valid for 10\ + \ minutes. After 10 minutes, you may retrieve recordings via API using Reports\ + \ -> Call Recordings documentation, or via Mission Control under Reporting\ + \ -> Recordings." properties: mp3: description: Recording URL in requested `mp3` format. @@ -58583,10 +60976,10 @@ components: type: string type: object CallRecordingSaved_payload_public_recording_urls: - description: Recording URLs in requested format. The URL is valid for as long - as the file exists. For security purposes, this feature is activated on a - per request basis. Please contact customer support with your Account ID to - request activation. + description: "Recording URLs in requested format. The URL is valid for as long\ + \ as the file exists. For security purposes, this feature is activated on\ + \ a per request basis. Please contact customer support with your Account\ + \ ID to request activation." properties: mp3: description: Recording URL in requested `mp3` format. @@ -58607,10 +61000,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string connection_id: @@ -58656,10 +61049,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string connection_id: @@ -58696,10 +61089,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string connection_id: @@ -58736,10 +61129,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string connection_id: @@ -58764,6 +61157,16 @@ components: example: +13129457420 type: string type: object + CallRequest_to: + description: The DID or SIP URI to dial out to. Multiple DID or SIP URIs can + be provided using an array of strings + oneOf: + - example: +18005550100 or sip:username@sip.telnyx.com + type: string + - example: "[\"+18005550100\", \"sip:username@sip.telnyx.com\"]" + items: + type: string + type: array CallRequest_answering_machine_detection_config: description: Optional configuration parameters to modify 'answering_machine_detection' performance. @@ -58789,29 +61192,29 @@ components: type: integer greeting_duration_millis: default: 3500 - description: Maximum threshold of a human greeting. If greeting longer than - this value, considered machine. + description: "Maximum threshold of a human greeting. If greeting longer\ + \ than this value, considered machine." example: 1500 format: int32 type: integer initial_silence_millis: default: 3500 - description: If initial silence duration is greater than this value, consider - it a machine. + description: "If initial silence duration is greater than this value, consider\ + \ it a machine." example: 1800 format: int32 type: integer maximum_number_of_words: default: 5 - description: If number of detected words is greater than this value, consder - it a machine. + description: "If number of detected words is greater than this value, consder\ + \ it a machine." example: 3 format: int32 type: integer maximum_word_length_millis: default: 3500 - description: If a single word lasts longer than this threshold, consider - it a machine. + description: "If a single word lasts longer than this threshold, consider\ + \ it a machine." example: 2000 format: int32 type: integer @@ -58823,15 +61226,15 @@ components: type: integer greeting_total_analysis_time_millis: default: 5000 - description: If machine already detected, maximum timeout threshold to determine - the end of the machine greeting. + description: "If machine already detected, maximum timeout threshold to\ + \ determine the end of the machine greeting." example: 7500 format: int32 type: integer greeting_silence_duration_millis: default: 1500 - description: If machine already detected, maximum threshold for silence - between words. If exceeded, the greeting is considered ended. + description: "If machine already detected, maximum threshold for silence\ + \ between words. If exceeded, the greeting is considered ended." example: 2000 format: int32 type: integer @@ -58853,10 +61256,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58889,10 +61292,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -58900,6 +61303,71 @@ components: example: aGF2ZSBhIG5pY2UgZGF5ID1d type: string type: object + CallStreamingFailed_payload_stream_params: + description: Streaming parameters as they were originally given to the Call + Control API. + properties: + stream_url: + description: The destination WebSocket address where the stream is going + to be delivered. + example: wss://www.example.com/websocket + type: string + track: + default: inbound_track + description: Specifies which track should be streamed. + enum: + - inbound_track + - outbound_track + - both_tracks + example: inbound_track + type: string + type: object + CallStreamingFailed_payload: + properties: + call_control_id: + description: Call ID used to issue commands via Call Control API. + example: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + type: string + connection_id: + description: Call Control App ID (formerly Telnyx connection ID) used in + the call. + example: 7267xxxxxxxxxxxxxx + type: string + call_leg_id: + description: ID that is unique to the call and can be used to correlate + webhook events. + example: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + type: string + call_session_id: + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." + example: 31f19208-5db0-11ec-9ea7-02420a0d3a69 + type: string + client_state: + description: State received from a command. + example: aGF2ZSBhIG5pY2UgZGF5ID1d + type: string + failure_reason: + description: A short description explaning why the media streaming failed. + example: connection_failed + type: string + stream_id: + description: Identifies the streaming. + example: 1edb94f9-7ef0-4150-b502-e0ebadfd9491 + format: uuid + type: string + stream_params: + $ref: '#/components/schemas/CallStreamingFailed_payload_stream_params' + stream_type: + description: The type of stream connection the stream is performing. + enum: + - websocket + - dialogflow + example: websocket + type: string + type: object CallStreamingStarted_payload: properties: call_control_id: @@ -58917,10 +61385,10 @@ components: example: 31f19208-5db0-11ec-9ea7-02420a0d3a69 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 31f19208-5db0-11ec-9ea7-02420a0d3a69 type: string client_state: @@ -59013,10 +61481,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -59050,10 +61518,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -59126,10 +61594,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -59154,10 +61622,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -59178,13 +61646,13 @@ components: example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string media_url: - description: The audio URL being played back, if audio_url has been used - to start. + description: "The audio URL being played back, if audio_url has been used\ + \ to start." example: http://example.com/audio.wav type: string media_name: - description: The name of the audio media file being played back, if media_name - has been used to start. + description: "The name of the audio media file being played back, if media_name\ + \ has been used to start." example: my_media_uploaded_to_media_storage_api type: string occurred_at: @@ -59206,10 +61674,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -59251,13 +61719,13 @@ components: example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string media_url: - description: The audio URL being played back, if audio_url has been used - to start. + description: "The audio URL being played back, if audio_url has been used\ + \ to start." example: http://example.com/audio.wav type: string media_name: - description: The name of the audio media file being played back, if media_name - has been used to start. + description: "The name of the audio media file being played back, if media_name\ + \ has been used to start." example: my_media_uploaded_to_media_storage_api type: string occurred_at: @@ -59274,10 +61742,10 @@ components: example: v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -59353,25 +61821,24 @@ components: CreateFaxApplicationRequest_inbound: properties: channel_limit: - description: When set, this will limit the number of concurrent inbound - calls to phone numbers associated with this connection. + description: "When set, this will limit the number of concurrent inbound\ + \ calls to phone numbers associated with this connection." example: 10 type: integer sip_subdomain: - default: "null" - description: 'Specifies a subdomain that can be used to receive Inbound - calls to a Connection, in the same way a phone number is used, from a - SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called - from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" - where the user part can be any alphanumeric value. Please note TLS encrypted - calls are not allowed for subdomain calls.' + description: "Specifies a subdomain that can be used to receive Inbound\ + \ calls to a Connection, in the same way a phone number is used, from\ + \ a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can\ + \ be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\"\ + \ where the user part can be any alphanumeric value. Please note TLS encrypted\ + \ calls are not allowed for subdomain calls." example: example type: string sip_subdomain_receive_settings: default: from_anyone - description: 'This option can be enabled to receive calls from: "Anyone" - (any SIP endpoint in the public Internet) or "Only my connections" (any - connection assigned to the same Telnyx user).' + description: "This option can be enabled to receive calls from: \"Anyone\"\ + \ (any SIP endpoint in the public Internet) or \"Only my connections\"\ + \ (any connection assigned to the same Telnyx user)." enum: - only_my_connections - from_anyone @@ -59381,8 +61848,8 @@ components: CreateFaxApplicationRequest_outbound: properties: channel_limit: - description: When set, this will limit the number of concurrent outbound - calls to phone numbers associated with this connection. + description: "When set, this will limit the number of concurrent outbound\ + \ calls to phone numbers associated with this connection." example: 10 type: integer outbound_voice_profile_id: @@ -59395,25 +61862,24 @@ components: CreateTexmlApplicationRequest_inbound: properties: channel_limit: - description: When set, this will limit the total number of inbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of inbound calls\ + \ to phone numbers associated with this connection." example: 10 type: integer sip_subdomain: - default: "null" - description: 'Specifies a subdomain that can be used to receive Inbound - calls to a Connection, in the same way a phone number is used, from a - SIP endpoint. Example: the subdomain "example.sip.telnyx.com" can be called - from any SIP endpoint by using the SIP URI "sip:@example.sip.telnyx.com" - where the user part can be any alphanumeric value. Please note TLS encrypted - calls are not allowed for subdomain calls.' + description: "Specifies a subdomain that can be used to receive Inbound\ + \ calls to a Connection, in the same way a phone number is used, from\ + \ a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can\ + \ be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\"\ + \ where the user part can be any alphanumeric value. Please note TLS encrypted\ + \ calls are not allowed for subdomain calls." example: example type: string sip_subdomain_receive_settings: default: from_anyone - description: 'This option can be enabled to receive calls from: "Anyone" - (any SIP endpoint in the public Internet) or "Only my connections" (any - connection assigned to the same Telnyx user).' + description: "This option can be enabled to receive calls from: \"Anyone\"\ + \ (any SIP endpoint in the public Internet) or \"Only my connections\"\ + \ (any connection assigned to the same Telnyx user)." enum: - only_my_connections - from_anyone @@ -59423,8 +61889,8 @@ components: CreateTexmlApplicationRequest_outbound: properties: channel_limit: - description: When set, this will limit the total number of outbound calls - to phone numbers associated with this connection. + description: "When set, this will limit the total number of outbound calls\ + \ to phone numbers associated with this connection." example: 10 type: integer outbound_voice_profile_id: @@ -59434,6 +61900,15 @@ components: title: Outbound Voice Profile ID type: string type: object + CursorPagination_cursors: + properties: + before: + description: A cursor to use for paginating results. + type: string + after: + description: A cursor to use for paginating results. + type: string + type: object CustomerServiceRequest_address: description: The address of the customer service request example: @@ -59485,6 +61960,36 @@ components: format: date-time type: string type: object + Dialogflow_Connection: + example: + conversation_profile_id: a-VMHLWzTmKjiJw5S6O0-w + service_account: '****' + environment: development + connection_id: "1234541231" + record_type: dialogflow_connections + properties: + record_type: + example: dialogflow_connections + type: string + connection_id: + description: Uniquely identifies a Telnyx application (Call Control). + example: "1234541231" + type: string + conversation_profile_id: + description: "The id of a configured conversation profile on your Dialogflow\ + \ account. (If you use Dialogflow CX, this param is required)" + example: a-VMHLWzTmKjiJw5S6O0-w + type: string + environment: + description: Which Dialogflow environment will be used. + example: development + type: string + service_account: + description: The JSON map to connect your Dialoglow account. + example: '****' + type: string + title: Dialogflow Connection + type: object DocReqsRequirementType_acceptance_criteria: description: Specifies objective criteria for acceptance example: @@ -59579,19 +62084,6 @@ components: readOnly: true type: string type: object - Error_source: - example: - pointer: pointer - parameter: parameter - properties: - pointer: - description: JSON pointer (RFC6901) to the offending entity. - format: json-pointer - type: string - parameter: - description: Indicates which query parameter caused the error. - type: string - type: object FaxDelivered_payload: properties: call_duration_secs: @@ -59599,38 +62091,34 @@ components: example: 25 type: integer connection_id: - description: The ID of the connection that was used to send the fax. + description: The ID of the connection used to send the fax. example: "234423" type: string direction: - description: The direction of the fax. - enum: - - inbound - - outbound - example: outbound - type: string + $ref: '#/components/schemas/Direction' fax_id: description: Identifies the fax. example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 format: uuid type: string original_media_url: - description: The original URL to the PDF used for the fax's media. If media_name - was supplied, this is omitted + description: "The original URL to the PDF used for the fax's media. If media_name\ + \ was supplied, this is omitted" example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string media_name: description: The media_name used for the fax's media. Must point to a file - previously uploaded to api.telnyx.com/v2/media by the same user/organization + previously uploaded to api.telnyx.com/v2/media by the same user/organization. + media_name and media_url/contents can't be submitted together. example: my_media_uploaded_to_media_storage_api type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI + description: "The phone number, in E.164 format, the fax will be sent to\ + \ or SIP URI" example: +13127367276 type: string from: - description: The phone number, in E.164 format, the fax will be sent from. + description: "The phone number, in E.164 format, the fax will be sent from." example: +13125790015 type: string user_id: @@ -59651,38 +62139,34 @@ components: FaxFailed_payload: properties: connection_id: - description: The ID of the connection that was used to send the fax. + description: The ID of the connection used to send the fax. example: "234423" type: string direction: - description: The direction of the fax. - enum: - - inbound - - outbound - example: outbound - type: string + $ref: '#/components/schemas/Direction' fax_id: description: Identifies the fax. example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 format: uuid type: string original_media_url: - description: The original URL to the PDF used for the fax's media. If media_name - was supplied, this is omitted + description: "The original URL to the PDF used for the fax's media. If media_name\ + \ was supplied, this is omitted" example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string media_name: description: The media_name used for the fax's media. Must point to a file - previously uploaded to api.telnyx.com/v2/media by the same user/organization + previously uploaded to api.telnyx.com/v2/media by the same user/organization. + media_name and media_url/contents can't be submitted together. example: my_media_uploaded_to_media_storage_api type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI + description: "The phone number, in E.164 format, the fax will be sent to\ + \ or SIP URI" example: +13127367276 type: string from: - description: The phone number, in E.164 format, the fax will be sent from. + description: "The phone number, in E.164 format, the fax will be sent from." example: +13125790015 type: string user_id: @@ -59704,38 +62188,34 @@ components: FaxMediaProcessed_payload: properties: connection_id: - description: The ID of the connection that was used to send the fax. + description: The ID of the connection used to send the fax. example: "234423" type: string direction: - description: The direction of the fax. - enum: - - inbound - - outbound - example: outbound - type: string + $ref: '#/components/schemas/Direction' fax_id: description: Identifies the fax. example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 format: uuid type: string original_media_url: - description: The original URL to the PDF used for the fax's media. If media_name - was supplied, this is omitted + description: "The original URL to the PDF used for the fax's media. If media_name\ + \ was supplied, this is omitted" example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string media_name: description: The media_name used for the fax's media. Must point to a file - previously uploaded to api.telnyx.com/v2/media by the same user/organization + previously uploaded to api.telnyx.com/v2/media by the same user/organization. + media_name and media_url/contents can't be submitted together. example: my_media_uploaded_to_media_storage_api type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI + description: "The phone number, in E.164 format, the fax will be sent to\ + \ or SIP URI" example: +13127367276 type: string from: - description: The phone number, in E.164 format, the fax will be sent from. + description: "The phone number, in E.164 format, the fax will be sent from." example: +13125790015 type: string user_id: @@ -59752,38 +62232,34 @@ components: FaxQueued_payload: properties: connection_id: - description: The ID of the connection that was used to send the fax. + description: The ID of the connection used to send the fax. example: "234423" type: string direction: - description: The direction of the fax. - enum: - - inbound - - outbound - example: outbound - type: string + $ref: '#/components/schemas/Direction' fax_id: description: Identifies the fax. example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 format: uuid type: string original_media_url: - description: The original URL to the PDF used for the fax's media. If media_name - was supplied, this is omitted + description: "The original URL to the PDF used for the fax's media. If media_name\ + \ was supplied, this is omitted" example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string media_name: description: The media_name used for the fax's media. Must point to a file - previously uploaded to api.telnyx.com/v2/media by the same user/organization + previously uploaded to api.telnyx.com/v2/media by the same user/organization. + media_name and media_url/contents can't be submitted together. example: my_media_uploaded_to_media_storage_api type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI + description: "The phone number, in E.164 format, the fax will be sent to\ + \ or SIP URI" example: +13127367276 type: string from: - description: The phone number, in E.164 format, the fax will be sent from. + description: "The phone number, in E.164 format, the fax will be sent from." example: +13125790015 type: string user_id: @@ -59800,38 +62276,34 @@ components: FaxSendingStarted_payload: properties: connection_id: - description: The ID of the connection that was used to send the fax. + description: The ID of the connection used to send the fax. example: "234423" type: string direction: - description: The direction of the fax. - enum: - - inbound - - outbound - example: outbound - type: string + $ref: '#/components/schemas/Direction' fax_id: description: Identifies the fax. example: 0ccc7b54-4df3-4bca-a65a-3da1ecc777f0 format: uuid type: string original_media_url: - description: The original URL to the PDF used for the fax's media. If media_name - was supplied, this is omitted + description: "The original URL to the PDF used for the fax's media. If media_name\ + \ was supplied, this is omitted" example: https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf type: string media_name: description: The media_name used for the fax's media. Must point to a file - previously uploaded to api.telnyx.com/v2/media by the same user/organization + previously uploaded to api.telnyx.com/v2/media by the same user/organization. + media_name and media_url/contents can't be submitted together. example: my_media_uploaded_to_media_storage_api type: string to: - description: The phone number, in E.164 format, the fax will be sent to - or SIP URI + description: "The phone number, in E.164 format, the fax will be sent to\ + \ or SIP URI" example: +13127367276 type: string from: - description: The phone number, in E.164 format, the fax will be sent from. + description: "The phone number, in E.164 format, the fax will be sent from." example: +13125790015 type: string user_id: @@ -59862,7 +62334,7 @@ components: specified resource or resources. meta: $ref: '#/components/schemas/ForbiddenError_allOf_meta' - InboundMessagePayload_to: + InboundMessagePayload_to_inner: properties: phone_number: description: Receiving address (+E.164 formatted phone number or short code). @@ -59893,7 +62365,7 @@ components: - "" type: string type: object - InboundMessagePayload_cc: + InboundMessagePayload_cc_inner: properties: phone_number: description: Receiving address (+E.164 formatted phone number or short code). @@ -59926,8 +62398,8 @@ components: InboundMessagePayload_from: properties: phone_number: - description: Sending address (+E.164 formatted phone number, alphanumeric - sender ID, or short code). + description: "Sending address (+E.164 formatted phone number, alphanumeric\ + \ sender ID, or short code)." format: address type: string status: @@ -59949,7 +62421,7 @@ components: - "" type: string type: object - InboundMessagePayload_media: + InboundMessagePayload_media_inner: properties: url: description: The url of the media requested to be sent. @@ -59980,6 +62452,49 @@ components: format: iso4217 type: string type: object + Header: + allOf: + - $ref: '#/components/schemas/InteractiveHeader' + description: Header content displayed on top of a message. See header object + for more information. You cannot set a header if your interactive object is + of product type. Required for type product_list. Optional for other types. + title: Header + Body: + allOf: + - $ref: '#/components/schemas/InteractiveBody' + description: The body of the message. Emojis and markdown are supported. Optional + for type product. Required for other message types. + title: Body + Footer: + allOf: + - $ref: '#/components/schemas/InteractiveFooter' + description: The footer of the message. Emojis and markdown are supported. + title: Footer + Action: + allOf: + - $ref: '#/components/schemas/InteractiveAction' + description: Action you want the user to perform after reading the message. + title: Action + Reply: + allOf: + - $ref: '#/components/schemas/InteractiveButtonReply' + description: Reply button details. + title: Reply + Video_1: + allOf: + - $ref: '#/components/schemas/Video' + description: Contains the media object for this video. + title: Video + Image_1: + allOf: + - $ref: '#/components/schemas/Image' + description: Contains the media object for this image. + title: Image + Document_1: + allOf: + - $ref: '#/components/schemas/Document' + description: Contains the media object for this document. + title: Document MessagingProfileHighLevelMetrics_outbound: properties: sent: @@ -60002,7 +62517,34 @@ components: readOnly: true type: number type: object - NotificationEventCondition_parameters: + Network_1: + properties: + record_type: + description: Identifies the type of the resource. + example: network + readOnly: true + type: string + name: + description: A user specified name for the network. + example: test network + type: string + title: Network + type: object + NetworkInterface_1: + properties: + record_type: + description: Identifies the type of the resource. + example: network_interface + readOnly: true + type: string + type: + description: Identifies the type of the interface. + example: wireguard_interface + readOnly: true + type: string + title: NetworkInterface + type: object + NotificationEventCondition_parameters_inner: example: name: phone_number data_type: string @@ -60018,7 +62560,7 @@ components: example: string type: string type: object - NotificationSetting_parameters: + NotificationSetting_parameters_inner: example: name: phone_number value: +13125550000 @@ -60055,8 +62597,8 @@ components: OutboundMessagePayload_from: properties: phone_number: - description: Sending address (+E.164 formatted phone number, alphanumeric - sender ID, or short code). + description: "Sending address (+E.164 formatted phone number, alphanumeric\ + \ sender ID, or short code)." format: address type: string carrier: @@ -60073,7 +62615,7 @@ components: - "" type: string type: object - OutboundMessagePayload_to: + OutboundMessagePayload_to_inner: properties: phone_number: description: Receiving address (+E.164 formatted phone number or short code). @@ -60105,7 +62647,7 @@ components: - "" type: string type: object - OutboundMessagePayload_media: + OutboundMessagePayload_media_inner: properties: url: description: The url of the media requested to be sent. @@ -60196,8 +62738,8 @@ components: PhoneNumberRegulatoryRequirement_allOf: properties: field_value: - description: The value of the requirement, this could be an id to a resource - or a string value. + description: "The value of the requirement, this could be an id to a resource\ + \ or a string value." example: 45f45a04-b4be-4592-95b1-9306b9db2b21 type: string type: object @@ -60209,6 +62751,57 @@ components: $ref: '#/components/schemas/MessagingFeatureSet' readOnly: true type: object + PortingOrderRequirementDetail_requirement_type: + description: Identifies the requirement type that meets this requirement + example: + name: Latest Invoice + description: A copy of the latest phone bill from the current provider + id: 53970723-fbff-4f46-a975-f62be6c1a585 + type: document + acceptance_criteria: + acceptable_values: [] + example: Most recent phone bill + properties: + acceptance_criteria: + description: The acceptance criteria for the requirement type + example: + acceptable_values: [] + type: object + description: + description: A description of the requirement type + example: A copy of the latest phone bill from the current provider + type: string + example: + description: An example of the requirement type + example: Most recent phone bill + type: string + id: + description: Identifies the requirement type + example: 53970723-fbff-4f46-a975-f62be6c1a585 + type: string + name: + description: The name of the requirement type + example: Latest Invoice + type: string + type: + description: The type of the requirement type + example: document + type: string + type: object + PublicInternetGateway_1: + properties: + record_type: + description: Identifies the type of the resource. + example: public_internet_gateway + readOnly: true + type: string + public_ip: + description: The publically accessible ip for this interface. + example: 127.0.0.1 + readOnly: true + type: string + title: PublicInternetGateway + type: object ReadComment_allOf: properties: read_at: @@ -60305,7 +62898,23 @@ components: example: audio type: string type: object - RegulatoryRequirements_region_information: + RegionOut_region: + properties: + code: + description: Region code of the interface. + example: ashburn-va + type: string + name: + description: Region name of the interface. + example: Ashburn + type: string + record_type: + description: Identifies the type of the resource. + example: region + readOnly: true + type: string + type: object + RegulatoryRequirements_region_information_inner: example: region_name: CH region_type: country_code @@ -60317,7 +62926,7 @@ components: example: country_code type: string type: object - RegulatoryRequirements_acceptance_criteria: + RegulatoryRequirements_regulatory_requirements_inner_acceptance_criteria: example: field_value: 45f45a04-b4be-4592-95b1-9306b9db2b21 locality_limit: Identical locality as the numbers desired @@ -60333,10 +62942,10 @@ components: example: address type: string type: object - RegulatoryRequirements_regulatory_requirements: + RegulatoryRequirements_regulatory_requirements_inner: example: - description: Address matching the DID area code (street, building number, - postal code, city and country) + description: "Address matching the DID area code (street, building number,\ + \ postal code, city and country)" id: 12ade33a-21c0-473b-b055-b3c836e1c292 label: Address matching the DID area code field_type: address_id @@ -60345,11 +62954,11 @@ components: locality_limit: Identical locality as the numbers desired field_type: address record_type: regulatory_requirement - example: 311 W Superior St, Chicago, IL 60654 + example: "311 W Superior St, Chicago, IL 60654" properties: description: - example: Address matching the DID area code (street, building number, postal - code, city and country) + example: "Address matching the DID area code (street, building number, postal\ + \ code, city and country)" readOnly: true type: string id: @@ -60358,7 +62967,7 @@ components: readOnly: true type: string example: - example: 311 W Superior St, Chicago, IL 60654 + example: "311 W Superior St, Chicago, IL 60654" readOnly: true type: string label: @@ -60368,7 +62977,7 @@ components: example: address_id type: string acceptance_criteria: - $ref: '#/components/schemas/RegulatoryRequirements_acceptance_criteria' + $ref: '#/components/schemas/RegulatoryRequirements_regulatory_requirements_inner_acceptance_criteria' record_type: example: regulatory_requirement readOnly: true @@ -60430,14 +63039,14 @@ components: accuracy_unit: m latitude: "41.143" accuracy: 1250 - longitude: -8.605 + longitude: "-8.605" properties: latitude: example: "41.143" format: float type: string longitude: - example: -8.605 + example: "-8.605" format: float type: string accuracy: @@ -60465,17 +63074,17 @@ components: readOnly: true type: string reason: - description: It describes why the SIM card action is in the current status. - This will be null for self-explanatory statuses, such as - in-progress and completed but will include further - information on statuses like interrupted and failed. + description: "It describes why the SIM card action is in the current status.\ + \ This will be null for self-explanatory statuses, such as\ + \ in-progress and completed but will include\ + \ further information on statuses like interrupted and failed." example: The data limit was exceeded. readOnly: true type: string type: object SIMCardGroup_data_limit: - description: Upper limit on the amount of data the SIM cards, within the group, - can use. + description: "Upper limit on the amount of data the SIM cards, within the group,\ + \ can use." example: amount: "2048.1" unit: MB @@ -60627,6 +63236,57 @@ components: type: string readOnly: true type: object + Template_Components: + anyOf: + - $ref: '#/components/schemas/TemplateComponent' + - $ref: '#/components/schemas/TemplateButtonComponent' + description: "" + properties: + type: + description: Describes the component type. + enum: + - header + - body + - footer + type: string + parameters: + items: + $ref: '#/components/schemas/Template_Parameters' + title: Template Component Parameters + type: array + required: + - type + title: Template Components + type: object + Template_Parameters: + description: Array containing the content of the message. + properties: + type: + description: Describes the parameter type. + enum: + - text + - currency + - date_time + - image + - document + - video + type: string + text: + type: string + currency: + $ref: '#/components/schemas/Currency' + date_time: + $ref: '#/components/schemas/DateTimeObject' + image: + $ref: '#/components/schemas/Image' + document: + $ref: '#/components/schemas/Document' + video: + $ref: '#/components/schemas/Video' + required: + - type + title: Template Parameters + type: object Transcription_payload_transcription_data: properties: confidence: @@ -60635,7 +63295,7 @@ components: format: double type: number is_final: - description: When false, it means that this is an interim result. + description: "When false, it means that this is an interim result." example: true type: boolean transcript: @@ -60655,10 +63315,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -60751,7 +63411,7 @@ components: example: Telnyx type: string type: object - VerifiedCallsDisplayProfile_phone_numbers: + VerifiedCallsDisplayProfile_phone_numbers_inner: description: A Phone Number that can make phone calls displaying the configured brand information properties: @@ -60780,7 +63440,7 @@ components: readOnly: true type: string google_approval_info: - description: Additional information about the decision, if available. + description: "Additional information about the decision, if available." readOnly: true type: string display_profile_id: @@ -60792,7 +63452,7 @@ components: description: Marks the Phone Number to be removed from the Display Profile type: boolean type: object - VerifiedCallsDisplayProfile_call_reasons: + VerifiedCallsDisplayProfile_call_reasons_inner: description: The Call Reason to be displayed to the call recipient properties: record_type: @@ -60819,7 +63479,7 @@ components: readOnly: true type: string google_approval_info: - description: Additional information about the decision, if available. + description: "Additional information about the decision, if available." readOnly: true type: string display_profile_id: @@ -60851,6 +63511,177 @@ components: - phone_number - response_code type: object + VirtualCrossConnect_1: + properties: + record_type: + description: Identifies the type of the resource. + example: virtual_cross_connect + readOnly: true + type: string + cloud_provider: + description: The Virtual Private Cloud with which you would like to establish + a cross connect. + enum: + - aws + - azure + - gce + example: aws + type: string + cloud_region: + description: The region where your Virtual Private Cloud hosts are located.

The available regions can be found using the /virtual_cross_connect_regions + endpoint. + example: us-east-1 + type: string + bgp_asn: + description: "The Border Gateway Protocol (BGP) Autonomous System Number\ + \ (ASN). If null, value will be assigned by Telnyx." + example: 1234 + type: number + bandwidth_mbps: + description: The desired throughput in Megabits per Second (Mbps) for your + Virtual Cross Connect.

The available bandwidths can be found + using the /virtual_cross_connect_regions endpoint. + example: 50 + type: number + primary_enabled: + description: Indicates whether the primary circuit is enabled. Setting this + to `false` will disable the circuit. + example: true + readOnly: true + type: boolean + primary_cloud_account_id: + description: The identifier for your Virtual Private Cloud. The number will + be different based upon your Cloud provider. + example: "123456789012" + type: string + primary_telnyx_ip: + description: "The IP address assigned to the Telnyx side of the Virtual\ + \ Cross Connect.

If none is provided, one will be generated\ + \ for you.

This value should be null for GCE as Google will\ + \ only inform you of your assigned IP once the connection has been accepted." + example: 169.254.0.1 + format: ipv4 + type: string + primary_cloud_ip: + description: "The IP address assigned for your side of the Virtual Cross\ + \ Connect.

If none is provided, one will be generated for you.
This value should be null for GCE as Google will only inform\ + \ you of your assigned IP once the connection has been accepted." + example: 169.254.0.2 + format: ipv4 + type: string + primary_bgp_key: + description: The authentication key for BGP peer configuration. + example: yFV4wEPtPVPfDUGLWiyQzwga + type: string + secondary_enabled: + description: Indicates whether the secondary circuit is enabled. Setting + this to `false` will disable the circuit. + example: true + readOnly: true + type: boolean + secondary_cloud_account_id: + description: The identifier for your Virtual Private Cloud. The number will + be different based upon your Cloud provider.

This attribute + is only necessary for GCE. + example: "" + type: string + secondary_telnyx_ip: + description: "The IP address assigned to the Telnyx side of the Virtual\ + \ Cross Connect.

If none is provided, one will be generated\ + \ for you.

This value should be null for GCE as Google will\ + \ only inform you of your assigned IP once the connection has been accepted." + example: 169.254.0.3 + format: ipv4 + type: string + secondary_cloud_ip: + description: "The IP address assigned for your side of the Virtual Cross\ + \ Connect.

If none is provided, one will be generated for you.
This value should be null for GCE as Google will only inform\ + \ you of your assigned IP once the connection has been accepted." + example: 169.254.0.4 + format: ipv4 + type: string + secondary_bgp_key: + description: The authentication key for BGP peer configuration. + example: ge1lONeK9RcA83uuWaw9DvZy + type: string + title: VirtualCrossConnect + type: object + VirtualCrossConnectPatch_1: + properties: + primary_enabled: + description: Indicates whether the primary circuit is enabled. Setting this + to `false` will disable the circuit. + example: true + type: boolean + primary_routing_announcement: + description: Whether the primary BGP route is being announced. + example: false + type: boolean + primary_cloud_ip: + description: "The IP address assigned for your side of the Virtual Cross\ + \ Connect.

If none is provided, one will be generated for you.
This value can not be patched once the VXC has bene provisioned." + example: 169.254.0.2 + format: ipv4 + type: string + secondary_enabled: + description: Indicates whether the secondary circuit is enabled. Setting + this to `false` will disable the circuit. + example: true + type: boolean + secondary_routing_announcement: + description: Whether the secondary BGP route is being announced. + example: false + type: boolean + secondary_cloud_ip: + description: "The IP address assigned for your side of the Virtual Cross\ + \ Connect.

If none is provided, one will be generated for you.
This value can not be patched once the VXC has bene provisioned." + example: 169.254.0.4 + format: ipv4 + type: string + title: VirtualCrossConnectPatch + type: object + VirtualCrossConnectRegion_1: + properties: + record_type: + description: Identifies the type of the resource. + example: virtual_cross_connect_region + readOnly: true + type: string + region_code: + description: The region the interface is deployed to. + example: ashburn-va + type: string + cloud_provider: + description: The Virtual Private Cloud with which you would like to establish + a cross connect. + enum: + - aws + - azure + - gce + example: aws + type: string + cloud_region: + description: The region where your Virtual Private Cloud hosts are located. + example: us-east-1 + type: string + bandwidth_mbps: + description: The available throughput in Megabits per Second (Mbps) for + your Virtual Cross Connect. + example: + - 50 + - 100 + - 200 + - 500 + items: + type: number + type: array + title: VirtualCrossConnectRegion + type: object WhatsappBusinessAccount_whatsapp_settings: description: The Facebook settings associated with the business account properties: @@ -60861,14 +63692,14 @@ components: description: The name of the business account in Facebook type: string account_review_status: - description: The review status of the account in Facebook.
  • PENDINGThe - account is waiting for review by the WhatsApp team. At this stage, the - account is allowed only to send messages using the pre-approved messaging - templates, from a single verified phone-number.
  • APPROVEDThe - WhatsApp team demeed the account as valid and now it has access to all - capabilities that the WhatsApp integration offers.
  • REJECTEDThe - account was rejected by the WhatsApp team. It will need to re-submit its - business information to resume the approval process.
+ description: "The review status of the account in Facebook.
  • PENDINGThe\ + \ account is waiting for review by the WhatsApp team. At this stage, the\ + \ account is allowed only to send messages using the pre-approved messaging\ + \ templates, from a single verified phone-number.
  • APPROVEDThe\ + \ WhatsApp team demeed the account as valid and now it has access to all\ + \ capabilities that the WhatsApp integration offers.
  • REJECTEDThe\ + \ account was rejected by the WhatsApp team. It will need to re-submit\ + \ its business information to resume the approval process.
" enum: - PENDING - APPROVED @@ -60895,6 +63726,122 @@ components: format: date type: string type: object + WhatsappMessageTemplate_components_inner: + example: + format: VIDEO + text: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: text + properties: + type: + example: text + type: string + text: + example: "Hello, {{1}}! Your appointment with {{2}} has been updated." + type: string + format: + example: VIDEO + type: string + type: object + WhatsappMessageTemplate_quality_score: + description: The quality rating shows how messages from your template have been + received by your customers in a rolling window of the past 24 hours. The possible + values are provided by WhatsApp and are subject to change. + example: + score: UNKNOWN + properties: + score: + enum: + - UNKNOWN + - HIGH + - MEDIUM + - LOW + example: UNKNOWN + type: string + type: object + WhatsappPhoneNumber_whatsapp_settings: + description: The WhatsApp settings associated with the business account + properties: + id: + description: The unique ID of the phone number in Facebook + type: string + display_name: + description: The display name of the phone number in the WhatsApp app + type: string + display_name_status: + description: The Facebook approval status of the phone numbers display name + enum: + - PENDING_REVIEW + - APPROVED + - DECLINED + - EXPIRED + - NONE + type: string + quality_rating: + description: The quality rating of the number in the WhatsApp app + type: string + WireguardInterface_1: + properties: + record_type: + description: Identifies the type of the resource. + example: wireguard_interface + readOnly: true + type: string + endpoint: + description: The Telnyx WireGuard peers `Peer.endpoint` value. + example: 203.0.113.0:51871 + readOnly: true + type: string + public_key: + description: The Telnyx WireGuard peers `Peer.PublicKey`. + example: qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU= + readOnly: true + type: string + title: WireguardInterface + type: object + WireguardPeer_1: + properties: + record_type: + description: Identifies the type of the resource. + example: wireguard_peer + readOnly: true + type: string + last_seen: + description: ISO 8601 formatted date-time indicating when peer sent traffic + last time. + example: 2018-02-02T22:25:27.521Z + readOnly: true + type: string + wireguard_interface_id: + description: The id of the wireguard interface associated with the peer. + example: 6a09cdc3-8948-47f0-aa62-74ac943d6c58 + format: uuid + type: string + private_key: + description: "Your WireGuard `Interface.PrivateKey`.

This attribute\ + \ is only ever utlised if, on POST, you do NOT provide your own `public_key`.\ + \ In which case, a new Public and Private key pair will be generated for\ + \ you. When your `private_key` is returned, you must save this immediately\ + \ as we do not save it within Telnyx. If you lose your Private Key, it\ + \ can not be recovered." + example: qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU= + readOnly: true + type: string + title: WireguardPeer + type: object + WireguardAllowedIP: + properties: + record_type: + description: Identifies the type of the resource. + example: wireguard_allowed_ip + readOnly: true + type: string + ip_address: + description: The IP address to add to the Wireguard Interface's AllowedIP + list. + example: 198.51.100.1 + type: string + title: WireguardAllowedIP + type: object callRecordingError_payload: properties: call_control_id: @@ -60911,10 +63858,10 @@ components: example: 428c31b6-7af4-4bcb-b7f5-5013ef9657c1 type: string call_session_id: - description: ID that is unique to the call session and can be used to correlate - webhook events. Call session is a group of related call legs that logically - belong to the same phone call, e.g. an inbound and outbound leg of a transferred - call. + description: "ID that is unique to the call session and can be used to correlate\ + \ webhook events. Call session is a group of related call legs that logically\ + \ belong to the same phone call, e.g. an inbound and outbound leg of a\ + \ transferred call." example: 428c31b6-abf3-3bc1-b7f4-5013ef9657c1 type: string client_state: @@ -60931,6 +63878,34 @@ components: example: Internal server error type: string type: object + http_request: + description: Request details. + properties: + url: + example: https://example.com/webhooks + type: string + headers: + description: "List of headers, limited to 10kB." + items: + example: "Header-Name: header value" + type: string + type: array + http_response: + description: "Response details, optional." + nullable: true + properties: + status: + example: 200 + type: integer + headers: + description: "List of headers, limited to 10kB." + items: + example: "Header-Name: header value" + type: string + type: array + body: + description: "Raw response body, limited to 10kB." + type: string webhook_delivery_webhook: description: Original webhook JSON data. Payload fields vary according to event type. diff --git a/build.gradle b/build.gradle index 397edead..81e34069 100644 --- a/build.gradle +++ b/build.gradle @@ -1,25 +1,25 @@ apply plugin: 'idea' apply plugin: 'eclipse' +apply plugin: 'com.diffplug.spotless' group = 'com.telnyx.sdk' -version = '3.0.0' +version = '3.5.0' buildscript { repositories { - maven { url "https://repo1.maven.org/maven2" } - jcenter() + mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:2.3.+' classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5' + classpath 'com.diffplug.spotless:spotless-plugin-gradle:5.17.1' } } repositories { - jcenter() + mavenCentral() } - if(hasProperty('target') && target == 'android') { apply plugin: 'com.android.library' @@ -49,7 +49,7 @@ if(hasProperty('target') && target == 'android') { } dependencies { - provided 'javax.annotation:jsr250-api:1.0' + provided "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" } } @@ -77,19 +77,17 @@ if(hasProperty('target') && target == 'android') { } else { apply plugin: 'java' - apply plugin: 'maven' + apply plugin: 'maven-publish' sourceCompatibility = JavaVersion.VERSION_1_8 targetCompatibility = JavaVersion.VERSION_1_8 - install { - repositories.mavenInstaller { - pom.artifactId = 'telnyx' - } - } + publishing { + publications { + maven(MavenPublication) { + artifactId = 'telnyx' - test { - testLogging { - events "PASSED", "SKIPPED", "FAILED" + from components.java + } } } @@ -100,30 +98,56 @@ if(hasProperty('target') && target == 'android') { } ext { - swagger_annotations_version = "1.5.22" - jackson_version = "2.12.4" - jackson_databind_version = "2.12.4" - jackson_databind_nullable_version = "0.2.1" - jersey_version = "2.27" - junit_version = "4.13" + swagger_annotations_version = "1.6.3" + jackson_version = "2.13.0" + jackson_databind_version = "2.13.0" + jackson_databind_nullable_version = "0.2.2" + jakarta_annotation_version = "1.3.5" + jersey_version = "2.35" + junit_version = "4.13.2" } dependencies { - compile "io.swagger:swagger-annotations:$swagger_annotations_version" - compile "com.google.code.findbugs:jsr305:3.0.2" - compile "org.glassfish.jersey.core:jersey-client:$jersey_version" - compile "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" - compile "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version" - compile "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version" - compile "com.fasterxml.jackson.core:jackson-core:$jackson_version" - compile "com.fasterxml.jackson.core:jackson-annotations:$jackson_version" - compile "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version" - compile "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version" - compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" - compile 'javax.annotation:javax.annotation-api:1.3.2' - testCompile "junit:junit:$junit_version" + implementation "io.swagger:swagger-annotations:$swagger_annotations_version" + implementation "com.google.code.findbugs:jsr305:3.0.2" + implementation "org.glassfish.jersey.core:jersey-client:$jersey_version" + implementation "org.glassfish.jersey.inject:jersey-hk2:$jersey_version" + implementation "org.glassfish.jersey.media:jersey-media-multipart:$jersey_version" + implementation "org.glassfish.jersey.media:jersey-media-json-jackson:$jersey_version" + implementation "org.glassfish.jersey.connectors:jersey-apache-connector:$jersey_version" + implementation "com.fasterxml.jackson.core:jackson-core:$jackson_version" + implementation "com.fasterxml.jackson.core:jackson-annotations:$jackson_version" + implementation "com.fasterxml.jackson.core:jackson-databind:$jackson_databind_version" + implementation "org.openapitools:jackson-databind-nullable:$jackson_databind_nullable_version" + implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version" + implementation "jakarta.annotation:jakarta.annotation-api:$jakarta_annotation_version" + testImplementation "junit:junit:$junit_version" } javadoc { options.tags = [ "http.response.details:a:Http Response Details" ] -} \ No newline at end of file +} + +// Use spotless plugin to automatically format code, remove unused import, etc +// To apply changes directly to the file, run `gradlew spotlessApply` +// Ref: https://github.com/diffplug/spotless/tree/main/plugin-gradle +spotless { + // comment out below to run spotless as part of the `check` task + enforceCheck false + + format 'misc', { + // define the files (e.g. '*.gradle', '*.md') to apply `misc` to + target '.gitignore' + // define the steps to apply to those files + trimTrailingWhitespace() + indentWithSpaces() // Takes an integer argument if you don't like 4 + endWithNewline() + } + java { + // don't need to set target, it is inferred from java + // apply a specific flavor of google-java-format + googleJavaFormat('1.8').aosp().reflowLongStrings() + removeUnusedImports() + importOrder() + } +} diff --git a/build.sbt b/build.sbt index d803edc5..a52ad5c2 100644 --- a/build.sbt +++ b/build.sbt @@ -2,24 +2,27 @@ lazy val root = (project in file(".")). settings( organization := "com.telnyx.sdk", name := "telnyx", - version := "3.0.0", + version := "3.5.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), - javacOptions in compile ++= Seq("-Xlint:deprecation"), - publishArtifact in (Compile, packageDoc) := false, + Compile / javacOptions ++= Seq("-Xlint:deprecation"), + Compile / packageDoc / publishArtifact := false, resolvers += Resolver.mavenLocal, libraryDependencies ++= Seq( - "io.swagger" % "swagger-annotations" % "1.5.22", - "org.glassfish.jersey.core" % "jersey-client" % "2.27", - "org.glassfish.jersey.inject" % "jersey-hk2" % "2.27", - "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.27", - "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.27", - "com.fasterxml.jackson.core" % "jackson-core" % "2.10.4" % "compile", - "com.fasterxml.jackson.core" % "jackson-annotations" % "2.10.4" % "compile", - "com.fasterxml.jackson.core" % "jackson-databind" % "2.10.4" % "compile", - "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.9.10" % "compile", - "javax.annotation" % "javax.annotation-api" % "1.3.2" % "compile", - "junit" % "junit" % "4.13" % "test", + "com.google.code.findbugs" % "jsr305" % "3.0.0", + "io.swagger" % "swagger-annotations" % "1.6.3", + "org.glassfish.jersey.core" % "jersey-client" % "2.35", + "org.glassfish.jersey.inject" % "jersey-hk2" % "2.35", + "org.glassfish.jersey.media" % "jersey-media-multipart" % "2.35", + "org.glassfish.jersey.media" % "jersey-media-json-jackson" % "2.35", + "org.glassfish.jersey.connectors" % "jersey-apache-connector" % "2.35", + "com.fasterxml.jackson.core" % "jackson-core" % "2.13.0" % "compile", + "com.fasterxml.jackson.core" % "jackson-annotations" % "2.13.0" % "compile", + "com.fasterxml.jackson.core" % "jackson-databind" % "2.13.0" % "compile", + "com.fasterxml.jackson.datatype" % "jackson-datatype-jsr310" % "2.13.0" % "compile", + "org.openapitools" % "jackson-databind-nullable" % "0.2.2" % "compile", + "jakarta.annotation" % "jakarta.annotation-api" % "1.3.5" % "compile", + "junit" % "junit" % "4.13.2" % "test", "com.novocode" % "junit-interface" % "0.10" % "test" ) - ) \ No newline at end of file + ) diff --git a/docs/AccessIPAddressListResponseSchema.md b/docs/AccessIPAddressListResponseSchema.md index 459c9db4..cfd27c47 100644 --- a/docs/AccessIPAddressListResponseSchema.md +++ b/docs/AccessIPAddressListResponseSchema.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<AccessIPAddressResponseSchema>**](AccessIPAddressResponseSchema.md) | | -**meta** | [**PaginationMeta**](PaginationMeta.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<AccessIPAddressResponseSchema>**](AccessIPAddressResponseSchema.md) | | | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | | diff --git a/docs/AccessIPAddressPOST.md b/docs/AccessIPAddressPOST.md index 33bf2fba..d0a2cbee 100644 --- a/docs/AccessIPAddressPOST.md +++ b/docs/AccessIPAddressPOST.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**ipAddress** | **String** | | -**description** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ipAddress** | **String** | | | +|**description** | **String** | | [optional] | diff --git a/docs/AccessIPAddressResponseSchema.md b/docs/AccessIPAddressResponseSchema.md index 93ea28dc..2c420de2 100644 --- a/docs/AccessIPAddressResponseSchema.md +++ b/docs/AccessIPAddressResponseSchema.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**ipAddress** | **String** | | -**source** | **String** | | -**status** | **CloudflareSyncStatus** | | -**description** | **String** | | [optional] -**userId** | **String** | | -**createdAt** | **OffsetDateTime** | | [optional] -**updatedAt** | **OffsetDateTime** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**ipAddress** | **String** | | | +|**source** | **String** | | | +|**status** | **CloudflareSyncStatus** | | | +|**description** | **String** | | [optional] | +|**userId** | **String** | | | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | [optional] | diff --git a/docs/AccessIPRangeListResponseSchema.md b/docs/AccessIPRangeListResponseSchema.md index 68f4ce9d..34f68fdf 100644 --- a/docs/AccessIPRangeListResponseSchema.md +++ b/docs/AccessIPRangeListResponseSchema.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<AccessIPRangeResponseSchema>**](AccessIPRangeResponseSchema.md) | | -**meta** | [**PaginationMeta**](PaginationMeta.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<AccessIPRangeResponseSchema>**](AccessIPRangeResponseSchema.md) | | | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | | diff --git a/docs/AccessIPRangePOST.md b/docs/AccessIPRangePOST.md index 38b4122f..1665adec 100644 --- a/docs/AccessIPRangePOST.md +++ b/docs/AccessIPRangePOST.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cidrBlock** | **String** | | -**description** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cidrBlock** | **String** | | | +|**description** | **String** | | [optional] | diff --git a/docs/AccessIPRangeResponseSchema.md b/docs/AccessIPRangeResponseSchema.md index 272d0b8c..28461e2e 100644 --- a/docs/AccessIPRangeResponseSchema.md +++ b/docs/AccessIPRangeResponseSchema.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**cidrBlock** | **String** | | -**status** | **CloudflareSyncStatus** | | -**description** | **String** | | [optional] -**userId** | **String** | | -**createdAt** | **OffsetDateTime** | | [optional] -**updatedAt** | **OffsetDateTime** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**cidrBlock** | **String** | | | +|**status** | **CloudflareSyncStatus** | | | +|**description** | **String** | | [optional] | +|**userId** | **String** | | | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | [optional] | diff --git a/docs/Action.md b/docs/Action.md new file mode 100644 index 00000000..011de196 --- /dev/null +++ b/docs/Action.md @@ -0,0 +1,18 @@ + + +# Action + +Action you want the user to perform after reading the message. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**button** | **String** | Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Required for List Messages. | [optional] | +|**buttons** | [**List<InteractiveButton>**](InteractiveButton.md) | A list of buttons. Required for Reply Button Messages. | [optional] | +|**sections** | [**List<InteractiveSection>**](InteractiveSection.md) | Array of section objects. Required for List Messages and Multi-Product Messages. | [optional] | +|**catalogId** | **String** | Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. This ID can be retrieved via Commerce Manager. Required for Single Product Messages and Multi-Product Messages. | [optional] | +|**productRetailerId** | **String** | Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name. | [optional] | + + + diff --git a/docs/ActionsParticipantsRequest.md b/docs/ActionsParticipantsRequest.md index 4177ea0b..7f3532a2 100644 --- a/docs/ActionsParticipantsRequest.md +++ b/docs/ActionsParticipantsRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**participants** | [**OneOfstringarray**](OneOfstringarray.md) | Either a list of participant id to perform the action on, or the keyword \"all\" to perform the action on all participant. | [optional] -**exclude** | **List<UUID>** | List of participant id to exclude from the action. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**participants** | [**ActionsParticipantsRequestParticipants**](ActionsParticipantsRequestParticipants.md) | | [optional] | +|**exclude** | **List<UUID>** | List of participant id to exclude from the action. | [optional] | diff --git a/docs/ActionsParticipantsRequestParticipants.md b/docs/ActionsParticipantsRequestParticipants.md new file mode 100644 index 00000000..1abfcf61 --- /dev/null +++ b/docs/ActionsParticipantsRequestParticipants.md @@ -0,0 +1,40 @@ + + +# ActionsParticipantsRequestParticipants + +Either a list of participant id to perform the action on, or the keyword \"all\" to perform the action on all participant. + +## oneOf schemas +* [List](List.md) +* [String](String.md) + +## Example + +```java +// Import classes: + +import com.telnyx.sdk.model.List; +import com.telnyx.sdk.model.String; + +public class Example { + public static void main(String[] args) { + ActionsParticipantsRequestParticipants exampleActionsParticipantsRequestParticipants = new ActionsParticipantsRequestParticipants(); + + // create a new List + List exampleList = new List(); + // set ActionsParticipantsRequestParticipants to List + exampleActionsParticipantsRequestParticipants.setActualInstance(exampleList < UUID >); + // to get back the List set earlier + List testList = (List) exampleActionsParticipantsRequestParticipants.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set ActionsParticipantsRequestParticipants to String + exampleActionsParticipantsRequestParticipants.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleActionsParticipantsRequestParticipants.getActualInstance(); + } +} +``` + + diff --git a/docs/ActivatePortingOrder202Response.md b/docs/ActivatePortingOrder202Response.md new file mode 100644 index 00000000..76ca5ec4 --- /dev/null +++ b/docs/ActivatePortingOrder202Response.md @@ -0,0 +1,13 @@ + + +# ActivatePortingOrder202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortingOrdersActivationJob**](PortingOrdersActivationJob.md) | | [optional] | + + + diff --git a/docs/AmdDetailRecord.md b/docs/AmdDetailRecord.md index d0451f00..bf80c114 100644 --- a/docs/AmdDetailRecord.md +++ b/docs/AmdDetailRecord.md @@ -5,32 +5,32 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Feature invocation id | [optional] -**invokedAt** | **OffsetDateTime** | Feature invocation time | [optional] -**feature** | [**FeatureEnum**](#FeatureEnum) | Feature name | [optional] -**tags** | **String** | User-provided tags | [optional] -**billingGroupId** | **String** | Billing Group id | [optional] -**billingGroupName** | **String** | Name of the Billing Group specified in billing_group_id | [optional] -**connectionId** | **String** | Connection id | [optional] -**connectionName** | **String** | Connection name | [optional] -**callLegId** | **String** | Telnyx UUID that identifies the related call leg | [optional] -**callSessionId** | **String** | Telnyx UUID that identifies the related call session | [optional] -**isTelnyxBillable** | **Boolean** | Indicates whether Telnyx billing charges might be applicable | [optional] -**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] -**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing cost | [optional] -**cost** | **String** | Currency amount for Telnyx billing cost | [optional] -**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] -**recordType** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Feature invocation id | [optional] | +|**invokedAt** | **OffsetDateTime** | Feature invocation time | [optional] | +|**feature** | [**FeatureEnum**](#FeatureEnum) | Feature name | [optional] | +|**tags** | **String** | User-provided tags | [optional] | +|**billingGroupId** | **String** | Billing Group id | [optional] | +|**billingGroupName** | **String** | Name of the Billing Group specified in billing_group_id | [optional] | +|**connectionId** | **String** | Connection id | [optional] | +|**connectionName** | **String** | Connection name | [optional] | +|**callLegId** | **String** | Telnyx UUID that identifies the related call leg | [optional] | +|**callSessionId** | **String** | Telnyx UUID that identifies the related call session | [optional] | +|**isTelnyxBillable** | **Boolean** | Indicates whether Telnyx billing charges might be applicable | [optional] | +|**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] | +|**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing cost | [optional] | +|**cost** | **String** | Currency amount for Telnyx billing cost | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] | +|**recordType** | **String** | | | ## Enum: FeatureEnum -Name | Value ----- | ----- -PREMIUM | "PREMIUM" +| Name | Value | +|---- | -----| +| PREMIUM | "PREMIUM" | diff --git a/docs/AnswerRequest.md b/docs/AnswerRequest.md index 654d17c8..74f3d1ca 100644 --- a/docs/AnswerRequest.md +++ b/docs/AnswerRequest.md @@ -5,35 +5,35 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billingGroupId** | **UUID** | Use this field to set the Billing Group ID for the call. Must be a valid and existing Billing Group ID. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] -**streamUrl** | **String** | The destination WebSocket address where the stream is going to be delivered. | [optional] -**soundModifications** | [**SoundModifications**](SoundModifications.md) | | [optional] -**streamTrack** | [**StreamTrackEnum**](#StreamTrackEnum) | Specifies which track should be streamed. | [optional] -**webhookUrl** | **String** | Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call. | [optional] -**webhookUrlMethod** | [**WebhookUrlMethodEnum**](#WebhookUrlMethodEnum) | HTTP request type used for `webhook_url`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**billingGroupId** | **UUID** | Use this field to set the Billing Group ID for the call. Must be a valid and existing Billing Group ID. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**streamUrl** | **String** | The destination WebSocket address where the stream is going to be delivered. | [optional] | +|**soundModifications** | [**SoundModifications**](SoundModifications.md) | | [optional] | +|**streamTrack** | [**StreamTrackEnum**](#StreamTrackEnum) | Specifies which track should be streamed. | [optional] | +|**webhookUrl** | **String** | Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call. | [optional] | +|**webhookUrlMethod** | [**WebhookUrlMethodEnum**](#WebhookUrlMethodEnum) | HTTP request type used for `webhook_url`. | [optional] | ## Enum: StreamTrackEnum -Name | Value ----- | ----- -INBOUND_TRACK | "inbound_track" -OUTBOUND_TRACK | "outbound_track" -BOTH_TRACKS | "both_tracks" +| Name | Value | +|---- | -----| +| INBOUND_TRACK | "inbound_track" | +| OUTBOUND_TRACK | "outbound_track" | +| BOTH_TRACKS | "both_tracks" | ## Enum: WebhookUrlMethodEnum -Name | Value ----- | ----- -POST | "POST" -GET | "GET" +| Name | Value | +|---- | -----| +| POST | "POST" | +| GET | "GET" | diff --git a/docs/AssignPhoneNumberRequest.md b/docs/AssignPhoneNumberRequest.md new file mode 100644 index 00000000..e11c9103 --- /dev/null +++ b/docs/AssignPhoneNumberRequest.md @@ -0,0 +1,13 @@ + + +# AssignPhoneNumberRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | | | + + + diff --git a/docs/Attempt.md b/docs/Attempt.md index 34ed0010..4d3bf5d5 100644 --- a/docs/Attempt.md +++ b/docs/Attempt.md @@ -6,22 +6,22 @@ Webhook delivery attempt details. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**startedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the attempt was initiated. | [optional] -**finishedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the attempt has finished. | [optional] -**http** | [**Http**](Http.md) | | [optional] -**errors** | [**List<Error>**](Error.md) | Webhook delivery errors. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**startedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the attempt was initiated. | [optional] | +|**finishedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the attempt has finished. | [optional] | +|**http** | [**Http**](Http.md) | | [optional] | +|**errors** | [**List<Error>**](Error.md) | Webhook delivery errors. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -DELIVERED | "delivered" -FAILED | "failed" +| Name | Value | +|---- | -----| +| DELIVERED | "delivered" | +| FAILED | "failed" | diff --git a/docs/Audio.md b/docs/Audio.md index b23a1ee6..e2001cd9 100644 --- a/docs/Audio.md +++ b/docs/Audio.md @@ -6,10 +6,10 @@ The media object containing audio details. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] -**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] | +|**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] | diff --git a/docs/AuthenticationProvider.md b/docs/AuthenticationProvider.md index cb75cfaa..d96fc3ec 100644 --- a/docs/AuthenticationProvider.md +++ b/docs/AuthenticationProvider.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies the authentication provider. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**name** | **String** | The name associated with the authentication provider. | [optional] -**shortName** | **String** | The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | [optional] -**organizationId** | **UUID** | The id from the Organization the authentication provider belongs to. | [optional] -**active** | **Boolean** | The active status of the authentication provider | [optional] -**settings** | [**AuthenticationProviderSettings**](AuthenticationProviderSettings.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies the authentication provider. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**name** | **String** | The name associated with the authentication provider. | [optional] | +|**shortName** | **String** | The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | [optional] | +|**organizationId** | **UUID** | The id from the Organization the authentication provider belongs to. | [optional] | +|**active** | **Boolean** | The active status of the authentication provider | [optional] | +|**settings** | [**AuthenticationProviderSettings**](AuthenticationProviderSettings.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | diff --git a/docs/AuthenticationProviderCreate.md b/docs/AuthenticationProviderCreate.md index 0d0b1c98..b348d26e 100644 --- a/docs/AuthenticationProviderCreate.md +++ b/docs/AuthenticationProviderCreate.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name associated with the authentication provider. | -**shortName** | **String** | The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | -**active** | **Boolean** | The active status of the authentication provider | [optional] -**settings** | [**Settings**](Settings.md) | | -**settingsUrl** | **String** | The URL for the identity provider metadata file to populate the settings automatically. If the settings attribute is provided, that will be used instead. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The name associated with the authentication provider. | | +|**shortName** | **String** | The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | | +|**active** | **Boolean** | The active status of the authentication provider | [optional] | +|**settings** | [**Settings**](Settings.md) | | | +|**settingsUrl** | **String** | The URL for the identity provider metadata file to populate the settings automatically. If the settings attribute is provided, that will be used instead. | [optional] | diff --git a/docs/AuthenticationProviderSettings.md b/docs/AuthenticationProviderSettings.md index b5fe5d6d..ff9e6072 100644 --- a/docs/AuthenticationProviderSettings.md +++ b/docs/AuthenticationProviderSettings.md @@ -6,26 +6,26 @@ The settings associated with the authentication provider. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**assertionConsumerServiceUrl** | **String** | The Assertion Consumer Service URL for the service provider (Telnyx). | [optional] -**serviceProviderEntityId** | **String** | The Entity ID for the service provider (Telnyx). | [optional] -**idpEntityId** | **String** | The Entity ID for the identity provider (IdP). | [optional] -**idpSsoTargetUrl** | **String** | The SSO target url for the identity provider (IdP). | [optional] -**idpCertFingerprint** | **String** | The certificate fingerprint for the identity provider (IdP) | [optional] -**idpCertFingerprintAlgorithm** | [**IdpCertFingerprintAlgorithmEnum**](#IdpCertFingerprintAlgorithmEnum) | The algorithm used to generate the identity provider's (IdP) certificate fingerprint | [optional] -**nameIdentifierFormat** | **String** | The name identifier format associated with the authentication provider. This must be the same for both the Identity Provider (IdP) and the service provider (Telnyx). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**assertionConsumerServiceUrl** | **String** | The Assertion Consumer Service URL for the service provider (Telnyx). | [optional] | +|**serviceProviderEntityId** | **String** | The Entity ID for the service provider (Telnyx). | [optional] | +|**idpEntityId** | **String** | The Entity ID for the identity provider (IdP). | [optional] | +|**idpSsoTargetUrl** | **String** | The SSO target url for the identity provider (IdP). | [optional] | +|**idpCertFingerprint** | **String** | The certificate fingerprint for the identity provider (IdP) | [optional] | +|**idpCertFingerprintAlgorithm** | [**IdpCertFingerprintAlgorithmEnum**](#IdpCertFingerprintAlgorithmEnum) | The algorithm used to generate the identity provider's (IdP) certificate fingerprint | [optional] | +|**nameIdentifierFormat** | **String** | The name identifier format associated with the authentication provider. This must be the same for both the Identity Provider (IdP) and the service provider (Telnyx). | [optional] | ## Enum: IdpCertFingerprintAlgorithmEnum -Name | Value ----- | ----- -SHA1 | "sha1" -SHA256 | "sha256" -SHA384 | "sha384" -SHA512 | "sha512" +| Name | Value | +|---- | -----| +| SHA1 | "sha1" | +| SHA256 | "sha256" | +| SHA384 | "sha384" | +| SHA512 | "sha512" | diff --git a/docs/AuthenticationProvidersApi.md b/docs/AuthenticationProvidersApi.md index 2a68bd99..86d3cedc 100644 --- a/docs/AuthenticationProvidersApi.md +++ b/docs/AuthenticationProvidersApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## createAuthenticationProvider -> AuthenticationProviderResponse createAuthenticationProvider(authenticationProviderCreate) +> CreateAuthenticationProvider200Response createAuthenticationProvider(authenticationProviderCreate) Creates an authentication provider @@ -43,7 +43,7 @@ public class Example { AuthenticationProvidersApi apiInstance = new AuthenticationProvidersApi(defaultClient); AuthenticationProviderCreate authenticationProviderCreate = new AuthenticationProviderCreate(); // AuthenticationProviderCreate | Parameters that can be defined during authentication provider creation try { - AuthenticationProviderResponse result = apiInstance.createAuthenticationProvider(authenticationProviderCreate); + CreateAuthenticationProvider200Response result = apiInstance.createAuthenticationProvider(authenticationProviderCreate); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationProvidersApi#createAuthenticationProvider"); @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**AuthenticationProviderResponse**](AuthenticationProviderResponse.md) +[**CreateAuthenticationProvider200Response**](CreateAuthenticationProvider200Response.md) ### Authorization @@ -85,7 +85,7 @@ Name | Type | Description | Notes ## deleteAuthenticationProvider -> AuthenticationProviderResponse deleteAuthenticationProvider(id) +> CreateAuthenticationProvider200Response deleteAuthenticationProvider(id) Deletes an authentication provider @@ -114,7 +114,7 @@ public class Example { AuthenticationProvidersApi apiInstance = new AuthenticationProvidersApi(defaultClient); String id = "id_example"; // String | authentication provider ID try { - AuthenticationProviderResponse result = apiInstance.deleteAuthenticationProvider(id); + CreateAuthenticationProvider200Response result = apiInstance.deleteAuthenticationProvider(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationProvidersApi#deleteAuthenticationProvider"); @@ -136,7 +136,7 @@ Name | Type | Description | Notes ### Return type -[**AuthenticationProviderResponse**](AuthenticationProviderResponse.md) +[**CreateAuthenticationProvider200Response**](CreateAuthenticationProvider200Response.md) ### Authorization @@ -158,7 +158,7 @@ Name | Type | Description | Notes ## findAuthenticationProviders -> GetAllAuthenticationProvidersResponse findAuthenticationProviders(pageNumber, pageSize, sort) +> FindAuthenticationProviders200Response findAuthenticationProviders(pageNumber, pageSize, sort) List all SSO authentication providers @@ -189,7 +189,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page String sort = "name"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • name: sorts the result by the name field in ascending order.
  • -name: sorts the result by the name field in descending order.

If not given, results are sorted by created_at in descending order. try { - GetAllAuthenticationProvidersResponse result = apiInstance.findAuthenticationProviders(pageNumber, pageSize, sort); + FindAuthenticationProviders200Response result = apiInstance.findAuthenticationProviders(pageNumber, pageSize, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationProvidersApi#findAuthenticationProviders"); @@ -213,7 +213,7 @@ Name | Type | Description | Notes ### Return type -[**GetAllAuthenticationProvidersResponse**](GetAllAuthenticationProvidersResponse.md) +[**FindAuthenticationProviders200Response**](FindAuthenticationProviders200Response.md) ### Authorization @@ -235,7 +235,7 @@ Name | Type | Description | Notes ## getAuthenticationProvider -> AuthenticationProviderResponse getAuthenticationProvider(id) +> CreateAuthenticationProvider200Response getAuthenticationProvider(id) Retrieve an authentication provider @@ -264,7 +264,7 @@ public class Example { AuthenticationProvidersApi apiInstance = new AuthenticationProvidersApi(defaultClient); String id = "id_example"; // String | authentication provider ID try { - AuthenticationProviderResponse result = apiInstance.getAuthenticationProvider(id); + CreateAuthenticationProvider200Response result = apiInstance.getAuthenticationProvider(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationProvidersApi#getAuthenticationProvider"); @@ -286,7 +286,7 @@ Name | Type | Description | Notes ### Return type -[**AuthenticationProviderResponse**](AuthenticationProviderResponse.md) +[**CreateAuthenticationProvider200Response**](CreateAuthenticationProvider200Response.md) ### Authorization @@ -308,7 +308,7 @@ Name | Type | Description | Notes ## updateAuthenticationProvider -> AuthenticationProviderResponse updateAuthenticationProvider(id, updateAuthenticationProviderRequest) +> CreateAuthenticationProvider200Response updateAuthenticationProvider(id, updateAuthenticationProviderRequest) Update a authentication provider @@ -338,7 +338,7 @@ public class Example { String id = "id_example"; // String | Identifies the resource. UpdateAuthenticationProviderRequest updateAuthenticationProviderRequest = new UpdateAuthenticationProviderRequest(); // UpdateAuthenticationProviderRequest | Parameters that can be updated in a authentication provider try { - AuthenticationProviderResponse result = apiInstance.updateAuthenticationProvider(id, updateAuthenticationProviderRequest); + CreateAuthenticationProvider200Response result = apiInstance.updateAuthenticationProvider(id, updateAuthenticationProviderRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling AuthenticationProvidersApi#updateAuthenticationProvider"); @@ -361,7 +361,7 @@ Name | Type | Description | Notes ### Return type -[**AuthenticationProviderResponse**](AuthenticationProviderResponse.md) +[**CreateAuthenticationProvider200Response**](CreateAuthenticationProvider200Response.md) ### Authorization diff --git a/docs/AvailablePhoneNumber.md b/docs/AvailablePhoneNumber.md index 51ca3735..d4b55156 100644 --- a/docs/AvailablePhoneNumber.md +++ b/docs/AvailablePhoneNumber.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | [optional] -**phoneNumber** | **String** | | [optional] -**vanityFormat** | **String** | | [optional] -**bestEffort** | **Boolean** | Specifies whether the phone number is an exact match based on the search criteria or not. | [optional] -**quickship** | **Boolean** | Specifies whether the phone number can receive calls immediately after purchase or not. | [optional] -**reservable** | **Boolean** | Specifies whether the phone number can be reserved before purchase or not. | [optional] -**regionInformation** | [**List<RegionInformation>**](RegionInformation.md) | | [optional] -**costInformation** | [**CostInformation**](CostInformation.md) | | [optional] -**features** | [**List<Feature>**](Feature.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | [optional] | +|**phoneNumber** | **String** | | [optional] | +|**vanityFormat** | **String** | | [optional] | +|**bestEffort** | **Boolean** | Specifies whether the phone number is an exact match based on the search criteria or not. | [optional] | +|**quickship** | **Boolean** | Specifies whether the phone number can receive calls immediately after purchase or not. | [optional] | +|**reservable** | **Boolean** | Specifies whether the phone number can be reserved before purchase or not. | [optional] | +|**regionInformation** | [**List<RegionInformation>**](RegionInformation.md) | | [optional] | +|**costInformation** | [**CostInformation**](CostInformation.md) | | [optional] | +|**features** | [**List<Feature>**](Feature.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -AVAILABLE_PHONE_NUMBER | "available_phone_number" +| Name | Value | +|---- | -----| +| AVAILABLE_PHONE_NUMBER | "available_phone_number" | diff --git a/docs/AvailablePhoneNumberBlock.md b/docs/AvailablePhoneNumberBlock.md index e2cd9c46..abef84bb 100644 --- a/docs/AvailablePhoneNumberBlock.md +++ b/docs/AvailablePhoneNumberBlock.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | [optional] -**startingNumber** | **String** | | [optional] -**range** | **Integer** | | [optional] -**regionInformation** | [**List<RegionInformation>**](RegionInformation.md) | | [optional] -**costInformation** | [**CostInformation**](CostInformation.md) | | [optional] -**features** | [**List<Feature>**](Feature.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | [optional] | +|**startingNumber** | **String** | | [optional] | +|**range** | **Integer** | | [optional] | +|**regionInformation** | [**List<RegionInformation>**](RegionInformation.md) | | [optional] | +|**costInformation** | [**CostInformation**](CostInformation.md) | | [optional] | +|**features** | [**List<Feature>**](Feature.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -AVAILABLE_PHONE_NUMBER_BLOCK | "available_phone_number_block" +| Name | Value | +|---- | -----| +| AVAILABLE_PHONE_NUMBER_BLOCK | "available_phone_number_block" | diff --git a/docs/AvailablePhoneNumbersMetadata.md b/docs/AvailablePhoneNumbersMetadata.md index fccce4de..11a22187 100644 --- a/docs/AvailablePhoneNumbersMetadata.md +++ b/docs/AvailablePhoneNumbersMetadata.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalResults** | **Integer** | | [optional] -**bestEffortResults** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalResults** | **Integer** | | [optional] | +|**bestEffortResults** | **Integer** | | [optional] | diff --git a/docs/BillingApi.md b/docs/BillingApi.md index 2eabd9cb..191c1429 100644 --- a/docs/BillingApi.md +++ b/docs/BillingApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## getUserBalance -> UserBalanceResponse getUserBalance() +> GetUserBalance200Response getUserBalance() Retrieve user balance details @@ -36,7 +36,7 @@ public class Example { BillingApi apiInstance = new BillingApi(defaultClient); try { - UserBalanceResponse result = apiInstance.getUserBalance(); + GetUserBalance200Response result = apiInstance.getUserBalance(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BillingApi#getUserBalance"); @@ -55,7 +55,7 @@ This endpoint does not need any parameter. ### Return type -[**UserBalanceResponse**](UserBalanceResponse.md) +[**GetUserBalance200Response**](GetUserBalance200Response.md) ### Authorization diff --git a/docs/BillingGroup.md b/docs/BillingGroup.md index 0a3f311b..ae58a443 100644 --- a/docs/BillingGroup.md +++ b/docs/BillingGroup.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**organizationId** | **UUID** | Identifies the organization that owns the resource. | [optional] -**name** | **String** | A user-specified name for the billing group | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] -**deletedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was removed. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**organizationId** | **UUID** | Identifies the organization that owns the resource. | [optional] | +|**name** | **String** | A user-specified name for the billing group | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | +|**deletedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was removed. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -BILLING_GROUP | "billing_group" +| Name | Value | +|---- | -----| +| BILLING_GROUP | "billing_group" | diff --git a/docs/BillingGroupsApi.md b/docs/BillingGroupsApi.md index 8656d2e8..daca008a 100644 --- a/docs/BillingGroupsApi.md +++ b/docs/BillingGroupsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## createBillingGroup -> CreateBillingGroupResponse createBillingGroup(newBillingGroup) +> CreateBillingGroup200Response createBillingGroup(newBillingGroup) Create a billing group @@ -41,7 +41,7 @@ public class Example { BillingGroupsApi apiInstance = new BillingGroupsApi(defaultClient); NewBillingGroup newBillingGroup = new NewBillingGroup(); // NewBillingGroup | New billing group object try { - CreateBillingGroupResponse result = apiInstance.createBillingGroup(newBillingGroup); + CreateBillingGroup200Response result = apiInstance.createBillingGroup(newBillingGroup); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BillingGroupsApi#createBillingGroup"); @@ -63,7 +63,7 @@ Name | Type | Description | Notes ### Return type -[**CreateBillingGroupResponse**](CreateBillingGroupResponse.md) +[**CreateBillingGroup200Response**](CreateBillingGroup200Response.md) ### Authorization @@ -83,7 +83,7 @@ Name | Type | Description | Notes ## deleteBillingGroup -> DeleteBillingGroupResponse deleteBillingGroup(id) +> CreateBillingGroup200Response deleteBillingGroup(id) Delete a billing group @@ -111,7 +111,7 @@ public class Example { BillingGroupsApi apiInstance = new BillingGroupsApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | The id of the billing group try { - DeleteBillingGroupResponse result = apiInstance.deleteBillingGroup(id); + CreateBillingGroup200Response result = apiInstance.deleteBillingGroup(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BillingGroupsApi#deleteBillingGroup"); @@ -133,7 +133,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteBillingGroupResponse**](DeleteBillingGroupResponse.md) +[**CreateBillingGroup200Response**](CreateBillingGroup200Response.md) ### Authorization @@ -153,7 +153,7 @@ Name | Type | Description | Notes ## listBillingGroups -> ListBillingGroupsResponse listBillingGroups(pageNumber, pageSize) +> ListBillingGroups200Response listBillingGroups(pageNumber, pageSize) List all billing groups @@ -181,7 +181,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListBillingGroupsResponse result = apiInstance.listBillingGroups(pageNumber, pageSize); + ListBillingGroups200Response result = apiInstance.listBillingGroups(pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BillingGroupsApi#listBillingGroups"); @@ -204,7 +204,7 @@ Name | Type | Description | Notes ### Return type -[**ListBillingGroupsResponse**](ListBillingGroupsResponse.md) +[**ListBillingGroups200Response**](ListBillingGroups200Response.md) ### Authorization @@ -224,7 +224,7 @@ Name | Type | Description | Notes ## retrieveBillingGroup -> RetrieveBillingGroupResponse retrieveBillingGroup(id) +> CreateBillingGroup200Response retrieveBillingGroup(id) Retrieve a billing group @@ -252,7 +252,7 @@ public class Example { BillingGroupsApi apiInstance = new BillingGroupsApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | The id of the billing group try { - RetrieveBillingGroupResponse result = apiInstance.retrieveBillingGroup(id); + CreateBillingGroup200Response result = apiInstance.retrieveBillingGroup(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BillingGroupsApi#retrieveBillingGroup"); @@ -274,7 +274,7 @@ Name | Type | Description | Notes ### Return type -[**RetrieveBillingGroupResponse**](RetrieveBillingGroupResponse.md) +[**CreateBillingGroup200Response**](CreateBillingGroup200Response.md) ### Authorization @@ -294,7 +294,7 @@ Name | Type | Description | Notes ## updateBillingGroup -> UpdateBillingGroupResponse updateBillingGroup(id, updateBillingGroup) +> CreateBillingGroup200Response updateBillingGroup(id, updateBillingGroup) Update a billing group @@ -323,7 +323,7 @@ public class Example { UUID id = UUID.randomUUID(); // UUID | The id of the billing group UpdateBillingGroup updateBillingGroup = new UpdateBillingGroup(); // UpdateBillingGroup | Update billing group object try { - UpdateBillingGroupResponse result = apiInstance.updateBillingGroup(id, updateBillingGroup); + CreateBillingGroup200Response result = apiInstance.updateBillingGroup(id, updateBillingGroup); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling BillingGroupsApi#updateBillingGroup"); @@ -346,7 +346,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateBillingGroupResponse**](UpdateBillingGroupResponse.md) +[**CreateBillingGroup200Response**](CreateBillingGroup200Response.md) ### Authorization diff --git a/docs/Body.md b/docs/Body.md new file mode 100644 index 00000000..409289eb --- /dev/null +++ b/docs/Body.md @@ -0,0 +1,14 @@ + + +# Body + +The body of the message. Emojis and markdown are supported. Optional for type product. Required for other message types. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**text** | **String** | The body content of the message. Emojis and markdown are supported. Links are supported. | | + + + diff --git a/docs/BridgeRequest.md b/docs/BridgeRequest.md index 21260577..db85da52 100644 --- a/docs/BridgeRequest.md +++ b/docs/BridgeRequest.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | The Call Control ID of the call you want to bridge with. | -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] -**queue** | **String** | The name of the queue you want to bridge with, can't be used together with call_control_id parameter. Bridging with a queue means bridging with the first call in the queue. The call will always be removed from the queue regardless of whether bridging succeeds. Returns an error when the queue is empty. | [optional] -**parkAfterUnbridge** | **String** | Specifies behavior after the bridge ends (i.e. the opposite leg either hangs up or is transferred). If supplied with the value `self`, the current leg will be parked after unbridge. If not set, the default behavior is to hang up the leg. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | The Call Control ID of the call you want to bridge with. | | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**queue** | **String** | The name of the queue you want to bridge with, can't be used together with call_control_id parameter. Bridging with a queue means bridging with the first call in the queue. The call will always be removed from the queue regardless of whether bridging succeeds. Returns an error when the queue is empty. | [optional] | +|**parkAfterUnbridge** | **String** | Specifies behavior after the bridge ends (i.e. the opposite leg either hangs up or is transferred). If supplied with the value `self`, the current leg will be parked after unbridge. If not set, the default behavior is to hang up the leg. | [optional] | diff --git a/docs/BulkCredentialRequest.md b/docs/BulkCredentialRequest.md index 6f99b38c..653b3dcd 100644 --- a/docs/BulkCredentialRequest.md +++ b/docs/BulkCredentialRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A default name for all credentials. | [optional] -**tag** | **String** | Tags a credential for bulk operations. A single tag can hold at maximum 1000 credentials. | -**amount** | **Integer** | Amount of credentials to be created. A single tag can hold at maximum 1000 credentials | [optional] -**connectionId** | **String** | Identifies the connection this credential is associated with. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A default name for all credentials. | [optional] | +|**tag** | **String** | Tags a credential for bulk operations. A single tag can hold at maximum 1000 credentials. | | +|**amount** | **Integer** | Amount of credentials to be created. A single tag can hold at maximum 1000 credentials | [optional] | +|**connectionId** | **String** | Identifies the connection this credential is associated with. | | diff --git a/docs/BulkCredentialResponse.md b/docs/BulkCredentialResponse.md index 6951700b..5e5b12f2 100644 --- a/docs/BulkCredentialResponse.md +++ b/docs/BulkCredentialResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BulkCredentialResponseData**](BulkCredentialResponseData.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**BulkCredentialResponseData**](BulkCredentialResponseData.md) | | [optional] | diff --git a/docs/BulkCredentialResponseData.md b/docs/BulkCredentialResponseData.md index 2d0a9f0b..5d748665 100644 --- a/docs/BulkCredentialResponseData.md +++ b/docs/BulkCredentialResponseData.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**credentials** | **Integer** | Amount of credentials affected | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**credentials** | **Integer** | Amount of credentials affected | [optional] | diff --git a/docs/BulkRoomRecordingsDeleteResponse.md b/docs/BulkRoomRecordingsDeleteResponse.md index d4b59d0e..aea3acdd 100644 --- a/docs/BulkRoomRecordingsDeleteResponse.md +++ b/docs/BulkRoomRecordingsDeleteResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BulkRoomRecordingsDeleteResponseData**](BulkRoomRecordingsDeleteResponseData.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**BulkRoomRecordingsDeleteResponseData**](BulkRoomRecordingsDeleteResponseData.md) | | [optional] | diff --git a/docs/BulkRoomRecordingsDeleteResponseData.md b/docs/BulkRoomRecordingsDeleteResponseData.md index 81932007..dd725134 100644 --- a/docs/BulkRoomRecordingsDeleteResponseData.md +++ b/docs/BulkRoomRecordingsDeleteResponseData.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**roomRecordings** | **Integer** | Amount of room recordings affected | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**roomRecordings** | **Integer** | Amount of room recordings affected | [optional] | diff --git a/docs/BulkSIMCardAction.md b/docs/BulkSIMCardAction.md new file mode 100644 index 00000000..1d96ff42 --- /dev/null +++ b/docs/BulkSIMCardAction.md @@ -0,0 +1,27 @@ + + +# BulkSIMCardAction + +This object represents a bulk SIM card action. It groups SIM card actions created through a bulk endpoint under a single resource for further lookup. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**actionType** | [**ActionTypeEnum**](#ActionTypeEnum) | The operation type. It can be one of the following: <br/> <ul> <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM card</li> </ul> | [optional] [readonly] | +|**settings** | **Object** | A JSON object representation of the bulk action payload. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | + + + +## Enum: ActionTypeEnum + +| Name | Value | +|---- | -----| +| BULK_SET_PUBLIC_IPS | "bulk_set_public_ips" | + + + diff --git a/docs/BulkSIMCardActionDetailed.md b/docs/BulkSIMCardActionDetailed.md new file mode 100644 index 00000000..be997c4d --- /dev/null +++ b/docs/BulkSIMCardActionDetailed.md @@ -0,0 +1,27 @@ + + +# BulkSIMCardActionDetailed + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**actionType** | [**ActionTypeEnum**](#ActionTypeEnum) | The operation type. It can be one of the following: <br/> <ul> <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM card</li> </ul> | [optional] [readonly] | +|**settings** | **Object** | A JSON object representation of the bulk action payload. | [optional] [readonly] | +|**simCardActionsSummary** | [**List<SIMCardActionsSummary>**](SIMCardActionsSummary.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | + + + +## Enum: ActionTypeEnum + +| Name | Value | +|---- | -----| +| BULK_SET_PUBLIC_IPS | "bulk_set_public_ips" | + + + diff --git a/docs/BulkSIMCardNetworkPreferences202Response.md b/docs/BulkSIMCardNetworkPreferences202Response.md new file mode 100644 index 00000000..bf50ad93 --- /dev/null +++ b/docs/BulkSIMCardNetworkPreferences202Response.md @@ -0,0 +1,14 @@ + + +# BulkSIMCardNetworkPreferences202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SIMCardNetworkPreferenceWithOTAUpdates>**](SIMCardNetworkPreferenceWithOTAUpdates.md) | Multi requested SIM cards network preferences. | [optional] | +|**errors** | [**List<Error>**](Error.md) | | [optional] | + + + diff --git a/docs/BulkSIMCardNetworkPreferencesRequest.md b/docs/BulkSIMCardNetworkPreferencesRequest.md new file mode 100644 index 00000000..aec999b3 --- /dev/null +++ b/docs/BulkSIMCardNetworkPreferencesRequest.md @@ -0,0 +1,14 @@ + + +# BulkSIMCardNetworkPreferencesRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**simCardIds** | **List<UUID>** | | [optional] | +|**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesRequest>**](MobileOperatorNetworkPreferencesRequest.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] | + + + diff --git a/docs/BulkSetPublicIPs202Response.md b/docs/BulkSetPublicIPs202Response.md new file mode 100644 index 00000000..232a0827 --- /dev/null +++ b/docs/BulkSetPublicIPs202Response.md @@ -0,0 +1,13 @@ + + +# BulkSetPublicIPs202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**BulkSIMCardAction**](BulkSIMCardAction.md) | | [optional] | + + + diff --git a/docs/BulkSetPublicIPsRequest.md b/docs/BulkSetPublicIPsRequest.md new file mode 100644 index 00000000..b93d769a --- /dev/null +++ b/docs/BulkSetPublicIPsRequest.md @@ -0,0 +1,13 @@ + + +# BulkSetPublicIPsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**simCardIds** | **List<UUID>** | | | + + + diff --git a/docs/BulkSimCardActionGet200Response.md b/docs/BulkSimCardActionGet200Response.md new file mode 100644 index 00000000..1c16a9b1 --- /dev/null +++ b/docs/BulkSimCardActionGet200Response.md @@ -0,0 +1,13 @@ + + +# BulkSimCardActionGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**BulkSIMCardActionDetailed**](BulkSIMCardActionDetailed.md) | | [optional] | + + + diff --git a/docs/BusinessIdentity.md b/docs/BusinessIdentity.md index ab83d91a..8a0ab5aa 100644 --- a/docs/BusinessIdentity.md +++ b/docs/BusinessIdentity.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**id** | **UUID** | | [optional] [readonly] -**organizationId** | **UUID** | The ID of the organization that owns the record | [optional] [readonly] -**name** | **String** | The name of the business identity on the telnyx platform | [optional] -**businessEmail** | **String** | The email of the business | [optional] -**businessName** | **String** | The name of the business | [optional] -**businessPhoneNumber** | **String** | | [optional] -**businessDescription** | **String** | | [optional] -**submissionAcknowledgement** | **Boolean** | User acceptance of the terms of submission | [optional] -**websiteUrl** | **List<String>** | | [optional] -**address** | [**BusinessIdentityAddress**](BusinessIdentityAddress.md) | | [optional] -**contacts** | [**List<BusinessIdentityContacts>**](BusinessIdentityContacts.md) | | [optional] -**createdAt** | **String** | An ISO 8601 datetime string for when the business identity was added to the Telnyx platform | [optional] [readonly] -**updatedAt** | **String** | An ISO 8601 datetime string for when the business identity was updated | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**id** | **UUID** | | [optional] [readonly] | +|**organizationId** | **UUID** | The ID of the organization that owns the record | [optional] [readonly] | +|**name** | **String** | The name of the business identity on the telnyx platform | [optional] | +|**businessEmail** | **String** | The email of the business | [optional] | +|**businessName** | **String** | The name of the business | [optional] | +|**businessPhoneNumber** | **String** | | [optional] | +|**businessDescription** | **String** | | [optional] | +|**submissionAcknowledgement** | **Boolean** | User acceptance of the terms of submission | [optional] | +|**websiteUrl** | **List<String>** | | [optional] | +|**address** | [**BusinessIdentityAddress**](BusinessIdentityAddress.md) | | [optional] | +|**contacts** | [**List<BusinessIdentityContactsInner>**](BusinessIdentityContactsInner.md) | | [optional] | +|**createdAt** | **String** | An ISO 8601 datetime string for when the business identity was added to the Telnyx platform | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8601 datetime string for when the business identity was updated | [optional] [readonly] | diff --git a/docs/BusinessIdentityAddress.md b/docs/BusinessIdentityAddress.md index 10bf9532..d3bc6c0f 100644 --- a/docs/BusinessIdentityAddress.md +++ b/docs/BusinessIdentityAddress.md @@ -6,16 +6,16 @@ The primary address of the business ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**id** | **UUID** | | [optional] [readonly] -**city** | **String** | | [optional] -**country** | **String** | | [optional] -**extendedAddress** | **String** | | [optional] -**postalCode** | **String** | | [optional] -**state** | **String** | | [optional] -**street** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**id** | **UUID** | | [optional] [readonly] | +|**city** | **String** | | [optional] | +|**country** | **String** | | [optional] | +|**extendedAddress** | **String** | | [optional] | +|**postalCode** | **String** | | [optional] | +|**state** | **String** | | [optional] | +|**street** | **String** | | [optional] | diff --git a/docs/BusinessIdentityContactsInner.md b/docs/BusinessIdentityContactsInner.md new file mode 100644 index 00000000..68081ee7 --- /dev/null +++ b/docs/BusinessIdentityContactsInner.md @@ -0,0 +1,20 @@ + + +# BusinessIdentityContactsInner + +A contact person for the business + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**id** | **UUID** | | [optional] [readonly] | +|**email** | **String** | | [optional] | +|**firstName** | **String** | | [optional] | +|**jobTitle** | **String** | | [optional] | +|**lastName** | **String** | | [optional] | +|**phoneNumber** | **String** | | [optional] | + + + diff --git a/docs/Button.md b/docs/Button.md new file mode 100644 index 00000000..d0aa3bbd --- /dev/null +++ b/docs/Button.md @@ -0,0 +1,15 @@ + + +# Button + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subType** | **Object** | Type of button being created. | | +|**index** | **Integer** | Position index of the button. You can have up to 3 buttons using index values of 0-2. | | +|**parameters** | [**List<ButtonParameter>**](ButtonParameter.md) | The parameters for the button, which are set at creation time in your Business Manager. | | + + + diff --git a/docs/ButtonComponentType.md b/docs/ButtonComponentType.md new file mode 100644 index 00000000..96fe3d89 --- /dev/null +++ b/docs/ButtonComponentType.md @@ -0,0 +1,11 @@ + + +# ButtonComponentType + +## Enum + + +* `BUTTON` (value: `"button"`) + + + diff --git a/docs/ButtonParameter.md b/docs/ButtonParameter.md new file mode 100644 index 00000000..7eb4fbee --- /dev/null +++ b/docs/ButtonParameter.md @@ -0,0 +1,15 @@ + + +# ButtonParameter + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **Object** | Indicates the type of parameter for the button. | | +|**payload** | **Object** | Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button. Required for quick_reply buttons. | [optional] | +|**text** | **Object** | Developer provided suffix that will be appended to a previously created dynamic URL button. Required for url buttons. | [optional] | + + + diff --git a/docs/ButtonParameterType.md b/docs/ButtonParameterType.md new file mode 100644 index 00000000..e013003d --- /dev/null +++ b/docs/ButtonParameterType.md @@ -0,0 +1,13 @@ + + +# ButtonParameterType + +## Enum + + +* `PAYLOAD` (value: `"payload"`) + +* `TEXT` (value: `"text"`) + + + diff --git a/docs/ButtonSubtype.md b/docs/ButtonSubtype.md new file mode 100644 index 00000000..cfd82769 --- /dev/null +++ b/docs/ButtonSubtype.md @@ -0,0 +1,13 @@ + + +# ButtonSubtype + +## Enum + + +* `QUICK_REPLY` (value: `"quick_reply"`) + +* `URL` (value: `"url"`) + + + diff --git a/docs/CSVDownloadResponse.md b/docs/CSVDownloadResponse.md index 8d29a17a..9ad154b5 100644 --- a/docs/CSVDownloadResponse.md +++ b/docs/CSVDownloadResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<CsvDownload>**](CsvDownload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CsvDownload>**](CsvDownload.md) | | [optional] | diff --git a/docs/Call.md b/docs/Call.md index 1c203eac..652fbbf2 100644 --- a/docs/Call.md +++ b/docs/Call.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call | -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events | -**callControlId** | **String** | Unique identifier and token for controlling the call. | -**isAlive** | **Boolean** | Indicates whether the call is alive or not. For Dial command it will always be `false` (dialing is asynchronous). | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call | | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events | | +|**callControlId** | **String** | Unique identifier and token for controlling the call. | | +|**isAlive** | **Boolean** | Indicates whether the call is alive or not. For Dial command it will always be `false` (dialing is asynchronous). | | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -CALL | "call" +| Name | Value | +|---- | -----| +| CALL | "call" | diff --git a/docs/CallAnswered.md b/docs/CallAnswered.md index baeb3c7a..01b5c896 100644 --- a/docs/CallAnswered.md +++ b/docs/CallAnswered.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallAnsweredPayload**](CallAnsweredPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallAnsweredPayload**](CallAnsweredPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_ANSWERED | "call.answered" +| Name | Value | +|---- | -----| +| CALL_ANSWERED | "call.answered" | diff --git a/docs/CallAnsweredEvent.md b/docs/CallAnsweredEvent.md index ec029c1c..22f84996 100644 --- a/docs/CallAnsweredEvent.md +++ b/docs/CallAnsweredEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallAnswered**](CallAnswered.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallAnswered**](CallAnswered.md) | | [optional] | diff --git a/docs/CallAnsweredPayload.md b/docs/CallAnsweredPayload.md index 4c6e29c7..44e490a8 100644 --- a/docs/CallAnsweredPayload.md +++ b/docs/CallAnsweredPayload.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] | ## Enum: StateEnum -Name | Value ----- | ----- -ANSWERED | "answered" +| Name | Value | +|---- | -----| +| ANSWERED | "answered" | diff --git a/docs/CallBridged.md b/docs/CallBridged.md index d8a42660..b2fae1f4 100644 --- a/docs/CallBridged.md +++ b/docs/CallBridged.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallBridgedPayload**](CallBridgedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallBridgedPayload**](CallBridgedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_BRIDGED | "call.bridged" +| Name | Value | +|---- | -----| +| CALL_BRIDGED | "call.bridged" | diff --git a/docs/CallBridgedEvent.md b/docs/CallBridgedEvent.md index e61047b3..8fd5db37 100644 --- a/docs/CallBridgedEvent.md +++ b/docs/CallBridgedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallBridged**](CallBridged.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallBridged**](CallBridged.md) | | [optional] | diff --git a/docs/CallBridgedPayload.md b/docs/CallBridgedPayload.md index 6133d9c6..741428ca 100644 --- a/docs/CallBridgedPayload.md +++ b/docs/CallBridgedPayload.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] | ## Enum: StateEnum -Name | Value ----- | ----- -BRIDGED | "bridged" +| Name | Value | +|---- | -----| +| BRIDGED | "bridged" | diff --git a/docs/CallCommandsApi.md b/docs/CallCommandsApi.md index 8da24e7d..bbf413a6 100644 --- a/docs/CallCommandsApi.md +++ b/docs/CallCommandsApi.md @@ -10,6 +10,7 @@ Method | HTTP request | Description [**callEnqueue**](CallCommandsApi.md#callEnqueue) | **POST** /calls/{call_control_id}/actions/enqueue | Enqueue call [**callForkStart**](CallCommandsApi.md#callForkStart) | **POST** /calls/{call_control_id}/actions/fork_start | Forking start [**callForkStop**](CallCommandsApi.md#callForkStop) | **POST** /calls/{call_control_id}/actions/fork_stop | Forking stop +[**callGather**](CallCommandsApi.md#callGather) | **POST** /calls/{call_control_id}/actions/gather | Gather [**callGatherStop**](CallCommandsApi.md#callGatherStop) | **POST** /calls/{call_control_id}/actions/gather_stop | Gather stop [**callGatherUsingAudio**](CallCommandsApi.md#callGatherUsingAudio) | **POST** /calls/{call_control_id}/actions/gather_using_audio | Gather using audio [**callGatherUsingSpeak**](CallCommandsApi.md#callGatherUsingSpeak) | **POST** /calls/{call_control_id}/actions/gather_using_speak | Gather using speak @@ -24,11 +25,11 @@ Method | HTTP request | Description [**callReject**](CallCommandsApi.md#callReject) | **POST** /calls/{call_control_id}/actions/reject | Reject a call [**callSendDTMF**](CallCommandsApi.md#callSendDTMF) | **POST** /calls/{call_control_id}/actions/send_dtmf | Send DTMF [**callSpeak**](CallCommandsApi.md#callSpeak) | **POST** /calls/{call_control_id}/actions/speak | Speak text -[**callStreamingStart**](CallCommandsApi.md#callStreamingStart) | **POST** /calls/{call_control_id}/actions/streaming_start | Streaming start [**callStreamingStop**](CallCommandsApi.md#callStreamingStop) | **POST** /calls/{call_control_id}/actions/streaming_stop | Streaming stop [**callTranscriptionStart**](CallCommandsApi.md#callTranscriptionStart) | **POST** /calls/{call_control_id}/actions/transcription_start | Transcription start [**callTranscriptionStop**](CallCommandsApi.md#callTranscriptionStop) | **POST** /calls/{call_control_id}/actions/transcription_stop | Transcription stop [**callTransfer**](CallCommandsApi.md#callTransfer) | **POST** /calls/{call_control_id}/actions/transfer | Transfer call +[**callsCallControlIdActionsStreamingStartPost**](CallCommandsApi.md#callsCallControlIdActionsStreamingStartPost) | **POST** /calls/{call_control_id}/actions/streaming_start | Streaming start [**clientStateUpdate**](CallCommandsApi.md#clientStateUpdate) | **PUT** /calls/{call_control_id}/actions/client_state_update | Update client state [**leaveQueue**](CallCommandsApi.md#leaveQueue) | **POST** /calls/{call_control_id}/actions/leave_queue | Remove call from a queue @@ -45,7 +46,8 @@ Answer an incoming call. You must issue this command before executing subsequent **Expected Webhooks:** - `call.answered` -- `streaming.started` and `streaming.stopped` if `stream_url` was set +- `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set + ### Example @@ -204,8 +206,10 @@ Dial a number or SIP URI from a given connection. A successful response will inc - `call.initiated` - `call.answered` or `call.hangup` - `call.machine.detection.ended` if `answering_machine_detection` was requested -- `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words` -- `streaming.started` and `streaming.stopped` if `stream_url` was set +- `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end of machine greeting +- `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested +- `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and a beep was detected +- `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set ### Example @@ -576,6 +580,87 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | +## callGather + +> CallControlCommandResponse callGather(callControlId, gatherRequest) + +Gather + +Gather DTMF signals to build interactive menus. + +You can pass a list of valid digits. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer) command must be issued before the `gather` command. + +**Expected Webhooks:** + +- `call.dtmf.received` (you may receive many of these webhooks) +- `call.gather.ended` + + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.CallCommandsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + CallCommandsApi apiInstance = new CallCommandsApi(defaultClient); + String callControlId = "callControlId_example"; // String | Unique identifier and token for controlling the call + GatherRequest gatherRequest = new GatherRequest(); // GatherRequest | Gather + try { + CallControlCommandResponse result = apiInstance.callGather(callControlId, gatherRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CallCommandsApi#callGather"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callControlId** | **String**| Unique identifier and token for controlling the call | + **gatherRequest** | [**GatherRequest**](GatherRequest.md)| Gather | + +### Return type + +[**CallControlCommandResponse**](CallControlCommandResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response upon making a call control command. | - | +| **0** | Unexpected error | - | + + ## callGatherStop > CallControlCommandResponse callGatherStop(callControlId, stopGatherRequest) @@ -1687,75 +1772,18 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | -## callStreamingStart +## callStreamingStop -> CallControlCommandResponse callStreamingStart(callControlId, startStreamingRequest) +> CallControlCommandResponse callStreamingStop(callControlId, stopStreamingRequest) -Streaming start +Streaming stop -Start streaming the media from a call to a specific WebSocket address in near-realtime. -Audio will be delivered as base64-encoded RTP packets, wrapped in JSON payloads. +Stop streaming a call to a WebSocket. **Expected Webhooks:** -- `streaming.started` - `streaming.stopped` -**WebSocket events** - -When the WebSocket connection is established, the following event is being sent over it: -``` -{ - "event": "connected", - "version": "1.0.0" -} -``` -And when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream: -``` -{ - "event": "start", - "sequence_number": "1", - "start": { - "user_id": "3E6F995F-85F7-4705-9741-53B116D28237", - "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ", - "media_format": { - "encoding": "audio/x-mulaw", - "sample_rate": 8000, - "channels": 1 - } - }, - "stream_id": "32DE0DEA-53CB-4B21-89A4-9E1819C043BC" -} -``` -The start event is followed by the following media events that contain base64-encoded RTP packets as their payloads: -``` -{ - "event": "media", - "sequence_number": "4", - "media": { - "track": "inbound/outbound", - "chunk": "2", - "timestamp": "5", - "payload": "no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic" - }, - "stream_id": "32DE0DEA-53CB-4B21-89A4-9E1819C043BC" -} -``` -Please note that the order of events is not guaranteed and the chunk number can be used to reorder the events. - -When the call ends, the stop event over WebSockets connection is sent: -``` -{ - "event": "stop", - "sequence_number": "5", - "stop": { - "user_id": "3E6F995F-85F7-4705-9741-53B116D28237", - "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ" - }, - "stream_id": "32DE0DEA-53CB-4B21-89A4-9E1819C043BC" - } -``` - ### Example @@ -1779,12 +1807,12 @@ public class Example { CallCommandsApi apiInstance = new CallCommandsApi(defaultClient); String callControlId = "callControlId_example"; // String | Unique identifier and token for controlling the call - StartStreamingRequest startStreamingRequest = new StartStreamingRequest(); // StartStreamingRequest | Start streaming media request + StopStreamingRequest stopStreamingRequest = new StopStreamingRequest(); // StopStreamingRequest | Stop streaming media request try { - CallControlCommandResponse result = apiInstance.callStreamingStart(callControlId, startStreamingRequest); + CallControlCommandResponse result = apiInstance.callStreamingStop(callControlId, stopStreamingRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CallCommandsApi#callStreamingStart"); + System.err.println("Exception when calling CallCommandsApi#callStreamingStop"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1800,7 +1828,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **callControlId** | **String**| Unique identifier and token for controlling the call | - **startStreamingRequest** | [**StartStreamingRequest**](StartStreamingRequest.md)| Start streaming media request | + **stopStreamingRequest** | [**StopStreamingRequest**](StopStreamingRequest.md)| Stop streaming media request | ### Return type @@ -1822,17 +1850,17 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | -## callStreamingStop +## callTranscriptionStart -> CallControlCommandResponse callStreamingStop(callControlId, stopStreamingRequest) +> CallControlCommandResponse callTranscriptionStart(callControlId, transcriptionStartRequest) -Streaming stop +Transcription start -Stop streaming a call to a WebSocket. +Start real-time transcription. Transcription will stop on call hang-up, or can be initiated via the Transcription stop command. **Expected Webhooks:** -- `streaming.stopped` +- `call.transcription` ### Example @@ -1857,12 +1885,12 @@ public class Example { CallCommandsApi apiInstance = new CallCommandsApi(defaultClient); String callControlId = "callControlId_example"; // String | Unique identifier and token for controlling the call - StopStreamingRequest stopStreamingRequest = new StopStreamingRequest(); // StopStreamingRequest | Stop streaming media request + TranscriptionStartRequest transcriptionStartRequest = new TranscriptionStartRequest(); // TranscriptionStartRequest | Transcription start request try { - CallControlCommandResponse result = apiInstance.callStreamingStop(callControlId, stopStreamingRequest); + CallControlCommandResponse result = apiInstance.callTranscriptionStart(callControlId, transcriptionStartRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CallCommandsApi#callStreamingStop"); + System.err.println("Exception when calling CallCommandsApi#callTranscriptionStart"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1878,7 +1906,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **callControlId** | **String**| Unique identifier and token for controlling the call | - **stopStreamingRequest** | [**StopStreamingRequest**](StopStreamingRequest.md)| Stop streaming media request | + **transcriptionStartRequest** | [**TranscriptionStartRequest**](TranscriptionStartRequest.md)| Transcription start request | ### Return type @@ -1900,18 +1928,13 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | -## callTranscriptionStart - -> CallControlCommandResponse callTranscriptionStart(callControlId, transcriptionStartRequest) - -Transcription start - -Start real-time transcription. Transcription will stop on call hang-up, or can be initiated via the Transcription stop command. +## callTranscriptionStop -**Expected Webhooks:** +> CallControlCommandResponse callTranscriptionStop(callControlId, transcriptionStopRequest) -- `call.transcription` +Transcription stop +Stop real-time transcription. ### Example @@ -1935,12 +1958,12 @@ public class Example { CallCommandsApi apiInstance = new CallCommandsApi(defaultClient); String callControlId = "callControlId_example"; // String | Unique identifier and token for controlling the call - TranscriptionStartRequest transcriptionStartRequest = new TranscriptionStartRequest(); // TranscriptionStartRequest | Transcription start request + TranscriptionStopRequest transcriptionStopRequest = new TranscriptionStopRequest(); // TranscriptionStopRequest | Transcription stop request try { - CallControlCommandResponse result = apiInstance.callTranscriptionStart(callControlId, transcriptionStartRequest); + CallControlCommandResponse result = apiInstance.callTranscriptionStop(callControlId, transcriptionStopRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CallCommandsApi#callTranscriptionStart"); + System.err.println("Exception when calling CallCommandsApi#callTranscriptionStop"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -1956,7 +1979,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **callControlId** | **String**| Unique identifier and token for controlling the call | - **transcriptionStartRequest** | [**TranscriptionStartRequest**](TranscriptionStartRequest.md)| Transcription start request | + **transcriptionStopRequest** | [**TranscriptionStopRequest**](TranscriptionStopRequest.md)| Transcription stop request | ### Return type @@ -1978,13 +2001,21 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | -## callTranscriptionStop +## callTransfer -> CallControlCommandResponse callTranscriptionStop(callControlId, transcriptionStopRequest) +> CallControlCommandResponse callTransfer(callControlId, transferCallRequest) -Transcription stop +Transfer call -Stop real-time transcription. +Transfer a call to a new destination. If the transfer is unsuccessful, a `call.hangup` webhook for the other call (Leg B) will be sent indicating that the transfer could not be completed. The original call will remain active and may be issued additional commands, potentially transfering the call to an alternate destination. + +**Expected Webhooks:** + +- `call.initiated` +- `call.bridged` to Leg B +- `call.answered` or `call.hangup` +- `call.machine.detection.ended` if `answering_machine_detection` was requested +- `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words` ### Example @@ -2008,12 +2039,12 @@ public class Example { CallCommandsApi apiInstance = new CallCommandsApi(defaultClient); String callControlId = "callControlId_example"; // String | Unique identifier and token for controlling the call - TranscriptionStopRequest transcriptionStopRequest = new TranscriptionStopRequest(); // TranscriptionStopRequest | Transcription stop request + TransferCallRequest transferCallRequest = new TransferCallRequest(); // TransferCallRequest | Transfer call request try { - CallControlCommandResponse result = apiInstance.callTranscriptionStop(callControlId, transcriptionStopRequest); + CallControlCommandResponse result = apiInstance.callTransfer(callControlId, transferCallRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CallCommandsApi#callTranscriptionStop"); + System.err.println("Exception when calling CallCommandsApi#callTransfer"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2029,7 +2060,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **callControlId** | **String**| Unique identifier and token for controlling the call | - **transcriptionStopRequest** | [**TranscriptionStopRequest**](TranscriptionStopRequest.md)| Transcription stop request | + **transferCallRequest** | [**TransferCallRequest**](TransferCallRequest.md)| Transfer call request | ### Return type @@ -2051,21 +2082,109 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | -## callTransfer +## callsCallControlIdActionsStreamingStartPost -> CallControlCommandResponse callTransfer(callControlId, transferCallRequest) +> CallControlCommandResponse callsCallControlIdActionsStreamingStartPost(callControlId, startStreamingRequest) -Transfer call +Streaming start -Transfer a call to a new destination. If the transfer is unsuccessful, a `call.hangup` webhook for the other call (Leg B) will be sent indicating that the transfer could not be completed. The original call will remain active and may be issued additional commands, potentially transfering the call to an alternate destination. +Start streaming the media from a call to a specific WebSocket address or Dialogflow connection in near-realtime. Audio will be delivered as base64-encoded RTP payload (raw audio), wrapped in JSON payloads. + +**Example: Starting a stream to a Websocket address** + + The `stream_url` param is mandatory. + +``` +curl -X POST \ + --header "Content-Type: application/json" \ + --header "Accept: application/json" \ + --header "Authorization: Bearer YOUR_API_KEY" \ + --data '{ + "stream_url": "wss://www.example.com/websocket",\ +"client_state":"aGF2ZSBhIG5pY2UgZGF5ID1d",\ +"command_id":"891510ac-f3e4-11e8-af5b-de00688a4901" \ +}' \ + https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start +``` + + **Example: Starting a stream to a Dialogflow connection** + + Enable the Dialogflow integration by sending `"enable_dialogflow": true` in the request. You need to have a Dialogflow connection associated with your Call Control application first, [click here for instructions](https://developers.telnyx.com/docs/v2/call-control/tutorials/dialogflow-es). +``` +curl -X POST \ + --header "Content-Type: application/json" \ + --header "Accept: application/json" \ + --header "Authorization: Bearer YOUR_API_KEY" \ + --data '{ + "client_state":"aGF2ZSBhIG5pY2UgZGF5ID1d", \ +"command_id":"891510ac-f3e4-11e8-af5b-de00688a4901", \ +"enable_dialogflow": true \ +}' \ + https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start +``` **Expected Webhooks:** -- `call.initiated` -- `call.bridged` to Leg B -- `call.answered` or `call.hangup` -- `call.machine.detection.ended` if `answering_machine_detection` was requested -- `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words` +- `streaming.started` +- `streaming.stopped` +- `streaming.failed` + +**WebSocket events** + +When the WebSocket connection is established, the following event is being sent over it: +``` +{ + "event": "connected", + "version": "1.0.0" +} +``` +And when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream: +``` +{ + "event": "start", + "sequence_number": "1", + "start": { + "user_id": "3e6f995f-85f7-4705-9741-53b116d28237", + "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ", + "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", + "media_format": { + "encoding": "audio/x-mulaw", + "sample_rate": 8000, + "channels": 1 + } + }, + "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc" +} +``` +The start event is followed by the following media events that contain base64-encoded RTP payload (raw audio, no RTP headers) (: +``` +{ + "event": "media", + "sequence_number": "4", + "media": { + "track": "inbound/outbound", + "chunk": "2", + "timestamp": "5", + "payload": "no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic" + }, + "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc" +} +``` +Please note that the order of events is not guaranteed and the chunk number can be used to reorder the events. + +When the call ends, the stop event over WebSockets connection is sent: +``` +{ + "event": "stop", + "sequence_number": "5", + "stop": { + "user_id": "3e6f995f-85f7-4705-9741-53b116d28237", + "call_control_id": "v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ" + }, + "stream_id": "32de0dea-53cb-4b21-89a4-9e1819c043bc" + } +``` + ### Example @@ -2089,12 +2208,12 @@ public class Example { CallCommandsApi apiInstance = new CallCommandsApi(defaultClient); String callControlId = "callControlId_example"; // String | Unique identifier and token for controlling the call - TransferCallRequest transferCallRequest = new TransferCallRequest(); // TransferCallRequest | Transfer call request + StartStreamingRequest startStreamingRequest = new StartStreamingRequest(); // StartStreamingRequest | Start streaming media request try { - CallControlCommandResponse result = apiInstance.callTransfer(callControlId, transferCallRequest); + CallControlCommandResponse result = apiInstance.callsCallControlIdActionsStreamingStartPost(callControlId, startStreamingRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling CallCommandsApi#callTransfer"); + System.err.println("Exception when calling CallCommandsApi#callsCallControlIdActionsStreamingStartPost"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -2110,7 +2229,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **callControlId** | **String**| Unique identifier and token for controlling the call | - **transferCallRequest** | [**TransferCallRequest**](TransferCallRequest.md)| Transfer call request | + **startStreamingRequest** | [**StartStreamingRequest**](StartStreamingRequest.md)| Start streaming media request | ### Return type diff --git a/docs/CallControlApplication.md b/docs/CallControlApplication.md index fd0e87f9..1cbf5d3e 100644 --- a/docs/CallControlApplication.md +++ b/docs/CallControlApplication.md @@ -5,62 +5,62 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | [**AnchorsiteOverrideEnum**](#AnchorsiteOverrideEnum) | `Latency` directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. | [optional] -**applicationName** | **String** | A user-assigned name to help manage the application. | [optional] -**createdAt** | **String** | ISO 8601 formatted date of when the resource was created | [optional] -**dtmfType** | [**DtmfTypeEnum**](#DtmfTypeEnum) | Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. | [optional] -**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] -**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] -**id** | **String** | | [optional] -**inbound** | [**CallControlApplicationInbound**](CallControlApplicationInbound.md) | | [optional] -**outbound** | [**CallControlApplicationOutbound**](CallControlApplicationOutbound.md) | | [optional] -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | [optional] -**updatedAt** | **String** | ISO 8601 formatted date of when the resource was last updated | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as `https`. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as `https`. | [optional] -**webhookTimeoutSecs** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | [**AnchorsiteOverrideEnum**](#AnchorsiteOverrideEnum) | `Latency` directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. | [optional] | +|**applicationName** | **String** | A user-assigned name to help manage the application. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date of when the resource was created | [optional] | +|**dtmfType** | [**DtmfTypeEnum**](#DtmfTypeEnum) | Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. | [optional] | +|**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] | +|**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] | +|**id** | **String** | | [optional] | +|**inbound** | [**CallControlApplicationInbound**](CallControlApplicationInbound.md) | | [optional] | +|**outbound** | [**CallControlApplicationOutbound**](CallControlApplicationOutbound.md) | | [optional] | +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date of when the resource was last updated | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as `https`. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as `https`. | [optional] | +|**webhookTimeoutSecs** | **Integer** | | [optional] | ## Enum: AnchorsiteOverrideEnum -Name | Value ----- | ----- -LATENCY_ | "\"Latency\"" -CHICAGO_IL_ | "\"Chicago, IL\"" -ASHBURN_VA_ | "\"Ashburn, VA\"" -SAN_JOSE_CA_ | "\"San Jose, CA\"" +| Name | Value | +|---- | -----| +| LATENCY_ | "\"Latency\"" | +| CHICAGO_IL_ | "\"Chicago, IL\"" | +| ASHBURN_VA_ | "\"Ashburn, VA\"" | +| SAN_JOSE_CA_ | "\"San Jose, CA\"" | ## Enum: DtmfTypeEnum -Name | Value ----- | ----- -RFC_2833 | "RFC 2833" -INBAND | "Inband" -SIP_INFO | "SIP INFO" +| Name | Value | +|---- | -----| +| RFC_2833 | "RFC 2833" | +| INBAND | "Inband" | +| SIP_INFO | "SIP INFO" | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -CALL_CONTROL_APPLICATION | "call_control_application" +| Name | Value | +|---- | -----| +| CALL_CONTROL_APPLICATION | "call_control_application" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/CallControlApplicationInbound.md b/docs/CallControlApplicationInbound.md index 5200c8aa..70de2e0e 100644 --- a/docs/CallControlApplicationInbound.md +++ b/docs/CallControlApplicationInbound.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] -**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] -**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] | +|**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] | +|**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] | ## Enum: SipSubdomainReceiveSettingsEnum -Name | Value ----- | ----- -ONLY_MY_CONNECTIONS | "only_my_connections" -FROM_ANYONE | "from_anyone" +| Name | Value | +|---- | -----| +| ONLY_MY_CONNECTIONS | "only_my_connections" | +| FROM_ANYONE | "from_anyone" | diff --git a/docs/CallControlApplicationOutbound.md b/docs/CallControlApplicationOutbound.md index 6c1c7943..bfeb08a5 100644 --- a/docs/CallControlApplicationOutbound.md +++ b/docs/CallControlApplicationOutbound.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] -**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] | +|**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] | diff --git a/docs/CallControlApplicationResponse.md b/docs/CallControlApplicationResponse.md index ba5712da..a8bb9128 100644 --- a/docs/CallControlApplicationResponse.md +++ b/docs/CallControlApplicationResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallControlApplication**](CallControlApplication.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallControlApplication**](CallControlApplication.md) | | [optional] | diff --git a/docs/CallControlApplicationsApi.md b/docs/CallControlApplicationsApi.md index 185ec5a2..caee4c2d 100644 --- a/docs/CallControlApplicationsApi.md +++ b/docs/CallControlApplicationsApi.md @@ -151,14 +151,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a call control application. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | | **422** | Bad request | - | ## listCallControlApplications -> ListCallControlApplicationsResponse listCallControlApplications().pageNumber(pageNumber).pageSize(pageSize).filterApplicationNameContains(filterApplicationNameContains).filterOutboundOutboundVoiceProfileId(filterOutboundOutboundVoiceProfileId).sort(sort).execute(); +> ListCallControlApplicationsResponse listCallControlApplications().pageNumber(pageNumber).pageSize(pageSize).filterApplicationNameContains(filterApplicationNameContains).filterOutboundVoiceProfileId(filterOutboundVoiceProfileId).sort(sort).execute(); List call control applications @@ -188,14 +188,14 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page String filterApplicationNameContains = "null"; // String | If present, applications with application_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. - String filterOutboundOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. + String filterOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • connection_name: sorts the result by the connection_name field in ascending order.
  • -connection_name: sorts the result by the connection_name field in descending order.

If not given, results are sorted by created_at in descending order. try { ListCallControlApplicationsResponse result = api.listCallControlApplications() .pageNumber(pageNumber) .pageSize(pageSize) .filterApplicationNameContains(filterApplicationNameContains) - .filterOutboundOutboundVoiceProfileId(filterOutboundOutboundVoiceProfileId) + .filterOutboundVoiceProfileId(filterOutboundVoiceProfileId) .sort(sort) .execute(); System.out.println(result); @@ -218,7 +218,7 @@ Name | Type | Description | Notes **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] **filterApplicationNameContains** | **String**| If present, applications with <code>application_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] - **filterOutboundOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] + **filterOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] ### Return type @@ -239,7 +239,7 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Successful response with a list of call control applications. | - | | **400** | Bad request | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | @@ -311,7 +311,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a call control application. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | | **422** | Bad request | - | @@ -386,7 +386,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a call control application. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | | **422** | Bad request | - | diff --git a/docs/CallControlCommandResponse.md b/docs/CallControlCommandResponse.md index 2d7e4928..d4a81776 100644 --- a/docs/CallControlCommandResponse.md +++ b/docs/CallControlCommandResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallControlCommandResult**](CallControlCommandResult.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallControlCommandResult**](CallControlCommandResult.md) | | [optional] | diff --git a/docs/CallControlCommandResult.md b/docs/CallControlCommandResult.md index af8b6098..f61a9372 100644 --- a/docs/CallControlCommandResult.md +++ b/docs/CallControlCommandResult.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **String** | | [optional] | diff --git a/docs/CallCost.md b/docs/CallCost.md index e88f533f..fb6d0ae3 100644 --- a/docs/CallCost.md +++ b/docs/CallCost.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of the event being delivered | [optional] -**id** | **UUID** | Uniquely identifies a webhook | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**meta** | [**CallCostMeta**](CallCostMeta.md) | | [optional] -**payload** | [**CallCostPayload**](CallCostPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of the event being delivered | [optional] | +|**id** | **UUID** | Uniquely identifies a webhook | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**meta** | [**CallCostMeta**](CallCostMeta.md) | | [optional] | +|**payload** | [**CallCostPayload**](CallCostPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_COST | "call.cost" +| Name | Value | +|---- | -----| +| CALL_COST | "call.cost" | diff --git a/docs/CallCostMeta.md b/docs/CallCostMeta.md index e9c1b084..d9ed94e9 100644 --- a/docs/CallCostMeta.md +++ b/docs/CallCostMeta.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**meta** | [**CallCostMetaMeta**](CallCostMetaMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**meta** | [**CallCostMetaMeta**](CallCostMetaMeta.md) | | [optional] | diff --git a/docs/CallCostMetaMeta.md b/docs/CallCostMetaMeta.md index 52c83cc5..b8a519d3 100644 --- a/docs/CallCostMetaMeta.md +++ b/docs/CallCostMetaMeta.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attempt** | **Integer** | The number of attempts made to deliver the webhook | [optional] -**deliveredTo** | **String** | The URL where webhook was sent | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attempt** | **Integer** | The number of attempts made to deliver the webhook | [optional] | +|**deliveredTo** | **String** | The URL where webhook was sent | [optional] | diff --git a/docs/CallCostPayload.md b/docs/CallCostPayload.md index c4378d3e..26137cbb 100644 --- a/docs/CallCostPayload.md +++ b/docs/CallCostPayload.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**billedDurationSecs** | **Integer** | The number of seconds for which this call will be billed | [optional] -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**connectionId** | **String** | Identifies the type of resource. | [optional] -**costParts** | [**List<CallCostPayloadCostParts>**](CallCostPayloadCostParts.md) | | [optional] -**totalCost** | **BigDecimal** | The billed cost of the call | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Reflects how command ended. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**billedDurationSecs** | **Integer** | The number of seconds for which this call will be billed | [optional] | +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**connectionId** | **String** | Identifies the type of resource. | [optional] | +|**costParts** | [**List<CallCostPayloadCostPartsInner>**](CallCostPayloadCostPartsInner.md) | | [optional] | +|**totalCost** | **BigDecimal** | The billed cost of the call | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Reflects how command ended. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -VALID | "valid" -INVALID | "invalid" -CALL_HANGUP | "call_hangup" -CANCELLED | "cancelled" -CANCELLED_AMD | "cancelled_amd" +| Name | Value | +|---- | -----| +| VALID | "valid" | +| INVALID | "invalid" | +| CALL_HANGUP | "call_hangup" | +| CANCELLED | "cancelled" | +| CANCELLED_AMD | "cancelled_amd" | diff --git a/docs/CallCostPayloadCostPartsInner.md b/docs/CallCostPayloadCostPartsInner.md new file mode 100644 index 00000000..8c6d906a --- /dev/null +++ b/docs/CallCostPayloadCostPartsInner.md @@ -0,0 +1,17 @@ + + +# CallCostPayloadCostPartsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**billedDurationSecs** | **Integer** | The number of seconds for which this item will be billed | [optional] | +|**callPart** | **String** | The service incurring a charge | [optional] | +|**cost** | **BigDecimal** | The billed cost of the item, in currency shown in the `currency` field | [optional] | +|**currency** | **String** | The currency in which `cost` is measured | [optional] | +|**rate** | **BigDecimal** | The cost per unit of the item incurring a charge | [optional] | + + + diff --git a/docs/CallDtmfReceived.md b/docs/CallDtmfReceived.md index 39b93040..aa190efe 100644 --- a/docs/CallDtmfReceived.md +++ b/docs/CallDtmfReceived.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallDtmfReceivedPayload**](CallDtmfReceivedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallDtmfReceivedPayload**](CallDtmfReceivedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_DTMF_RECEIVED | "call.dtmf.received" +| Name | Value | +|---- | -----| +| CALL_DTMF_RECEIVED | "call.dtmf.received" | diff --git a/docs/CallDtmfReceivedEvent.md b/docs/CallDtmfReceivedEvent.md index a20ccc17..ea031521 100644 --- a/docs/CallDtmfReceivedEvent.md +++ b/docs/CallDtmfReceivedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallDtmfReceived**](CallDtmfReceived.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallDtmfReceived**](CallDtmfReceived.md) | | [optional] | diff --git a/docs/CallDtmfReceivedPayload.md b/docs/CallDtmfReceivedPayload.md index 043b68bc..429eea0a 100644 --- a/docs/CallDtmfReceivedPayload.md +++ b/docs/CallDtmfReceivedPayload.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Identifies the type of resource. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**digit** | **String** | The received DTMF digit or symbol. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Identifies the type of resource. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**digit** | **String** | The received DTMF digit or symbol. | [optional] | diff --git a/docs/CallEnqueued.md b/docs/CallEnqueued.md index 1ddf726a..d4ada028 100644 --- a/docs/CallEnqueued.md +++ b/docs/CallEnqueued.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallEnqueuedPayload**](CallEnqueuedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallEnqueuedPayload**](CallEnqueuedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_ENQUEUED | "call.enqueued" +| Name | Value | +|---- | -----| +| CALL_ENQUEUED | "call.enqueued" | diff --git a/docs/CallEnqueuedEvent.md b/docs/CallEnqueuedEvent.md index 1c025a56..f25209cd 100644 --- a/docs/CallEnqueuedEvent.md +++ b/docs/CallEnqueuedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallEnqueued**](CallEnqueued.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallEnqueued**](CallEnqueued.md) | | [optional] | diff --git a/docs/CallEnqueuedPayload.md b/docs/CallEnqueuedPayload.md index 6484d82f..c26637d1 100644 --- a/docs/CallEnqueuedPayload.md +++ b/docs/CallEnqueuedPayload.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**queue** | **String** | The name of the queue | [optional] -**currentPosition** | **Integer** | Current position of the call in the queue. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**queue** | **String** | The name of the queue | [optional] | +|**currentPosition** | **Integer** | Current position of the call in the queue. | [optional] | diff --git a/docs/CallEvent.md b/docs/CallEvent.md index b5c3e863..5b56b350 100644 --- a/docs/CallEvent.md +++ b/docs/CallEvent.md @@ -5,32 +5,32 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**callLegId** | **String** | Uniquely identifies an individual call leg. | -**callSessionId** | **String** | Uniquely identifies the call control session. A session may include multiple call leg events. | -**eventTimestamp** | **String** | Event timestamp | -**name** | **String** | Event name | -**type** | [**TypeEnum**](#TypeEnum) | Event type | -**metadata** | **Object** | Event metadata, which includes raw event, and extra information based on event type | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**callLegId** | **String** | Uniquely identifies an individual call leg. | | +|**callSessionId** | **String** | Uniquely identifies the call control session. A session may include multiple call leg events. | | +|**eventTimestamp** | **String** | Event timestamp | | +|**name** | **String** | Event name | | +|**type** | [**TypeEnum**](#TypeEnum) | Event type | | +|**metadata** | **Object** | Event metadata, which includes raw event, and extra information based on event type | | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -CALL_EVENT | "call_event" +| Name | Value | +|---- | -----| +| CALL_EVENT | "call_event" | ## Enum: TypeEnum -Name | Value ----- | ----- -COMMAND | "command" -WEBHOOK | "webhook" +| Name | Value | +|---- | -----| +| COMMAND | "command" | +| WEBHOOK | "webhook" | diff --git a/docs/CallForkStarted.md b/docs/CallForkStarted.md index 54d42c56..3dfb218c 100644 --- a/docs/CallForkStarted.md +++ b/docs/CallForkStarted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallForkStartedPayload**](CallForkStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallForkStartedPayload**](CallForkStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_FORK_STARTED | "call.fork.started" +| Name | Value | +|---- | -----| +| CALL_FORK_STARTED | "call.fork.started" | diff --git a/docs/CallForkStartedEvent.md b/docs/CallForkStartedEvent.md index 6cf972d2..3c3d97d6 100644 --- a/docs/CallForkStartedEvent.md +++ b/docs/CallForkStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallForkStarted**](CallForkStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallForkStarted**](CallForkStarted.md) | | [optional] | diff --git a/docs/CallForkStartedPayload.md b/docs/CallForkStartedPayload.md index 603d3b24..537b5dda 100644 --- a/docs/CallForkStartedPayload.md +++ b/docs/CallForkStartedPayload.md @@ -5,11 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callControlId** | **String** | Unique ID for controlling the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**streamType** | [**StreamTypeEnum**](#StreamTypeEnum) | Type of media streamed. It can be either 'raw' or 'decrypted'. | [optional] | + + + +## Enum: StreamTypeEnum + +| Name | Value | +|---- | -----| +| RAW | "raw" | +| DECRYPTED | "decrypted" | diff --git a/docs/CallForkStopped.md b/docs/CallForkStopped.md index 21e420af..8f595b91 100644 --- a/docs/CallForkStopped.md +++ b/docs/CallForkStopped.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallForkStartedPayload**](CallForkStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallForkStartedPayload**](CallForkStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_FORK_STOPPED | "call.fork.stopped" +| Name | Value | +|---- | -----| +| CALL_FORK_STOPPED | "call.fork.stopped" | diff --git a/docs/CallForkStoppedEvent.md b/docs/CallForkStoppedEvent.md index 5b7a4885..9ca88f28 100644 --- a/docs/CallForkStoppedEvent.md +++ b/docs/CallForkStoppedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallForkStopped**](CallForkStopped.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallForkStopped**](CallForkStopped.md) | | [optional] | diff --git a/docs/CallForwarding.md b/docs/CallForwarding.md index ceb8869a..fd2e1e8b 100644 --- a/docs/CallForwarding.md +++ b/docs/CallForwarding.md @@ -6,20 +6,20 @@ The call forwarding settings for a phone number. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callForwardingEnabled** | **Boolean** | Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints. | [optional] -**forwardsTo** | **String** | The phone number to which inbound calls to this number are forwarded. Inbound calls will not be forwarded if this field is left blank. If set, must be a +E.164-formatted phone number. | [optional] -**forwardingType** | [**ForwardingTypeEnum**](#ForwardingTypeEnum) | Call forwarding type. 'forwards_to' must be set for this to have an effect. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callForwardingEnabled** | **Boolean** | Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints. | [optional] | +|**forwardsTo** | **String** | The phone number to which inbound calls to this number are forwarded. Inbound calls will not be forwarded if this field is left blank. If set, must be a +E.164-formatted phone number. | [optional] | +|**forwardingType** | [**ForwardingTypeEnum**](#ForwardingTypeEnum) | Call forwarding type. 'forwards_to' must be set for this to have an effect. | [optional] | ## Enum: ForwardingTypeEnum -Name | Value ----- | ----- -ALWAYS | "always" -ON_FAILURE | "on_failure" +| Name | Value | +|---- | -----| +| ALWAYS | "always" | +| ON_FAILURE | "on_failure" | diff --git a/docs/CallGatherEnded.md b/docs/CallGatherEnded.md index 872d33e9..520219fc 100644 --- a/docs/CallGatherEnded.md +++ b/docs/CallGatherEnded.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallGatherEndedPayload**](CallGatherEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallGatherEndedPayload**](CallGatherEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_GATHER_ENDED | "call.gather.ended" +| Name | Value | +|---- | -----| +| CALL_GATHER_ENDED | "call.gather.ended" | diff --git a/docs/CallGatherEndedEvent.md b/docs/CallGatherEndedEvent.md index af95f890..19ae42f4 100644 --- a/docs/CallGatherEndedEvent.md +++ b/docs/CallGatherEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallGatherEnded**](CallGatherEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallGatherEnded**](CallGatherEnded.md) | | [optional] | diff --git a/docs/CallGatherEndedPayload.md b/docs/CallGatherEndedPayload.md index a77ef832..0dcf4961 100644 --- a/docs/CallGatherEndedPayload.md +++ b/docs/CallGatherEndedPayload.md @@ -5,29 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**digits** | **String** | The received DTMF digit or symbol. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Reflects how command ended. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**digits** | **String** | The received DTMF digit or symbol. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Reflects how command ended. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -VALID | "valid" -INVALID | "invalid" -CALL_HANGUP | "call_hangup" -CANCELLED | "cancelled" -CANCELLED_AMD | "cancelled_amd" +| Name | Value | +|---- | -----| +| VALID | "valid" | +| INVALID | "invalid" | +| CALL_HANGUP | "call_hangup" | +| CANCELLED | "cancelled" | +| CANCELLED_AMD | "cancelled_amd" | +| TIMEOUT | "timeout" | diff --git a/docs/CallHangup.md b/docs/CallHangup.md index 53db1b53..fa37c002 100644 --- a/docs/CallHangup.md +++ b/docs/CallHangup.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallHangupPayload**](CallHangupPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallHangupPayload**](CallHangupPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_HANGUP | "call.hangup" +| Name | Value | +|---- | -----| +| CALL_HANGUP | "call.hangup" | diff --git a/docs/CallHangupEvent.md b/docs/CallHangupEvent.md index 86a3ea6f..e27fb40e 100644 --- a/docs/CallHangupEvent.md +++ b/docs/CallHangupEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallHangup**](CallHangup.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallHangup**](CallHangup.md) | | [optional] | diff --git a/docs/CallHangupPayload.md b/docs/CallHangupPayload.md index b0c53a9f..a3529eb0 100644 --- a/docs/CallHangupPayload.md +++ b/docs/CallHangupPayload.md @@ -5,53 +5,53 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**startTime** | **OffsetDateTime** | ISO 8601 datetime of when the call started. | [optional] -**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] -**hangupCause** | [**HangupCauseEnum**](#HangupCauseEnum) | The reason the call was ended (`call_rejected`, `normal_clearing`, `originator_cancel`, `timeout`, `time_limit`, `user_busy`, `not_found` or `unspecified`). | [optional] -**hangupSource** | [**HangupSourceEnum**](#HangupSourceEnum) | The party who ended the call (`callee`, `caller`, `unknown`). | [optional] -**sipHangupCause** | **String** | The reason the call was ended (SIP response code). If the SIP response is unavailable (in inbound calls for example) this is set to `unspecified`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**startTime** | **OffsetDateTime** | ISO 8601 datetime of when the call started. | [optional] | +|**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] | +|**hangupCause** | [**HangupCauseEnum**](#HangupCauseEnum) | The reason the call was ended (`call_rejected`, `normal_clearing`, `originator_cancel`, `timeout`, `time_limit`, `user_busy`, `not_found` or `unspecified`). | [optional] | +|**hangupSource** | [**HangupSourceEnum**](#HangupSourceEnum) | The party who ended the call (`callee`, `caller`, `unknown`). | [optional] | +|**sipHangupCause** | **String** | The reason the call was ended (SIP response code). If the SIP response is unavailable (in inbound calls for example) this is set to `unspecified`. | [optional] | ## Enum: StateEnum -Name | Value ----- | ----- -HANGUP | "hangup" +| Name | Value | +|---- | -----| +| HANGUP | "hangup" | ## Enum: HangupCauseEnum -Name | Value ----- | ----- -CALL_REJECTED | "call_rejected" -NORMAL_CLEARING | "normal_clearing" -ORIGINATOR_CANCEL | "originator_cancel" -TIMEOUT | "timeout" -TIME_LIMIT | "time_limit" -USER_BUSY | "user_busy" -NOT_FOUND | "not_found" -UNSPECIFIED | "unspecified" +| Name | Value | +|---- | -----| +| CALL_REJECTED | "call_rejected" | +| NORMAL_CLEARING | "normal_clearing" | +| ORIGINATOR_CANCEL | "originator_cancel" | +| TIMEOUT | "timeout" | +| TIME_LIMIT | "time_limit" | +| USER_BUSY | "user_busy" | +| NOT_FOUND | "not_found" | +| UNSPECIFIED | "unspecified" | ## Enum: HangupSourceEnum -Name | Value ----- | ----- -CALLER | "caller" -CALLEE | "callee" -UNKNOWN | "unknown" +| Name | Value | +|---- | -----| +| CALLER | "caller" | +| CALLEE | "callee" | +| UNKNOWN | "unknown" | diff --git a/docs/CallInitiated.md b/docs/CallInitiated.md index 5ad3b117..55072ded 100644 --- a/docs/CallInitiated.md +++ b/docs/CallInitiated.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallInitiatedPayload**](CallInitiatedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallInitiatedPayload**](CallInitiatedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_INITIATED | "call.initiated" +| Name | Value | +|---- | -----| +| CALL_INITIATED | "call.initiated" | diff --git a/docs/CallInitiatedEvent.md b/docs/CallInitiatedEvent.md index c33d31a3..aade01ec 100644 --- a/docs/CallInitiatedEvent.md +++ b/docs/CallInitiatedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallInitiated**](CallInitiated.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallInitiated**](CallInitiated.md) | | [optional] | diff --git a/docs/CallInitiatedPayload.md b/docs/CallInitiatedPayload.md index 50468adb..dad6a874 100644 --- a/docs/CallInitiatedPayload.md +++ b/docs/CallInitiatedPayload.md @@ -5,35 +5,35 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | Whether the call is `incoming` or `outgoing`. | [optional] -**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**direction** | [**DirectionEnum**](#DirectionEnum) | Whether the call is `incoming` or `outgoing`. | [optional] | +|**state** | [**StateEnum**](#StateEnum) | State received from a command. | [optional] | ## Enum: DirectionEnum -Name | Value ----- | ----- -INCOMING | "incoming" -OUTGOING | "outgoing" +| Name | Value | +|---- | -----| +| INCOMING | "incoming" | +| OUTGOING | "outgoing" | ## Enum: StateEnum -Name | Value ----- | ----- -PARKED | "parked" -BRIDGING | "bridging" +| Name | Value | +|---- | -----| +| PARKED | "parked" | +| BRIDGING | "bridging" | diff --git a/docs/CallLeftQueue.md b/docs/CallLeftQueue.md index 86577c25..994d959d 100644 --- a/docs/CallLeftQueue.md +++ b/docs/CallLeftQueue.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallLeftQueuePayload**](CallLeftQueuePayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallLeftQueuePayload**](CallLeftQueuePayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_DEQUEUED | "call.dequeued" +| Name | Value | +|---- | -----| +| CALL_DEQUEUED | "call.dequeued" | diff --git a/docs/CallLeftQueueEvent.md b/docs/CallLeftQueueEvent.md index d95e700b..7cca334f 100644 --- a/docs/CallLeftQueueEvent.md +++ b/docs/CallLeftQueueEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallLeftQueue**](CallLeftQueue.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallLeftQueue**](CallLeftQueue.md) | | [optional] | diff --git a/docs/CallLeftQueuePayload.md b/docs/CallLeftQueuePayload.md index 0dc687cd..e9511a3e 100644 --- a/docs/CallLeftQueuePayload.md +++ b/docs/CallLeftQueuePayload.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**queue** | **String** | The name of the queue | [optional] -**queuePosition** | **Integer** | Last position of the call in the queue. | [optional] -**reason** | [**ReasonEnum**](#ReasonEnum) | The reason for leaving the queue | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**queue** | **String** | The name of the queue | [optional] | +|**queuePosition** | **Integer** | Last position of the call in the queue. | [optional] | +|**reason** | [**ReasonEnum**](#ReasonEnum) | The reason for leaving the queue | [optional] | ## Enum: ReasonEnum -Name | Value ----- | ----- -BRIDGED | "bridged" -BRIDGING_IN_PROCESS | "bridging-in-process" -HANGUP | "hangup" -LEAVE | "leave" -TIMEOUT | "timeout" +| Name | Value | +|---- | -----| +| BRIDGED | "bridged" | +| BRIDGING_IN_PROCESS | "bridging-in-process" | +| HANGUP | "hangup" | +| LEAVE | "leave" | +| TIMEOUT | "timeout" | diff --git a/docs/CallMachineDetectionEnded.md b/docs/CallMachineDetectionEnded.md index 9f7cc1cc..433d62f3 100644 --- a/docs/CallMachineDetectionEnded.md +++ b/docs/CallMachineDetectionEnded.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallMachineDetectionEndedPayload**](CallMachineDetectionEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallMachineDetectionEndedPayload**](CallMachineDetectionEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_MACHINE_DETECTION_ENDED | "call.machine.detection.ended" +| Name | Value | +|---- | -----| +| CALL_MACHINE_DETECTION_ENDED | "call.machine.detection.ended" | diff --git a/docs/CallMachineDetectionEndedEvent.md b/docs/CallMachineDetectionEndedEvent.md index ee8975a2..a3366b55 100644 --- a/docs/CallMachineDetectionEndedEvent.md +++ b/docs/CallMachineDetectionEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallMachineDetectionEnded**](CallMachineDetectionEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallMachineDetectionEnded**](CallMachineDetectionEnded.md) | | [optional] | diff --git a/docs/CallMachineDetectionEndedPayload.md b/docs/CallMachineDetectionEndedPayload.md index 67914f08..1c063a2f 100644 --- a/docs/CallMachineDetectionEndedPayload.md +++ b/docs/CallMachineDetectionEndedPayload.md @@ -5,26 +5,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**result** | [**ResultEnum**](#ResultEnum) | Answering machine detection result. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**result** | [**ResultEnum**](#ResultEnum) | Answering machine detection result. | [optional] | ## Enum: ResultEnum -Name | Value ----- | ----- -HUMAN | "human" -MACHINE | "machine" -NOT_SURE | "not_sure" +| Name | Value | +|---- | -----| +| HUMAN | "human" | +| MACHINE | "machine" | +| NOT_SURE | "not_sure" | diff --git a/docs/CallMachineGreetingEnded.md b/docs/CallMachineGreetingEnded.md index d2c94692..f180e860 100644 --- a/docs/CallMachineGreetingEnded.md +++ b/docs/CallMachineGreetingEnded.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallMachineGreetingEndedPayload**](CallMachineGreetingEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallMachineGreetingEndedPayload**](CallMachineGreetingEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_MACHINE_GREETING_ENDED | "call.machine.greeting.ended" +| Name | Value | +|---- | -----| +| CALL_MACHINE_GREETING_ENDED | "call.machine.greeting.ended" | diff --git a/docs/CallMachineGreetingEndedEvent.md b/docs/CallMachineGreetingEndedEvent.md index 8b467904..3251769f 100644 --- a/docs/CallMachineGreetingEndedEvent.md +++ b/docs/CallMachineGreetingEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallMachineGreetingEnded**](CallMachineGreetingEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallMachineGreetingEnded**](CallMachineGreetingEnded.md) | | [optional] | diff --git a/docs/CallMachineGreetingEndedPayload.md b/docs/CallMachineGreetingEndedPayload.md index 1dd7a030..4d956286 100644 --- a/docs/CallMachineGreetingEndedPayload.md +++ b/docs/CallMachineGreetingEndedPayload.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] -**result** | [**ResultEnum**](#ResultEnum) | Answering machine greeting ended result. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | +|**result** | [**ResultEnum**](#ResultEnum) | Answering machine greeting ended result. | [optional] | ## Enum: ResultEnum -Name | Value ----- | ----- -ENDED | "ended" -NOT_SURE | "not_sure" +| Name | Value | +|---- | -----| +| ENDED | "ended" | +| NOT_SURE | "not_sure" | diff --git a/docs/CallPlaybackEnded.md b/docs/CallPlaybackEnded.md index 4ce2b599..d44d0a32 100644 --- a/docs/CallPlaybackEnded.md +++ b/docs/CallPlaybackEnded.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallPlaybackEndedPayload**](CallPlaybackEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallPlaybackEndedPayload**](CallPlaybackEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_PLAYBACK_ENDED | "call.playback.ended" +| Name | Value | +|---- | -----| +| CALL_PLAYBACK_ENDED | "call.playback.ended" | diff --git a/docs/CallPlaybackEndedEvent.md b/docs/CallPlaybackEndedEvent.md index bf3519cd..da35dfa6 100644 --- a/docs/CallPlaybackEndedEvent.md +++ b/docs/CallPlaybackEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallPlaybackEnded**](CallPlaybackEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallPlaybackEnded**](CallPlaybackEnded.md) | | [optional] | diff --git a/docs/CallPlaybackEndedPayload.md b/docs/CallPlaybackEndedPayload.md index 8237d285..11e4ca9d 100644 --- a/docs/CallPlaybackEndedPayload.md +++ b/docs/CallPlaybackEndedPayload.md @@ -5,31 +5,31 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] -**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] -**overlay** | **Boolean** | Whether the stopped audio was in overlay mode or not. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Reflects how command ended. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] | +|**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] | +|**overlay** | **Boolean** | Whether the stopped audio was in overlay mode or not. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Reflects how command ended. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -FILE_NOT_FOUND | "file_not_found" -CALL_HANGUP | "call_hangup" -UNKNOWN | "unknown" -FAILED | "failed" -CANCELLED_AMD | "cancelled_amd" -COMPLETED | "completed" -FAILED | "failed" +| Name | Value | +|---- | -----| +| FILE_NOT_FOUND | "file_not_found" | +| CALL_HANGUP | "call_hangup" | +| UNKNOWN | "unknown" | +| FAILED | "failed" | +| CANCELLED_AMD | "cancelled_amd" | +| COMPLETED | "completed" | +| FAILED | "failed" | diff --git a/docs/CallPlaybackStarted.md b/docs/CallPlaybackStarted.md index 2b5e9fa3..d40047dd 100644 --- a/docs/CallPlaybackStarted.md +++ b/docs/CallPlaybackStarted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallPlaybackStartedPayload**](CallPlaybackStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallPlaybackStartedPayload**](CallPlaybackStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_PLAYBACK_STARTED | "call.playback.started" +| Name | Value | +|---- | -----| +| CALL_PLAYBACK_STARTED | "call.playback.started" | diff --git a/docs/CallPlaybackStartedEvent.md b/docs/CallPlaybackStartedEvent.md index 47d66750..fcbc78b3 100644 --- a/docs/CallPlaybackStartedEvent.md +++ b/docs/CallPlaybackStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallPlaybackStarted**](CallPlaybackStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallPlaybackStarted**](CallPlaybackStarted.md) | | [optional] | diff --git a/docs/CallPlaybackStartedPayload.md b/docs/CallPlaybackStartedPayload.md index 138282c1..da544db2 100644 --- a/docs/CallPlaybackStartedPayload.md +++ b/docs/CallPlaybackStartedPayload.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] -**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] -**overlay** | **Boolean** | Whether the audio is going to be played in overlay mode or not. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] | +|**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] | +|**overlay** | **Boolean** | Whether the audio is going to be played in overlay mode or not. | [optional] | diff --git a/docs/CallRecording.md b/docs/CallRecording.md index b13476a8..56b6664b 100644 --- a/docs/CallRecording.md +++ b/docs/CallRecording.md @@ -6,29 +6,29 @@ The call recording settings for a phone number. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**inboundCallRecordingEnabled** | **Boolean** | When enabled, any inbound call to this number will be recorded. | [optional] -**inboundCallRecordingFormat** | [**InboundCallRecordingFormatEnum**](#InboundCallRecordingFormatEnum) | The audio file format for calls being recorded. | [optional] -**inboundCallRecordingChannels** | [**InboundCallRecordingChannelsEnum**](#InboundCallRecordingChannelsEnum) | When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**inboundCallRecordingEnabled** | **Boolean** | When enabled, any inbound call to this number will be recorded. | [optional] | +|**inboundCallRecordingFormat** | [**InboundCallRecordingFormatEnum**](#InboundCallRecordingFormatEnum) | The audio file format for calls being recorded. | [optional] | +|**inboundCallRecordingChannels** | [**InboundCallRecordingChannelsEnum**](#InboundCallRecordingChannelsEnum) | When using 'dual' channels, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. | [optional] | ## Enum: InboundCallRecordingFormatEnum -Name | Value ----- | ----- -WAV | "wav" -MP3 | "mp3" +| Name | Value | +|---- | -----| +| WAV | "wav" | +| MP3 | "mp3" | ## Enum: InboundCallRecordingChannelsEnum -Name | Value ----- | ----- -SINGLE | "single" -DUAL | "dual" +| Name | Value | +|---- | -----| +| SINGLE | "single" | +| DUAL | "dual" | diff --git a/docs/CallRecordingError.md b/docs/CallRecordingError.md index a8d882da..e362a01b 100644 --- a/docs/CallRecordingError.md +++ b/docs/CallRecordingError.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallRecordingErrorPayload**](CallRecordingErrorPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallRecordingErrorPayload**](CallRecordingErrorPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_RECORDING_ERROR | "call.recording.error" +| Name | Value | +|---- | -----| +| CALL_RECORDING_ERROR | "call.recording.error" | diff --git a/docs/CallRecordingErrorEvent.md b/docs/CallRecordingErrorEvent.md index 1f367984..ae730708 100644 --- a/docs/CallRecordingErrorEvent.md +++ b/docs/CallRecordingErrorEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallRecordingError**](CallRecordingError.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallRecordingError**](CallRecordingError.md) | | [optional] | diff --git a/docs/CallRecordingErrorPayload.md b/docs/CallRecordingErrorPayload.md index 51c6bcc0..9b6ab325 100644 --- a/docs/CallRecordingErrorPayload.md +++ b/docs/CallRecordingErrorPayload.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**reason** | [**ReasonEnum**](#ReasonEnum) | Indication that there was a problem recording the call. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**reason** | [**ReasonEnum**](#ReasonEnum) | Indication that there was a problem recording the call. | [optional] | ## Enum: ReasonEnum -Name | Value ----- | ----- -FAILED_TO_AUTHORIZE_WITH_STORAGE_USING_CUSTOM_CREDENTIALS | "Failed to authorize with storage using custom credentials" -INVALID_CREDENTIALS_JSON | "Invalid credentials json" -UNSUPPORTED_BACKEND | "Unsupported backend" -INTERNAL_SERVER_ERROR | "Internal server error" +| Name | Value | +|---- | -----| +| FAILED_TO_AUTHORIZE_WITH_STORAGE_USING_CUSTOM_CREDENTIALS | "Failed to authorize with storage using custom credentials" | +| INVALID_CREDENTIALS_JSON | "Invalid credentials json" | +| UNSUPPORTED_BACKEND | "Unsupported backend" | +| INTERNAL_SERVER_ERROR | "Internal server error" | diff --git a/docs/CallRecordingSaved.md b/docs/CallRecordingSaved.md index 4d7cc988..d275aefd 100644 --- a/docs/CallRecordingSaved.md +++ b/docs/CallRecordingSaved.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallRecordingSavedPayload**](CallRecordingSavedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallRecordingSavedPayload**](CallRecordingSavedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_RECORDING_SAVED | "call.recording.saved" +| Name | Value | +|---- | -----| +| CALL_RECORDING_SAVED | "call.recording.saved" | diff --git a/docs/CallRecordingSavedEvent.md b/docs/CallRecordingSavedEvent.md index 483da0c5..b7680d70 100644 --- a/docs/CallRecordingSavedEvent.md +++ b/docs/CallRecordingSavedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallRecordingSaved**](CallRecordingSaved.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallRecordingSaved**](CallRecordingSaved.md) | | [optional] | diff --git a/docs/CallRecordingSavedPayload.md b/docs/CallRecordingSavedPayload.md index a01129bb..b7ea33d8 100644 --- a/docs/CallRecordingSavedPayload.md +++ b/docs/CallRecordingSavedPayload.md @@ -5,26 +5,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**recordingStartedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording started. | [optional] -**recordingEndedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording ended. | [optional] -**channels** | [**ChannelsEnum**](#ChannelsEnum) | Whether recording was recorded in `single` or `dual` channel. | [optional] -**recordingUrls** | [**CallRecordingSavedPayloadRecordingUrls**](CallRecordingSavedPayloadRecordingUrls.md) | | [optional] -**publicRecordingUrls** | [**CallRecordingSavedPayloadPublicRecordingUrls**](CallRecordingSavedPayloadPublicRecordingUrls.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**recordingStartedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording started. | [optional] | +|**recordingEndedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording ended. | [optional] | +|**channels** | [**ChannelsEnum**](#ChannelsEnum) | Whether recording was recorded in `single` or `dual` channel. | [optional] | +|**recordingUrls** | [**CallRecordingSavedPayloadRecordingUrls**](CallRecordingSavedPayloadRecordingUrls.md) | | [optional] | +|**publicRecordingUrls** | [**CallRecordingSavedPayloadPublicRecordingUrls**](CallRecordingSavedPayloadPublicRecordingUrls.md) | | [optional] | ## Enum: ChannelsEnum -Name | Value ----- | ----- -SINGLE | "single" -DUAL | "dual" +| Name | Value | +|---- | -----| +| SINGLE | "single" | +| DUAL | "dual" | diff --git a/docs/CallRecordingSavedPayloadPublicRecordingUrls.md b/docs/CallRecordingSavedPayloadPublicRecordingUrls.md index 918d2c90..f46a9b70 100644 --- a/docs/CallRecordingSavedPayloadPublicRecordingUrls.md +++ b/docs/CallRecordingSavedPayloadPublicRecordingUrls.md @@ -6,10 +6,10 @@ Recording URLs in requested format. The URL is valid for as long as the file exi ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mp3** | **String** | Recording URL in requested `mp3` format. | [optional] -**wav** | **String** | Recording URL in requested `wav` format. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mp3** | **String** | Recording URL in requested `mp3` format. | [optional] | +|**wav** | **String** | Recording URL in requested `wav` format. | [optional] | diff --git a/docs/CallRecordingSavedPayloadRecordingUrls.md b/docs/CallRecordingSavedPayloadRecordingUrls.md index f04cce19..ecf2f064 100644 --- a/docs/CallRecordingSavedPayloadRecordingUrls.md +++ b/docs/CallRecordingSavedPayloadRecordingUrls.md @@ -6,10 +6,10 @@ Recording URLs in requested format. These URLs are valid for 10 minutes. After 1 ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mp3** | **String** | Recording URL in requested `mp3` format. | [optional] -**wav** | **String** | Recording URL in requested `wav` format. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mp3** | **String** | Recording URL in requested `mp3` format. | [optional] | +|**wav** | **String** | Recording URL in requested `wav` format. | [optional] | diff --git a/docs/CallRecordingsApi.md b/docs/CallRecordingsApi.md index 98ad6562..5c57ff35 100644 --- a/docs/CallRecordingsApi.md +++ b/docs/CallRecordingsApi.md @@ -40,7 +40,7 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); CallRecordingsApi apiInstance = new CallRecordingsApi(defaultClient); - String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). GCSConfiguration gcSConfiguration = new GCSConfiguration(); // GCSConfiguration | Creates new credentials resource for given connection_id. try { CredentialsResponse result = apiInstance.createCustomStorageCredentials(connectionId, gcSConfiguration); @@ -61,7 +61,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. | + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | **gcSConfiguration** | [**GCSConfiguration**](GCSConfiguration.md)| Creates new credentials resource for given connection_id. | ### Return type @@ -113,7 +113,7 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); CallRecordingsApi apiInstance = new CallRecordingsApi(defaultClient); - String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). try { apiInstance.deleteCustomStorageCredentials(connectionId); } catch (ApiException e) { @@ -132,7 +132,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. | + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | ### Return type @@ -183,7 +183,7 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); CallRecordingsApi apiInstance = new CallRecordingsApi(defaultClient); - String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). try { CredentialsResponse result = apiInstance.getCustomStorageCredentials(connectionId); System.out.println(result); @@ -203,7 +203,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. | + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | ### Return type @@ -254,7 +254,7 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); CallRecordingsApi apiInstance = new CallRecordingsApi(defaultClient); - String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). GCSConfiguration gcSConfiguration = new GCSConfiguration(); // GCSConfiguration | Creates new credentials resource for given connection_id. try { CredentialsResponse result = apiInstance.updateCustomStorageCredentials(connectionId, gcSConfiguration); @@ -275,7 +275,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. | + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | **gcSConfiguration** | [**GCSConfiguration**](GCSConfiguration.md)| Creates new credentials resource for given connection_id. | ### Return type diff --git a/docs/CallReferCompleted.md b/docs/CallReferCompleted.md index 4fc3b0c1..5eecc65e 100644 --- a/docs/CallReferCompleted.md +++ b/docs/CallReferCompleted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallReferCompletedPayload**](CallReferCompletedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallReferCompletedPayload**](CallReferCompletedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_REFER_COMPLETED | "call.refer.completed" +| Name | Value | +|---- | -----| +| CALL_REFER_COMPLETED | "call.refer.completed" | diff --git a/docs/CallReferCompletedEvent.md b/docs/CallReferCompletedEvent.md index 616be663..41118b4f 100644 --- a/docs/CallReferCompletedEvent.md +++ b/docs/CallReferCompletedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallReferCompleted**](CallReferCompleted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallReferCompleted**](CallReferCompleted.md) | | [optional] | diff --git a/docs/CallReferCompletedPayload.md b/docs/CallReferCompletedPayload.md index cc70dd82..96cd78de 100644 --- a/docs/CallReferCompletedPayload.md +++ b/docs/CallReferCompletedPayload.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique ID for controlling the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**sipNotifyResponse** | **Integer** | SIP NOTIFY event status for tracking the REFER attempt. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique ID for controlling the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**sipNotifyResponse** | **Integer** | SIP NOTIFY event status for tracking the REFER attempt. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | diff --git a/docs/CallReferFailed.md b/docs/CallReferFailed.md index 832d9064..925b5b4d 100644 --- a/docs/CallReferFailed.md +++ b/docs/CallReferFailed.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallReferFailedPayload**](CallReferFailedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallReferFailedPayload**](CallReferFailedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_REFER_FAILED | "call.refer.failed" +| Name | Value | +|---- | -----| +| CALL_REFER_FAILED | "call.refer.failed" | diff --git a/docs/CallReferFailedEvent.md b/docs/CallReferFailedEvent.md index 61925662..c63fbcba 100644 --- a/docs/CallReferFailedEvent.md +++ b/docs/CallReferFailedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallReferFailed**](CallReferFailed.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallReferFailed**](CallReferFailed.md) | | [optional] | diff --git a/docs/CallReferFailedPayload.md b/docs/CallReferFailedPayload.md index a07d4c92..8677fa9c 100644 --- a/docs/CallReferFailedPayload.md +++ b/docs/CallReferFailedPayload.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique ID for controlling the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**sipNotifyResponse** | **Integer** | SIP NOTIFY event status for tracking the REFER attempt. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique ID for controlling the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**sipNotifyResponse** | **Integer** | SIP NOTIFY event status for tracking the REFER attempt. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | diff --git a/docs/CallReferStarted.md b/docs/CallReferStarted.md index c06e9f65..4b7cb2df 100644 --- a/docs/CallReferStarted.md +++ b/docs/CallReferStarted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallReferStartedPayload**](CallReferStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallReferStartedPayload**](CallReferStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_REFER_STARTED | "call.refer.started" +| Name | Value | +|---- | -----| +| CALL_REFER_STARTED | "call.refer.started" | diff --git a/docs/CallReferStartedEvent.md b/docs/CallReferStartedEvent.md index 51f1ff81..278ade7d 100644 --- a/docs/CallReferStartedEvent.md +++ b/docs/CallReferStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallReferStarted**](CallReferStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallReferStarted**](CallReferStarted.md) | | [optional] | diff --git a/docs/CallReferStartedPayload.md b/docs/CallReferStartedPayload.md index 4aaa7579..dc9efea4 100644 --- a/docs/CallReferStartedPayload.md +++ b/docs/CallReferStartedPayload.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique ID for controlling the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**from** | **String** | Number or SIP URI placing the call. | [optional] -**sipNotifyResponse** | **Integer** | SIP NOTIFY event status for tracking the REFER attempt. | [optional] -**to** | **String** | Destination number or SIP URI of the call. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique ID for controlling the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**from** | **String** | Number or SIP URI placing the call. | [optional] | +|**sipNotifyResponse** | **Integer** | SIP NOTIFY event status for tracking the REFER attempt. | [optional] | +|**to** | **String** | Destination number or SIP URI of the call. | [optional] | diff --git a/docs/CallRequest.md b/docs/CallRequest.md index 25e845b3..44136c02 100644 --- a/docs/CallRequest.md +++ b/docs/CallRequest.md @@ -5,62 +5,95 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**to** | [**OneOfstringarray**](OneOfstringarray.md) | The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided using an array of strings | -**from** | **String** | The `from` number to be used as the caller id presented to the destination (`to` number). The number should be in +E164 format. This attribute will default to the `from` number of the original call if omitted. | -**fromDisplayName** | **String** | The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented to the destination (`to` number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be the same as the number in the `from` field. | [optional] -**connectionId** | **String** | The ID of the Call Control App (formerly ID of the connection) to be used when dialing the destination. | -**audioUrl** | **String** | The URL of a file to be played back to the callee when the call is answered. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] -**mediaName** | **String** | The media_name of a file to be played back to the callee when the call is answered. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] -**preferredCodecs** | **String** | The list of comma-separated codecs in a preferred order for the forked media to be received. | [optional] -**timeoutSecs** | **Integer** | The number of seconds that Telnyx will wait for the call to be answered by the destination to which it is being called. If the timeout is reached before an answer is received, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent. Minimum value is 5 seconds. Maximum value is 120 seconds. | [optional] -**timeLimitSecs** | **Integer** | Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also the maximum allowed call length. | [optional] -**answeringMachineDetection** | [**AnsweringMachineDetectionEnum**](#AnsweringMachineDetectionEnum) | Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' webhook when the answering machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' if a beep is detected. | [optional] -**answeringMachineDetectionConfig** | [**CallRequestAnsweringMachineDetectionConfig**](CallRequestAnsweringMachineDetectionConfig.md) | | [optional] -**customHeaders** | [**List<CustomSipHeader>**](CustomSipHeader.md) | Custom headers to be added to the SIP INVITE. | [optional] -**billingGroupId** | **UUID** | Use this field to set the Billing Group ID for the call. Must be a valid and existing Billing Group ID. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore others Dial commands with the same `command_id`. | [optional] -**linkTo** | **String** | Use another call's control id for sharing the same call session id | [optional] -**sipAuthUsername** | **String** | SIP Authentication username used for SIP challenges. | [optional] -**sipAuthPassword** | **String** | SIP Authentication password used for SIP challenges. | [optional] -**soundModifications** | [**SoundModifications**](SoundModifications.md) | | [optional] -**streamUrl** | **String** | The destination WebSocket address where the stream is going to be delivered. | [optional] -**streamTrack** | [**StreamTrackEnum**](#StreamTrackEnum) | Specifies which track should be streamed. | [optional] -**webhookUrl** | **String** | Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call. | [optional] -**webhookUrlMethod** | [**WebhookUrlMethodEnum**](#WebhookUrlMethodEnum) | HTTP request type used for `webhook_url`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**to** | [**CallRequestTo**](CallRequestTo.md) | | | +|**from** | **String** | The `from` number to be used as the caller id presented to the destination (`to` number). The number should be in +E164 format. This attribute will default to the `from` number of the original call if omitted. | | +|**fromDisplayName** | **String** | The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented to the destination (`to` number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be the same as the number in the `from` field. | [optional] | +|**connectionId** | **String** | The ID of the Call Control App (formerly ID of the connection) to be used when dialing the destination. | | +|**audioUrl** | **String** | The URL of a file to be played back to the callee when the call is answered. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] | +|**mediaName** | **String** | The media_name of a file to be played back to the callee when the call is answered. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] | +|**preferredCodecs** | **String** | The list of comma-separated codecs in a preferred order for the forked media to be received. | [optional] | +|**timeoutSecs** | **Integer** | The number of seconds that Telnyx will wait for the call to be answered by the destination to which it is being called. If the timeout is reached before an answer is received, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent. Minimum value is 5 seconds. Maximum value is 120 seconds. | [optional] | +|**timeLimitSecs** | **Integer** | Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also the maximum allowed call length. | [optional] | +|**answeringMachineDetection** | [**AnsweringMachineDetectionEnum**](#AnsweringMachineDetectionEnum) | Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' webhook when the answering machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' if a beep is detected. | [optional] | +|**answeringMachineDetectionConfig** | [**CallRequestAnsweringMachineDetectionConfig**](CallRequestAnsweringMachineDetectionConfig.md) | | [optional] | +|**customHeaders** | [**List<CustomSipHeader>**](CustomSipHeader.md) | Custom headers to be added to the SIP INVITE. | [optional] | +|**billingGroupId** | **UUID** | Use this field to set the Billing Group ID for the call. Must be a valid and existing Billing Group ID. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore others Dial commands with the same `command_id`. | [optional] | +|**linkTo** | **String** | Use another call's control id for sharing the same call session id | [optional] | +|**sipAuthUsername** | **String** | SIP Authentication username used for SIP challenges. | [optional] | +|**sipAuthPassword** | **String** | SIP Authentication password used for SIP challenges. | [optional] | +|**soundModifications** | [**SoundModifications**](SoundModifications.md) | | [optional] | +|**streamUrl** | **String** | The destination WebSocket address where the stream is going to be delivered. | [optional] | +|**streamTrack** | [**StreamTrackEnum**](#StreamTrackEnum) | Specifies which track should be streamed. | [optional] | +|**webhookUrl** | **String** | Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call. | [optional] | +|**webhookUrlMethod** | [**WebhookUrlMethodEnum**](#WebhookUrlMethodEnum) | HTTP request type used for `webhook_url`. | [optional] | +|**record** | [**RecordEnum**](#RecordEnum) | Start recording automatically after an event. Disabled by default. | [optional] | +|**recordChannels** | [**RecordChannelsEnum**](#RecordChannelsEnum) | Defines which channel should be recorded ('single' or 'dual') when `record` is specified. | [optional] | +|**recordFormat** | [**RecordFormatEnum**](#RecordFormatEnum) | Defines the format of the recording ('wav' or 'mp3') when `record` is specified. | [optional] | +|**recordMaxLength** | **Integer** | Defines the maximum length for the recording in seconds when `record` is specified. The minimum value is 0. The maximum value is 43200. The default value is 0 (infinite). | [optional] | +|**recordTimeoutSecs** | **Integer** | The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected when `record` is specified. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite). | [optional] | +|**enableDialogflow** | **Boolean** | Enables Dialogflow for the current call. The default value is false. | [optional] | +|**dialogflowConfig** | [**DialogflowConfig**](DialogflowConfig.md) | | [optional] | ## Enum: AnsweringMachineDetectionEnum -Name | Value ----- | ----- -DETECT | "detect" -DETECT_BEEP | "detect_beep" -DETECT_WORDS | "detect_words" -GREETING_END | "greeting_end" -DISABLED | "disabled" +| Name | Value | +|---- | -----| +| DETECT | "detect" | +| DETECT_BEEP | "detect_beep" | +| DETECT_WORDS | "detect_words" | +| GREETING_END | "greeting_end" | +| DISABLED | "disabled" | ## Enum: StreamTrackEnum -Name | Value ----- | ----- -INBOUND_TRACK | "inbound_track" -OUTBOUND_TRACK | "outbound_track" -BOTH_TRACKS | "both_tracks" +| Name | Value | +|---- | -----| +| INBOUND_TRACK | "inbound_track" | +| OUTBOUND_TRACK | "outbound_track" | +| BOTH_TRACKS | "both_tracks" | ## Enum: WebhookUrlMethodEnum -Name | Value ----- | ----- -POST | "POST" -GET | "GET" +| Name | Value | +|---- | -----| +| POST | "POST" | +| GET | "GET" | + + + +## Enum: RecordEnum + +| Name | Value | +|---- | -----| +| RECORD_FROM_ANSWER | "record-from-answer" | + + + +## Enum: RecordChannelsEnum + +| Name | Value | +|---- | -----| +| SINGLE | "single" | +| DUAL | "dual" | + + + +## Enum: RecordFormatEnum + +| Name | Value | +|---- | -----| +| WAV | "wav" | +| MP3 | "mp3" | diff --git a/docs/CallRequestAnsweringMachineDetectionConfig.md b/docs/CallRequestAnsweringMachineDetectionConfig.md index 933f9fea..7c6c973a 100644 --- a/docs/CallRequestAnsweringMachineDetectionConfig.md +++ b/docs/CallRequestAnsweringMachineDetectionConfig.md @@ -6,18 +6,18 @@ Optional configuration parameters to modify 'answering_machine_detection' perfor ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalAnalysisTimeMillis** | **Integer** | Maximum timeout threshold for overall detection. | [optional] -**afterGreetingSilenceMillis** | **Integer** | Silence duration threshold after a greeting message or voice for it be considered human. | [optional] -**betweenWordsSilenceMillis** | **Integer** | Maximum threshold for silence between words. | [optional] -**greetingDurationMillis** | **Integer** | Maximum threshold of a human greeting. If greeting longer than this value, considered machine. | [optional] -**initialSilenceMillis** | **Integer** | If initial silence duration is greater than this value, consider it a machine. | [optional] -**maximumNumberOfWords** | **Integer** | If number of detected words is greater than this value, consder it a machine. | [optional] -**maximumWordLengthMillis** | **Integer** | If a single word lasts longer than this threshold, consider it a machine. | [optional] -**silenceThreshold** | **Integer** | Minimum noise threshold for any analysis. | [optional] -**greetingTotalAnalysisTimeMillis** | **Integer** | If machine already detected, maximum timeout threshold to determine the end of the machine greeting. | [optional] -**greetingSilenceDurationMillis** | **Integer** | If machine already detected, maximum threshold for silence between words. If exceeded, the greeting is considered ended. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalAnalysisTimeMillis** | **Integer** | Maximum timeout threshold for overall detection. | [optional] | +|**afterGreetingSilenceMillis** | **Integer** | Silence duration threshold after a greeting message or voice for it be considered human. | [optional] | +|**betweenWordsSilenceMillis** | **Integer** | Maximum threshold for silence between words. | [optional] | +|**greetingDurationMillis** | **Integer** | Maximum threshold of a human greeting. If greeting longer than this value, considered machine. | [optional] | +|**initialSilenceMillis** | **Integer** | If initial silence duration is greater than this value, consider it a machine. | [optional] | +|**maximumNumberOfWords** | **Integer** | If number of detected words is greater than this value, consder it a machine. | [optional] | +|**maximumWordLengthMillis** | **Integer** | If a single word lasts longer than this threshold, consider it a machine. | [optional] | +|**silenceThreshold** | **Integer** | Minimum noise threshold for any analysis. | [optional] | +|**greetingTotalAnalysisTimeMillis** | **Integer** | If machine already detected, maximum timeout threshold to determine the end of the machine greeting. | [optional] | +|**greetingSilenceDurationMillis** | **Integer** | If machine already detected, maximum threshold for silence between words. If exceeded, the greeting is considered ended. | [optional] | diff --git a/docs/CallRequestTo.md b/docs/CallRequestTo.md new file mode 100644 index 00000000..d61f18c9 --- /dev/null +++ b/docs/CallRequestTo.md @@ -0,0 +1,40 @@ + + +# CallRequestTo + +The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided using an array of strings + +## oneOf schemas +* [List](List.md) +* [String](String.md) + +## Example + +```java +// Import classes: + +import com.telnyx.sdk.model.List; +import com.telnyx.sdk.model.String; + +public class Example { + public static void main(String[] args) { + CallRequestTo exampleCallRequestTo = new CallRequestTo(); + + // create a new List + List exampleList = new List(); + // set CallRequestTo to List + exampleCallRequestTo.setActualInstance(exampleList < String >); + // to get back the List set earlier + List testList = (List) exampleCallRequestTo.getActualInstance(); + + // create a new String + String exampleString = new String(); + // set CallRequestTo to String + exampleCallRequestTo.setActualInstance(exampleString); + // to get back the String set earlier + String testString = (String) exampleCallRequestTo.getActualInstance(); + } +} +``` + + diff --git a/docs/CallSpeakEnded.md b/docs/CallSpeakEnded.md index 1c23153d..ccd164cb 100644 --- a/docs/CallSpeakEnded.md +++ b/docs/CallSpeakEnded.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallSpeakEndedPayload**](CallSpeakEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallSpeakEndedPayload**](CallSpeakEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_SPEAK_ENDED | "call.speak.ended" +| Name | Value | +|---- | -----| +| CALL_SPEAK_ENDED | "call.speak.ended" | diff --git a/docs/CallSpeakEndedEvent.md b/docs/CallSpeakEndedEvent.md index 22ba7145..c63b9094 100644 --- a/docs/CallSpeakEndedEvent.md +++ b/docs/CallSpeakEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallSpeakEnded**](CallSpeakEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallSpeakEnded**](CallSpeakEnded.md) | | [optional] | diff --git a/docs/CallSpeakEndedPayload.md b/docs/CallSpeakEndedPayload.md index 084a989a..ef8ad2d1 100644 --- a/docs/CallSpeakEndedPayload.md +++ b/docs/CallSpeakEndedPayload.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Reflects how the command ended. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Reflects how the command ended. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -COMPLETED | "completed" -CALL_HANGUP | "call_hangup" -CANCELLED_AMD | "cancelled_amd" +| Name | Value | +|---- | -----| +| COMPLETED | "completed" | +| CALL_HANGUP | "call_hangup" | +| CANCELLED_AMD | "cancelled_amd" | diff --git a/docs/CallSpeakStarted.md b/docs/CallSpeakStarted.md index e2719ba9..0e1c3eda 100644 --- a/docs/CallSpeakStarted.md +++ b/docs/CallSpeakStarted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallSpeakStartedPayload**](CallSpeakStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallSpeakStartedPayload**](CallSpeakStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_SPEAK_STARTED | "call.speak.started" +| Name | Value | +|---- | -----| +| CALL_SPEAK_STARTED | "call.speak.started" | diff --git a/docs/CallSpeakStartedEvent.md b/docs/CallSpeakStartedEvent.md index bff420f9..cc2f0e31 100644 --- a/docs/CallSpeakStartedEvent.md +++ b/docs/CallSpeakStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallSpeakStarted**](CallSpeakStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallSpeakStarted**](CallSpeakStarted.md) | | [optional] | diff --git a/docs/CallSpeakStartedPayload.md b/docs/CallSpeakStartedPayload.md index db521697..72bb7060 100644 --- a/docs/CallSpeakStartedPayload.md +++ b/docs/CallSpeakStartedPayload.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | diff --git a/docs/CallStreamingFailed.md b/docs/CallStreamingFailed.md new file mode 100644 index 00000000..50d8b310 --- /dev/null +++ b/docs/CallStreamingFailed.md @@ -0,0 +1,33 @@ + + +# CallStreamingFailed + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallStreamingFailedPayload**](CallStreamingFailedPayload.md) | | [optional] | + + + +## Enum: RecordTypeEnum + +| Name | Value | +|---- | -----| +| EVENT | "event" | + + + +## Enum: EventTypeEnum + +| Name | Value | +|---- | -----| +| STREAMING_FAILED | "streaming.failed" | + + + diff --git a/docs/CallStreamingFailedEvent.md b/docs/CallStreamingFailedEvent.md new file mode 100644 index 00000000..2670a541 --- /dev/null +++ b/docs/CallStreamingFailedEvent.md @@ -0,0 +1,13 @@ + + +# CallStreamingFailedEvent + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallStreamingFailed**](CallStreamingFailed.md) | | [optional] | + + + diff --git a/docs/CallStreamingFailedPayload.md b/docs/CallStreamingFailedPayload.md new file mode 100644 index 00000000..fdaceeab --- /dev/null +++ b/docs/CallStreamingFailedPayload.md @@ -0,0 +1,30 @@ + + +# CallStreamingFailedPayload + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**failureReason** | **String** | A short description explaning why the media streaming failed. | [optional] | +|**streamId** | **UUID** | Identifies the streaming. | [optional] | +|**streamParams** | [**CallStreamingFailedPayloadStreamParams**](CallStreamingFailedPayloadStreamParams.md) | | [optional] | +|**streamType** | [**StreamTypeEnum**](#StreamTypeEnum) | The type of stream connection the stream is performing. | [optional] | + + + +## Enum: StreamTypeEnum + +| Name | Value | +|---- | -----| +| WEBSOCKET | "websocket" | +| DIALOGFLOW | "dialogflow" | + + + diff --git a/docs/CallStreamingFailedPayloadStreamParams.md b/docs/CallStreamingFailedPayloadStreamParams.md new file mode 100644 index 00000000..42512d16 --- /dev/null +++ b/docs/CallStreamingFailedPayloadStreamParams.md @@ -0,0 +1,25 @@ + + +# CallStreamingFailedPayloadStreamParams + +Streaming parameters as they were originally given to the Call Control API. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**streamUrl** | **String** | The destination WebSocket address where the stream is going to be delivered. | [optional] | +|**track** | [**TrackEnum**](#TrackEnum) | Specifies which track should be streamed. | [optional] | + + + +## Enum: TrackEnum + +| Name | Value | +|---- | -----| +| INBOUND_TRACK | "inbound_track" | +| OUTBOUND_TRACK | "outbound_track" | +| BOTH_TRACKS | "both_tracks" | + + + diff --git a/docs/CallStreamingStarted.md b/docs/CallStreamingStarted.md index b546410f..58fbf46b 100644 --- a/docs/CallStreamingStarted.md +++ b/docs/CallStreamingStarted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallStreamingStartedPayload**](CallStreamingStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallStreamingStartedPayload**](CallStreamingStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -STREAMING_STARTED | "streaming.started" +| Name | Value | +|---- | -----| +| STREAMING_STARTED | "streaming.started" | diff --git a/docs/CallStreamingStartedEvent.md b/docs/CallStreamingStartedEvent.md index 524c7a36..8b955bda 100644 --- a/docs/CallStreamingStartedEvent.md +++ b/docs/CallStreamingStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallStreamingStarted**](CallStreamingStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallStreamingStarted**](CallStreamingStarted.md) | | [optional] | diff --git a/docs/CallStreamingStartedPayload.md b/docs/CallStreamingStartedPayload.md index 910d5624..4027f798 100644 --- a/docs/CallStreamingStartedPayload.md +++ b/docs/CallStreamingStartedPayload.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**streamUrl** | **String** | Destination WebSocket address where the stream is going to be delivered. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**streamUrl** | **String** | Destination WebSocket address where the stream is going to be delivered. | [optional] | diff --git a/docs/CallStreamingStopped.md b/docs/CallStreamingStopped.md index f98accdd..6f7899c2 100644 --- a/docs/CallStreamingStopped.md +++ b/docs/CallStreamingStopped.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CallStreamingStartedPayload**](CallStreamingStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CallStreamingStartedPayload**](CallStreamingStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -STREAMING_STOPPED | "streaming.stopped" +| Name | Value | +|---- | -----| +| STREAMING_STOPPED | "streaming.stopped" | diff --git a/docs/CallStreamingStoppedEvent.md b/docs/CallStreamingStoppedEvent.md index 6ea90ae3..f90e339f 100644 --- a/docs/CallStreamingStoppedEvent.md +++ b/docs/CallStreamingStoppedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CallStreamingStopped**](CallStreamingStopped.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CallStreamingStopped**](CallStreamingStopped.md) | | [optional] | diff --git a/docs/CallbackWebhookMeta.md b/docs/CallbackWebhookMeta.md index 6d52eca2..9861cf31 100644 --- a/docs/CallbackWebhookMeta.md +++ b/docs/CallbackWebhookMeta.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attempt** | **Integer** | The number of times the callback webhook has been attempted. | [optional] -**deliveredTo** | **String** | The URL that the callback webhook was delivered to. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attempt** | **Integer** | The number of times the callback webhook has been attempted. | [optional] | +|**deliveredTo** | **String** | The URL that the callback webhook was delivered to. | [optional] | diff --git a/docs/CallerName.md b/docs/CallerName.md index 2ee38111..764ac7f6 100644 --- a/docs/CallerName.md +++ b/docs/CallerName.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callerName** | **String** | The name of the requested phone number's owner as per the CNAM database | [optional] -**errorCode** | **String** | A caller-name lookup specific error code, expressed as a stringified 5-digit integer | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callerName** | **String** | The name of the requested phone number's owner as per the CNAM database | [optional] | +|**errorCode** | **String** | A caller-name lookup specific error code, expressed as a stringified 5-digit integer | [optional] | diff --git a/docs/CancelPortingOrder200Response.md b/docs/CancelPortingOrder200Response.md new file mode 100644 index 00000000..fbaceac6 --- /dev/null +++ b/docs/CancelPortingOrder200Response.md @@ -0,0 +1,14 @@ + + +# CancelPortingOrder200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortingOrder**](PortingOrder.md) | | [optional] | +|**meta** | [**UpdatePortingOrder200ResponseMeta**](UpdatePortingOrder200ResponseMeta.md) | | [optional] | + + + diff --git a/docs/Carrier.md b/docs/Carrier.md index 17729993..349c245f 100644 --- a/docs/Carrier.md +++ b/docs/Carrier.md @@ -5,32 +5,32 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobileCountryCode** | **String** | Region code that matches the specific country calling code if the requested phone number type is mobile | [optional] -**mobileNetworkCode** | **String** | National destination code (NDC), with a 0 prefix, if an NDC is found and the requested phone number type is mobile | [optional] -**name** | **String** | SPID (Service Provider ID) name, if the requested phone number has been ported; otherwise, the name of carrier who owns the phone number block | [optional] -**type** | [**TypeEnum**](#TypeEnum) | A phone number type that identifies the type of service associated with the requested phone number | [optional] -**errorCode** | **String** | Unused | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mobileCountryCode** | **String** | Region code that matches the specific country calling code if the requested phone number type is mobile | [optional] | +|**mobileNetworkCode** | **String** | National destination code (NDC), with a 0 prefix, if an NDC is found and the requested phone number type is mobile | [optional] | +|**name** | **String** | SPID (Service Provider ID) name, if the requested phone number has been ported; otherwise, the name of carrier who owns the phone number block | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | A phone number type that identifies the type of service associated with the requested phone number | [optional] | +|**errorCode** | **String** | Unused | [optional] | ## Enum: TypeEnum -Name | Value ----- | ----- -FIXED_LINE | "fixed line" -MOBILE | "mobile" -VOIP | "voip" -FIXED_LINE_OR_MOBILE | "fixed line or mobile" -TOLL_FREE | "toll free" -PREMIUM_RATE | "premium rate" -SHARED_COST | "shared cost" -PERSONAL_NUMBER | "personal number" -PAGER | "pager" -UAN | "uan" -VOICEMAIL | "voicemail" -UNKNOWN | "unknown" +| Name | Value | +|---- | -----| +| FIXED_LINE | "fixed line" | +| MOBILE | "mobile" | +| VOIP | "voip" | +| FIXED_LINE_OR_MOBILE | "fixed line or mobile" | +| TOLL_FREE | "toll free" | +| PREMIUM_RATE | "premium rate" | +| SHARED_COST | "shared cost" | +| PERSONAL_NUMBER | "personal number" | +| PAGER | "pager" | +| UAN | "uan" | +| VOICEMAIL | "voicemail" | +| UNKNOWN | "unknown" | diff --git a/docs/CdrGetSyncUsageReportResponse.md b/docs/CdrGetSyncUsageReportResponse.md index 52359574..e82fa487 100644 --- a/docs/CdrGetSyncUsageReportResponse.md +++ b/docs/CdrGetSyncUsageReportResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CdrUsageReportResponse**](CdrUsageReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CdrUsageReportResponse**](CdrUsageReportResponse.md) | | [optional] | diff --git a/docs/CdrUsageReportResponse.md b/docs/CdrUsageReportResponse.md index c641ad00..d1c47b63 100644 --- a/docs/CdrUsageReportResponse.md +++ b/docs/CdrUsageReportResponse.md @@ -5,53 +5,53 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource | [optional] -**startTime** | **OffsetDateTime** | | [optional] -**endTime** | **OffsetDateTime** | | [optional] -**connections** | **List<Long>** | | [optional] -**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**reportUrl** | **String** | | [optional] -**result** | **Object** | | [optional] -**createdAt** | **OffsetDateTime** | | [optional] -**updatedAt** | **OffsetDateTime** | | [optional] -**recordType** | **String** | | [optional] -**productBreakdown** | [**ProductBreakdownEnum**](#ProductBreakdownEnum) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource | [optional] | +|**startTime** | **OffsetDateTime** | | [optional] | +|**endTime** | **OffsetDateTime** | | [optional] | +|**connections** | **List<Long>** | | [optional] | +|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**reportUrl** | **String** | | [optional] | +|**result** | **Object** | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | [optional] | +|**recordType** | **String** | | [optional] | +|**productBreakdown** | [**ProductBreakdownEnum**](#ProductBreakdownEnum) | | [optional] | ## Enum: AggregationTypeEnum -Name | Value ----- | ----- -NO_AGGREGATION | "NO_AGGREGATION" -CONNECTION | "CONNECTION" -TAG | "TAG" -BILLING_GROUP | "BILLING_GROUP" +| Name | Value | +|---- | -----| +| NO_AGGREGATION | "NO_AGGREGATION" | +| CONNECTION | "CONNECTION" | +| TAG | "TAG" | +| BILLING_GROUP | "BILLING_GROUP" | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "PENDING" -COMPLETE | "COMPLETE" -FAILED | "FAILED" -EXPIRED | "EXPIRED" +| Name | Value | +|---- | -----| +| PENDING | "PENDING" | +| COMPLETE | "COMPLETE" | +| FAILED | "FAILED" | +| EXPIRED | "EXPIRED" | ## Enum: ProductBreakdownEnum -Name | Value ----- | ----- -NO_BREAKDOWN | "NO_BREAKDOWN" -DID_VS_TOLL_FREE | "DID_VS_TOLL_FREE" -COUNTRY | "COUNTRY" -DID_VS_TOLL_FREE_PER_COUNTRY | "DID_VS_TOLL_FREE_PER_COUNTRY" +| Name | Value | +|---- | -----| +| NO_BREAKDOWN | "NO_BREAKDOWN" | +| DID_VS_TOLL_FREE | "DID_VS_TOLL_FREE" | +| COUNTRY | "COUNTRY" | +| DID_VS_TOLL_FREE_PER_COUNTRY | "DID_VS_TOLL_FREE_PER_COUNTRY" | diff --git a/docs/ChannelZonesApi.md b/docs/ChannelZonesApi.md index 320ccdb9..16c268c2 100644 --- a/docs/ChannelZonesApi.md +++ b/docs/ChannelZonesApi.md @@ -43,7 +43,7 @@ public class Example { ChannelZonesApi apiInstance = new ChannelZonesApi(defaultClient); String channelZoneId = "channelZoneId_example"; // String | Channel zone identifier - ListChannelZonesByPhoneNumber body = new ListChannelZonesByPhoneNumber(); // ListChannelZonesByPhoneNumber | + AssignPhoneNumberRequest body = new AssignPhoneNumberRequest(); // AssignPhoneNumberRequest | Phone number to assign to the channel zone. The phone number should be in E.164 format. try { GcbPhoneNumber result = apiInstance.assignPhoneNumber(channelZoneId, body); System.out.println(result); @@ -64,7 +64,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **channelZoneId** | **String**| Channel zone identifier | - **body** | [**ListChannelZonesByPhoneNumber**](ListChannelZonesByPhoneNumber.md)| | + **body** | [**AssignPhoneNumberRequest**](AssignPhoneNumberRequest.md)| Phone number to assign to the channel zone. The phone number should be in E.164 format. | ### Return type @@ -159,7 +159,7 @@ Name | Type | Description | Notes ## getChannelZones -> GetGcbChannelZonesRequestResponse getChannelZones(pageNumber, pageSize) +> GetChannelZones200Response getChannelZones(pageNumber, pageSize) Get list of channel zones @@ -189,7 +189,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - GetGcbChannelZonesRequestResponse result = apiInstance.getChannelZones(pageNumber, pageSize); + GetChannelZones200Response result = apiInstance.getChannelZones(pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChannelZonesApi#getChannelZones"); @@ -212,7 +212,7 @@ Name | Type | Description | Notes ### Return type -[**GetGcbChannelZonesRequestResponse**](GetGcbChannelZonesRequestResponse.md) +[**GetChannelZones200Response**](GetChannelZones200Response.md) ### Authorization @@ -231,7 +231,7 @@ Name | Type | Description | Notes ## getPhoneNumbers -> GetGcbPhoneNumbersRequestResponse getPhoneNumbers(channelZoneId, pageNumber, pageSize) +> GetPhoneNumbers200Response getPhoneNumbers(channelZoneId, pageNumber, pageSize) Get the list of phone numbers assigned to a channel zone @@ -262,7 +262,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - GetGcbPhoneNumbersRequestResponse result = apiInstance.getPhoneNumbers(channelZoneId, pageNumber, pageSize); + GetPhoneNumbers200Response result = apiInstance.getPhoneNumbers(channelZoneId, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ChannelZonesApi#getPhoneNumbers"); @@ -286,7 +286,7 @@ Name | Type | Description | Notes ### Return type -[**GetGcbPhoneNumbersRequestResponse**](GetGcbPhoneNumbersRequestResponse.md) +[**GetPhoneNumbers200Response**](GetPhoneNumbers200Response.md) ### Authorization @@ -333,7 +333,7 @@ public class Example { ChannelZonesApi apiInstance = new ChannelZonesApi(defaultClient); String channelZoneId = "channelZoneId_example"; // String | Channel zone identifier - UpdateChannelZone body = new UpdateChannelZone(); // UpdateChannelZone | + PatchGroupRequest body = new PatchGroupRequest(); // PatchGroupRequest | Quantity of reserved channels try { GcbChannelZone result = apiInstance.patchGroup(channelZoneId, body); System.out.println(result); @@ -354,7 +354,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **channelZoneId** | **String**| Channel zone identifier | - **body** | [**UpdateChannelZone**](UpdateChannelZone.md)| | + **body** | [**PatchGroupRequest**](PatchGroupRequest.md)| Quantity of reserved channels | ### Return type diff --git a/docs/CheckContact.md b/docs/CheckContact.md index d76b360a..29ec65b8 100644 --- a/docs/CheckContact.md +++ b/docs/CheckContact.md @@ -3,32 +3,33 @@ # CheckContact + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**input** | **String** | The value you sent in the contacts field of the JSON request. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Status of the user. | [optional] -**id** | **String** | WhatsApp user identifier that can be used in other API calls. Only returned if the status is valid. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**input** | **String** | The value you sent in the contacts field of the JSON request. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of the user. | [optional] | +|**id** | **String** | WhatsApp user identifier that can be used in other API calls. Only returned if the status is valid. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -WHATSAPP_CONTACT | "whatsapp_contact" +| Name | Value | +|---- | -----| +| WHATSAPP_CONTACT | "whatsapp_contact" | ## Enum: StatusEnum -Name | Value ----- | ----- -PROCESSING | "processing" -VALID | "valid" -INVALID | "invalid" +| Name | Value | +|---- | -----| +| PROCESSING | "processing" | +| VALID | "valid" | +| INVALID | "invalid" | diff --git a/docs/CheckContactRequestBody.md b/docs/CheckContactRequestBody.md index 8d0a3c9d..b69ed354 100644 --- a/docs/CheckContactRequestBody.md +++ b/docs/CheckContactRequestBody.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**whatsappUserId** | **String** | The sender's WhatsApp ID. | -**blocking** | [**BlockingEnum**](#BlockingEnum) | Blocking determines whether the request should wait for the processing to complete (synchronous) or not (asynchronous). | [optional] -**contacts** | **List<String>** | Array of contact phone numbers. The numbers can be in any standard telephone number format. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**whatsappUserId** | **String** | The sender's WhatsApp ID. | | +|**blocking** | [**BlockingEnum**](#BlockingEnum) | Blocking determines whether the request should wait for the processing to complete (synchronous) or not (asynchronous). | [optional] | +|**contacts** | **List<String>** | Array of contact phone numbers. The numbers can be in any standard telephone number format. | | ## Enum: BlockingEnum -Name | Value ----- | ----- -NO_WAIT | "no_wait" -WAIT | "wait" +| Name | Value | +|---- | -----| +| NO_WAIT | "no_wait" | +| WAIT | "wait" | diff --git a/docs/CheckContactResponse.md b/docs/CheckContactResponse.md index a1b85ad1..9be92116 100644 --- a/docs/CheckContactResponse.md +++ b/docs/CheckContactResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<CheckContact>**](CheckContact.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CheckContact>**](CheckContact.md) | | [optional] | diff --git a/docs/ClientStateUpdateRequest.md b/docs/ClientStateUpdateRequest.md index 3410ca6e..c90b8edf 100644 --- a/docs/ClientStateUpdateRequest.md +++ b/docs/ClientStateUpdateRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | | diff --git a/docs/CnamListing.md b/docs/CnamListing.md index f0a5b33f..0c6afb90 100644 --- a/docs/CnamListing.md +++ b/docs/CnamListing.md @@ -6,10 +6,10 @@ The CNAM listing settings for a phone number. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cnamListingEnabled** | **Boolean** | Enables CNAM listings for this number. Requires cnam_listing_details to also be set. | [optional] -**cnamListingDetails** | **String** | The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set to true. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cnamListingEnabled** | **Boolean** | Enables CNAM listings for this number. Requires cnam_listing_details to also be set. | [optional] | +|**cnamListingDetails** | **String** | The CNAM listing details for this number. Must be alphanumeric characters or spaces with a maximum length of 15. Requires cnam_listing_enabled to also be set to true. | [optional] | diff --git a/docs/Comment.md b/docs/Comment.md index dd930da6..56d61a5e 100644 --- a/docs/Comment.md +++ b/docs/Comment.md @@ -5,36 +5,36 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**body** | **String** | | [optional] -**commenter** | **String** | | [optional] [readonly] -**commenterType** | [**CommenterTypeEnum**](#CommenterTypeEnum) | | [optional] [readonly] -**commentRecordType** | [**CommentRecordTypeEnum**](#CommentRecordTypeEnum) | | [optional] -**commentRecordId** | **UUID** | | [optional] -**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the comment was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the comment was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**body** | **String** | | [optional] | +|**commenter** | **String** | | [optional] [readonly] | +|**commenterType** | [**CommenterTypeEnum**](#CommenterTypeEnum) | | [optional] [readonly] | +|**commentRecordType** | [**CommentRecordTypeEnum**](#CommentRecordTypeEnum) | | [optional] | +|**commentRecordId** | **UUID** | | [optional] | +|**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the comment was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the comment was updated. | [optional] [readonly] | ## Enum: CommenterTypeEnum -Name | Value ----- | ----- -ADMIN | "admin" -USER | "user" +| Name | Value | +|---- | -----| +| ADMIN | "admin" | +| USER | "user" | ## Enum: CommentRecordTypeEnum -Name | Value ----- | ----- -NUMBER_ORDER | "number_order" -SUB_NUMBER_ORDER | "sub_number_order" -NUMBER_ORDER_PHONE_NUMBER | "number_order_phone_number" +| Name | Value | +|---- | -----| +| NUMBER_ORDER | "number_order" | +| SUB_NUMBER_ORDER | "sub_number_order" | +| NUMBER_ORDER_PHONE_NUMBER | "number_order_phone_number" | diff --git a/docs/CompleteOTAUpdate.md b/docs/CompleteOTAUpdate.md index b445dd89..f259476b 100644 --- a/docs/CompleteOTAUpdate.md +++ b/docs/CompleteOTAUpdate.md @@ -6,34 +6,34 @@ This object represents an Over the Air (OTA) update request. It allows tracking ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | Represents the type of the operation requested. This will relate directly to the source of the request. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**settings** | [**CompleteOTAUpdateSettings**](CompleteOTAUpdateSettings.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Represents the type of the operation requested. This will relate directly to the source of the request. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**settings** | [**CompleteOTAUpdateSettings**](CompleteOTAUpdateSettings.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | ## Enum: TypeEnum -Name | Value ----- | ----- -SIM_CARD_NETWORK_PREFERENCES | "sim_card_network_preferences" +| Name | Value | +|---- | -----| +| SIM_CARD_NETWORK_PREFERENCES | "sim_card_network_preferences" | ## Enum: StatusEnum -Name | Value ----- | ----- -IN_PROGRESS | "in-progress" -COMPLETED | "completed" -FAILED | "failed" +| Name | Value | +|---- | -----| +| IN_PROGRESS | "in-progress" | +| COMPLETED | "completed" | +| FAILED | "failed" | diff --git a/docs/CompleteOTAUpdateSettings.md b/docs/CompleteOTAUpdateSettings.md index 8585aca6..a7bcd960 100644 --- a/docs/CompleteOTAUpdateSettings.md +++ b/docs/CompleteOTAUpdateSettings.md @@ -6,9 +6,9 @@ A JSON object representation of the operation. The information present here will ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesResponse>**](MobileOperatorNetworkPreferencesResponse.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesResponse>**](MobileOperatorNetworkPreferencesResponse.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] | diff --git a/docs/CompositionCompleted.md b/docs/CompositionCompleted.md index 02ba1b34..5fb76ffe 100644 --- a/docs/CompositionCompleted.md +++ b/docs/CompositionCompleted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Uniquely identify the event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**CompositionCompletedPayload**](CompositionCompletedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Uniquely identify the event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**CompositionCompletedPayload**](CompositionCompletedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -VIDEO_ROOM_COMPOSITION_COMPLETED | "video.room.composition.completed" +| Name | Value | +|---- | -----| +| VIDEO_ROOM_COMPOSITION_COMPLETED | "video.room.composition.completed" | diff --git a/docs/CompositionCompletedEvent.md b/docs/CompositionCompletedEvent.md index fe254b41..9b00ad21 100644 --- a/docs/CompositionCompletedEvent.md +++ b/docs/CompositionCompletedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CompositionCompleted**](CompositionCompleted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CompositionCompleted**](CompositionCompleted.md) | | [optional] | diff --git a/docs/CompositionCompletedPayload.md b/docs/CompositionCompletedPayload.md index b0b3b937..402d96ef 100644 --- a/docs/CompositionCompletedPayload.md +++ b/docs/CompositionCompletedPayload.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**compositionId** | **UUID** | Composition ID that identifies the room composition. | [optional] -**downloadUrl** | **String** | Url to download the room composition. | [optional] -**durationSecs** | **Integer** | Room composition duration in seconds. | [optional] -**format** | **String** | Format of the room composition. | [optional] -**resolution** | **String** | Format of the room composition. | [optional] -**roomId** | **UUID** | Room ID associated with the room composition. | [optional] -**sessionId** | **UUID** | Session ID associated with the room composition. | [optional] -**sizeMb** | **Float** | Room composition size in MB. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**compositionId** | **UUID** | Composition ID that identifies the room composition. | [optional] | +|**downloadUrl** | **String** | Url to download the room composition. | [optional] | +|**durationSecs** | **Integer** | Room composition duration in seconds. | [optional] | +|**format** | **String** | Format of the room composition. | [optional] | +|**resolution** | **String** | Format of the room composition. | [optional] | +|**roomId** | **UUID** | Room ID associated with the room composition. | [optional] | +|**sessionId** | **UUID** | Session ID associated with the room composition. | [optional] | +|**sizeMb** | **Float** | Room composition size in MB. | [optional] | diff --git a/docs/Conference.md b/docs/Conference.md index 87f3fc90..33f93caa 100644 --- a/docs/Conference.md +++ b/docs/Conference.md @@ -5,48 +5,48 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**id** | **String** | Uniquely identifies the conference | -**name** | **String** | Name of the conference | -**createdAt** | **String** | ISO 8601 formatted date of when the conference was created | -**expiresAt** | **String** | ISO 8601 formatted date of when the conference will expire | -**updatedAt** | **String** | ISO 8601 formatted date of when the conference was last updated | [optional] -**region** | **String** | Region where the conference is hosted | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Status of the conference | [optional] -**endReason** | [**EndReasonEnum**](#EndReasonEnum) | Reason why the conference ended | [optional] -**endedBy** | [**ConferenceEndedBy**](ConferenceEndedBy.md) | | [optional] -**connectionId** | **String** | Identifies the connection (Call Control App) associated with the conference | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**id** | **String** | Uniquely identifies the conference | | +|**name** | **String** | Name of the conference | | +|**createdAt** | **String** | ISO 8601 formatted date of when the conference was created | | +|**expiresAt** | **String** | ISO 8601 formatted date of when the conference will expire | | +|**updatedAt** | **String** | ISO 8601 formatted date of when the conference was last updated | [optional] | +|**region** | **String** | Region where the conference is hosted | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of the conference | [optional] | +|**endReason** | [**EndReasonEnum**](#EndReasonEnum) | Reason why the conference ended | [optional] | +|**endedBy** | [**ConferenceEndedBy**](ConferenceEndedBy.md) | | [optional] | +|**connectionId** | **String** | Identifies the connection (Call Control App) associated with the conference | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -CONFERENCE | "conference" +| Name | Value | +|---- | -----| +| CONFERENCE | "conference" | ## Enum: StatusEnum -Name | Value ----- | ----- -INIT | "init" -IN_PROGRESS | "in_progress" -COMPLETED | "completed" +| Name | Value | +|---- | -----| +| INIT | "init" | +| IN_PROGRESS | "in_progress" | +| COMPLETED | "completed" | ## Enum: EndReasonEnum -Name | Value ----- | ----- -ALL_LEFT | "all_left" -ENDED_VIA_API | "ended_via_api" -HOST_LEFT | "host_left" -TIME_EXCEEDED | "time_exceeded" +| Name | Value | +|---- | -----| +| ALL_LEFT | "all_left" | +| ENDED_VIA_API | "ended_via_api" | +| HOST_LEFT | "host_left" | +| TIME_EXCEEDED | "time_exceeded" | diff --git a/docs/ConferenceCallRequest.md b/docs/ConferenceCallRequest.md index 63b8b0c3..be2059a0 100644 --- a/docs/ConferenceCallRequest.md +++ b/docs/ConferenceCallRequest.md @@ -5,31 +5,31 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique identifier and token for controlling the call | -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] -**from** | **String** | The `from` number to be used as the caller id presented to the destination (`to` number). | -**hold** | **Boolean** | Whether the participant should be put on hold immediately after joining the conference. | [optional] -**holdAudioUrl** | **String** | The URL of a file to be played to the participant when they are put on hold after joining the conference. If media_name is also supplied, this is currently ignored. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] -**holdMediaName** | **String** | The media_name of a file to be played to the participant when they are put on hold after joining the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] -**mute** | **Boolean** | Whether the participant should be muted immediately after joining the conference. | [optional] -**startConferenceOnEnter** | **Boolean** | Whether the conference should be started after the participant joins the conference. | [optional] -**supervisorRole** | [**SupervisorRoleEnum**](#SupervisorRoleEnum) | Sets the joining participant as a supervisor for the conference. A conference can have multiple supervisors. \"barge\" means the supervisor enters the conference as a normal participant. This is the same as \"none\". \"monitor\" means the supervisor is muted but can hear all participants. \"whisper\" means that only the specified \"whisper_call_control_ids\" can hear the supervisor. Defaults to \"none\". | [optional] -**to** | **String** | The DID or SIP URI to dial out and bridge to the given call. | -**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the joining supervisor can whisper to. If none provided, the supervisor will join the conference as a monitoring participant only. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique identifier and token for controlling the call | | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] | +|**from** | **String** | The `from` number to be used as the caller id presented to the destination (`to` number). | | +|**hold** | **Boolean** | Whether the participant should be put on hold immediately after joining the conference. | [optional] | +|**holdAudioUrl** | **String** | The URL of a file to be played to the participant when they are put on hold after joining the conference. If media_name is also supplied, this is currently ignored. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] | +|**holdMediaName** | **String** | The media_name of a file to be played to the participant when they are put on hold after joining the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] | +|**mute** | **Boolean** | Whether the participant should be muted immediately after joining the conference. | [optional] | +|**startConferenceOnEnter** | **Boolean** | Whether the conference should be started after the participant joins the conference. | [optional] | +|**supervisorRole** | [**SupervisorRoleEnum**](#SupervisorRoleEnum) | Sets the joining participant as a supervisor for the conference. A conference can have multiple supervisors. \"barge\" means the supervisor enters the conference as a normal participant. This is the same as \"none\". \"monitor\" means the supervisor is muted but can hear all participants. \"whisper\" means that only the specified \"whisper_call_control_ids\" can hear the supervisor. Defaults to \"none\". | [optional] | +|**to** | **String** | The DID or SIP URI to dial out and bridge to the given call. | | +|**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the joining supervisor can whisper to. If none provided, the supervisor will join the conference as a monitoring participant only. | [optional] | ## Enum: SupervisorRoleEnum -Name | Value ----- | ----- -BARGE | "barge" -MONITOR | "monitor" -NONE | "none" -WHISPER | "whisper" +| Name | Value | +|---- | -----| +| BARGE | "barge" | +| MONITOR | "monitor" | +| NONE | "none" | +| WHISPER | "whisper" | diff --git a/docs/ConferenceCommandResponse.md b/docs/ConferenceCommandResponse.md index 86e0babc..72a827fc 100644 --- a/docs/ConferenceCommandResponse.md +++ b/docs/ConferenceCommandResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceCommandResult**](ConferenceCommandResult.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceCommandResult**](ConferenceCommandResult.md) | | [optional] | diff --git a/docs/ConferenceCommandResult.md b/docs/ConferenceCommandResult.md index b111edd1..abce7bc9 100644 --- a/docs/ConferenceCommandResult.md +++ b/docs/ConferenceCommandResult.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **String** | | | diff --git a/docs/ConferenceCommandsApi.md b/docs/ConferenceCommandsApi.md index 378eed07..34532aaf 100644 --- a/docs/ConferenceCommandsApi.md +++ b/docs/ConferenceCommandsApi.md @@ -102,8 +102,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -177,8 +177,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -258,7 +258,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **422** | Unprocessable entity | - | @@ -335,7 +335,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **422** | Unprocessable entity | - | @@ -409,8 +409,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -484,8 +484,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -559,8 +559,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -638,8 +638,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -713,8 +713,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -793,8 +793,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -868,8 +868,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -943,8 +943,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -1018,7 +1018,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response upon making a conference command. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **422** | Unprocessable entity | - | @@ -1100,7 +1100,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a conference. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **422** | Unprocessable entity | - | @@ -1188,8 +1188,8 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with a list of conference participants. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | | **422** | Unprocessable entity | - | @@ -1272,7 +1272,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with a list of conferences. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **422** | Unprocessable entity | - | @@ -1344,5 +1344,5 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a conference. | - | -| **404** | Conference does not exist | - | +| **404** | Fax does not exist | - | diff --git a/docs/ConferenceCreated.md b/docs/ConferenceCreated.md index 7036e5da..7b559d21 100644 --- a/docs/ConferenceCreated.md +++ b/docs/ConferenceCreated.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceCreatedPayload**](ConferenceCreatedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceCreatedPayload**](ConferenceCreatedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_CREATED | "conference.created" +| Name | Value | +|---- | -----| +| CONFERENCE_CREATED | "conference.created" | diff --git a/docs/ConferenceCreatedEvent.md b/docs/ConferenceCreatedEvent.md index 8254d35a..d0c5ab70 100644 --- a/docs/ConferenceCreatedEvent.md +++ b/docs/ConferenceCreatedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceCreated**](ConferenceCreated.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceCreated**](ConferenceCreated.md) | | [optional] | diff --git a/docs/ConferenceCreatedPayload.md b/docs/ConferenceCreatedPayload.md index 0817b111..42a117e3 100644 --- a/docs/ConferenceCreatedPayload.md +++ b/docs/ConferenceCreatedPayload.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**conferenceId** | **String** | Conference ID that the participant joined. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**conferenceId** | **String** | Conference ID that the participant joined. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | diff --git a/docs/ConferenceDetailRecord.md b/docs/ConferenceDetailRecord.md index b102f324..8116b401 100644 --- a/docs/ConferenceDetailRecord.md +++ b/docs/ConferenceDetailRecord.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Conference id | [optional] -**name** | **String** | Conference name | [optional] -**userId** | **String** | User id | [optional] -**startedAt** | **OffsetDateTime** | Conference start time | [optional] -**endedAt** | **OffsetDateTime** | Conference end time | [optional] -**expiresAt** | **OffsetDateTime** | Conference expiry time | [optional] -**region** | **String** | Region where the conference is hosted | [optional] -**callLegId** | **String** | Telnyx UUID that identifies the conference call leg | [optional] -**callSessionId** | **String** | Telnyx UUID that identifies with conference call session | [optional] -**connectionId** | **String** | Connection id | [optional] -**callSec** | **Integer** | Duration of the conference call in seconds | [optional] -**participantCount** | **Integer** | Number of participants that joined the conference call | [optional] -**participantCallSec** | **Integer** | Sum of the conference call duration for all participants in seconds | [optional] -**isTelnyxBillable** | **Boolean** | Indicates whether Telnyx billing charges might be applicable | [optional] -**recordType** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Conference id | [optional] | +|**name** | **String** | Conference name | [optional] | +|**userId** | **String** | User id | [optional] | +|**startedAt** | **OffsetDateTime** | Conference start time | [optional] | +|**endedAt** | **OffsetDateTime** | Conference end time | [optional] | +|**expiresAt** | **OffsetDateTime** | Conference expiry time | [optional] | +|**region** | **String** | Region where the conference is hosted | [optional] | +|**callLegId** | **String** | Telnyx UUID that identifies the conference call leg | [optional] | +|**callSessionId** | **String** | Telnyx UUID that identifies with conference call session | [optional] | +|**connectionId** | **String** | Connection id | [optional] | +|**callSec** | **Integer** | Duration of the conference call in seconds | [optional] | +|**participantCount** | **Integer** | Number of participants that joined the conference call | [optional] | +|**participantCallSec** | **Integer** | Sum of the conference call duration for all participants in seconds | [optional] | +|**isTelnyxBillable** | **Boolean** | Indicates whether Telnyx billing charges might be applicable | [optional] | +|**recordType** | **String** | | | diff --git a/docs/ConferenceEnded.md b/docs/ConferenceEnded.md index dda61242..d00f16e3 100644 --- a/docs/ConferenceEnded.md +++ b/docs/ConferenceEnded.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceEndedPayload**](ConferenceEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceEndedPayload**](ConferenceEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_ENDED | "conference.ended" +| Name | Value | +|---- | -----| +| CONFERENCE_ENDED | "conference.ended" | diff --git a/docs/ConferenceEndedBy.md b/docs/ConferenceEndedBy.md index 6bfb4091..8924ea3d 100644 --- a/docs/ConferenceEndedBy.md +++ b/docs/ConferenceEndedBy.md @@ -6,10 +6,10 @@ IDs related to who ended the conference. It is expected for them to all be there ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call Control ID which ended the conference | [optional] -**callSessionId** | **String** | Call Session ID which ended the conference | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call Control ID which ended the conference | [optional] | +|**callSessionId** | **String** | Call Session ID which ended the conference | [optional] | diff --git a/docs/ConferenceEndedEvent.md b/docs/ConferenceEndedEvent.md index db30935f..c7683394 100644 --- a/docs/ConferenceEndedEvent.md +++ b/docs/ConferenceEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceEnded**](ConferenceEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceEnded**](ConferenceEnded.md) | | [optional] | diff --git a/docs/ConferenceEndedPayload.md b/docs/ConferenceEndedPayload.md index d40cbf44..e171c598 100644 --- a/docs/ConferenceEndedPayload.md +++ b/docs/ConferenceEndedPayload.md @@ -5,26 +5,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**conferenceId** | **String** | Conference ID that the participant joined. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**reason** | [**ReasonEnum**](#ReasonEnum) | Reason the conference ended. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**conferenceId** | **String** | Conference ID that the participant joined. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**reason** | [**ReasonEnum**](#ReasonEnum) | Reason the conference ended. | [optional] | ## Enum: ReasonEnum -Name | Value ----- | ----- -ALL_LEFT | "all_left" -HOST_LEFT | "host_left" -TIME_EXCEEDED | "time_exceeded" +| Name | Value | +|---- | -----| +| ALL_LEFT | "all_left" | +| HOST_LEFT | "host_left" | +| TIME_EXCEEDED | "time_exceeded" | diff --git a/docs/ConferenceFloorChangedEvent.md b/docs/ConferenceFloorChangedEvent.md index b6ed1629..88c3ed22 100644 --- a/docs/ConferenceFloorChangedEvent.md +++ b/docs/ConferenceFloorChangedEvent.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceFloorChangedEventPayload**](ConferenceFloorChangedEventPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceFloorChangedEventPayload**](ConferenceFloorChangedEventPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_FLOOR_CHANGED | "conference.floor.changed" +| Name | Value | +|---- | -----| +| CONFERENCE_FLOOR_CHANGED | "conference.floor.changed" | diff --git a/docs/ConferenceFloorChangedEventPayload.md b/docs/ConferenceFloorChangedEventPayload.md index f52a5493..90cff1a4 100644 --- a/docs/ConferenceFloorChangedEventPayload.md +++ b/docs/ConferenceFloorChangedEventPayload.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call Control ID of the new speaker. | [optional] -**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] -**callLegId** | **String** | Call Leg ID of the new speaker. | [optional] -**callSessionId** | **String** | Call Session ID of the new speaker. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**conferenceId** | **String** | Conference ID that had a speaker change event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call Control ID of the new speaker. | [optional] | +|**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] | +|**callLegId** | **String** | Call Leg ID of the new speaker. | [optional] | +|**callSessionId** | **String** | Call Session ID of the new speaker. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**conferenceId** | **String** | Conference ID that had a speaker change event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | diff --git a/docs/ConferenceHoldRequest.md b/docs/ConferenceHoldRequest.md index 62a75d1a..569ab0b7 100644 --- a/docs/ConferenceHoldRequest.md +++ b/docs/ConferenceHoldRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlIds** | **List<String>** | List of unique identifiers and tokens for controlling the call. When empty all participants will be placed on hold. | [optional] -**audioUrl** | **String** | The URL of a file to be played to the participants when they are put on hold. media_name and audio_url cannot be used together in one request. | [optional] -**mediaName** | **String** | The media_name of a file to be played to the participants when they are put on hold. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlIds** | **List<String>** | List of unique identifiers and tokens for controlling the call. When empty all participants will be placed on hold. | [optional] | +|**audioUrl** | **String** | The URL of a file to be played to the participants when they are put on hold. media_name and audio_url cannot be used together in one request. | [optional] | +|**mediaName** | **String** | The media_name of a file to be played to the participants when they are put on hold. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] | diff --git a/docs/ConferenceMuteRequest.md b/docs/ConferenceMuteRequest.md index f730d641..6f97d270 100644 --- a/docs/ConferenceMuteRequest.md +++ b/docs/ConferenceMuteRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlIds** | **List<String>** | Array of unique identifiers and tokens for controlling the call. When empty all participants will be muted. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlIds** | **List<String>** | Array of unique identifiers and tokens for controlling the call. When empty all participants will be muted. | [optional] | diff --git a/docs/ConferenceParticipantDetailRecord.md b/docs/ConferenceParticipantDetailRecord.md index 269be041..4d0c43b8 100644 --- a/docs/ConferenceParticipantDetailRecord.md +++ b/docs/ConferenceParticipantDetailRecord.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Participant id | [optional] -**userId** | **String** | User id | [optional] -**conferenceId** | **String** | Conference id | [optional] -**joinedAt** | **OffsetDateTime** | Participant join time | [optional] -**leftAt** | **OffsetDateTime** | Participant leave time | [optional] -**destinationNumber** | **String** | Number called by the participant to join the conference | [optional] -**originatingNumber** | **String** | Participant origin number used in the conference call | [optional] -**callLegId** | **String** | Telnyx UUID that identifies the conference call leg | [optional] -**callSessionId** | **String** | Telnyx UUID that identifies with conference call session | [optional] -**callSec** | **Integer** | Duration of the conference call in seconds | [optional] -**billedSec** | **Integer** | Duration of the conference call for billing purposes | [optional] -**isTelnyxBillable** | **Boolean** | Indicates whether Telnyx billing charges might be applicable | [optional] -**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] -**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing cost | [optional] -**cost** | **String** | Currency amount for Telnyx billing cost | [optional] -**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] -**recordType** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Participant id | [optional] | +|**userId** | **String** | User id | [optional] | +|**conferenceId** | **String** | Conference id | [optional] | +|**joinedAt** | **OffsetDateTime** | Participant join time | [optional] | +|**leftAt** | **OffsetDateTime** | Participant leave time | [optional] | +|**destinationNumber** | **String** | Number called by the participant to join the conference | [optional] | +|**originatingNumber** | **String** | Participant origin number used in the conference call | [optional] | +|**callLegId** | **String** | Telnyx UUID that identifies the conference call leg | [optional] | +|**callSessionId** | **String** | Telnyx UUID that identifies with conference call session | [optional] | +|**callSec** | **Integer** | Duration of the conference call in seconds | [optional] | +|**billedSec** | **Integer** | Duration of the conference call for billing purposes | [optional] | +|**isTelnyxBillable** | **Boolean** | Indicates whether Telnyx billing charges might be applicable | [optional] | +|**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] | +|**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing cost | [optional] | +|**cost** | **String** | Currency amount for Telnyx billing cost | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] | +|**recordType** | **String** | | | diff --git a/docs/ConferenceParticipantJoined.md b/docs/ConferenceParticipantJoined.md index 6411efa6..2c465ddf 100644 --- a/docs/ConferenceParticipantJoined.md +++ b/docs/ConferenceParticipantJoined.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**ConferenceParticipantJoinedPayload**](ConferenceParticipantJoinedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**ConferenceParticipantJoinedPayload**](ConferenceParticipantJoinedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PARTICIPANT_JOINED | "conference.participant.joined" +| Name | Value | +|---- | -----| +| CONFERENCE_PARTICIPANT_JOINED | "conference.participant.joined" | diff --git a/docs/ConferenceParticipantJoinedEvent.md b/docs/ConferenceParticipantJoinedEvent.md index 289e77c5..063b46dd 100644 --- a/docs/ConferenceParticipantJoinedEvent.md +++ b/docs/ConferenceParticipantJoinedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceParticipantJoined**](ConferenceParticipantJoined.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceParticipantJoined**](ConferenceParticipantJoined.md) | | [optional] | diff --git a/docs/ConferenceParticipantJoinedPayload.md b/docs/ConferenceParticipantJoinedPayload.md index bc953bf5..dd5b8a9a 100644 --- a/docs/ConferenceParticipantJoinedPayload.md +++ b/docs/ConferenceParticipantJoinedPayload.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**conferenceId** | **String** | Conference ID that the participant joined. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Call ID used to issue commands via Call Control API. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**conferenceId** | **String** | Conference ID that the participant joined. | [optional] | diff --git a/docs/ConferenceParticipantLeft.md b/docs/ConferenceParticipantLeft.md index 174f1b2d..f68868cb 100644 --- a/docs/ConferenceParticipantLeft.md +++ b/docs/ConferenceParticipantLeft.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**ConferenceParticipantJoinedPayload**](ConferenceParticipantJoinedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**ConferenceParticipantJoinedPayload**](ConferenceParticipantJoinedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PARTICIPANT_LEFT | "conference.participant.left" +| Name | Value | +|---- | -----| +| CONFERENCE_PARTICIPANT_LEFT | "conference.participant.left" | diff --git a/docs/ConferenceParticipantLeftEvent.md b/docs/ConferenceParticipantLeftEvent.md index 6bc19a53..861c37b1 100644 --- a/docs/ConferenceParticipantLeftEvent.md +++ b/docs/ConferenceParticipantLeftEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceParticipantLeft**](ConferenceParticipantLeft.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceParticipantLeft**](ConferenceParticipantLeft.md) | | [optional] | diff --git a/docs/ConferenceParticipantPlaybackEnded.md b/docs/ConferenceParticipantPlaybackEnded.md index 904fa731..832e4b16 100644 --- a/docs/ConferenceParticipantPlaybackEnded.md +++ b/docs/ConferenceParticipantPlaybackEnded.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceParticipantPlaybackEndedPayload**](ConferenceParticipantPlaybackEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceParticipantPlaybackEndedPayload**](ConferenceParticipantPlaybackEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PARTICIPANT_PLAYBACK_ENDED | "conference.participant.playback.ended" +| Name | Value | +|---- | -----| +| CONFERENCE_PARTICIPANT_PLAYBACK_ENDED | "conference.participant.playback.ended" | diff --git a/docs/ConferenceParticipantPlaybackEndedEvent.md b/docs/ConferenceParticipantPlaybackEndedEvent.md index d57b333c..e8df29df 100644 --- a/docs/ConferenceParticipantPlaybackEndedEvent.md +++ b/docs/ConferenceParticipantPlaybackEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceParticipantPlaybackEnded**](ConferenceParticipantPlaybackEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceParticipantPlaybackEnded**](ConferenceParticipantPlaybackEnded.md) | | [optional] | diff --git a/docs/ConferenceParticipantPlaybackEndedPayload.md b/docs/ConferenceParticipantPlaybackEndedPayload.md index d5607622..6e48d4f9 100644 --- a/docs/ConferenceParticipantPlaybackEndedPayload.md +++ b/docs/ConferenceParticipantPlaybackEndedPayload.md @@ -5,18 +5,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Participant's call ID used to issue commands via Call Control API. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] -**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] -**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] -**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Participant's call ID used to issue commands via Call Control API. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] | +|**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] | +|**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] | +|**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | diff --git a/docs/ConferenceParticipantPlaybackStarted.md b/docs/ConferenceParticipantPlaybackStarted.md index c7fe68b3..4003b550 100644 --- a/docs/ConferenceParticipantPlaybackStarted.md +++ b/docs/ConferenceParticipantPlaybackStarted.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceParticipantPlaybackEndedPayload**](ConferenceParticipantPlaybackEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceParticipantPlaybackEndedPayload**](ConferenceParticipantPlaybackEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PARTICIPANT_PLAYBACK_STARTED | "conference.participant.playback.started" +| Name | Value | +|---- | -----| +| CONFERENCE_PARTICIPANT_PLAYBACK_STARTED | "conference.participant.playback.started" | diff --git a/docs/ConferenceParticipantPlaybackStartedEvent.md b/docs/ConferenceParticipantPlaybackStartedEvent.md index 20e6249a..fcc641c0 100644 --- a/docs/ConferenceParticipantPlaybackStartedEvent.md +++ b/docs/ConferenceParticipantPlaybackStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceParticipantPlaybackStarted**](ConferenceParticipantPlaybackStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceParticipantPlaybackStarted**](ConferenceParticipantPlaybackStarted.md) | | [optional] | diff --git a/docs/ConferenceParticipantSpeakEnded.md b/docs/ConferenceParticipantSpeakEnded.md index 611c0336..900f3d21 100644 --- a/docs/ConferenceParticipantSpeakEnded.md +++ b/docs/ConferenceParticipantSpeakEnded.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceParticipantSpeakEndedPayload**](ConferenceParticipantSpeakEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceParticipantSpeakEndedPayload**](ConferenceParticipantSpeakEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PARTICIPANT_SPEAK_ENDED | "conference.participant.speak.ended" +| Name | Value | +|---- | -----| +| CONFERENCE_PARTICIPANT_SPEAK_ENDED | "conference.participant.speak.ended" | diff --git a/docs/ConferenceParticipantSpeakEndedEvent.md b/docs/ConferenceParticipantSpeakEndedEvent.md index 3c90b594..2decc0e9 100644 --- a/docs/ConferenceParticipantSpeakEndedEvent.md +++ b/docs/ConferenceParticipantSpeakEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceParticipantSpeakEnded**](ConferenceParticipantSpeakEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceParticipantSpeakEnded**](ConferenceParticipantSpeakEnded.md) | | [optional] | diff --git a/docs/ConferenceParticipantSpeakEndedPayload.md b/docs/ConferenceParticipantSpeakEndedPayload.md index 34317a86..1ce8d2d9 100644 --- a/docs/ConferenceParticipantSpeakEndedPayload.md +++ b/docs/ConferenceParticipantSpeakEndedPayload.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Participant's call ID used to issue commands via Call Control API. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] -**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Participant's call ID used to issue commands via Call Control API. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] | +|**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | diff --git a/docs/ConferenceParticipantSpeakStarted.md b/docs/ConferenceParticipantSpeakStarted.md index 20918d5d..c695bc13 100644 --- a/docs/ConferenceParticipantSpeakStarted.md +++ b/docs/ConferenceParticipantSpeakStarted.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceParticipantSpeakEndedPayload**](ConferenceParticipantSpeakEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceParticipantSpeakEndedPayload**](ConferenceParticipantSpeakEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PARTICIPANT_SPEAK_STARTED | "conference.participant.speak.started" +| Name | Value | +|---- | -----| +| CONFERENCE_PARTICIPANT_SPEAK_STARTED | "conference.participant.speak.started" | diff --git a/docs/ConferenceParticipantSpeakStartedEvent.md b/docs/ConferenceParticipantSpeakStartedEvent.md index 0af0a7b2..e6e443d1 100644 --- a/docs/ConferenceParticipantSpeakStartedEvent.md +++ b/docs/ConferenceParticipantSpeakStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceParticipantSpeakStarted**](ConferenceParticipantSpeakStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceParticipantSpeakStarted**](ConferenceParticipantSpeakStarted.md) | | [optional] | diff --git a/docs/ConferencePlayRequest.md b/docs/ConferencePlayRequest.md index c845429b..88b3f239 100644 --- a/docs/ConferencePlayRequest.md +++ b/docs/ConferencePlayRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audioUrl** | **String** | The URL of a file to be played back in the conference. media_name and audio_url cannot be used together in one request. | [optional] -**mediaName** | **String** | The media_name of a file to be played back in the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] -**loop** | [**Loopcount**](Loopcount.md) | | [optional] -**callControlIds** | **List<String>** | List of call control ids identifying participants the audio file should be played to. If not given, the audio file will be played to the entire conference. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audioUrl** | **String** | The URL of a file to be played back in the conference. media_name and audio_url cannot be used together in one request. | [optional] | +|**mediaName** | **String** | The media_name of a file to be played back in the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] | +|**loop** | [**Loopcount**](Loopcount.md) | | [optional] | +|**callControlIds** | **List<String>** | List of call control ids identifying participants the audio file should be played to. If not given, the audio file will be played to the entire conference. | [optional] | diff --git a/docs/ConferencePlaybackEnded.md b/docs/ConferencePlaybackEnded.md index 68fed1fe..d5911350 100644 --- a/docs/ConferencePlaybackEnded.md +++ b/docs/ConferencePlaybackEnded.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferencePlaybackEndedPayload**](ConferencePlaybackEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferencePlaybackEndedPayload**](ConferencePlaybackEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PLAYBACK_ENDED | "conference.playback.ended" +| Name | Value | +|---- | -----| +| CONFERENCE_PLAYBACK_ENDED | "conference.playback.ended" | diff --git a/docs/ConferencePlaybackEndedEvent.md b/docs/ConferencePlaybackEndedEvent.md index 91e8d65e..f389eecb 100644 --- a/docs/ConferencePlaybackEndedEvent.md +++ b/docs/ConferencePlaybackEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferencePlaybackEnded**](ConferencePlaybackEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferencePlaybackEnded**](ConferencePlaybackEnded.md) | | [optional] | diff --git a/docs/ConferencePlaybackEndedPayload.md b/docs/ConferencePlaybackEndedPayload.md index fc8e9ebf..d174ec1d 100644 --- a/docs/ConferencePlaybackEndedPayload.md +++ b/docs/ConferencePlaybackEndedPayload.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] -**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] -**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] -**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] | +|**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] | +|**mediaUrl** | **String** | The audio URL being played back, if audio_url has been used to start. | [optional] | +|**mediaName** | **String** | The name of the audio media file being played back, if media_name has been used to start. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | diff --git a/docs/ConferencePlaybackStarted.md b/docs/ConferencePlaybackStarted.md index c371e12d..fb2bda8f 100644 --- a/docs/ConferencePlaybackStarted.md +++ b/docs/ConferencePlaybackStarted.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferencePlaybackEndedPayload**](ConferencePlaybackEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferencePlaybackEndedPayload**](ConferencePlaybackEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_PLAYBACK_STARTED | "conference.playback.started" +| Name | Value | +|---- | -----| +| CONFERENCE_PLAYBACK_STARTED | "conference.playback.started" | diff --git a/docs/ConferencePlaybackStartedEvent.md b/docs/ConferencePlaybackStartedEvent.md index 5a0ec5c0..dfb652ce 100644 --- a/docs/ConferencePlaybackStartedEvent.md +++ b/docs/ConferencePlaybackStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferencePlaybackStarted**](ConferencePlaybackStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferencePlaybackStarted**](ConferencePlaybackStarted.md) | | [optional] | diff --git a/docs/ConferenceRecordingSaved.md b/docs/ConferenceRecordingSaved.md index a734a453..253d336f 100644 --- a/docs/ConferenceRecordingSaved.md +++ b/docs/ConferenceRecordingSaved.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceRecordingSavedPayload**](ConferenceRecordingSavedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceRecordingSavedPayload**](ConferenceRecordingSavedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_RECORDING_SAVED | "conference.recording.saved" +| Name | Value | +|---- | -----| +| CONFERENCE_RECORDING_SAVED | "conference.recording.saved" | diff --git a/docs/ConferenceRecordingSavedEvent.md b/docs/ConferenceRecordingSavedEvent.md index 78b2bd2f..6d4a79e3 100644 --- a/docs/ConferenceRecordingSavedEvent.md +++ b/docs/ConferenceRecordingSavedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceRecordingSaved**](ConferenceRecordingSaved.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceRecordingSaved**](ConferenceRecordingSaved.md) | | [optional] | diff --git a/docs/ConferenceRecordingSavedPayload.md b/docs/ConferenceRecordingSavedPayload.md index 1f2fae83..71dba05e 100644 --- a/docs/ConferenceRecordingSavedPayload.md +++ b/docs/ConferenceRecordingSavedPayload.md @@ -5,38 +5,38 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Participant's call ID used to issue commands via Call Control API. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | State received from a command. | [optional] -**channels** | [**ChannelsEnum**](#ChannelsEnum) | Whether recording was recorded in `single` or `dual` channel. | [optional] -**conferenceId** | **UUID** | ID of the conference that is being recorded. | [optional] -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**format** | [**FormatEnum**](#FormatEnum) | The audio file format used when storing the call recording. Can be either `mp3` or `wav`. | [optional] -**publicRecordingUrls** | [**CallRecordingSavedPayloadPublicRecordingUrls**](CallRecordingSavedPayloadPublicRecordingUrls.md) | | [optional] -**recordingEndedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording ended. | [optional] -**recordingId** | **UUID** | ID of the conference recording. | [optional] -**recordingStartedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording started. | [optional] -**recordingUrls** | [**CallRecordingSavedPayloadRecordingUrls**](CallRecordingSavedPayloadRecordingUrls.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Participant's call ID used to issue commands via Call Control API. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | State received from a command. | [optional] | +|**channels** | [**ChannelsEnum**](#ChannelsEnum) | Whether recording was recorded in `single` or `dual` channel. | [optional] | +|**conferenceId** | **UUID** | ID of the conference that is being recorded. | [optional] | +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**format** | [**FormatEnum**](#FormatEnum) | The audio file format used when storing the call recording. Can be either `mp3` or `wav`. | [optional] | +|**publicRecordingUrls** | [**CallRecordingSavedPayloadPublicRecordingUrls**](CallRecordingSavedPayloadPublicRecordingUrls.md) | | [optional] | +|**recordingEndedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording ended. | [optional] | +|**recordingId** | **UUID** | ID of the conference recording. | [optional] | +|**recordingStartedAt** | **OffsetDateTime** | ISO 8601 datetime of when recording started. | [optional] | +|**recordingUrls** | [**CallRecordingSavedPayloadRecordingUrls**](CallRecordingSavedPayloadRecordingUrls.md) | | [optional] | ## Enum: ChannelsEnum -Name | Value ----- | ----- -SINGLE | "single" -DUAL | "dual" +| Name | Value | +|---- | -----| +| SINGLE | "single" | +| DUAL | "dual" | ## Enum: FormatEnum -Name | Value ----- | ----- -WAV | "wav" -MP3 | "mp3" +| Name | Value | +|---- | -----| +| WAV | "wav" | +| MP3 | "mp3" | diff --git a/docs/ConferenceResponse.md b/docs/ConferenceResponse.md index 777efa03..0149cb7a 100644 --- a/docs/ConferenceResponse.md +++ b/docs/ConferenceResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Conference**](Conference.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Conference**](Conference.md) | | [optional] | diff --git a/docs/ConferenceSpeakEnded.md b/docs/ConferenceSpeakEnded.md index 645f499a..85ca5ff7 100644 --- a/docs/ConferenceSpeakEnded.md +++ b/docs/ConferenceSpeakEnded.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceSpeakEndedPayload**](ConferenceSpeakEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceSpeakEndedPayload**](ConferenceSpeakEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_SPEAK_ENDED | "conference.speak.ended" +| Name | Value | +|---- | -----| +| CONFERENCE_SPEAK_ENDED | "conference.speak.ended" | diff --git a/docs/ConferenceSpeakEndedEvent.md b/docs/ConferenceSpeakEndedEvent.md index 9603ede1..9a03814f 100644 --- a/docs/ConferenceSpeakEndedEvent.md +++ b/docs/ConferenceSpeakEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceSpeakEnded**](ConferenceSpeakEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceSpeakEnded**](ConferenceSpeakEnded.md) | | [optional] | diff --git a/docs/ConferenceSpeakEndedPayload.md b/docs/ConferenceSpeakEndedPayload.md index 258f1cf7..ce09968d 100644 --- a/docs/ConferenceSpeakEndedPayload.md +++ b/docs/ConferenceSpeakEndedPayload.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] -**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] -**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | Call Control App ID (formerly Telnyx connection ID) used in the call. | [optional] | +|**creatorCallSessionId** | **String** | ID that is unique to the call session that started the conference. | [optional] | +|**conferenceId** | **String** | ID of the conference the text was spoken in. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | diff --git a/docs/ConferenceSpeakRequest.md b/docs/ConferenceSpeakRequest.md index e8faa77b..4dc511d8 100644 --- a/docs/ConferenceSpeakRequest.md +++ b/docs/ConferenceSpeakRequest.md @@ -5,68 +5,68 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlIds** | **List<String>** | Call Control IDs of participants who will hear the spoken text. When empty all participants will hear the spoken text. | [optional] -**payload** | **String** | The text or SSML to be converted into speech. There is a 3,000 character limit. | -**payloadType** | [**PayloadTypeEnum**](#PayloadTypeEnum) | The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML). | [optional] -**voice** | [**VoiceEnum**](#VoiceEnum) | The gender of the voice used to speak the text. | -**language** | [**LanguageEnum**](#LanguageEnum) | The language used to speak the text. | -**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlIds** | **List<String>** | Call Control IDs of participants who will hear the spoken text. When empty all participants will hear the spoken text. | [optional] | +|**payload** | **String** | The text or SSML to be converted into speech. There is a 3,000 character limit. | | +|**payloadType** | [**PayloadTypeEnum**](#PayloadTypeEnum) | The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML). | [optional] | +|**voice** | [**VoiceEnum**](#VoiceEnum) | The gender of the voice used to speak the text. | | +|**language** | [**LanguageEnum**](#LanguageEnum) | The language used to speak the text. | | +|**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] | ## Enum: PayloadTypeEnum -Name | Value ----- | ----- -TEXT | "text" -SSML | "ssml" +| Name | Value | +|---- | -----| +| TEXT | "text" | +| SSML | "ssml" | ## Enum: VoiceEnum -Name | Value ----- | ----- -MALE | "male" -FEMALE | "female" +| Name | Value | +|---- | -----| +| MALE | "male" | +| FEMALE | "female" | ## Enum: LanguageEnum -Name | Value ----- | ----- -ARB | "arb" -CMN_CN | "cmn-CN" -CY_GB | "cy-GB" -DA_DK | "da-DK" -DE_DE | "de-DE" -EN_AU | "en-AU" -EN_GB | "en-GB" -EN_GB_WLS | "en-GB-WLS" -EN_IN | "en-IN" -EN_US | "en-US" -ES_ES | "es-ES" -ES_MX | "es-MX" -ES_US | "es-US" -FR_CA | "fr-CA" -FR_FR | "fr-FR" -HI_IN | "hi-IN" -IS_IS | "is-IS" -IT_IT | "it-IT" -JA_JP | "ja-JP" -KO_KR | "ko-KR" -NB_NO | "nb-NO" -NL_NL | "nl-NL" -PL_PL | "pl-PL" -PT_BR | "pt-BR" -PT_PT | "pt-PT" -RO_RO | "ro-RO" -RU_RU | "ru-RU" -SV_SE | "sv-SE" -TR_TR | "tr-TR" +| Name | Value | +|---- | -----| +| ARB | "arb" | +| CMN_CN | "cmn-CN" | +| CY_GB | "cy-GB" | +| DA_DK | "da-DK" | +| DE_DE | "de-DE" | +| EN_AU | "en-AU" | +| EN_GB | "en-GB" | +| EN_GB_WLS | "en-GB-WLS" | +| EN_IN | "en-IN" | +| EN_US | "en-US" | +| ES_ES | "es-ES" | +| ES_MX | "es-MX" | +| ES_US | "es-US" | +| FR_CA | "fr-CA" | +| FR_FR | "fr-FR" | +| HI_IN | "hi-IN" | +| IS_IS | "is-IS" | +| IT_IT | "it-IT" | +| JA_JP | "ja-JP" | +| KO_KR | "ko-KR" | +| NB_NO | "nb-NO" | +| NL_NL | "nl-NL" | +| PL_PL | "pl-PL" | +| PT_BR | "pt-BR" | +| PT_PT | "pt-PT" | +| RO_RO | "ro-RO" | +| RU_RU | "ru-RU" | +| SV_SE | "sv-SE" | +| TR_TR | "tr-TR" | diff --git a/docs/ConferenceSpeakStarted.md b/docs/ConferenceSpeakStarted.md index e090f55e..d8604c66 100644 --- a/docs/ConferenceSpeakStarted.md +++ b/docs/ConferenceSpeakStarted.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**payload** | [**ConferenceSpeakEndedPayload**](ConferenceSpeakEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**payload** | [**ConferenceSpeakEndedPayload**](ConferenceSpeakEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CONFERENCE_SPEAK_STARTED | "conference.speak.started" +| Name | Value | +|---- | -----| +| CONFERENCE_SPEAK_STARTED | "conference.speak.started" | diff --git a/docs/ConferenceSpeakStartedEvent.md b/docs/ConferenceSpeakStartedEvent.md index 98e16df3..280b3260 100644 --- a/docs/ConferenceSpeakStartedEvent.md +++ b/docs/ConferenceSpeakStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ConferenceSpeakStarted**](ConferenceSpeakStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ConferenceSpeakStarted**](ConferenceSpeakStarted.md) | | [optional] | diff --git a/docs/ConferenceStopRequest.md b/docs/ConferenceStopRequest.md index 00364485..d8167112 100644 --- a/docs/ConferenceStopRequest.md +++ b/docs/ConferenceStopRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlIds** | **List<String>** | List of call control ids identifying participants the audio file should stop be played to. If not given, the audio will be stoped to the entire conference. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlIds** | **List<String>** | List of call control ids identifying participants the audio file should stop be played to. If not given, the audio will be stoped to the entire conference. | [optional] | diff --git a/docs/ConferenceUnholdRequest.md b/docs/ConferenceUnholdRequest.md index bce7ca27..8b35fea8 100644 --- a/docs/ConferenceUnholdRequest.md +++ b/docs/ConferenceUnholdRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlIds** | **List<String>** | List of unique identifiers and tokens for controlling the call. Enter each call control ID to be unheld. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlIds** | **List<String>** | List of unique identifiers and tokens for controlling the call. Enter each call control ID to be unheld. | | diff --git a/docs/ConferenceUnmuteRequest.md b/docs/ConferenceUnmuteRequest.md index 7e072c2c..0ff611d3 100644 --- a/docs/ConferenceUnmuteRequest.md +++ b/docs/ConferenceUnmuteRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlIds** | **List<String>** | List of unique identifiers and tokens for controlling the call. Enter each call control ID to be unmuted. When empty all participants will be unmuted. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlIds** | **List<String>** | List of unique identifiers and tokens for controlling the call. Enter each call control ID to be unmuted. When empty all participants will be unmuted. | [optional] | diff --git a/docs/ConfirmPortingOrder200Response.md b/docs/ConfirmPortingOrder200Response.md new file mode 100644 index 00000000..2e151610 --- /dev/null +++ b/docs/ConfirmPortingOrder200Response.md @@ -0,0 +1,14 @@ + + +# ConfirmPortingOrder200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortingOrder**](PortingOrder.md) | | [optional] | +|**meta** | [**UpdatePortingOrder200ResponseMeta**](UpdatePortingOrder200ResponseMeta.md) | | [optional] | + + + diff --git a/docs/Connection.md b/docs/Connection.md index bb10625c..b7b9d33f 100644 --- a/docs/Connection.md +++ b/docs/Connection.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the specific resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**active** | **Boolean** | Defaults to true | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the specific resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**active** | **Boolean** | Defaults to true | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/ConnectionResponse.md b/docs/ConnectionResponse.md index fb94a0ba..06593306 100644 --- a/docs/ConnectionResponse.md +++ b/docs/ConnectionResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Connection**](Connection.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Connection**](Connection.md) | | [optional] | diff --git a/docs/ConnectionRtcpSettings.md b/docs/ConnectionRtcpSettings.md index 46589e04..f83c0768 100644 --- a/docs/ConnectionRtcpSettings.md +++ b/docs/ConnectionRtcpSettings.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**port** | [**PortEnum**](#PortEnum) | RTCP port by default is rtp+1, it can also be set to rtcp-mux | [optional] -**captureEnabled** | **Boolean** | BETA - Enable the capture and storage of RTCP messages to create QoS reports on the Telnyx Mission Control Portal. | [optional] -**reportFrequencySecs** | **Integer** | RTCP reports are sent to customers based on the frequency set. Frequency is in seconds and it can be set to values from 5 to 3000 seconds. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**port** | [**PortEnum**](#PortEnum) | RTCP port by default is rtp+1, it can also be set to rtcp-mux | [optional] | +|**captureEnabled** | **Boolean** | BETA - Enable the capture and storage of RTCP messages to create QoS reports on the Telnyx Mission Control Portal. | [optional] | +|**reportFrequencySecs** | **Integer** | RTCP reports are sent to customers based on the frequency set. Frequency is in seconds and it can be set to values from 5 to 3000 seconds. | [optional] | ## Enum: PortEnum -Name | Value ----- | ----- -RTCP_MUX | "rtcp-mux" -RTP_1 | "rtp+1" +| Name | Value | +|---- | -----| +| RTCP_MUX | "rtcp-mux" | +| RTP_1 | "rtp+1" | diff --git a/docs/ConnectionsApi.md b/docs/ConnectionsApi.md index a1b80aae..23ed9a88 100644 --- a/docs/ConnectionsApi.md +++ b/docs/ConnectionsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## listConnections -> ListConnectionsResponse listConnections().pageNumber(pageNumber).pageSize(pageSize).filterConnectionNameContains(filterConnectionNameContains).filterOutboundOutboundVoiceProfileId(filterOutboundOutboundVoiceProfileId).sort(sort).execute(); +> ListConnectionsResponse listConnections().pageNumber(pageNumber).pageSize(pageSize).filterConnectionNameContains(filterConnectionNameContains).filterOutboundVoiceProfileId(filterOutboundVoiceProfileId).sort(sort).execute(); List connections @@ -40,15 +40,15 @@ public class Example { ConnectionsApi apiInstance = new ConnectionsApi(defaultClient); Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page - String filterConnectionNameContains = "null"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. - String filterOutboundOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. + String filterConnectionNameContains = "filterConnectionNameContains_example"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. + String filterOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • connection_name: sorts the result by the connection_name field in ascending order.
  • -connection_name: sorts the result by the connection_name field in descending order.

If not given, results are sorted by created_at in descending order. try { ListConnectionsResponse result = api.listConnections() .pageNumber(pageNumber) .pageSize(pageSize) .filterConnectionNameContains(filterConnectionNameContains) - .filterOutboundOutboundVoiceProfileId(filterOutboundOutboundVoiceProfileId) + .filterOutboundVoiceProfileId(filterOutboundVoiceProfileId) .sort(sort) .execute(); System.out.println(result); @@ -70,8 +70,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] - **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] - **filterOutboundOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] + **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] + **filterOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] ### Return type diff --git a/docs/ConsumedData.md b/docs/ConsumedData.md index 0a4bdaad..ce673ec9 100644 --- a/docs/ConsumedData.md +++ b/docs/ConsumedData.md @@ -6,10 +6,10 @@ Represents the amount of data consumed. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | **String** | | [optional] -**amount** | **BigDecimal** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**unit** | **String** | | [optional] | +|**amount** | **BigDecimal** | | [optional] | diff --git a/docs/Contact.md b/docs/Contact.md index 9be754ee..345acec5 100644 --- a/docs/Contact.md +++ b/docs/Contact.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addresses** | [**List<WhatsAppContactAddress>**](WhatsAppContactAddress.md) | Full contact address(es) | [optional] -**birthday** | **String** | YYYY-MM-DD formatted string | [optional] -**emails** | [**List<Email>**](Email.md) | Contact email address(es) | [optional] -**ims** | **List<String>** | | [optional] -**name** | [**Name**](Name.md) | | [optional] -**org** | [**Organization**](Organization.md) | | [optional] -**phones** | [**List<Phone>**](Phone.md) | Contact phone number(s) | [optional] -**urls** | [**List<Url>**](Url.md) | Contact URL(s) | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**addresses** | [**List<WhatsAppContactAddress>**](WhatsAppContactAddress.md) | Full contact address(es) | [optional] | +|**birthday** | **String** | YYYY-MM-DD formatted string | [optional] | +|**emails** | [**List<Email>**](Email.md) | Contact email address(es) | [optional] | +|**ims** | **List<String>** | | [optional] | +|**name** | [**Name**](Name.md) | | [optional] | +|**org** | [**Organization**](Organization.md) | | [optional] | +|**phones** | [**List<Phone>**](Phone.md) | Contact phone number(s) | [optional] | +|**urls** | [**List<Url>**](Url.md) | Contact URL(s) | [optional] | diff --git a/docs/CostInformation.md b/docs/CostInformation.md index d1d6c11d..e3e4270d 100644 --- a/docs/CostInformation.md +++ b/docs/CostInformation.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**upfrontCost** | **String** | | [optional] -**monthlyCost** | **String** | | [optional] -**currency** | **String** | The ISO 4217 code for the currency. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**upfrontCost** | **String** | | [optional] | +|**monthlyCost** | **String** | | [optional] | +|**currency** | **String** | The ISO 4217 code for the currency. | [optional] | diff --git a/docs/CreateAndroidPushCredentialRequest.md b/docs/CreateAndroidPushCredentialRequest.md index 8c1de469..0aa51bc3 100644 --- a/docs/CreateAndroidPushCredentialRequest.md +++ b/docs/CreateAndroidPushCredentialRequest.md @@ -5,10 +5,19 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**serverKey** | **String** | Server key as received from Google firebase | -**alias** | **String** | Alias to uniquely identify the credential | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | Type of mobile push credential. Should be <code>android</code> here | | +|**serverKey** | **String** | Server key as received from Google firebase | | +|**alias** | **String** | Alias to uniquely identify the credential | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| ANDROID | "android" | diff --git a/docs/CreateAuthenticationProvider200Response.md b/docs/CreateAuthenticationProvider200Response.md new file mode 100644 index 00000000..c9436839 --- /dev/null +++ b/docs/CreateAuthenticationProvider200Response.md @@ -0,0 +1,13 @@ + + +# CreateAuthenticationProvider200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**AuthenticationProvider**](AuthenticationProvider.md) | | [optional] | + + + diff --git a/docs/CreateBillingGroup200Response.md b/docs/CreateBillingGroup200Response.md new file mode 100644 index 00000000..dcbac174 --- /dev/null +++ b/docs/CreateBillingGroup200Response.md @@ -0,0 +1,13 @@ + + +# CreateBillingGroup200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**BillingGroup**](BillingGroup.md) | | [optional] | + + + diff --git a/docs/CreateCallControlApplicationRequest.md b/docs/CreateCallControlApplicationRequest.md index 49640f21..703da758 100644 --- a/docs/CreateCallControlApplicationRequest.md +++ b/docs/CreateCallControlApplicationRequest.md @@ -5,50 +5,50 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**applicationName** | **String** | A user-assigned name to help manage the application. | -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | [**AnchorsiteOverrideEnum**](#AnchorsiteOverrideEnum) | <code>Latency</code> directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. | [optional] -**dtmfType** | [**DtmfTypeEnum**](#DtmfTypeEnum) | Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. | [optional] -**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] -**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] -**inbound** | [**CallControlApplicationInbound**](CallControlApplicationInbound.md) | | [optional] -**outbound** | [**CallControlApplicationOutbound**](CallControlApplicationOutbound.md) | | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**applicationName** | **String** | A user-assigned name to help manage the application. | | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | [**AnchorsiteOverrideEnum**](#AnchorsiteOverrideEnum) | <code>Latency</code> directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. | [optional] | +|**dtmfType** | [**DtmfTypeEnum**](#DtmfTypeEnum) | Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. | [optional] | +|**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] | +|**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] | +|**inbound** | [**CallControlApplicationInbound**](CallControlApplicationInbound.md) | | [optional] | +|**outbound** | [**CallControlApplicationOutbound**](CallControlApplicationOutbound.md) | | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | ## Enum: AnchorsiteOverrideEnum -Name | Value ----- | ----- -LATENCY_ | "\"Latency\"" -CHICAGO_IL_ | "\"Chicago, IL\"" -ASHBURN_VA_ | "\"Ashburn, VA\"" -SAN_JOSE_CA_ | "\"San Jose, CA\"" +| Name | Value | +|---- | -----| +| LATENCY_ | "\"Latency\"" | +| CHICAGO_IL_ | "\"Chicago, IL\"" | +| ASHBURN_VA_ | "\"Ashburn, VA\"" | +| SAN_JOSE_CA_ | "\"San Jose, CA\"" | ## Enum: DtmfTypeEnum -Name | Value ----- | ----- -RFC_2833 | "RFC 2833" -INBAND | "Inband" -SIP_INFO | "SIP INFO" +| Name | Value | +|---- | -----| +| RFC_2833 | "RFC 2833" | +| INBAND | "Inband" | +| SIP_INFO | "SIP INFO" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/CreateComment200Response.md b/docs/CreateComment200Response.md new file mode 100644 index 00000000..2bffc16f --- /dev/null +++ b/docs/CreateComment200Response.md @@ -0,0 +1,13 @@ + + +# CreateComment200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CreateComment200ResponseData**](CreateComment200ResponseData.md) | | [optional] | + + + diff --git a/docs/CreateComment200ResponseData.md b/docs/CreateComment200ResponseData.md new file mode 100644 index 00000000..89ebc43d --- /dev/null +++ b/docs/CreateComment200ResponseData.md @@ -0,0 +1,40 @@ + + +# CreateComment200ResponseData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**body** | **String** | | [optional] | +|**commenter** | **String** | | [optional] [readonly] | +|**commenterType** | [**CommenterTypeEnum**](#CommenterTypeEnum) | | [optional] [readonly] | +|**commentRecordType** | [**CommentRecordTypeEnum**](#CommentRecordTypeEnum) | | [optional] | +|**commentRecordId** | **UUID** | | [optional] | +|**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the comment was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the comment was updated. | [optional] [readonly] | + + + +## Enum: CommenterTypeEnum + +| Name | Value | +|---- | -----| +| ADMIN | "admin" | +| USER | "user" | + + + +## Enum: CommentRecordTypeEnum + +| Name | Value | +|---- | -----| +| NUMBER_ORDER | "number_order" | +| SUB_NUMBER_ORDER | "sub_number_order" | +| NUMBER_ORDER_PHONE_NUMBER | "number_order_phone_number" | + + + diff --git a/docs/CreateConferenceRequest.md b/docs/CreateConferenceRequest.md index 5bd38239..432c55ce 100644 --- a/docs/CreateConferenceRequest.md +++ b/docs/CreateConferenceRequest.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique identifier and token for controlling the call | -**name** | **String** | Name of the conference | -**beepEnabled** | [**BeepEnabledEnum**](#BeepEnabledEnum) | Whether a beep sound should be played when participants join and/or leave the conference. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. The client_state will be updated for the creator call leg and will be used for all webhooks related to the created conference. | [optional] -**comfortNoise** | **Boolean** | Toggle background comfort noise. | [optional] -**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] -**durationMinutes** | **Integer** | Time length (minutes) after which the conference will end. | [optional] -**holdAudioUrl** | **String** | The URL of a file to be played to participants joining the conference. The URL can point to either a WAV or MP3 file. hold_media_name and hold_audio_url cannot be used together in one request. Takes effect only when \"start_conference_on_create\" is set to \"false\". | [optional] -**holdMediaName** | **String** | The media_name of a file to be played to participants joining the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. Takes effect only when \"start_conference_on_create\" is set to \"false\". | [optional] -**maxParticipants** | **Integer** | The maximum number of active conference participants to allow. Must be between 2 and 800. Defaults to 250 | [optional] -**startConferenceOnCreate** | **Boolean** | Whether the conference should be started on creation. If the conference isn't started all participants that join are automatically put on hold. Defaults to \"true\". | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique identifier and token for controlling the call | | +|**name** | **String** | Name of the conference | | +|**beepEnabled** | [**BeepEnabledEnum**](#BeepEnabledEnum) | Whether a beep sound should be played when participants join and/or leave the conference. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. The client_state will be updated for the creator call leg and will be used for all webhooks related to the created conference. | [optional] | +|**comfortNoise** | **Boolean** | Toggle background comfort noise. | [optional] | +|**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] | +|**durationMinutes** | **Integer** | Time length (minutes) after which the conference will end. | [optional] | +|**holdAudioUrl** | **String** | The URL of a file to be played to participants joining the conference. The URL can point to either a WAV or MP3 file. hold_media_name and hold_audio_url cannot be used together in one request. Takes effect only when \"start_conference_on_create\" is set to \"false\". | [optional] | +|**holdMediaName** | **String** | The media_name of a file to be played to participants joining the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. Takes effect only when \"start_conference_on_create\" is set to \"false\". | [optional] | +|**maxParticipants** | **Integer** | The maximum number of active conference participants to allow. Must be between 2 and 800. Defaults to 250 | [optional] | +|**startConferenceOnCreate** | **Boolean** | Whether the conference should be started on creation. If the conference isn't started all participants that join are automatically put on hold. Defaults to \"true\". | [optional] | ## Enum: BeepEnabledEnum -Name | Value ----- | ----- -ALWAYS | "always" -NEVER | "never" -ON_ENTER | "on_enter" -ON_EXIT | "on_exit" +| Name | Value | +|---- | -----| +| ALWAYS | "always" | +| NEVER | "never" | +| ON_ENTER | "on_enter" | +| ON_EXIT | "on_exit" | diff --git a/docs/CreateCredentialConnectionRequest.md b/docs/CreateCredentialConnectionRequest.md index 4afdcff6..1aece860 100644 --- a/docs/CreateCredentialConnectionRequest.md +++ b/docs/CreateCredentialConnectionRequest.md @@ -5,45 +5,45 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Defaults to true | [optional] -**userName** | **String** | The user name to be used as part of the credentials. Must be 4-32 characters long and alphanumeric values only (no spaces or special characters). | -**password** | **String** | The password to be used as part of the credentials. Must be 8 to 128 characters long. | -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | -**sipUriCallingPreference** | [**SipUriCallingPreferenceEnum**](#SipUriCallingPreferenceEnum) | This feature enables inbound SIP URI calls to your Credential Auth Connection. If enabled for all (unrestricted) then anyone who calls the SIP URI <your-username>@telnyx.com will be connected to your Connection. You can also choose to allow only calls that are originated on any Connections under your account (internal). | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**inbound** | [**CredentialInbound**](CredentialInbound.md) | | [optional] -**outbound** | [**CredentialOutbound**](CredentialOutbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Defaults to true | [optional] | +|**userName** | **String** | The user name to be used as part of the credentials. Must be 4-32 characters long and alphanumeric values only (no spaces or special characters). | | +|**password** | **String** | The password to be used as part of the credentials. Must be 8 to 128 characters long. | | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | | +|**sipUriCallingPreference** | [**SipUriCallingPreferenceEnum**](#SipUriCallingPreferenceEnum) | This feature enables inbound SIP URI calls to your Credential Auth Connection. If enabled for all (unrestricted) then anyone who calls the SIP URI <your-username>@telnyx.com will be connected to your Connection. You can also choose to allow only calls that are originated on any Connections under your account (internal). | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**inbound** | [**CredentialInbound**](CredentialInbound.md) | | [optional] | +|**outbound** | [**CredentialOutbound**](CredentialOutbound.md) | | [optional] | ## Enum: SipUriCallingPreferenceEnum -Name | Value ----- | ----- -DISABLED | "disabled" -UNRESTRICTED | "unrestricted" -INTERNAL | "internal" +| Name | Value | +|---- | -----| +| DISABLED | "disabled" | +| UNRESTRICTED | "unrestricted" | +| INTERNAL | "internal" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/CreateCustomerServiceRequest201Response.md b/docs/CreateCustomerServiceRequest201Response.md new file mode 100644 index 00000000..fbf3fcf6 --- /dev/null +++ b/docs/CreateCustomerServiceRequest201Response.md @@ -0,0 +1,13 @@ + + +# CreateCustomerServiceRequest201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CustomerServiceRequest**](CustomerServiceRequest.md) | | [optional] | + + + diff --git a/docs/CreateCustomerServiceRequestRequest.md b/docs/CreateCustomerServiceRequestRequest.md new file mode 100644 index 00000000..c0a8d7b2 --- /dev/null +++ b/docs/CreateCustomerServiceRequestRequest.md @@ -0,0 +1,14 @@ + + +# CreateCustomerServiceRequestRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | A valid US phone number in E164 format. | | +|**webhookUrl** | **String** | Callback URL to receive webhook notifications. | [optional] | + + + diff --git a/docs/CreateDocument200Response.md b/docs/CreateDocument200Response.md new file mode 100644 index 00000000..34bef81a --- /dev/null +++ b/docs/CreateDocument200Response.md @@ -0,0 +1,13 @@ + + +# CreateDocument200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**DocServiceDocument**](DocServiceDocument.md) | | [optional] | + + + diff --git a/docs/CreateDyanmicEmergencyAddress201Response.md b/docs/CreateDyanmicEmergencyAddress201Response.md new file mode 100644 index 00000000..640fed57 --- /dev/null +++ b/docs/CreateDyanmicEmergencyAddress201Response.md @@ -0,0 +1,13 @@ + + +# CreateDyanmicEmergencyAddress201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**DynamicEmergencyAddress**](DynamicEmergencyAddress.md) | | [optional] | + + + diff --git a/docs/CreateDyanmicEmergencyEndpoint201Response.md b/docs/CreateDyanmicEmergencyEndpoint201Response.md new file mode 100644 index 00000000..7982f6c3 --- /dev/null +++ b/docs/CreateDyanmicEmergencyEndpoint201Response.md @@ -0,0 +1,13 @@ + + +# CreateDyanmicEmergencyEndpoint201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**DynamicEmergencyEndpoint**](DynamicEmergencyEndpoint.md) | | [optional] | + + + diff --git a/docs/CreateFaxApplicationRequest.md b/docs/CreateFaxApplicationRequest.md index d4ef4e8f..c0a91f97 100644 --- a/docs/CreateFaxApplicationRequest.md +++ b/docs/CreateFaxApplicationRequest.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**applicationName** | **String** | A user-assigned name to help manage the application. | -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**inbound** | [**CreateFaxApplicationRequestInbound**](CreateFaxApplicationRequestInbound.md) | | [optional] -**outbound** | [**CreateFaxApplicationRequestOutbound**](CreateFaxApplicationRequestOutbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**applicationName** | **String** | A user-assigned name to help manage the application. | | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**inbound** | [**CreateFaxApplicationRequestInbound**](CreateFaxApplicationRequestInbound.md) | | [optional] | +|**outbound** | [**CreateFaxApplicationRequestOutbound**](CreateFaxApplicationRequestOutbound.md) | | [optional] | diff --git a/docs/CreateFaxApplicationRequestInbound.md b/docs/CreateFaxApplicationRequestInbound.md index efcd11a8..0b98e000 100644 --- a/docs/CreateFaxApplicationRequestInbound.md +++ b/docs/CreateFaxApplicationRequestInbound.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelLimit** | **Integer** | When set, this will limit the number of concurrent inbound calls to phone numbers associated with this connection. | [optional] -**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] -**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelLimit** | **Integer** | When set, this will limit the number of concurrent inbound calls to phone numbers associated with this connection. | [optional] | +|**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] | +|**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] | ## Enum: SipSubdomainReceiveSettingsEnum -Name | Value ----- | ----- -ONLY_MY_CONNECTIONS | "only_my_connections" -FROM_ANYONE | "from_anyone" +| Name | Value | +|---- | -----| +| ONLY_MY_CONNECTIONS | "only_my_connections" | +| FROM_ANYONE | "from_anyone" | diff --git a/docs/CreateFaxApplicationRequestOutbound.md b/docs/CreateFaxApplicationRequestOutbound.md index 3f320f18..e7fb8d07 100644 --- a/docs/CreateFaxApplicationRequestOutbound.md +++ b/docs/CreateFaxApplicationRequestOutbound.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelLimit** | **Integer** | When set, this will limit the number of concurrent outbound calls to phone numbers associated with this connection. | [optional] -**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelLimit** | **Integer** | When set, this will limit the number of concurrent outbound calls to phone numbers associated with this connection. | [optional] | +|**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] | diff --git a/docs/CreateFqdnConnectionRequest.md b/docs/CreateFqdnConnectionRequest.md index 026b1da4..85dc950c 100644 --- a/docs/CreateFqdnConnectionRequest.md +++ b/docs/CreateFqdnConnectionRequest.md @@ -5,32 +5,32 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Defaults to true | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | -**transportProtocol** | **FqdnConnectionTransportProtocol** | | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**inbound** | [**InboundFqdn**](InboundFqdn.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Defaults to true | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | | +|**transportProtocol** | **FqdnConnectionTransportProtocol** | | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**inbound** | [**InboundFqdn**](InboundFqdn.md) | | [optional] | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/CreateFqdnRequest.md b/docs/CreateFqdnRequest.md index 06f1fd72..4dd5721b 100644 --- a/docs/CreateFqdnRequest.md +++ b/docs/CreateFqdnRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | ID of the FQDN connection to which this IP should be attached. | -**fqdn** | **String** | FQDN represented by this resource. | -**port** | **Integer** | Port to use when connecting to this FQDN. | [optional] -**dnsRecordType** | **String** | The DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | ID of the FQDN connection to which this IP should be attached. | | +|**fqdn** | **String** | FQDN represented by this resource. | | +|**port** | **Integer** | Port to use when connecting to this FQDN. | [optional] | +|**dnsRecordType** | **String** | The DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used. | | diff --git a/docs/CreateInboundIpRequest.md b/docs/CreateInboundIpRequest.md index af1ce371..82317c5e 100644 --- a/docs/CreateInboundIpRequest.md +++ b/docs/CreateInboundIpRequest.md @@ -5,73 +5,73 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] -**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] -**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] -**defaultRoutingMethod** | [**DefaultRoutingMethodEnum**](#DefaultRoutingMethodEnum) | Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or left blank, other values are not allowed. | [optional] -**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] -**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] -**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] -**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] -**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] -**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] -**sipRegion** | [**SipRegionEnum**](#SipRegionEnum) | Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used. | [optional] -**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] -**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] -**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] -**timeout2xxSecs** | **Integer** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] | +|**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] | +|**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] | +|**defaultRoutingMethod** | [**DefaultRoutingMethodEnum**](#DefaultRoutingMethodEnum) | Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or left blank, other values are not allowed. | [optional] | +|**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] | +|**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] | +|**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] | +|**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] | +|**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] | +|**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] | +|**sipRegion** | [**SipRegionEnum**](#SipRegionEnum) | Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used. | [optional] | +|**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] | +|**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] | +|**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] | +|**timeout2xxSecs** | **Integer** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] | ## Enum: AniNumberFormatEnum -Name | Value ----- | ----- -_E_164 | "+E.164" -E_164 | "E.164" -_E_164_NATIONAL | "+E.164-national" -E_164_NATIONAL | "E.164-national" +| Name | Value | +|---- | -----| +| _E_164 | "+E.164" | +| E_164 | "E.164" | +| _E_164_NATIONAL | "+E.164-national" | +| E_164_NATIONAL | "E.164-national" | ## Enum: DnisNumberFormatEnum -Name | Value ----- | ----- -_E164 | "+e164" -E164 | "e164" -NATIONAL | "national" -SIP_USERNAME | "sip_username" +| Name | Value | +|---- | -----| +| _E164 | "+e164" | +| E164 | "e164" | +| NATIONAL | "national" | +| SIP_USERNAME | "sip_username" | ## Enum: DefaultRoutingMethodEnum -Name | Value ----- | ----- -SEQUENTIAL | "sequential" -ROUND_ROBIN | "round-robin" +| Name | Value | +|---- | -----| +| SEQUENTIAL | "sequential" | +| ROUND_ROBIN | "round-robin" | ## Enum: SipRegionEnum -Name | Value ----- | ----- -US | "US" -EUROPE | "Europe" -AUSTRALIA | "Australia" +| Name | Value | +|---- | -----| +| US | "US" | +| EUROPE | "Europe" | +| AUSTRALIA | "Australia" | ## Enum: SipSubdomainReceiveSettingsEnum -Name | Value ----- | ----- -ONLY_MY_CONNECTIONS | "only_my_connections" -FROM_ANYONE | "from_anyone" +| Name | Value | +|---- | -----| +| ONLY_MY_CONNECTIONS | "only_my_connections" | +| FROM_ANYONE | "from_anyone" | diff --git a/docs/CreateInventoryCoverageRequest200Response.md b/docs/CreateInventoryCoverageRequest200Response.md new file mode 100644 index 00000000..878f9933 --- /dev/null +++ b/docs/CreateInventoryCoverageRequest200Response.md @@ -0,0 +1,14 @@ + + +# CreateInventoryCoverageRequest200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<InventoryCoverage>**](InventoryCoverage.md) | | [optional] | +|**meta** | [**InventoryCoverageMetadata**](InventoryCoverageMetadata.md) | | [optional] | + + + diff --git a/docs/CreateIosPushCredentialRequest.md b/docs/CreateIosPushCredentialRequest.md index da6a5336..f0904f4a 100644 --- a/docs/CreateIosPushCredentialRequest.md +++ b/docs/CreateIosPushCredentialRequest.md @@ -5,11 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**certificate** | **String** | Certificate as received from APNs | -**privateKey** | **String** | Corresponding private key to the certificate as received from APNs | -**alias** | **String** | Alias to uniquely identify the credential | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | Type of mobile push credential. Should be <code>ios</code> here | | +|**certificate** | **String** | Certificate as received from APNs | | +|**privateKey** | **String** | Corresponding private key to the certificate as received from APNs | | +|**alias** | **String** | Alias to uniquely identify the credential | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| IOS | "ios" | diff --git a/docs/CreateIpConnectionRequest.md b/docs/CreateIpConnectionRequest.md index c98ce54a..23c7263f 100644 --- a/docs/CreateIpConnectionRequest.md +++ b/docs/CreateIpConnectionRequest.md @@ -5,43 +5,43 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Defaults to true | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | [optional] -**transportProtocol** | [**TransportProtocolEnum**](#TransportProtocolEnum) | One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication. | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**inbound** | [**CreateInboundIpRequest**](CreateInboundIpRequest.md) | | [optional] -**outbound** | [**OutboundIp**](OutboundIp.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Defaults to true | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | [optional] | +|**transportProtocol** | [**TransportProtocolEnum**](#TransportProtocolEnum) | One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication. | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**inbound** | [**CreateInboundIpRequest**](CreateInboundIpRequest.md) | | [optional] | +|**outbound** | [**OutboundIp**](OutboundIp.md) | | [optional] | ## Enum: TransportProtocolEnum -Name | Value ----- | ----- -UDP | "UDP" -TCP | "TCP" -TLS | "TLS" +| Name | Value | +|---- | -----| +| UDP | "UDP" | +| TCP | "TCP" | +| TLS | "TLS" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/CreateIpRequest.md b/docs/CreateIpRequest.md index 5e1375e9..6b235f96 100644 --- a/docs/CreateIpRequest.md +++ b/docs/CreateIpRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | ID of the IP Connection to which this IP should be attached. | [optional] -**ipAddress** | **String** | IP adddress represented by this resource. | -**port** | **Integer** | Port to use when connecting to this IP. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | ID of the IP Connection to which this IP should be attached. | [optional] | +|**ipAddress** | **String** | IP adddress represented by this resource. | | +|**port** | **Integer** | Port to use when connecting to this IP. | [optional] | diff --git a/docs/CreateLedgerBillingGroupReport200Response.md b/docs/CreateLedgerBillingGroupReport200Response.md new file mode 100644 index 00000000..b682893a --- /dev/null +++ b/docs/CreateLedgerBillingGroupReport200Response.md @@ -0,0 +1,13 @@ + + +# CreateLedgerBillingGroupReport200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**LedgerBillingGroupReport**](LedgerBillingGroupReport.md) | | [optional] | + + + diff --git a/docs/CreateLongCodeMessageRequest.md b/docs/CreateLongCodeMessageRequest.md index b9531c43..1433e8d3 100644 --- a/docs/CreateLongCodeMessageRequest.md +++ b/docs/CreateLongCodeMessageRequest.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | **String** | Phone number, in +E.164 format, used to send the message. | -**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | -**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] -**subject** | **String** | Subject of multimedia message | [optional] -**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] -**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] -**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**from** | **String** | Phone number, in +E.164 format, used to send the message. | | +|**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | | +|**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] | +|**subject** | **String** | Subject of multimedia message | [optional] | +|**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] | +|**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] | +|**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] | ## Enum: TypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | diff --git a/docs/CreateManagedAccount200Response.md b/docs/CreateManagedAccount200Response.md new file mode 100644 index 00000000..cfc31004 --- /dev/null +++ b/docs/CreateManagedAccount200Response.md @@ -0,0 +1,13 @@ + + +# CreateManagedAccount200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ManagedAccount**](ManagedAccount.md) | | [optional] | + + + diff --git a/docs/CreateManagedAccount422Response.md b/docs/CreateManagedAccount422Response.md new file mode 100644 index 00000000..300d8ef0 --- /dev/null +++ b/docs/CreateManagedAccount422Response.md @@ -0,0 +1,13 @@ + + +# CreateManagedAccount422Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<UnprocessableEntityError>**](UnprocessableEntityError.md) | | [optional] | + + + diff --git a/docs/CreateManagedAccountRequest.md b/docs/CreateManagedAccountRequest.md index ae974d4f..5a275c43 100644 --- a/docs/CreateManagedAccountRequest.md +++ b/docs/CreateManagedAccountRequest.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | The email address for the managed account. If not provided, the email address will be generated based on the email address of the manager account. | [optional] -**password** | **String** | Password for the managed account. If a password is not supplied, the account will not be able to be signed into directly. (A password reset may still be performed later to enable sign-in via password.) | [optional] -**businessName** | **String** | The name of the business for which the new managed account is being created, that will be used as the managed accounts's organization's name. | -**managedAccountAllowCustomPricing** | **Boolean** | Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. This value may be changed after creation, but there may be time lag between when the value is changed and pricing changes take effect. | [optional] -**rollupBilling** | **Boolean** | Boolean value that indicates if the billing information and charges to the managed account \"roll up\" to the manager account. If true, the managed account will not have its own balance and will use the shared balance with the manager account. This value cannot be changed after account creation without going through Telnyx support as changes require manual updates to the account ledger. Defaults to false. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**email** | **String** | The email address for the managed account. If not provided, the email address will be generated based on the email address of the manager account. | [optional] | +|**password** | **String** | Password for the managed account. If a password is not supplied, the account will not be able to be signed into directly. (A password reset may still be performed later to enable sign-in via password.) | [optional] | +|**businessName** | **String** | The name of the business for which the new managed account is being created, that will be used as the managed accounts's organization's name. | | +|**managedAccountAllowCustomPricing** | **Boolean** | Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. This value may be changed after creation, but there may be time lag between when the value is changed and pricing changes take effect. | [optional] | +|**rollupBilling** | **Boolean** | Boolean value that indicates if the billing information and charges to the managed account \"roll up\" to the manager account. If true, the managed account will not have its own balance and will use the shared balance with the manager account. This value cannot be changed after account creation without going through Telnyx support as changes require manual updates to the account ledger. Defaults to false. | [optional] | diff --git a/docs/CreateMessageRequest.md b/docs/CreateMessageRequest.md index c3f85a5a..5c1deb5b 100644 --- a/docs/CreateMessageRequest.md +++ b/docs/CreateMessageRequest.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). **Required if sending with a phone number, short code, or alphanumeric sender ID.** | [optional] -**messagingProfileId** | **String** | Unique identifier for a messaging profile. **Required if sending via number pool or with an alphanumeric sender ID.** | [optional] -**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | -**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] -**subject** | **String** | Subject of multimedia message | [optional] -**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] -**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] -**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**from** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). **Required if sending with a phone number, short code, or alphanumeric sender ID.** | [optional] | +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. **Required if sending via number pool or with an alphanumeric sender ID.** | [optional] | +|**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | | +|**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] | +|**subject** | **String** | Subject of multimedia message | [optional] | +|**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] | +|**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] | +|**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] | ## Enum: TypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | diff --git a/docs/CreateMessagingHostedNumberOrderRequest.md b/docs/CreateMessagingHostedNumberOrderRequest.md index 7067546b..d7a630d4 100644 --- a/docs/CreateMessagingHostedNumberOrderRequest.md +++ b/docs/CreateMessagingHostedNumberOrderRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumbers** | **List<String>** | Phone numbers to be used for hosted messaging. | [optional] -**messagingProfileId** | **String** | Automatically associate the number with this messaging profile ID when the order is complete. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | **List<String>** | Phone numbers to be used for hosted messaging. | [optional] | +|**messagingProfileId** | **String** | Automatically associate the number with this messaging profile ID when the order is complete. | [optional] | diff --git a/docs/CreateMessagingProfileRequest.md b/docs/CreateMessagingProfileRequest.md index 6c004333..59675dfc 100644 --- a/docs/CreateMessagingProfileRequest.md +++ b/docs/CreateMessagingProfileRequest.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A user friendly name for the messaging profile. | -**enabled** | **Boolean** | Specifies whether the messaging profile is enabled or not. | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this messaging profile will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this messaging profile will be sent if sending to the primary URL fails. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 2010-04-01 format. | [optional] -**numberPoolSettings** | [**NumberPoolSettings**](NumberPoolSettings.md) | | [optional] -**urlShortenerSettings** | [**UrlShortenerSettings**](UrlShortenerSettings.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A user friendly name for the messaging profile. | | +|**enabled** | **Boolean** | Specifies whether the messaging profile is enabled or not. | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this messaging profile will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this messaging profile will be sent if sending to the primary URL fails. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 2010-04-01 format. | [optional] | +|**numberPoolSettings** | [**NumberPoolSettings**](NumberPoolSettings.md) | | [optional] | +|**urlShortenerSettings** | [**UrlShortenerSettings**](UrlShortenerSettings.md) | | [optional] | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" -_2010_04_01 | "2010-04-01" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | +| _2010_04_01 | "2010-04-01" | diff --git a/docs/CreateNotificationChannels200Response.md b/docs/CreateNotificationChannels200Response.md new file mode 100644 index 00000000..3ab4cf89 --- /dev/null +++ b/docs/CreateNotificationChannels200Response.md @@ -0,0 +1,13 @@ + + +# CreateNotificationChannels200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NotificationChannel**](NotificationChannel.md) | | [optional] | + + + diff --git a/docs/CreateNotificationProfile200Response.md b/docs/CreateNotificationProfile200Response.md new file mode 100644 index 00000000..5814d9a9 --- /dev/null +++ b/docs/CreateNotificationProfile200Response.md @@ -0,0 +1,13 @@ + + +# CreateNotificationProfile200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NotificationProfile**](NotificationProfile.md) | | [optional] | + + + diff --git a/docs/CreateNotificationSetting200Response.md b/docs/CreateNotificationSetting200Response.md new file mode 100644 index 00000000..a81d16ec --- /dev/null +++ b/docs/CreateNotificationSetting200Response.md @@ -0,0 +1,13 @@ + + +# CreateNotificationSetting200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NotificationSetting**](NotificationSetting.md) | | [optional] | + + + diff --git a/docs/CreateNumberBlockOrderRequest.md b/docs/CreateNumberBlockOrderRequest.md index 3abf7f04..aa1f7951 100644 --- a/docs/CreateNumberBlockOrderRequest.md +++ b/docs/CreateNumberBlockOrderRequest.md @@ -5,31 +5,31 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**startingNumber** | **String** | Starting phone number block | -**range** | **Integer** | The phone number range included in the block. | -**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] -**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] -**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] -**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] -**errors** | **String** | Errors the reservation could happen upon | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**startingNumber** | **String** | Starting phone number block | | +|**range** | **Integer** | The phone number range included in the block. | | +|**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] | +|**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] | +|**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] | +|**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] | +|**errors** | **String** | Errors the reservation could happen upon | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/CreateNumberOrderDocumentRequest.md b/docs/CreateNumberOrderDocumentRequest.md index 33d184b9..a4e4d620 100644 --- a/docs/CreateNumberOrderDocumentRequest.md +++ b/docs/CreateNumberOrderDocumentRequest.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**fileId** | **String** | The id of the file to associate as a number order document. | [optional] -**requirementsId** | **String** | Unique id for a requirement. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**requirementType** | [**RequirementTypeEnum**](#RequirementTypeEnum) | | [optional] [readonly] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order document was uploaded. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**fileId** | **String** | The id of the file to associate as a number order document. | [optional] | +|**requirementsId** | **String** | Unique id for a requirement. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**requirementType** | [**RequirementTypeEnum**](#RequirementTypeEnum) | | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order document was uploaded. | [optional] [readonly] | ## Enum: RequirementTypeEnum -Name | Value ----- | ----- -ADDRESS_PROOF | "address_proof" -IDENTIFICATION | "identification" -REG_FORM | "reg_form" +| Name | Value | +|---- | -----| +| ADDRESS_PROOF | "address_proof" | +| IDENTIFICATION | "identification" | +| REG_FORM | "reg_form" | diff --git a/docs/CreateNumberOrderRequest.md b/docs/CreateNumberOrderRequest.md index 8b3c8da6..53718986 100644 --- a/docs/CreateNumberOrderRequest.md +++ b/docs/CreateNumberOrderRequest.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] -**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] -**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] -**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] -**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] | +|**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] | +|**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] | +|**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] | +|**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/CreateNumberPoolMessageRequest.md b/docs/CreateNumberPoolMessageRequest.md index 2bddb93e..c29330c6 100644 --- a/docs/CreateNumberPoolMessageRequest.md +++ b/docs/CreateNumberPoolMessageRequest.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messagingProfileId** | **String** | Unique identifier for a messaging profile. | -**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | -**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] -**subject** | **String** | Subject of multimedia message | [optional] -**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] -**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] -**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. | | +|**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | | +|**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] | +|**subject** | **String** | Subject of multimedia message | [optional] | +|**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] | +|**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] | +|**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] | ## Enum: TypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | diff --git a/docs/CreateNumberReservationRequest.md b/docs/CreateNumberReservationRequest.md index 298c7540..3935f80c 100644 --- a/docs/CreateNumberReservationRequest.md +++ b/docs/CreateNumberReservationRequest.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumbers** | [**List<ReservedPhoneNumber>**](ReservedPhoneNumber.md) | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the entire reservation. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the numbers reservation was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number reservation was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumbers** | [**List<ReservedPhoneNumber>**](ReservedPhoneNumber.md) | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the entire reservation. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the numbers reservation was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number reservation was updated. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/CreateOrUpdateBusinessIdentityRequest.md b/docs/CreateOrUpdateBusinessIdentityRequest.md index d4b0f012..9fa501cd 100644 --- a/docs/CreateOrUpdateBusinessIdentityRequest.md +++ b/docs/CreateOrUpdateBusinessIdentityRequest.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name associated with the authentication provider. | -**businessEmail** | **BusinessEmail** | | [optional] -**businessName** | **String** | The business name associated with the address. An address must have either a first last name or a business name. | [optional] -**businessPhoneNumber** | **BusinessPhoneNumber** | | [optional] -**businessDescription** | **BusinessDescription** | | [optional] -**submissionAcknowledgement** | **SubmissionAcknowledgement** | | [optional] -**websiteUrl** | **WebsiteUrl** | | [optional] -**address** | **Address** | | [optional] -**contacts** | **Contacts** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The name associated with the authentication provider. | | +|**businessEmail** | **BusinessEmail** | | [optional] | +|**businessName** | **BusinessName** | | [optional] | +|**businessPhoneNumber** | **BusinessPhoneNumber** | | [optional] | +|**businessDescription** | **BusinessDescription** | | [optional] | +|**submissionAcknowledgement** | **SubmissionAcknowledgement** | | [optional] | +|**websiteUrl** | **WebsiteUrl** | | [optional] | +|**address** | **Address** | | [optional] | +|**contacts** | **Contacts** | | [optional] | diff --git a/docs/CreateOutboundVoiceProfileRequest.md b/docs/CreateOutboundVoiceProfileRequest.md index bb86459b..d5aeaa66 100644 --- a/docs/CreateOutboundVoiceProfileRequest.md +++ b/docs/CreateOutboundVoiceProfileRequest.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A user-supplied name to help with organization. | -**trafficType** | **TrafficType** | | [optional] -**servicePlan** | **ServicePlan** | | [optional] -**concurrentCallLimit** | **Integer** | Must be no more than your global concurrent call limit. Null means no limit. | [optional] -**enabled** | **Boolean** | Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections. | [optional] -**tags** | **List<String>** | | [optional] -**usagePaymentMethod** | **UsagePaymentMethod** | | [optional] -**whitelistedDestinations** | **List<String>** | The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2. | [optional] -**maxDestinationRate** | **BigDecimal** | Maximum rate (price per minute) for a Destination to be allowed when making outbound calls. | [optional] -**dailySpendLimit** | **String** | The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice profile in a day before disallowing new calls. | [optional] -**dailySpendLimitEnabled** | **Boolean** | Specifies whether to enforce the daily_spend_limit on this outbound voice profile. | [optional] -**callRecording** | [**OutboundCallRecording**](OutboundCallRecording.md) | | [optional] -**billingGroupId** | **UUID** | The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A user-supplied name to help with organization. | | +|**trafficType** | **TrafficType** | | [optional] | +|**servicePlan** | **ServicePlan** | | [optional] | +|**concurrentCallLimit** | **Integer** | Must be no more than your global concurrent call limit. Null means no limit. | [optional] | +|**enabled** | **Boolean** | Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections. | [optional] | +|**tags** | **List<String>** | | [optional] | +|**usagePaymentMethod** | **UsagePaymentMethod** | | [optional] | +|**whitelistedDestinations** | **List<String>** | The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2. | [optional] | +|**maxDestinationRate** | **BigDecimal** | Maximum rate (price per minute) for a Destination to be allowed when making outbound calls. | [optional] | +|**dailySpendLimit** | **String** | The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice profile in a day before disallowing new calls. | [optional] | +|**dailySpendLimitEnabled** | **Boolean** | Specifies whether to enforce the daily_spend_limit on this outbound voice profile. | [optional] | +|**callRecording** | [**OutboundCallRecording**](OutboundCallRecording.md) | | [optional] | +|**billingGroupId** | **UUID** | The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned). | [optional] | diff --git a/docs/CreatePortingOrder.md b/docs/CreatePortingOrder.md index 70ebf302..4c51f22a 100644 --- a/docs/CreatePortingOrder.md +++ b/docs/CreatePortingOrder.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumbers** | **List<String>** | The list of +E.164 formatted phone numbers | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | **List<String>** | The list of +E.164 formatted phone numbers | | diff --git a/docs/CreatePortingOrder201Response.md b/docs/CreatePortingOrder201Response.md new file mode 100644 index 00000000..1b724429 --- /dev/null +++ b/docs/CreatePortingOrder201Response.md @@ -0,0 +1,13 @@ + + +# CreatePortingOrder201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrder>**](PortingOrder.md) | | [optional] | + + + diff --git a/docs/CreatePortingOrderComment.md b/docs/CreatePortingOrderComment.md index b2f4331a..717c5a76 100644 --- a/docs/CreatePortingOrderComment.md +++ b/docs/CreatePortingOrderComment.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**body** | **String** | | [optional] | diff --git a/docs/CreatePortingOrderComment201Response.md b/docs/CreatePortingOrderComment201Response.md new file mode 100644 index 00000000..ffccc0f2 --- /dev/null +++ b/docs/CreatePortingOrderComment201Response.md @@ -0,0 +1,13 @@ + + +# CreatePortingOrderComment201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortingOrdersComment**](PortingOrdersComment.md) | | [optional] | + + + diff --git a/docs/CreatePrivateWirelessGateway202Response.md b/docs/CreatePrivateWirelessGateway202Response.md new file mode 100644 index 00000000..f2c695d3 --- /dev/null +++ b/docs/CreatePrivateWirelessGateway202Response.md @@ -0,0 +1,13 @@ + + +# CreatePrivateWirelessGateway202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PrivateWirelessGateway**](PrivateWirelessGateway.md) | | [optional] | + + + diff --git a/docs/CreatePrivateWirelessGatewayRequest.md b/docs/CreatePrivateWirelessGatewayRequest.md new file mode 100644 index 00000000..58df443c --- /dev/null +++ b/docs/CreatePrivateWirelessGatewayRequest.md @@ -0,0 +1,14 @@ + + +# CreatePrivateWirelessGatewayRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**networkId** | **UUID** | The identification of the related network resource. | | +|**name** | **String** | The private wireless gateway name. | | + + + diff --git a/docs/CreatePushCredentialRequest.md b/docs/CreatePushCredentialRequest.md new file mode 100644 index 00000000..41d5a40b --- /dev/null +++ b/docs/CreatePushCredentialRequest.md @@ -0,0 +1,37 @@ + + +# CreatePushCredentialRequest + +## oneOf schemas +* [CreateAndroidPushCredentialRequest](CreateAndroidPushCredentialRequest.md) +* [CreateIosPushCredentialRequest](CreateIosPushCredentialRequest.md) + +## Example +```java +// Import classes: +import com.telnyx.sdk.model.CreatePushCredentialRequest; +import com.telnyx.sdk.model.CreateAndroidPushCredentialRequest; +import com.telnyx.sdk.model.CreateIosPushCredentialRequest; + +public class Example { + public static void main(String[] args) { + CreatePushCredentialRequest exampleCreatePushCredentialRequest = new CreatePushCredentialRequest(); + + // create a new CreateAndroidPushCredentialRequest + CreateAndroidPushCredentialRequest exampleCreateAndroidPushCredentialRequest = new CreateAndroidPushCredentialRequest(); + // set CreatePushCredentialRequest to CreateAndroidPushCredentialRequest + exampleCreatePushCredentialRequest.setActualInstance(exampleCreateAndroidPushCredentialRequest); + // to get back the CreateAndroidPushCredentialRequest set earlier + CreateAndroidPushCredentialRequest testCreateAndroidPushCredentialRequest = (CreateAndroidPushCredentialRequest) exampleCreatePushCredentialRequest.getActualInstance(); + + // create a new CreateIosPushCredentialRequest + CreateIosPushCredentialRequest exampleCreateIosPushCredentialRequest = new CreateIosPushCredentialRequest(); + // set CreatePushCredentialRequest to CreateIosPushCredentialRequest + exampleCreatePushCredentialRequest.setActualInstance(exampleCreateIosPushCredentialRequest); + // to get back the CreateIosPushCredentialRequest set earlier + CreateIosPushCredentialRequest testCreateIosPushCredentialRequest = (CreateIosPushCredentialRequest) exampleCreatePushCredentialRequest.getActualInstance(); + } +} +``` + + diff --git a/docs/CreateRoom201Response.md b/docs/CreateRoom201Response.md new file mode 100644 index 00000000..54463f1e --- /dev/null +++ b/docs/CreateRoom201Response.md @@ -0,0 +1,13 @@ + + +# CreateRoom201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Room**](Room.md) | | [optional] | + + + diff --git a/docs/CreateRoomClientToken201Response.md b/docs/CreateRoomClientToken201Response.md new file mode 100644 index 00000000..60e4ae0c --- /dev/null +++ b/docs/CreateRoomClientToken201Response.md @@ -0,0 +1,13 @@ + + +# CreateRoomClientToken201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CreateRoomClientToken201ResponseData**](CreateRoomClientToken201ResponseData.md) | | [optional] | + + + diff --git a/docs/CreateRoomClientToken201ResponseData.md b/docs/CreateRoomClientToken201ResponseData.md new file mode 100644 index 00000000..e2155820 --- /dev/null +++ b/docs/CreateRoomClientToken201ResponseData.md @@ -0,0 +1,16 @@ + + +# CreateRoomClientToken201ResponseData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **String** | | [optional] | +|**tokenExpiresAt** | **String** | ISO 8601 timestamp when the token expires. | [optional] | +|**refreshToken** | **String** | | [optional] | +|**refreshTokenExpiresAt** | **String** | ISO 8601 timestamp when the refresh token expires. | [optional] | + + + diff --git a/docs/CreateRoomClientTokenRequest.md b/docs/CreateRoomClientTokenRequest.md index 36d54b2b..145aff30 100644 --- a/docs/CreateRoomClientTokenRequest.md +++ b/docs/CreateRoomClientTokenRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tokenTtlSecs** | **Integer** | The time to live in seconds of the Client Token, after that time the Client Token is invalid and can't be used to join a Room. | [optional] -**refreshTokenTtlSecs** | **Integer** | The time to live in seconds of the Refresh Token, after that time the Refresh Token is invalid and can't be used to refresh Client Token. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**tokenTtlSecs** | **Integer** | The time to live in seconds of the Client Token, after that time the Client Token is invalid and can't be used to join a Room. | [optional] | +|**refreshTokenTtlSecs** | **Integer** | The time to live in seconds of the Refresh Token, after that time the Refresh Token is invalid and can't be used to refresh Client Token. | [optional] | diff --git a/docs/CreateRoomComposition202Response.md b/docs/CreateRoomComposition202Response.md new file mode 100644 index 00000000..c684cdcf --- /dev/null +++ b/docs/CreateRoomComposition202Response.md @@ -0,0 +1,13 @@ + + +# CreateRoomComposition202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RoomComposition**](RoomComposition.md) | | [optional] | + + + diff --git a/docs/CreateRoomCompositionRequest.md b/docs/CreateRoomCompositionRequest.md index 1d2a2b76..0d9cbe00 100644 --- a/docs/CreateRoomCompositionRequest.md +++ b/docs/CreateRoomCompositionRequest.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**format** | **String** | The desired format of the room composition. | [optional] -**resolution** | **String** | The desired resolution (width/height in pixels) of the resulting video of the room composition. Both width and height are required to be between 16 and 1280; and width * height should not exceed 1280 * 720 | [optional] -**sessionId** | **UUID** | id of the room session associated with the room composition. | [optional] -**videoLayout** | [**Map<String, VideoRegion>**](VideoRegion.md) | Describes the video layout of the room composition in terms of regions. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this room composition will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room composition will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**format** | **String** | The desired format of the room composition. | [optional] | +|**resolution** | **String** | The desired resolution (width/height in pixels) of the resulting video of the room composition. Both width and height are required to be between 16 and 1280; and width * height should not exceed 1280 * 720 | [optional] | +|**sessionId** | **UUID** | id of the room session associated with the room composition. | [optional] | +|**videoLayout** | [**Map<String, VideoRegion>**](VideoRegion.md) | Describes the video layout of the room composition in terms of regions. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this room composition will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room composition will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | diff --git a/docs/CreateRoomRequest.md b/docs/CreateRoomRequest.md index 59e991ab..29d92d3a 100644 --- a/docs/CreateRoomRequest.md +++ b/docs/CreateRoomRequest.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueName** | **String** | The unique (within the Telnyx account scope) name of the room. | [optional] -**maxParticipants** | **Integer** | The maximum amount of participants allowed in a room. If new participants try to join after that limit is reached, their request will be rejected. | [optional] -**enableRecording** | **Boolean** | Enable or disable recording for that room. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this room will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uniqueName** | **String** | The unique (within the Telnyx account scope) name of the room. | [optional] | +|**maxParticipants** | **Integer** | The maximum amount of participants allowed in a room. If new participants try to join after that limit is reached, their request will be rejected. | [optional] | +|**enableRecording** | **Boolean** | Enable or disable recording for that room. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this room will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | diff --git a/docs/CreateShortCodeMessageRequest.md b/docs/CreateShortCodeMessageRequest.md index 1de498eb..aa27f345 100644 --- a/docs/CreateShortCodeMessageRequest.md +++ b/docs/CreateShortCodeMessageRequest.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | **String** | Phone number, in +E.164 format, used to send the message. | -**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | -**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] -**subject** | **String** | Subject of multimedia message | [optional] -**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] -**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] -**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**from** | **String** | Phone number, in +E.164 format, used to send the message. | | +|**to** | **String** | Receiving address (+E.164 formatted phone number or short code). | | +|**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] | +|**subject** | **String** | Subject of multimedia message | [optional] | +|**mediaUrls** | **List<String>** | A list of media URLs. The total media size must be less than 1 MB. **Required for MMS** | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] | +|**useProfileWebhooks** | **Boolean** | If the profile this number is associated with has webhooks, use them for delivery notifications. If webhooks are also specified on the message itself, they will be attempted first, then those on the profile. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The protocol for sending the message, either SMS or MMS. | [optional] | +|**autoDetect** | **Boolean** | Automatically detect if an SMS message is unusually long and exceeds a recommended limit of message parts. | [optional] | ## Enum: TypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | diff --git a/docs/CreateTexmlApplicationRequest.md b/docs/CreateTexmlApplicationRequest.md index ddeff00b..f5a41026 100644 --- a/docs/CreateTexmlApplicationRequest.md +++ b/docs/CreateTexmlApplicationRequest.md @@ -5,39 +5,39 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**friendlyName** | **String** | A user-assigned name to help manage the application. | -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**dtmfType** | **DtmfType** | | [optional] -**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] -**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] -**voiceUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks. | -**voiceFallbackUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. | [optional] -**voiceMethod** | [**VoiceMethodEnum**](#VoiceMethodEnum) | HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. | [optional] -**statusCallback** | **String** | URL for Telnyx to send requests to containing information about call progress events. | [optional] -**statusCallbackMethod** | [**StatusCallbackMethodEnum**](#StatusCallbackMethodEnum) | HTTP request method Telnyx should use when requesting the status_callback URL. | [optional] -**inbound** | [**CreateTexmlApplicationRequestInbound**](CreateTexmlApplicationRequestInbound.md) | | [optional] -**outbound** | [**CreateTexmlApplicationRequestOutbound**](CreateTexmlApplicationRequestOutbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**friendlyName** | **String** | A user-assigned name to help manage the application. | | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] | +|**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] | +|**voiceUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks. | | +|**voiceFallbackUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. | [optional] | +|**voiceMethod** | [**VoiceMethodEnum**](#VoiceMethodEnum) | HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. | [optional] | +|**statusCallback** | **String** | URL for Telnyx to send requests to containing information about call progress events. | [optional] | +|**statusCallbackMethod** | [**StatusCallbackMethodEnum**](#StatusCallbackMethodEnum) | HTTP request method Telnyx should use when requesting the status_callback URL. | [optional] | +|**inbound** | [**CreateTexmlApplicationRequestInbound**](CreateTexmlApplicationRequestInbound.md) | | [optional] | +|**outbound** | [**CreateTexmlApplicationRequestOutbound**](CreateTexmlApplicationRequestOutbound.md) | | [optional] | ## Enum: VoiceMethodEnum -Name | Value ----- | ----- -GET | "get" -POST | "post" +| Name | Value | +|---- | -----| +| GET | "get" | +| POST | "post" | ## Enum: StatusCallbackMethodEnum -Name | Value ----- | ----- -GET | "get" -POST | "post" +| Name | Value | +|---- | -----| +| GET | "get" | +| POST | "post" | diff --git a/docs/CreateTexmlApplicationRequestInbound.md b/docs/CreateTexmlApplicationRequestInbound.md index 89ac4e23..97aff7c4 100644 --- a/docs/CreateTexmlApplicationRequestInbound.md +++ b/docs/CreateTexmlApplicationRequestInbound.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] -**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] -**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] | +|**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] | +|**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] | ## Enum: SipSubdomainReceiveSettingsEnum -Name | Value ----- | ----- -ONLY_MY_CONNECTIONS | "only_my_connections" -FROM_ANYONE | "from_anyone" +| Name | Value | +|---- | -----| +| ONLY_MY_CONNECTIONS | "only_my_connections" | +| FROM_ANYONE | "from_anyone" | diff --git a/docs/CreateTexmlApplicationRequestOutbound.md b/docs/CreateTexmlApplicationRequestOutbound.md index 7727b752..3b05e195 100644 --- a/docs/CreateTexmlApplicationRequestOutbound.md +++ b/docs/CreateTexmlApplicationRequestOutbound.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] -**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] | +|**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] | diff --git a/docs/CreateVerificationRequestCall.md b/docs/CreateVerificationRequestCall.md index e660c039..cb62e1b4 100644 --- a/docs/CreateVerificationRequestCall.md +++ b/docs/CreateVerificationRequestCall.md @@ -6,12 +6,12 @@ The request body when creating a verification. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | +E164 formatted phone number. | -**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | -**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] -**callTimeoutSecs** | **Integer** | Must be less than the profile's default_verification_timeout_secs or timeout_secs, whichever is lesser. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | +E164 formatted phone number. | | +|**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | | +|**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] | +|**callTimeoutSecs** | **Integer** | Must be less than the profile's default_verification_timeout_secs or timeout_secs, whichever is lesser. | [optional] | diff --git a/docs/CreateVerificationRequestFlashcall.md b/docs/CreateVerificationRequestFlashcall.md index 6376883b..47e941a0 100644 --- a/docs/CreateVerificationRequestFlashcall.md +++ b/docs/CreateVerificationRequestFlashcall.md @@ -6,11 +6,11 @@ The request body when creating a verification. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | +E164 formatted phone number. | -**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | -**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | +E164 formatted phone number. | | +|**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | | +|**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] | diff --git a/docs/CreateVerificationRequestPSD2.md b/docs/CreateVerificationRequestPSD2.md index 893675af..f3ed5486 100644 --- a/docs/CreateVerificationRequestPSD2.md +++ b/docs/CreateVerificationRequestPSD2.md @@ -6,14 +6,14 @@ The request body when creating a verification. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | +E164 formatted phone number. | -**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | -**currency** | **Currencies** | | -**amount** | **String** | | -**payee** | **String** | | -**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | +E164 formatted phone number. | | +|**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | | +|**currency** | **Currencies** | | | +|**amount** | **String** | | | +|**payee** | **String** | | | +|**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] | diff --git a/docs/CreateVerificationRequestSMS.md b/docs/CreateVerificationRequestSMS.md index eec6b36e..e1cc7866 100644 --- a/docs/CreateVerificationRequestSMS.md +++ b/docs/CreateVerificationRequestSMS.md @@ -6,11 +6,11 @@ The request body when creating a verification. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | +E164 formatted phone number. | -**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | -**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | +E164 formatted phone number. | | +|**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | | +|**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] | diff --git a/docs/CreateVerificationRequestWhatsapp.md b/docs/CreateVerificationRequestWhatsapp.md index 3a6fb871..608c6b14 100644 --- a/docs/CreateVerificationRequestWhatsapp.md +++ b/docs/CreateVerificationRequestWhatsapp.md @@ -6,11 +6,11 @@ The request body when creating a verification. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | +E164 formatted phone number. | -**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | -**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | +E164 formatted phone number. | | +|**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | | +|**timeoutSecs** | **Integer** | The number of seconds the verification code is valid for. | [optional] | diff --git a/docs/CreateVerificationResponse.md b/docs/CreateVerificationResponse.md index 882d2f01..af3a2b05 100644 --- a/docs/CreateVerificationResponse.md +++ b/docs/CreateVerificationResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Verification**](Verification.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Verification**](Verification.md) | | | diff --git a/docs/CreateVerifiedCallsDisplayProfileRequest.md b/docs/CreateVerifiedCallsDisplayProfileRequest.md index 88d7311f..2fff7a2b 100644 --- a/docs/CreateVerifiedCallsDisplayProfileRequest.md +++ b/docs/CreateVerifiedCallsDisplayProfileRequest.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**businessIdentityId** | **UUID** | The ID of the business identity that owns the record | -**name** | **String** | The name associated with the authentication provider. | -**displayName** | **DisplayName** | | [optional] -**logoUrl** | **LogoUrl** | | [optional] -**callReasons** | **CallReasons** | | [optional] -**phoneNumbers** | **PhoneNumbers** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**businessIdentityId** | **UUID** | The ID of the business identity that owns the record | | +|**name** | **String** | The name associated with the authentication provider. | | +|**displayName** | **DisplayName** | | [optional] | +|**logoUrl** | **LogoUrl** | | [optional] | +|**callReasons** | **CallReasons** | | [optional] | +|**phoneNumbers** | **PhoneNumbers** | | [optional] | diff --git a/docs/CreateVerifyProfileCallRequest.md b/docs/CreateVerifyProfileCallRequest.md index 52306900..f079c126 100644 --- a/docs/CreateVerifyProfileCallRequest.md +++ b/docs/CreateVerifyProfileCallRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**speechTemplate** | **String** | Optionally sets a speech text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**defaultCallTimeoutSecs** | **Integer** | Must be less than default_verification_timeout_secs | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**speechTemplate** | **String** | Optionally sets a speech text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] | +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**defaultCallTimeoutSecs** | **Integer** | Must be less than default_verification_timeout_secs | [optional] | diff --git a/docs/CreateVerifyProfileFlashcallRequest.md b/docs/CreateVerifyProfileFlashcallRequest.md index a795a6aa..afa779cb 100644 --- a/docs/CreateVerifyProfileFlashcallRequest.md +++ b/docs/CreateVerifyProfileFlashcallRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | diff --git a/docs/CreateVerifyProfilePSD2Request.md b/docs/CreateVerifyProfilePSD2Request.md index 15bebc7b..4a2dcc62 100644 --- a/docs/CreateVerifyProfilePSD2Request.md +++ b/docs/CreateVerifyProfilePSD2Request.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | diff --git a/docs/CreateVerifyProfileRequest.md b/docs/CreateVerifyProfileRequest.md index 0702f204..41b26c0f 100644 --- a/docs/CreateVerifyProfileRequest.md +++ b/docs/CreateVerifyProfileRequest.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | -**webhookUrl** | **String** | | [optional] -**webhookFailoverUrl** | **String** | | [optional] -**sms** | **CreateVerifyProfileSMSRequest** | | [optional] -**psd2** | **CreateVerifyProfilePSD2Request** | | [optional] -**whatsapp** | **CreateVerifyProfileWhatsappRequest** | | [optional] -**call** | **CreateVerifyProfileCallRequest** | | [optional] -**flashcall** | **CreateVerifyProfileFlashcallRequest** | | [optional] -**language** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | | +|**webhookUrl** | **String** | | [optional] | +|**webhookFailoverUrl** | **String** | | [optional] | +|**sms** | **CreateVerifyProfileSMSRequest** | | [optional] | +|**psd2** | **CreateVerifyProfilePSD2Request** | | [optional] | +|**whatsapp** | **CreateVerifyProfileWhatsappRequest** | | [optional] | +|**call** | **CreateVerifyProfileCallRequest** | | [optional] | +|**flashcall** | **CreateVerifyProfileFlashcallRequest** | | [optional] | +|**language** | **String** | | [optional] | diff --git a/docs/CreateVerifyProfileSMSRequest.md b/docs/CreateVerifyProfileSMSRequest.md index d63d0502..af56cf22 100644 --- a/docs/CreateVerifyProfileSMSRequest.md +++ b/docs/CreateVerifyProfileSMSRequest.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messagingEnabled** | **Boolean** | Enables SMS text messaging for the Verify profile. | [optional] -**rcsEnabled** | **Boolean** | Enables RCS messaging for the Verify profile. | [optional] -**messagingTemplate** | **String** | Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**vsmsEnabled** | **Boolean** | Enables VSMS for the Verify profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messagingEnabled** | **Boolean** | Enables SMS text messaging for the Verify profile. | [optional] | +|**rcsEnabled** | **Boolean** | Enables RCS messaging for the Verify profile. | [optional] | +|**messagingTemplate** | **String** | Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] | +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**vsmsEnabled** | **Boolean** | Enables VSMS for the Verify profile. | [optional] | diff --git a/docs/CreateVerifyProfileWhatsappRequest.md b/docs/CreateVerifyProfileWhatsappRequest.md index dd5b70f4..95ac5948 100644 --- a/docs/CreateVerifyProfileWhatsappRequest.md +++ b/docs/CreateVerifyProfileWhatsappRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**appName** | **String** | The name that identifies the application requesting 2fa in the verification message. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**appName** | **String** | The name that identifies the application requesting 2fa in the verification message. | [optional] | diff --git a/docs/CreateWdrReport201Response.md b/docs/CreateWdrReport201Response.md new file mode 100644 index 00000000..1ec7832d --- /dev/null +++ b/docs/CreateWdrReport201Response.md @@ -0,0 +1,13 @@ + + +# CreateWdrReport201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**WdrReport**](WdrReport.md) | | [optional] | + + + diff --git a/docs/CreateWhatsAppMessageRequest.md b/docs/CreateWhatsAppMessageRequest.md index 27c30e11..134960d4 100644 --- a/docs/CreateWhatsAppMessageRequest.md +++ b/docs/CreateWhatsAppMessageRequest.md @@ -5,21 +5,19 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**whatsappUserId** | **String** | The sender's WhatsApp ID. | -**to** | **String** | The WhatsApp ID (phone number) returned from contacts endpoint. | -**type** | **MessageType** | | [optional] -**text** | [**Text**](Text.md) | | [optional] -**audio** | [**Audio**](Audio.md) | | [optional] -**image** | [**Image**](Image.md) | | [optional] -**document** | [**Document**](Document.md) | | [optional] -**video** | [**Video**](Video.md) | | [optional] -**hsm** | [**Hsm**](Hsm.md) | | [optional] -**contacts** | [**List<Contact>**](Contact.md) | | [optional] -**location** | [**Location**](Location.md) | | [optional] -**previewUrl** | **Boolean** | Specifying preview_url in the request is optional when not including a URL in your message. To include a URL preview, set preview_url to true in the message body and make sure the URL begins with http:// or https://. | [optional] -**template** | [**Template**](Template.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**whatsappUserId** | **String** | The sender's WhatsApp ID. | | +|**to** | **String** | The WhatsApp ID (phone number) returned from contacts endpoint. | | +|**type** | **MessageType** | | [optional] | +|**text** | [**Text**](Text.md) | | [optional] | +|**audio** | [**Audio**](Audio.md) | | [optional] | +|**image** | [**Image**](Image.md) | | [optional] | +|**document** | [**Document**](Document.md) | | [optional] | +|**video** | [**Video**](Video.md) | | [optional] | +|**location** | [**Location**](Location.md) | | [optional] | +|**previewUrl** | **Boolean** | Specifying preview_url in the request is optional when not including a URL in your message. To include a URL preview, set preview_url to true in the message body and make sure the URL begins with http:// or https://. | [optional] | +|**template** | [**Template**](Template.md) | | [optional] | diff --git a/docs/CreateWhatsappMessageTemplateRequestBody.md b/docs/CreateWhatsappMessageTemplateRequestBody.md new file mode 100644 index 00000000..9bc580ed --- /dev/null +++ b/docs/CreateWhatsappMessageTemplateRequestBody.md @@ -0,0 +1,112 @@ + + +# CreateWhatsappMessageTemplateRequestBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**category** | [**CategoryEnum**](#CategoryEnum) | The template category | [optional] | +|**language** | [**LanguageEnum**](#LanguageEnum) | The language of the whatsapp message template | [optional] | +|**name** | **String** | A name identifying this whatsapp message template | [optional] | +|**components** | **String** | The JSON-formatted components for the this whatsapp message template, please refer to whatsapp documentation on the correct structure for this field | [optional] | + + + +## Enum: CategoryEnum + +| Name | Value | +|---- | -----| +| ACCOUNT_UPDATE | "ACCOUNT_UPDATE" | +| PAYMENT_UPDATE | "PAYMENT_UPDATE" | +| PERSONAL_FINANCE_UPDATE | "PERSONAL_FINANCE_UPDATE" | +| SHIPPING_UPDATE | "SHIPPING_UPDATE" | +| RESERVATION_UPDATE | "RESERVATION_UPDATE" | +| ISSUE_RESOLUTION | "ISSUE_RESOLUTION" | +| APPOINTMENT_UPDATE | "APPOINTMENT_UPDATE" | +| TRANSPORTATION_UPDATE | "TRANSPORTATION_UPDATE" | +| TICKET_UPDATE | "TICKET_UPDATE" | +| ALERT_UPDATE | "ALERT_UPDATE" | +| AUTO_REPLY | "AUTO_REPLY" | + + + +## Enum: LanguageEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| SQ | "sq" | +| AR | "ar" | +| AZ | "az" | +| BN | "bn" | +| BG | "bg" | +| CA | "ca" | +| ZH_CN | "zh_CN" | +| ZH_HK | "zh_HK" | +| ZH_TW | "zh_TW" | +| HR | "hr" | +| CS | "cs" | +| DA | "da" | +| NL | "nl" | +| EN | "en" | +| EN_GB | "en_GB" | +| EN_US | "en_US" | +| ET | "et" | +| FIL | "fil" | +| FI | "fi" | +| FR | "fr" | +| KA | "ka" | +| DE | "de" | +| EL | "el" | +| GU | "gu" | +| HA | "ha" | +| HE | "he" | +| HI | "hi" | +| HU | "hu" | +| ID | "id" | +| GA | "ga" | +| IT | "it" | +| JA | "ja" | +| KN | "kn" | +| KK | "kk" | +| RW_RW | "rw_RW" | +| KO | "ko" | +| KY_KG | "ky_KG" | +| LO | "lo" | +| LV | "lv" | +| LT | "lt" | +| MK | "mk" | +| MS | "ms" | +| ML | "ml" | +| MR | "mr" | +| NB | "nb" | +| FA | "fa" | +| PL | "pl" | +| PT_BR | "pt_BR" | +| PT_PT | "pt_PT" | +| PA | "pa" | +| RO | "ro" | +| RU | "ru" | +| SR | "sr" | +| SK | "sk" | +| SL | "sl" | +| ES | "es" | +| ES_AR | "es_AR" | +| ES_ES | "es_ES" | +| ES_MX | "es_MX" | +| SW | "sw" | +| SV | "sv" | +| TA | "ta" | +| TE | "te" | +| TH | "th" | +| TR | "tr" | +| UK | "uk" | +| UR | "ur" | +| UZ | "uz" | +| VI | "vi" | +| ZU | "zu" | + + + diff --git a/docs/CredentialConnection.md b/docs/CredentialConnection.md index cb9dce07..a94d1ed9 100644 --- a/docs/CredentialConnection.md +++ b/docs/CredentialConnection.md @@ -5,49 +5,49 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the type of resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**active** | **Boolean** | Defaults to true | [optional] -**userName** | **String** | The user name to be used as part of the credentials. Must be 4-32 characters long and alphanumeric values only (no spaces or special characters). | [optional] -**password** | **String** | The password to be used as part of the credentials. Must be 8 to 128 characters long. | [optional] -**createdAt** | **String** | ISO-8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO-8601 formatted date indicating when the resource was updated. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | [optional] -**sipUriCallingPreference** | [**SipUriCallingPreferenceEnum**](#SipUriCallingPreferenceEnum) | This feature enables inbound SIP URI calls to your Credential Auth Connection. If enabled for all (unrestricted) then anyone who calls the SIP URI <your-username>@telnyx.com will be connected to your Connection. You can also choose to allow only calls that are originated on any Connections under your account (internal). | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**inbound** | [**CredentialInbound**](CredentialInbound.md) | | [optional] -**outbound** | [**CredentialOutbound**](CredentialOutbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the type of resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**active** | **Boolean** | Defaults to true | [optional] | +|**userName** | **String** | The user name to be used as part of the credentials. Must be 4-32 characters long and alphanumeric values only (no spaces or special characters). | [optional] | +|**password** | **String** | The password to be used as part of the credentials. Must be 8 to 128 characters long. | [optional] | +|**createdAt** | **String** | ISO-8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO-8601 formatted date indicating when the resource was updated. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | [optional] | +|**sipUriCallingPreference** | [**SipUriCallingPreferenceEnum**](#SipUriCallingPreferenceEnum) | This feature enables inbound SIP URI calls to your Credential Auth Connection. If enabled for all (unrestricted) then anyone who calls the SIP URI <your-username>@telnyx.com will be connected to your Connection. You can also choose to allow only calls that are originated on any Connections under your account (internal). | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**inbound** | [**CredentialInbound**](CredentialInbound.md) | | [optional] | +|**outbound** | [**CredentialOutbound**](CredentialOutbound.md) | | [optional] | ## Enum: SipUriCallingPreferenceEnum -Name | Value ----- | ----- -DISABLED | "disabled" -UNRESTRICTED | "unrestricted" -INTERNAL | "internal" +| Name | Value | +|---- | -----| +| DISABLED | "disabled" | +| UNRESTRICTED | "unrestricted" | +| INTERNAL | "internal" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/CredentialConnectionResponse.md b/docs/CredentialConnectionResponse.md index 2734ddfa..b9d23ed6 100644 --- a/docs/CredentialConnectionResponse.md +++ b/docs/CredentialConnectionResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**CredentialConnection**](CredentialConnection.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CredentialConnection**](CredentialConnection.md) | | [optional] | diff --git a/docs/CredentialConnectionsApi.md b/docs/CredentialConnectionsApi.md index 1de9fd6f..fdf45517 100644 --- a/docs/CredentialConnectionsApi.md +++ b/docs/CredentialConnectionsApi.md @@ -187,7 +187,7 @@ public class Example { CredentialConnectionsApi apiInstance = new CredentialConnectionsApi(defaultClient); Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page - String filterConnectionNameContains = "null"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. + String filterConnectionNameContains = "filterConnectionNameContains_example"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. String filterOutboundOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • connection_name: sorts the result by the connection_name field in ascending order.
  • -connection_name: sorts the result by the connection_name field in descending order.

If not given, results are sorted by created_at in descending order. try { @@ -217,7 +217,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] - **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] + **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] **filterOutboundOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] diff --git a/docs/CredentialInbound.md b/docs/CredentialInbound.md index f9c2d987..8fa5939a 100644 --- a/docs/CredentialInbound.md +++ b/docs/CredentialInbound.md @@ -5,41 +5,41 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] -**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] -**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] -**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] -**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] -**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] -**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] -**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] -**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] -**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] -**timeout2xxSecs** | **String** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] | +|**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] | +|**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] | +|**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] | +|**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] | +|**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] | +|**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] | +|**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] | +|**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] | +|**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] | +|**timeout2xxSecs** | **String** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] | ## Enum: AniNumberFormatEnum -Name | Value ----- | ----- -_E_164 | "+E.164" -E_164 | "E.164" -_E_164_NATIONAL | "+E.164-national" -E_164_NATIONAL | "E.164-national" +| Name | Value | +|---- | -----| +| _E_164 | "+E.164" | +| E_164 | "E.164" | +| _E_164_NATIONAL | "+E.164-national" | +| E_164_NATIONAL | "E.164-national" | ## Enum: DnisNumberFormatEnum -Name | Value ----- | ----- -_E164 | "+e164" -E164 | "e164" -NATIONAL | "national" -SIP_USERNAME | "sip_username" +| Name | Value | +|---- | -----| +| _E164 | "+e164" | +| E164 | "e164" | +| NATIONAL | "national" | +| SIP_USERNAME | "sip_username" | diff --git a/docs/CredentialOutbound.md b/docs/CredentialOutbound.md index 3d7f9e8a..b1228a53 100644 --- a/docs/CredentialOutbound.md +++ b/docs/CredentialOutbound.md @@ -5,40 +5,40 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callParkingEnabled** | **Boolean** | Forces all SIP calls originated on this connection to be \"parked\" instead of \"bridged\" to the destination specified on the URI. Parked calls will return ringback to the caller and will await for a Call Control command to define which action will be taken next. | [optional] -**aniOverride** | **String** | Set a phone number as the ani_override value to override caller id number on outbound calls. | [optional] -**aniOverrideType** | [**AniOverrideTypeEnum**](#AniOverrideTypeEnum) | Specifies when we apply your ani_override setting. Only applies when ani_override is not blank. | [optional] -**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] -**instantRingbackEnabled** | **Boolean** | When set, ringback will not wait for indication before sending ringback tone to calling party. | [optional] -**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] -**localization** | **String** | A 2-character country code specifying the country whose national dialing rules should be used. For example, if set to `US` then any US number can be dialed without preprending +1 to the number. When left blank, Telnyx will try US and GB dialing rules, in that order, by default. | [optional] -**t38ReinviteSource** | [**T38ReinviteSourceEnum**](#T38ReinviteSourceEnum) | This setting only affects connections with Fax-type Outbound Voice Profiles. The setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By default, Telnyx will send the re-invite. If set to `customer`, the caller is expected to send the t.38 reinvite. | [optional] -**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callParkingEnabled** | **Boolean** | Forces all SIP calls originated on this connection to be \"parked\" instead of \"bridged\" to the destination specified on the URI. Parked calls will return ringback to the caller and will await for a Call Control command to define which action will be taken next. | [optional] | +|**aniOverride** | **String** | Set a phone number as the ani_override value to override caller id number on outbound calls. | [optional] | +|**aniOverrideType** | [**AniOverrideTypeEnum**](#AniOverrideTypeEnum) | Specifies when we apply your ani_override setting. Only applies when ani_override is not blank. | [optional] | +|**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] | +|**instantRingbackEnabled** | **Boolean** | When set, ringback will not wait for indication before sending ringback tone to calling party. | [optional] | +|**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] | +|**localization** | **String** | A 2-character country code specifying the country whose national dialing rules should be used. For example, if set to `US` then any US number can be dialed without preprending +1 to the number. When left blank, Telnyx will try US and GB dialing rules, in that order, by default. | [optional] | +|**t38ReinviteSource** | [**T38ReinviteSourceEnum**](#T38ReinviteSourceEnum) | This setting only affects connections with Fax-type Outbound Voice Profiles. The setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By default, Telnyx will send the re-invite. If set to `customer`, the caller is expected to send the t.38 reinvite. | [optional] | +|**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] | ## Enum: AniOverrideTypeEnum -Name | Value ----- | ----- -ALWAYS | "always" -NORMAL | "normal" -EMERGENCY | "emergency" +| Name | Value | +|---- | -----| +| ALWAYS | "always" | +| NORMAL | "normal" | +| EMERGENCY | "emergency" | ## Enum: T38ReinviteSourceEnum -Name | Value ----- | ----- -TELNYX | "telnyx" -CUSTOMER | "customer" -DISABLED | "disabled" -PASSTHRU | "passthru" -CALLER_PASSTHRU | "caller-passthru" -CALLEE_PASSTHRU | "callee-passthru" +| Name | Value | +|---- | -----| +| TELNYX | "telnyx" | +| CUSTOMER | "customer" | +| DISABLED | "disabled" | +| PASSTHRU | "passthru" | +| CALLER_PASSTHRU | "caller-passthru" | +| CALLEE_PASSTHRU | "callee-passthru" | diff --git a/docs/CredentialsResponse.md b/docs/CredentialsResponse.md index 75bcbb86..30f757c6 100644 --- a/docs/CredentialsResponse.md +++ b/docs/CredentialsResponse.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**GCSConfiguration**](GCSConfiguration.md) | | -**connectionId** | **ConnectionId** | | -**recordType** | **String** | Identifies record type. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**GCSConfiguration**](GCSConfiguration.md) | | | +|**connectionId** | **String** | The ID of the connection used to send the fax. | | +|**recordType** | **String** | Identifies record type. | | diff --git a/docs/CsvDownload.md b/docs/CsvDownload.md index e898c84c..9491ee1f 100644 --- a/docs/CsvDownload.md +++ b/docs/CsvDownload.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**url** | **String** | The URL at which the CSV file can be retrieved. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Indicates the completion level of the CSV report. Only complete CSV download requests will be able to be retrieved. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**url** | **String** | The URL at which the CSV file can be retrieved. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Indicates the completion level of the CSV report. Only complete CSV download requests will be able to be retrieved. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -COMPLETE | "complete" -FAILED | "failed" -EXPIRED | "expired" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| COMPLETE | "complete" | +| FAILED | "failed" | +| EXPIRED | "expired" | diff --git a/docs/Currency.md b/docs/Currency.md index 2720a23c..b832d188 100644 --- a/docs/Currency.md +++ b/docs/Currency.md @@ -3,13 +3,14 @@ # Currency + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currencyCode** | **String** | | -**amount1000** | **Integer** | | -**fallbackValue** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**currencyCode** | **String** | | | +|**amount1000** | **Integer** | | | +|**fallbackValue** | **String** | | [optional] | diff --git a/docs/CursorPagination.md b/docs/CursorPagination.md new file mode 100644 index 00000000..5b8065f8 --- /dev/null +++ b/docs/CursorPagination.md @@ -0,0 +1,15 @@ + + +# CursorPagination + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cursors** | [**CursorPaginationCursors**](CursorPaginationCursors.md) | | [optional] | +|**next** | **String** | A URL to the next page of results. | [optional] | +|**previous** | **String** | A URL to the previous page of results. | [optional] | + + + diff --git a/docs/CursorPaginationCursors.md b/docs/CursorPaginationCursors.md new file mode 100644 index 00000000..8cb0ebfb --- /dev/null +++ b/docs/CursorPaginationCursors.md @@ -0,0 +1,14 @@ + + +# CursorPaginationCursors + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**before** | **String** | A cursor to use for paginating results. | [optional] | +|**after** | **String** | A cursor to use for paginating results. | [optional] | + + + diff --git a/docs/CustomSipHeader.md b/docs/CustomSipHeader.md index ac697ca6..888c95e4 100644 --- a/docs/CustomSipHeader.md +++ b/docs/CustomSipHeader.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name of the header to add. | -**value** | **String** | The value of the header. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The name of the header to add. | | +|**value** | **String** | The value of the header. | | diff --git a/docs/CustomerFacingFQDNsGetIPResponse.md b/docs/CustomerFacingFQDNsGetIPResponse.md new file mode 100644 index 00000000..52a3266d --- /dev/null +++ b/docs/CustomerFacingFQDNsGetIPResponse.md @@ -0,0 +1,14 @@ + + +# CustomerFacingFQDNsGetIPResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<IpItem>**](IpItem.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/CustomerFacingFQDNsListResponse.md b/docs/CustomerFacingFQDNsListResponse.md new file mode 100644 index 00000000..be027d97 --- /dev/null +++ b/docs/CustomerFacingFQDNsListResponse.md @@ -0,0 +1,14 @@ + + +# CustomerFacingFQDNsListResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CustomerFacingFQDNsResponseSchema>**](CustomerFacingFQDNsResponseSchema.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/CustomerFacingFQDNsPatch.md b/docs/CustomerFacingFQDNsPatch.md new file mode 100644 index 00000000..a92db246 --- /dev/null +++ b/docs/CustomerFacingFQDNsPatch.md @@ -0,0 +1,13 @@ + + +# CustomerFacingFQDNsPatch + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | | | + + + diff --git a/docs/CustomerFacingFQDNsPost.md b/docs/CustomerFacingFQDNsPost.md new file mode 100644 index 00000000..5cdbae39 --- /dev/null +++ b/docs/CustomerFacingFQDNsPost.md @@ -0,0 +1,14 @@ + + +# CustomerFacingFQDNsPost + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fqdn** | **String** | | | +|**description** | **String** | | [optional] | + + + diff --git a/docs/CustomerFacingFQDNsResponseSchema.md b/docs/CustomerFacingFQDNsResponseSchema.md new file mode 100644 index 00000000..abe391b6 --- /dev/null +++ b/docs/CustomerFacingFQDNsResponseSchema.md @@ -0,0 +1,17 @@ + + +# CustomerFacingFQDNsResponseSchema + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**fqdn** | **String** | | [optional] | +|**description** | **String** | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | [optional] | + + + diff --git a/docs/CustomerServiceRequest.md b/docs/CustomerServiceRequest.md index 9464689f..4da633f2 100644 --- a/docs/CustomerServiceRequest.md +++ b/docs/CustomerServiceRequest.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies this customer service request | [optional] [readonly] -**phoneNumber** | **String** | The phone number of the customer service request. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the customer service request | [optional] -**carrierName** | **String** | The name of the carrier that the customer service request is for. | [optional] -**name** | **String** | The name of the customer service request. | [optional] -**address** | [**CustomerServiceRequestAddress**](CustomerServiceRequestAddress.md) | | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies this customer service request | [optional] [readonly] | +|**phoneNumber** | **String** | The phone number of the customer service request. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the customer service request | [optional] | +|**carrierName** | **String** | The name of the carrier that the customer service request is for. | [optional] | +|**name** | **String** | The name of the customer service request. | [optional] | +|**address** | [**CustomerServiceRequestAddress**](CustomerServiceRequestAddress.md) | | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -COMPLETED | "completed" -FAILED | "failed" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| COMPLETED | "completed" | +| FAILED | "failed" | diff --git a/docs/CustomerServiceRequestAddress.md b/docs/CustomerServiceRequestAddress.md index 6d1310f8..90eff07c 100644 --- a/docs/CustomerServiceRequestAddress.md +++ b/docs/CustomerServiceRequestAddress.md @@ -6,12 +6,12 @@ The address of the customer service request ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**streetAddress** | **String** | The street address | [optional] -**locality** | **String** | The city of the address | [optional] -**administrativeArea** | **String** | The state of the address | [optional] -**postalCode** | **String** | The zip code of the address | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**streetAddress** | **String** | The street address | [optional] | +|**locality** | **String** | The city of the address | [optional] | +|**administrativeArea** | **String** | The state of the address | [optional] | +|**postalCode** | **String** | The zip code of the address | [optional] | diff --git a/docs/CustomerServiceRequestApi.md b/docs/CustomerServiceRequestApi.md index 5512b1a8..f43d4037 100644 --- a/docs/CustomerServiceRequestApi.md +++ b/docs/CustomerServiceRequestApi.md @@ -4,14 +4,90 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- +[**createCustomerServiceRequest**](CustomerServiceRequestApi.md#createCustomerServiceRequest) | **POST** /customer_service_requests | Create a customer service request [**getCustomerServiceRequest**](CustomerServiceRequestApi.md#getCustomerServiceRequest) | **GET** /customer_service_requests/{customer_service_request_id} | Get a customer service request +[**listCustomerServiceRequests**](CustomerServiceRequestApi.md#listCustomerServiceRequests) | **GET** /customer_service_requests | List customer service requests [**verifyPhoneNumberCoverage**](CustomerServiceRequestApi.md#verifyPhoneNumberCoverage) | **POST** /customer_service_requests/phone_number_coverages | Verify CSR phone number coverage +## createCustomerServiceRequest + +> CreateCustomerServiceRequest201Response createCustomerServiceRequest(createCustomerServiceRequestRequest) + +Create a customer service request + +Create a new customer service request for the provided phone number. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.CustomerServiceRequestApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + CustomerServiceRequestApi apiInstance = new CustomerServiceRequestApi(defaultClient); + CreateCustomerServiceRequestRequest createCustomerServiceRequestRequest = new CreateCustomerServiceRequestRequest(); // CreateCustomerServiceRequestRequest | + try { + CreateCustomerServiceRequest201Response result = apiInstance.createCustomerServiceRequest(createCustomerServiceRequestRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomerServiceRequestApi#createCustomerServiceRequest"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **createCustomerServiceRequestRequest** | [**CreateCustomerServiceRequestRequest**](CreateCustomerServiceRequestRequest.md)| | + +### Return type + +[**CreateCustomerServiceRequest201Response**](CreateCustomerServiceRequest201Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Successful Response | - | +| **401** | The required authentication headers were either invalid or not included in the request. | - | +| **403** | You do not have permission to perform the requested action on the specified resource or resources. | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **500** | An unexpected error occurred. | - | + + ## getCustomerServiceRequest -> ShowCustomerServiceRequest getCustomerServiceRequest(customerServiceRequestId) +> CreateCustomerServiceRequest201Response getCustomerServiceRequest(customerServiceRequestId) Get a customer service request @@ -40,7 +116,7 @@ public class Example { CustomerServiceRequestApi apiInstance = new CustomerServiceRequestApi(defaultClient); String customerServiceRequestId = "customerServiceRequestId_example"; // String | The ID of the customer service request try { - ShowCustomerServiceRequest result = apiInstance.getCustomerServiceRequest(customerServiceRequestId); + CreateCustomerServiceRequest201Response result = apiInstance.getCustomerServiceRequest(customerServiceRequestId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomerServiceRequestApi#getCustomerServiceRequest"); @@ -62,7 +138,7 @@ Name | Type | Description | Notes ### Return type -[**ShowCustomerServiceRequest**](ShowCustomerServiceRequest.md) +[**CreateCustomerServiceRequest201Response**](CreateCustomerServiceRequest201Response.md) ### Authorization @@ -83,9 +159,98 @@ Name | Type | Description | Notes | **500** | An unexpected error occurred. | - | +## listCustomerServiceRequests + +> ListCustomerServiceRequests200Response listCustomerServiceRequests(pageNumber, pageSize, sort, filterPhoneNumberEq, filterPhoneNumberIn, filterStatusEq, filterStatusIn, filterCreatedAtLt) + +List customer service requests + +List customer service requests. + +### Example + +```java +import java.time.OffsetDateTime; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.CustomerServiceRequestApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + CustomerServiceRequestApi apiInstance = new CustomerServiceRequestApi(defaultClient); + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String sort = "created_at"; // String | Specifies the sort order for results. If not given, results are sorted by created_at in descending order. + String filterPhoneNumberEq = "+12441239999"; // String | Filters records to those with a specified number. + List filterPhoneNumberIn = Arrays.asList(); // List | Filters records to those with at least one number in the list. + String filterStatusEq = "pending"; // String | Filters records to those with a specific status. + List filterStatusIn = Arrays.asList(); // List | Filters records to those with a least one status in the list. + OffsetDateTime filterCreatedAtLt = OffsetDateTime.parse("2020-01-01T00:00Z"); // OffsetDateTime | Filters records to those created before a specific date. + try { + ListCustomerServiceRequests200Response result = apiInstance.listCustomerServiceRequests(pageNumber, pageSize, sort, filterPhoneNumberEq, filterPhoneNumberIn, filterStatusEq, filterStatusIn, filterCreatedAtLt); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling CustomerServiceRequestApi#listCustomerServiceRequests"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **sort** | **String**| Specifies the sort order for results. If not given, results are sorted by created_at in descending order. | [optional] [enum: created_at, -created_at] + **filterPhoneNumberEq** | **String**| Filters records to those with a specified number. | [optional] + **filterPhoneNumberIn** | **List<String>**| Filters records to those with at least one number in the list. | [optional] + **filterStatusEq** | **String**| Filters records to those with a specific status. | [optional] [enum: pending, completed, failed] + **filterStatusIn** | **List<String>**| Filters records to those with a least one status in the list. | [optional] [enum: pending, completed, failed] + **filterCreatedAtLt** | **OffsetDateTime**| Filters records to those created before a specific date. | [optional] + +### Return type + +[**ListCustomerServiceRequests200Response**](ListCustomerServiceRequests200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **401** | The required authentication headers were either invalid or not included in the request. | - | +| **403** | You do not have permission to perform the requested action on the specified resource or resources. | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **500** | An unexpected error occurred. | - | + + ## verifyPhoneNumberCoverage -> ListCustomerServiceRequestPhoneNumberCoverage verifyPhoneNumberCoverage(UNKNOWN_BASE_TYPE) +> VerifyPhoneNumberCoverage201Response verifyPhoneNumberCoverage(verifyPhoneNumberCoverageRequest) Verify CSR phone number coverage @@ -112,9 +277,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); CustomerServiceRequestApi apiInstance = new CustomerServiceRequestApi(defaultClient); - UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE = new HashMap(); // UNKNOWN_BASE_TYPE | + VerifyPhoneNumberCoverageRequest verifyPhoneNumberCoverageRequest = new VerifyPhoneNumberCoverageRequest(); // VerifyPhoneNumberCoverageRequest | try { - ListCustomerServiceRequestPhoneNumberCoverage result = apiInstance.verifyPhoneNumberCoverage(UNKNOWN_BASE_TYPE); + VerifyPhoneNumberCoverage201Response result = apiInstance.verifyPhoneNumberCoverage(verifyPhoneNumberCoverageRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling CustomerServiceRequestApi#verifyPhoneNumberCoverage"); @@ -132,11 +297,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **UNKNOWN_BASE_TYPE** | **UNKNOWN_BASE_TYPE**| | + **verifyPhoneNumberCoverageRequest** | [**VerifyPhoneNumberCoverageRequest**](VerifyPhoneNumberCoverageRequest.md)| | ### Return type -[**ListCustomerServiceRequestPhoneNumberCoverage**](ListCustomerServiceRequestPhoneNumberCoverage.md) +[**VerifyPhoneNumberCoverage201Response**](VerifyPhoneNumberCoverage201Response.md) ### Authorization diff --git a/docs/CustomerServiceRequestPhoneNumberCoverage.md b/docs/CustomerServiceRequestPhoneNumberCoverage.md index aabb7178..427a79f2 100644 --- a/docs/CustomerServiceRequestPhoneNumberCoverage.md +++ b/docs/CustomerServiceRequestPhoneNumberCoverage.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number that is being verified. | [optional] -**hasCsrCoverage** | **Boolean** | Indicates whether the phone number is covered or not. | [optional] -**reason** | **String** | The reason why the phone number is not covered. Only returned if `has_csr_coverage` is false. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number that is being verified. | [optional] | +|**hasCsrCoverage** | **Boolean** | Indicates whether the phone number is covered or not. | [optional] | +|**reason** | **String** | The reason why the phone number is not covered. Only returned if `has_csr_coverage` is false. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | diff --git a/docs/CustomerServiceRequestStatusChangedEvent.md b/docs/CustomerServiceRequestStatusChangedEvent.md index 5af8b3dd..e4046ef8 100644 --- a/docs/CustomerServiceRequestStatusChangedEvent.md +++ b/docs/CustomerServiceRequestStatusChangedEvent.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies the callback event. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of the callback event. | [optional] -**payload** | [**CustomerServiceRequestStatusChangedEventPayload**](CustomerServiceRequestStatusChangedEventPayload.md) | | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the callback event occurred. | [optional] -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies the callback event. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of the callback event. | [optional] | +|**payload** | [**CustomerServiceRequestStatusChangedEventPayload**](CustomerServiceRequestStatusChangedEventPayload.md) | | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the callback event occurred. | [optional] | +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CUSTOMER_SERVICE_REQUEST_STATUS_CHANGED | "customer_service_request.status_changed" +| Name | Value | +|---- | -----| +| CUSTOMER_SERVICE_REQUEST_STATUS_CHANGED | "customer_service_request.status_changed" | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | diff --git a/docs/CustomerServiceRequestStatusChangedEventPayload.md b/docs/CustomerServiceRequestStatusChangedEventPayload.md index 43881695..689a1976 100644 --- a/docs/CustomerServiceRequestStatusChangedEventPayload.md +++ b/docs/CustomerServiceRequestStatusChangedEventPayload.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies the customer service request. | [optional] -**phoneNumber** | **String** | The phone number of the customer service request. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the customer service request | [optional] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating the last time where the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies the customer service request. | [optional] | +|**phoneNumber** | **String** | The phone number of the customer service request. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the customer service request | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating the last time where the resource was updated. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -COMPLETED | "completed" -FAILED | "failed" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| COMPLETED | "completed" | +| FAILED | "failed" | diff --git a/docs/CustomerServiceRequestsGetRequest.md b/docs/CustomerServiceRequestsGetRequest.md new file mode 100644 index 00000000..3107c9dd --- /dev/null +++ b/docs/CustomerServiceRequestsGetRequest.md @@ -0,0 +1,14 @@ + + +# CustomerServiceRequestsGetRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CustomerServiceRequestStatusChangedEvent**](CustomerServiceRequestStatusChangedEvent.md) | | [optional] | +|**meta** | [**CallbackWebhookMeta**](CallbackWebhookMeta.md) | | [optional] | + + + diff --git a/docs/DateTimeComponent.md b/docs/DateTimeComponent.md index aee8408a..5073f8b2 100644 --- a/docs/DateTimeComponent.md +++ b/docs/DateTimeComponent.md @@ -6,28 +6,28 @@ Date/time by component ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**dayOfWeek** | [**DayOfWeekEnum**](#DayOfWeekEnum) | Both strings and numbers are accepted. If different from the value derived from the date (if specified), use the derived value. | [optional] -**dayOfMonth** | **Integer** | The day of month | [optional] -**year** | **Integer** | The year | [optional] -**month** | **Integer** | The month | [optional] -**hour** | **Integer** | The hour | [optional] -**minute** | **Integer** | The minute | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dayOfWeek** | [**DayOfWeekEnum**](#DayOfWeekEnum) | Both strings and numbers are accepted. If different from the value derived from the date (if specified), use the derived value. | [optional] | +|**dayOfMonth** | **Integer** | The day of month | [optional] | +|**year** | **Integer** | The year | [optional] | +|**month** | **Integer** | The month | [optional] | +|**hour** | **Integer** | The hour | [optional] | +|**minute** | **Integer** | The minute | [optional] | ## Enum: DayOfWeekEnum -Name | Value ----- | ----- -MONDAY | 1 -TUESDAY | 2 -WEDNESDAY | 3 -THURSDAY | 4 -FRIDAY | 5 -SATURDAY | 6 -SUNDAY | 7 +| Name | Value | +|---- | -----| +| MONDAY | 1 | +| TUESDAY | 2 | +| WEDNESDAY | 3 | +| THURSDAY | 4 | +| FRIDAY | 5 | +| SATURDAY | 6 | +| SUNDAY | 7 | diff --git a/docs/DateTimeObject.md b/docs/DateTimeObject.md index 6c1d6764..267726f7 100644 --- a/docs/DateTimeObject.md +++ b/docs/DateTimeObject.md @@ -6,10 +6,10 @@ The WhatsApp Business API Client will attempt to format the date/time based on a ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**component** | [**DateTimeComponent**](DateTimeComponent.md) | | [optional] -**unixEpoch** | [**DateTimeUnixEpoch**](DateTimeUnixEpoch.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**component** | [**DateTimeComponent**](DateTimeComponent.md) | | [optional] | +|**unixEpoch** | [**DateTimeUnixEpoch**](DateTimeUnixEpoch.md) | | [optional] | diff --git a/docs/DateTimeUnixEpoch.md b/docs/DateTimeUnixEpoch.md index ca0ff299..6ae35b2a 100644 --- a/docs/DateTimeUnixEpoch.md +++ b/docs/DateTimeUnixEpoch.md @@ -6,9 +6,9 @@ Date/time by Unix epoch ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timestamp** | **Integer** | Epoch timestamp in seconds | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**timestamp** | **Integer** | Epoch timestamp in seconds | [optional] | diff --git a/docs/DetailRecord.md b/docs/DetailRecord.md index 3fc83c31..b0ee64ef 100644 --- a/docs/DetailRecord.md +++ b/docs/DetailRecord.md @@ -12,6 +12,7 @@ An object following one of the schemas published in https://developers.telnyx.co * [MessageDetailRecord](MessageDetailRecord.md) * [SimCardUsageDetailRecord](SimCardUsageDetailRecord.md) * [VerifyDetailRecord](VerifyDetailRecord.md) +* [WhatsAppConversationDetailRecord](WhatsAppConversationDetailRecord.md) * [WhatsAppDetailRecord](WhatsAppDetailRecord.md) ## Example @@ -25,6 +26,7 @@ import com.telnyx.sdk.model.MediaStorageDetailRecord; import com.telnyx.sdk.model.MessageDetailRecord; import com.telnyx.sdk.model.SimCardUsageDetailRecord; import com.telnyx.sdk.model.VerifyDetailRecord; +import com.telnyx.sdk.model.WhatsAppConversationDetailRecord; import com.telnyx.sdk.model.WhatsAppDetailRecord; public class Example { @@ -80,6 +82,13 @@ public class Example { // to get back the VerifyDetailRecord set earlier VerifyDetailRecord testVerifyDetailRecord = (VerifyDetailRecord) exampleDetailRecord.getActualInstance(); + // create a new WhatsAppConversationDetailRecord + WhatsAppConversationDetailRecord exampleWhatsAppConversationDetailRecord = new WhatsAppConversationDetailRecord(); + // set DetailRecord to WhatsAppConversationDetailRecord + exampleDetailRecord.setActualInstance(exampleWhatsAppConversationDetailRecord); + // to get back the WhatsAppConversationDetailRecord set earlier + WhatsAppConversationDetailRecord testWhatsAppConversationDetailRecord = (WhatsAppConversationDetailRecord) exampleDetailRecord.getActualInstance(); + // create a new WhatsAppDetailRecord WhatsAppDetailRecord exampleWhatsAppDetailRecord = new WhatsAppDetailRecord(); // set DetailRecord to WhatsAppDetailRecord diff --git a/docs/DetailRecordsApi.md b/docs/DetailRecordsApi.md index c018d096..04b881ee 100644 --- a/docs/DetailRecordsApi.md +++ b/docs/DetailRecordsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description Search detail records -Search for any detail record across the Telnyx Platform +Search for any detail record across the Telnyx Platform. Examples and additional information found [here](/docs/v2/debugging/detail-record-search). ### Example @@ -37,12 +37,12 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); DetailRecordsApi apiInstance = new DetailRecordsApi(defaultClient); - String filterRecordType = "messaging"; // String | Filter by the given record type - String filterDateRange = "today"; // String | Filter by the given user-friendly date range - Map filter = new HashMap(); // Map | Filter records + String filterRecordType = "amd"; // String | Filter by the given record type. + String filterDateRange = "yesterday"; // String | Filter by the given user-friendly date range. You can specify one of the following enum values, or a dynamic one using this format: last_N_days. + Map filter = new HashMap(); // Map | Filter records on a given record attribute and value.
Example: filter[status]=delivered Integer pageNumber = 1; // Integer | Page number Integer pageSize = 20; // Integer | Page size - List sort = Arrays.asList(); // List | Specifies the sort order for results + List sort = Arrays.asList(); // List | Specifies the sort order for results.
Example: sort=-created_at try { DetailRecordsSearchResponse result = apiInstance.detailRecordsSearch(filterRecordType, filterDateRange, filter, pageNumber, pageSize, sort); System.out.println(result); @@ -62,12 +62,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filterRecordType** | **String**| Filter by the given record type | - **filterDateRange** | **String**| Filter by the given user-friendly date range | [optional] - **filter** | **Map<String,Object>**| Filter records | [optional] + **filterRecordType** | **String**| Filter by the given record type. | [enum: amd, conference, conference-participant, media_storage, messaging, verify, whatsapp, whatsapp-conversation, wireless] + **filterDateRange** | **String**| Filter by the given user-friendly date range. You can specify one of the following enum values, or a dynamic one using this format: last_N_days. | [optional] [enum: yesterday, today, tomorrow, last_week, this_week, next_week, last_month, this_month, next_month] + **filter** | **Map<String,Object>**| Filter records on a given record attribute and value. <br/>Example: filter[status]=delivered | [optional] **pageNumber** | **Integer**| Page number | [optional] [default to 1] **pageSize** | **Integer**| Page size | [optional] [default to 20] - **sort** | **List<String>**| Specifies the sort order for results | [optional] + **sort** | **List<String>**| Specifies the sort order for results. <br/>Example: sort=-created_at | [optional] ### Return type diff --git a/docs/DetailRecordsSearchResponse.md b/docs/DetailRecordsSearchResponse.md index 04856554..2bdd7b49 100644 --- a/docs/DetailRecordsSearchResponse.md +++ b/docs/DetailRecordsSearchResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<DetailRecord>**](DetailRecord.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<DetailRecord>**](DetailRecord.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/DialogflowConfig.md b/docs/DialogflowConfig.md new file mode 100644 index 00000000..dae3793f --- /dev/null +++ b/docs/DialogflowConfig.md @@ -0,0 +1,14 @@ + + +# DialogflowConfig + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**analyzeSentiment** | **Boolean** | Enable sentiment analysis from Dialogflow. | [optional] | +|**partialAutomatedAgentReply** | **Boolean** | Enable partial automated agent reply from Dialogflow. | [optional] | + + + diff --git a/docs/DialogflowConnection.md b/docs/DialogflowConnection.md new file mode 100644 index 00000000..8a857963 --- /dev/null +++ b/docs/DialogflowConnection.md @@ -0,0 +1,17 @@ + + +# DialogflowConnection + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] | +|**connectionId** | **String** | Uniquely identifies a Telnyx application (Call Control). | [optional] | +|**conversationProfileId** | **String** | The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required) | [optional] | +|**environment** | **String** | Which Dialogflow environment will be used. | [optional] | +|**serviceAccount** | **String** | The JSON map to connect your Dialoglow account. | [optional] | + + + diff --git a/docs/DialogflowConnectionResponse.md b/docs/DialogflowConnectionResponse.md new file mode 100644 index 00000000..48f9af6f --- /dev/null +++ b/docs/DialogflowConnectionResponse.md @@ -0,0 +1,13 @@ + + +# DialogflowConnectionResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**DialogflowConnection**](DialogflowConnection.md) | | | + + + diff --git a/docs/DialogflowIntegrationApi.md b/docs/DialogflowIntegrationApi.md new file mode 100644 index 00000000..daa2b0ff --- /dev/null +++ b/docs/DialogflowIntegrationApi.md @@ -0,0 +1,299 @@ +# DialogflowIntegrationApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createDialogflowConnection**](DialogflowIntegrationApi.md#createDialogflowConnection) | **POST** /dialogflow_connections/{connection_id} | Create a Dialogflow Connection +[**deleteDialogflowConnection**](DialogflowIntegrationApi.md#deleteDialogflowConnection) | **DELETE** /dialogflow_connections/{connection_id} | Delete stored Dialogflow Connection +[**getDialogflowConnection**](DialogflowIntegrationApi.md#getDialogflowConnection) | **GET** /dialogflow_connections/{connection_id} | Retrieve stored Dialogflow Connection +[**updateDialogflowConnection**](DialogflowIntegrationApi.md#updateDialogflowConnection) | **PUT** /dialogflow_connections/{connection_id} | Update stored Dialogflow Connection + + + +## createDialogflowConnection + +> DialogflowConnectionResponse createDialogflowConnection(connectionId, dialogflowConnection) + +Create a Dialogflow Connection + +Save Dialogflow Credentiails to Telnyx, so it can be used with other Telnyx services. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.DialogflowIntegrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + DialogflowIntegrationApi apiInstance = new DialogflowIntegrationApi(defaultClient); + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). + DialogflowConnection dialogflowConnection = new DialogflowConnection(); // DialogflowConnection | The params expected to create/update a Dialogflow Connection for given connection_id. + try { + DialogflowConnectionResponse result = apiInstance.createDialogflowConnection(connectionId, dialogflowConnection); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DialogflowIntegrationApi#createDialogflowConnection"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | + **dialogflowConnection** | [**DialogflowConnection**](DialogflowConnection.md)| The params expected to create/update a Dialogflow Connection for given connection_id. | + +### Return type + +[**DialogflowConnectionResponse**](DialogflowConnectionResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **201** | Return details of the Dialogflow connection associated with the given CallControl connection. | - | +| **0** | Unexpected error | - | + + +## deleteDialogflowConnection + +> deleteDialogflowConnection(connectionId) + +Delete stored Dialogflow Connection + +Deletes a stored Dialogflow Connection. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.DialogflowIntegrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + DialogflowIntegrationApi apiInstance = new DialogflowIntegrationApi(defaultClient); + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). + try { + apiInstance.deleteDialogflowConnection(connectionId); + } catch (ApiException e) { + System.err.println("Exception when calling DialogflowIntegrationApi#deleteDialogflowConnection"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **204** | The Dialogflow Connection for connection_id was deleted successfully. | - | +| **0** | Unexpected error | - | + + +## getDialogflowConnection + +> DialogflowConnectionResponse getDialogflowConnection(connectionId) + +Retrieve stored Dialogflow Connection + +Return details of the Dialogflow connection associated with the given CallControl connection. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.DialogflowIntegrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + DialogflowIntegrationApi apiInstance = new DialogflowIntegrationApi(defaultClient); + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). + try { + DialogflowConnectionResponse result = apiInstance.getDialogflowConnection(connectionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DialogflowIntegrationApi#getDialogflowConnection"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | + +### Return type + +[**DialogflowConnectionResponse**](DialogflowConnectionResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Return details of the Dialogflow connection associated with the given CallControl connection. | - | +| **0** | Unexpected error | - | + + +## updateDialogflowConnection + +> DialogflowConnectionResponse updateDialogflowConnection(connectionId, dialogflowConnection) + +Update stored Dialogflow Connection + +Updates a stored Dialogflow Connection. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.DialogflowIntegrationApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + DialogflowIntegrationApi apiInstance = new DialogflowIntegrationApi(defaultClient); + String connectionId = "connectionId_example"; // String | Uniquely identifies a Telnyx application (Call Control). + DialogflowConnection dialogflowConnection = new DialogflowConnection(); // DialogflowConnection | The params expected to create/update a Dialogflow Connection for given connection_id. + try { + DialogflowConnectionResponse result = apiInstance.updateDialogflowConnection(connectionId, dialogflowConnection); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DialogflowIntegrationApi#updateDialogflowConnection"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **connectionId** | **String**| Uniquely identifies a Telnyx application (Call Control). | + **dialogflowConnection** | [**DialogflowConnection**](DialogflowConnection.md)| The params expected to create/update a Dialogflow Connection for given connection_id. | + +### Return type + +[**DialogflowConnectionResponse**](DialogflowConnectionResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Return details of the Dialogflow connection associated with the given CallControl connection. | - | +| **0** | Unexpected error | - | + diff --git a/docs/Direction.md b/docs/Direction.md index c954fa84..ac883c55 100644 --- a/docs/Direction.md +++ b/docs/Direction.md @@ -5,9 +5,9 @@ ## Enum -* `INBOUND` (value: `"INBOUND"`) +* `INBOUND` (value: `"inbound"`) -* `OUTBOUND` (value: `"OUTBOUND"`) +* `OUTBOUND` (value: `"outbound"`) diff --git a/docs/DocReqsListRequirementTypes200Response.md b/docs/DocReqsListRequirementTypes200Response.md new file mode 100644 index 00000000..a60c0787 --- /dev/null +++ b/docs/DocReqsListRequirementTypes200Response.md @@ -0,0 +1,14 @@ + + +# DocReqsListRequirementTypes200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<DocReqsRequirementType>**](DocReqsRequirementType.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/DocReqsRequirement.md b/docs/DocReqsRequirement.md index b4059d86..a7a4e41d 100644 --- a/docs/DocReqsRequirement.md +++ b/docs/DocReqsRequirement.md @@ -5,37 +5,37 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**countryCode** | **String** | The 2-character (ISO 3166-1 alpha-2) country code where this requirement applies | [optional] -**locality** | **String** | The locality where this requirement applies | [optional] -**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | Indicates the phone_number_type this requirement applies to. Leave blank if this requirement applies to all number_types. | [optional] -**action** | [**ActionEnum**](#ActionEnum) | Indicates whether this requirement applies to ordering, porting, or both | [optional] -**requirementsTypes** | [**List<DocReqsRequirementType>**](DocReqsRequirementType.md) | Lists the requirement types necessary to fulfill this requirement | [optional] [readonly] -**id** | **UUID** | Identifies the associated document | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**countryCode** | **String** | The 2-character (ISO 3166-1 alpha-2) country code where this requirement applies | [optional] | +|**locality** | **String** | The locality where this requirement applies | [optional] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | Indicates the phone_number_type this requirement applies to. Leave blank if this requirement applies to all number_types. | [optional] | +|**action** | [**ActionEnum**](#ActionEnum) | Indicates whether this requirement applies to ordering, porting, or both | [optional] | +|**requirementsTypes** | [**List<DocReqsRequirementType>**](DocReqsRequirementType.md) | Lists the requirement types necessary to fulfill this requirement | [optional] [readonly] | +|**id** | **UUID** | Identifies the associated document | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last updated. | [optional] [readonly] | ## Enum: PhoneNumberTypeEnum -Name | Value ----- | ----- -LOCAL | "local" -NATIONAL | "national" -TOLL_FREE | "toll_free" +| Name | Value | +|---- | -----| +| LOCAL | "local" | +| NATIONAL | "national" | +| TOLL_FREE | "toll_free" | ## Enum: ActionEnum -Name | Value ----- | ----- -BOTH | "both" -ORDERING | "ordering" -PORTING | "porting" +| Name | Value | +|---- | -----| +| BOTH | "both" | +| ORDERING | "ordering" | +| PORTING | "porting" | diff --git a/docs/DocReqsRequirementType.md b/docs/DocReqsRequirementType.md index ecbe4515..41a6ae6b 100644 --- a/docs/DocReqsRequirementType.md +++ b/docs/DocReqsRequirementType.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**acceptanceCriteria** | [**DocReqsRequirementTypeAcceptanceCriteria**](DocReqsRequirementTypeAcceptanceCriteria.md) | | [optional] -**description** | **String** | Describes the requirement type | [optional] -**example** | **String** | Provides one or more examples of acceptable documents | [optional] -**type** | [**TypeEnum**](#TypeEnum) | Defines the type of this requirement type | [optional] -**name** | **String** | A short descriptive name for this requirement_type | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource | [optional] [readonly] -**id** | **UUID** | Identifies the associated document | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**acceptanceCriteria** | [**DocReqsRequirementTypeAcceptanceCriteria**](DocReqsRequirementTypeAcceptanceCriteria.md) | | [optional] | +|**description** | **String** | Describes the requirement type | [optional] | +|**example** | **String** | Provides one or more examples of acceptable documents | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Defines the type of this requirement type | [optional] | +|**name** | **String** | A short descriptive name for this requirement_type | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource | [optional] [readonly] | +|**id** | **UUID** | Identifies the associated document | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last updated. | [optional] [readonly] | ## Enum: TypeEnum -Name | Value ----- | ----- -DOCUMENT | "document" -ADDRESS | "address" -TEXTUAL | "textual" +| Name | Value | +|---- | -----| +| DOCUMENT | "document" | +| ADDRESS | "address" | +| TEXTUAL | "textual" | diff --git a/docs/DocReqsRequirementTypeAcceptanceCriteria.md b/docs/DocReqsRequirementTypeAcceptanceCriteria.md index 3837db84..df43ea9f 100644 --- a/docs/DocReqsRequirementTypeAcceptanceCriteria.md +++ b/docs/DocReqsRequirementTypeAcceptanceCriteria.md @@ -6,10 +6,10 @@ Specifies objective criteria for acceptance ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timeLimit** | **String** | Specifies time-based acceptance criteria | [optional] -**localityLimit** | **String** | Specifies geography-based acceptance criteria | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**timeLimit** | **String** | Specifies time-based acceptance criteria | [optional] | +|**localityLimit** | **String** | Specifies geography-based acceptance criteria | [optional] | diff --git a/docs/DocReqsRetrieveDocumentRequirements200Response.md b/docs/DocReqsRetrieveDocumentRequirements200Response.md new file mode 100644 index 00000000..509144c1 --- /dev/null +++ b/docs/DocReqsRetrieveDocumentRequirements200Response.md @@ -0,0 +1,13 @@ + + +# DocReqsRetrieveDocumentRequirements200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**DocReqsRequirement**](DocReqsRequirement.md) | | [optional] | + + + diff --git a/docs/DocReqsRetrieveRequirementType200Response.md b/docs/DocReqsRetrieveRequirementType200Response.md new file mode 100644 index 00000000..1b9bd06a --- /dev/null +++ b/docs/DocReqsRetrieveRequirementType200Response.md @@ -0,0 +1,13 @@ + + +# DocReqsRetrieveRequirementType200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**DocReqsRequirementType**](DocReqsRequirementType.md) | | [optional] | + + + diff --git a/docs/DocServiceDocument.md b/docs/DocServiceDocument.md index db99ad1b..fad6ffab 100644 --- a/docs/DocServiceDocument.md +++ b/docs/DocServiceDocument.md @@ -5,28 +5,28 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] -**contentType** | **String** | The document's content_type. | [optional] [readonly] -**size** | [**DocServiceDocumentAllOfSize**](DocServiceDocumentAllOfSize.md) | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Indicates the current document reviewing status | [optional] [readonly] -**sha256** | **String** | The document's SHA256 hash provided for optional verification purposes. | [optional] [readonly] -**filename** | **String** | The filename of the document. | [optional] -**customerReference** | **String** | Optional reference string for customer tracking. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**contentType** | **String** | The document's content_type. | [optional] [readonly] | +|**size** | [**DocServiceDocumentAllOfSize**](DocServiceDocumentAllOfSize.md) | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Indicates the current document reviewing status | [optional] [readonly] | +|**sha256** | **String** | The document's SHA256 hash provided for optional verification purposes. | [optional] [readonly] | +|**filename** | **String** | The filename of the document. | [optional] | +|**customerReference** | **String** | Optional reference string for customer tracking. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -VERIFIED | "verified" -DENIED | "denied" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| VERIFIED | "verified" | +| DENIED | "denied" | diff --git a/docs/DocServiceDocumentAllOf.md b/docs/DocServiceDocumentAllOf.md index 3a13549d..3c1ee674 100644 --- a/docs/DocServiceDocumentAllOf.md +++ b/docs/DocServiceDocumentAllOf.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**contentType** | **String** | The document's content_type. | [optional] [readonly] -**size** | [**DocServiceDocumentAllOfSize**](DocServiceDocumentAllOfSize.md) | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Indicates the current document reviewing status | [optional] [readonly] -**sha256** | **String** | The document's SHA256 hash provided for optional verification purposes. | [optional] [readonly] -**filename** | **String** | The filename of the document. | [optional] -**customerReference** | **String** | Optional reference string for customer tracking. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**contentType** | **String** | The document's content_type. | [optional] [readonly] | +|**size** | [**DocServiceDocumentAllOfSize**](DocServiceDocumentAllOfSize.md) | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Indicates the current document reviewing status | [optional] [readonly] | +|**sha256** | **String** | The document's SHA256 hash provided for optional verification purposes. | [optional] [readonly] | +|**filename** | **String** | The filename of the document. | [optional] | +|**customerReference** | **String** | Optional reference string for customer tracking. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -VERIFIED | "verified" -DENIED | "denied" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| VERIFIED | "verified" | +| DENIED | "denied" | diff --git a/docs/DocServiceDocumentAllOfSize.md b/docs/DocServiceDocumentAllOfSize.md index 17f03ce1..8974f5ab 100644 --- a/docs/DocServiceDocumentAllOfSize.md +++ b/docs/DocServiceDocumentAllOfSize.md @@ -6,10 +6,10 @@ Indicates the document's filesize ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**unit** | **String** | Identifies the unit | [optional] [readonly] -**amount** | **Integer** | The number of bytes | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**unit** | **String** | Identifies the unit | [optional] [readonly] | +|**amount** | **Integer** | The number of bytes | [optional] [readonly] | diff --git a/docs/DocServiceDocumentLink.md b/docs/DocServiceDocumentLink.md index 81f5955a..c3a2a4d8 100644 --- a/docs/DocServiceDocumentLink.md +++ b/docs/DocServiceDocumentLink.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] -**documentId** | **UUID** | Identifies the associated document. | [optional] [readonly] -**linkedRecordType** | **String** | The linked resource's record type. | [optional] [readonly] -**linkedResourceId** | **String** | Identifies the linked resource. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**documentId** | **UUID** | Identifies the associated document. | [optional] [readonly] | +|**linkedRecordType** | **String** | The linked resource's record type. | [optional] [readonly] | +|**linkedResourceId** | **String** | Identifies the linked resource. | [optional] [readonly] | diff --git a/docs/DocServiceDocumentLinkAllOf.md b/docs/DocServiceDocumentLinkAllOf.md index ed3ff2db..ed864f85 100644 --- a/docs/DocServiceDocumentLinkAllOf.md +++ b/docs/DocServiceDocumentLinkAllOf.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**documentId** | **UUID** | Identifies the associated document. | [optional] [readonly] -**linkedRecordType** | **String** | The linked resource's record type. | [optional] [readonly] -**linkedResourceId** | **String** | Identifies the linked resource. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**documentId** | **UUID** | Identifies the associated document. | [optional] [readonly] | +|**linkedRecordType** | **String** | The linked resource's record type. | [optional] [readonly] | +|**linkedResourceId** | **String** | Identifies the linked resource. | [optional] [readonly] | diff --git a/docs/DocServiceDocumentUploadInline.md b/docs/DocServiceDocumentUploadInline.md index 44301ccd..b7432983 100644 --- a/docs/DocServiceDocumentUploadInline.md +++ b/docs/DocServiceDocumentUploadInline.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**file** | **byte[]** | The Base64 encoded contents of the file you are uploading. | -**filename** | **String** | The filename of the document. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_file** | **byte[]** | The Base64 encoded contents of the file you are uploading. | | +|**filename** | **String** | The filename of the document. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | diff --git a/docs/DocServiceDocumentUploadURL.md b/docs/DocServiceDocumentUploadURL.md index 3290e787..dcb7016d 100644 --- a/docs/DocServiceDocumentUploadURL.md +++ b/docs/DocServiceDocumentUploadURL.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | If the file is already hosted publicly, you can provide a URL and have the documents service fetch it for you. | -**filename** | **String** | The filename of the document. | [optional] -**customerReference** | **String** | Optional reference string for customer tracking. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | If the file is already hosted publicly, you can provide a URL and have the documents service fetch it for you. | | +|**filename** | **String** | The filename of the document. | [optional] | +|**customerReference** | **String** | Optional reference string for customer tracking. | [optional] | diff --git a/docs/DocServiceRecord.md b/docs/DocServiceRecord.md index ca25ffba..499cd0df 100644 --- a/docs/DocServiceRecord.md +++ b/docs/DocServiceRecord.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | diff --git a/docs/Document.md b/docs/Document.md index 9965ce8a..e0ecc83b 100644 --- a/docs/Document.md +++ b/docs/Document.md @@ -6,12 +6,12 @@ The media object containing a document reference ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] -**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] -**caption** | **String** | Describes the specified media. | [optional] -**filename** | **String** | Describes the filename for the specific document. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] | +|**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] | +|**caption** | **String** | Describes the specified media. | [optional] | +|**filename** | **String** | Describes the filename for the specific document. | [optional] | diff --git a/docs/Document1.md b/docs/Document1.md new file mode 100644 index 00000000..2344516b --- /dev/null +++ b/docs/Document1.md @@ -0,0 +1,17 @@ + + +# Document1 + +Contains the media object for this document. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] | +|**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] | +|**caption** | **String** | Describes the specified media. | [optional] | +|**filename** | **String** | Describes the filename for the specific document. | [optional] | + + + diff --git a/docs/DocumentsApi.md b/docs/DocumentsApi.md index 5d02fe87..1b9ccf52 100644 --- a/docs/DocumentsApi.md +++ b/docs/DocumentsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description ## createDocument -> DocServiceDocumentResponse createDocument(createDocServiceDocumentRequest) +> CreateDocument200Response createDocument(createDocServiceDocumentRequest) Upload a document @@ -45,7 +45,7 @@ public class Example { DocumentsApi apiInstance = new DocumentsApi(defaultClient); CreateDocServiceDocumentRequest createDocServiceDocumentRequest = new CreateDocServiceDocumentRequest(); // CreateDocServiceDocumentRequest | try { - DocServiceDocumentResponse result = apiInstance.createDocument(createDocServiceDocumentRequest); + CreateDocument200Response result = apiInstance.createDocument(createDocServiceDocumentRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DocumentsApi#createDocument"); @@ -67,7 +67,7 @@ Name | Type | Description | Notes ### Return type -[**DocServiceDocumentResponse**](DocServiceDocumentResponse.md) +[**CreateDocument200Response**](CreateDocument200Response.md) ### Authorization @@ -88,7 +88,7 @@ Name | Type | Description | Notes ## deleteDocument -> DocServiceDocumentResponse deleteDocument(id) +> CreateDocument200Response deleteDocument(id) Delete a document @@ -116,9 +116,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); DocumentsApi apiInstance = new DocumentsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - DocServiceDocumentResponse result = apiInstance.deleteDocument(id); + CreateDocument200Response result = apiInstance.deleteDocument(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DocumentsApi#deleteDocument"); @@ -136,11 +136,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**DocServiceDocumentResponse**](DocServiceDocumentResponse.md) +[**CreateDocument200Response**](CreateDocument200Response.md) ### Authorization @@ -188,7 +188,7 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); DocumentsApi apiInstance = new DocumentsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { File result = apiInstance.downloadDocServiceDocument(id); System.out.println(result); @@ -208,7 +208,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type @@ -232,7 +232,7 @@ Name | Type | Description | Notes ## listDocumentLinks -> ListDocServiceDocumentLinksResponse listDocumentLinks(pageNumber, pageSize, filterDocumentId, filterLinkedRecordType, filterLinkedResourceId) +> ListDocumentLinks200Response listDocumentLinks(pageNumber, pageSize, filterDocumentId, filterLinkedRecordType, filterLinkedResourceId) List all document links @@ -266,7 +266,7 @@ public class Example { String filterLinkedRecordType = "porting_order"; // String | The `linked_record_type` of the document to filter on. UUID filterLinkedResourceId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | The `linked_resource_id` of the document to filter on. try { - ListDocServiceDocumentLinksResponse result = apiInstance.listDocumentLinks(pageNumber, pageSize, filterDocumentId, filterLinkedRecordType, filterLinkedResourceId); + ListDocumentLinks200Response result = apiInstance.listDocumentLinks(pageNumber, pageSize, filterDocumentId, filterLinkedRecordType, filterLinkedResourceId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DocumentsApi#listDocumentLinks"); @@ -292,7 +292,7 @@ Name | Type | Description | Notes ### Return type -[**ListDocServiceDocumentLinksResponse**](ListDocServiceDocumentLinksResponse.md) +[**ListDocumentLinks200Response**](ListDocumentLinks200Response.md) ### Authorization @@ -312,7 +312,7 @@ Name | Type | Description | Notes ## listDocuments -> ListDocServiceDocumentsResposne listDocuments(filterFilenameContains, filterCustomerReferenceEq, filterCustomerReferenceIn, filterCreatedAtGt, filterCreatedAtLt, sort, pageNumber, pageSize) +> ListDocuments200Response listDocuments(filterFilenameContains, filterCustomerReferenceEq, filterCustomerReferenceIn, filterCreatedAtGt, filterCreatedAtLt, sort, pageNumber, pageSize) List all documents @@ -348,7 +348,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListDocServiceDocumentsResposne result = apiInstance.listDocuments(filterFilenameContains, filterCustomerReferenceEq, filterCustomerReferenceIn, filterCreatedAtGt, filterCreatedAtLt, sort, pageNumber, pageSize); + ListDocuments200Response result = apiInstance.listDocuments(filterFilenameContains, filterCustomerReferenceEq, filterCustomerReferenceIn, filterCreatedAtGt, filterCreatedAtLt, sort, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DocumentsApi#listDocuments"); @@ -377,7 +377,7 @@ Name | Type | Description | Notes ### Return type -[**ListDocServiceDocumentsResposne**](ListDocServiceDocumentsResposne.md) +[**ListDocuments200Response**](ListDocuments200Response.md) ### Authorization @@ -397,7 +397,7 @@ Name | Type | Description | Notes ## retrieveDocument -> DocServiceDocumentResponse retrieveDocument(id) +> CreateDocument200Response retrieveDocument(id) Retrieve a document @@ -425,9 +425,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); DocumentsApi apiInstance = new DocumentsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - DocServiceDocumentResponse result = apiInstance.retrieveDocument(id); + CreateDocument200Response result = apiInstance.retrieveDocument(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DocumentsApi#retrieveDocument"); @@ -445,11 +445,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**DocServiceDocumentResponse**](DocServiceDocumentResponse.md) +[**CreateDocument200Response**](CreateDocument200Response.md) ### Authorization @@ -469,7 +469,7 @@ Name | Type | Description | Notes ## updateDocument -> DocServiceDocumentResponse updateDocument(id, docServiceDocument) +> CreateDocument200Response updateDocument(id, docServiceDocument) Update a document @@ -497,10 +497,10 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); DocumentsApi apiInstance = new DocumentsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. DocServiceDocument docServiceDocument = new DocServiceDocument(); // DocServiceDocument | try { - DocServiceDocumentResponse result = apiInstance.updateDocument(id, docServiceDocument); + CreateDocument200Response result = apiInstance.updateDocument(id, docServiceDocument); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DocumentsApi#updateDocument"); @@ -518,12 +518,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | **docServiceDocument** | [**DocServiceDocument**](DocServiceDocument.md)| | ### Return type -[**DocServiceDocumentResponse**](DocServiceDocumentResponse.md) +[**CreateDocument200Response**](CreateDocument200Response.md) ### Authorization diff --git a/docs/DownlinkData.md b/docs/DownlinkData.md index 3281790d..9cbb11f1 100644 --- a/docs/DownlinkData.md +++ b/docs/DownlinkData.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **BigDecimal** | Downlink data | [optional] -**unit** | [**UnitEnum**](#UnitEnum) | Transmission unit | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | Downlink data | [optional] | +|**unit** | [**UnitEnum**](#UnitEnum) | Transmission unit | [optional] | ## Enum: UnitEnum -Name | Value ----- | ----- -B | "B" -KB | "KB" -MB | "MB" +| Name | Value | +|---- | -----| +| B | "B" | +| KB | "KB" | +| MB | "MB" | diff --git a/docs/DynamicEmergencyAddress.md b/docs/DynamicEmergencyAddress.md index f7d9718f..16619c4e 100644 --- a/docs/DynamicEmergencyAddress.md +++ b/docs/DynamicEmergencyAddress.md @@ -5,45 +5,45 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**sipGeolocationId** | **String** | Unique location reference string to be used in SIP INVITE from / p-asserted headers. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | Status of dynamic emergency address | [optional] [readonly] -**houseNumber** | **String** | | -**houseSuffix** | **String** | | [optional] -**streetPreDirectional** | **String** | | [optional] -**streetName** | **String** | | -**streetSuffix** | **String** | | [optional] -**streetPostDirectional** | **String** | | [optional] -**extendedAddress** | **String** | | [optional] -**locality** | **String** | | -**administrativeArea** | **String** | | -**postalCode** | **String** | | -**countryCode** | [**CountryCodeEnum**](#CountryCodeEnum) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date of when the resource was created | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date of when the resource was last updated | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**sipGeolocationId** | **String** | Unique location reference string to be used in SIP INVITE from / p-asserted headers. | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of dynamic emergency address | [optional] [readonly] | +|**houseNumber** | **String** | | | +|**houseSuffix** | **String** | | [optional] | +|**streetPreDirectional** | **String** | | [optional] | +|**streetName** | **String** | | | +|**streetSuffix** | **String** | | [optional] | +|**streetPostDirectional** | **String** | | [optional] | +|**extendedAddress** | **String** | | [optional] | +|**locality** | **String** | | | +|**administrativeArea** | **String** | | | +|**postalCode** | **String** | | | +|**countryCode** | [**CountryCodeEnum**](#CountryCodeEnum) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date of when the resource was created | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date of when the resource was last updated | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -ACTIVATED | "activated" -REJECTED | "rejected" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| ACTIVATED | "activated" | +| REJECTED | "rejected" | ## Enum: CountryCodeEnum -Name | Value ----- | ----- -US | "US" -CA | "CA" -PR | "PR" +| Name | Value | +|---- | -----| +| US | "US" | +| CA | "CA" | +| PR | "PR" | diff --git a/docs/DynamicEmergencyAddressesApi.md b/docs/DynamicEmergencyAddressesApi.md index 85ee9c9f..38c8ae38 100644 --- a/docs/DynamicEmergencyAddressesApi.md +++ b/docs/DynamicEmergencyAddressesApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## createDyanmicEmergencyAddress -> DynamicEmergencyAddressResponse createDyanmicEmergencyAddress(dynamicEmergencyAddress) +> CreateDyanmicEmergencyAddress201Response createDyanmicEmergencyAddress(dynamicEmergencyAddress) Create a dynamic emergency address. @@ -42,7 +42,7 @@ public class Example { DynamicEmergencyAddressesApi apiInstance = new DynamicEmergencyAddressesApi(defaultClient); DynamicEmergencyAddress dynamicEmergencyAddress = new DynamicEmergencyAddress(); // DynamicEmergencyAddress | try { - DynamicEmergencyAddressResponse result = apiInstance.createDyanmicEmergencyAddress(dynamicEmergencyAddress); + CreateDyanmicEmergencyAddress201Response result = apiInstance.createDyanmicEmergencyAddress(dynamicEmergencyAddress); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyAddressesApi#createDyanmicEmergencyAddress"); @@ -64,7 +64,7 @@ Name | Type | Description | Notes ### Return type -[**DynamicEmergencyAddressResponse**](DynamicEmergencyAddressResponse.md) +[**CreateDyanmicEmergencyAddress201Response**](CreateDyanmicEmergencyAddress201Response.md) ### Authorization @@ -86,7 +86,7 @@ Name | Type | Description | Notes ## deleteDynamicEmergencyAddress -> DynamicEmergencyAddressResponse deleteDynamicEmergencyAddress(id) +> CreateDyanmicEmergencyAddress201Response deleteDynamicEmergencyAddress(id) Delete a dynamic emergency address @@ -116,7 +116,7 @@ public class Example { DynamicEmergencyAddressesApi apiInstance = new DynamicEmergencyAddressesApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Dynamic Emergency Address id try { - DynamicEmergencyAddressResponse result = apiInstance.deleteDynamicEmergencyAddress(id); + CreateDyanmicEmergencyAddress201Response result = apiInstance.deleteDynamicEmergencyAddress(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyAddressesApi#deleteDynamicEmergencyAddress"); @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Return type -[**DynamicEmergencyAddressResponse**](DynamicEmergencyAddressResponse.md) +[**CreateDyanmicEmergencyAddress201Response**](CreateDyanmicEmergencyAddress201Response.md) ### Authorization @@ -160,7 +160,7 @@ Name | Type | Description | Notes ## getDynamicEmergencyAddress -> DynamicEmergencyAddressResponse getDynamicEmergencyAddress(id) +> CreateDyanmicEmergencyAddress201Response getDynamicEmergencyAddress(id) Get a dynamic emergency address @@ -190,7 +190,7 @@ public class Example { DynamicEmergencyAddressesApi apiInstance = new DynamicEmergencyAddressesApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Dynamic Emergency Address id try { - DynamicEmergencyAddressResponse result = apiInstance.getDynamicEmergencyAddress(id); + CreateDyanmicEmergencyAddress201Response result = apiInstance.getDynamicEmergencyAddress(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyAddressesApi#getDynamicEmergencyAddress"); @@ -212,7 +212,7 @@ Name | Type | Description | Notes ### Return type -[**DynamicEmergencyAddressResponse**](DynamicEmergencyAddressResponse.md) +[**CreateDyanmicEmergencyAddress201Response**](CreateDyanmicEmergencyAddress201Response.md) ### Authorization @@ -234,7 +234,7 @@ Name | Type | Description | Notes ## listDyanmicEmergencyAddresses -> ListDynamicEmergencyAddresses listDyanmicEmergencyAddresses(filterStatus, filterCountryCode, pageNumber, pageSize) +> ListDyanmicEmergencyAddresses200Response listDyanmicEmergencyAddresses(filterStatus, filterCountryCode, pageNumber, pageSize) List dynamic emergency addresses @@ -266,7 +266,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListDynamicEmergencyAddresses result = apiInstance.listDyanmicEmergencyAddresses(filterStatus, filterCountryCode, pageNumber, pageSize); + ListDyanmicEmergencyAddresses200Response result = apiInstance.listDyanmicEmergencyAddresses(filterStatus, filterCountryCode, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyAddressesApi#listDyanmicEmergencyAddresses"); @@ -291,7 +291,7 @@ Name | Type | Description | Notes ### Return type -[**ListDynamicEmergencyAddresses**](ListDynamicEmergencyAddresses.md) +[**ListDyanmicEmergencyAddresses200Response**](ListDyanmicEmergencyAddresses200Response.md) ### Authorization diff --git a/docs/DynamicEmergencyEndpoint.md b/docs/DynamicEmergencyEndpoint.md index cdaa6dad..b0af73b5 100644 --- a/docs/DynamicEmergencyEndpoint.md +++ b/docs/DynamicEmergencyEndpoint.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**dynamicEmergencyAddressId** | **String** | An id of a currently active dynamic emergency location. | -**status** | [**StatusEnum**](#StatusEnum) | Status of dynamic emergency address | [optional] [readonly] -**sipFromId** | **String** | | [optional] [readonly] -**callbackNumber** | **String** | | -**callerName** | **String** | | -**createdAt** | **String** | ISO 8601 formatted date of when the resource was created | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date of when the resource was last updated | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**dynamicEmergencyAddressId** | **String** | An id of a currently active dynamic emergency location. | | +|**status** | [**StatusEnum**](#StatusEnum) | Status of dynamic emergency address | [optional] [readonly] | +|**sipFromId** | **String** | | [optional] [readonly] | +|**callbackNumber** | **String** | | | +|**callerName** | **String** | | | +|**createdAt** | **String** | ISO 8601 formatted date of when the resource was created | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date of when the resource was last updated | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -ACTIVATED | "activated" -REJECTED | "rejected" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| ACTIVATED | "activated" | +| REJECTED | "rejected" | diff --git a/docs/DynamicEmergencyEndpointsApi.md b/docs/DynamicEmergencyEndpointsApi.md index c94d1fc2..ee951e67 100644 --- a/docs/DynamicEmergencyEndpointsApi.md +++ b/docs/DynamicEmergencyEndpointsApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## createDyanmicEmergencyEndpoint -> DynamicEmergencyEndpointResponse createDyanmicEmergencyEndpoint(dynamicEmergencyEndpoint) +> CreateDyanmicEmergencyEndpoint201Response createDyanmicEmergencyEndpoint(dynamicEmergencyEndpoint) Create a dynamic emergency endpoint. @@ -42,7 +42,7 @@ public class Example { DynamicEmergencyEndpointsApi apiInstance = new DynamicEmergencyEndpointsApi(defaultClient); DynamicEmergencyEndpoint dynamicEmergencyEndpoint = new DynamicEmergencyEndpoint(); // DynamicEmergencyEndpoint | try { - DynamicEmergencyEndpointResponse result = apiInstance.createDyanmicEmergencyEndpoint(dynamicEmergencyEndpoint); + CreateDyanmicEmergencyEndpoint201Response result = apiInstance.createDyanmicEmergencyEndpoint(dynamicEmergencyEndpoint); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyEndpointsApi#createDyanmicEmergencyEndpoint"); @@ -64,7 +64,7 @@ Name | Type | Description | Notes ### Return type -[**DynamicEmergencyEndpointResponse**](DynamicEmergencyEndpointResponse.md) +[**CreateDyanmicEmergencyEndpoint201Response**](CreateDyanmicEmergencyEndpoint201Response.md) ### Authorization @@ -86,7 +86,7 @@ Name | Type | Description | Notes ## deleteDynamicEmergencyEndpoint -> DynamicEmergencyEndpointResponse deleteDynamicEmergencyEndpoint(id) +> CreateDyanmicEmergencyEndpoint201Response deleteDynamicEmergencyEndpoint(id) Delete a dynamic emergency endpoint @@ -116,7 +116,7 @@ public class Example { DynamicEmergencyEndpointsApi apiInstance = new DynamicEmergencyEndpointsApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Dynamic Emergency Endpoint id try { - DynamicEmergencyEndpointResponse result = apiInstance.deleteDynamicEmergencyEndpoint(id); + CreateDyanmicEmergencyEndpoint201Response result = apiInstance.deleteDynamicEmergencyEndpoint(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyEndpointsApi#deleteDynamicEmergencyEndpoint"); @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Return type -[**DynamicEmergencyEndpointResponse**](DynamicEmergencyEndpointResponse.md) +[**CreateDyanmicEmergencyEndpoint201Response**](CreateDyanmicEmergencyEndpoint201Response.md) ### Authorization @@ -160,7 +160,7 @@ Name | Type | Description | Notes ## getDynamicEmergencyEndpoint -> DynamicEmergencyEndpointResponse getDynamicEmergencyEndpoint(id) +> CreateDyanmicEmergencyEndpoint201Response getDynamicEmergencyEndpoint(id) Get a dynamic emergency endpoint @@ -190,7 +190,7 @@ public class Example { DynamicEmergencyEndpointsApi apiInstance = new DynamicEmergencyEndpointsApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Dynamic Emergency Endpoint id try { - DynamicEmergencyEndpointResponse result = apiInstance.getDynamicEmergencyEndpoint(id); + CreateDyanmicEmergencyEndpoint201Response result = apiInstance.getDynamicEmergencyEndpoint(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyEndpointsApi#getDynamicEmergencyEndpoint"); @@ -212,7 +212,7 @@ Name | Type | Description | Notes ### Return type -[**DynamicEmergencyEndpointResponse**](DynamicEmergencyEndpointResponse.md) +[**CreateDyanmicEmergencyEndpoint201Response**](CreateDyanmicEmergencyEndpoint201Response.md) ### Authorization @@ -234,7 +234,7 @@ Name | Type | Description | Notes ## listDyanmicEmergencyEndpoints -> ListDynamicEmergencyEndpoints listDyanmicEmergencyEndpoints(filterStatus, filterCountryCode, pageNumber, pageSize) +> ListDyanmicEmergencyEndpoints200Response listDyanmicEmergencyEndpoints(filterStatus, filterCountryCode, pageNumber, pageSize) List dynamic emergency endpoints @@ -266,7 +266,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListDynamicEmergencyEndpoints result = apiInstance.listDyanmicEmergencyEndpoints(filterStatus, filterCountryCode, pageNumber, pageSize); + ListDyanmicEmergencyEndpoints200Response result = apiInstance.listDyanmicEmergencyEndpoints(filterStatus, filterCountryCode, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling DynamicEmergencyEndpointsApi#listDyanmicEmergencyEndpoints"); @@ -291,7 +291,7 @@ Name | Type | Description | Notes ### Return type -[**ListDynamicEmergencyEndpoints**](ListDynamicEmergencyEndpoints.md) +[**ListDyanmicEmergencyEndpoints200Response**](ListDyanmicEmergencyEndpoints200Response.md) ### Authorization diff --git a/docs/Email.md b/docs/Email.md index fb962564..e5e43346 100644 --- a/docs/Email.md +++ b/docs/Email.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**email** | **String** | | -**type** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**email** | **String** | | | +|**type** | **String** | | | diff --git a/docs/EmergencySettings.md b/docs/EmergencySettings.md index 8cf35f91..c0cf2bbe 100644 --- a/docs/EmergencySettings.md +++ b/docs/EmergencySettings.md @@ -6,22 +6,22 @@ The emergency services settings for a phone number. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emergencyEnabled** | **Boolean** | Allows you to enable or disable emergency services on the phone number. In order to enable emergency services, you must also set an emergency_address_id. | [optional] -**emergencyAddressId** | **String** | Identifies the address to be used with emergency services. | [optional] -**emergencyStatus** | [**EmergencyStatusEnum**](#EmergencyStatusEnum) | Represents the state of the number regarding emergency activation. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**emergencyEnabled** | **Boolean** | Allows you to enable or disable emergency services on the phone number. In order to enable emergency services, you must also set an emergency_address_id. | [optional] | +|**emergencyAddressId** | **String** | Identifies the address to be used with emergency services. | [optional] | +|**emergencyStatus** | [**EmergencyStatusEnum**](#EmergencyStatusEnum) | Represents the state of the number regarding emergency activation. | [optional] | ## Enum: EmergencyStatusEnum -Name | Value ----- | ----- -DISABLED | "disabled" -ACTIVE | "active" -PROVISIONING | "provisioning" -DEPROVISIONING | "deprovisioning" +| Name | Value | +|---- | -----| +| DISABLED | "disabled" | +| ACTIVE | "active" | +| PROVISIONING | "provisioning" | +| DEPROVISIONING | "deprovisioning" | diff --git a/docs/EndSession200Response.md b/docs/EndSession200Response.md new file mode 100644 index 00000000..76907371 --- /dev/null +++ b/docs/EndSession200Response.md @@ -0,0 +1,13 @@ + + +# EndSession200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**EndSession200ResponseData**](EndSession200ResponseData.md) | | [optional] | + + + diff --git a/docs/EndSession200ResponseData.md b/docs/EndSession200ResponseData.md new file mode 100644 index 00000000..9815b550 --- /dev/null +++ b/docs/EndSession200ResponseData.md @@ -0,0 +1,13 @@ + + +# EndSession200ResponseData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **String** | | [optional] | + + + diff --git a/docs/EnqueueRequest.md b/docs/EnqueueRequest.md index a4986cfe..27553323 100644 --- a/docs/EnqueueRequest.md +++ b/docs/EnqueueRequest.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**queueName** | **String** | The name of the queue the call should be put in. If a queue with a given name doesn't exist yet it will be created. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] -**maxWaitTimeSecs** | **Integer** | The number of seconds after which the call will be removed from the queue. | [optional] -**maxSize** | **Integer** | The maximum number of calls allowed in the queue at a given time. Can't be modified for an existing queue. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**queueName** | **String** | The name of the queue the call should be put in. If a queue with a given name doesn't exist yet it will be created. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**maxWaitTimeSecs** | **Integer** | The number of seconds after which the call will be removed from the queue. | [optional] | +|**maxSize** | **Integer** | The maximum number of calls allowed in the queue at a given time. Can't be modified for an existing queue. | [optional] | diff --git a/docs/Error.md b/docs/Error.md index e5977b53..4f1f6ded 100644 --- a/docs/Error.md +++ b/docs/Error.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Integer** | | [optional] -**title** | **String** | | [optional] -**detail** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Integer** | | [optional] | +|**title** | **String** | | [optional] | +|**detail** | **String** | | [optional] | diff --git a/docs/ErrorSource.md b/docs/ErrorSource.md index dd4427e0..95bf7791 100644 --- a/docs/ErrorSource.md +++ b/docs/ErrorSource.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pointer** | **String** | JSON pointer (RFC6901) to the offending entity. | [optional] -**parameter** | **String** | Indicates which query parameter caused the error. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pointer** | **String** | JSON pointer (RFC6901) to the offending entity. | [optional] | +|**parameter** | **String** | Indicates which query parameter caused the error. | [optional] | diff --git a/docs/Errors.md b/docs/Errors.md index 1e080035..76fcfe61 100644 --- a/docs/Errors.md +++ b/docs/Errors.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**errors** | [**List<Error>**](Error.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<Error>**](Error.md) | | [optional] | diff --git a/docs/ExternalWdrDetailRecordDto.md b/docs/ExternalWdrDetailRecordDto.md index e5b71636..d884a6cf 100644 --- a/docs/ExternalWdrDetailRecordDto.md +++ b/docs/ExternalWdrDetailRecordDto.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | WDR id | [optional] -**createdAt** | **OffsetDateTime** | Record created time | [optional] -**cost** | [**WirelessCost**](WirelessCost.md) | | [optional] -**mcc** | **String** | Mobile country code. | [optional] -**mnc** | **String** | Mobile network code. | [optional] -**downlinkData** | [**DownlinkData**](DownlinkData.md) | | [optional] -**durationSeconds** | **BigDecimal** | Session duration in seconds. | [optional] -**imsi** | **String** | International mobile subscriber identity | [optional] -**rate** | [**WirelessRate**](WirelessRate.md) | | [optional] -**simGroupName** | **String** | Defined sim group name | [optional] -**simGroupId** | **String** | Sim group unique identifier | [optional] -**simCardId** | **String** | Sim card unique identifier | [optional] -**phoneNumber** | **String** | Phone number | [optional] -**uplinkData** | [**UplinkData**](UplinkData.md) | | [optional] -**recordType** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | WDR id | [optional] | +|**createdAt** | **OffsetDateTime** | Record created time | [optional] | +|**cost** | [**WirelessCost**](WirelessCost.md) | | [optional] | +|**mcc** | **String** | Mobile country code. | [optional] | +|**mnc** | **String** | Mobile network code. | [optional] | +|**downlinkData** | [**DownlinkData**](DownlinkData.md) | | [optional] | +|**durationSeconds** | **BigDecimal** | Session duration in seconds. | [optional] | +|**imsi** | **String** | International mobile subscriber identity | [optional] | +|**rate** | [**WirelessRate**](WirelessRate.md) | | [optional] | +|**simGroupName** | **String** | Defined sim group name | [optional] | +|**simGroupId** | **String** | Sim group unique identifier | [optional] | +|**simCardId** | **String** | Sim card unique identifier | [optional] | +|**phoneNumber** | **String** | Phone number | [optional] | +|**uplinkData** | [**UplinkData**](UplinkData.md) | | [optional] | +|**recordType** | **String** | | [optional] | diff --git a/docs/ExternalWdrGetDetailResponse.md b/docs/ExternalWdrGetDetailResponse.md index b0f56485..4e616b06 100644 --- a/docs/ExternalWdrGetDetailResponse.md +++ b/docs/ExternalWdrGetDetailResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<ExternalWdrDetailRecordDto>**](ExternalWdrDetailRecordDto.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<ExternalWdrDetailRecordDto>**](ExternalWdrDetailRecordDto.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/Fax.md b/docs/Fax.md index 182b774a..65ca3dcf 100644 --- a/docs/Fax.md +++ b/docs/Fax.md @@ -5,57 +5,49 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the fax. | [optional] -**connectionId** | **String** | The connection ID to send the fax with. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the fax. | [optional] -**mediaUrl** | **String** | The URL to the PDF used for the fax's media. If media_name was supplied, this is omitted. | [optional] -**mediaName** | **String** | The media_name of a file used for the fax's media. | [optional] -**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] -**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] -**quality** | **String** | The quality of the fax. Can be normal, high, very_high | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Status of the fax | [optional] -**webhookUrl** | **String** | URL that will receive fax webhooks | [optional] -**webhookFailoverUrl** | **String** | Optional failover URL that will receive fax webhooks if webhook_url doesn't return a 2XX response | [optional] -**storeMedia** | **Boolean** | Should fax media be stored on temporary URL. | [optional] -**storedMediaUrl** | **String** | If store_media was set to true, this is a link to temporary location. Link expires after 10 minutes. | [optional] -**createdAt** | **String** | ISO 8601 timestamp when resource was created | [optional] -**updatedAt** | **String** | ISO 8601 timestamp when resource was updated | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**connectionId** | **String** | The ID of the connection used to send the fax. | [optional] | +|**direction** | **Direction** | | [optional] | +|**mediaUrl** | **String** | The URL to the PDF used for the fax's media. media_url and media_name/contents can't be submitted together. | [optional] | +|**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. | [optional] | +|**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] | +|**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] | +|**quality** | **String** | The quality of the fax. Can be normal, high, very_high | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of the fax | [optional] | +|**webhookUrl** | **String** | URL that will receive fax webhooks | [optional] | +|**webhookFailoverUrl** | **String** | Optional failover URL that will receive fax webhooks if webhook_url doesn't return a 2XX response | [optional] | +|**storeMedia** | **Boolean** | Should fax media be stored on temporary URL. It does not support media_name. | [optional] | +|**storedMediaUrl** | **String** | If store_media was set to true, this is a link to temporary location. Link expires after 10 minutes. | [optional] | +|**createdAt** | **String** | ISO 8601 timestamp when resource was created | [optional] | +|**updatedAt** | **String** | ISO 8601 timestamp when resource was updated | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -FAX | "fax" - - - -## Enum: DirectionEnum - -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Value | +|---- | -----| +| FAX | "fax" | ## Enum: StatusEnum -Name | Value ----- | ----- -QUEUED | "queued" -MEDIA_PROCESSED | "media.processed" -SENDING | "sending" -DELIVERED | "delivered" -FAILED | "failed" -INITIATED | "initiated" -RECEIVING | "receiving" -MEDIA_PROCESSING | "media.processing" -RECEIVED | "received" +| Name | Value | +|---- | -----| +| QUEUED | "queued" | +| MEDIA_PROCESSED | "media.processed" | +| ORIGINATED | "originated" | +| SENDING | "sending" | +| DELIVERED | "delivered" | +| FAILED | "failed" | +| INITIATED | "initiated" | +| RECEIVING | "receiving" | +| MEDIA_PROCESSING | "media.processing" | +| RECEIVED | "received" | diff --git a/docs/FaxApplication.md b/docs/FaxApplication.md index 37d70f2d..0298dc80 100644 --- a/docs/FaxApplication.md +++ b/docs/FaxApplication.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Uniquely identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**applicationName** | **String** | A user-assigned name to help manage the application. | [optional] -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**inbound** | [**CreateFaxApplicationRequestInbound**](CreateFaxApplicationRequestInbound.md) | | [optional] -**outbound** | [**CreateFaxApplicationRequestOutbound**](CreateFaxApplicationRequestOutbound.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Uniquely identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**applicationName** | **String** | A user-assigned name to help manage the application. | [optional] | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**inbound** | [**CreateFaxApplicationRequestInbound**](CreateFaxApplicationRequestInbound.md) | | [optional] | +|**outbound** | [**CreateFaxApplicationRequestOutbound**](CreateFaxApplicationRequestOutbound.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | diff --git a/docs/FaxApplicationResponse.md b/docs/FaxApplicationResponse.md index 23ecb333..55756449 100644 --- a/docs/FaxApplicationResponse.md +++ b/docs/FaxApplicationResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**FaxApplication**](FaxApplication.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**FaxApplication**](FaxApplication.md) | | [optional] | diff --git a/docs/FaxDelivered.md b/docs/FaxDelivered.md index 71b01635..72b5e443 100644 --- a/docs/FaxDelivered.md +++ b/docs/FaxDelivered.md @@ -5,28 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**payload** | [**FaxDeliveredPayload**](FaxDeliveredPayload.md) | | [optional] - - - -## Enum: RecordTypeEnum - -Name | Value ----- | ----- -EVENT | "event" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies record type. | [optional] | +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**payload** | [**FaxDeliveredPayload**](FaxDeliveredPayload.md) | | [optional] | ## Enum: EventTypeEnum -Name | Value ----- | ----- -FAX_DELIVERED | "fax.delivered" +| Name | Value | +|---- | -----| +| FAX_DELIVERED | "fax.delivered" | diff --git a/docs/FaxDeliveredPayload.md b/docs/FaxDeliveredPayload.md index 796fccdc..178dcbc0 100644 --- a/docs/FaxDeliveredPayload.md +++ b/docs/FaxDeliveredPayload.md @@ -5,36 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callDurationSecs** | **Integer** | The duration of the call in seconds. | [optional] -**connectionId** | **String** | The ID of the connection that was used to send the fax. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the fax. | [optional] -**faxId** | **UUID** | Identifies the fax. | [optional] -**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] -**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization | [optional] -**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] -**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] -**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] -**pageCount** | **Integer** | Number of transferred pages | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] - - - -## Enum: DirectionEnum - -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callDurationSecs** | **Integer** | The duration of the call in seconds. | [optional] | +|**connectionId** | **String** | The ID of the connection used to send the fax. | [optional] | +|**direction** | **Direction** | | [optional] | +|**faxId** | **UUID** | Identifies the fax. | [optional] | +|**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] | +|**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. | [optional] | +|**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] | +|**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] | +|**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] | +|**pageCount** | **Integer** | Number of transferred pages | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -DELIVERED | "delivered" +| Name | Value | +|---- | -----| +| DELIVERED | "delivered" | diff --git a/docs/FaxFailed.md b/docs/FaxFailed.md index f06c0f18..13b67468 100644 --- a/docs/FaxFailed.md +++ b/docs/FaxFailed.md @@ -5,28 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**payload** | [**FaxFailedPayload**](FaxFailedPayload.md) | | [optional] - - - -## Enum: RecordTypeEnum - -Name | Value ----- | ----- -EVENT | "event" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies record type. | [optional] | +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**payload** | [**FaxFailedPayload**](FaxFailedPayload.md) | | [optional] | ## Enum: EventTypeEnum -Name | Value ----- | ----- -FAX_FAILED | "fax.failed" +| Name | Value | +|---- | -----| +| FAX_FAILED | "fax.failed" | diff --git a/docs/FaxFailedPayload.md b/docs/FaxFailedPayload.md index ca846aa9..9228fe7a 100644 --- a/docs/FaxFailedPayload.md +++ b/docs/FaxFailedPayload.md @@ -5,43 +5,34 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | The ID of the connection that was used to send the fax. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the fax. | [optional] -**faxId** | **UUID** | Identifies the fax. | [optional] -**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] -**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization | [optional] -**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] -**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] -**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] -**failureReason** | [**FailureReasonEnum**](#FailureReasonEnum) | Cause of the sending failure | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] - - - -## Enum: DirectionEnum - -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | The ID of the connection used to send the fax. | [optional] | +|**direction** | **Direction** | | [optional] | +|**faxId** | **UUID** | Identifies the fax. | [optional] | +|**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] | +|**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. | [optional] | +|**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] | +|**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] | +|**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] | +|**failureReason** | [**FailureReasonEnum**](#FailureReasonEnum) | Cause of the sending failure | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] | ## Enum: FailureReasonEnum -Name | Value ----- | ----- -REJECTED | "rejected" +| Name | Value | +|---- | -----| +| REJECTED | "rejected" | ## Enum: StatusEnum -Name | Value ----- | ----- -FAILED | "failed" +| Name | Value | +|---- | -----| +| FAILED | "failed" | diff --git a/docs/FaxMediaProcessed.md b/docs/FaxMediaProcessed.md index d0463c3e..f881eed9 100644 --- a/docs/FaxMediaProcessed.md +++ b/docs/FaxMediaProcessed.md @@ -5,28 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**payload** | [**FaxMediaProcessedPayload**](FaxMediaProcessedPayload.md) | | [optional] - - - -## Enum: RecordTypeEnum - -Name | Value ----- | ----- -EVENT | "event" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies record type. | [optional] | +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**payload** | [**FaxMediaProcessedPayload**](FaxMediaProcessedPayload.md) | | [optional] | ## Enum: EventTypeEnum -Name | Value ----- | ----- -FAX_MEDIA_PROCESSED | "fax.media.processed" +| Name | Value | +|---- | -----| +| FAX_MEDIA_PROCESSED | "fax.media.processed" | diff --git a/docs/FaxMediaProcessedPayload.md b/docs/FaxMediaProcessedPayload.md index 00d2f5e2..b68b6173 100644 --- a/docs/FaxMediaProcessedPayload.md +++ b/docs/FaxMediaProcessedPayload.md @@ -5,34 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | The ID of the connection that was used to send the fax. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the fax. | [optional] -**faxId** | **UUID** | Identifies the fax. | [optional] -**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] -**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization | [optional] -**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] -**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] -**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] - - - -## Enum: DirectionEnum - -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | The ID of the connection used to send the fax. | [optional] | +|**direction** | **Direction** | | [optional] | +|**faxId** | **UUID** | Identifies the fax. | [optional] | +|**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] | +|**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. | [optional] | +|**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] | +|**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] | +|**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -MEDIA_PROCESSED | "media.processed" +| Name | Value | +|---- | -----| +| MEDIA_PROCESSED | "media.processed" | diff --git a/docs/FaxQueued.md b/docs/FaxQueued.md index 59c63ee7..9e6e3f1e 100644 --- a/docs/FaxQueued.md +++ b/docs/FaxQueued.md @@ -5,28 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**payload** | [**FaxQueuedPayload**](FaxQueuedPayload.md) | | [optional] - - - -## Enum: RecordTypeEnum - -Name | Value ----- | ----- -EVENT | "event" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies record type. | [optional] | +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**payload** | [**FaxQueuedPayload**](FaxQueuedPayload.md) | | [optional] | ## Enum: EventTypeEnum -Name | Value ----- | ----- -FAX_QUEUED | "fax.queued" +| Name | Value | +|---- | -----| +| FAX_QUEUED | "fax.queued" | diff --git a/docs/FaxQueuedPayload.md b/docs/FaxQueuedPayload.md index eda4a820..b8b1e6f6 100644 --- a/docs/FaxQueuedPayload.md +++ b/docs/FaxQueuedPayload.md @@ -5,34 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | The ID of the connection that was used to send the fax. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the fax. | [optional] -**faxId** | **UUID** | Identifies the fax. | [optional] -**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] -**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization | [optional] -**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] -**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] -**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] - - - -## Enum: DirectionEnum - -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | The ID of the connection used to send the fax. | [optional] | +|**direction** | **Direction** | | [optional] | +|**faxId** | **UUID** | Identifies the fax. | [optional] | +|**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] | +|**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. | [optional] | +|**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] | +|**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] | +|**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -QUEUED | "queued" +| Name | Value | +|---- | -----| +| QUEUED | "queued" | diff --git a/docs/FaxSendingStarted.md b/docs/FaxSendingStarted.md index 3dab8bf4..d21ad382 100644 --- a/docs/FaxSendingStarted.md +++ b/docs/FaxSendingStarted.md @@ -5,28 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**payload** | [**FaxSendingStartedPayload**](FaxSendingStartedPayload.md) | | [optional] - - - -## Enum: RecordTypeEnum - -Name | Value ----- | ----- -EVENT | "event" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies record type. | [optional] | +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**payload** | [**FaxSendingStartedPayload**](FaxSendingStartedPayload.md) | | [optional] | ## Enum: EventTypeEnum -Name | Value ----- | ----- -FAX_SENDING_STARTED | "fax.sending.started" +| Name | Value | +|---- | -----| +| FAX_SENDING_STARTED | "fax.sending.started" | diff --git a/docs/FaxSendingStartedPayload.md b/docs/FaxSendingStartedPayload.md index 77ff2e94..6fd49297 100644 --- a/docs/FaxSendingStartedPayload.md +++ b/docs/FaxSendingStartedPayload.md @@ -5,34 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | The ID of the connection that was used to send the fax. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the fax. | [optional] -**faxId** | **UUID** | Identifies the fax. | [optional] -**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] -**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization | [optional] -**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] -**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] -**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] - - - -## Enum: DirectionEnum - -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | The ID of the connection used to send the fax. | [optional] | +|**direction** | **Direction** | | [optional] | +|**faxId** | **UUID** | Identifies the fax. | [optional] | +|**originalMediaUrl** | **String** | The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted | [optional] | +|**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. | [optional] | +|**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | [optional] | +|**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | [optional] | +|**userId** | **UUID** | Identifier of the user to whom the fax belongs | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the fax. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -SENDING | "sending" +| Name | Value | +|---- | -----| +| SENDING | "sending" | diff --git a/docs/Feature.md b/docs/Feature.md index dfadfd2b..8eb31a22 100644 --- a/docs/Feature.md +++ b/docs/Feature.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | diff --git a/docs/Filter.md b/docs/Filter.md index 8162db2d..a6f452ae 100644 --- a/docs/Filter.md +++ b/docs/Filter.md @@ -5,44 +5,44 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**filterType** | [**FilterTypeEnum**](#FilterTypeEnum) | | [optional] -**cli** | **String** | | [optional] -**cliFilter** | [**CliFilterEnum**](#CliFilterEnum) | | [optional] -**cld** | **String** | | [optional] -**cldFilter** | [**CldFilterEnum**](#CldFilterEnum) | | [optional] -**tagsList** | **String** | | [optional] -**billingGroup** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**filterType** | [**FilterTypeEnum**](#FilterTypeEnum) | | [optional] | +|**cli** | **String** | | [optional] | +|**cliFilter** | [**CliFilterEnum**](#CliFilterEnum) | | [optional] | +|**cld** | **String** | | [optional] | +|**cldFilter** | [**CldFilterEnum**](#CldFilterEnum) | | [optional] | +|**tagsList** | **String** | | [optional] | +|**billingGroup** | **String** | | [optional] | ## Enum: FilterTypeEnum -Name | Value ----- | ----- -AND | "and" -OR | "or" +| Name | Value | +|---- | -----| +| AND | "and" | +| OR | "or" | ## Enum: CliFilterEnum -Name | Value ----- | ----- -CONTAINS | "contains" -STARTS_WITH | "starts_with" -ENDS_WITH | "ends_with" +| Name | Value | +|---- | -----| +| CONTAINS | "contains" | +| STARTS_WITH | "starts_with" | +| ENDS_WITH | "ends_with" | ## Enum: CldFilterEnum -Name | Value ----- | ----- -CONTAINS | "contains" -STARTS_WITH | "starts_with" -ENDS_WITH | "ends_with" +| Name | Value | +|---- | -----| +| CONTAINS | "contains" | +| STARTS_WITH | "starts_with" | +| ENDS_WITH | "ends_with" | diff --git a/docs/FindAuthenticationProviders200Response.md b/docs/FindAuthenticationProviders200Response.md new file mode 100644 index 00000000..8a740e1f --- /dev/null +++ b/docs/FindAuthenticationProviders200Response.md @@ -0,0 +1,14 @@ + + +# FindAuthenticationProviders200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<AuthenticationProvider>**](AuthenticationProvider.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/FindNotificationsEvents200Response.md b/docs/FindNotificationsEvents200Response.md new file mode 100644 index 00000000..68c736c2 --- /dev/null +++ b/docs/FindNotificationsEvents200Response.md @@ -0,0 +1,14 @@ + + +# FindNotificationsEvents200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NotificationEvent>**](NotificationEvent.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/FindNotificationsEventsConditions200Response.md b/docs/FindNotificationsEventsConditions200Response.md new file mode 100644 index 00000000..2d1fc4d8 --- /dev/null +++ b/docs/FindNotificationsEventsConditions200Response.md @@ -0,0 +1,14 @@ + + +# FindNotificationsEventsConditions200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NotificationEventCondition>**](NotificationEventCondition.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/FindNotificationsProfiles200Response.md b/docs/FindNotificationsProfiles200Response.md new file mode 100644 index 00000000..a0be5f04 --- /dev/null +++ b/docs/FindNotificationsProfiles200Response.md @@ -0,0 +1,14 @@ + + +# FindNotificationsProfiles200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NotificationProfile>**](NotificationProfile.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/FindPortoutComments200Response.md b/docs/FindPortoutComments200Response.md new file mode 100644 index 00000000..d67bc1c6 --- /dev/null +++ b/docs/FindPortoutComments200Response.md @@ -0,0 +1,14 @@ + + +# FindPortoutComments200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortoutComment>**](PortoutComment.md) | | [optional] | +|**meta** | [**Metadata**](Metadata.md) | | [optional] | + + + diff --git a/docs/FindPortoutRequest200Response.md b/docs/FindPortoutRequest200Response.md new file mode 100644 index 00000000..5ca1f4cb --- /dev/null +++ b/docs/FindPortoutRequest200Response.md @@ -0,0 +1,13 @@ + + +# FindPortoutRequest200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortoutDetails**](PortoutDetails.md) | | [optional] | + + + diff --git a/docs/Footer.md b/docs/Footer.md new file mode 100644 index 00000000..74c88f53 --- /dev/null +++ b/docs/Footer.md @@ -0,0 +1,14 @@ + + +# Footer + +The footer of the message. Emojis and markdown are supported. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**text** | **String** | The footer content. Emojis and markdown are supported. Links are supported. | | + + + diff --git a/docs/ForbiddenError.md b/docs/ForbiddenError.md index 51047762..318439b2 100644 --- a/docs/ForbiddenError.md +++ b/docs/ForbiddenError.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**source** | [**ErrorSource**](ErrorSource.md) | | [optional] -**meta** | [**ForbiddenErrorAllOfMeta**](ForbiddenErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**source** | [**UpdateOutboundChannelsDefaultResponseErrorsInnerSource**](UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md) | | [optional] | +|**meta** | [**ForbiddenErrorAllOfMeta**](ForbiddenErrorAllOfMeta.md) | | [optional] | diff --git a/docs/ForbiddenErrorAllOf.md b/docs/ForbiddenErrorAllOf.md index 368a105c..92713851 100644 --- a/docs/ForbiddenErrorAllOf.md +++ b/docs/ForbiddenErrorAllOf.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**meta** | [**ForbiddenErrorAllOfMeta**](ForbiddenErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**meta** | [**ForbiddenErrorAllOfMeta**](ForbiddenErrorAllOfMeta.md) | | [optional] | diff --git a/docs/ForbiddenErrorAllOfMeta.md b/docs/ForbiddenErrorAllOfMeta.md index 9b2eb304..239d10d6 100644 --- a/docs/ForbiddenErrorAllOfMeta.md +++ b/docs/ForbiddenErrorAllOfMeta.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | | [optional] | diff --git a/docs/FqdNsApi.md b/docs/FqdNsApi.md index ef46879e..b389d2eb 100644 --- a/docs/FqdNsApi.md +++ b/docs/FqdNsApi.md @@ -4,14 +4,88 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- +[**createAccessFqdn**](FqdnsApi.md#createAccessFqdn) | **POST** /access_fqdns | Create new Access FQDN [**createFqdn**](FqdnsApi.md#createFqdn) | **POST** /fqdns | Create an FQDN +[**deleteAccessFqdn**](FqdnsApi.md#deleteAccessFqdn) | **DELETE** /access_fqdns/{fqdn_id} | Delete Access FQDN [**deleteFqdn**](FqdnsApi.md#deleteFqdn) | **DELETE** /fqdns/{id} | Delete an FQDN +[**listAccessFqdnById**](FqdnsApi.md#listAccessFqdnById) | **GET** /access_fqdns/{fqdn_id} | List an Access FQDN +[**listAllAccessFqdns**](FqdnsApi.md#listAllAccessFqdns) | **GET** /access_fqdns | List all Access FQDNs +[**listAllIpsByFqdn**](FqdnsApi.md#listAllIpsByFqdn) | **GET** /access_fqdns/{fqdn_id}/ips | List Access FQDN's IP Addresses [**listFqdns**](FqdnsApi.md#listFqdns) | **GET** /fqdns | List FQDNs [**retrieveFqdn**](FqdnsApi.md#retrieveFqdn) | **GET** /fqdns/{id} | Retrieve an FQDN +[**updateAccessFqdn**](FqdnsApi.md#updateAccessFqdn) | **PATCH** /access_fqdns/{fqdn_id} | Update Access FQDN [**updateFqdn**](FqdnsApi.md#updateFqdn) | **PATCH** /fqdns/{id} | Update an FQDN +## createAccessFqdn + +> CustomerFacingFQDNsResponseSchema createAccessFqdn(customerFacingFQDNsPost) + +Create new Access FQDN + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.FqdnsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + FqdnsApi apiInstance = new FqdnsApi(defaultClient); + CustomerFacingFQDNsPost customerFacingFQDNsPost = new CustomerFacingFQDNsPost(); // CustomerFacingFQDNsPost | + try { + CustomerFacingFQDNsResponseSchema result = apiInstance.createAccessFqdn(customerFacingFQDNsPost); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FqdnsApi#createAccessFqdn"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **customerFacingFQDNsPost** | [**CustomerFacingFQDNsPost**](CustomerFacingFQDNsPost.md)| | + +### Return type + +[**CustomerFacingFQDNsResponseSchema**](CustomerFacingFQDNsResponseSchema.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + ## createFqdn > FQDNResponse createFqdn(createFqdnRequest) @@ -84,6 +158,74 @@ Name | Type | Description | Notes | **401** | Unauthorized | - | +## deleteAccessFqdn + +> CustomerFacingFQDNsResponseSchema deleteAccessFqdn(fqdnId) + +Delete Access FQDN + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.FqdnsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + FqdnsApi apiInstance = new FqdnsApi(defaultClient); + String fqdnId = "fqdnId_example"; // String | + try { + CustomerFacingFQDNsResponseSchema result = apiInstance.deleteAccessFqdn(fqdnId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FqdnsApi#deleteAccessFqdn"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fqdnId** | **String**| | + +### Return type + +[**CustomerFacingFQDNsResponseSchema**](CustomerFacingFQDNsResponseSchema.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + ## deleteFqdn > FQDNResponse deleteFqdn(id) @@ -156,6 +298,216 @@ Name | Type | Description | Notes | **401** | Unauthorized | - | +## listAccessFqdnById + +> CustomerFacingFQDNsResponseSchema listAccessFqdnById(fqdnId) + +List an Access FQDN + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.FqdnsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + FqdnsApi apiInstance = new FqdnsApi(defaultClient); + String fqdnId = "fqdnId_example"; // String | + try { + CustomerFacingFQDNsResponseSchema result = apiInstance.listAccessFqdnById(fqdnId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FqdnsApi#listAccessFqdnById"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fqdnId** | **String**| | + +### Return type + +[**CustomerFacingFQDNsResponseSchema**](CustomerFacingFQDNsResponseSchema.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + +## listAllAccessFqdns + +> CustomerFacingFQDNsListResponse listAllAccessFqdns(pageNumber, pageSize) + +List all Access FQDNs + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.FqdnsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + FqdnsApi apiInstance = new FqdnsApi(defaultClient); + Integer pageNumber = 1; // Integer | + Integer pageSize = 20; // Integer | + try { + CustomerFacingFQDNsListResponse result = apiInstance.listAllAccessFqdns(pageNumber, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FqdnsApi#listAllAccessFqdns"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| | [optional] [default to 1] + **pageSize** | **Integer**| | [optional] [default to 20] + +### Return type + +[**CustomerFacingFQDNsListResponse**](CustomerFacingFQDNsListResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + +## listAllIpsByFqdn + +> CustomerFacingFQDNsGetIPResponse listAllIpsByFqdn(fqdnId, pageNumber, pageSize) + +List Access FQDN's IP Addresses + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.FqdnsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + FqdnsApi apiInstance = new FqdnsApi(defaultClient); + String fqdnId = "fqdnId_example"; // String | + Integer pageNumber = 1; // Integer | + Integer pageSize = 20; // Integer | + try { + CustomerFacingFQDNsGetIPResponse result = apiInstance.listAllIpsByFqdn(fqdnId, pageNumber, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FqdnsApi#listAllIpsByFqdn"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fqdnId** | **String**| | + **pageNumber** | **Integer**| | [optional] [default to 1] + **pageSize** | **Integer**| | [optional] [default to 20] + +### Return type + +[**CustomerFacingFQDNsGetIPResponse**](CustomerFacingFQDNsGetIPResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + ## listFqdns > ListFQDNsResponse listFqdns().pageNumber(pageNumber).pageSize(pageSize).filterConnectionId(filterConnectionId).filterFqdn(filterFqdn).filterPort(filterPort).filterDnsRecordType(filterDnsRecordType).execute(); @@ -317,6 +669,76 @@ Name | Type | Description | Notes | **401** | Unauthorized | - | +## updateAccessFqdn + +> CustomerFacingFQDNsResponseSchema updateAccessFqdn(fqdnId, customerFacingFQDNsPatch) + +Update Access FQDN + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.FqdnsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + FqdnsApi apiInstance = new FqdnsApi(defaultClient); + String fqdnId = "fqdnId_example"; // String | + CustomerFacingFQDNsPatch customerFacingFQDNsPatch = new CustomerFacingFQDNsPatch(); // CustomerFacingFQDNsPatch | + try { + CustomerFacingFQDNsResponseSchema result = apiInstance.updateAccessFqdn(fqdnId, customerFacingFQDNsPatch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling FqdnsApi#updateAccessFqdn"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **fqdnId** | **String**| | + **customerFacingFQDNsPatch** | [**CustomerFacingFQDNsPatch**](CustomerFacingFQDNsPatch.md)| | + +### Return type + +[**CustomerFacingFQDNsResponseSchema**](CustomerFacingFQDNsResponseSchema.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | + + ## updateFqdn > FQDNResponse updateFqdn(id, updateFqdnRequest) diff --git a/docs/Fqdn.md b/docs/Fqdn.md index e226d95e..786bd431 100644 --- a/docs/Fqdn.md +++ b/docs/Fqdn.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**connectionId** | **String** | ID of the FQDN connection to which this FQDN is attached. | [optional] -**fqdn** | **String** | FQDN represented by this resource. | [optional] -**port** | **Integer** | Port to use when connecting to this FQDN. | [optional] -**dnsRecordType** | **String** | The DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used. | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**connectionId** | **String** | ID of the FQDN connection to which this FQDN is attached. | [optional] | +|**fqdn** | **String** | FQDN represented by this resource. | [optional] | +|**port** | **Integer** | Port to use when connecting to this FQDN. | [optional] | +|**dnsRecordType** | **String** | The DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | diff --git a/docs/FqdnConnection.md b/docs/FqdnConnection.md index 7c0bcaaa..4e40caaa 100644 --- a/docs/FqdnConnection.md +++ b/docs/FqdnConnection.md @@ -5,36 +5,36 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**active** | **Boolean** | Defaults to true | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | -**transportProtocol** | **FqdnConnectionTransportProtocol** | | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer that the sender and receiver negotiate T38 directly when both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call according to each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] -**inbound** | [**InboundFqdn**](InboundFqdn.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**active** | **Boolean** | Defaults to true | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | | +|**transportProtocol** | **FqdnConnectionTransportProtocol** | | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer that the sender and receiver negotiate T38 directly when both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call according to each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | +|**inbound** | [**InboundFqdn**](InboundFqdn.md) | | [optional] | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/FqdnConnectionResponse.md b/docs/FqdnConnectionResponse.md index 3d61708d..7da11dc3 100644 --- a/docs/FqdnConnectionResponse.md +++ b/docs/FqdnConnectionResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**FqdnConnection**](FqdnConnection.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**FqdnConnection**](FqdnConnection.md) | | [optional] | diff --git a/docs/FqdnConnectionsApi.md b/docs/FqdnConnectionsApi.md index b4003f2a..89205fb6 100644 --- a/docs/FqdnConnectionsApi.md +++ b/docs/FqdnConnectionsApi.md @@ -187,7 +187,7 @@ public class Example { FqdnConnectionsApi apiInstance = new FqdnConnectionsApi(defaultClient); Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page - String filterConnectionNameContains = "null"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. + String filterConnectionNameContains = "filterConnectionNameContains_example"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • connection_name: sorts the result by the connection_name field in ascending order.
  • -connection_name: sorts the result by the connection_name field in descending order.

If not given, results are sorted by created_at in descending order. try { ListFQDNConnectionsResponse result = api.listFqdnConnections() @@ -215,7 +215,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] - **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] + **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] ### Return type diff --git a/docs/FqdnResponse.md b/docs/FqdnResponse.md index 0b6ca3a6..94fa3e9a 100644 --- a/docs/FqdnResponse.md +++ b/docs/FqdnResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Fqdn**](Fqdn.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Fqdn**](Fqdn.md) | | [optional] | diff --git a/docs/GCSConfiguration.md b/docs/GCSConfiguration.md index ee3131a0..ba7e2077 100644 --- a/docs/GCSConfiguration.md +++ b/docs/GCSConfiguration.md @@ -5,18 +5,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**backend** | [**BackendEnum**](#BackendEnum) | | -**_configuration** | [**GCSConfigurationData**](GCSConfigurationData.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**backend** | [**BackendEnum**](#BackendEnum) | | | +|**_configuration** | [**GCSConfigurationData**](GCSConfigurationData.md) | | | ## Enum: BackendEnum -Name | Value ----- | ----- -GCS | "gcs" +| Name | Value | +|---- | -----| +| GCS | "gcs" | diff --git a/docs/GCSConfigurationData.md b/docs/GCSConfigurationData.md index eb96d06f..aa7941e8 100644 --- a/docs/GCSConfigurationData.md +++ b/docs/GCSConfigurationData.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**credentials** | **String** | Opaque credential token used to authenticate and authorize with storage provider | [optional] -**bucket** | **String** | Name of the bucket to be used to store recording files | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**credentials** | **String** | Opaque credential token used to authenticate and authorize with storage provider | [optional] | +|**bucket** | **String** | Name of the bucket to be used to store recording files | [optional] | diff --git a/docs/GatherRequest.md b/docs/GatherRequest.md new file mode 100644 index 00000000..6de7a27e --- /dev/null +++ b/docs/GatherRequest.md @@ -0,0 +1,21 @@ + + +# GatherRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**minimumDigits** | **Integer** | The minimum number of digits to fetch. This parameter has a minimum value of 1. | [optional] | +|**maximumDigits** | **Integer** | The maximum number of digits to fetch. This parameter has a maximum value of 128. | [optional] | +|**timeoutMillis** | **Integer** | The number of milliseconds to wait to complete the request. | [optional] | +|**interDigitTimeoutMillis** | **Integer** | The number of milliseconds to wait for input between digits. | [optional] | +|**initialTimeoutMillis** | **Integer** | The number of milliseconds to wait for the first DTMF. | [optional] | +|**terminatingDigit** | **String** | The digit used to terminate input if fewer than `maximum_digits` digits have been gathered. | [optional] | +|**validDigits** | **String** | A list of all digits accepted as valid. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | + + + diff --git a/docs/GatherUsingAudioRequest.md b/docs/GatherUsingAudioRequest.md index f7c3996f..15c3d83a 100644 --- a/docs/GatherUsingAudioRequest.md +++ b/docs/GatherUsingAudioRequest.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audioUrl** | **String** | The URL of a file to be played back at the beginning of each prompt. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] -**mediaName** | **String** | The media_name of a file to be played back at the beginning of each prompt. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] -**invalidAudioUrl** | **String** | The URL of a file to play when digits don't match the `valid_digits` parameter or the number of digits is not between `min` and `max`. The URL can point to either a WAV or MP3 file. invalid_media_name and invalid_audio_url cannot be used together in one request. | [optional] -**invalidMediaName** | **String** | The media_name of a file to be played back when digits don't match the `valid_digits` parameter or the number of digits is not between `min` and `max`. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] -**minimumDigits** | **Integer** | The minimum number of digits to fetch. This parameter has a minimum value of 1. | [optional] -**maximumDigits** | **Integer** | The maximum number of digits to fetch. This parameter has a maximum value of 128. | [optional] -**maximumTries** | **Integer** | The maximum number of times the file should be played if there is no input from the user on the call. | [optional] -**timeoutMillis** | **Integer** | The number of milliseconds to wait for a DTMF response after file playback ends before a replaying the sound file. | [optional] -**terminatingDigit** | **String** | The digit used to terminate input if fewer than `maximum_digits` digits have been gathered. | [optional] -**validDigits** | **String** | A list of all digits accepted as valid. | [optional] -**interDigitTimeoutMillis** | **Integer** | The number of milliseconds to wait for input between digits. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audioUrl** | **String** | The URL of a file to be played back at the beginning of each prompt. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] | +|**mediaName** | **String** | The media_name of a file to be played back at the beginning of each prompt. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] | +|**invalidAudioUrl** | **String** | The URL of a file to play when digits don't match the `valid_digits` parameter or the number of digits is not between `min` and `max`. The URL can point to either a WAV or MP3 file. invalid_media_name and invalid_audio_url cannot be used together in one request. | [optional] | +|**invalidMediaName** | **String** | The media_name of a file to be played back when digits don't match the `valid_digits` parameter or the number of digits is not between `min` and `max`. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] | +|**minimumDigits** | **Integer** | The minimum number of digits to fetch. This parameter has a minimum value of 1. | [optional] | +|**maximumDigits** | **Integer** | The maximum number of digits to fetch. This parameter has a maximum value of 128. | [optional] | +|**maximumTries** | **Integer** | The maximum number of times the file should be played if there is no input from the user on the call. | [optional] | +|**timeoutMillis** | **Integer** | The number of milliseconds to wait for a DTMF response after file playback ends before a replaying the sound file. | [optional] | +|**terminatingDigit** | **String** | The digit used to terminate input if fewer than `maximum_digits` digits have been gathered. | [optional] | +|**validDigits** | **String** | A list of all digits accepted as valid. | [optional] | +|**interDigitTimeoutMillis** | **Integer** | The number of milliseconds to wait for input between digits. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/GatherUsingSpeakRequest.md b/docs/GatherUsingSpeakRequest.md index 13267756..2d422763 100644 --- a/docs/GatherUsingSpeakRequest.md +++ b/docs/GatherUsingSpeakRequest.md @@ -5,86 +5,86 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | **String** | The text or SSML to be converted into speech. There is a 3,000 character limit. | -**invalidPayload** | **String** | The text or SSML to be converted into speech when digits don't match the `valid_digits` parameter or the number of digits is not between `min` and `max`. There is a 3,000 character limit. | [optional] -**payloadType** | [**PayloadTypeEnum**](#PayloadTypeEnum) | The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML). | [optional] -**serviceLevel** | [**ServiceLevelEnum**](#ServiceLevelEnum) | This parameter impacts speech quality, language options and payload types. When using `basic`, only the `en-US` language and payload type `text` are allowed. | [optional] -**voice** | [**VoiceEnum**](#VoiceEnum) | The gender of the voice used to speak back the text. | -**language** | [**LanguageEnum**](#LanguageEnum) | The language you want spoken. | -**minimumDigits** | **Integer** | The minimum number of digits to fetch. This parameter has a minimum value of 1. | [optional] -**maximumDigits** | **Integer** | The maximum number of digits to fetch. This parameter has a maximum value of 128. | [optional] -**maximumTries** | **Integer** | The maximum number of times that a file should be played back if there is no input from the user on the call. | [optional] -**timeoutMillis** | **Integer** | The number of milliseconds to wait for a DTMF response after speak ends before a replaying the sound file. | [optional] -**terminatingDigit** | **String** | The digit used to terminate input if fewer than `maximum_digits` digits have been gathered. | [optional] -**validDigits** | **String** | A list of all digits accepted as valid. | [optional] -**interDigitTimeoutMillis** | **Integer** | The number of milliseconds to wait for input between digits. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**payload** | **String** | The text or SSML to be converted into speech. There is a 3,000 character limit. | | +|**invalidPayload** | **String** | The text or SSML to be converted into speech when digits don't match the `valid_digits` parameter or the number of digits is not between `min` and `max`. There is a 3,000 character limit. | [optional] | +|**payloadType** | [**PayloadTypeEnum**](#PayloadTypeEnum) | The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML). | [optional] | +|**serviceLevel** | [**ServiceLevelEnum**](#ServiceLevelEnum) | This parameter impacts speech quality, language options and payload types. When using `basic`, only the `en-US` language and payload type `text` are allowed. | [optional] | +|**voice** | [**VoiceEnum**](#VoiceEnum) | The gender of the voice used to speak back the text. | | +|**language** | [**LanguageEnum**](#LanguageEnum) | The language you want spoken. | | +|**minimumDigits** | **Integer** | The minimum number of digits to fetch. This parameter has a minimum value of 1. | [optional] | +|**maximumDigits** | **Integer** | The maximum number of digits to fetch. This parameter has a maximum value of 128. | [optional] | +|**maximumTries** | **Integer** | The maximum number of times that a file should be played back if there is no input from the user on the call. | [optional] | +|**timeoutMillis** | **Integer** | The number of milliseconds to wait for a DTMF response after speak ends before a replaying the sound file. | [optional] | +|**terminatingDigit** | **String** | The digit used to terminate input if fewer than `maximum_digits` digits have been gathered. | [optional] | +|**validDigits** | **String** | A list of all digits accepted as valid. | [optional] | +|**interDigitTimeoutMillis** | **Integer** | The number of milliseconds to wait for input between digits. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | ## Enum: PayloadTypeEnum -Name | Value ----- | ----- -TEXT | "text" -SSML | "ssml" +| Name | Value | +|---- | -----| +| TEXT | "text" | +| SSML | "ssml" | ## Enum: ServiceLevelEnum -Name | Value ----- | ----- -BASIC | "basic" -PREMIUM | "premium" +| Name | Value | +|---- | -----| +| BASIC | "basic" | +| PREMIUM | "premium" | ## Enum: VoiceEnum -Name | Value ----- | ----- -MALE | "male" -FEMALE | "female" +| Name | Value | +|---- | -----| +| MALE | "male" | +| FEMALE | "female" | ## Enum: LanguageEnum -Name | Value ----- | ----- -ARB | "arb" -CMN_CN | "cmn-CN" -CY_GB | "cy-GB" -DA_DK | "da-DK" -DE_DE | "de-DE" -EN_AU | "en-AU" -EN_GB | "en-GB" -EN_GB_WLS | "en-GB-WLS" -EN_IN | "en-IN" -EN_US | "en-US" -ES_ES | "es-ES" -ES_MX | "es-MX" -ES_US | "es-US" -FR_CA | "fr-CA" -FR_FR | "fr-FR" -HI_IN | "hi-IN" -IS_IS | "is-IS" -IT_IT | "it-IT" -JA_JP | "ja-JP" -KO_KR | "ko-KR" -NB_NO | "nb-NO" -NL_NL | "nl-NL" -PL_PL | "pl-PL" -PT_BR | "pt-BR" -PT_PT | "pt-PT" -RO_RO | "ro-RO" -RU_RU | "ru-RU" -SV_SE | "sv-SE" -TR_TR | "tr-TR" +| Name | Value | +|---- | -----| +| ARB | "arb" | +| CMN_CN | "cmn-CN" | +| CY_GB | "cy-GB" | +| DA_DK | "da-DK" | +| DE_DE | "de-DE" | +| EN_AU | "en-AU" | +| EN_GB | "en-GB" | +| EN_GB_WLS | "en-GB-WLS" | +| EN_IN | "en-IN" | +| EN_US | "en-US" | +| ES_ES | "es-ES" | +| ES_MX | "es-MX" | +| ES_US | "es-US" | +| FR_CA | "fr-CA" | +| FR_FR | "fr-FR" | +| HI_IN | "hi-IN" | +| IS_IS | "is-IS" | +| IT_IT | "it-IT" | +| JA_JP | "ja-JP" | +| KO_KR | "ko-KR" | +| NB_NO | "nb-NO" | +| NL_NL | "nl-NL" | +| PL_PL | "pl-PL" | +| PT_BR | "pt-BR" | +| PT_PT | "pt-PT" | +| RO_RO | "ro-RO" | +| RU_RU | "ru-RU" | +| SV_SE | "sv-SE" | +| TR_TR | "tr-TR" | diff --git a/docs/GcbChannelZone.md b/docs/GcbChannelZone.md index 6f721b58..4f9ec06b 100644 --- a/docs/GcbChannelZone.md +++ b/docs/GcbChannelZone.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**countries** | **List<String>** | List of countries (in ISO 3166-2, capitalized) members of the billing channel zone | -**id** | **String** | | -**name** | **String** | | -**channels** | **Long** | | -**createdAt** | **String** | ISO 8601 formatted date of when the channel zone was created | [optional] -**updatedAt** | **String** | ISO 8601 formatted date of when the channel zone was updated | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**countries** | **List<String>** | List of countries (in ISO 3166-2, capitalized) members of the billing channel zone | | +|**id** | **String** | | | +|**name** | **String** | | | +|**channels** | **Long** | | | +|**createdAt** | **String** | ISO 8601 formatted date of when the channel zone was created | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date of when the channel zone was updated | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -CHANNEL_ZONE | "channel_zone" +| Name | Value | +|---- | -----| +| CHANNEL_ZONE | "channel_zone" | diff --git a/docs/GcbPhoneNumber.md b/docs/GcbPhoneNumber.md index ed4afc6a..8faff76a 100644 --- a/docs/GcbPhoneNumber.md +++ b/docs/GcbPhoneNumber.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**channelZoneId** | **String** | | -**id** | **String** | | [optional] -**phoneNumber** | **String** | | -**createdAt** | **String** | ISO 8601 formatted date of when the phone number was created | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**channelZoneId** | **String** | | | +|**id** | **String** | | [optional] | +|**phoneNumber** | **String** | | | +|**createdAt** | **String** | ISO 8601 formatted date of when the phone number was created | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -CHANNEL_ZONE_PHONE_NUMBER | "channel_zone_phone_number" +| Name | Value | +|---- | -----| +| CHANNEL_ZONE_PHONE_NUMBER | "channel_zone_phone_number" | diff --git a/docs/GenericError.md b/docs/GenericError.md index 39b692ee..669b8dfe 100644 --- a/docs/GenericError.md +++ b/docs/GenericError.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Integer** | | [optional] -**title** | **String** | | [optional] -**detail** | **String** | | [optional] -**source** | [**ErrorSource**](ErrorSource.md) | | [optional] -**meta** | **Object** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Integer** | | [optional] | +|**title** | **String** | | [optional] | +|**detail** | **String** | | [optional] | +|**source** | [**UpdateOutboundChannelsDefaultResponseErrorsInnerSource**](UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md) | | [optional] | +|**meta** | **Object** | | [optional] | diff --git a/docs/GetAllFaxApplicationsResponse.md b/docs/GetAllFaxApplicationsResponse.md index 3dba5374..901d95b2 100644 --- a/docs/GetAllFaxApplicationsResponse.md +++ b/docs/GetAllFaxApplicationsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<FaxApplication>**](FaxApplication.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<FaxApplication>**](FaxApplication.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/GetAllTelephonyCredentialResponse.md b/docs/GetAllTelephonyCredentialResponse.md index e51bc18e..0c8c2cc7 100644 --- a/docs/GetAllTelephonyCredentialResponse.md +++ b/docs/GetAllTelephonyCredentialResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<TelephonyCredential>**](TelephonyCredential.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<TelephonyCredential>**](TelephonyCredential.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/GetAllTexmlApplicationsResponse.md b/docs/GetAllTexmlApplicationsResponse.md index c9011c94..c70d66df 100644 --- a/docs/GetAllTexmlApplicationsResponse.md +++ b/docs/GetAllTexmlApplicationsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<TexmlApplication>**](TexmlApplication.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<TexmlApplication>**](TexmlApplication.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/GetChannelZones200Response.md b/docs/GetChannelZones200Response.md new file mode 100644 index 00000000..d4104432 --- /dev/null +++ b/docs/GetChannelZones200Response.md @@ -0,0 +1,14 @@ + + +# GetChannelZones200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<GcbChannelZone>**](GcbChannelZone.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/GetCustomerServiceRequest404Response.md b/docs/GetCustomerServiceRequest404Response.md new file mode 100644 index 00000000..7128bac8 --- /dev/null +++ b/docs/GetCustomerServiceRequest404Response.md @@ -0,0 +1,13 @@ + + +# GetCustomerServiceRequest404Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<ResourceNotFoundError>**](ResourceNotFoundError.md) | | [optional] | + + + diff --git a/docs/GetFaxResponse.md b/docs/GetFaxResponse.md index 412d5e3f..c106e7f1 100644 --- a/docs/GetFaxResponse.md +++ b/docs/GetFaxResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Fax**](Fax.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Fax**](Fax.md) | | [optional] | diff --git a/docs/GetPhoneNumbers200Response.md b/docs/GetPhoneNumbers200Response.md new file mode 100644 index 00000000..e9ed2e8b --- /dev/null +++ b/docs/GetPhoneNumbers200Response.md @@ -0,0 +1,14 @@ + + +# GetPhoneNumbers200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<GcbPhoneNumber>**](GcbPhoneNumber.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/GetPortRequestSupportingDocuments201Response.md b/docs/GetPortRequestSupportingDocuments201Response.md new file mode 100644 index 00000000..5a1aaa85 --- /dev/null +++ b/docs/GetPortRequestSupportingDocuments201Response.md @@ -0,0 +1,13 @@ + + +# GetPortRequestSupportingDocuments201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortOutSupportingDocument>**](PortOutSupportingDocument.md) | | [optional] | + + + diff --git a/docs/GetPortingOrder200Response.md b/docs/GetPortingOrder200Response.md new file mode 100644 index 00000000..0600a1e8 --- /dev/null +++ b/docs/GetPortingOrder200Response.md @@ -0,0 +1,14 @@ + + +# GetPortingOrder200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortingOrder**](PortingOrder.md) | | [optional] | +|**meta** | [**GetPortingOrder200ResponseMeta**](GetPortingOrder200ResponseMeta.md) | | [optional] | + + + diff --git a/docs/GetPortingOrder200ResponseMeta.md b/docs/GetPortingOrder200ResponseMeta.md new file mode 100644 index 00000000..b31f0cf1 --- /dev/null +++ b/docs/GetPortingOrder200ResponseMeta.md @@ -0,0 +1,13 @@ + + +# GetPortingOrder200ResponseMeta + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbersUrl** | **String** | Link to list all phone numbers | [optional] | + + + diff --git a/docs/GetPortingOrderSubRequest200Response.md b/docs/GetPortingOrderSubRequest200Response.md new file mode 100644 index 00000000..3acd33d1 --- /dev/null +++ b/docs/GetPortingOrderSubRequest200Response.md @@ -0,0 +1,13 @@ + + +# GetPortingOrderSubRequest200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**GetSubRequestByPortingOrder**](GetSubRequestByPortingOrder.md) | | [optional] | + + + diff --git a/docs/GetPrivateWirelessGateways200Response.md b/docs/GetPrivateWirelessGateways200Response.md new file mode 100644 index 00000000..5e3121a5 --- /dev/null +++ b/docs/GetPrivateWirelessGateways200Response.md @@ -0,0 +1,14 @@ + + +# GetPrivateWirelessGateways200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PrivateWirelessGateway>**](PrivateWirelessGateway.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/GetRecordingResponse.md b/docs/GetRecordingResponse.md index 59bbad35..b1055b6a 100644 --- a/docs/GetRecordingResponse.md +++ b/docs/GetRecordingResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Recording**](Recording.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Recording**](Recording.md) | | [optional] | diff --git a/docs/GetSubRequestByPortingOrder.md b/docs/GetSubRequestByPortingOrder.md index 1b01fc0f..33fb4947 100644 --- a/docs/GetSubRequestByPortingOrder.md +++ b/docs/GetSubRequestByPortingOrder.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**subRequestId** | **String** | Identifies the Sub Request associated with the Porting Order | [optional] -**portRequestId** | **String** | Identifies the Port Request associated with the Porting Order | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**subRequestId** | **String** | Identifies the Sub Request associated with the Porting Order | [optional] | +|**portRequestId** | **String** | Identifies the Port Request associated with the Porting Order | [optional] | diff --git a/docs/GetUserBalance200Response.md b/docs/GetUserBalance200Response.md new file mode 100644 index 00000000..d59a2e85 --- /dev/null +++ b/docs/GetUserBalance200Response.md @@ -0,0 +1,13 @@ + + +# GetUserBalance200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**UserBalance**](UserBalance.md) | | [optional] | + + + diff --git a/docs/GetWdrReports200Response.md b/docs/GetWdrReports200Response.md new file mode 100644 index 00000000..90ae0435 --- /dev/null +++ b/docs/GetWdrReports200Response.md @@ -0,0 +1,13 @@ + + +# GetWdrReports200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WdrReport>**](WdrReport.md) | | [optional] | + + + diff --git a/docs/GetWebhookDeliveries200Response.md b/docs/GetWebhookDeliveries200Response.md new file mode 100644 index 00000000..0f83bca5 --- /dev/null +++ b/docs/GetWebhookDeliveries200Response.md @@ -0,0 +1,14 @@ + + +# GetWebhookDeliveries200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WebhookDelivery>**](WebhookDelivery.md) | | [optional] | +|**meta** | [**PaginationMetaSimple**](PaginationMetaSimple.md) | | [optional] | + + + diff --git a/docs/GetWebhookDelivery200Response.md b/docs/GetWebhookDelivery200Response.md new file mode 100644 index 00000000..7515040d --- /dev/null +++ b/docs/GetWebhookDelivery200Response.md @@ -0,0 +1,13 @@ + + +# GetWebhookDelivery200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**WebhookDelivery**](WebhookDelivery.md) | | [optional] | + + + diff --git a/docs/HangupRequest.md b/docs/HangupRequest.md index d0f8fc58..482cd605 100644 --- a/docs/HangupRequest.md +++ b/docs/HangupRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/Header.md b/docs/Header.md new file mode 100644 index 00000000..891e05b6 --- /dev/null +++ b/docs/Header.md @@ -0,0 +1,18 @@ + + +# Header + +Header content displayed on top of a message. See header object for more information. You cannot set a header if your interactive object is of product type. Required for type product_list. Optional for other types. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | The header type you would like to use. | | +|**text** | **String** | Text for the header. Formatting allows emojis, but not markdown. | [optional] | +|**video** | [**Video1**](Video1.md) | | [optional] | +|**image** | [**Image1**](Image1.md) | | [optional] | +|**document** | [**Document1**](Document1.md) | | [optional] | + + + diff --git a/docs/HostedNumber.md b/docs/HostedNumber.md index b9286246..9bbebb1c 100644 --- a/docs/HostedNumber.md +++ b/docs/HostedNumber.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] -**phoneNumber** | **String** | The messaging hosted phone number (+E.164 format) | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] | +|**phoneNumber** | **String** | The messaging hosted phone number (+E.164 format) | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -DELETED | "deleted" -FAILED | "failed" -PENDING | "pending" -SUCCESSFUL | "successful" +| Name | Value | +|---- | -----| +| DELETED | "deleted" | +| FAILED | "failed" | +| PENDING | "pending" | +| SUCCESSFUL | "successful" | diff --git a/docs/Http.md b/docs/Http.md index 680aa53c..44a2e723 100644 --- a/docs/Http.md +++ b/docs/Http.md @@ -6,10 +6,10 @@ HTTP request and response information. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**request** | [**Object**](Object.md) | Request details. | [optional] -**response** | [**Object**](Object.md) | Response details, optional. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**request** | [**HttpRequest**](HttpRequest.md) | | [optional] | +|**response** | [**HttpResponse**](HttpResponse.md) | | [optional] | diff --git a/docs/HttpRequest.md b/docs/HttpRequest.md new file mode 100644 index 00000000..0fe3bc63 --- /dev/null +++ b/docs/HttpRequest.md @@ -0,0 +1,15 @@ + + +# HttpRequest + +Request details. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | | [optional] | +|**headers** | **List<String>** | List of headers, limited to 10kB. | [optional] | + + + diff --git a/docs/HttpResponse.md b/docs/HttpResponse.md new file mode 100644 index 00000000..9b872d33 --- /dev/null +++ b/docs/HttpResponse.md @@ -0,0 +1,16 @@ + + +# HttpResponse + +Response details, optional. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **Integer** | | [optional] | +|**headers** | **List<String>** | List of headers, limited to 10kB. | [optional] | +|**body** | **String** | Raw response body, limited to 10kB. | [optional] | + + + diff --git a/docs/Image.md b/docs/Image.md index 5f63742f..c1715e6a 100644 --- a/docs/Image.md +++ b/docs/Image.md @@ -6,11 +6,11 @@ The media object containing an image ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] -**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] -**caption** | **String** | Describes the specified media. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] | +|**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] | +|**caption** | **String** | Describes the specified media. | [optional] | diff --git a/docs/Image1.md b/docs/Image1.md new file mode 100644 index 00000000..511989f7 --- /dev/null +++ b/docs/Image1.md @@ -0,0 +1,16 @@ + + +# Image1 + +Contains the media object for this image. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] | +|**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] | +|**caption** | **String** | Describes the specified media. | [optional] | + + + diff --git a/docs/ImmutableSetLong.md b/docs/ImmutableSetLong.md index 2d0ff561..af00adca 100644 --- a/docs/ImmutableSetLong.md +++ b/docs/ImmutableSetLong.md @@ -5,8 +5,8 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| diff --git a/docs/InboundChannelsApi.md b/docs/InboundChannelsApi.md index d32c3e06..05bdb62f 100644 --- a/docs/InboundChannelsApi.md +++ b/docs/InboundChannelsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## listOutboundChannels -> ListInboundChannels listOutboundChannels() +> ListOutboundChannels200Response listOutboundChannels() Retrieve your inbound channels @@ -39,7 +39,7 @@ public class Example { InboundChannelsApi apiInstance = new InboundChannelsApi(defaultClient); try { - ListInboundChannels result = apiInstance.listOutboundChannels(); + ListOutboundChannels200Response result = apiInstance.listOutboundChannels(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling InboundChannelsApi#listOutboundChannels"); @@ -58,7 +58,7 @@ This endpoint does not need any parameter. ### Return type -[**ListInboundChannels**](ListInboundChannels.md) +[**ListOutboundChannels200Response**](ListOutboundChannels200Response.md) ### Authorization @@ -80,7 +80,7 @@ This endpoint does not need any parameter. ## updateOutboundChannels -> UpdateInbouncChannels updateOutboundChannels(updateInboundChannels) +> UpdateOutboundChannels200Response updateOutboundChannels(updateOutboundChannelsRequest) Update inbound channels @@ -107,9 +107,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); InboundChannelsApi apiInstance = new InboundChannelsApi(defaultClient); - UpdateInboundChannels updateInboundChannels = new UpdateInboundChannels(); // UpdateInboundChannels | + UpdateOutboundChannelsRequest updateOutboundChannelsRequest = new UpdateOutboundChannelsRequest(); // UpdateOutboundChannelsRequest | Inbound channels update try { - UpdateInbouncChannels result = apiInstance.updateOutboundChannels(updateInboundChannels); + UpdateOutboundChannels200Response result = apiInstance.updateOutboundChannels(updateOutboundChannelsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling InboundChannelsApi#updateOutboundChannels"); @@ -127,11 +127,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **updateInboundChannels** | [**UpdateInboundChannels**](UpdateInboundChannels.md)| | + **updateOutboundChannelsRequest** | [**UpdateOutboundChannelsRequest**](UpdateOutboundChannelsRequest.md)| Inbound channels update | ### Return type -[**UpdateInbouncChannels**](UpdateInbouncChannels.md) +[**UpdateOutboundChannels200Response**](UpdateOutboundChannels200Response.md) ### Authorization diff --git a/docs/InboundFqdn.md b/docs/InboundFqdn.md index 2a568cda..60984cba 100644 --- a/docs/InboundFqdn.md +++ b/docs/InboundFqdn.md @@ -5,73 +5,73 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] -**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] -**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] -**defaultRoutingMethod** | [**DefaultRoutingMethodEnum**](#DefaultRoutingMethodEnum) | Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or null, other values are not allowed. | [optional] -**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] -**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] -**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] -**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] -**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] -**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] -**sipRegion** | [**SipRegionEnum**](#SipRegionEnum) | Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used. | [optional] -**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] -**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] -**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] -**timeout2xxSecs** | **Integer** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] | +|**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] | +|**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] | +|**defaultRoutingMethod** | [**DefaultRoutingMethodEnum**](#DefaultRoutingMethodEnum) | Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or null, other values are not allowed. | [optional] | +|**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] | +|**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] | +|**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] | +|**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] | +|**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] | +|**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] | +|**sipRegion** | [**SipRegionEnum**](#SipRegionEnum) | Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used. | [optional] | +|**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] | +|**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] | +|**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] | +|**timeout2xxSecs** | **Integer** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] | ## Enum: AniNumberFormatEnum -Name | Value ----- | ----- -_E_164 | "+E.164" -E_164 | "E.164" -_E_164_NATIONAL | "+E.164-national" -E_164_NATIONAL | "E.164-national" +| Name | Value | +|---- | -----| +| _E_164 | "+E.164" | +| E_164 | "E.164" | +| _E_164_NATIONAL | "+E.164-national" | +| E_164_NATIONAL | "E.164-national" | ## Enum: DnisNumberFormatEnum -Name | Value ----- | ----- -_E164 | "+e164" -E164 | "e164" -NATIONAL | "national" -SIP_USERNAME | "sip_username" +| Name | Value | +|---- | -----| +| _E164 | "+e164" | +| E164 | "e164" | +| NATIONAL | "national" | +| SIP_USERNAME | "sip_username" | ## Enum: DefaultRoutingMethodEnum -Name | Value ----- | ----- -SEQUENTIAL | "sequential" -ROUND_ROBIN | "round-robin" +| Name | Value | +|---- | -----| +| SEQUENTIAL | "sequential" | +| ROUND_ROBIN | "round-robin" | ## Enum: SipRegionEnum -Name | Value ----- | ----- -US | "US" -EUROPE | "Europe" -AUSTRALIA | "Australia" +| Name | Value | +|---- | -----| +| US | "US" | +| EUROPE | "Europe" | +| AUSTRALIA | "Australia" | ## Enum: SipSubdomainReceiveSettingsEnum -Name | Value ----- | ----- -ONLY_MY_CONNECTIONS | "only_my_connections" -FROM_ANYONE | "from_anyone" +| Name | Value | +|---- | -----| +| ONLY_MY_CONNECTIONS | "only_my_connections" | +| FROM_ANYONE | "from_anyone" | diff --git a/docs/InboundIp.md b/docs/InboundIp.md index 46578628..54e9a2c6 100644 --- a/docs/InboundIp.md +++ b/docs/InboundIp.md @@ -5,76 +5,76 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] -**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] -**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] -**defaultPrimaryIpId** | **String** | The default primary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection. | [optional] -**defaultSecondaryIpId** | **String** | The default secondary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection. | [optional] -**defaultTertiaryIpId** | **String** | The default tertiary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection. | [optional] -**defaultRoutingMethod** | [**DefaultRoutingMethodEnum**](#DefaultRoutingMethodEnum) | Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or left blank, other values are not allowed. | [optional] -**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] -**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] -**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] -**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] -**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] -**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] -**sipRegion** | [**SipRegionEnum**](#SipRegionEnum) | Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used. | [optional] -**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] -**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] -**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] -**timeout2xxSecs** | **Integer** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**aniNumberFormat** | [**AniNumberFormatEnum**](#AniNumberFormatEnum) | This setting allows you to set the format with which the caller's number (ANI) is sent for inbound phone calls. | [optional] | +|**dnisNumberFormat** | [**DnisNumberFormatEnum**](#DnisNumberFormatEnum) | | [optional] | +|**codecs** | **List<String>** | Defines the list of codecs that Telnyx will send for inbound calls to a specific number on your portal account, in priority order. This only works when the Connection the number is assigned to uses Media Handling mode: default. OPUS and H.264 codecs are available only when using TCP or TLS transport for SIP. | [optional] | +|**defaultPrimaryIpId** | **String** | The default primary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection. | [optional] | +|**defaultSecondaryIpId** | **String** | The default secondary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection. | [optional] | +|**defaultTertiaryIpId** | **String** | The default tertiary IP to use for the number. Only settable if the connection is of IP authentication type. Value must be the ID of an authorized IP set on the connection. | [optional] | +|**defaultRoutingMethod** | [**DefaultRoutingMethodEnum**](#DefaultRoutingMethodEnum) | Default routing method to be used when a number is associated with the connection. Must be one of the routing method types or left blank, other values are not allowed. | [optional] | +|**channelLimit** | **Integer** | When set, this will limit the total number of inbound calls to phone numbers associated with this connection. | [optional] | +|**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] | +|**isupHeadersEnabled** | **Boolean** | When set, inbound phone calls will receive ISUP parameters via SIP headers. (Only when available and only when using TCP or TLS transport.) | [optional] | +|**prackEnabled** | **Boolean** | Enable PRACK messages as defined in RFC3262. | [optional] | +|**privacyZoneEnabled** | **Boolean** | By default, Telnyx does not send caller-id information when the caller has chosen to hide this information. When this option is enabled, Telnyx will send the SIP header Privacy:id plus the caller-id information so that the receiver side can choose when to hide it. | [optional] | +|**sipCompactHeadersEnabled** | **Boolean** | Defaults to true. | [optional] | +|**sipRegion** | [**SipRegionEnum**](#SipRegionEnum) | Selects which `sip_region` to receive inbound calls from. If null, the default region (US) will be used. | [optional] | +|**sipSubdomain** | **String** | Specifies a subdomain that can be used to receive Inbound calls to a Connection, in the same way a phone number is used, from a SIP endpoint. Example: the subdomain \"example.sip.telnyx.com\" can be called from any SIP endpoint by using the SIP URI \"sip:@example.sip.telnyx.com\" where the user part can be any alphanumeric value. Please note TLS encrypted calls are not allowed for subdomain calls. | [optional] | +|**sipSubdomainReceiveSettings** | [**SipSubdomainReceiveSettingsEnum**](#SipSubdomainReceiveSettingsEnum) | This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). | [optional] | +|**timeout1xxSecs** | **Integer** | Time(sec) before aborting if connection is not made. | [optional] | +|**timeout2xxSecs** | **Integer** | Time(sec) before aborting if call is unanswered (min: 1, max: 600). | [optional] | ## Enum: AniNumberFormatEnum -Name | Value ----- | ----- -_E_164 | "+E.164" -E_164 | "E.164" -_E_164_NATIONAL | "+E.164-national" -E_164_NATIONAL | "E.164-national" +| Name | Value | +|---- | -----| +| _E_164 | "+E.164" | +| E_164 | "E.164" | +| _E_164_NATIONAL | "+E.164-national" | +| E_164_NATIONAL | "E.164-national" | ## Enum: DnisNumberFormatEnum -Name | Value ----- | ----- -_E164 | "+e164" -E164 | "e164" -NATIONAL | "national" -SIP_USERNAME | "sip_username" +| Name | Value | +|---- | -----| +| _E164 | "+e164" | +| E164 | "e164" | +| NATIONAL | "national" | +| SIP_USERNAME | "sip_username" | ## Enum: DefaultRoutingMethodEnum -Name | Value ----- | ----- -SEQUENTIAL | "sequential" -ROUND_ROBIN | "round-robin" +| Name | Value | +|---- | -----| +| SEQUENTIAL | "sequential" | +| ROUND_ROBIN | "round-robin" | ## Enum: SipRegionEnum -Name | Value ----- | ----- -US | "US" -EUROPE | "Europe" -AUSTRALIA | "Australia" +| Name | Value | +|---- | -----| +| US | "US" | +| EUROPE | "Europe" | +| AUSTRALIA | "Australia" | ## Enum: SipSubdomainReceiveSettingsEnum -Name | Value ----- | ----- -ONLY_MY_CONNECTIONS | "only_my_connections" -FROM_ANYONE | "from_anyone" +| Name | Value | +|---- | -----| +| ONLY_MY_CONNECTIONS | "only_my_connections" | +| FROM_ANYONE | "from_anyone" | diff --git a/docs/InboundMessage.md b/docs/InboundMessage.md index e84941f8..a9b1ed59 100644 --- a/docs/InboundMessage.md +++ b/docs/InboundMessage.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**payload** | [**InboundMessagePayload**](InboundMessagePayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**payload** | [**InboundMessagePayload**](InboundMessagePayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -MESSAGE_RECEIVED | "message.received" +| Name | Value | +|---- | -----| +| MESSAGE_RECEIVED | "message.received" | diff --git a/docs/InboundMessageEvent.md b/docs/InboundMessageEvent.md index a6ef4b3d..4229a70a 100644 --- a/docs/InboundMessageEvent.md +++ b/docs/InboundMessageEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**InboundMessage**](InboundMessage.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**InboundMessage**](InboundMessage.md) | | [optional] | diff --git a/docs/InboundMessagePayload.md b/docs/InboundMessagePayload.md index 18438b1f..cf385684 100644 --- a/docs/InboundMessagePayload.md +++ b/docs/InboundMessagePayload.md @@ -5,54 +5,54 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the message. Inbound messages are sent to you whereas outbound messages are sent from you. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | The type of message. This value can be either 'sms' or 'mms'. | [optional] -**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] -**to** | [**List<InboundMessagePayloadTo>**](InboundMessagePayloadTo.md) | | [optional] -**cc** | [**List<InboundMessagePayloadCc>**](InboundMessagePayloadCc.md) | | [optional] -**from** | [**InboundMessagePayloadFrom**](InboundMessagePayloadFrom.md) | | [optional] -**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] -**media** | [**List<InboundMessagePayloadMedia>**](InboundMessagePayloadMedia.md) | | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] -**encoding** | **String** | Encoding scheme used for the message body. | [optional] -**parts** | **Integer** | Number of parts into which the message's body must be split. | [optional] -**tags** | **List<String>** | Tags associated with the resource. | [optional] -**cost** | [**InboundMessagePayloadCost**](InboundMessagePayloadCost.md) | | [optional] -**receivedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message request was received. | [optional] -**sentAt** | **OffsetDateTime** | Not used for inbound messages. | [optional] -**completedAt** | **OffsetDateTime** | Not used for inbound messages. | [optional] -**validUntil** | **OffsetDateTime** | Not used for inbound messages. | [optional] -**errors** | [**List<Error>**](Error.md) | These errors may point at addressees when referring to unsuccessful/unconfirmed delivery statuses. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the message. Inbound messages are sent to you whereas outbound messages are sent from you. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The type of message. This value can be either 'sms' or 'mms'. | [optional] | +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] | +|**to** | [**List<InboundMessagePayloadToInner>**](InboundMessagePayloadToInner.md) | | [optional] | +|**cc** | [**List<InboundMessagePayloadCcInner>**](InboundMessagePayloadCcInner.md) | | [optional] | +|**from** | [**InboundMessagePayloadFrom**](InboundMessagePayloadFrom.md) | | [optional] | +|**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] | +|**media** | [**List<InboundMessagePayloadMediaInner>**](InboundMessagePayloadMediaInner.md) | | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] | +|**encoding** | **String** | Encoding scheme used for the message body. | [optional] | +|**parts** | **Integer** | Number of parts into which the message's body must be split. | [optional] | +|**tags** | **List<String>** | Tags associated with the resource. | [optional] | +|**cost** | [**InboundMessagePayloadCost**](InboundMessagePayloadCost.md) | | [optional] | +|**receivedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message request was received. | [optional] | +|**sentAt** | **OffsetDateTime** | Not used for inbound messages. | [optional] | +|**completedAt** | **OffsetDateTime** | Not used for inbound messages. | [optional] | +|**validUntil** | **OffsetDateTime** | Not used for inbound messages. | [optional] | +|**errors** | [**List<Error>**](Error.md) | These errors may point at addressees when referring to unsuccessful/unconfirmed delivery statuses. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -MESSAGE | "message" +| Name | Value | +|---- | -----| +| MESSAGE | "message" | ## Enum: DirectionEnum -Name | Value ----- | ----- -INBOUND | "inbound" +| Name | Value | +|---- | -----| +| INBOUND | "inbound" | ## Enum: TypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | diff --git a/docs/InboundMessagePayloadCcInner.md b/docs/InboundMessagePayloadCcInner.md new file mode 100644 index 00000000..0476b457 --- /dev/null +++ b/docs/InboundMessagePayloadCcInner.md @@ -0,0 +1,43 @@ + + +# InboundMessagePayloadCcInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | Receiving address (+E.164 formatted phone number or short code). | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**carrier** | **String** | The carrier of the receiver. | [optional] | +|**lineType** | [**LineTypeEnum**](#LineTypeEnum) | The line-type of the receiver. | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| QUEUED | "queued" | +| SENDING | "sending" | +| SENT | "sent" | +| DELIVERED | "delivered" | +| SENDING_FAILED | "sending_failed" | +| DELIVERY_FAILED | "delivery_failed" | +| DELIVERY_UNCONFIRMED | "delivery_unconfirmed" | + + + +## Enum: LineTypeEnum + +| Name | Value | +|---- | -----| +| WIRELINE | "Wireline" | +| WIRELESS | "Wireless" | +| VOWIFI | "VoWiFi" | +| VOIP | "VoIP" | +| PRE_PAID_WIRELESS | "Pre-Paid Wireless" | +| EMPTY | "" | + + + diff --git a/docs/InboundMessagePayloadCost.md b/docs/InboundMessagePayloadCost.md index 5abd389a..fc306f9b 100644 --- a/docs/InboundMessagePayloadCost.md +++ b/docs/InboundMessagePayloadCost.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **BigDecimal** | The amount deducted from your account. | [optional] -**currency** | **String** | The ISO 4217 currency identifier. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | The amount deducted from your account. | [optional] | +|**currency** | **String** | The ISO 4217 currency identifier. | [optional] | diff --git a/docs/InboundMessagePayloadFrom.md b/docs/InboundMessagePayloadFrom.md index 2a557dc3..6a0f87d9 100644 --- a/docs/InboundMessagePayloadFrom.md +++ b/docs/InboundMessagePayloadFrom.md @@ -5,34 +5,34 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**carrier** | **String** | The carrier of the sender. | [optional] -**lineType** | [**LineTypeEnum**](#LineTypeEnum) | The line-type of the sender. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**carrier** | **String** | The carrier of the sender. | [optional] | +|**lineType** | [**LineTypeEnum**](#LineTypeEnum) | The line-type of the sender. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -RECEIVED | "received" -DELIVERED | "delivered" +| Name | Value | +|---- | -----| +| RECEIVED | "received" | +| DELIVERED | "delivered" | ## Enum: LineTypeEnum -Name | Value ----- | ----- -WIRELINE | "Wireline" -WIRELESS | "Wireless" -VOWIFI | "VoWiFi" -VOIP | "VoIP" -PRE_PAID_WIRELESS | "Pre-Paid Wireless" -EMPTY | "" +| Name | Value | +|---- | -----| +| WIRELINE | "Wireline" | +| WIRELESS | "Wireless" | +| VOWIFI | "VoWiFi" | +| VOIP | "VoIP" | +| PRE_PAID_WIRELESS | "Pre-Paid Wireless" | +| EMPTY | "" | diff --git a/docs/InboundMessagePayloadMediaInner.md b/docs/InboundMessagePayloadMediaInner.md new file mode 100644 index 00000000..dcd87872 --- /dev/null +++ b/docs/InboundMessagePayloadMediaInner.md @@ -0,0 +1,16 @@ + + +# InboundMessagePayloadMediaInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | The url of the media requested to be sent. | [optional] | +|**contentType** | **String** | The MIME type of the requested media. | [optional] | +|**size** | **Integer** | The size of the requested media. | [optional] | +|**hashSha256** | **String** | The SHA256 hash of the requested media. | [optional] | + + + diff --git a/docs/InboundMessagePayloadToInner.md b/docs/InboundMessagePayloadToInner.md new file mode 100644 index 00000000..7b9fbd47 --- /dev/null +++ b/docs/InboundMessagePayloadToInner.md @@ -0,0 +1,44 @@ + + +# InboundMessagePayloadToInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | Receiving address (+E.164 formatted phone number or short code). | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**carrier** | **String** | The carrier of the receiver. | [optional] | +|**lineType** | [**LineTypeEnum**](#LineTypeEnum) | The line-type of the receiver. | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| QUEUED | "queued" | +| SENDING | "sending" | +| SENT | "sent" | +| DELIVERED | "delivered" | +| SENDING_FAILED | "sending_failed" | +| DELIVERY_FAILED | "delivery_failed" | +| DELIVERY_UNCONFIRMED | "delivery_unconfirmed" | +| WEBHOOK_DELIVERED | "webhook_delivered" | + + + +## Enum: LineTypeEnum + +| Name | Value | +|---- | -----| +| WIRELINE | "Wireline" | +| WIRELESS | "Wireless" | +| VOWIFI | "VoWiFi" | +| VOIP | "VoIP" | +| PRE_PAID_WIRELESS | "Pre-Paid Wireless" | +| EMPTY | "" | + + + diff --git a/docs/Interactive.md b/docs/Interactive.md new file mode 100644 index 00000000..6239019e --- /dev/null +++ b/docs/Interactive.md @@ -0,0 +1,17 @@ + + +# Interactive + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**InteractiveType**](InteractiveType.md) | The type of interactive message you want to send. | | +|**header** | [**Header**](Header.md) | | [optional] | +|**body** | [**Body**](Body.md) | | [optional] | +|**footer** | [**Footer**](Footer.md) | | [optional] | +|**action** | [**Action**](Action.md) | | | + + + diff --git a/docs/InteractiveAction.md b/docs/InteractiveAction.md new file mode 100644 index 00000000..d560e092 --- /dev/null +++ b/docs/InteractiveAction.md @@ -0,0 +1,17 @@ + + +# InteractiveAction + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**button** | **String** | Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Required for List Messages. | [optional] | +|**buttons** | [**List<InteractiveButton>**](InteractiveButton.md) | A list of buttons. Required for Reply Button Messages. | [optional] | +|**sections** | [**List<InteractiveSection>**](InteractiveSection.md) | Array of section objects. Required for List Messages and Multi-Product Messages. | [optional] | +|**catalogId** | **String** | Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. This ID can be retrieved via Commerce Manager. Required for Single Product Messages and Multi-Product Messages. | [optional] | +|**productRetailerId** | **String** | Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name. | [optional] | + + + diff --git a/docs/InteractiveBody.md b/docs/InteractiveBody.md new file mode 100644 index 00000000..37040dba --- /dev/null +++ b/docs/InteractiveBody.md @@ -0,0 +1,13 @@ + + +# InteractiveBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**text** | **String** | The body content of the message. Emojis and markdown are supported. Links are supported. | | + + + diff --git a/docs/InteractiveButton.md b/docs/InteractiveButton.md new file mode 100644 index 00000000..2ff78ae2 --- /dev/null +++ b/docs/InteractiveButton.md @@ -0,0 +1,14 @@ + + +# InteractiveButton + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**InteractiveButtonType**](InteractiveButtonType.md) | The only supported type is reply (for Reply Button Messages). | [optional] | +|**reply** | [**Reply**](Reply.md) | | | + + + diff --git a/docs/InteractiveButtonReply.md b/docs/InteractiveButtonReply.md new file mode 100644 index 00000000..48b25928 --- /dev/null +++ b/docs/InteractiveButtonReply.md @@ -0,0 +1,14 @@ + + +# InteractiveButtonReply + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**title** | **String** | Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. | | +|**id** | **String** | Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. You cannot have leading or trailing spaces when setting the ID. | | + + + diff --git a/docs/InteractiveButtonType.md b/docs/InteractiveButtonType.md new file mode 100644 index 00000000..647da1e2 --- /dev/null +++ b/docs/InteractiveButtonType.md @@ -0,0 +1,11 @@ + + +# InteractiveButtonType + +## Enum + + +* `REPLY` (value: `"reply"`) + + + diff --git a/docs/InteractiveFooter.md b/docs/InteractiveFooter.md new file mode 100644 index 00000000..7e46af65 --- /dev/null +++ b/docs/InteractiveFooter.md @@ -0,0 +1,13 @@ + + +# InteractiveFooter + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**text** | **String** | The footer content. Emojis and markdown are supported. Links are supported. | | + + + diff --git a/docs/InteractiveHeader.md b/docs/InteractiveHeader.md new file mode 100644 index 00000000..a1920d3c --- /dev/null +++ b/docs/InteractiveHeader.md @@ -0,0 +1,17 @@ + + +# InteractiveHeader + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | The header type you would like to use. | | +|**text** | **String** | Text for the header. Formatting allows emojis, but not markdown. | [optional] | +|**video** | [**Video1**](Video1.md) | | [optional] | +|**image** | [**Image1**](Image1.md) | | [optional] | +|**document** | [**Document1**](Document1.md) | | [optional] | + + + diff --git a/docs/InteractiveProduct.md b/docs/InteractiveProduct.md new file mode 100644 index 00000000..fbfee00b --- /dev/null +++ b/docs/InteractiveProduct.md @@ -0,0 +1,13 @@ + + +# InteractiveProduct + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**productRetailerId** | **String** | Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name. | | + + + diff --git a/docs/InteractiveSection.md b/docs/InteractiveSection.md new file mode 100644 index 00000000..bb2db9ae --- /dev/null +++ b/docs/InteractiveSection.md @@ -0,0 +1,15 @@ + + +# InteractiveSection + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**title** | **String** | Title of the section. Required if the message has more than one section. | [optional] | +|**rows** | [**List<InteractiveSectionRow>**](InteractiveSectionRow.md) | Contains a list of rows. Limited to 10 rows across all sections. Required for List Messages. | [optional] | +|**productItems** | [**List<InteractiveProduct>**](InteractiveProduct.md) | Array of product objects. There is a minimum of 1 product per section. There is a maximum of 30 products across all sections. | [optional] | + + + diff --git a/docs/InteractiveSectionRow.md b/docs/InteractiveSectionRow.md new file mode 100644 index 00000000..efcd2149 --- /dev/null +++ b/docs/InteractiveSectionRow.md @@ -0,0 +1,15 @@ + + +# InteractiveSectionRow + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Maximum length: 200 characters | | +|**title** | **String** | Maximum length: 24 characters | | +|**description** | **String** | Maximum length: 72 characters | [optional] | + + + diff --git a/docs/InteractiveType.md b/docs/InteractiveType.md new file mode 100644 index 00000000..1fec9fa6 --- /dev/null +++ b/docs/InteractiveType.md @@ -0,0 +1,17 @@ + + +# InteractiveType + +## Enum + + +* `LIST` (value: `"list"`) + +* `BUTTON` (value: `"button"`) + +* `PRODUCT` (value: `"product"`) + +* `PRODUCT_LIST` (value: `"product_list"`) + + + diff --git a/docs/InterfaceStatus.md b/docs/InterfaceStatus.md new file mode 100644 index 00000000..78f96112 --- /dev/null +++ b/docs/InterfaceStatus.md @@ -0,0 +1,17 @@ + + +# InterfaceStatus + +## Enum + + +* `CREATED` (value: `"created"`) + +* `PROVISIONING` (value: `"provisioning"`) + +* `PROVISIONED` (value: `"provisioned"`) + +* `DELETING` (value: `"deleting"`) + + + diff --git a/docs/InventoryCoverage.md b/docs/InventoryCoverage.md index d6c47502..1b46232f 100644 --- a/docs/InventoryCoverage.md +++ b/docs/InventoryCoverage.md @@ -5,47 +5,47 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**group** | **String** | | [optional] -**groupType** | **String** | | [optional] -**numberRange** | **Integer** | | [optional] -**numberType** | [**NumberTypeEnum**](#NumberTypeEnum) | | [optional] -**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | | [optional] -**coverageType** | [**CoverageTypeEnum**](#CoverageTypeEnum) | | [optional] -**recordType** | **String** | | [optional] -**count** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**group** | **String** | | [optional] | +|**groupType** | **String** | | [optional] | +|**numberRange** | **Integer** | | [optional] | +|**numberType** | [**NumberTypeEnum**](#NumberTypeEnum) | | [optional] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | | [optional] | +|**coverageType** | [**CoverageTypeEnum**](#CoverageTypeEnum) | | [optional] | +|**recordType** | **String** | | [optional] | +|**count** | **Integer** | | [optional] | ## Enum: NumberTypeEnum -Name | Value ----- | ----- -DID | "did" -TOLL_FREE | "toll-free" +| Name | Value | +|---- | -----| +| DID | "did" | +| TOLL_FREE | "toll-free" | ## Enum: PhoneNumberTypeEnum -Name | Value ----- | ----- -LOCAL | "local" -TOLL_FREE | "toll_free" -NATIONAL | "national" -LANDLINE | "landline" -SHARED_COST | "shared_cost" -MOBILE | "mobile" +| Name | Value | +|---- | -----| +| LOCAL | "local" | +| TOLL_FREE | "toll_free" | +| NATIONAL | "national" | +| LANDLINE | "landline" | +| SHARED_COST | "shared_cost" | +| MOBILE | "mobile" | ## Enum: CoverageTypeEnum -Name | Value ----- | ----- -NUMBER | "number" -BLOCK | "block" +| Name | Value | +|---- | -----| +| NUMBER | "number" | +| BLOCK | "block" | diff --git a/docs/InventoryCoverageMetadata.md b/docs/InventoryCoverageMetadata.md index 51554c71..3d845d1a 100644 --- a/docs/InventoryCoverageMetadata.md +++ b/docs/InventoryCoverageMetadata.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalResults** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalResults** | **Integer** | | [optional] | diff --git a/docs/InventoryLevelApi.md b/docs/InventoryLevelApi.md index 73ca9856..12d7ff70 100644 --- a/docs/InventoryLevelApi.md +++ b/docs/InventoryLevelApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## createInventoryCoverageRequest -> InventoryCoverageResponse createInventoryCoverageRequest(filterGroupBy, filterNpa, filterNxx, filterAdministrativeArea, filterPhoneNumberType, filterCountryCode, filterCount) +> CreateInventoryCoverageRequest200Response createInventoryCoverageRequest(filterGroupBy, filterNpa, filterNxx, filterAdministrativeArea, filterPhoneNumberType, filterCountryCode, filterCount) Create an inventory coverage request @@ -45,7 +45,7 @@ public class Example { String filterCountryCode = "US"; // String | Boolean filterCount = true; // Boolean | try { - InventoryCoverageResponse result = apiInstance.createInventoryCoverageRequest(filterGroupBy, filterNpa, filterNxx, filterAdministrativeArea, filterPhoneNumberType, filterCountryCode, filterCount); + CreateInventoryCoverageRequest200Response result = apiInstance.createInventoryCoverageRequest(filterGroupBy, filterNpa, filterNxx, filterAdministrativeArea, filterPhoneNumberType, filterCountryCode, filterCount); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling InventoryLevelApi#createInventoryCoverageRequest"); @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Return type -[**InventoryCoverageResponse**](InventoryCoverageResponse.md) +[**CreateInventoryCoverageRequest200Response**](CreateInventoryCoverageRequest200Response.md) ### Authorization diff --git a/docs/Ip.md b/docs/Ip.md index 458c13ac..a8521a7a 100644 --- a/docs/Ip.md +++ b/docs/Ip.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the type of resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**connectionId** | **String** | ID of the IP Connection to which this IP should be attached. | [optional] -**ipAddress** | **String** | IP adddress represented by this resource. | [optional] -**port** | **Integer** | Port to use when connecting to this IP. | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the type of resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**connectionId** | **String** | ID of the IP Connection to which this IP should be attached. | [optional] | +|**ipAddress** | **String** | IP adddress represented by this resource. | [optional] | +|**port** | **Integer** | Port to use when connecting to this IP. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | diff --git a/docs/IpAddressesApi.md b/docs/IpAddressesApi.md index 88834fcd..464822f5 100644 --- a/docs/IpAddressesApi.md +++ b/docs/IpAddressesApi.md @@ -5,8 +5,9 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- [**accessIPAddressCreate**](IpAddressesApi.md#accessIPAddressCreate) | **POST** /access_ip_address | Create new Access IP Address +[**accessIPAddressDelete**](IpAddressesApi.md#accessIPAddressDelete) | **DELETE** /access_ip_address/{access_ip_address_id} | Delete access IP address +[**accessIPAddressGet**](IpAddressesApi.md#accessIPAddressGet) | **GET** /access_ip_address/{access_ip_address_id} | Retrieve an access IP address [**accessIPAddressList**](IpAddressesApi.md#accessIPAddressList) | **GET** /access_ip_address | List all Access IP Addresses -[**accessIpAddressAccessIpAddressIdDelete**](IpAddressesApi.md#accessIpAddressAccessIpAddressIdDelete) | **DELETE** /access_ip_address/{access_ip_address_id} | Delete access IP address @@ -79,16 +80,15 @@ Name | Type | Description | Notes | **422** | Validation Error | - | -## accessIPAddressList +## accessIPAddressDelete -> AccessIPAddressListResponseSchema accessIPAddressList(filterIpSource, filterIpAddress, filterStatus, filterCreatedAtGt, filterCreatedAtLt, pageNumber, pageSize) +> AccessIPAddressResponseSchema accessIPAddressDelete(accessIpAddressId) -List all Access IP Addresses +Delete access IP address ### Example ```java -import java.time.OffsetDateTime; // Import classes: import com.telnyx.sdk.ApiClient; import com.telnyx.sdk.ApiException; @@ -107,18 +107,12 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); IpAddressesApi apiInstance = new IpAddressesApi(defaultClient); - String filterIpSource = "filterIpSource_example"; // String | - String filterIpAddress = "filterIpAddress_example"; // String | - CloudflareSyncStatus filterStatus = CloudflareSyncStatus.fromValue("pending"); // CloudflareSyncStatus | - OffsetDateTime filterCreatedAtGt = OffsetDateTime.now(); // OffsetDateTime | - OffsetDateTime filterCreatedAtLt = OffsetDateTime.now(); // OffsetDateTime | - Integer pageNumber = 1; // Integer | - Integer pageSize = 20; // Integer | + String accessIpAddressId = "accessIpAddressId_example"; // String | try { - AccessIPAddressListResponseSchema result = apiInstance.accessIPAddressList(filterIpSource, filterIpAddress, filterStatus, filterCreatedAtGt, filterCreatedAtLt, pageNumber, pageSize); + AccessIPAddressResponseSchema result = apiInstance.accessIPAddressDelete(accessIpAddressId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IpAddressesApi#accessIPAddressList"); + System.err.println("Exception when calling IpAddressesApi#accessIPAddressDelete"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -133,17 +127,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **filterIpSource** | **String**| | [optional] - **filterIpAddress** | **String**| | [optional] - **filterStatus** | **CloudflareSyncStatus**| | [optional] [enum: pending, added] - **filterCreatedAtGt** | **OffsetDateTime**| | [optional] - **filterCreatedAtLt** | **OffsetDateTime**| | [optional] - **pageNumber** | **Integer**| | [optional] [default to 1] - **pageSize** | **Integer**| | [optional] [default to 20] + **accessIpAddressId** | **String**| | ### Return type -[**AccessIPAddressListResponseSchema**](AccessIPAddressListResponseSchema.md) +[**AccessIPAddressResponseSchema**](AccessIPAddressResponseSchema.md) ### Authorization @@ -158,14 +146,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful Response | - | -| **422** | Validation Error | - | -## accessIpAddressAccessIpAddressIdDelete +## accessIPAddressGet -> AccessIPAddressResponseSchema accessIpAddressAccessIpAddressIdDelete(accessIpAddressId) +> AccessIPAddressResponseSchema accessIPAddressGet(accessIpAddressId) -Delete access IP address +Retrieve an access IP address ### Example @@ -190,10 +177,10 @@ public class Example { IpAddressesApi apiInstance = new IpAddressesApi(defaultClient); String accessIpAddressId = "accessIpAddressId_example"; // String | try { - AccessIPAddressResponseSchema result = apiInstance.accessIpAddressAccessIpAddressIdDelete(accessIpAddressId); + AccessIPAddressResponseSchema result = apiInstance.accessIPAddressGet(accessIpAddressId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling IpAddressesApi#accessIpAddressAccessIpAddressIdDelete"); + System.err.println("Exception when calling IpAddressesApi#accessIPAddressGet"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -228,3 +215,85 @@ Name | Type | Description | Notes |-------------|-------------|------------------| | **200** | Successful Response | - | + +## accessIPAddressList + +> AccessIPAddressListResponseSchema accessIPAddressList(filterIpSource, filterIpAddress, filterStatus, filterCreatedAtGt, filterCreatedAtLt, pageNumber, pageSize) + +List all Access IP Addresses + +### Example + +```java +import java.time.OffsetDateTime; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.IpAddressesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + IpAddressesApi apiInstance = new IpAddressesApi(defaultClient); + String filterIpSource = "filterIpSource_example"; // String | + String filterIpAddress = "filterIpAddress_example"; // String | + CloudflareSyncStatus filterStatus = CloudflareSyncStatus.fromValue("pending"); // CloudflareSyncStatus | + OffsetDateTime filterCreatedAtGt = OffsetDateTime.now(); // OffsetDateTime | + OffsetDateTime filterCreatedAtLt = OffsetDateTime.now(); // OffsetDateTime | + Integer pageNumber = 1; // Integer | + Integer pageSize = 20; // Integer | + try { + AccessIPAddressListResponseSchema result = apiInstance.accessIPAddressList(filterIpSource, filterIpAddress, filterStatus, filterCreatedAtGt, filterCreatedAtLt, pageNumber, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling IpAddressesApi#accessIPAddressList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **filterIpSource** | **String**| | [optional] + **filterIpAddress** | **String**| | [optional] + **filterStatus** | **CloudflareSyncStatus**| | [optional] [enum: pending, added] + **filterCreatedAtGt** | **OffsetDateTime**| | [optional] + **filterCreatedAtLt** | **OffsetDateTime**| | [optional] + **pageNumber** | **Integer**| | [optional] [default to 1] + **pageSize** | **Integer**| | [optional] [default to 20] + +### Return type + +[**AccessIPAddressListResponseSchema**](AccessIPAddressListResponseSchema.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **422** | Validation Error | - | + diff --git a/docs/IpConnection.md b/docs/IpConnection.md index 8891be83..6a35f0ce 100644 --- a/docs/IpConnection.md +++ b/docs/IpConnection.md @@ -5,47 +5,47 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the type of resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**active** | **Boolean** | Defaults to true | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | [optional] -**transportProtocol** | [**TransportProtocolEnum**](#TransportProtocolEnum) | One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication. | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] -**inbound** | [**InboundIp**](InboundIp.md) | | [optional] -**outbound** | [**OutboundIp**](OutboundIp.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the type of resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**active** | **Boolean** | Defaults to true | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | [optional] | +|**transportProtocol** | [**TransportProtocolEnum**](#TransportProtocolEnum) | One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication. | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | +|**inbound** | [**InboundIp**](InboundIp.md) | | [optional] | +|**outbound** | [**OutboundIp**](OutboundIp.md) | | [optional] | ## Enum: TransportProtocolEnum -Name | Value ----- | ----- -UDP | "UDP" -TCP | "TCP" -TLS | "TLS" +| Name | Value | +|---- | -----| +| UDP | "UDP" | +| TCP | "TCP" | +| TLS | "TLS" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/IpConnectionResponse.md b/docs/IpConnectionResponse.md index 541682ce..37a7c5ca 100644 --- a/docs/IpConnectionResponse.md +++ b/docs/IpConnectionResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**IpConnection**](IpConnection.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**IpConnection**](IpConnection.md) | | [optional] | diff --git a/docs/IpConnectionsApi.md b/docs/IpConnectionsApi.md index 17e337d1..fcd82e57 100644 --- a/docs/IpConnectionsApi.md +++ b/docs/IpConnectionsApi.md @@ -187,7 +187,7 @@ public class Example { IpConnectionsApi apiInstance = new IpConnectionsApi(defaultClient); Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page - String filterConnectionNameContains = "null"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. + String filterConnectionNameContains = "filterConnectionNameContains_example"; // String | If present, connections with connection_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. String filterOutboundOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • connection_name: sorts the result by the connection_name field in ascending order.
  • -connection_name: sorts the result by the connection_name field in descending order.

If not given, results are sorted by created_at in descending order. try { @@ -217,7 +217,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] - **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] + **filterConnectionNameContains** | **String**| If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] **filterOutboundOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] diff --git a/docs/IpItem.md b/docs/IpItem.md new file mode 100644 index 00000000..037563b0 --- /dev/null +++ b/docs/IpItem.md @@ -0,0 +1,16 @@ + + +# IpItem + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ipAddress** | **String** | | [optional] | +|**fqdn** | **String** | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | [optional] | + + + diff --git a/docs/IpResponse.md b/docs/IpResponse.md index bbb42954..c808f775 100644 --- a/docs/IpResponse.md +++ b/docs/IpResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Ip**](Ip.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Ip**](Ip.md) | | [optional] | diff --git a/docs/JoinConferenceRequest.md b/docs/JoinConferenceRequest.md index 57f8f7ed..28fd71bf 100644 --- a/docs/JoinConferenceRequest.md +++ b/docs/JoinConferenceRequest.md @@ -5,43 +5,43 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique identifier and token for controlling the call | -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. Please note that the client_state will be updated for the participient call leg and the change will not affect conferencing webhooks unless the participient is the owner of the conference. | [optional] -**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] -**endConferenceOnExit** | **Boolean** | Whether the conference should end and all remaining participants be hung up after the participant leaves the conference. Defaults to \"false\". | [optional] -**softEndConferenceOnExit** | **Boolean** | Whether the conference should end after the participant leaves the conference. NOTE this doesn't hang up the other participants. Defaults to \"false\". | [optional] -**hold** | **Boolean** | Whether the participant should be put on hold immediately after joining the conference. Defaults to \"false\". | [optional] -**holdAudioUrl** | **String** | The URL of a file to be played to the participant when they are put on hold after joining the conference. hold_media_name and hold_audio_url cannot be used together in one request. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] -**holdMediaName** | **String** | The media_name of a file to be played to the participant when they are put on hold after joining the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] -**mute** | **Boolean** | Whether the participant should be muted immediately after joining the conference. Defaults to \"false\". | [optional] -**startConferenceOnEnter** | **Boolean** | Whether the conference should be started after the participant joins the conference. Defaults to \"false\". | [optional] -**supervisorRole** | [**SupervisorRoleEnum**](#SupervisorRoleEnum) | Sets the joining participant as a supervisor for the conference. A conference can have multiple supervisors. \"barge\" means the supervisor enters the conference as a normal participant. This is the same as \"none\". \"monitor\" means the supervisor is muted but can hear all participants. \"whisper\" means that only the specified \"whisper_call_control_ids\" can hear the supervisor. Defaults to \"none\". | [optional] -**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the joining supervisor can whisper to. If none provided, the supervisor will join the conference as a monitoring participant only. | [optional] -**beepEnabled** | [**BeepEnabledEnum**](#BeepEnabledEnum) | Whether a beep sound should be played when the participant joins and/or leaves the conference. Can be used to override the conference-level setting. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique identifier and token for controlling the call | | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. Please note that the client_state will be updated for the participient call leg and the change will not affect conferencing webhooks unless the participient is the owner of the conference. | [optional] | +|**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] | +|**endConferenceOnExit** | **Boolean** | Whether the conference should end and all remaining participants be hung up after the participant leaves the conference. Defaults to \"false\". | [optional] | +|**softEndConferenceOnExit** | **Boolean** | Whether the conference should end after the participant leaves the conference. NOTE this doesn't hang up the other participants. Defaults to \"false\". | [optional] | +|**hold** | **Boolean** | Whether the participant should be put on hold immediately after joining the conference. Defaults to \"false\". | [optional] | +|**holdAudioUrl** | **String** | The URL of a file to be played to the participant when they are put on hold after joining the conference. hold_media_name and hold_audio_url cannot be used together in one request. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] | +|**holdMediaName** | **String** | The media_name of a file to be played to the participant when they are put on hold after joining the conference. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. Takes effect only when \"start_conference_on_create\" is set to \"false\". This property takes effect only if \"hold\" is set to \"true\". | [optional] | +|**mute** | **Boolean** | Whether the participant should be muted immediately after joining the conference. Defaults to \"false\". | [optional] | +|**startConferenceOnEnter** | **Boolean** | Whether the conference should be started after the participant joins the conference. Defaults to \"false\". | [optional] | +|**supervisorRole** | [**SupervisorRoleEnum**](#SupervisorRoleEnum) | Sets the joining participant as a supervisor for the conference. A conference can have multiple supervisors. \"barge\" means the supervisor enters the conference as a normal participant. This is the same as \"none\". \"monitor\" means the supervisor is muted but can hear all participants. \"whisper\" means that only the specified \"whisper_call_control_ids\" can hear the supervisor. Defaults to \"none\". | [optional] | +|**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the joining supervisor can whisper to. If none provided, the supervisor will join the conference as a monitoring participant only. | [optional] | +|**beepEnabled** | [**BeepEnabledEnum**](#BeepEnabledEnum) | Whether a beep sound should be played when the participant joins and/or leaves the conference. Can be used to override the conference-level setting. | [optional] | ## Enum: SupervisorRoleEnum -Name | Value ----- | ----- -BARGE | "barge" -MONITOR | "monitor" -NONE | "none" -WHISPER | "whisper" +| Name | Value | +|---- | -----| +| BARGE | "barge" | +| MONITOR | "monitor" | +| NONE | "none" | +| WHISPER | "whisper" | ## Enum: BeepEnabledEnum -Name | Value ----- | ----- -ALWAYS | "always" -NEVER | "never" -ON_ENTER | "on_enter" -ON_EXIT | "on_exit" +| Name | Value | +|---- | -----| +| ALWAYS | "always" | +| NEVER | "never" | +| ON_ENTER | "on_enter" | +| ON_EXIT | "on_exit" | diff --git a/docs/Language.md b/docs/Language.md index 41207cbe..52bcdba2 100644 --- a/docs/Language.md +++ b/docs/Language.md @@ -5,19 +5,19 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**policy** | [**PolicyEnum**](#PolicyEnum) | The language policy the message should follow | -**code** | **String** | The code of the language or locale to use — Accepts both language and language_locale formats (e.g., en and en_US). | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**policy** | [**PolicyEnum**](#PolicyEnum) | The language policy the message should follow | | +|**code** | **String** | The code of the language or locale to use — Accepts both language and language_locale formats (e.g., en and en_US). | | ## Enum: PolicyEnum -Name | Value ----- | ----- -FALLBACK | "fallback" -DETERMINISTIC | "deterministic" +| Name | Value | +|---- | -----| +| FALLBACK | "fallback" | +| DETERMINISTIC | "deterministic" | diff --git a/docs/LeaveConferenceRequest.md b/docs/LeaveConferenceRequest.md index 3b81b8c9..6f4c66fe 100644 --- a/docs/LeaveConferenceRequest.md +++ b/docs/LeaveConferenceRequest.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique identifier and token for controlling the call | -**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] -**beepEnabled** | [**BeepEnabledEnum**](#BeepEnabledEnum) | Whether a beep sound should be played when the participant leaves the conference. Can be used to override the conference-level setting. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique identifier and token for controlling the call | | +|**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] | +|**beepEnabled** | [**BeepEnabledEnum**](#BeepEnabledEnum) | Whether a beep sound should be played when the participant leaves the conference. Can be used to override the conference-level setting. | [optional] | ## Enum: BeepEnabledEnum -Name | Value ----- | ----- -ALWAYS | "always" -NEVER | "never" -ON_ENTER | "on_enter" -ON_EXIT | "on_exit" +| Name | Value | +|---- | -----| +| ALWAYS | "always" | +| NEVER | "never" | +| ON_ENTER | "on_enter" | +| ON_EXIT | "on_exit" | diff --git a/docs/LeaveQueueRequest.md b/docs/LeaveQueueRequest.md index 28c643f1..30e3df94 100644 --- a/docs/LeaveQueueRequest.md +++ b/docs/LeaveQueueRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/LedgerBillingGroupReport.md b/docs/LedgerBillingGroupReport.md index 20067852..7042db55 100644 --- a/docs/LedgerBillingGroupReport.md +++ b/docs/LedgerBillingGroupReport.md @@ -5,34 +5,34 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**organizationId** | **UUID** | Uniquely identifies the organization that owns the resource. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Status of the ledger billing group report | [optional] -**reportUrl** | **String** | External url of the ledger billing group report, if the status is complete | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**organizationId** | **UUID** | Uniquely identifies the organization that owns the resource. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of the ledger billing group report | [optional] | +|**reportUrl** | **String** | External url of the ledger billing group report, if the status is complete | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -LEDGER_BILLING_GROUP_REPORT | "ledger_billing_group_report" +| Name | Value | +|---- | -----| +| LEDGER_BILLING_GROUP_REPORT | "ledger_billing_group_report" | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -COMPLETE | "complete" -FAILED | "failed" -DELETED | "deleted" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| COMPLETE | "complete" | +| FAILED | "failed" | +| DELETED | "deleted" | diff --git a/docs/ListAllowedFocWindows200Response.md b/docs/ListAllowedFocWindows200Response.md new file mode 100644 index 00000000..15b4ef94 --- /dev/null +++ b/docs/ListAllowedFocWindows200Response.md @@ -0,0 +1,14 @@ + + +# ListAllowedFocWindows200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrdersAllowedFocWindow>**](PortingOrdersAllowedFocWindow.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListAvailablePhoneNumbersBlocksResponse.md b/docs/ListAvailablePhoneNumbersBlocksResponse.md index 8dbecef1..e13eb623 100644 --- a/docs/ListAvailablePhoneNumbersBlocksResponse.md +++ b/docs/ListAvailablePhoneNumbersBlocksResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<AvailablePhoneNumberBlock>**](AvailablePhoneNumberBlock.md) | | [optional] -**meta** | [**AvailablePhoneNumbersMetadata**](AvailablePhoneNumbersMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<AvailablePhoneNumberBlock>**](AvailablePhoneNumberBlock.md) | | [optional] | +|**meta** | [**AvailablePhoneNumbersMetadata**](AvailablePhoneNumbersMetadata.md) | | [optional] | diff --git a/docs/ListAvailablePhoneNumbersResponse.md b/docs/ListAvailablePhoneNumbersResponse.md index 80224987..617059c3 100644 --- a/docs/ListAvailablePhoneNumbersResponse.md +++ b/docs/ListAvailablePhoneNumbersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<AvailablePhoneNumber>**](AvailablePhoneNumber.md) | | [optional] -**meta** | [**AvailablePhoneNumbersMetadata**](AvailablePhoneNumbersMetadata.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<AvailablePhoneNumber>**](AvailablePhoneNumber.md) | | [optional] | +|**meta** | [**AvailablePhoneNumbersMetadata**](AvailablePhoneNumbersMetadata.md) | | [optional] | diff --git a/docs/ListBillingGroups200Response.md b/docs/ListBillingGroups200Response.md new file mode 100644 index 00000000..051b0356 --- /dev/null +++ b/docs/ListBillingGroups200Response.md @@ -0,0 +1,14 @@ + + +# ListBillingGroups200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<BillingGroup>**](BillingGroup.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListBulkSIMCardActions200Response.md b/docs/ListBulkSIMCardActions200Response.md new file mode 100644 index 00000000..33fa23ba --- /dev/null +++ b/docs/ListBulkSIMCardActions200Response.md @@ -0,0 +1,14 @@ + + +# ListBulkSIMCardActions200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<BulkSIMCardActionDetailed>**](BulkSIMCardActionDetailed.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListBusinessIdentitiesResponse.md b/docs/ListBusinessIdentitiesResponse.md index 10060005..37d71f38 100644 --- a/docs/ListBusinessIdentitiesResponse.md +++ b/docs/ListBusinessIdentitiesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<BusinessIdentity>**](BusinessIdentity.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<BusinessIdentity>**](BusinessIdentity.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListCallControlApplicationsResponse.md b/docs/ListCallControlApplicationsResponse.md index 7ba49d15..dbfcc379 100644 --- a/docs/ListCallControlApplicationsResponse.md +++ b/docs/ListCallControlApplicationsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<CallControlApplication>**](CallControlApplication.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CallControlApplication>**](CallControlApplication.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListCallEventsResponse.md b/docs/ListCallEventsResponse.md index 192e5ca2..293135bb 100644 --- a/docs/ListCallEventsResponse.md +++ b/docs/ListCallEventsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<CallEvent>**](CallEvent.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CallEvent>**](CallEvent.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListComments200Response.md b/docs/ListComments200Response.md new file mode 100644 index 00000000..17c00965 --- /dev/null +++ b/docs/ListComments200Response.md @@ -0,0 +1,14 @@ + + +# ListComments200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Comment>**](Comment.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListConferencesResponse.md b/docs/ListConferencesResponse.md index c8870be0..62fd09ec 100644 --- a/docs/ListConferencesResponse.md +++ b/docs/ListConferencesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Conference>**](Conference.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Conference>**](Conference.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListConnectionsResponse.md b/docs/ListConnectionsResponse.md index 3fb647cc..53e80b45 100644 --- a/docs/ListConnectionsResponse.md +++ b/docs/ListConnectionsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Connection>**](Connection.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Connection>**](Connection.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListCredentialConnectionsResponse.md b/docs/ListCredentialConnectionsResponse.md index aea8a6d6..c4c043b3 100644 --- a/docs/ListCredentialConnectionsResponse.md +++ b/docs/ListCredentialConnectionsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<CredentialConnection>**](CredentialConnection.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CredentialConnection>**](CredentialConnection.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListCsvDownloadsResponse.md b/docs/ListCsvDownloadsResponse.md index dc35785f..b7b655a7 100644 --- a/docs/ListCsvDownloadsResponse.md +++ b/docs/ListCsvDownloadsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<CsvDownload>**](CsvDownload.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CsvDownload>**](CsvDownload.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListCustomerServiceRequests200Response.md b/docs/ListCustomerServiceRequests200Response.md new file mode 100644 index 00000000..37149cad --- /dev/null +++ b/docs/ListCustomerServiceRequests200Response.md @@ -0,0 +1,14 @@ + + +# ListCustomerServiceRequests200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CustomerServiceRequest>**](CustomerServiceRequest.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListCustomerServiceRequests401Response.md b/docs/ListCustomerServiceRequests401Response.md new file mode 100644 index 00000000..c0ba7ff1 --- /dev/null +++ b/docs/ListCustomerServiceRequests401Response.md @@ -0,0 +1,13 @@ + + +# ListCustomerServiceRequests401Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<UnauthorizedError>**](UnauthorizedError.md) | | [optional] | + + + diff --git a/docs/ListCustomerServiceRequests403Response.md b/docs/ListCustomerServiceRequests403Response.md new file mode 100644 index 00000000..d00a3422 --- /dev/null +++ b/docs/ListCustomerServiceRequests403Response.md @@ -0,0 +1,13 @@ + + +# ListCustomerServiceRequests403Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<ForbiddenError>**](ForbiddenError.md) | | [optional] | + + + diff --git a/docs/ListCustomerServiceRequests422Response.md b/docs/ListCustomerServiceRequests422Response.md new file mode 100644 index 00000000..3432e13b --- /dev/null +++ b/docs/ListCustomerServiceRequests422Response.md @@ -0,0 +1,13 @@ + + +# ListCustomerServiceRequests422Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<UnprocessableEntityError>**](UnprocessableEntityError.md) | | [optional] | + + + diff --git a/docs/ListCustomerServiceRequests500Response.md b/docs/ListCustomerServiceRequests500Response.md new file mode 100644 index 00000000..97d09e91 --- /dev/null +++ b/docs/ListCustomerServiceRequests500Response.md @@ -0,0 +1,13 @@ + + +# ListCustomerServiceRequests500Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<UnexpectedError>**](UnexpectedError.md) | | [optional] | + + + diff --git a/docs/ListDocumentLinks200Response.md b/docs/ListDocumentLinks200Response.md new file mode 100644 index 00000000..8f75923a --- /dev/null +++ b/docs/ListDocumentLinks200Response.md @@ -0,0 +1,14 @@ + + +# ListDocumentLinks200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<DocServiceDocumentLink>**](DocServiceDocumentLink.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListDocuments200Response.md b/docs/ListDocuments200Response.md new file mode 100644 index 00000000..84f42d56 --- /dev/null +++ b/docs/ListDocuments200Response.md @@ -0,0 +1,14 @@ + + +# ListDocuments200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<DocServiceDocument>**](DocServiceDocument.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListDyanmicEmergencyAddresses200Response.md b/docs/ListDyanmicEmergencyAddresses200Response.md new file mode 100644 index 00000000..cf7a8231 --- /dev/null +++ b/docs/ListDyanmicEmergencyAddresses200Response.md @@ -0,0 +1,14 @@ + + +# ListDyanmicEmergencyAddresses200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<DynamicEmergencyAddress>**](DynamicEmergencyAddress.md) | | [optional] | +|**meta** | [**Metadata**](Metadata.md) | | [optional] | + + + diff --git a/docs/ListDyanmicEmergencyEndpoints200Response.md b/docs/ListDyanmicEmergencyEndpoints200Response.md new file mode 100644 index 00000000..bc094e6d --- /dev/null +++ b/docs/ListDyanmicEmergencyEndpoints200Response.md @@ -0,0 +1,14 @@ + + +# ListDyanmicEmergencyEndpoints200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<DynamicEmergencyEndpoint>**](DynamicEmergencyEndpoint.md) | | [optional] | +|**meta** | [**Metadata**](Metadata.md) | | [optional] | + + + diff --git a/docs/ListFaxesResponse.md b/docs/ListFaxesResponse.md index ddc72587..dd01b386 100644 --- a/docs/ListFaxesResponse.md +++ b/docs/ListFaxesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Fax>**](Fax.md) | | [optional] -**meta** | **Object** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Fax>**](Fax.md) | | [optional] | +|**meta** | **Object** | | [optional] | diff --git a/docs/ListFqdnConnectionsResponse.md b/docs/ListFqdnConnectionsResponse.md index f251598b..b76677bb 100644 --- a/docs/ListFqdnConnectionsResponse.md +++ b/docs/ListFqdnConnectionsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<FqdnConnection>**](FqdnConnection.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<FqdnConnection>**](FqdnConnection.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListFqdnsResponse.md b/docs/ListFqdnsResponse.md index 76939f98..079db8b0 100644 --- a/docs/ListFqdnsResponse.md +++ b/docs/ListFqdnsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Fqdn>**](Fqdn.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Fqdn>**](Fqdn.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListIpConnectionsResponse.md b/docs/ListIpConnectionsResponse.md index 05e16c02..844c38fd 100644 --- a/docs/ListIpConnectionsResponse.md +++ b/docs/ListIpConnectionsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<IpConnection>**](IpConnection.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<IpConnection>**](IpConnection.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListIpsResponse.md b/docs/ListIpsResponse.md index 637f912d..0cb22d99 100644 --- a/docs/ListIpsResponse.md +++ b/docs/ListIpsResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Ip>**](Ip.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Ip>**](Ip.md) | | [optional] | diff --git a/docs/ListManagedAccounts200Response.md b/docs/ListManagedAccounts200Response.md new file mode 100644 index 00000000..2d67d2df --- /dev/null +++ b/docs/ListManagedAccounts200Response.md @@ -0,0 +1,14 @@ + + +# ListManagedAccounts200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<ManagedAccount>**](ManagedAccount.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListMessagingHostedNumberOrderResponse.md b/docs/ListMessagingHostedNumberOrderResponse.md index 0afdf11a..59ae9bc6 100644 --- a/docs/ListMessagingHostedNumberOrderResponse.md +++ b/docs/ListMessagingHostedNumberOrderResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MessagingHostedNumberOrder>**](MessagingHostedNumberOrder.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MessagingHostedNumberOrder>**](MessagingHostedNumberOrder.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListMessagingProfileMetricsResponse.md b/docs/ListMessagingProfileMetricsResponse.md index 7e1705e5..1734bf70 100644 --- a/docs/ListMessagingProfileMetricsResponse.md +++ b/docs/ListMessagingProfileMetricsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MessagingProfileHighLevelMetrics>**](MessagingProfileHighLevelMetrics.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MessagingProfileHighLevelMetrics>**](MessagingProfileHighLevelMetrics.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListMessagingProfilePhoneNumbersResponse.md b/docs/ListMessagingProfilePhoneNumbersResponse.md index 3e61428f..1ab14f57 100644 --- a/docs/ListMessagingProfilePhoneNumbersResponse.md +++ b/docs/ListMessagingProfilePhoneNumbersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<PhoneNumberWithMessagingSettings>**](PhoneNumberWithMessagingSettings.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PhoneNumberWithMessagingSettings>**](PhoneNumberWithMessagingSettings.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListMessagingProfileShortCodesResponse.md b/docs/ListMessagingProfileShortCodesResponse.md index 8c0bda08..2c08735c 100644 --- a/docs/ListMessagingProfileShortCodesResponse.md +++ b/docs/ListMessagingProfileShortCodesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<ShortCode>**](ShortCode.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<ShortCode>**](ShortCode.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListMessagingProfileURLDomainsResponse.md b/docs/ListMessagingProfileURLDomainsResponse.md index a59a75c6..0d8358fa 100644 --- a/docs/ListMessagingProfileURLDomainsResponse.md +++ b/docs/ListMessagingProfileURLDomainsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MessagingUrlDomain>**](MessagingUrlDomain.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MessagingUrlDomain>**](MessagingUrlDomain.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListMessagingProfilesResponse.md b/docs/ListMessagingProfilesResponse.md index d56cd1a8..097f0afd 100644 --- a/docs/ListMessagingProfilesResponse.md +++ b/docs/ListMessagingProfilesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MessagingProfile>**](MessagingProfile.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MessagingProfile>**](MessagingProfile.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListMessagingSettingsResponse.md b/docs/ListMessagingSettingsResponse.md index 1dd62872..65c59279 100644 --- a/docs/ListMessagingSettingsResponse.md +++ b/docs/ListMessagingSettingsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<PhoneNumberWithMessagingSettings>**](PhoneNumberWithMessagingSettings.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PhoneNumberWithMessagingSettings>**](PhoneNumberWithMessagingSettings.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListNotificationChannels200Response.md b/docs/ListNotificationChannels200Response.md new file mode 100644 index 00000000..ca7ac5fd --- /dev/null +++ b/docs/ListNotificationChannels200Response.md @@ -0,0 +1,14 @@ + + +# ListNotificationChannels200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NotificationChannel>**](NotificationChannel.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListNotificationSettings200Response.md b/docs/ListNotificationSettings200Response.md new file mode 100644 index 00000000..c96a59a2 --- /dev/null +++ b/docs/ListNotificationSettings200Response.md @@ -0,0 +1,14 @@ + + +# ListNotificationSettings200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NotificationSetting>**](NotificationSetting.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListNumberBlockOrdersResponse.md b/docs/ListNumberBlockOrdersResponse.md index 630c9cbf..981f090f 100644 --- a/docs/ListNumberBlockOrdersResponse.md +++ b/docs/ListNumberBlockOrdersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<NumberBlockOrder>**](NumberBlockOrder.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NumberBlockOrder>**](NumberBlockOrder.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListNumberOrderDocumentsResponse.md b/docs/ListNumberOrderDocumentsResponse.md index 8bab08b1..bff568e9 100644 --- a/docs/ListNumberOrderDocumentsResponse.md +++ b/docs/ListNumberOrderDocumentsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<NumberOrderDocument>**](NumberOrderDocument.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NumberOrderDocument>**](NumberOrderDocument.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListNumberOrderPhoneNumbersResponse.md b/docs/ListNumberOrderPhoneNumbersResponse.md index d222e30a..7512d43f 100644 --- a/docs/ListNumberOrderPhoneNumbersResponse.md +++ b/docs/ListNumberOrderPhoneNumbersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<NumberOrderPhoneNumber>**](NumberOrderPhoneNumber.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NumberOrderPhoneNumber>**](NumberOrderPhoneNumber.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListNumberOrdersResponse.md b/docs/ListNumberOrdersResponse.md index e5618f1d..9d19f50f 100644 --- a/docs/ListNumberOrdersResponse.md +++ b/docs/ListNumberOrdersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<NumberOrder>**](NumberOrder.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NumberOrder>**](NumberOrder.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListNumberReservationsResponse.md b/docs/ListNumberReservationsResponse.md index 7e3cd915..fdd762e6 100644 --- a/docs/ListNumberReservationsResponse.md +++ b/docs/ListNumberReservationsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<NumberReservation>**](NumberReservation.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NumberReservation>**](NumberReservation.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListOfMediaResourcesResponse.md b/docs/ListOfMediaResourcesResponse.md index 6bfec246..8c0024eb 100644 --- a/docs/ListOfMediaResourcesResponse.md +++ b/docs/ListOfMediaResourcesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MediaResource>**](MediaResource.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MediaResource>**](MediaResource.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListOutboundChannels200Response.md b/docs/ListOutboundChannels200Response.md new file mode 100644 index 00000000..2488a82a --- /dev/null +++ b/docs/ListOutboundChannels200Response.md @@ -0,0 +1,13 @@ + + +# ListOutboundChannels200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ListOutboundChannels200ResponseData**](ListOutboundChannels200ResponseData.md) | | [optional] | + + + diff --git a/docs/ListOutboundChannels200ResponseData.md b/docs/ListOutboundChannels200ResponseData.md new file mode 100644 index 00000000..1b83d92d --- /dev/null +++ b/docs/ListOutboundChannels200ResponseData.md @@ -0,0 +1,14 @@ + + +# ListOutboundChannels200ResponseData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channels** | **Integer** | The current number of concurrent channels set for the account | [optional] | +|**recordType** | **String** | Identifies the type of the response | [optional] | + + + diff --git a/docs/ListOutboundVoiceProfilesResponse.md b/docs/ListOutboundVoiceProfilesResponse.md index 24685ce8..fe3c500d 100644 --- a/docs/ListOutboundVoiceProfilesResponse.md +++ b/docs/ListOutboundVoiceProfilesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<OutboundVoiceProfile>**](OutboundVoiceProfile.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<OutboundVoiceProfile>**](OutboundVoiceProfile.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListParticipantsResponse.md b/docs/ListParticipantsResponse.md index 9e367e2e..91e081a7 100644 --- a/docs/ListParticipantsResponse.md +++ b/docs/ListParticipantsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Participant>**](Participant.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Participant>**](Participant.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListPhoneNumberBlocksBackgroundJobsResponse.md b/docs/ListPhoneNumberBlocksBackgroundJobsResponse.md index d7a1b4eb..8b62e809 100644 --- a/docs/ListPhoneNumberBlocksBackgroundJobsResponse.md +++ b/docs/ListPhoneNumberBlocksBackgroundJobsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<PhoneNumberBlocksJob>**](PhoneNumberBlocksJob.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PhoneNumberBlocksJob>**](PhoneNumberBlocksJob.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListPhoneNumbersBackgroundJobsResponse.md b/docs/ListPhoneNumbersBackgroundJobsResponse.md index 903e6b70..4d77b1aa 100644 --- a/docs/ListPhoneNumbersBackgroundJobsResponse.md +++ b/docs/ListPhoneNumbersBackgroundJobsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<PhoneNumbersJob>**](PhoneNumbersJob.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PhoneNumbersJob>**](PhoneNumbersJob.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListPhoneNumbersResponse.md b/docs/ListPhoneNumbersResponse.md index 98efe13f..3949e092 100644 --- a/docs/ListPhoneNumbersResponse.md +++ b/docs/ListPhoneNumbersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<PhoneNumberDetailed>**](PhoneNumberDetailed.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PhoneNumberDetailed>**](PhoneNumberDetailed.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListPhoneNumbersWithVoiceSettingsResponse.md b/docs/ListPhoneNumbersWithVoiceSettingsResponse.md index e1f6d13c..af151fc9 100644 --- a/docs/ListPhoneNumbersWithVoiceSettingsResponse.md +++ b/docs/ListPhoneNumbersWithVoiceSettingsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<PhoneNumberWithVoiceSettings>**](PhoneNumberWithVoiceSettings.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PhoneNumberWithVoiceSettings>**](PhoneNumberWithVoiceSettings.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListPortingOrderDocuments200Response.md b/docs/ListPortingOrderDocuments200Response.md new file mode 100644 index 00000000..da23eeb6 --- /dev/null +++ b/docs/ListPortingOrderDocuments200Response.md @@ -0,0 +1,14 @@ + + +# ListPortingOrderDocuments200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrderDocument>**](PortingOrderDocument.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListPortingOrderRequirements200Response.md b/docs/ListPortingOrderRequirements200Response.md new file mode 100644 index 00000000..58056e90 --- /dev/null +++ b/docs/ListPortingOrderRequirements200Response.md @@ -0,0 +1,14 @@ + + +# ListPortingOrderRequirements200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrderRequirementDetail>**](PortingOrderRequirementDetail.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListPortingOrders200Response.md b/docs/ListPortingOrders200Response.md new file mode 100644 index 00000000..1e7350cf --- /dev/null +++ b/docs/ListPortingOrders200Response.md @@ -0,0 +1,14 @@ + + +# ListPortingOrders200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrder>**](PortingOrder.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListPortingOrdersActivationJobs200Response.md b/docs/ListPortingOrdersActivationJobs200Response.md new file mode 100644 index 00000000..e1687fba --- /dev/null +++ b/docs/ListPortingOrdersActivationJobs200Response.md @@ -0,0 +1,14 @@ + + +# ListPortingOrdersActivationJobs200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrdersActivationJob>**](PortingOrdersActivationJob.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListPortingOrdersComments200Response.md b/docs/ListPortingOrdersComments200Response.md new file mode 100644 index 00000000..e0d9f99e --- /dev/null +++ b/docs/ListPortingOrdersComments200Response.md @@ -0,0 +1,14 @@ + + +# ListPortingOrdersComments200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrdersComment>**](PortingOrdersComment.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListPortingOrdersExceptionTypes200Response.md b/docs/ListPortingOrdersExceptionTypes200Response.md new file mode 100644 index 00000000..0838a11d --- /dev/null +++ b/docs/ListPortingOrdersExceptionTypes200Response.md @@ -0,0 +1,13 @@ + + +# ListPortingOrdersExceptionTypes200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrdersExceptionType>**](PortingOrdersExceptionType.md) | | [optional] | + + + diff --git a/docs/ListPortingPhoneNumbers200Response.md b/docs/ListPortingPhoneNumbers200Response.md new file mode 100644 index 00000000..e70b008a --- /dev/null +++ b/docs/ListPortingPhoneNumbers200Response.md @@ -0,0 +1,14 @@ + + +# ListPortingPhoneNumbers200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingPhoneNumber>**](PortingPhoneNumber.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListPortoutRequest200Response.md b/docs/ListPortoutRequest200Response.md new file mode 100644 index 00000000..ce499d33 --- /dev/null +++ b/docs/ListPortoutRequest200Response.md @@ -0,0 +1,14 @@ + + +# ListPortoutRequest200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortoutDetails>**](PortoutDetails.md) | | [optional] | +|**meta** | [**Metadata**](Metadata.md) | | [optional] | + + + diff --git a/docs/ListQueueCallsResponse.md b/docs/ListQueueCallsResponse.md index 571d84f6..43590546 100644 --- a/docs/ListQueueCallsResponse.md +++ b/docs/ListQueueCallsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<QueueCall>**](QueueCall.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<QueueCall>**](QueueCall.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListRecordingsResponse.md b/docs/ListRecordingsResponse.md index a9d08709..3d77565b 100644 --- a/docs/ListRecordingsResponse.md +++ b/docs/ListRecordingsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Recording>**](Recording.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Recording>**](Recording.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListRegulartoryRequirements200Response.md b/docs/ListRegulartoryRequirements200Response.md new file mode 100644 index 00000000..3af16dd8 --- /dev/null +++ b/docs/ListRegulartoryRequirements200Response.md @@ -0,0 +1,14 @@ + + +# ListRegulartoryRequirements200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RegulatoryRequirements>**](RegulatoryRequirements.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListRequirements200Response.md b/docs/ListRequirements200Response.md new file mode 100644 index 00000000..4da983fc --- /dev/null +++ b/docs/ListRequirements200Response.md @@ -0,0 +1,14 @@ + + +# ListRequirements200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<DocReqsRequirement>**](DocReqsRequirement.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListRoomCompositions200Response.md b/docs/ListRoomCompositions200Response.md new file mode 100644 index 00000000..c878d3e4 --- /dev/null +++ b/docs/ListRoomCompositions200Response.md @@ -0,0 +1,14 @@ + + +# ListRoomCompositions200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RoomComposition>**](RoomComposition.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListRoomParticipants200Response.md b/docs/ListRoomParticipants200Response.md new file mode 100644 index 00000000..00e34329 --- /dev/null +++ b/docs/ListRoomParticipants200Response.md @@ -0,0 +1,14 @@ + + +# ListRoomParticipants200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RoomParticipant>**](RoomParticipant.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListRoomRecordings200Response.md b/docs/ListRoomRecordings200Response.md new file mode 100644 index 00000000..a2f7c342 --- /dev/null +++ b/docs/ListRoomRecordings200Response.md @@ -0,0 +1,14 @@ + + +# ListRoomRecordings200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RoomRecording>**](RoomRecording.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListRoomSessions200Response.md b/docs/ListRoomSessions200Response.md new file mode 100644 index 00000000..1b736ba7 --- /dev/null +++ b/docs/ListRoomSessions200Response.md @@ -0,0 +1,14 @@ + + +# ListRoomSessions200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<RoomSession>**](RoomSession.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListRooms200Response.md b/docs/ListRooms200Response.md new file mode 100644 index 00000000..a17620f9 --- /dev/null +++ b/docs/ListRooms200Response.md @@ -0,0 +1,14 @@ + + +# ListRooms200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Room>**](Room.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListSIMCardActions200Response.md b/docs/ListSIMCardActions200Response.md new file mode 100644 index 00000000..3227412a --- /dev/null +++ b/docs/ListSIMCardActions200Response.md @@ -0,0 +1,14 @@ + + +# ListSIMCardActions200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SIMCardAction>**](SIMCardAction.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListShortCodesResponse.md b/docs/ListShortCodesResponse.md index f50c7376..41de8a95 100644 --- a/docs/ListShortCodesResponse.md +++ b/docs/ListShortCodesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<ShortCode>**](ShortCode.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<ShortCode>**](ShortCode.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListSimCardDataUsageNotifications200Response.md b/docs/ListSimCardDataUsageNotifications200Response.md new file mode 100644 index 00000000..44be069d --- /dev/null +++ b/docs/ListSimCardDataUsageNotifications200Response.md @@ -0,0 +1,14 @@ + + +# ListSimCardDataUsageNotifications200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SimCardDataUsageNotification>**](SimCardDataUsageNotification.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ListSubNumberOrdersResponse.md b/docs/ListSubNumberOrdersResponse.md index 141c1f39..e88277b6 100644 --- a/docs/ListSubNumberOrdersResponse.md +++ b/docs/ListSubNumberOrdersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<SubNumberOrder>**](SubNumberOrder.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SubNumberOrder>**](SubNumberOrder.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListTagsResponse.md b/docs/ListTagsResponse.md index aa28c831..d675eab5 100644 --- a/docs/ListTagsResponse.md +++ b/docs/ListTagsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<ListTagsResponseData>**](ListTagsResponseData.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<ListTagsResponseDataInner>**](ListTagsResponseDataInner.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListTagsResponseDataInner.md b/docs/ListTagsResponseDataInner.md new file mode 100644 index 00000000..ecacfe5d --- /dev/null +++ b/docs/ListTagsResponseDataInner.md @@ -0,0 +1,14 @@ + + +# ListTagsResponseDataInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**tag** | **String** | | [optional] | +|**amount** | **Integer** | | [optional] | + + + diff --git a/docs/ListVerificationsResponse.md b/docs/ListVerificationsResponse.md index 8c27f827..58f5f0ec 100644 --- a/docs/ListVerificationsResponse.md +++ b/docs/ListVerificationsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<Verification>**](Verification.md) | | -**meta** | [**Meta**](Meta.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Verification>**](Verification.md) | | | +|**meta** | [**Meta**](Meta.md) | | | diff --git a/docs/ListVerifiedCallsDisplayProfilesResponse.md b/docs/ListVerifiedCallsDisplayProfilesResponse.md index e4109f1c..010d8668 100644 --- a/docs/ListVerifiedCallsDisplayProfilesResponse.md +++ b/docs/ListVerifiedCallsDisplayProfilesResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<VerifiedCallsDisplayProfile>**](VerifiedCallsDisplayProfile.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<VerifiedCallsDisplayProfile>**](VerifiedCallsDisplayProfile.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListVerifyProfilesResponse.md b/docs/ListVerifyProfilesResponse.md index e42186f9..24e91cb5 100644 --- a/docs/ListVerifyProfilesResponse.md +++ b/docs/ListVerifyProfilesResponse.md @@ -6,10 +6,10 @@ A paginated list of Verify profiles ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<VerifyProfileResponse>**](VerifyProfileResponse.md) | | -**meta** | [**Meta**](Meta.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<VerifyProfileResponse>**](VerifyProfileResponse.md) | | | +|**meta** | [**Meta**](Meta.md) | | | diff --git a/docs/ListWhatsAppBusinessAccountsResponse.md b/docs/ListWhatsAppBusinessAccountsResponse.md index 13e8104c..5455caf4 100644 --- a/docs/ListWhatsAppBusinessAccountsResponse.md +++ b/docs/ListWhatsAppBusinessAccountsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<WhatsappBusinessAccount>**](WhatsappBusinessAccount.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WhatsappBusinessAccount>**](WhatsappBusinessAccount.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/ListWhatsAppPhoneNumbersResponse.md b/docs/ListWhatsAppPhoneNumbersResponse.md index cc4250e0..e496d187 100644 --- a/docs/ListWhatsAppPhoneNumbersResponse.md +++ b/docs/ListWhatsAppPhoneNumbersResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<WhatsappPhoneNumber>**](WhatsappPhoneNumber.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WhatsappPhoneNumber>**](WhatsappPhoneNumber.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/Location.md b/docs/Location.md index 7d698652..299394ae 100644 --- a/docs/Location.md +++ b/docs/Location.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**longitude** | **String** | Longitude of the location | -**latitude** | **String** | Latitude of the location | -**name** | **String** | Name of the location | -**address** | **String** | Address of the location. Only displayed if name is present. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**longitude** | **String** | Longitude of the location | | +|**latitude** | **String** | Latitude of the location | | +|**name** | **String** | Name of the location | | +|**address** | **String** | Address of the location. Only displayed if name is present. | | diff --git a/docs/ManagedAccount.md b/docs/ManagedAccount.md index 62797d1a..34e5b1d3 100644 --- a/docs/ManagedAccount.md +++ b/docs/ManagedAccount.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | -**id** | **UUID** | Uniquely identifies the managed account. | -**email** | **String** | The managed account's email. | -**apiKey** | **String** | The managed account's V2 API access key | -**apiUser** | **String** | The manager account's email, which serves as the V1 API user identifier | -**apiToken** | **String** | The managed account's V1 API token | -**organizationName** | **String** | The organization the managed account is associated with. | [optional] -**managerAccountId** | **String** | The ID of the manager account associated with the managed account. | -**balance** | [**ManagedAccountBalance**](ManagedAccountBalance.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | -**managedAccountAllowCustomPricing** | **Boolean** | Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. There may be time lag between when the value is changed and pricing changes take effect. | [optional] -**rollupBilling** | **Boolean** | Boolean value that indicates if the billing information and charges to the managed account \"roll up\" to the manager account. If true, the managed account will not have its own balance and will use the shared balance with the manager account. This value cannot be changed after account creation without going through Telnyx support as changes require manual updates to the account ledger. Defaults to false. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | | +|**id** | **UUID** | Uniquely identifies the managed account. | | +|**email** | **String** | The managed account's email. | | +|**apiKey** | **String** | The managed account's V2 API access key | | +|**apiUser** | **String** | The manager account's email, which serves as the V1 API user identifier | | +|**apiToken** | **String** | The managed account's V1 API token | | +|**organizationName** | **String** | The organization the managed account is associated with. | [optional] | +|**managerAccountId** | **String** | The ID of the manager account associated with the managed account. | | +|**balance** | [**ManagedAccountBalance**](ManagedAccountBalance.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | | +|**managedAccountAllowCustomPricing** | **Boolean** | Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. There may be time lag between when the value is changed and pricing changes take effect. | [optional] | +|**rollupBilling** | **Boolean** | Boolean value that indicates if the billing information and charges to the managed account \"roll up\" to the manager account. If true, the managed account will not have its own balance and will use the shared balance with the manager account. This value cannot be changed after account creation without going through Telnyx support as changes require manual updates to the account ledger. Defaults to false. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -MANAGED_ACCOUNT | "managed_account" +| Name | Value | +|---- | -----| +| MANAGED_ACCOUNT | "managed_account" | diff --git a/docs/ManagedAccountBalance.md b/docs/ManagedAccountBalance.md index ee6d33d5..687acae6 100644 --- a/docs/ManagedAccountBalance.md +++ b/docs/ManagedAccountBalance.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**balance** | **BigDecimal** | The account's current balance. | [optional] -**creditLimit** | **BigDecimal** | The account's credit limit. | [optional] -**availableCredit** | **BigDecimal** | Available amount to spend (balance + credit limit) | [optional] -**currency** | **String** | The ISO 4217 currency identifier. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**balance** | **BigDecimal** | The account's current balance. | [optional] | +|**creditLimit** | **BigDecimal** | The account's credit limit. | [optional] | +|**availableCredit** | **BigDecimal** | Available amount to spend (balance + credit limit) | [optional] | +|**currency** | **String** | The ISO 4217 currency identifier. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -BALANCE | "balance" +| Name | Value | +|---- | -----| +| BALANCE | "balance" | diff --git a/docs/ManagedAccountsApi.md b/docs/ManagedAccountsApi.md index e5d7a022..0961a0e2 100644 --- a/docs/ManagedAccountsApi.md +++ b/docs/ManagedAccountsApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description ## createManagedAccount -> ManagedAccountResponse createManagedAccount(createManagedAccountRequest) +> CreateManagedAccount200Response createManagedAccount(createManagedAccountRequest) Create a new managed account. @@ -44,7 +44,7 @@ public class Example { ManagedAccountsApi apiInstance = new ManagedAccountsApi(defaultClient); CreateManagedAccountRequest createManagedAccountRequest = new CreateManagedAccountRequest(); // CreateManagedAccountRequest | Parameters that define the managed account to be created try { - ManagedAccountResponse result = apiInstance.createManagedAccount(createManagedAccountRequest); + CreateManagedAccount200Response result = apiInstance.createManagedAccount(createManagedAccountRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagedAccountsApi#createManagedAccount"); @@ -66,7 +66,7 @@ Name | Type | Description | Notes ### Return type -[**ManagedAccountResponse**](ManagedAccountResponse.md) +[**CreateManagedAccount200Response**](CreateManagedAccount200Response.md) ### Authorization @@ -81,13 +81,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with information about a single managed account. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | ## disableManagedAccount -> ManagedAccountResponse disableManagedAccount(id) +> CreateManagedAccount200Response disableManagedAccount(id) Disables a managed account @@ -116,7 +116,7 @@ public class Example { ManagedAccountsApi apiInstance = new ManagedAccountsApi(defaultClient); String id = "id_example"; // String | Managed Account User ID try { - ManagedAccountResponse result = apiInstance.disableManagedAccount(id); + CreateManagedAccount200Response result = apiInstance.disableManagedAccount(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagedAccountsApi#disableManagedAccount"); @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Return type -[**ManagedAccountResponse**](ManagedAccountResponse.md) +[**CreateManagedAccount200Response**](CreateManagedAccount200Response.md) ### Authorization @@ -153,14 +153,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with information about a single managed account. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | | **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | ## enableManagedAccount -> ManagedAccountResponse enableManagedAccount(id) +> CreateManagedAccount200Response enableManagedAccount(id) Enables a managed account @@ -189,7 +189,7 @@ public class Example { ManagedAccountsApi apiInstance = new ManagedAccountsApi(defaultClient); String id = "id_example"; // String | Managed Account User ID try { - ManagedAccountResponse result = apiInstance.enableManagedAccount(id); + CreateManagedAccount200Response result = apiInstance.enableManagedAccount(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagedAccountsApi#enableManagedAccount"); @@ -211,7 +211,7 @@ Name | Type | Description | Notes ### Return type -[**ManagedAccountResponse**](ManagedAccountResponse.md) +[**CreateManagedAccount200Response**](CreateManagedAccount200Response.md) ### Authorization @@ -226,14 +226,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with information about a single managed account. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | | **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | ## listManagedAccounts -> ListManagedAccountsResponse listManagedAccounts(pageNumber, pageSize, filterEmailContains, filterEmailEq, sort) +> ListManagedAccounts200Response listManagedAccounts(pageNumber, pageSize, filterEmailContains, filterEmailEq, sort, includeCancelledAccounts) Lists accounts managed by the current user. @@ -265,8 +265,9 @@ public class Example { String filterEmailContains = "null"; // String | If present, email containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. String filterEmailEq = "null"; // String | If present, only returns results with the email matching exactly the value given. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • email: sorts the result by the email field in ascending order.
  • -email: sorts the result by the email field in descending order.

If not given, results are sorted by created_at in descending order. + Boolean includeCancelledAccounts = false; // Boolean | Specifies if cancelled accounts should be included in the results. try { - ListManagedAccountsResponse result = apiInstance.listManagedAccounts(pageNumber, pageSize, filterEmailContains, filterEmailEq, sort); + ListManagedAccounts200Response result = apiInstance.listManagedAccounts(pageNumber, pageSize, filterEmailContains, filterEmailEq, sort, includeCancelledAccounts); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagedAccountsApi#listManagedAccounts"); @@ -289,10 +290,11 @@ Name | Type | Description | Notes **filterEmailContains** | **String**| If present, email containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] **filterEmailEq** | **String**| If present, only returns results with the <code>email</code> matching exactly the value given. | [optional] [default to null] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>email</code>: sorts the result by the <code>email</code> field in ascending order. </li> <li> <code>-email</code>: sorts the result by the <code>email</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, email] + **includeCancelledAccounts** | **Boolean**| Specifies if cancelled accounts should be included in the results. | [optional] [default to false] ### Return type -[**ListManagedAccountsResponse**](ListManagedAccountsResponse.md) +[**ListManagedAccounts200Response**](ListManagedAccounts200Response.md) ### Authorization @@ -307,12 +309,12 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with a list of managed accounts. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | ## retrieveManagedAccount -> ManagedAccountResponse retrieveManagedAccount(id) +> CreateManagedAccount200Response retrieveManagedAccount(id) Retrieve a managed account @@ -341,7 +343,7 @@ public class Example { ManagedAccountsApi apiInstance = new ManagedAccountsApi(defaultClient); String id = "id_example"; // String | Managed Account User ID try { - ManagedAccountResponse result = apiInstance.retrieveManagedAccount(id); + CreateManagedAccount200Response result = apiInstance.retrieveManagedAccount(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagedAccountsApi#retrieveManagedAccount"); @@ -363,7 +365,7 @@ Name | Type | Description | Notes ### Return type -[**ManagedAccountResponse**](ManagedAccountResponse.md) +[**CreateManagedAccount200Response**](CreateManagedAccount200Response.md) ### Authorization @@ -378,13 +380,13 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with information about a single managed account. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | ## updateManagedAccount -> ManagedAccountResponse updateManagedAccount(id, updateManagedAccountRequest) +> CreateManagedAccount200Response updateManagedAccount(id, updateManagedAccountRequest) Update a managed account @@ -414,7 +416,7 @@ public class Example { String id = "id_example"; // String | Managed Account User ID UpdateManagedAccountRequest updateManagedAccountRequest = new UpdateManagedAccountRequest(); // UpdateManagedAccountRequest | Parameters that define the updates to the managed account try { - ManagedAccountResponse result = apiInstance.updateManagedAccount(id, updateManagedAccountRequest); + CreateManagedAccount200Response result = apiInstance.updateManagedAccount(id, updateManagedAccountRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ManagedAccountsApi#updateManagedAccount"); @@ -437,7 +439,7 @@ Name | Type | Description | Notes ### Return type -[**ManagedAccountResponse**](ManagedAccountResponse.md) +[**CreateManagedAccount200Response**](CreateManagedAccount200Response.md) ### Authorization @@ -452,7 +454,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with information about a single managed account. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | | **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | diff --git a/docs/MarkCommentRead200Response.md b/docs/MarkCommentRead200Response.md new file mode 100644 index 00000000..114bedf0 --- /dev/null +++ b/docs/MarkCommentRead200Response.md @@ -0,0 +1,13 @@ + + +# MarkCommentRead200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MarkCommentRead200ResponseData**](MarkCommentRead200ResponseData.md) | | [optional] | + + + diff --git a/docs/MarkCommentRead200ResponseData.md b/docs/MarkCommentRead200ResponseData.md new file mode 100644 index 00000000..1490c177 --- /dev/null +++ b/docs/MarkCommentRead200ResponseData.md @@ -0,0 +1,40 @@ + + +# MarkCommentRead200ResponseData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**body** | **String** | | [optional] | +|**commenter** | **String** | | [optional] [readonly] | +|**commenterType** | [**CommenterTypeEnum**](#CommenterTypeEnum) | | [optional] [readonly] | +|**commentRecordType** | [**CommentRecordTypeEnum**](#CommentRecordTypeEnum) | | [optional] | +|**commentRecordId** | **UUID** | | [optional] | +|**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the comment was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the comment was updated. | [optional] [readonly] | + + + +## Enum: CommenterTypeEnum + +| Name | Value | +|---- | -----| +| ADMIN | "admin" | +| USER | "user" | + + + +## Enum: CommentRecordTypeEnum + +| Name | Value | +|---- | -----| +| NUMBER_ORDER | "number_order" | +| SUB_NUMBER_ORDER | "sub_number_order" | +| NUMBER_ORDER_PHONE_NUMBER | "number_order_phone_number" | + + + diff --git a/docs/MarkMessageAsReadRequestBody.md b/docs/MarkMessageAsReadRequestBody.md index b300b7af..74e42768 100644 --- a/docs/MarkMessageAsReadRequestBody.md +++ b/docs/MarkMessageAsReadRequestBody.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**whatsappUserId** | **String** | The user's WhatsApp ID. | -**status** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**whatsappUserId** | **String** | The user's WhatsApp ID. | | +|**status** | **String** | | | diff --git a/docs/MdrDeleteDetailReportResponse.md b/docs/MdrDeleteDetailReportResponse.md index 75df8ab0..9d3712de 100644 --- a/docs/MdrDeleteDetailReportResponse.md +++ b/docs/MdrDeleteDetailReportResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MdrDetailReportResponse**](MdrDetailReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MdrDetailReportResponse**](MdrDetailReportResponse.md) | | [optional] | diff --git a/docs/MdrDeleteUsageReportsResponse.md b/docs/MdrDeleteUsageReportsResponse.md index fe85e5f3..cf641ae3 100644 --- a/docs/MdrDeleteUsageReportsResponse.md +++ b/docs/MdrDeleteUsageReportsResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] | diff --git a/docs/MdrDetailReportResponse.md b/docs/MdrDetailReportResponse.md index 7be9ab26..db9dab56 100644 --- a/docs/MdrDetailReportResponse.md +++ b/docs/MdrDetailReportResponse.md @@ -5,52 +5,52 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource | [optional] -**startDate** | **OffsetDateTime** | | [optional] -**endDate** | **OffsetDateTime** | | [optional] -**directions** | [**List<DirectionsEnum>**](#List<DirectionsEnum>) | | [optional] -**recordTypes** | [**List<RecordTypesEnum>**](#List<RecordTypesEnum>) | | [optional] -**connections** | **List<Long>** | | [optional] -**reportName** | **String** | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**reportUrl** | **String** | | [optional] -**filters** | [**List<Filter>**](Filter.md) | | [optional] -**createdAt** | **OffsetDateTime** | | [optional] -**updatedAt** | **OffsetDateTime** | | [optional] -**profiles** | **String** | | [optional] -**recordType** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource | [optional] | +|**startDate** | **OffsetDateTime** | | [optional] | +|**endDate** | **OffsetDateTime** | | [optional] | +|**directions** | [**List<DirectionsEnum>**](#List<DirectionsEnum>) | | [optional] | +|**recordTypes** | [**List<RecordTypesEnum>**](#List<RecordTypesEnum>) | | [optional] | +|**connections** | **List<Long>** | | [optional] | +|**reportName** | **String** | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**reportUrl** | **String** | | [optional] | +|**filters** | [**List<Filter>**](Filter.md) | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | [optional] | +|**profiles** | **String** | | [optional] | +|**recordType** | **String** | | [optional] | ## Enum: List<DirectionsEnum> -Name | Value ----- | ----- -INBOUND | "INBOUND" -OUTBOUND | "OUTBOUND" +| Name | Value | +|---- | -----| +| INBOUND | "INBOUND" | +| OUTBOUND | "OUTBOUND" | ## Enum: List<RecordTypesEnum> -Name | Value ----- | ----- -INCOMPLETE | "INCOMPLETE" -COMPLETED | "COMPLETED" -ERRORS | "ERRORS" +| Name | Value | +|---- | -----| +| INCOMPLETE | "INCOMPLETE" | +| COMPLETED | "COMPLETED" | +| ERRORS | "ERRORS" | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "PENDING" -COMPLETE | "COMPLETE" -FAILED | "FAILED" -EXPIRED | "EXPIRED" +| Name | Value | +|---- | -----| +| PENDING | "PENDING" | +| COMPLETE | "COMPLETE" | +| FAILED | "FAILED" | +| EXPIRED | "EXPIRED" | diff --git a/docs/MdrDetailResponse.md b/docs/MdrDetailResponse.md index 91c0751f..2f0916c5 100644 --- a/docs/MdrDetailResponse.md +++ b/docs/MdrDetailResponse.md @@ -5,56 +5,56 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**createdAt** | **OffsetDateTime** | Message sent time | [optional] -**profileName** | **String** | Configured profile name. New profiles can be created and configured on Telnyx portal | [optional] -**direction** | **String** | Direction of message - inbound or outbound. | [optional] -**parts** | **BigDecimal** | Number of parts this message has. Max number of character is 160. If message contains more characters then that it will be broken down in multiple parts | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Message status | [optional] -**cld** | **String** | The destination number for a call, or the callee | [optional] -**cli** | **String** | The number associated with the person initiating the call, or the caller | [optional] -**rate** | **String** | Rate applied to the message | [optional] -**cost** | **String** | Final cost. Cost is calculated as rate * parts | [optional] -**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency of the rate and cost | [optional] -**id** | **String** | Id of message detail record | [optional] -**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | Type of message | [optional] -**recordType** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**createdAt** | **OffsetDateTime** | Message sent time | [optional] | +|**profileName** | **String** | Configured profile name. New profiles can be created and configured on Telnyx portal | [optional] | +|**direction** | **String** | Direction of message - inbound or outbound. | [optional] | +|**parts** | **BigDecimal** | Number of parts this message has. Max number of character is 160. If message contains more characters then that it will be broken down in multiple parts | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Message status | [optional] | +|**cld** | **String** | The destination number for a call, or the callee | [optional] | +|**cli** | **String** | The number associated with the person initiating the call, or the caller | [optional] | +|**rate** | **String** | Rate applied to the message | [optional] | +|**cost** | **String** | Final cost. Cost is calculated as rate * parts | [optional] | +|**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency of the rate and cost | [optional] | +|**id** | **String** | Id of message detail record | [optional] | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | Type of message | [optional] | +|**recordType** | **String** | | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -GW_TIMEOUT | "GW_TIMEOUT" -DELIVERED | "DELIVERED" -DLR_UNCONFIRMED | "DLR_UNCONFIRMED" -DLR_TIMEOUT | "DLR_TIMEOUT" -RECEIVED | "RECEIVED" -GW_REJECT | "GW_REJECT" -FAILED | "FAILED" +| Name | Value | +|---- | -----| +| GW_TIMEOUT | "GW_TIMEOUT" | +| DELIVERED | "DELIVERED" | +| DLR_UNCONFIRMED | "DLR_UNCONFIRMED" | +| DLR_TIMEOUT | "DLR_TIMEOUT" | +| RECEIVED | "RECEIVED" | +| GW_REJECT | "GW_REJECT" | +| FAILED | "FAILED" | ## Enum: CurrencyEnum -Name | Value ----- | ----- -AUD | "AUD" -CAD | "CAD" -EUR | "EUR" -GBP | "GBP" -USD | "USD" +| Name | Value | +|---- | -----| +| AUD | "AUD" | +| CAD | "CAD" | +| EUR | "EUR" | +| GBP | "GBP" | +| USD | "USD" | ## Enum: MessageTypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | diff --git a/docs/MdrGetDetailReportByIdResponse.md b/docs/MdrGetDetailReportByIdResponse.md index 7eb2f350..610bc80a 100644 --- a/docs/MdrGetDetailReportByIdResponse.md +++ b/docs/MdrGetDetailReportByIdResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MdrDetailReportResponse**](MdrDetailReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MdrDetailReportResponse**](MdrDetailReportResponse.md) | | [optional] | diff --git a/docs/MdrGetDetailReportResponse.md b/docs/MdrGetDetailReportResponse.md index b679f22a..b6dc54e4 100644 --- a/docs/MdrGetDetailReportResponse.md +++ b/docs/MdrGetDetailReportResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MdrDetailReportResponse>**](MdrDetailReportResponse.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MdrDetailReportResponse>**](MdrDetailReportResponse.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/MdrGetDetailResponse.md b/docs/MdrGetDetailResponse.md index 2dbe9d56..64231473 100644 --- a/docs/MdrGetDetailResponse.md +++ b/docs/MdrGetDetailResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MdrDetailResponse>**](MdrDetailResponse.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MdrDetailResponse>**](MdrDetailResponse.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/MdrGetSyncUsageReportResponse.md b/docs/MdrGetSyncUsageReportResponse.md index e97af006..f0a39cbe 100644 --- a/docs/MdrGetSyncUsageReportResponse.md +++ b/docs/MdrGetSyncUsageReportResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] | diff --git a/docs/MdrGetUsageReportsByIdResponse.md b/docs/MdrGetUsageReportsByIdResponse.md index 120998d5..09cfdea7 100644 --- a/docs/MdrGetUsageReportsByIdResponse.md +++ b/docs/MdrGetUsageReportsByIdResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] | diff --git a/docs/MdrGetUsageReportsResponse.md b/docs/MdrGetUsageReportsResponse.md index cbc93e12..60ce6ddc 100644 --- a/docs/MdrGetUsageReportsResponse.md +++ b/docs/MdrGetUsageReportsResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<MdrUsageReportResponse>**](MdrUsageReportResponse.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MdrUsageReportResponse>**](MdrUsageReportResponse.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/MdrPostDetailReportRequest.md b/docs/MdrPostDetailReportRequest.md index 55a190ef..48330c68 100644 --- a/docs/MdrPostDetailReportRequest.md +++ b/docs/MdrPostDetailReportRequest.md @@ -5,36 +5,36 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startDate** | **OffsetDateTime** | | -**endDate** | **OffsetDateTime** | | -**directions** | [**List<DirectionsEnum>**](#List<DirectionsEnum>) | | [optional] -**recordTypes** | [**List<RecordTypesEnum>**](#List<RecordTypesEnum>) | | [optional] -**connections** | **List<Long>** | | [optional] -**reportName** | **String** | | [optional] -**includeMessageBody** | **Boolean** | | [optional] -**filters** | [**List<Filter>**](Filter.md) | | [optional] -**profiles** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startDate** | **OffsetDateTime** | | | +|**endDate** | **OffsetDateTime** | | | +|**directions** | [**List<DirectionsEnum>**](#List<DirectionsEnum>) | | [optional] | +|**recordTypes** | [**List<RecordTypesEnum>**](#List<RecordTypesEnum>) | | [optional] | +|**connections** | **List<Long>** | | [optional] | +|**reportName** | **String** | | [optional] | +|**includeMessageBody** | **Boolean** | | [optional] | +|**filters** | [**List<Filter>**](Filter.md) | | [optional] | +|**profiles** | **String** | | [optional] | ## Enum: List<DirectionsEnum> -Name | Value ----- | ----- -INBOUND | "INBOUND" -OUTBOUND | "OUTBOUND" +| Name | Value | +|---- | -----| +| INBOUND | "INBOUND" | +| OUTBOUND | "OUTBOUND" | ## Enum: List<RecordTypesEnum> -Name | Value ----- | ----- -INCOMPLETE | "INCOMPLETE" -COMPLETED | "COMPLETED" -ERRORS | "ERRORS" +| Name | Value | +|---- | -----| +| INCOMPLETE | "INCOMPLETE" | +| COMPLETED | "COMPLETED" | +| ERRORS | "ERRORS" | diff --git a/docs/MdrPostDetailReportResponse.md b/docs/MdrPostDetailReportResponse.md index 650bf1c0..9f43d440 100644 --- a/docs/MdrPostDetailReportResponse.md +++ b/docs/MdrPostDetailReportResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MdrDetailReportResponse**](MdrDetailReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MdrDetailReportResponse**](MdrDetailReportResponse.md) | | [optional] | diff --git a/docs/MdrPostUsageReportRequest.md b/docs/MdrPostUsageReportRequest.md index c552120f..a9cfe065 100644 --- a/docs/MdrPostUsageReportRequest.md +++ b/docs/MdrPostUsageReportRequest.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startDate** | **OffsetDateTime** | | -**endDate** | **OffsetDateTime** | | -**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | | -**profiles** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startDate** | **OffsetDateTime** | | | +|**endDate** | **OffsetDateTime** | | | +|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | | | +|**profiles** | **String** | | [optional] | ## Enum: AggregationTypeEnum -Name | Value ----- | ----- -NO_AGGREGATION | "NO_AGGREGATION" -PROFILE | "PROFILE" -TAGS | "TAGS" +| Name | Value | +|---- | -----| +| NO_AGGREGATION | "NO_AGGREGATION" | +| PROFILE | "PROFILE" | +| TAGS | "TAGS" | diff --git a/docs/MdrPostUsageReportsResponse.md b/docs/MdrPostUsageReportsResponse.md index ffe135cc..6a643112 100644 --- a/docs/MdrPostUsageReportsResponse.md +++ b/docs/MdrPostUsageReportsResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MdrUsageReportResponse**](MdrUsageReportResponse.md) | | [optional] | diff --git a/docs/MdrUsageRecord.md b/docs/MdrUsageRecord.md index 30b31d53..7e9ab223 100644 --- a/docs/MdrUsageRecord.md +++ b/docs/MdrUsageRecord.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**cost** | **String** | | [optional] -**direction** | **String** | | [optional] -**product** | **String** | | [optional] -**connection** | **String** | | [optional] -**received** | **String** | | [optional] -**delivered** | **String** | | [optional] -**currency** | **String** | | [optional] -**parts** | **String** | | [optional] -**sent** | **String** | | [optional] -**profileId** | **String** | | [optional] -**tags** | **String** | | [optional] -**messageType** | **String** | | [optional] -**tnType** | **String** | | [optional] -**carrierPassthroughFee** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**cost** | **String** | | [optional] | +|**direction** | **String** | | [optional] | +|**product** | **String** | | [optional] | +|**connection** | **String** | | [optional] | +|**received** | **String** | | [optional] | +|**delivered** | **String** | | [optional] | +|**currency** | **String** | | [optional] | +|**parts** | **String** | | [optional] | +|**sent** | **String** | | [optional] | +|**profileId** | **String** | | [optional] | +|**tags** | **String** | | [optional] | +|**messageType** | **String** | | [optional] | +|**tnType** | **String** | | [optional] | +|**carrierPassthroughFee** | **String** | | [optional] | diff --git a/docs/MdrUsageReportResponse.md b/docs/MdrUsageReportResponse.md index da4efbad..eac12fa0 100644 --- a/docs/MdrUsageReportResponse.md +++ b/docs/MdrUsageReportResponse.md @@ -5,41 +5,41 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource | [optional] -**startDate** | **OffsetDateTime** | | [optional] -**endDate** | **OffsetDateTime** | | [optional] -**connections** | **List<Long>** | | [optional] -**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**reportUrl** | **String** | | [optional] -**result** | [**List<MdrUsageRecord>**](MdrUsageRecord.md) | | [optional] -**createdAt** | **OffsetDateTime** | | [optional] -**updatedAt** | **OffsetDateTime** | | [optional] -**profiles** | **String** | | [optional] -**recordType** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource | [optional] | +|**startDate** | **OffsetDateTime** | | [optional] | +|**endDate** | **OffsetDateTime** | | [optional] | +|**connections** | **List<Long>** | | [optional] | +|**aggregationType** | [**AggregationTypeEnum**](#AggregationTypeEnum) | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**reportUrl** | **String** | | [optional] | +|**result** | [**List<MdrUsageRecord>**](MdrUsageRecord.md) | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | [optional] | +|**profiles** | **String** | | [optional] | +|**recordType** | **String** | | [optional] | ## Enum: AggregationTypeEnum -Name | Value ----- | ----- -NO_AGGREGATION | "NO_AGGREGATION" -PROFILE | "PROFILE" -TAGS | "TAGS" +| Name | Value | +|---- | -----| +| NO_AGGREGATION | "NO_AGGREGATION" | +| PROFILE | "PROFILE" | +| TAGS | "TAGS" | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "PENDING" -COMPLETE | "COMPLETE" -FAILED | "FAILED" -EXPIRED | "EXPIRED" +| Name | Value | +|---- | -----| +| PENDING | "PENDING" | +| COMPLETE | "COMPLETE" | +| FAILED | "FAILED" | +| EXPIRED | "EXPIRED" | diff --git a/docs/MediaFeatures.md b/docs/MediaFeatures.md index a8391fc2..a743ac50 100644 --- a/docs/MediaFeatures.md +++ b/docs/MediaFeatures.md @@ -6,21 +6,21 @@ The media features settings for a phone number. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**rtpAutoAdjustEnabled** | **Boolean** | When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. | [optional] -**mediaHandlingMode** | [**MediaHandlingModeEnum**](#MediaHandlingModeEnum) | Controls how media is handled for the phone number. default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. | [optional] -**acceptAnyRtpPacketsEnabled** | **Boolean** | When enabled, Telnyx will accept RTP packets from any customer-side IP address and port, not just those to which Telnyx is sending RTP. | [optional] -**t38FaxGatewayEnabled** | **Boolean** | Controls whether Telnyx will accept a T.38 re-INVITE for this phone number. Note that Telnyx will not send a T.38 re-INVITE; this option only controls whether one will be accepted. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**rtpAutoAdjustEnabled** | **Boolean** | When RTP Auto-Adjust is enabled, the destination RTP address port will be automatically changed to match the source of the incoming RTP packets. | [optional] | +|**mediaHandlingMode** | [**MediaHandlingModeEnum**](#MediaHandlingModeEnum) | Controls how media is handled for the phone number. default: media routed through Telnyx with transcode support. proxy: media routed through Telnyx with no transcode support. | [optional] | +|**acceptAnyRtpPacketsEnabled** | **Boolean** | When enabled, Telnyx will accept RTP packets from any customer-side IP address and port, not just those to which Telnyx is sending RTP. | [optional] | +|**t38FaxGatewayEnabled** | **Boolean** | Controls whether Telnyx will accept a T.38 re-INVITE for this phone number. Note that Telnyx will not send a T.38 re-INVITE; this option only controls whether one will be accepted. | [optional] | ## Enum: MediaHandlingModeEnum -Name | Value ----- | ----- -DEFAULT | "default" -PROXY | "proxy" +| Name | Value | +|---- | -----| +| DEFAULT | "default" | +| PROXY | "proxy" | diff --git a/docs/MediaResource.md b/docs/MediaResource.md index 61d96916..3751f726 100644 --- a/docs/MediaResource.md +++ b/docs/MediaResource.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mediaName** | **String** | Uniquely identifies a media resource. | [optional] -**expiresAt** | **String** | ISO 8601 formatted date of when the media resource will expire and be deleted. | [optional] -**createdAt** | **String** | ISO 8601 formatted date of when the media resource was created | [optional] -**updatedAt** | **String** | ISO 8601 formatted date of when the media resource was last updated | [optional] -**contentType** | **String** | Content type of the file | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mediaName** | **String** | Uniquely identifies a media resource. | [optional] | +|**expiresAt** | **String** | ISO 8601 formatted date of when the media resource will expire and be deleted. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date of when the media resource was created | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date of when the media resource was last updated | [optional] | +|**contentType** | **String** | Content type of the file | [optional] | diff --git a/docs/MediaResourceResponse.md b/docs/MediaResourceResponse.md index 391dee3a..218834ea 100644 --- a/docs/MediaResourceResponse.md +++ b/docs/MediaResourceResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MediaResource**](MediaResource.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MediaResource**](MediaResource.md) | | [optional] | diff --git a/docs/MediaStorageDetailRecord.md b/docs/MediaStorageDetailRecord.md index 5a042611..5570660d 100644 --- a/docs/MediaStorageDetailRecord.md +++ b/docs/MediaStorageDetailRecord.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Unique identifier for the Media Storage Event | [optional] -**createdAt** | **OffsetDateTime** | Event creation time | [optional] -**assetId** | **String** | Asset id | [optional] -**userId** | **String** | User id | [optional] -**orgId** | **String** | Organization owner id | [optional] -**actionType** | **String** | Type of action performed against the Media Storage API | [optional] -**linkChannelType** | **String** | Link channel type | [optional] -**linkChannelId** | **String** | Link channel id | [optional] -**status** | **String** | Request status | [optional] -**webhookId** | **String** | Webhook id | [optional] -**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] -**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing cost | [optional] -**cost** | **String** | Currency amount for Telnyx billing cost | [optional] -**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] -**recordType** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique identifier for the Media Storage Event | [optional] | +|**createdAt** | **OffsetDateTime** | Event creation time | [optional] | +|**assetId** | **String** | Asset id | [optional] | +|**userId** | **String** | User id | [optional] | +|**orgId** | **String** | Organization owner id | [optional] | +|**actionType** | **String** | Type of action performed against the Media Storage API | [optional] | +|**linkChannelType** | **String** | Link channel type | [optional] | +|**linkChannelId** | **String** | Link channel id | [optional] | +|**status** | **String** | Request status | [optional] | +|**webhookId** | **String** | Webhook id | [optional] | +|**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] | +|**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing cost | [optional] | +|**cost** | **String** | Currency amount for Telnyx billing cost | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] | +|**recordType** | **String** | | | diff --git a/docs/Message.md b/docs/Message.md index 3e3ffaef..b4f942ab 100644 --- a/docs/Message.md +++ b/docs/Message.md @@ -3,20 +3,21 @@ # Message + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**id** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**id** | **String** | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -WHATSAPP_MESSAGE_ID | "whatsapp_message_id" +| Name | Value | +|---- | -----| +| WHATSAPP_MESSAGE_ID | "whatsapp_message_id" | diff --git a/docs/MessageDetailRecord.md b/docs/MessageDetailRecord.md index f3d06629..24ca43b5 100644 --- a/docs/MessageDetailRecord.md +++ b/docs/MessageDetailRecord.md @@ -5,72 +5,72 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uuid** | **String** | Unique identifier of the message | [optional] -**userId** | **String** | Identifier of the Telnyx account who owns the message | [optional] -**completedAt** | **OffsetDateTime** | Message completion time | [optional] -**createdAt** | **OffsetDateTime** | Message creation time | [optional] -**updatedAt** | **OffsetDateTime** | Message updated time | [optional] -**sentAt** | **OffsetDateTime** | Time when the message was sent | [optional] -**carrier** | **String** | Country-specific carrier used to send or receive the message | [optional] -**carrierFee** | **String** | Fee charged by certain carriers in order to deliver certain message types. Telnyx passes this fee on to the customer according to our pricing table | [optional] -**cld** | **String** | The recipient of the message (to parameter in the Messaging API) | [optional] -**cli** | **String** | The sender of the message (from parameter in the Messaging API). For Alphanumeric ID messages, this is the sender ID value | [optional] -**countryCode** | **String** | Two-letter representation of the country of the cld property using the ISO 3166-1 alpha-2 format | [optional] -**deliveryStatus** | **String** | Final webhook delivery status | [optional] -**deliveryStatusFailoverUrl** | **String** | Failover customer-provided URL which Telnyx posts delivery status webhooks to | [optional] -**deliveryStatusWebhookUrl** | **String** | Primary customer-provided URL which Telnyx posts delivery status webhooks to | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | Logical direction of the message from the Telnyx customer's perspective. It's inbound when the Telnyx customer receives the message, or outbound otherwise | [optional] -**fteu** | **Boolean** | Indicates whether this is a Free-To-End-User (FTEU) short code message | [optional] -**mcc** | **String** | Mobile country code. Only available for certain products, such as Global Outbound-Only from Alphanumeric Sender ID | [optional] -**mnc** | **String** | Mobile network code. Only available for certain products, such as Global Outbound-Only from Alphanumeric Sender ID | [optional] -**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | Describes the Messaging service used to send the message. Available services are: Short Message Service (SMS), Multimedia Messaging Service (MMS), and Rich Communication Services (RCS) | [optional] -**onNet** | **Boolean** | Indicates whether both sender and recipient numbers are Telnyx-managed | [optional] -**profileId** | **String** | Unique identifier of the Messaging Profile used to send or receive the message | [optional] -**profileName** | **String** | Name of the Messaging Profile used to send or receive the message | [optional] -**sourceCountryCode** | **String** | Two-letter representation of the country of the cli property using the ISO 3166-1 alpha-2 format | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Final status of the message after the delivery attempt | [optional] -**tags** | **String** | Comma-separated tags assigned to the Telnyx number associated with the message | [optional] -**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] -**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] -**cost** | **String** | Amount, in the user currency, for the Telnyx billing cost | [optional] -**errors** | **List<String>** | Telnyx API error codes returned by the Telnyx gateway | [optional] -**parts** | **Integer** | Number of message parts. The message is broken down in multiple parts when its length surpasses the limit of 160 characters | [optional] -**recordType** | **String** | Identifies the record schema | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uuid** | **String** | Unique identifier of the message | [optional] | +|**userId** | **String** | Identifier of the Telnyx account who owns the message | [optional] | +|**completedAt** | **OffsetDateTime** | Message completion time | [optional] | +|**createdAt** | **OffsetDateTime** | Message creation time | [optional] | +|**updatedAt** | **OffsetDateTime** | Message updated time | [optional] | +|**sentAt** | **OffsetDateTime** | Time when the message was sent | [optional] | +|**carrier** | **String** | Country-specific carrier used to send or receive the message | [optional] | +|**carrierFee** | **String** | Fee charged by certain carriers in order to deliver certain message types. Telnyx passes this fee on to the customer according to our pricing table | [optional] | +|**cld** | **String** | The recipient of the message (to parameter in the Messaging API) | [optional] | +|**cli** | **String** | The sender of the message (from parameter in the Messaging API). For Alphanumeric ID messages, this is the sender ID value | [optional] | +|**countryCode** | **String** | Two-letter representation of the country of the cld property using the ISO 3166-1 alpha-2 format | [optional] | +|**deliveryStatus** | **String** | Final webhook delivery status | [optional] | +|**deliveryStatusFailoverUrl** | **String** | Failover customer-provided URL which Telnyx posts delivery status webhooks to | [optional] | +|**deliveryStatusWebhookUrl** | **String** | Primary customer-provided URL which Telnyx posts delivery status webhooks to | [optional] | +|**direction** | [**DirectionEnum**](#DirectionEnum) | Logical direction of the message from the Telnyx customer's perspective. It's inbound when the Telnyx customer receives the message, or outbound otherwise | [optional] | +|**fteu** | **Boolean** | Indicates whether this is a Free-To-End-User (FTEU) short code message | [optional] | +|**mcc** | **String** | Mobile country code. Only available for certain products, such as Global Outbound-Only from Alphanumeric Sender ID | [optional] | +|**mnc** | **String** | Mobile network code. Only available for certain products, such as Global Outbound-Only from Alphanumeric Sender ID | [optional] | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | Describes the Messaging service used to send the message. Available services are: Short Message Service (SMS), Multimedia Messaging Service (MMS), and Rich Communication Services (RCS) | [optional] | +|**onNet** | **Boolean** | Indicates whether both sender and recipient numbers are Telnyx-managed | [optional] | +|**profileId** | **String** | Unique identifier of the Messaging Profile used to send or receive the message | [optional] | +|**profileName** | **String** | Name of the Messaging Profile used to send or receive the message | [optional] | +|**sourceCountryCode** | **String** | Two-letter representation of the country of the cli property using the ISO 3166-1 alpha-2 format | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Final status of the message after the delivery attempt | [optional] | +|**tags** | **String** | Comma-separated tags assigned to the Telnyx number associated with the message | [optional] | +|**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] | +|**cost** | **String** | Amount, in the user currency, for the Telnyx billing cost | [optional] | +|**errors** | **List<String>** | Telnyx API error codes returned by the Telnyx gateway | [optional] | +|**parts** | **Integer** | Number of message parts. The message is broken down in multiple parts when its length surpasses the limit of 160 characters | [optional] | +|**recordType** | **String** | Identifies the record schema | | ## Enum: DirectionEnum -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Value | +|---- | -----| +| INBOUND | "inbound" | +| OUTBOUND | "outbound" | ## Enum: MessageTypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" -RCS | "RCS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | +| RCS | "RCS" | ## Enum: StatusEnum -Name | Value ----- | ----- -GW_TIMEOUT | "gw_timeout" -DELIVERED | "delivered" -DLR_UNCONFIRMED | "dlr_unconfirmed" -DLR_TIMEOUT | "dlr_timeout" -RECEIVED | "received" -GW_REJECT | "gw_reject" -FAILED | "failed" +| Name | Value | +|---- | -----| +| GW_TIMEOUT | "gw_timeout" | +| DELIVERED | "delivered" | +| DLR_UNCONFIRMED | "dlr_unconfirmed" | +| DLR_TIMEOUT | "dlr_timeout" | +| RECEIVED | "received" | +| GW_REJECT | "gw_reject" | +| FAILED | "failed" | diff --git a/docs/MessageResponse.md b/docs/MessageResponse.md index 9545620a..99c251c4 100644 --- a/docs/MessageResponse.md +++ b/docs/MessageResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OutboundMessagePayload**](OutboundMessagePayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**OutboundMessagePayload**](OutboundMessagePayload.md) | | [optional] | diff --git a/docs/MessageType.md b/docs/MessageType.md index 3017739f..fba2904a 100644 --- a/docs/MessageType.md +++ b/docs/MessageType.md @@ -11,8 +11,6 @@ * `DOCUMENT` (value: `"document"`) -* `HSM` (value: `"hsm"`) - * `IMAGE` (value: `"image"`) * `LOCATION` (value: `"location"`) diff --git a/docs/MessagingFeatureSet.md b/docs/MessagingFeatureSet.md index 0afab5b0..59bd51e8 100644 --- a/docs/MessagingFeatureSet.md +++ b/docs/MessagingFeatureSet.md @@ -6,11 +6,11 @@ The set of features available for a specific messaging use case (SMS or MMS). Fe ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**domesticTwoWay** | **Boolean** | Send messages to and receive messages from numbers in the same country. | -**internationalInbound** | **Boolean** | Receive messages from numbers in other countries. | -**internationalOutbound** | **Boolean** | Send messages to numbers in other countries. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**domesticTwoWay** | **Boolean** | Send messages to and receive messages from numbers in the same country. | | +|**internationalInbound** | **Boolean** | Receive messages from numbers in other countries. | | +|**internationalOutbound** | **Boolean** | Send messages to numbers in other countries. | | diff --git a/docs/MessagingHostedNumberOrder.md b/docs/MessagingHostedNumberOrder.md index 63c725c8..3ab5ec04 100644 --- a/docs/MessagingHostedNumberOrder.md +++ b/docs/MessagingHostedNumberOrder.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**id** | **UUID** | Resource unique identifier. | [optional] [readonly] -**messagingProfileId** | **String** | Automatically associate the number with this messaging profile ID when the order is complete. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**phoneNumbers** | [**List<HostedNumber>**](HostedNumber.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**id** | **UUID** | Resource unique identifier. | [optional] [readonly] | +|**messagingProfileId** | **String** | Automatically associate the number with this messaging profile ID when the order is complete. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**phoneNumbers** | [**List<HostedNumber>**](HostedNumber.md) | | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -FAILED | "failed" -PENDING | "pending" -SUCCESSFUL | "successful" +| Name | Value | +|---- | -----| +| FAILED | "failed" | +| PENDING | "pending" | +| SUCCESSFUL | "successful" | diff --git a/docs/MessagingProfile.md b/docs/MessagingProfile.md index 336945eb..bb0fdf2b 100644 --- a/docs/MessagingProfile.md +++ b/docs/MessagingProfile.md @@ -5,39 +5,39 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] -**name** | **String** | A user friendly name for the messaging profile. | [optional] -**enabled** | **Boolean** | Specifies whether the messaging profile is enabled or not. | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this messaging profile will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this messaging profile will be sent if sending to the primary URL fails. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 2010-04-01 format. | [optional] -**whitelistedDestinations** | **List<String>** | Destinations to which the messaging profile is allowed to send. If set to `null`, all destinations will be allowed. Setting a value of `[\"*\"]` has the equivalent effect. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] -**v1Secret** | **String** | Secret used to authenticate with v1 endpoints. | [optional] -**numberPoolSettings** | [**NumberPoolSettings**](NumberPoolSettings.md) | | [optional] -**urlShortenerSettings** | [**UrlShortenerSettings**](UrlShortenerSettings.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] | +|**name** | **String** | A user friendly name for the messaging profile. | [optional] | +|**enabled** | **Boolean** | Specifies whether the messaging profile is enabled or not. | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this messaging profile will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this messaging profile will be sent if sending to the primary URL fails. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 2010-04-01 format. | [optional] | +|**whitelistedDestinations** | **List<String>** | Destinations to which the messaging profile is allowed to send. If set to `null`, all destinations will be allowed. Setting a value of `[\"*\"]` has the equivalent effect. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | +|**v1Secret** | **String** | Secret used to authenticate with v1 endpoints. | [optional] | +|**numberPoolSettings** | [**NumberPoolSettings**](NumberPoolSettings.md) | | [optional] | +|**urlShortenerSettings** | [**UrlShortenerSettings**](UrlShortenerSettings.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -MESSAGING_PROFILE | "messaging_profile" +| Name | Value | +|---- | -----| +| MESSAGING_PROFILE | "messaging_profile" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" -_2010_04_01 | "2010-04-01" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | +| _2010_04_01 | "2010-04-01" | diff --git a/docs/MessagingProfileDetailedMetric.md b/docs/MessagingProfileDetailedMetric.md index 29bd3f04..3ea075d0 100644 --- a/docs/MessagingProfileDetailedMetric.md +++ b/docs/MessagingProfileDetailedMetric.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**timestamp** | **String** | The timestamp of the aggregated data. | [optional] [readonly] -**metrics** | [**List<MessagingProfileMessageTypeMetrics>**](MessagingProfileMessageTypeMetrics.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**timestamp** | **String** | The timestamp of the aggregated data. | [optional] [readonly] | +|**metrics** | [**List<MessagingProfileMessageTypeMetrics>**](MessagingProfileMessageTypeMetrics.md) | | [optional] | diff --git a/docs/MessagingProfileDetailedMetrics.md b/docs/MessagingProfileDetailedMetrics.md index 68970e0e..b4956659 100644 --- a/docs/MessagingProfileDetailedMetrics.md +++ b/docs/MessagingProfileDetailedMetrics.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**overview** | [**MessagingProfileHighLevelMetrics**](MessagingProfileHighLevelMetrics.md) | | [optional] -**detailed** | [**List<MessagingProfileDetailedMetric>**](MessagingProfileDetailedMetric.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**overview** | [**MessagingProfileHighLevelMetrics**](MessagingProfileHighLevelMetrics.md) | | [optional] | +|**detailed** | [**List<MessagingProfileDetailedMetric>**](MessagingProfileDetailedMetric.md) | | [optional] | diff --git a/docs/MessagingProfileHighLevelMetrics.md b/docs/MessagingProfileHighLevelMetrics.md index 478d64f7..41c299ec 100644 --- a/docs/MessagingProfileHighLevelMetrics.md +++ b/docs/MessagingProfileHighLevelMetrics.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**messagingProfileId** | **UUID** | Identifies the type of resource. | [optional] [readonly] -**phoneNumbers** | **BigDecimal** | The number of phone numbers associated with the messaging profile. | [optional] [readonly] -**outbound** | [**MessagingProfileHighLevelMetricsOutbound**](MessagingProfileHighLevelMetricsOutbound.md) | | [optional] -**inbound** | [**MessagingProfileHighLevelMetricsInbound**](MessagingProfileHighLevelMetricsInbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**messagingProfileId** | **UUID** | Identifies the type of resource. | [optional] [readonly] | +|**phoneNumbers** | **BigDecimal** | The number of phone numbers associated with the messaging profile. | [optional] [readonly] | +|**outbound** | [**MessagingProfileHighLevelMetricsOutbound**](MessagingProfileHighLevelMetricsOutbound.md) | | [optional] | +|**inbound** | [**MessagingProfileHighLevelMetricsInbound**](MessagingProfileHighLevelMetricsInbound.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -MESSAGING_PROFILE_METRICS | "messaging_profile_metrics" +| Name | Value | +|---- | -----| +| MESSAGING_PROFILE_METRICS | "messaging_profile_metrics" | diff --git a/docs/MessagingProfileHighLevelMetricsInbound.md b/docs/MessagingProfileHighLevelMetricsInbound.md index 8b2ad4d5..3eb18f82 100644 --- a/docs/MessagingProfileHighLevelMetricsInbound.md +++ b/docs/MessagingProfileHighLevelMetricsInbound.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**received** | **BigDecimal** | The number of inbound messages received. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**received** | **BigDecimal** | The number of inbound messages received. | [optional] [readonly] | diff --git a/docs/MessagingProfileHighLevelMetricsOutbound.md b/docs/MessagingProfileHighLevelMetricsOutbound.md index f742d274..bf8587e9 100644 --- a/docs/MessagingProfileHighLevelMetricsOutbound.md +++ b/docs/MessagingProfileHighLevelMetricsOutbound.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sent** | **BigDecimal** | The number of outbound messages sent. | [optional] [readonly] -**delivered** | **BigDecimal** | The number of outbound messages successfully delivered. | [optional] [readonly] -**errorRatio** | **BigDecimal** | The ratio of messages sent that resulted in errors. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sent** | **BigDecimal** | The number of outbound messages sent. | [optional] [readonly] | +|**delivered** | **BigDecimal** | The number of outbound messages successfully delivered. | [optional] [readonly] | +|**errorRatio** | **BigDecimal** | The ratio of messages sent that resulted in errors. | [optional] [readonly] | diff --git a/docs/MessagingProfileMessageTypeMetrics.md b/docs/MessagingProfileMessageTypeMetrics.md index f97fb683..5d109f19 100644 --- a/docs/MessagingProfileMessageTypeMetrics.md +++ b/docs/MessagingProfileMessageTypeMetrics.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**label** | **String** | The metric type. | [optional] [readonly] -**sent** | **BigDecimal** | The number of outbound messages sent. | [optional] [readonly] -**delivered** | **BigDecimal** | The number of outbound messages successfully delivered. | [optional] [readonly] -**outboundErrorRatio** | **BigDecimal** | The ratio of outbound messages sent that resulted in errors. | [optional] [readonly] -**received** | **BigDecimal** | The number of inbound messages received. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**label** | **String** | The metric type. | [optional] [readonly] | +|**sent** | **BigDecimal** | The number of outbound messages sent. | [optional] [readonly] | +|**delivered** | **BigDecimal** | The number of outbound messages successfully delivered. | [optional] [readonly] | +|**outboundErrorRatio** | **BigDecimal** | The ratio of outbound messages sent that resulted in errors. | [optional] [readonly] | +|**received** | **BigDecimal** | The number of inbound messages received. | [optional] [readonly] | diff --git a/docs/MessagingProfileResponse.md b/docs/MessagingProfileResponse.md index 5a4c6bfd..1fccd6a8 100644 --- a/docs/MessagingProfileResponse.md +++ b/docs/MessagingProfileResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MessagingProfile**](MessagingProfile.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MessagingProfile**](MessagingProfile.md) | | [optional] | diff --git a/docs/MessagingUrlDomain.md b/docs/MessagingUrlDomain.md index 57d89018..50be829c 100644 --- a/docs/MessagingUrlDomain.md +++ b/docs/MessagingUrlDomain.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] -**id** | **String** | | [optional] -**urlDomain** | **String** | | [optional] -**useCase** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] | +|**id** | **String** | | [optional] | +|**urlDomain** | **String** | | [optional] | +|**useCase** | **String** | | [optional] | diff --git a/docs/Meta.md b/docs/Meta.md index e416d59f..63b40fbd 100644 --- a/docs/Meta.md +++ b/docs/Meta.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalPages** | **Integer** | | [optional] -**totalResults** | **Integer** | | [optional] -**pageNumber** | **Integer** | | [optional] -**pageSize** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalPages** | **Integer** | | [optional] | +|**totalResults** | **Integer** | | [optional] | +|**pageNumber** | **Integer** | | [optional] | +|**pageSize** | **Integer** | | [optional] | diff --git a/docs/Metadata.md b/docs/Metadata.md index 7fb632e2..85305f08 100644 --- a/docs/Metadata.md +++ b/docs/Metadata.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalPages** | **Double** | Total number of pages based on pagination settings | [optional] -**totalResults** | **Double** | Total number of results | [optional] -**pageNumber** | **Double** | Current Page based on pagination settings (included when defaults are used.) | [optional] -**pageSize** | **Double** | Number of results to return per page based on pagination settings (included when defaults are used.) | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalPages** | **Double** | Total number of pages based on pagination settings | [optional] | +|**totalResults** | **Double** | Total number of results | [optional] | +|**pageNumber** | **Double** | Current Page based on pagination settings (included when defaults are used.) | [optional] | +|**pageSize** | **Double** | Number of results to return per page based on pagination settings (included when defaults are used.) | [optional] | diff --git a/docs/MobileOperatorNetwork.md b/docs/MobileOperatorNetwork.md index 4b999409..67f79f91 100644 --- a/docs/MobileOperatorNetwork.md +++ b/docs/MobileOperatorNetwork.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**name** | **String** | The operator network name. | [optional] -**tadig** | **String** | TADIG stands for Transferred Account Data Interchange Group. The TADIG code is a unique identifier for network operators in GSM mobile networks. | [optional] -**countryCode** | **String** | The mobile operator two-character (ISO 3166-1 alpha-2) origin country code. | [optional] -**mcc** | **String** | MCC stands for Mobile Country Code. It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] -**mnc** | **String** | MNC stands for Mobile Network Code. It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**name** | **String** | The operator network name. | [optional] | +|**tadig** | **String** | TADIG stands for Transferred Account Data Interchange Group. The TADIG code is a unique identifier for network operators in GSM mobile networks. | [optional] | +|**countryCode** | **String** | The mobile operator two-character (ISO 3166-1 alpha-2) origin country code. | [optional] | +|**mcc** | **String** | MCC stands for Mobile Country Code. It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] | +|**mnc** | **String** | MNC stands for Mobile Network Code. It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] | diff --git a/docs/MobileOperatorNetworkPreferencesRequest.md b/docs/MobileOperatorNetworkPreferencesRequest.md index 75ccc15e..93132261 100644 --- a/docs/MobileOperatorNetworkPreferencesRequest.md +++ b/docs/MobileOperatorNetworkPreferencesRequest.md @@ -3,12 +3,13 @@ # MobileOperatorNetworkPreferencesRequest + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobileOperatorNetworkId** | **UUID** | The mobile operator network resource identification UUID. | [optional] -**priority** | **Integer** | It determines what is the priority of a specific operator network that should be assumed by a SIM card when connecting to a network. The highest priority is 0, the second highest is 1 and so on. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mobileOperatorNetworkId** | **UUID** | The mobile operator network resource identification UUID. | [optional] | +|**priority** | **Integer** | It determines what is the priority of a specific operator network that should be assumed by a SIM card when connecting to a network. The highest priority is 0, the second highest is 1 and so on. | [optional] | diff --git a/docs/MobileOperatorNetworkPreferencesResponse.md b/docs/MobileOperatorNetworkPreferencesResponse.md index 946a7db3..1c0cc147 100644 --- a/docs/MobileOperatorNetworkPreferencesResponse.md +++ b/docs/MobileOperatorNetworkPreferencesResponse.md @@ -3,13 +3,14 @@ # MobileOperatorNetworkPreferencesResponse + ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mobileOperatorNetworkId** | **UUID** | The mobile operator network resource identification UUID. | [optional] -**mobileOperatorNetworkName** | **String** | The mobile operator network resource name. | [optional] -**priority** | **Integer** | It determines what is the priority of a specific operator network that should be assumed by a SIM card when connecting to a network. The highest priority is 0, the second highest is 1 and so on. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mobileOperatorNetworkId** | **UUID** | The mobile operator network resource identification UUID. | [optional] | +|**mobileOperatorNetworkName** | **String** | The mobile operator network resource name. | [optional] | +|**priority** | **Integer** | It determines what is the priority of a specific operator network that should be assumed by a SIM card when connecting to a network. The highest priority is 0, the second highest is 1 and so on. | [optional] | diff --git a/docs/MobileOperatorNetworksApi.md b/docs/MobileOperatorNetworksApi.md index 1edb1773..7969410b 100644 --- a/docs/MobileOperatorNetworksApi.md +++ b/docs/MobileOperatorNetworksApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## mobileOperatorNetworksGet -> SearchMobileOperatorNetworksResponse mobileOperatorNetworksGet(pageNumber, pageSize, filterNameStartsWith, filterNameContains, filterNameEndsWith, filterCountryCode, filterMcc, filterMnc, filterTadig) +> MobileOperatorNetworksGet200Response mobileOperatorNetworksGet(pageNumber, pageSize, filterNameStartsWith, filterNameContains, filterNameEndsWith, filterCountryCode, filterMcc, filterMnc, filterTadig) List mobile operator networks @@ -47,7 +47,7 @@ public class Example { String filterMnc = "410"; // String | Filter by exact MNC. String filterTadig = "USACG"; // String | Filter by exact TADIG. try { - SearchMobileOperatorNetworksResponse result = apiInstance.mobileOperatorNetworksGet(pageNumber, pageSize, filterNameStartsWith, filterNameContains, filterNameEndsWith, filterCountryCode, filterMcc, filterMnc, filterTadig); + MobileOperatorNetworksGet200Response result = apiInstance.mobileOperatorNetworksGet(pageNumber, pageSize, filterNameStartsWith, filterNameContains, filterNameEndsWith, filterCountryCode, filterMcc, filterMnc, filterTadig); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling MobileOperatorNetworksApi#mobileOperatorNetworksGet"); @@ -77,7 +77,7 @@ Name | Type | Description | Notes ### Return type -[**SearchMobileOperatorNetworksResponse**](SearchMobileOperatorNetworksResponse.md) +[**MobileOperatorNetworksGet200Response**](MobileOperatorNetworksGet200Response.md) ### Authorization diff --git a/docs/MobileOperatorNetworksGet200Response.md b/docs/MobileOperatorNetworksGet200Response.md new file mode 100644 index 00000000..8988ad36 --- /dev/null +++ b/docs/MobileOperatorNetworksGet200Response.md @@ -0,0 +1,14 @@ + + +# MobileOperatorNetworksGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<MobileOperatorNetwork>**](MobileOperatorNetwork.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/ModelInterface.md b/docs/ModelInterface.md new file mode 100644 index 00000000..2e20c583 --- /dev/null +++ b/docs/ModelInterface.md @@ -0,0 +1,15 @@ + + +# ModelInterface + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**networkId** | **UUID** | The id of the network associated with the interface. | [optional] | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | + + + diff --git a/docs/Money.md b/docs/Money.md index 6c61d4b0..06074f48 100644 --- a/docs/Money.md +++ b/docs/Money.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **String** | | [optional] -**currency** | [**CurrencyEnum**](#CurrencyEnum) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **String** | | [optional] | +|**currency** | [**CurrencyEnum**](#CurrencyEnum) | | [optional] | ## Enum: CurrencyEnum -Name | Value ----- | ----- -AUD | "AUD" -CAD | "CAD" -EUR | "EUR" -GBP | "GBP" -USD | "USD" +| Name | Value | +|---- | -----| +| AUD | "AUD" | +| CAD | "CAD" | +| EUR | "EUR" | +| GBP | "GBP" | +| USD | "USD" | diff --git a/docs/Network.md b/docs/Network.md new file mode 100644 index 00000000..8008611a --- /dev/null +++ b/docs/Network.md @@ -0,0 +1,17 @@ + + +# Network + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**name** | **String** | A user specified name for the network. | [optional] | + + + diff --git a/docs/Network1.md b/docs/Network1.md new file mode 100644 index 00000000..f0d0b5ec --- /dev/null +++ b/docs/Network1.md @@ -0,0 +1,14 @@ + + +# Network1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**name** | **String** | A user specified name for the network. | [optional] | + + + diff --git a/docs/NetworkCreate.md b/docs/NetworkCreate.md new file mode 100644 index 00000000..178550a1 --- /dev/null +++ b/docs/NetworkCreate.md @@ -0,0 +1,17 @@ + + +# NetworkCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**name** | **String** | A user specified name for the network. | | + + + diff --git a/docs/NetworkCreate200Response.md b/docs/NetworkCreate200Response.md new file mode 100644 index 00000000..904f57a3 --- /dev/null +++ b/docs/NetworkCreate200Response.md @@ -0,0 +1,13 @@ + + +# NetworkCreate200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Network**](Network.md) | | [optional] | + + + diff --git a/docs/NetworkInterface.md b/docs/NetworkInterface.md new file mode 100644 index 00000000..64e0dde3 --- /dev/null +++ b/docs/NetworkInterface.md @@ -0,0 +1,22 @@ + + +# NetworkInterface + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | [optional] | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**regionCode** | **String** | The region interface is deployed to. | [optional] | +|**region** | [**RegionOutRegion**](RegionOutRegion.md) | | [optional] | +|**type** | **String** | Identifies the type of the interface. | [optional] [readonly] | + + + diff --git a/docs/NetworkInterface1.md b/docs/NetworkInterface1.md new file mode 100644 index 00000000..6ca0162d --- /dev/null +++ b/docs/NetworkInterface1.md @@ -0,0 +1,14 @@ + + +# NetworkInterface1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**type** | **String** | Identifies the type of the interface. | [optional] [readonly] | + + + diff --git a/docs/NetworkInterfaceList200Response.md b/docs/NetworkInterfaceList200Response.md new file mode 100644 index 00000000..5180cda8 --- /dev/null +++ b/docs/NetworkInterfaceList200Response.md @@ -0,0 +1,14 @@ + + +# NetworkInterfaceList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<NetworkInterface>**](NetworkInterface.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/NetworkList200Response.md b/docs/NetworkList200Response.md new file mode 100644 index 00000000..a657cfb0 --- /dev/null +++ b/docs/NetworkList200Response.md @@ -0,0 +1,14 @@ + + +# NetworkList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Network>**](Network.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/NetworksApi.md b/docs/NetworksApi.md new file mode 100644 index 00000000..0cce79aa --- /dev/null +++ b/docs/NetworksApi.md @@ -0,0 +1,461 @@ +# NetworksApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**networkCreate**](NetworksApi.md#networkCreate) | **POST** /networks | Create a Network +[**networkDelete**](NetworksApi.md#networkDelete) | **DELETE** /networks/{id} | Delete a Network +[**networkGet**](NetworksApi.md#networkGet) | **GET** /networks/{id} | Retrieve a Network +[**networkInterfaceList**](NetworksApi.md#networkInterfaceList) | **GET** /networks/{id}/network_interfaces | List all Interfaces for a Network. +[**networkList**](NetworksApi.md#networkList) | **GET** /networks | List all Networks +[**networkUpdate**](NetworksApi.md#networkUpdate) | **PATCH** /networks/{id} | Update a Network + + + +## networkCreate + +> NetworkCreate200Response networkCreate(networkCreate) + +Create a Network + +Create a new Network. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.NetworksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + NetworksApi apiInstance = new NetworksApi(defaultClient); + NetworkCreate networkCreate = new NetworkCreate(); // NetworkCreate | + try { + NetworkCreate200Response result = apiInstance.networkCreate(networkCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworksApi#networkCreate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **networkCreate** | [**NetworkCreate**](NetworkCreate.md)| | + +### Return type + +[**NetworkCreate200Response**](NetworkCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + + +## networkDelete + +> NetworkCreate200Response networkDelete(id) + +Delete a Network + +Delete a Network. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.NetworksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + NetworksApi apiInstance = new NetworksApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + NetworkCreate200Response result = apiInstance.networkDelete(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworksApi#networkDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**NetworkCreate200Response**](NetworkCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## networkGet + +> NetworkCreate200Response networkGet(id) + +Retrieve a Network + +Retrieve a Network. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.NetworksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + NetworksApi apiInstance = new NetworksApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + NetworkCreate200Response result = apiInstance.networkGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworksApi#networkGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**NetworkCreate200Response**](NetworkCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## networkInterfaceList + +> NetworkInterfaceList200Response networkInterfaceList(id, pageNumber, pageSize, filterName, filterType, filterStatus) + +List all Interfaces for a Network. + +List all Interfaces for a Network. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.NetworksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + NetworksApi apiInstance = new NetworksApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String filterName = "test interface"; // String | The interface name to filter on. + String filterType = "wireguard_interface"; // String | The interface type to filter on. + InterfaceStatus filterStatus = InterfaceStatus.fromValue("created"); // InterfaceStatus | The interface status to filter on. + try { + NetworkInterfaceList200Response result = apiInstance.networkInterfaceList(id, pageNumber, pageSize, filterName, filterType, filterStatus); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworksApi#networkInterfaceList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterName** | **String**| The interface name to filter on. | [optional] + **filterType** | **String**| The interface type to filter on. | [optional] + **filterStatus** | **InterfaceStatus**| The interface status to filter on. | [optional] [enum: created, provisioning, provisioned, deleting] + +### Return type + +[**NetworkInterfaceList200Response**](NetworkInterfaceList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## networkList + +> NetworkList200Response networkList(pageNumber, pageSize, filterName) + +List all Networks + +List all Networks. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.NetworksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + NetworksApi apiInstance = new NetworksApi(defaultClient); + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String filterName = "test network"; // String | The network name to filter on. + try { + NetworkList200Response result = apiInstance.networkList(pageNumber, pageSize, filterName); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworksApi#networkList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterName** | **String**| The network name to filter on. | [optional] + +### Return type + +[**NetworkList200Response**](NetworkList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## networkUpdate + +> NetworkCreate200Response networkUpdate(id, networkCreate) + +Update a Network + +Update a Network. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.NetworksApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + NetworksApi apiInstance = new NetworksApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + NetworkCreate networkCreate = new NetworkCreate(); // NetworkCreate | + try { + NetworkCreate200Response result = apiInstance.networkUpdate(id, networkCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling NetworksApi#networkUpdate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **networkCreate** | [**NetworkCreate**](NetworkCreate.md)| | + +### Return type + +[**NetworkCreate200Response**](NetworkCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + diff --git a/docs/NewBillingGroup.md b/docs/NewBillingGroup.md index cf5a5316..8521227f 100644 --- a/docs/NewBillingGroup.md +++ b/docs/NewBillingGroup.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A name for the billing group | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A name for the billing group | [optional] | diff --git a/docs/NewLedgerBillingGroupReport.md b/docs/NewLedgerBillingGroupReport.md index 957c61ab..8f0ea218 100644 --- a/docs/NewLedgerBillingGroupReport.md +++ b/docs/NewLedgerBillingGroupReport.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**year** | **Integer** | Year of the ledger billing group report | [optional] -**month** | **Integer** | Month of the ledger billing group report | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**year** | **Integer** | Year of the ledger billing group report | [optional] | +|**month** | **Integer** | Month of the ledger billing group report | [optional] | diff --git a/docs/NotificationChannel.md b/docs/NotificationChannel.md index 3baadca7..4f19e445 100644 --- a/docs/NotificationChannel.md +++ b/docs/NotificationChannel.md @@ -6,25 +6,25 @@ A Notification Channel ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | A UUID. | [optional] [readonly] -**notificationProfileId** | **String** | A UUID reference to the associated Notification Profile. | [optional] -**channelTypeId** | [**ChannelTypeIdEnum**](#ChannelTypeIdEnum) | A Channel Type ID | [optional] -**channelDestination** | **String** | The destination associated with the channel type. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | A UUID. | [optional] [readonly] | +|**notificationProfileId** | **String** | A UUID reference to the associated Notification Profile. | [optional] | +|**channelTypeId** | [**ChannelTypeIdEnum**](#ChannelTypeIdEnum) | A Channel Type ID | [optional] | +|**channelDestination** | **String** | The destination associated with the channel type. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | ## Enum: ChannelTypeIdEnum -Name | Value ----- | ----- -SMS | "sms" -VOICE | "voice" -EMAIL | "email" -WEBHOOK | "webhook" +| Name | Value | +|---- | -----| +| SMS | "sms" | +| VOICE | "voice" | +| EMAIL | "email" | +| WEBHOOK | "webhook" | diff --git a/docs/NotificationEvent.md b/docs/NotificationEvent.md index 5d93a27f..f6c9f867 100644 --- a/docs/NotificationEvent.md +++ b/docs/NotificationEvent.md @@ -6,14 +6,14 @@ An object representing the available notifications. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | A UUID. | [optional] [readonly] -**name** | **String** | A human readable name. | [optional] -**notificationCategory** | **String** | | [optional] -**enabled** | **Boolean** | | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | A UUID. | [optional] [readonly] | +|**name** | **String** | A human readable name. | [optional] | +|**notificationCategory** | **String** | | [optional] | +|**enabled** | **Boolean** | | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | diff --git a/docs/NotificationEventCondition.md b/docs/NotificationEventCondition.md index c75195f0..d07e5e2d 100644 --- a/docs/NotificationEventCondition.md +++ b/docs/NotificationEventCondition.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | A UUID. | [optional] [readonly] -**name** | **String** | | [optional] -**description** | **String** | | [optional] -**notificationEventId** | **String** | | [optional] -**associatedRecordType** | [**AssociatedRecordTypeEnum**](#AssociatedRecordTypeEnum) | | [optional] -**parameters** | [**List<NotificationEventConditionParameters>**](NotificationEventConditionParameters.md) | | [optional] -**enabled** | **Boolean** | | [optional] -**allowMultipleChannels** | **Boolean** | Dictates whether a notification channel id needs to be provided when creating a notficiation setting. | [optional] -**asynchronous** | **Boolean** | Dictates whether a notification setting will take effect immediately. | [optional] -**supportedChannels** | **List<String>** | Dictates the supported notification channel types that can be emitted. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | A UUID. | [optional] [readonly] | +|**name** | **String** | | [optional] | +|**description** | **String** | | [optional] | +|**notificationEventId** | **String** | | [optional] | +|**associatedRecordType** | [**AssociatedRecordTypeEnum**](#AssociatedRecordTypeEnum) | | [optional] | +|**parameters** | [**List<NotificationEventConditionParametersInner>**](NotificationEventConditionParametersInner.md) | | [optional] | +|**enabled** | **Boolean** | | [optional] | +|**allowMultipleChannels** | **Boolean** | Dictates whether a notification channel id needs to be provided when creating a notficiation setting. | [optional] | +|**asynchronous** | **Boolean** | Dictates whether a notification setting will take effect immediately. | [optional] | +|**supportedChannels** | **List<String>** | Dictates the supported notification channel types that can be emitted. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] | ## Enum: AssociatedRecordTypeEnum -Name | Value ----- | ----- -ACCOUNT | "account" -PHONE_NUMBER | "phone_number" +| Name | Value | +|---- | -----| +| ACCOUNT | "account" | +| PHONE_NUMBER | "phone_number" | diff --git a/docs/NotificationEventConditionParametersInner.md b/docs/NotificationEventConditionParametersInner.md new file mode 100644 index 00000000..ab3f49a6 --- /dev/null +++ b/docs/NotificationEventConditionParametersInner.md @@ -0,0 +1,15 @@ + + +# NotificationEventConditionParametersInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**optional** | **Boolean** | | [optional] | +|**dataType** | **String** | | [optional] | + + + diff --git a/docs/NotificationProfile.md b/docs/NotificationProfile.md index 02dd13a1..68b02539 100644 --- a/docs/NotificationProfile.md +++ b/docs/NotificationProfile.md @@ -6,12 +6,12 @@ A Collection of Notification Channels ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | A UUID. | [optional] [readonly] -**name** | **String** | A human readable name. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | A UUID. | [optional] [readonly] | +|**name** | **String** | A human readable name. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | diff --git a/docs/NotificationSetting.md b/docs/NotificationSetting.md index f4e030ae..03416cb4 100644 --- a/docs/NotificationSetting.md +++ b/docs/NotificationSetting.md @@ -5,33 +5,33 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | A UUID. | [optional] [readonly] -**notificationEventConditionId** | **String** | A UUID reference to the associated Notification Event Condition. | [optional] -**notificationProfileId** | **String** | A UUID reference to the associated Notification Profile. | [optional] -**associatedRecordType** | **String** | | [optional] [readonly] -**associatedRecordTypeValue** | **String** | | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | Most preferences apply immediately; however, other may needs to propagate. | [optional] [readonly] -**notificationChannelId** | **String** | A UUID reference to the associated Notification Channel. | [optional] -**parameters** | [**List<NotificationSettingParameters>**](NotificationSettingParameters.md) | | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | A UUID. | [optional] [readonly] | +|**notificationEventConditionId** | **String** | A UUID reference to the associated Notification Event Condition. | [optional] | +|**notificationProfileId** | **String** | A UUID reference to the associated Notification Profile. | [optional] | +|**associatedRecordType** | **String** | | [optional] [readonly] | +|**associatedRecordTypeValue** | **String** | | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | Most preferences apply immediately; however, other may needs to propagate. | [optional] [readonly] | +|**notificationChannelId** | **String** | A UUID reference to the associated Notification Channel. | [optional] | +|**parameters** | [**List<NotificationSettingParametersInner>**](NotificationSettingParametersInner.md) | | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -ENABLED | "enabled" -ENABLE_RECEIVED | "enable-received" -ENABLE_PENDING | "enable-pending" -ENABLE_SUBMTITED | "enable-submtited" -DELETE_RECEIVED | "delete-received" -DELETE_PENDING | "delete-pending" -DELETE_SUBMITTED | "delete-submitted" -DELETED | "deleted" +| Name | Value | +|---- | -----| +| ENABLED | "enabled" | +| ENABLE_RECEIVED | "enable-received" | +| ENABLE_PENDING | "enable-pending" | +| ENABLE_SUBMTITED | "enable-submtited" | +| DELETE_RECEIVED | "delete-received" | +| DELETE_PENDING | "delete-pending" | +| DELETE_SUBMITTED | "delete-submitted" | +| DELETED | "deleted" | diff --git a/docs/NotificationSettingParametersInner.md b/docs/NotificationSettingParametersInner.md new file mode 100644 index 00000000..9d4bf878 --- /dev/null +++ b/docs/NotificationSettingParametersInner.md @@ -0,0 +1,14 @@ + + +# NotificationSettingParametersInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**value** | **String** | | [optional] | + + + diff --git a/docs/NotificationsApi.md b/docs/NotificationsApi.md index 9de8d358..b9ac552d 100644 --- a/docs/NotificationsApi.md +++ b/docs/NotificationsApi.md @@ -25,7 +25,7 @@ Method | HTTP request | Description ## createNotificationChannels -> CreateNotificationChannel createNotificationChannels(notificationChannel) +> CreateNotificationChannels200Response createNotificationChannels(notificationChannel) Create a notification channel @@ -54,7 +54,7 @@ public class Example { NotificationsApi apiInstance = new NotificationsApi(defaultClient); NotificationChannel notificationChannel = new NotificationChannel(); // NotificationChannel | Add a Notification Channel try { - CreateNotificationChannel result = apiInstance.createNotificationChannels(notificationChannel); + CreateNotificationChannels200Response result = apiInstance.createNotificationChannels(notificationChannel); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#createNotificationChannels"); @@ -76,7 +76,7 @@ Name | Type | Description | Notes ### Return type -[**CreateNotificationChannel**](CreateNotificationChannel.md) +[**CreateNotificationChannels200Response**](CreateNotificationChannels200Response.md) ### Authorization @@ -96,7 +96,7 @@ Name | Type | Description | Notes ## createNotificationProfile -> CreateNotificationProfile createNotificationProfile(notificationProfile) +> CreateNotificationProfile200Response createNotificationProfile(notificationProfile) Create a notification profile @@ -125,7 +125,7 @@ public class Example { NotificationsApi apiInstance = new NotificationsApi(defaultClient); NotificationProfile notificationProfile = new NotificationProfile(); // NotificationProfile | Add a Notification Profile try { - CreateNotificationProfile result = apiInstance.createNotificationProfile(notificationProfile); + CreateNotificationProfile200Response result = apiInstance.createNotificationProfile(notificationProfile); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#createNotificationProfile"); @@ -147,7 +147,7 @@ Name | Type | Description | Notes ### Return type -[**CreateNotificationProfile**](CreateNotificationProfile.md) +[**CreateNotificationProfile200Response**](CreateNotificationProfile200Response.md) ### Authorization @@ -167,7 +167,7 @@ Name | Type | Description | Notes ## createNotificationSetting -> CreateNotificationSetting createNotificationSetting(notificationSetting) +> CreateNotificationSetting200Response createNotificationSetting(notificationSetting) Add a Notification Setting @@ -196,7 +196,7 @@ public class Example { NotificationsApi apiInstance = new NotificationsApi(defaultClient); NotificationSetting notificationSetting = new NotificationSetting(); // NotificationSetting | try { - CreateNotificationSetting result = apiInstance.createNotificationSetting(notificationSetting); + CreateNotificationSetting200Response result = apiInstance.createNotificationSetting(notificationSetting); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#createNotificationSetting"); @@ -218,7 +218,7 @@ Name | Type | Description | Notes ### Return type -[**CreateNotificationSetting**](CreateNotificationSetting.md) +[**CreateNotificationSetting200Response**](CreateNotificationSetting200Response.md) ### Authorization @@ -239,7 +239,7 @@ Name | Type | Description | Notes ## deleteNotificationChannel -> DeleteNotificationChannel deleteNotificationChannel(id) +> CreateNotificationChannels200Response deleteNotificationChannel(id) Delete a notification channel @@ -267,9 +267,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - DeleteNotificationChannel result = apiInstance.deleteNotificationChannel(id); + CreateNotificationChannels200Response result = apiInstance.deleteNotificationChannel(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#deleteNotificationChannel"); @@ -287,11 +287,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**DeleteNotificationChannel**](DeleteNotificationChannel.md) +[**CreateNotificationChannels200Response**](CreateNotificationChannels200Response.md) ### Authorization @@ -311,7 +311,7 @@ Name | Type | Description | Notes ## deleteNotificationProfile -> DeleteNotificationProfiles deleteNotificationProfile(id) +> CreateNotificationProfile200Response deleteNotificationProfile(id) Delete a notification profile @@ -339,9 +339,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - DeleteNotificationProfiles result = apiInstance.deleteNotificationProfile(id); + CreateNotificationProfile200Response result = apiInstance.deleteNotificationProfile(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#deleteNotificationProfile"); @@ -359,11 +359,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**DeleteNotificationProfiles**](DeleteNotificationProfiles.md) +[**CreateNotificationProfile200Response**](CreateNotificationProfile200Response.md) ### Authorization @@ -383,7 +383,7 @@ Name | Type | Description | Notes ## deleteNotificationSetting -> DeleteNotificationSetting deleteNotificationSetting(id) +> CreateNotificationSetting200Response deleteNotificationSetting(id) Delete a notification setting @@ -411,9 +411,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - DeleteNotificationSetting result = apiInstance.deleteNotificationSetting(id); + CreateNotificationSetting200Response result = apiInstance.deleteNotificationSetting(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#deleteNotificationSetting"); @@ -431,11 +431,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**DeleteNotificationSetting**](DeleteNotificationSetting.md) +[**CreateNotificationSetting200Response**](CreateNotificationSetting200Response.md) ### Authorization @@ -456,7 +456,7 @@ Name | Type | Description | Notes ## findNotificationsEvents -> ListNotificationEvents findNotificationsEvents(pageNumber, pageSize) +> FindNotificationsEvents200Response findNotificationsEvents(pageNumber, pageSize) List all Notifications Events @@ -486,7 +486,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListNotificationEvents result = apiInstance.findNotificationsEvents(pageNumber, pageSize); + FindNotificationsEvents200Response result = apiInstance.findNotificationsEvents(pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#findNotificationsEvents"); @@ -509,7 +509,7 @@ Name | Type | Description | Notes ### Return type -[**ListNotificationEvents**](ListNotificationEvents.md) +[**FindNotificationsEvents200Response**](FindNotificationsEvents200Response.md) ### Authorization @@ -529,7 +529,7 @@ Name | Type | Description | Notes ## findNotificationsEventsConditions -> ListNotificationEvenConditions findNotificationsEventsConditions(pageNumber, pageSize, filterAssociatedRecordTypeEq) +> FindNotificationsEventsConditions200Response findNotificationsEventsConditions(pageNumber, pageSize, filterAssociatedRecordTypeEq) List all Notifications Events Conditions @@ -560,7 +560,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page String filterAssociatedRecordTypeEq = "account"; // String | Filter by the associated record type try { - ListNotificationEvenConditions result = apiInstance.findNotificationsEventsConditions(pageNumber, pageSize, filterAssociatedRecordTypeEq); + FindNotificationsEventsConditions200Response result = apiInstance.findNotificationsEventsConditions(pageNumber, pageSize, filterAssociatedRecordTypeEq); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#findNotificationsEventsConditions"); @@ -584,7 +584,7 @@ Name | Type | Description | Notes ### Return type -[**ListNotificationEvenConditions**](ListNotificationEvenConditions.md) +[**FindNotificationsEventsConditions200Response**](FindNotificationsEventsConditions200Response.md) ### Authorization @@ -604,7 +604,7 @@ Name | Type | Description | Notes ## findNotificationsProfiles -> ListNotificationProfiles findNotificationsProfiles(pageNumber, pageSize) +> FindNotificationsProfiles200Response findNotificationsProfiles(pageNumber, pageSize) List all Notifications Profiles @@ -634,7 +634,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListNotificationProfiles result = apiInstance.findNotificationsProfiles(pageNumber, pageSize); + FindNotificationsProfiles200Response result = apiInstance.findNotificationsProfiles(pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#findNotificationsProfiles"); @@ -657,7 +657,7 @@ Name | Type | Description | Notes ### Return type -[**ListNotificationProfiles**](ListNotificationProfiles.md) +[**FindNotificationsProfiles200Response**](FindNotificationsProfiles200Response.md) ### Authorization @@ -677,7 +677,7 @@ Name | Type | Description | Notes ## listNotificationChannels -> ListNotificationChannels listNotificationChannels(pageNumber, pageSize, filterChannelTypeIdEq) +> ListNotificationChannels200Response listNotificationChannels(pageNumber, pageSize, filterChannelTypeIdEq) List notification channels @@ -708,7 +708,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page String filterChannelTypeIdEq = "webhook"; // String | Filter by the id of a channel type try { - ListNotificationChannels result = apiInstance.listNotificationChannels(pageNumber, pageSize, filterChannelTypeIdEq); + ListNotificationChannels200Response result = apiInstance.listNotificationChannels(pageNumber, pageSize, filterChannelTypeIdEq); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#listNotificationChannels"); @@ -732,7 +732,7 @@ Name | Type | Description | Notes ### Return type -[**ListNotificationChannels**](ListNotificationChannels.md) +[**ListNotificationChannels200Response**](ListNotificationChannels200Response.md) ### Authorization @@ -752,7 +752,7 @@ Name | Type | Description | Notes ## listNotificationSettings -> ListNotificationSettings listNotificationSettings(pageNumber, pageSize, filterNotificationProfileIdEq, filterNotificationChannelEq, filterNotificationEventConditionIdEq, filterAssociatedRecordTypeEq, filterStatusEq) +> ListNotificationSettings200Response listNotificationSettings(pageNumber, pageSize, filterNotificationProfileIdEq, filterNotificationChannelEq, filterNotificationEventConditionIdEq, filterAssociatedRecordTypeEq, filterStatusEq) List notification settings @@ -787,7 +787,7 @@ public class Example { String filterAssociatedRecordTypeEq = "account"; // String | Filter by the associated record type String filterStatusEq = "enabled"; // String | The status of a notification setting try { - ListNotificationSettings result = apiInstance.listNotificationSettings(pageNumber, pageSize, filterNotificationProfileIdEq, filterNotificationChannelEq, filterNotificationEventConditionIdEq, filterAssociatedRecordTypeEq, filterStatusEq); + ListNotificationSettings200Response result = apiInstance.listNotificationSettings(pageNumber, pageSize, filterNotificationProfileIdEq, filterNotificationChannelEq, filterNotificationEventConditionIdEq, filterAssociatedRecordTypeEq, filterStatusEq); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#listNotificationSettings"); @@ -815,7 +815,7 @@ Name | Type | Description | Notes ### Return type -[**ListNotificationSettings**](ListNotificationSettings.md) +[**ListNotificationSettings200Response**](ListNotificationSettings200Response.md) ### Authorization @@ -835,7 +835,7 @@ Name | Type | Description | Notes ## retrieveNotificationChannel -> RetrieveNotificationChannel retrieveNotificationChannel(id) +> CreateNotificationChannels200Response retrieveNotificationChannel(id) Retrieve a notification channel @@ -863,9 +863,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - RetrieveNotificationChannel result = apiInstance.retrieveNotificationChannel(id); + CreateNotificationChannels200Response result = apiInstance.retrieveNotificationChannel(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#retrieveNotificationChannel"); @@ -883,11 +883,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**RetrieveNotificationChannel**](RetrieveNotificationChannel.md) +[**CreateNotificationChannels200Response**](CreateNotificationChannels200Response.md) ### Authorization @@ -907,7 +907,7 @@ Name | Type | Description | Notes ## retrieveNotificationProfile -> RetrieveNotificationProfile retrieveNotificationProfile(id) +> CreateNotificationProfile200Response retrieveNotificationProfile(id) Retrieve a notification profile @@ -935,9 +935,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - RetrieveNotificationProfile result = apiInstance.retrieveNotificationProfile(id); + CreateNotificationProfile200Response result = apiInstance.retrieveNotificationProfile(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#retrieveNotificationProfile"); @@ -955,11 +955,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**RetrieveNotificationProfile**](RetrieveNotificationProfile.md) +[**CreateNotificationProfile200Response**](CreateNotificationProfile200Response.md) ### Authorization @@ -979,7 +979,7 @@ Name | Type | Description | Notes ## retrieveNotificationSetting -> RetrieveNotificationSetting retrieveNotificationSetting(id) +> CreateNotificationSetting200Response retrieveNotificationSetting(id) Retrieve a notification setting @@ -1007,9 +1007,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. try { - RetrieveNotificationSetting result = apiInstance.retrieveNotificationSetting(id); + CreateNotificationSetting200Response result = apiInstance.retrieveNotificationSetting(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#retrieveNotificationSetting"); @@ -1027,11 +1027,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | ### Return type -[**RetrieveNotificationSetting**](RetrieveNotificationSetting.md) +[**CreateNotificationSetting200Response**](CreateNotificationSetting200Response.md) ### Authorization @@ -1051,7 +1051,7 @@ Name | Type | Description | Notes ## updateNotificationChannel -> UpdateNotificationChannel updateNotificationChannel(id, notificationChannel) +> CreateNotificationChannels200Response updateNotificationChannel(id, notificationChannel) Update a notification channel @@ -1079,10 +1079,10 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. NotificationChannel notificationChannel = new NotificationChannel(); // NotificationChannel | Update notification channel object try { - UpdateNotificationChannel result = apiInstance.updateNotificationChannel(id, notificationChannel); + CreateNotificationChannels200Response result = apiInstance.updateNotificationChannel(id, notificationChannel); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#updateNotificationChannel"); @@ -1100,12 +1100,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | **notificationChannel** | [**NotificationChannel**](NotificationChannel.md)| Update notification channel object | ### Return type -[**UpdateNotificationChannel**](UpdateNotificationChannel.md) +[**CreateNotificationChannels200Response**](CreateNotificationChannels200Response.md) ### Authorization @@ -1125,7 +1125,7 @@ Name | Type | Description | Notes ## updateNotificationProfile -> UpdateNotificationProfile updateNotificationProfile(id, notificationProfile) +> CreateNotificationProfile200Response updateNotificationProfile(id, notificationProfile) Update a notification profile @@ -1153,10 +1153,10 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); NotificationsApi apiInstance = new NotificationsApi(defaultClient); - UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID id = UUID.randomUUID(); // UUID | The id of the resource. NotificationProfile notificationProfile = new NotificationProfile(); // NotificationProfile | Update notification profile object try { - UpdateNotificationProfile result = apiInstance.updateNotificationProfile(id, notificationProfile); + CreateNotificationProfile200Response result = apiInstance.updateNotificationProfile(id, notificationProfile); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NotificationsApi#updateNotificationProfile"); @@ -1174,12 +1174,12 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **UUID**| Identifies the resource. | + **id** | **UUID**| The id of the resource. | **notificationProfile** | [**NotificationProfile**](NotificationProfile.md)| Update notification profile object | ### Return type -[**UpdateNotificationProfile**](UpdateNotificationProfile.md) +[**CreateNotificationProfile200Response**](CreateNotificationProfile200Response.md) ### Authorization diff --git a/docs/NumberBackgroundJobsApi.md b/docs/NumberBackgroundJobsApi.md index 6c06309e..ee6ca8f1 100644 --- a/docs/NumberBackgroundJobsApi.md +++ b/docs/NumberBackgroundJobsApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## createPhoneNumbersJobDeletePhoneNumbers -> CreatePhoneNumbersJobDeletePhoneNumbers createPhoneNumbersJobDeletePhoneNumbers().phoneNumbersJobDeletePhoneNumbersRequest(phoneNumbersJobDeletePhoneNumbersRequest).execute(); +> PhoneNumbersJobDeletePhoneNumbers createPhoneNumbersJobDeletePhoneNumbers().phoneNumbersJobDeletePhoneNumbersRequest(phoneNumbersJobDeletePhoneNumbersRequest).execute(); Delete a batch of numbers @@ -43,7 +43,7 @@ public class Example { NumberBackgroundJobsApi apiInstance = new NumberBackgroundJobsApi(defaultClient); PhoneNumbersJobDeletePhoneNumbersRequest phoneNumbersJobDeletePhoneNumbersRequest = new PhoneNumbersJobDeletePhoneNumbersRequest(); // PhoneNumbersJobDeletePhoneNumbersRequest | try { - CreatePhoneNumbersJobDeletePhoneNumbers result = api.createPhoneNumbersJobDeletePhoneNumbers() + PhoneNumbersJobDeletePhoneNumbers result = api.createPhoneNumbersJobDeletePhoneNumbers() .phoneNumbersJobDeletePhoneNumbersRequest(phoneNumbersJobDeletePhoneNumbersRequest) .execute(); System.out.println(result); @@ -67,7 +67,7 @@ Name | Type | Description | Notes ### Return type -[**CreatePhoneNumbersJobDeletePhoneNumbers**](CreatePhoneNumbersJobDeletePhoneNumbers.md) +[**PhoneNumbersJobDeletePhoneNumbers**](PhoneNumbersJobDeletePhoneNumbers.md) ### Authorization @@ -87,7 +87,7 @@ Name | Type | Description | Notes ## createPhoneNumbersJobUpdateEmergencySettings -> CreatePhoneNumbersEnableEmergency createPhoneNumbersJobUpdateEmergencySettings(phoneNumbersJobUpdateEmergencySettingsRequest) +> PhoneNumbersEnableEmergency createPhoneNumbersJobUpdateEmergencySettings(phoneNumbersJobUpdateEmergencySettingsRequest) Update the emergency settings from a batch of numbers @@ -116,7 +116,7 @@ public class Example { NumberBackgroundJobsApi apiInstance = new NumberBackgroundJobsApi(defaultClient); PhoneNumbersJobUpdateEmergencySettingsRequest phoneNumbersJobUpdateEmergencySettingsRequest = new PhoneNumbersJobUpdateEmergencySettingsRequest(); // PhoneNumbersJobUpdateEmergencySettingsRequest | try { - CreatePhoneNumbersEnableEmergency result = apiInstance.createPhoneNumbersJobUpdateEmergencySettings(phoneNumbersJobUpdateEmergencySettingsRequest); + PhoneNumbersEnableEmergency result = apiInstance.createPhoneNumbersJobUpdateEmergencySettings(phoneNumbersJobUpdateEmergencySettingsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberBackgroundJobsApi#createPhoneNumbersJobUpdateEmergencySettings"); @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Return type -[**CreatePhoneNumbersEnableEmergency**](CreatePhoneNumbersEnableEmergency.md) +[**PhoneNumbersEnableEmergency**](PhoneNumbersEnableEmergency.md) ### Authorization @@ -311,7 +311,7 @@ Name | Type | Description | Notes ## retrievePhoneNumbersJob -> RetrievePhoneNumbersJob retrievePhoneNumbersJob(id).execute(); +> PhoneNumbersJob retrievePhoneNumbersJob(id).execute(); Retrieve a phone numbers job @@ -338,7 +338,7 @@ public class Example { NumberBackgroundJobsApi apiInstance = new NumberBackgroundJobsApi(defaultClient); String id = "id_example"; // String | Identifies the Phone Numbers Job. try { - RetrievePhoneNumbersJob result = api.retrievePhoneNumbersJob(id) + PhoneNumbersJob result = api.retrievePhoneNumbersJob(id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -361,7 +361,7 @@ Name | Type | Description | Notes ### Return type -[**RetrievePhoneNumbersJob**](RetrievePhoneNumbersJob.md) +[**PhoneNumbersJob**](PhoneNumbersJob.md) ### Authorization diff --git a/docs/NumberBlockOrder.md b/docs/NumberBlockOrder.md index 1568f21e..868b2d94 100644 --- a/docs/NumberBlockOrder.md +++ b/docs/NumberBlockOrder.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**startingNumber** | **String** | Starting phone number block | [optional] -**range** | **Integer** | The phone number range included in the block. | [optional] -**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] -**connectionId** | **String** | Identifies the connection associated to all numbers in the phone number block. | [optional] -**messagingProfileId** | **String** | Identifies the messaging profile associated to all numbers in the phone number block. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] -**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**startingNumber** | **String** | Starting phone number block | [optional] | +|**range** | **Integer** | The phone number range included in the block. | [optional] | +|**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] | +|**connectionId** | **String** | Identifies the connection associated to all numbers in the phone number block. | [optional] | +|**messagingProfileId** | **String** | Identifies the messaging profile associated to all numbers in the phone number block. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] | +|**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/NumberBlockOrderResponse.md b/docs/NumberBlockOrderResponse.md index 0e4f0df8..10849edc 100644 --- a/docs/NumberBlockOrderResponse.md +++ b/docs/NumberBlockOrderResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberBlockOrder**](NumberBlockOrder.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberBlockOrder**](NumberBlockOrder.md) | | [optional] | diff --git a/docs/NumberBlocksBackgroundJobsApi.md b/docs/NumberBlocksBackgroundJobsApi.md index c958fe61..5447b264 100644 --- a/docs/NumberBlocksBackgroundJobsApi.md +++ b/docs/NumberBlocksBackgroundJobsApi.md @@ -168,7 +168,7 @@ Name | Type | Description | Notes ## retrievePhoneNumberBlocksJob -> RetrievePhoneNumberBlocksJob retrievePhoneNumberBlocksJob(id).execute(); +> PhoneNumberBlocksJob retrievePhoneNumberBlocksJob(id).execute(); Retrieves a phone number blocks job @@ -195,7 +195,7 @@ public class Example { NumberBlocksBackgroundJobsApi apiInstance = new NumberBlocksBackgroundJobsApi(defaultClient); String id = "id_example"; // String | Identifies the Phone Number Blocks Job. try { - RetrievePhoneNumberBlocksJob result = api.retrievePhoneNumberBlocksJob(id) + PhoneNumberBlocksJob result = api.retrievePhoneNumberBlocksJob(id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -218,7 +218,7 @@ Name | Type | Description | Notes ### Return type -[**RetrievePhoneNumberBlocksJob**](RetrievePhoneNumberBlocksJob.md) +[**PhoneNumberBlocksJob**](PhoneNumberBlocksJob.md) ### Authorization diff --git a/docs/NumberConfigurationsApi.md b/docs/NumberConfigurationsApi.md index 067f7368..c0b24090 100644 --- a/docs/NumberConfigurationsApi.md +++ b/docs/NumberConfigurationsApi.md @@ -89,7 +89,7 @@ Name | Type | Description | Notes ## enableEmergencyPhoneNumber -> CreatePhoneNumberEmergencyEnable enableEmergencyPhoneNumber(id, phoneNumberEnableEmergencyRequest) +> PhoneNumberEnableEmergency enableEmergencyPhoneNumber(id, phoneNumberEnableEmergencyRequest) Enable emergency for a phone number @@ -117,7 +117,7 @@ public class Example { String id = "1293384261075731499"; // String | Identifies the resource. PhoneNumberEnableEmergencyRequest phoneNumberEnableEmergencyRequest = new PhoneNumberEnableEmergencyRequest(); // PhoneNumberEnableEmergencyRequest | try { - CreatePhoneNumberEmergencyEnable result = apiInstance.enableEmergencyPhoneNumber(id, phoneNumberEnableEmergencyRequest); + PhoneNumberEnableEmergency result = apiInstance.enableEmergencyPhoneNumber(id, phoneNumberEnableEmergencyRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberConfigurationsApi#enableEmergencyPhoneNumber"); @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Return type -[**CreatePhoneNumberEmergencyEnable**](CreatePhoneNumberEmergencyEnable.md) +[**PhoneNumberEnableEmergency**](PhoneNumberEnableEmergency.md) ### Authorization diff --git a/docs/NumberHealthMetrics.md b/docs/NumberHealthMetrics.md index 91dbacb8..013f4b54 100644 --- a/docs/NumberHealthMetrics.md +++ b/docs/NumberHealthMetrics.md @@ -6,12 +6,12 @@ High level health metrics about the number and it's messaging sending patterns. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messageCount** | **Integer** | The number of messages analyzed for the health metrics. | -**inboundOutboundRatio** | **Float** | The ratio of messages received to the number of messages sent. | -**successRatio** | **Float** | The ratio of messages sucessfully delivered to the number of messages attempted. | -**spamRatio** | **Float** | The ratio of messages blocked for spam to the number of messages attempted. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messageCount** | **Integer** | The number of messages analyzed for the health metrics. | | +|**inboundOutboundRatio** | **Float** | The ratio of messages received to the number of messages sent. | | +|**successRatio** | **Float** | The ratio of messages sucessfully delivered to the number of messages attempted. | | +|**spamRatio** | **Float** | The ratio of messages blocked for spam to the number of messages attempted. | | diff --git a/docs/NumberLookupRecord.md b/docs/NumberLookupRecord.md index f307018d..7fbb6dc6 100644 --- a/docs/NumberLookupRecord.md +++ b/docs/NumberLookupRecord.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | Identifies the type of record | [optional] -**countryCode** | **String** | Region code that matches the specific country calling code | [optional] -**nationalFormat** | **String** | Hyphen-separated national number, preceded by the national destination code (NDC), with a 0 prefix, if an NDC is found | [optional] -**phoneNumber** | **String** | E164-formatted phone number | [optional] -**fraud** | **String** | Unused | [optional] -**carrier** | [**Carrier**](Carrier.md) | | [optional] -**callerName** | [**CallerName**](CallerName.md) | | [optional] -**portability** | [**Portability**](Portability.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of record | [optional] | +|**countryCode** | **String** | Region code that matches the specific country calling code | [optional] | +|**nationalFormat** | **String** | Hyphen-separated national number, preceded by the national destination code (NDC), with a 0 prefix, if an NDC is found | [optional] | +|**phoneNumber** | **String** | E164-formatted phone number | [optional] | +|**fraud** | **String** | Unused | [optional] | +|**carrier** | [**Carrier**](Carrier.md) | | [optional] | +|**callerName** | [**CallerName**](CallerName.md) | | [optional] | +|**portability** | [**Portability**](Portability.md) | | [optional] | diff --git a/docs/NumberLookupResponse.md b/docs/NumberLookupResponse.md index b4eba126..e2af2d58 100644 --- a/docs/NumberLookupResponse.md +++ b/docs/NumberLookupResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberLookupRecord**](NumberLookupRecord.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberLookupRecord**](NumberLookupRecord.md) | | [optional] | diff --git a/docs/NumberOrder.md b/docs/NumberOrder.md index 32127269..7c8f5e02 100644 --- a/docs/NumberOrder.md +++ b/docs/NumberOrder.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] -**subNumberOrderIds** | **List<String>** | | [optional] -**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] -**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**billingGroupId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] -**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] | +|**subNumberOrderIds** | **List<String>** | | [optional] | +|**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] | +|**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**billingGroupId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] | +|**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/NumberOrderBlockEvent.md b/docs/NumberOrderBlockEvent.md index c2852efc..d37aeaf4 100644 --- a/docs/NumberOrderBlockEvent.md +++ b/docs/NumberOrderBlockEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberBlockOrder**](NumberBlockOrder.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberBlockOrder**](NumberBlockOrder.md) | | [optional] | diff --git a/docs/NumberOrderDocument.md b/docs/NumberOrderDocument.md index ba1daf34..60e82527 100644 --- a/docs/NumberOrderDocument.md +++ b/docs/NumberOrderDocument.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**fileId** | **String** | The id of the file to associate as a number order document. | [optional] -**requirementsId** | **String** | Unique id for a requirement. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**requirementType** | [**RequirementTypeEnum**](#RequirementTypeEnum) | | [optional] [readonly] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order document was uploaded. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**fileId** | **String** | The id of the file to associate as a number order document. | [optional] | +|**requirementsId** | **String** | Unique id for a requirement. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**requirementType** | [**RequirementTypeEnum**](#RequirementTypeEnum) | | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order document was uploaded. | [optional] [readonly] | ## Enum: RequirementTypeEnum -Name | Value ----- | ----- -ADDRESS_PROOF | "address_proof" -IDENTIFICATION | "identification" -REG_FORM | "reg_form" +| Name | Value | +|---- | -----| +| ADDRESS_PROOF | "address_proof" | +| IDENTIFICATION | "identification" | +| REG_FORM | "reg_form" | diff --git a/docs/NumberOrderDocumentResponse.md b/docs/NumberOrderDocumentResponse.md index 8db575d4..f7fc4840 100644 --- a/docs/NumberOrderDocumentResponse.md +++ b/docs/NumberOrderDocumentResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberOrderDocument**](NumberOrderDocument.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberOrderDocument**](NumberOrderDocument.md) | | [optional] | diff --git a/docs/NumberOrderPhoneNumber.md b/docs/NumberOrderPhoneNumber.md index 1949ca99..38180ca3 100644 --- a/docs/NumberOrderPhoneNumber.md +++ b/docs/NumberOrderPhoneNumber.md @@ -5,41 +5,41 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumber** | **String** | | [optional] -**orderRequestId** | **UUID** | | [optional] -**subNumberOrderId** | **UUID** | | [optional] -**countryCode** | **String** | | [optional] -**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | | [optional] -**regulatoryRequirements** | [**List<PhoneNumberRegulatoryRequirement>**](PhoneNumberRegulatoryRequirement.md) | | [optional] -**requirementsMet** | **Boolean** | True if all requirements are met for a phone number, false otherwise. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | The status of the phone number in the order. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumber** | **String** | | [optional] | +|**orderRequestId** | **UUID** | | [optional] | +|**subNumberOrderId** | **UUID** | | [optional] | +|**countryCode** | **String** | | [optional] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | | [optional] | +|**regulatoryRequirements** | [**List<PhoneNumberRegulatoryRequirement>**](PhoneNumberRegulatoryRequirement.md) | | [optional] | +|**requirementsMet** | **Boolean** | True if all requirements are met for a phone number, false otherwise. | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the phone number in the order. | [optional] [readonly] | ## Enum: PhoneNumberTypeEnum -Name | Value ----- | ----- -LOCAL | "local" -TOLL_FREE | "toll_free" -MOBILE | "mobile" -NATIONAL | "national" -SHARED_COST | "shared_cost" -LANDLINE | "landline" +| Name | Value | +|---- | -----| +| LOCAL | "local" | +| TOLL_FREE | "toll_free" | +| MOBILE | "mobile" | +| NATIONAL | "national" | +| SHARED_COST | "shared_cost" | +| LANDLINE | "landline" | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/NumberOrderPhoneNumberResponse.md b/docs/NumberOrderPhoneNumberResponse.md index 8fb67de7..23adf289 100644 --- a/docs/NumberOrderPhoneNumberResponse.md +++ b/docs/NumberOrderPhoneNumberResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberOrderPhoneNumber**](NumberOrderPhoneNumber.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberOrderPhoneNumber**](NumberOrderPhoneNumber.md) | | [optional] | diff --git a/docs/NumberOrderResponse.md b/docs/NumberOrderResponse.md index 0ec184af..ad6fd406 100644 --- a/docs/NumberOrderResponse.md +++ b/docs/NumberOrderResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberOrderWithPhoneNumbers**](NumberOrderWithPhoneNumbers.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberOrderWithPhoneNumbers**](NumberOrderWithPhoneNumbers.md) | | [optional] | diff --git a/docs/NumberOrderWithPhoneNumbers.md b/docs/NumberOrderWithPhoneNumbers.md index e7769c67..652f6ec0 100644 --- a/docs/NumberOrderWithPhoneNumbers.md +++ b/docs/NumberOrderWithPhoneNumbers.md @@ -5,31 +5,31 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] -**subNumberOrderIds** | **List<String>** | | [optional] -**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] -**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**billingGroupId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] -**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] -**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] | +|**subNumberOrderIds** | **List<String>** | | [optional] | +|**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] | +|**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**billingGroupId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] | +|**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] | +|**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/NumberOrderWithPhoneNumbersAllOf.md b/docs/NumberOrderWithPhoneNumbersAllOf.md index 976d0661..a60524d5 100644 --- a/docs/NumberOrderWithPhoneNumbersAllOf.md +++ b/docs/NumberOrderWithPhoneNumbersAllOf.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] | diff --git a/docs/NumberOrdered.md b/docs/NumberOrdered.md index 2ae0270c..249a2b05 100644 --- a/docs/NumberOrdered.md +++ b/docs/NumberOrdered.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | **String** | The type of event being delivered. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**payload** | [**NumberOrder**](NumberOrder.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**eventType** | **String** | The type of event being delivered. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**payload** | [**NumberOrder**](NumberOrder.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | diff --git a/docs/NumberOrderedEvent.md b/docs/NumberOrderedEvent.md index b625c5c3..959e2fe2 100644 --- a/docs/NumberOrderedEvent.md +++ b/docs/NumberOrderedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberOrdered**](NumberOrdered.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberOrdered**](NumberOrdered.md) | | [optional] | diff --git a/docs/NumberOrdersApi.md b/docs/NumberOrdersApi.md index fea33f0a..6a641ba1 100644 --- a/docs/NumberOrdersApi.md +++ b/docs/NumberOrdersApi.md @@ -24,7 +24,7 @@ Method | HTTP request | Description ## createComment -> CommentResponse createComment(comment) +> CreateComment200Response createComment(comment) Create a comment @@ -51,7 +51,7 @@ public class Example { NumberOrdersApi apiInstance = new NumberOrdersApi(defaultClient); Comment comment = new Comment(); // Comment | try { - CommentResponse result = apiInstance.createComment(comment); + CreateComment200Response result = apiInstance.createComment(comment); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberOrdersApi#createComment"); @@ -73,7 +73,7 @@ Name | Type | Description | Notes ### Return type -[**CommentResponse**](CommentResponse.md) +[**CreateComment200Response**](CreateComment200Response.md) ### Authorization @@ -164,7 +164,7 @@ Name | Type | Description | Notes ## listComments -> ListCommentsResponse listComments(filterCommentRecordType, filterCommentRecordId) +> ListComments200Response listComments(filterCommentRecordType, filterCommentRecordId) Retrieve all comments @@ -192,7 +192,7 @@ public class Example { String filterCommentRecordType = "sub_number_order"; // String | Record type that the comment relates to i.e number_order, sub_number_order or number_order_phone_number String filterCommentRecordId = "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576"; // String | ID of the record the comments relate to try { - ListCommentsResponse result = apiInstance.listComments(filterCommentRecordType, filterCommentRecordId); + ListComments200Response result = apiInstance.listComments(filterCommentRecordType, filterCommentRecordId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberOrdersApi#listComments"); @@ -215,7 +215,7 @@ Name | Type | Description | Notes ### Return type -[**ListCommentsResponse**](ListCommentsResponse.md) +[**ListComments200Response**](ListComments200Response.md) ### Authorization @@ -329,7 +329,7 @@ Name | Type | Description | Notes ## listRegulartoryRequirements -> ListRegulatoryRequirements listRegulartoryRequirements(filterPhoneNumber) +> ListRegulartoryRequirements200Response listRegulartoryRequirements(filterPhoneNumber) Retrieve regulartory requirements @@ -356,7 +356,7 @@ public class Example { NumberOrdersApi apiInstance = new NumberOrdersApi(defaultClient); String filterPhoneNumber = "+41215470622,+41215470633"; // String | Record type phone number/ phone numbers try { - ListRegulatoryRequirements result = apiInstance.listRegulartoryRequirements(filterPhoneNumber); + ListRegulartoryRequirements200Response result = apiInstance.listRegulartoryRequirements(filterPhoneNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberOrdersApi#listRegulartoryRequirements"); @@ -378,7 +378,7 @@ Name | Type | Description | Notes ### Return type -[**ListRegulatoryRequirements**](ListRegulatoryRequirements.md) +[**ListRegulartoryRequirements200Response**](ListRegulartoryRequirements200Response.md) ### Authorization @@ -484,7 +484,7 @@ Name | Type | Description | Notes ## markCommentRead -> ReadCommentResponse markCommentRead(id) +> MarkCommentRead200Response markCommentRead(id) Mark a comment as read @@ -511,7 +511,7 @@ public class Example { NumberOrdersApi apiInstance = new NumberOrdersApi(defaultClient); String id = "id_example"; // String | The comment ID. try { - ReadCommentResponse result = apiInstance.markCommentRead(id); + MarkCommentRead200Response result = apiInstance.markCommentRead(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberOrdersApi#markCommentRead"); @@ -533,7 +533,7 @@ Name | Type | Description | Notes ### Return type -[**ReadCommentResponse**](ReadCommentResponse.md) +[**MarkCommentRead200Response**](MarkCommentRead200Response.md) ### Authorization @@ -553,7 +553,7 @@ Name | Type | Description | Notes ## retrieveComment -> CommentResponse retrieveComment(id) +> CreateComment200Response retrieveComment(id) Retrieve a comment @@ -580,7 +580,7 @@ public class Example { NumberOrdersApi apiInstance = new NumberOrdersApi(defaultClient); String id = "id_example"; // String | The comment ID. try { - CommentResponse result = apiInstance.retrieveComment(id); + CreateComment200Response result = apiInstance.retrieveComment(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberOrdersApi#retrieveComment"); @@ -602,7 +602,7 @@ Name | Type | Description | Notes ### Return type -[**CommentResponse**](CommentResponse.md) +[**CreateComment200Response**](CreateComment200Response.md) ### Authorization diff --git a/docs/NumberPoolSettings.md b/docs/NumberPoolSettings.md index d91c803b..ef17b65c 100644 --- a/docs/NumberPoolSettings.md +++ b/docs/NumberPoolSettings.md @@ -6,13 +6,13 @@ Number Pool allows you to send messages from a pool of numbers of different type ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tollFreeWeight** | **BigDecimal** | Defines the probability weight for a Toll Free number to be selected when sending a message. The higher the weight the higher the probability. The sum of the weights for all number types does not necessarily need to add to 100. Weight must be a non-negative number, and when equal to zero it will remove the number type from the pool. | -**longCodeWeight** | **BigDecimal** | Defines the probability weight for a Long Code number to be selected when sending a message. The higher the weight the higher the probability. The sum of the weights for all number types does not necessarily need to add to 100. Weight must be a non-negative number, and when equal to zero it will remove the number type from the pool. | -**skipUnhealthy** | **Boolean** | If set to true all unhealthy numbers will be automatically excluded from the pool. Health metrics per number are calculated on a regular basis, taking into account the deliverability rate and the amount of messages marked as spam by upstream carriers. Numbers with a deliverability rate below 25% or spam ratio over 75% will be considered unhealthy. | -**stickySender** | **Boolean** | If set to true, Number Pool will try to choose the same sending number for all messages to a particular recipient. If the sending number becomes unhealthy and `skip_unhealthy` is set to true, a new number will be chosen. | [optional] -**geomatch** | **Boolean** | If set to true, Number Pool will try to choose a sending number with the same area code as the destination number. If there are no such numbers available, a nunber with a different area code will be chosen. Currently only NANP numbers are supported. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**tollFreeWeight** | **BigDecimal** | Defines the probability weight for a Toll Free number to be selected when sending a message. The higher the weight the higher the probability. The sum of the weights for all number types does not necessarily need to add to 100. Weight must be a non-negative number, and when equal to zero it will remove the number type from the pool. | | +|**longCodeWeight** | **BigDecimal** | Defines the probability weight for a Long Code number to be selected when sending a message. The higher the weight the higher the probability. The sum of the weights for all number types does not necessarily need to add to 100. Weight must be a non-negative number, and when equal to zero it will remove the number type from the pool. | | +|**skipUnhealthy** | **Boolean** | If set to true all unhealthy numbers will be automatically excluded from the pool. Health metrics per number are calculated on a regular basis, taking into account the deliverability rate and the amount of messages marked as spam by upstream carriers. Numbers with a deliverability rate below 25% or spam ratio over 75% will be considered unhealthy. | | +|**stickySender** | **Boolean** | If set to true, Number Pool will try to choose the same sending number for all messages to a particular recipient. If the sending number becomes unhealthy and `skip_unhealthy` is set to true, a new number will be chosen. | [optional] | +|**geomatch** | **Boolean** | If set to true, Number Pool will try to choose a sending number with the same area code as the destination number. If there are no such numbers available, a nunber with a different area code will be chosen. Currently only NANP numbers are supported. | [optional] | diff --git a/docs/NumberPortoutApi.md b/docs/NumberPortoutApi.md index dacc32f9..16f22b28 100644 --- a/docs/NumberPortoutApi.md +++ b/docs/NumberPortoutApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description ## findPortoutComments -> ListPortoutComments findPortoutComments(id) +> FindPortoutComments200Response findPortoutComments(id) List all comments for a portout request @@ -46,7 +46,7 @@ public class Example { NumberPortoutApi apiInstance = new NumberPortoutApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Portout id try { - ListPortoutComments result = apiInstance.findPortoutComments(id); + FindPortoutComments200Response result = apiInstance.findPortoutComments(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberPortoutApi#findPortoutComments"); @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Return type -[**ListPortoutComments**](ListPortoutComments.md) +[**FindPortoutComments200Response**](FindPortoutComments200Response.md) ### Authorization @@ -90,7 +90,7 @@ Name | Type | Description | Notes ## findPortoutRequest -> PortoutResponse findPortoutRequest(id) +> FindPortoutRequest200Response findPortoutRequest(id) Get a portout request @@ -120,7 +120,7 @@ public class Example { NumberPortoutApi apiInstance = new NumberPortoutApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Portout id try { - PortoutResponse result = apiInstance.findPortoutRequest(id); + FindPortoutRequest200Response result = apiInstance.findPortoutRequest(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberPortoutApi#findPortoutRequest"); @@ -142,7 +142,7 @@ Name | Type | Description | Notes ### Return type -[**PortoutResponse**](PortoutResponse.md) +[**FindPortoutRequest200Response**](FindPortoutRequest200Response.md) ### Authorization @@ -164,7 +164,7 @@ Name | Type | Description | Notes ## getPortRequestSupportingDocuments -> PortOutListSupportingDocumentsResponse getPortRequestSupportingDocuments(id) +> GetPortRequestSupportingDocuments201Response getPortRequestSupportingDocuments(id) List supporting documents on a portout request @@ -194,7 +194,7 @@ public class Example { NumberPortoutApi apiInstance = new NumberPortoutApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Portout id try { - PortOutListSupportingDocumentsResponse result = apiInstance.getPortRequestSupportingDocuments(id); + GetPortRequestSupportingDocuments201Response result = apiInstance.getPortRequestSupportingDocuments(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberPortoutApi#getPortRequestSupportingDocuments"); @@ -216,7 +216,7 @@ Name | Type | Description | Notes ### Return type -[**PortOutListSupportingDocumentsResponse**](PortOutListSupportingDocumentsResponse.md) +[**GetPortRequestSupportingDocuments201Response**](GetPortRequestSupportingDocuments201Response.md) ### Authorization @@ -237,7 +237,7 @@ Name | Type | Description | Notes ## listPortoutRequest -> ListPortoutResponse listPortoutRequest(filterCarrierName, filterSpid, filterStatus, pageNumber, pageSize) +> ListPortoutRequest200Response listPortoutRequest(filterCarrierName, filterSpid, filterStatus, pageNumber, pageSize) List portout requests @@ -270,7 +270,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListPortoutResponse result = apiInstance.listPortoutRequest(filterCarrierName, filterSpid, filterStatus, pageNumber, pageSize); + ListPortoutRequest200Response result = apiInstance.listPortoutRequest(filterCarrierName, filterSpid, filterStatus, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberPortoutApi#listPortoutRequest"); @@ -296,7 +296,7 @@ Name | Type | Description | Notes ### Return type -[**ListPortoutResponse**](ListPortoutResponse.md) +[**ListPortoutRequest200Response**](ListPortoutRequest200Response.md) ### Authorization @@ -318,7 +318,7 @@ Name | Type | Description | Notes ## postPortRequestComment -> PortoutCommentResposne postPortRequestComment(id, createCommentPortoutRequest) +> PostPortRequestComment201Response postPortRequestComment(id, postPortRequestCommentRequest) Create a comment on a portout request @@ -347,9 +347,9 @@ public class Example { NumberPortoutApi apiInstance = new NumberPortoutApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Portout id - CreateCommentPortoutRequest createCommentPortoutRequest = new CreateCommentPortoutRequest(); // CreateCommentPortoutRequest | + PostPortRequestCommentRequest postPortRequestCommentRequest = new PostPortRequestCommentRequest(); // PostPortRequestCommentRequest | try { - PortoutCommentResposne result = apiInstance.postPortRequestComment(id, createCommentPortoutRequest); + PostPortRequestComment201Response result = apiInstance.postPortRequestComment(id, postPortRequestCommentRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberPortoutApi#postPortRequestComment"); @@ -368,11 +368,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **UUID**| Portout id | - **createCommentPortoutRequest** | [**CreateCommentPortoutRequest**](CreateCommentPortoutRequest.md)| | + **postPortRequestCommentRequest** | [**PostPortRequestCommentRequest**](PostPortRequestCommentRequest.md)| | ### Return type -[**PortoutCommentResposne**](PortoutCommentResposne.md) +[**PostPortRequestComment201Response**](PostPortRequestComment201Response.md) ### Authorization @@ -394,7 +394,7 @@ Name | Type | Description | Notes ## postPortRequestSupportingDocuments -> CreatePortOutSupportingDocumentsResponse postPortRequestSupportingDocuments(id, createPortingSupportingDocsRequest) +> GetPortRequestSupportingDocuments201Response postPortRequestSupportingDocuments(id, postPortRequestSupportingDocumentsRequest) Create a list of supporting documents on a portout request @@ -423,9 +423,9 @@ public class Example { NumberPortoutApi apiInstance = new NumberPortoutApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Portout id - CreatePortingSupportingDocsRequest createPortingSupportingDocsRequest = new CreatePortingSupportingDocsRequest(); // CreatePortingSupportingDocsRequest | + PostPortRequestSupportingDocumentsRequest postPortRequestSupportingDocumentsRequest = new PostPortRequestSupportingDocumentsRequest(); // PostPortRequestSupportingDocumentsRequest | try { - CreatePortOutSupportingDocumentsResponse result = apiInstance.postPortRequestSupportingDocuments(id, createPortingSupportingDocsRequest); + GetPortRequestSupportingDocuments201Response result = apiInstance.postPortRequestSupportingDocuments(id, postPortRequestSupportingDocumentsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberPortoutApi#postPortRequestSupportingDocuments"); @@ -444,11 +444,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **UUID**| Portout id | - **createPortingSupportingDocsRequest** | [**CreatePortingSupportingDocsRequest**](CreatePortingSupportingDocsRequest.md)| | + **postPortRequestSupportingDocumentsRequest** | [**PostPortRequestSupportingDocumentsRequest**](PostPortRequestSupportingDocumentsRequest.md)| | ### Return type -[**CreatePortOutSupportingDocumentsResponse**](CreatePortOutSupportingDocumentsResponse.md) +[**GetPortRequestSupportingDocuments201Response**](GetPortRequestSupportingDocuments201Response.md) ### Authorization @@ -470,7 +470,7 @@ Name | Type | Description | Notes ## updatePortoutRequest -> PortoutResponse updatePortoutRequest(id, status, updatePortoutStatusRequest) +> FindPortoutRequest200Response updatePortoutRequest(id, status, updatePortoutRequestRequest) Update Status @@ -500,9 +500,9 @@ public class Example { NumberPortoutApi apiInstance = new NumberPortoutApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Portout id String status = "authorized"; // String | Updated portout status - UpdatePortoutStatusRequest updatePortoutStatusRequest = new UpdatePortoutStatusRequest(); // UpdatePortoutStatusRequest | + UpdatePortoutRequestRequest updatePortoutRequestRequest = new UpdatePortoutRequestRequest(); // UpdatePortoutRequestRequest | try { - PortoutResponse result = apiInstance.updatePortoutRequest(id, status, updatePortoutStatusRequest); + FindPortoutRequest200Response result = apiInstance.updatePortoutRequest(id, status, updatePortoutRequestRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling NumberPortoutApi#updatePortoutRequest"); @@ -522,11 +522,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **UUID**| Portout id | **status** | **String**| Updated portout status | [enum: authorized, rejected-pending] - **updatePortoutStatusRequest** | [**UpdatePortoutStatusRequest**](UpdatePortoutStatusRequest.md)| | + **updatePortoutRequestRequest** | [**UpdatePortoutRequestRequest**](UpdatePortoutRequestRequest.md)| | ### Return type -[**PortoutResponse**](PortoutResponse.md) +[**FindPortoutRequest200Response**](FindPortoutRequest200Response.md) ### Authorization diff --git a/docs/NumberReservation.md b/docs/NumberReservation.md index 08a8bfd2..1282304d 100644 --- a/docs/NumberReservation.md +++ b/docs/NumberReservation.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumbers** | [**List<ReservedPhoneNumber>**](ReservedPhoneNumber.md) | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the entire reservation. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the numbers reservation was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number reservation was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumbers** | [**List<ReservedPhoneNumber>**](ReservedPhoneNumber.md) | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the entire reservation. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the numbers reservation was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number reservation was updated. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/NumberReservationResponse.md b/docs/NumberReservationResponse.md index a7d06f2d..3c73ab4e 100644 --- a/docs/NumberReservationResponse.md +++ b/docs/NumberReservationResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**NumberReservation**](NumberReservation.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**NumberReservation**](NumberReservation.md) | | [optional] | diff --git a/docs/OTAUpdateGET200Response.md b/docs/OTAUpdateGET200Response.md new file mode 100644 index 00000000..f97d4d01 --- /dev/null +++ b/docs/OTAUpdateGET200Response.md @@ -0,0 +1,13 @@ + + +# OTAUpdateGET200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**CompleteOTAUpdate**](CompleteOTAUpdate.md) | | [optional] | + + + diff --git a/docs/OTAUpdatesList200Response.md b/docs/OTAUpdatesList200Response.md new file mode 100644 index 00000000..a5a295eb --- /dev/null +++ b/docs/OTAUpdatesList200Response.md @@ -0,0 +1,14 @@ + + +# OTAUpdatesList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SimplifiedOTAUpdate>**](SimplifiedOTAUpdate.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/Organization.md b/docs/Organization.md index 4c461008..34467f45 100644 --- a/docs/Organization.md +++ b/docs/Organization.md @@ -6,11 +6,11 @@ Contact organization information ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**company** | **String** | Name of the contact's company | -**department** | **String** | Name of the contact's department | [optional] -**title** | **String** | Contact's business title | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**company** | **String** | Name of the contact's company | | +|**department** | **String** | Name of the contact's department | [optional] | +|**title** | **String** | Contact's business title | [optional] | diff --git a/docs/OtaUpdatesApi.md b/docs/OtaUpdatesApi.md index f1308f3a..361fbd23 100644 --- a/docs/OtaUpdatesApi.md +++ b/docs/OtaUpdatesApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## oTAUpdateGET -> OTAUpdateResponse oTAUpdateGET(id) +> OTAUpdateGET200Response oTAUpdateGET(id) Get OTA update @@ -41,7 +41,7 @@ public class Example { OtaUpdatesApi apiInstance = new OtaUpdatesApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - OTAUpdateResponse result = apiInstance.oTAUpdateGET(id); + OTAUpdateGET200Response result = apiInstance.oTAUpdateGET(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OtaUpdatesApi#oTAUpdateGET"); @@ -63,7 +63,7 @@ Name | Type | Description | Notes ### Return type -[**OTAUpdateResponse**](OTAUpdateResponse.md) +[**OTAUpdateGET200Response**](OTAUpdateGET200Response.md) ### Authorization @@ -83,7 +83,7 @@ Name | Type | Description | Notes ## oTAUpdatesList -> SearchOTAUpdateResponse oTAUpdatesList(pageNumber, pageSize, filterStatus, filterSimCardId, filterType) +> OTAUpdatesList200Response oTAUpdatesList(pageNumber, pageSize, filterStatus, filterSimCardId, filterType) List OTA updates @@ -114,7 +114,7 @@ public class Example { String filterSimCardId = "filterSimCardId_example"; // String | The SIM card identification UUID. String filterType = "sim_card_network_preferences"; // String | Filter by type. try { - SearchOTAUpdateResponse result = apiInstance.oTAUpdatesList(pageNumber, pageSize, filterStatus, filterSimCardId, filterType); + OTAUpdatesList200Response result = apiInstance.oTAUpdatesList(pageNumber, pageSize, filterStatus, filterSimCardId, filterType); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling OtaUpdatesApi#oTAUpdatesList"); @@ -140,7 +140,7 @@ Name | Type | Description | Notes ### Return type -[**SearchOTAUpdateResponse**](SearchOTAUpdateResponse.md) +[**OTAUpdatesList200Response**](OTAUpdatesList200Response.md) ### Authorization diff --git a/docs/OutboundCallRecording.md b/docs/OutboundCallRecording.md index 0aa341ac..30d40853 100644 --- a/docs/OutboundCallRecording.md +++ b/docs/OutboundCallRecording.md @@ -5,40 +5,40 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callRecordingType** | [**CallRecordingTypeEnum**](#CallRecordingTypeEnum) | Specifies which calls are recorded. | [optional] -**callRecordingCallerPhoneNumbers** | **List<String>** | When call_recording_type is 'by_caller_phone_number', only outbound calls using one of these numbers will be recorded. Numbers must be specified in E164 format. | [optional] -**callRecordingChannels** | [**CallRecordingChannelsEnum**](#CallRecordingChannelsEnum) | When using 'dual' channels, the final audio file will be a stereo recording with the first leg on channel A, and the rest on channel B. | [optional] -**callRecordingFormat** | [**CallRecordingFormatEnum**](#CallRecordingFormatEnum) | The audio file format for calls being recorded. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callRecordingType** | [**CallRecordingTypeEnum**](#CallRecordingTypeEnum) | Specifies which calls are recorded. | [optional] | +|**callRecordingCallerPhoneNumbers** | **List<String>** | When call_recording_type is 'by_caller_phone_number', only outbound calls using one of these numbers will be recorded. Numbers must be specified in E164 format. | [optional] | +|**callRecordingChannels** | [**CallRecordingChannelsEnum**](#CallRecordingChannelsEnum) | When using 'dual' channels, the final audio file will be a stereo recording with the first leg on channel A, and the rest on channel B. | [optional] | +|**callRecordingFormat** | [**CallRecordingFormatEnum**](#CallRecordingFormatEnum) | The audio file format for calls being recorded. | [optional] | ## Enum: CallRecordingTypeEnum -Name | Value ----- | ----- -ALL | "all" -NONE | "none" -BY_CALLER_PHONE_NUMBER | "by_caller_phone_number" +| Name | Value | +|---- | -----| +| ALL | "all" | +| NONE | "none" | +| BY_CALLER_PHONE_NUMBER | "by_caller_phone_number" | ## Enum: CallRecordingChannelsEnum -Name | Value ----- | ----- -SINGLE | "single" -DUAL | "dual" +| Name | Value | +|---- | -----| +| SINGLE | "single" | +| DUAL | "dual" | ## Enum: CallRecordingFormatEnum -Name | Value ----- | ----- -WAV | "wav" -MP3 | "mp3" +| Name | Value | +|---- | -----| +| WAV | "wav" | +| MP3 | "mp3" | diff --git a/docs/OutboundIp.md b/docs/OutboundIp.md index e6b47718..8b75b605 100644 --- a/docs/OutboundIp.md +++ b/docs/OutboundIp.md @@ -5,52 +5,52 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callParkingEnabled** | **Boolean** | Forces all SIP calls originated on this connection to be \"parked\" instead of \"bridged\" to the destination specified on the URI. Parked calls will return ringback to the caller and will await for a Call Control command to define which action will be taken next. | [optional] -**aniOverride** | **String** | Set a phone number as the ani_override value to override caller id number on outbound calls. | [optional] -**aniOverrideType** | [**AniOverrideTypeEnum**](#AniOverrideTypeEnum) | Specifies when we apply your ani_override setting. Only applies when ani_override is not blank. | [optional] -**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] -**instantRingbackEnabled** | **Boolean** | When set, ringback will not wait for indication before sending ringback tone to calling party. | [optional] -**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] -**localization** | **String** | A 2-character country code specifying the country whose national dialing rules should be used. For example, if set to `US` then any US number can be dialed without preprending +1 to the number. When left blank, Telnyx will try US and GB dialing rules, in that order, by default. | [optional] -**t38ReinviteSource** | [**T38ReinviteSourceEnum**](#T38ReinviteSourceEnum) | This setting only affects connections with Fax-type Outbound Voice Profiles. The setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By default, Telnyx will send the re-invite. If set to `customer`, the caller is expected to send the t.38 reinvite. | [optional] -**techPrefix** | **String** | Numerical chars only, exactly 4 characters. | [optional] -**ipAuthenticationMethod** | [**IpAuthenticationMethodEnum**](#IpAuthenticationMethodEnum) | | [optional] -**ipAuthenticationToken** | **String** | | [optional] -**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callParkingEnabled** | **Boolean** | Forces all SIP calls originated on this connection to be \"parked\" instead of \"bridged\" to the destination specified on the URI. Parked calls will return ringback to the caller and will await for a Call Control command to define which action will be taken next. | [optional] | +|**aniOverride** | **String** | Set a phone number as the ani_override value to override caller id number on outbound calls. | [optional] | +|**aniOverrideType** | [**AniOverrideTypeEnum**](#AniOverrideTypeEnum) | Specifies when we apply your ani_override setting. Only applies when ani_override is not blank. | [optional] | +|**channelLimit** | **Integer** | When set, this will limit the total number of outbound calls to phone numbers associated with this connection. | [optional] | +|**instantRingbackEnabled** | **Boolean** | When set, ringback will not wait for indication before sending ringback tone to calling party. | [optional] | +|**generateRingbackTone** | **Boolean** | Generate ringback tone through 183 session progress message with early media. | [optional] | +|**localization** | **String** | A 2-character country code specifying the country whose national dialing rules should be used. For example, if set to `US` then any US number can be dialed without preprending +1 to the number. When left blank, Telnyx will try US and GB dialing rules, in that order, by default. | [optional] | +|**t38ReinviteSource** | [**T38ReinviteSourceEnum**](#T38ReinviteSourceEnum) | This setting only affects connections with Fax-type Outbound Voice Profiles. The setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By default, Telnyx will send the re-invite. If set to `customer`, the caller is expected to send the t.38 reinvite. | [optional] | +|**techPrefix** | **String** | Numerical chars only, exactly 4 characters. | [optional] | +|**ipAuthenticationMethod** | [**IpAuthenticationMethodEnum**](#IpAuthenticationMethodEnum) | | [optional] | +|**ipAuthenticationToken** | **String** | | [optional] | +|**outboundVoiceProfileId** | **String** | Identifies the associated outbound voice profile. | [optional] | ## Enum: AniOverrideTypeEnum -Name | Value ----- | ----- -ALWAYS | "always" -NORMAL | "normal" -EMERGENCY | "emergency" +| Name | Value | +|---- | -----| +| ALWAYS | "always" | +| NORMAL | "normal" | +| EMERGENCY | "emergency" | ## Enum: T38ReinviteSourceEnum -Name | Value ----- | ----- -TELNYX | "telnyx" -CUSTOMER | "customer" -DISABLED | "disabled" -PASSTHRU | "passthru" -CALLER_PASSTHRU | "caller-passthru" -CALLEE_PASSTHRU | "callee-passthru" +| Name | Value | +|---- | -----| +| TELNYX | "telnyx" | +| CUSTOMER | "customer" | +| DISABLED | "disabled" | +| PASSTHRU | "passthru" | +| CALLER_PASSTHRU | "caller-passthru" | +| CALLEE_PASSTHRU | "callee-passthru" | ## Enum: IpAuthenticationMethodEnum -Name | Value ----- | ----- -TECH_PREFIXP_CHARGE_INFO | "tech-prefixp-charge-info" -TOKEN | "token" +| Name | Value | +|---- | -----| +| TECH_PREFIXP_CHARGE_INFO | "tech-prefixp-charge-info" | +| TOKEN | "token" | diff --git a/docs/OutboundMessage.md b/docs/OutboundMessage.md index 455578cf..6537cccc 100644 --- a/docs/OutboundMessage.md +++ b/docs/OutboundMessage.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**payload** | [**OutboundMessagePayload**](OutboundMessagePayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | +|**payload** | [**OutboundMessagePayload**](OutboundMessagePayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -SENT | "message.sent" -FINALIZED | "message.finalized" +| Name | Value | +|---- | -----| +| SENT | "message.sent" | +| FINALIZED | "message.finalized" | diff --git a/docs/OutboundMessageEvent.md b/docs/OutboundMessageEvent.md index 66aabca1..d1da31ef 100644 --- a/docs/OutboundMessageEvent.md +++ b/docs/OutboundMessageEvent.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OutboundMessage**](OutboundMessage.md) | | [optional] -**meta** | [**OutboundMessageEventMeta**](OutboundMessageEventMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**OutboundMessage**](OutboundMessage.md) | | [optional] | +|**meta** | [**OutboundMessageEventMeta**](OutboundMessageEventMeta.md) | | [optional] | diff --git a/docs/OutboundMessageEventMeta.md b/docs/OutboundMessageEventMeta.md index 8786e4a1..cb0d4d18 100644 --- a/docs/OutboundMessageEventMeta.md +++ b/docs/OutboundMessageEventMeta.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attempt** | **Integer** | Number of attempts to deliver the webhook event. | [optional] -**deliveredTo** | **String** | The webhook URL the event was delivered to. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**attempt** | **Integer** | Number of attempts to deliver the webhook event. | [optional] | +|**deliveredTo** | **String** | The webhook URL the event was delivered to. | [optional] | diff --git a/docs/OutboundMessagePayload.md b/docs/OutboundMessagePayload.md index 951550ea..de34e74c 100644 --- a/docs/OutboundMessagePayload.md +++ b/docs/OutboundMessagePayload.md @@ -5,55 +5,55 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the message. Inbound messages are sent to you whereas outbound messages are sent from you. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | The type of message. | [optional] -**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] -**organizationId** | **UUID** | The id of the organization the messaging profile belongs to. | [optional] -**from** | [**OutboundMessagePayloadFrom**](OutboundMessagePayloadFrom.md) | | [optional] -**to** | [**List<OutboundMessagePayloadTo>**](OutboundMessagePayloadTo.md) | | [optional] -**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] -**subject** | **String** | Subject of multimedia message | [optional] -**media** | [**List<OutboundMessagePayloadMedia>**](OutboundMessagePayloadMedia.md) | | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] -**encoding** | **String** | Encoding scheme used for the message body. | [optional] -**parts** | **Integer** | Number of parts into which the message's body must be split. | [optional] -**tags** | **List<String>** | Tags associated with the resource. | [optional] -**cost** | [**InboundMessagePayloadCost**](InboundMessagePayloadCost.md) | | [optional] -**receivedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message request was received. | [optional] -**sentAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message was sent. | [optional] -**completedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message was finalized. | [optional] -**validUntil** | **OffsetDateTime** | Message must be out of the queue by this time or else it will be discarded and marked as 'sending_failed'. Once the message moves out of the queue, this field will be nulled | [optional] -**errors** | [**List<Error>**](Error.md) | These errors may point at addressees when referring to unsuccessful/unconfirmed delivery statuses. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**direction** | [**DirectionEnum**](#DirectionEnum) | The direction of the message. Inbound messages are sent to you whereas outbound messages are sent from you. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | The type of message. | [optional] | +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] | +|**organizationId** | **UUID** | The id of the organization the messaging profile belongs to. | [optional] | +|**from** | [**OutboundMessagePayloadFrom**](OutboundMessagePayloadFrom.md) | | [optional] | +|**to** | [**List<OutboundMessagePayloadToInner>**](OutboundMessagePayloadToInner.md) | | [optional] | +|**text** | **String** | Message body (i.e., content) as a non-empty string. **Required for SMS** | [optional] | +|**subject** | **String** | Subject of multimedia message | [optional] | +|**media** | [**List<OutboundMessagePayloadMediaInner>**](OutboundMessagePayloadMediaInner.md) | | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this message will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this message will be sent if sending to the primary URL fails. | [optional] | +|**encoding** | **String** | Encoding scheme used for the message body. | [optional] | +|**parts** | **Integer** | Number of parts into which the message's body must be split. | [optional] | +|**tags** | **List<String>** | Tags associated with the resource. | [optional] | +|**cost** | [**InboundMessagePayloadCost**](InboundMessagePayloadCost.md) | | [optional] | +|**receivedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message request was received. | [optional] | +|**sentAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message was sent. | [optional] | +|**completedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message was finalized. | [optional] | +|**validUntil** | **OffsetDateTime** | Message must be out of the queue by this time or else it will be discarded and marked as 'sending_failed'. Once the message moves out of the queue, this field will be nulled | [optional] | +|**errors** | [**List<Error>**](Error.md) | These errors may point at addressees when referring to unsuccessful/unconfirmed delivery statuses. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -MESSAGE | "message" +| Name | Value | +|---- | -----| +| MESSAGE | "message" | ## Enum: DirectionEnum -Name | Value ----- | ----- -OUTBOUND | "outbound" +| Name | Value | +|---- | -----| +| OUTBOUND | "outbound" | ## Enum: TypeEnum -Name | Value ----- | ----- -SMS | "SMS" -MMS | "MMS" +| Name | Value | +|---- | -----| +| SMS | "SMS" | +| MMS | "MMS" | diff --git a/docs/OutboundMessagePayloadFrom.md b/docs/OutboundMessagePayloadFrom.md index a361f2de..46536f0b 100644 --- a/docs/OutboundMessagePayloadFrom.md +++ b/docs/OutboundMessagePayloadFrom.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). | [optional] -**carrier** | **String** | The carrier of the receiver. | [optional] -**lineType** | [**LineTypeEnum**](#LineTypeEnum) | The line-type of the receiver. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). | [optional] | +|**carrier** | **String** | The carrier of the receiver. | [optional] | +|**lineType** | [**LineTypeEnum**](#LineTypeEnum) | The line-type of the receiver. | [optional] | ## Enum: LineTypeEnum -Name | Value ----- | ----- -WIRELINE | "Wireline" -WIRELESS | "Wireless" -VOWIFI | "VoWiFi" -VOIP | "VoIP" -PRE_PAID_WIRELESS | "Pre-Paid Wireless" -EMPTY | "" +| Name | Value | +|---- | -----| +| WIRELINE | "Wireline" | +| WIRELESS | "Wireless" | +| VOWIFI | "VoWiFi" | +| VOIP | "VoIP" | +| PRE_PAID_WIRELESS | "Pre-Paid Wireless" | +| EMPTY | "" | diff --git a/docs/OutboundMessagePayloadMediaInner.md b/docs/OutboundMessagePayloadMediaInner.md new file mode 100644 index 00000000..b7cf8f4c --- /dev/null +++ b/docs/OutboundMessagePayloadMediaInner.md @@ -0,0 +1,16 @@ + + +# OutboundMessagePayloadMediaInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | The url of the media requested to be sent. | [optional] | +|**contentType** | **String** | The MIME type of the requested media. | [optional] | +|**sha256** | **String** | The SHA256 hash of the requested media. | [optional] | +|**size** | **Integer** | The size of the requested media. | [optional] | + + + diff --git a/docs/OutboundMessagePayloadToInner.md b/docs/OutboundMessagePayloadToInner.md new file mode 100644 index 00000000..97331438 --- /dev/null +++ b/docs/OutboundMessagePayloadToInner.md @@ -0,0 +1,44 @@ + + +# OutboundMessagePayloadToInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | Receiving address (+E.164 formatted phone number or short code). | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The delivery status of the message. | [optional] | +|**carrier** | **String** | The carrier of the receiver. | [optional] | +|**lineType** | [**LineTypeEnum**](#LineTypeEnum) | The line-type of the receiver. | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| QUEUED | "queued" | +| SENDING | "sending" | +| SENT | "sent" | +| EXPIRED | "expired" | +| SENDING_FAILED | "sending_failed" | +| DELIVERY_UNCONFIRMED | "delivery_unconfirmed" | +| DELIVERED | "delivered" | +| DELIVERY_FAILED | "delivery_failed" | + + + +## Enum: LineTypeEnum + +| Name | Value | +|---- | -----| +| WIRELINE | "Wireline" | +| WIRELESS | "Wireless" | +| VOWIFI | "VoWiFi" | +| VOIP | "VoIP" | +| PRE_PAID_WIRELESS | "Pre-Paid Wireless" | +| EMPTY | "" | + + + diff --git a/docs/OutboundVoiceProfile.md b/docs/OutboundVoiceProfile.md index 9367bbb3..582ac89e 100644 --- a/docs/OutboundVoiceProfile.md +++ b/docs/OutboundVoiceProfile.md @@ -5,26 +5,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**name** | **String** | A user-supplied name to help with organization. | -**connectionsCount** | **Integer** | Amount of connections associated with this outbound voice profile. | [optional] -**trafficType** | **TrafficType** | | [optional] -**servicePlan** | **ServicePlan** | | [optional] -**concurrentCallLimit** | **Integer** | Must be no more than your global concurrent call limit. Null means no limit. | [optional] -**enabled** | **Boolean** | Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections. | [optional] -**tags** | **List<String>** | | [optional] -**usagePaymentMethod** | **UsagePaymentMethod** | | [optional] -**whitelistedDestinations** | **List<String>** | The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2. | [optional] -**maxDestinationRate** | **BigDecimal** | Maximum rate (price per minute) for a Destination to be allowed when making outbound calls. | [optional] -**dailySpendLimit** | **String** | The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice profile in a day before disallowing new calls. | [optional] -**dailySpendLimitEnabled** | **Boolean** | Specifies whether to enforce the daily_spend_limit on this outbound voice profile. | [optional] -**callRecording** | [**OutboundCallRecording**](OutboundCallRecording.md) | | [optional] -**billingGroupId** | **UUID** | The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned). | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**name** | **String** | A user-supplied name to help with organization. | | +|**connectionsCount** | **Integer** | Amount of connections associated with this outbound voice profile. | [optional] | +|**trafficType** | **TrafficType** | | [optional] | +|**servicePlan** | **ServicePlan** | | [optional] | +|**concurrentCallLimit** | **Integer** | Must be no more than your global concurrent call limit. Null means no limit. | [optional] | +|**enabled** | **Boolean** | Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections. | [optional] | +|**tags** | **List<String>** | | [optional] | +|**usagePaymentMethod** | **UsagePaymentMethod** | | [optional] | +|**whitelistedDestinations** | **List<String>** | The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2. | [optional] | +|**maxDestinationRate** | **BigDecimal** | Maximum rate (price per minute) for a Destination to be allowed when making outbound calls. | [optional] | +|**dailySpendLimit** | **String** | The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice profile in a day before disallowing new calls. | [optional] | +|**dailySpendLimitEnabled** | **Boolean** | Specifies whether to enforce the daily_spend_limit on this outbound voice profile. | [optional] | +|**callRecording** | [**OutboundCallRecording**](OutboundCallRecording.md) | | [optional] | +|**billingGroupId** | **UUID** | The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned). | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] | diff --git a/docs/OutboundVoiceProfileResponse.md b/docs/OutboundVoiceProfileResponse.md index 3b1746bb..de90bb85 100644 --- a/docs/OutboundVoiceProfileResponse.md +++ b/docs/OutboundVoiceProfileResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**OutboundVoiceProfile**](OutboundVoiceProfile.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**OutboundVoiceProfile**](OutboundVoiceProfile.md) | | [optional] | diff --git a/docs/PWGAssignedResourcesSummary.md b/docs/PWGAssignedResourcesSummary.md new file mode 100644 index 00000000..98a42cff --- /dev/null +++ b/docs/PWGAssignedResourcesSummary.md @@ -0,0 +1,15 @@ + + +# PWGAssignedResourcesSummary + +The summary of the resource that have been assigned to the Private Wireless Gateway + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | The type of the resource assigned to the Private Wireless Gateway | [optional] [readonly] | +|**count** | **Integer** | The current count of a resource type assigned to the Private Wireless Gateway | [optional] [readonly] | + + + diff --git a/docs/PaginationMeta.md b/docs/PaginationMeta.md index 11f3cbac..1d338f84 100644 --- a/docs/PaginationMeta.md +++ b/docs/PaginationMeta.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalPages** | **Integer** | | [optional] -**totalResults** | **Integer** | | [optional] -**pageNumber** | **Integer** | | [optional] -**pageSize** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalPages** | **Integer** | | [optional] | +|**totalResults** | **Integer** | | [optional] | +|**pageNumber** | **Integer** | | [optional] | +|**pageSize** | **Integer** | | [optional] | diff --git a/docs/PaginationMetaSimple.md b/docs/PaginationMetaSimple.md index b4d66402..7870c32e 100644 --- a/docs/PaginationMetaSimple.md +++ b/docs/PaginationMetaSimple.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pageNumber** | **Integer** | | [optional] -**pageSize** | **Integer** | | [optional] -**totalPages** | **Integer** | | [optional] -**totalResults** | **Integer** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pageNumber** | **Integer** | | [optional] | +|**pageSize** | **Integer** | | [optional] | +|**totalPages** | **Integer** | | [optional] | +|**totalResults** | **Integer** | | [optional] | diff --git a/docs/Participant.md b/docs/Participant.md index 21a6ed67..4b2e044e 100644 --- a/docs/Participant.md +++ b/docs/Participant.md @@ -5,39 +5,39 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**id** | **String** | Uniquely identifies the participant | -**callLegId** | **String** | Uniquely identifies the call leg associated with the participant | -**callControlId** | **String** | Call Control ID associated with the partiipant of the conference | -**conference** | [**ParticipantConference**](ParticipantConference.md) | | -**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the participant can whisper to.. | -**createdAt** | **String** | ISO 8601 formatted date of when the participant was created | -**updatedAt** | **String** | ISO 8601 formatted date of when the participant was last updated | -**endConferenceOnExit** | **Boolean** | Whether the conference will end and all remaining participants be hung up after the participant leaves the conference. | -**softEndConferenceOnExit** | **Boolean** | Whether the conference will end after the participant leaves the conference. | -**status** | [**StatusEnum**](#StatusEnum) | The status of the participant with respect to the lifecycle within the conference | -**muted** | **Boolean** | Whether the participant is muted. | -**onHold** | **Boolean** | Whether the participant is put on_hold. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**id** | **String** | Uniquely identifies the participant | | +|**callLegId** | **String** | Uniquely identifies the call leg associated with the participant | | +|**callControlId** | **String** | Call Control ID associated with the partiipant of the conference | | +|**conference** | [**ParticipantConference**](ParticipantConference.md) | | | +|**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the participant can whisper to.. | | +|**createdAt** | **String** | ISO 8601 formatted date of when the participant was created | | +|**updatedAt** | **String** | ISO 8601 formatted date of when the participant was last updated | | +|**endConferenceOnExit** | **Boolean** | Whether the conference will end and all remaining participants be hung up after the participant leaves the conference. | | +|**softEndConferenceOnExit** | **Boolean** | Whether the conference will end after the participant leaves the conference. | | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the participant with respect to the lifecycle within the conference | | +|**muted** | **Boolean** | Whether the participant is muted. | | +|**onHold** | **Boolean** | Whether the participant is put on_hold. | | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -PARTICIPANT | "participant" +| Name | Value | +|---- | -----| +| PARTICIPANT | "participant" | ## Enum: StatusEnum -Name | Value ----- | ----- -JOINING | "joining" -JOINED | "joined" -LEFT | "left" +| Name | Value | +|---- | -----| +| JOINING | "joining" | +| JOINED | "joined" | +| LEFT | "left" | diff --git a/docs/ParticipantConference.md b/docs/ParticipantConference.md index 3ac817e0..845769c8 100644 --- a/docs/ParticipantConference.md +++ b/docs/ParticipantConference.md @@ -6,10 +6,10 @@ Info about the conference that the participant is in ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Uniquely identifies the conference | [optional] -**name** | **String** | Name of the conference | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Uniquely identifies the conference | [optional] | +|**name** | **String** | Name of the conference | [optional] | diff --git a/docs/ParticipantJoined.md b/docs/ParticipantJoined.md index 67877f91..ca237204 100644 --- a/docs/ParticipantJoined.md +++ b/docs/ParticipantJoined.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Uniquely identify the event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**ParticipantJoinedPayload**](ParticipantJoinedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Uniquely identify the event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**ParticipantJoinedPayload**](ParticipantJoinedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -VIDEO_ROOM_PARTICIPANT_JOINED | "video.room.participant.joined" +| Name | Value | +|---- | -----| +| VIDEO_ROOM_PARTICIPANT_JOINED | "video.room.participant.joined" | diff --git a/docs/ParticipantJoinedEvent.md b/docs/ParticipantJoinedEvent.md index 6f0bf491..07d439c0 100644 --- a/docs/ParticipantJoinedEvent.md +++ b/docs/ParticipantJoinedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ParticipantJoined**](ParticipantJoined.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ParticipantJoined**](ParticipantJoined.md) | | [optional] | diff --git a/docs/ParticipantJoinedPayload.md b/docs/ParticipantJoinedPayload.md index 96afa3e1..79ef1f10 100644 --- a/docs/ParticipantJoinedPayload.md +++ b/docs/ParticipantJoinedPayload.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **UUID** | Session ID that identifies the session where the participant joined. | [optional] -**roomId** | **UUID** | Room ID that identifies the room where the participant joined. | [optional] -**context** | **String** | Context provided to the given participant through the client SDK | [optional] -**participantId** | **UUID** | Participant ID that identifies the participant that joined. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sessionId** | **UUID** | Session ID that identifies the session where the participant joined. | [optional] | +|**roomId** | **UUID** | Room ID that identifies the room where the participant joined. | [optional] | +|**context** | **String** | Context provided to the given participant through the client SDK | [optional] | +|**participantId** | **UUID** | Participant ID that identifies the participant that joined. | [optional] | diff --git a/docs/ParticipantLeft.md b/docs/ParticipantLeft.md index d4dd0551..41cdb86c 100644 --- a/docs/ParticipantLeft.md +++ b/docs/ParticipantLeft.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Uniquely identify the event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**ParticipantLeftPayload**](ParticipantLeftPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Uniquely identify the event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**ParticipantLeftPayload**](ParticipantLeftPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -VIDEO_ROOM_PARTICIPANT_LEFT | "video.room.participant.left" +| Name | Value | +|---- | -----| +| VIDEO_ROOM_PARTICIPANT_LEFT | "video.room.participant.left" | diff --git a/docs/ParticipantLeftEvent.md b/docs/ParticipantLeftEvent.md index e9086e0a..fd938cd4 100644 --- a/docs/ParticipantLeftEvent.md +++ b/docs/ParticipantLeftEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ParticipantLeft**](ParticipantLeft.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ParticipantLeft**](ParticipantLeft.md) | | [optional] | diff --git a/docs/ParticipantLeftPayload.md b/docs/ParticipantLeftPayload.md index b82d6f08..b7a2b2d8 100644 --- a/docs/ParticipantLeftPayload.md +++ b/docs/ParticipantLeftPayload.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **UUID** | Session ID that identifies the session where the participant left. | [optional] -**roomId** | **UUID** | Room ID that identifies the room where the participant left. | [optional] -**context** | **String** | Context provided to the given participant through the client SDK | [optional] -**participantId** | **UUID** | Participant ID that identifies the participant that left. | [optional] -**durationSecs** | **Integer** | The duration in seconds of the participant in the session | [optional] -**leftReason** | **String** | The reason why the participant left | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sessionId** | **UUID** | Session ID that identifies the session where the participant left. | [optional] | +|**roomId** | **UUID** | Room ID that identifies the room where the participant left. | [optional] | +|**context** | **String** | Context provided to the given participant through the client SDK | [optional] | +|**participantId** | **UUID** | Participant ID that identifies the participant that left. | [optional] | +|**durationSecs** | **Integer** | The duration in seconds of the participant in the session | [optional] | +|**leftReason** | **String** | The reason why the participant left | [optional] | diff --git a/docs/PatchGroupRequest.md b/docs/PatchGroupRequest.md new file mode 100644 index 00000000..82e00ed0 --- /dev/null +++ b/docs/PatchGroupRequest.md @@ -0,0 +1,13 @@ + + +# PatchGroupRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channels** | **Long** | | [optional] | + + + diff --git a/docs/PatchRoomRequest.md b/docs/PatchRoomRequest.md index 6fe6294d..d77e877c 100644 --- a/docs/PatchRoomRequest.md +++ b/docs/PatchRoomRequest.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**uniqueName** | **String** | The unique (within the Telnyx account scope) name of the room. | [optional] -**maxParticipants** | **Integer** | The maximum amount of participants allowed in a room. If new participants try to join after that limit is reached, their request will be rejected. | [optional] -**enableRecording** | **Boolean** | Enable or disable recording for that room. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this room will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**uniqueName** | **String** | The unique (within the Telnyx account scope) name of the room. | [optional] | +|**maxParticipants** | **Integer** | The maximum amount of participants allowed in a room. If new participants try to join after that limit is reached, their request will be rejected. | [optional] | +|**enableRecording** | **Boolean** | Enable or disable recording for that room. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this room will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | diff --git a/docs/PauseRecordingRequest.md b/docs/PauseRecordingRequest.md index 1871016a..c15e0fe7 100644 --- a/docs/PauseRecordingRequest.md +++ b/docs/PauseRecordingRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/Phone.md b/docs/Phone.md index 41fce896..f6ff2b75 100644 --- a/docs/Phone.md +++ b/docs/Phone.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phone** | **String** | | [optional] -**type** | **String** | Standard Values: CELL, MAIN, IPHONE, HOME, WORK | [optional] -**id** | **String** | WhatsApp ID | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phone** | **String** | | [optional] | +|**type** | **String** | Standard Values: CELL, MAIN, IPHONE, HOME, WORK | [optional] | +|**id** | **String** | WhatsApp ID | [optional] | diff --git a/docs/PhoneNumber.md b/docs/PhoneNumber.md index bf372edc..b23fe9ca 100644 --- a/docs/PhoneNumber.md +++ b/docs/PhoneNumber.md @@ -5,25 +5,53 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumber** | **String** | | [optional] -**regulatoryGroupId** | **String** | | [optional] [readonly] -**regulatoryRequirements** | [**List<PhoneNumberRegulatoryRequirement>**](PhoneNumberRegulatoryRequirement.md) | | [optional] -**requirementsMet** | **Boolean** | True if all requirements are met for a phone number, false otherwise. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | The status of the phone number in the order. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumber** | **String** | | [optional] | +|**regulatoryGroupId** | **String** | | [optional] [readonly] | +|**regulatoryRequirements** | [**List<PhoneNumberRegulatoryRequirement>**](PhoneNumberRegulatoryRequirement.md) | | [optional] | +|**requirementsMet** | **Boolean** | True if all requirements are met for a phone number, false otherwise. | [optional] [readonly] | +|**requirementsStatus** | [**RequirementsStatusEnum**](#RequirementsStatusEnum) | Status of document requirements (if applicable) | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the phone number in the order. | [optional] [readonly] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | Phone number type | [optional] [readonly] | + + + +## Enum: RequirementsStatusEnum + +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| APPROVED | "approved" | +| CANCELLED | "cancelled" | +| DELETED | "deleted" | +| REQUIREMENT_INFO_EXCEPTION | "requirement-info-exception" | +| REQUIREMENT_INFO_PENDING | "requirement-info-pending" | +| REQUIREMENT_INFO_UNDER_REVIEW | "requirement-info-under-review" | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | + + + +## Enum: PhoneNumberTypeEnum + +| Name | Value | +|---- | -----| +| LOCAL | "local" | +| MOBILE | "mobile" | +| NATIONAL | "national" | +| SHARED_COST | "shared_cost" | +| TOLL_FREE | "toll_free" | diff --git a/docs/PhoneNumberBlocksJob.md b/docs/PhoneNumberBlocksJob.md index d56c0d7c..d2b9a865 100644 --- a/docs/PhoneNumberBlocksJob.md +++ b/docs/PhoneNumberBlocksJob.md @@ -5,36 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | Indicates the completion status of the background operation. | [optional] [readonly] -**type** | [**TypeEnum**](#TypeEnum) | Identifies the type of the background job. | [optional] [readonly] -**etc** | **OffsetDateTime** | ISO 8601 formatted date indicating when the estimated time of completion of the background job. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] -**successfulOperations** | [**List<PhoneNumberBlocksJobSuccessfulOperation>**](PhoneNumberBlocksJobSuccessfulOperation.md) | | [optional] [readonly] -**failedOperations** | [**List<PhoneNumberBlocksJobFailedOperation>**](PhoneNumberBlocksJobFailedOperation.md) | | [optional] [readonly] - - - -## Enum: StatusEnum - -Name | Value ----- | ----- -PENDING | "pending" -IN_PROGRESS | "in_progress" -COMPLETED | "completed" -FAILED | "failed" - - - -## Enum: TypeEnum - -Name | Value ----- | ----- -DELETE_PHONE_NUMBER_BLOCK | "delete_phone_number_block" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumberBlocksJob**](PhoneNumberBlocksJob.md) | | [optional] | diff --git a/docs/PhoneNumberBlocksJobDeletePhoneNumberBlock.md b/docs/PhoneNumberBlocksJobDeletePhoneNumberBlock.md index 3673a0b4..c0002947 100644 --- a/docs/PhoneNumberBlocksJobDeletePhoneNumberBlock.md +++ b/docs/PhoneNumberBlocksJobDeletePhoneNumberBlock.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumberBlocksJob**](PhoneNumberBlocksJob.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumberBlocksJob**](PhoneNumberBlocksJob.md) | | [optional] | diff --git a/docs/PhoneNumberBlocksJobDeletePhoneNumberBlockRequest.md b/docs/PhoneNumberBlocksJobDeletePhoneNumberBlockRequest.md index 0a4ca786..fe0c4e11 100644 --- a/docs/PhoneNumberBlocksJobDeletePhoneNumberBlockRequest.md +++ b/docs/PhoneNumberBlocksJobDeletePhoneNumberBlockRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumberBlockId** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumberBlockId** | **String** | | | diff --git a/docs/PhoneNumberBlocksJobFailedOperation.md b/docs/PhoneNumberBlocksJobFailedOperation.md index 72240d77..59edb772 100644 --- a/docs/PhoneNumberBlocksJobFailedOperation.md +++ b/docs/PhoneNumberBlocksJobFailedOperation.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number in e164 format. | [optional] -**id** | **String** | The phone number's ID | [optional] -**errors** | [**List<Error>**](Error.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number in e164 format. | [optional] | +|**id** | **String** | The phone number's ID | [optional] | +|**errors** | [**List<Error>**](Error.md) | | [optional] | diff --git a/docs/PhoneNumberBlocksJobSuccessfulOperation.md b/docs/PhoneNumberBlocksJobSuccessfulOperation.md index cd7460ba..8a727ed8 100644 --- a/docs/PhoneNumberBlocksJobSuccessfulOperation.md +++ b/docs/PhoneNumberBlocksJobSuccessfulOperation.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number in e164 format. | [optional] -**id** | **String** | The phone number's ID | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number in e164 format. | [optional] | +|**id** | **String** | The phone number's ID | [optional] | diff --git a/docs/PhoneNumberDeletedDetailed.md b/docs/PhoneNumberDeletedDetailed.md index a1f9e286..c62f304b 100644 --- a/docs/PhoneNumberDeletedDetailed.md +++ b/docs/PhoneNumberDeletedDetailed.md @@ -5,70 +5,70 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Uniquely identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**phoneNumber** | **String** | The +E.164-formatted phone number associated with this record. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | The phone number's current status. | [optional] [readonly] -**tags** | **List<String>** | A list of user-assigned tags to help manage the phone number. | [optional] -**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] -**connectionName** | **String** | The user-assigned name of the connection to be associated with this phone number. | [optional] [readonly] -**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**messagingProfileName** | **String** | The name of the messaging profile associated with the phone number. | [optional] -**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] -**emergencyEnabled** | **Boolean** | Indicates whether emergency services are enabled for this number. | [optional] [readonly] -**emergencyAddressId** | **String** | Identifies the emergency address associated with the phone number. | [optional] [readonly] -**callForwardingEnabled** | **Boolean** | Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints. | [optional] [readonly] -**cnamListingEnabled** | **Boolean** | Indicates whether a CNAM listing is enabled for this number. | [optional] [readonly] -**callerIdNameEnabled** | **Boolean** | Indicates whether caller ID is enabled for this number. | [optional] [readonly] -**callRecordingEnabled** | **Boolean** | Indicates whether call recording is enabled for this number. | [optional] [readonly] -**t38FaxGatewayEnabled** | **Boolean** | Indicates whether T38 Fax Gateway for inbound calls to this number. | [optional] [readonly] -**purchasedAt** | **String** | ISO 8601 formatted date indicating the time the request was made to purchase the number. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date indicating when the time it took to activate after the purchase. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] -**numberLevelRouting** | [**NumberLevelRoutingEnum**](#NumberLevelRoutingEnum) | Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. | [optional] -**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | The phone number's type. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Uniquely identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**phoneNumber** | **String** | The +E.164-formatted phone number associated with this record. | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | The phone number's current status. | [optional] [readonly] | +|**tags** | **List<String>** | A list of user-assigned tags to help manage the phone number. | [optional] | +|**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] | +|**connectionName** | **String** | The user-assigned name of the connection to be associated with this phone number. | [optional] [readonly] | +|**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**messagingProfileName** | **String** | The name of the messaging profile associated with the phone number. | [optional] | +|**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] | +|**emergencyEnabled** | **Boolean** | Indicates whether emergency services are enabled for this number. | [optional] [readonly] | +|**emergencyAddressId** | **String** | Identifies the emergency address associated with the phone number. | [optional] [readonly] | +|**callForwardingEnabled** | **Boolean** | Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints. | [optional] [readonly] | +|**cnamListingEnabled** | **Boolean** | Indicates whether a CNAM listing is enabled for this number. | [optional] [readonly] | +|**callerIdNameEnabled** | **Boolean** | Indicates whether caller ID is enabled for this number. | [optional] [readonly] | +|**callRecordingEnabled** | **Boolean** | Indicates whether call recording is enabled for this number. | [optional] [readonly] | +|**t38FaxGatewayEnabled** | **Boolean** | Indicates whether T38 Fax Gateway for inbound calls to this number. | [optional] [readonly] | +|**purchasedAt** | **String** | ISO 8601 formatted date indicating the time the request was made to purchase the number. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the time it took to activate after the purchase. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | +|**numberLevelRouting** | [**NumberLevelRoutingEnum**](#NumberLevelRoutingEnum) | Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level. | [optional] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | The phone number's type. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PURCHASE_PENDING | "purchase-pending" -PURCHASE_FAILED | "purchase-failed" -PORT_PENDING | "port-pending" -PORT_FAILED | "port-failed" -ACTIVE | "active" -DELETED | "deleted" -EMERGENCY_ONLY | "emergency-only" -PORTED_OUT | "ported-out" -PORT_OUT_PENDING | "port-out-pending" +| Name | Value | +|---- | -----| +| PURCHASE_PENDING | "purchase-pending" | +| PURCHASE_FAILED | "purchase-failed" | +| PORT_PENDING | "port-pending" | +| PORT_FAILED | "port-failed" | +| ACTIVE | "active" | +| DELETED | "deleted" | +| EMERGENCY_ONLY | "emergency-only" | +| PORTED_OUT | "ported-out" | +| PORT_OUT_PENDING | "port-out-pending" | ## Enum: NumberLevelRoutingEnum -Name | Value ----- | ----- -ENABLED | "enabled" -DISABLED | "disabled" +| Name | Value | +|---- | -----| +| ENABLED | "enabled" | +| DISABLED | "disabled" | ## Enum: PhoneNumberTypeEnum -Name | Value ----- | ----- -LOCAL | "local" -TOLL_FREE | "toll_free" -MOBILE | "mobile" -NATIONAL | "national" -SHARED_COST | "shared_cost" -LANDLINE | "landline" +| Name | Value | +|---- | -----| +| LOCAL | "local" | +| TOLL_FREE | "toll_free" | +| MOBILE | "mobile" | +| NATIONAL | "national" | +| SHARED_COST | "shared_cost" | +| LANDLINE | "landline" | diff --git a/docs/PhoneNumberDetailed.md b/docs/PhoneNumberDetailed.md index 973adf37..92bd99c8 100644 --- a/docs/PhoneNumberDetailed.md +++ b/docs/PhoneNumberDetailed.md @@ -5,69 +5,69 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Uniquely identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**phoneNumber** | **String** | The +E.164-formatted phone number associated with this record. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | The phone number's current status. | [optional] [readonly] -**tags** | **List<String>** | A list of user-assigned tags to help manage the phone number. | [optional] -**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] -**connectionName** | **String** | The user-assigned name of the connection to be associated with this phone number. | [optional] [readonly] -**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] -**messagingProfileName** | **String** | The name of the messaging profile associated with the phone number. | [optional] -**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] -**emergencyEnabled** | **Boolean** | Indicates whether emergency services are enabled for this number. | [optional] [readonly] -**emergencyAddressId** | **String** | Identifies the emergency address associated with the phone number. | [optional] [readonly] -**callForwardingEnabled** | **Boolean** | Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints. | [optional] [readonly] -**cnamListingEnabled** | **Boolean** | Indicates whether a CNAM listing is enabled for this number. | [optional] [readonly] -**callerIdNameEnabled** | **Boolean** | Indicates whether caller ID is enabled for this number. | [optional] [readonly] -**callRecordingEnabled** | **Boolean** | Indicates whether call recording is enabled for this number. | [optional] [readonly] -**t38FaxGatewayEnabled** | **Boolean** | Indicates whether T38 Fax Gateway for inbound calls to this number. | [optional] [readonly] -**purchasedAt** | **String** | ISO 8601 formatted date indicating when the resource was purchased. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**numberLevelRouting** | [**NumberLevelRoutingEnum**](#NumberLevelRoutingEnum) | Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. | [optional] -**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | The phone number's type. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Uniquely identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**phoneNumber** | **String** | The +E.164-formatted phone number associated with this record. | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | The phone number's current status. | [optional] [readonly] | +|**tags** | **List<String>** | A list of user-assigned tags to help manage the phone number. | [optional] | +|**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, Telnyx will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] | +|**connectionName** | **String** | The user-assigned name of the connection to be associated with this phone number. | [optional] [readonly] | +|**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**messagingProfileId** | **String** | Identifies the messaging profile associated with the phone number. | [optional] | +|**messagingProfileName** | **String** | The name of the messaging profile associated with the phone number. | [optional] | +|**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] | +|**emergencyEnabled** | **Boolean** | Indicates whether emergency services are enabled for this number. | [optional] [readonly] | +|**emergencyAddressId** | **String** | Identifies the emergency address associated with the phone number. | [optional] [readonly] | +|**callForwardingEnabled** | **Boolean** | Indicates if call forwarding will be enabled for this number if forwards_to and forwarding_type are filled in. Defaults to true for backwards compatibility with APIV1 use of numbers endpoints. | [optional] [readonly] | +|**cnamListingEnabled** | **Boolean** | Indicates whether a CNAM listing is enabled for this number. | [optional] [readonly] | +|**callerIdNameEnabled** | **Boolean** | Indicates whether caller ID is enabled for this number. | [optional] [readonly] | +|**callRecordingEnabled** | **Boolean** | Indicates whether call recording is enabled for this number. | [optional] [readonly] | +|**t38FaxGatewayEnabled** | **Boolean** | Indicates whether T38 Fax Gateway for inbound calls to this number. | [optional] [readonly] | +|**purchasedAt** | **String** | ISO 8601 formatted date indicating when the resource was purchased. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**numberLevelRouting** | [**NumberLevelRoutingEnum**](#NumberLevelRoutingEnum) | Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level. | [optional] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | The phone number's type. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PURCHASE_PENDING | "purchase-pending" -PURCHASE_FAILED | "purchase-failed" -PORT_PENDING | "port-pending" -PORT_FAILED | "port-failed" -ACTIVE | "active" -DELETED | "deleted" -EMERGENCY_ONLY | "emergency-only" -PORTED_OUT | "ported-out" -PORT_OUT_PENDING | "port-out-pending" +| Name | Value | +|---- | -----| +| PURCHASE_PENDING | "purchase-pending" | +| PURCHASE_FAILED | "purchase-failed" | +| PORT_PENDING | "port-pending" | +| PORT_FAILED | "port-failed" | +| ACTIVE | "active" | +| DELETED | "deleted" | +| EMERGENCY_ONLY | "emergency-only" | +| PORTED_OUT | "ported-out" | +| PORT_OUT_PENDING | "port-out-pending" | ## Enum: NumberLevelRoutingEnum -Name | Value ----- | ----- -ENABLED | "enabled" -DISABLED | "disabled" +| Name | Value | +|---- | -----| +| ENABLED | "enabled" | +| DISABLED | "disabled" | ## Enum: PhoneNumberTypeEnum -Name | Value ----- | ----- -LOCAL | "local" -TOLL_FREE | "toll_free" -MOBILE | "mobile" -NATIONAL | "national" -SHARED_COST | "shared_cost" -LANDLINE | "landline" +| Name | Value | +|---- | -----| +| LOCAL | "local" | +| TOLL_FREE | "toll_free" | +| MOBILE | "mobile" | +| NATIONAL | "national" | +| SHARED_COST | "shared_cost" | +| LANDLINE | "landline" | diff --git a/docs/PhoneNumberEnableEmergency.md b/docs/PhoneNumberEnableEmergency.md index a846c11d..e4a50cce 100644 --- a/docs/PhoneNumberEnableEmergency.md +++ b/docs/PhoneNumberEnableEmergency.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumberWithVoiceSettings**](PhoneNumberWithVoiceSettings.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumberWithVoiceSettings**](PhoneNumberWithVoiceSettings.md) | | [optional] | diff --git a/docs/PhoneNumberEnableEmergencyRequest.md b/docs/PhoneNumberEnableEmergencyRequest.md index 3970ae62..5ce0c7a9 100644 --- a/docs/PhoneNumberEnableEmergencyRequest.md +++ b/docs/PhoneNumberEnableEmergencyRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**emergencyEnabled** | **Boolean** | Indicates whether to enable emergency services on this number. | -**emergencyAddressId** | **String** | Identifies the address to be used with emergency services. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**emergencyEnabled** | **Boolean** | Indicates whether to enable emergency services on this number. | | +|**emergencyAddressId** | **String** | Identifies the address to be used with emergency services. | | diff --git a/docs/PhoneNumberPortingApi.md b/docs/PhoneNumberPortingApi.md index 3a3816ba..1721ba05 100644 --- a/docs/PhoneNumberPortingApi.md +++ b/docs/PhoneNumberPortingApi.md @@ -10,7 +10,7 @@ Method | HTTP request | Description ## postPortabilityCheck -> PortabilityCheckResponse postPortabilityCheck(createPortabilityCheckRequest) +> PostPortabilityCheck201Response postPortabilityCheck(postPortabilityCheckRequest) Run a portability check @@ -37,9 +37,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); PhoneNumberPortingApi apiInstance = new PhoneNumberPortingApi(defaultClient); - CreatePortabilityCheckRequest createPortabilityCheckRequest = new CreatePortabilityCheckRequest(); // CreatePortabilityCheckRequest | + PostPortabilityCheckRequest postPortabilityCheckRequest = new PostPortabilityCheckRequest(); // PostPortabilityCheckRequest | try { - PortabilityCheckResponse result = apiInstance.postPortabilityCheck(createPortabilityCheckRequest); + PostPortabilityCheck201Response result = apiInstance.postPortabilityCheck(postPortabilityCheckRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PhoneNumberPortingApi#postPortabilityCheck"); @@ -57,11 +57,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createPortabilityCheckRequest** | [**CreatePortabilityCheckRequest**](CreatePortabilityCheckRequest.md)| | + **postPortabilityCheckRequest** | [**PostPortabilityCheckRequest**](PostPortabilityCheckRequest.md)| | ### Return type -[**PortabilityCheckResponse**](PortabilityCheckResponse.md) +[**PostPortabilityCheck201Response**](PostPortabilityCheck201Response.md) ### Authorization diff --git a/docs/PhoneNumberRegulatoryRequirement.md b/docs/PhoneNumberRegulatoryRequirement.md index 43d27096..99950b25 100644 --- a/docs/PhoneNumberRegulatoryRequirement.md +++ b/docs/PhoneNumberRegulatoryRequirement.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**requirementId** | **UUID** | Unique id for a requirement. | [optional] -**fieldType** | [**FieldTypeEnum**](#FieldTypeEnum) | | [optional] [readonly] -**fieldValue** | **String** | The value of the requirement, this could be an id to a resource or a string value. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**requirementId** | **UUID** | Unique id for a requirement. | [optional] | +|**fieldType** | [**FieldTypeEnum**](#FieldTypeEnum) | | [optional] [readonly] | +|**fieldValue** | **String** | The value of the requirement, this could be an id to a resource or a string value. | [optional] | ## Enum: FieldTypeEnum -Name | Value ----- | ----- -TEXTUAL | "textual" -DATETIME | "datetime" -ADDRESS | "address" -DOCUMENT | "document" +| Name | Value | +|---- | -----| +| TEXTUAL | "textual" | +| DATETIME | "datetime" | +| ADDRESS | "address" | +| DOCUMENT | "document" | diff --git a/docs/PhoneNumberRegulatoryRequirementAllOf.md b/docs/PhoneNumberRegulatoryRequirementAllOf.md index 36cbb00b..bd44042b 100644 --- a/docs/PhoneNumberRegulatoryRequirementAllOf.md +++ b/docs/PhoneNumberRegulatoryRequirementAllOf.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldValue** | **String** | The value of the requirement, this could be an id to a resource or a string value. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fieldValue** | **String** | The value of the requirement, this could be an id to a resource or a string value. | [optional] | diff --git a/docs/PhoneNumberResponse.md b/docs/PhoneNumberResponse.md index c84b4724..67a2154b 100644 --- a/docs/PhoneNumberResponse.md +++ b/docs/PhoneNumberResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumberDetailed**](PhoneNumberDetailed.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumberDetailed**](PhoneNumberDetailed.md) | | [optional] | diff --git a/docs/PhoneNumberResponse1.md b/docs/PhoneNumberResponse1.md index 3b5eb269..7ad773be 100644 --- a/docs/PhoneNumberResponse1.md +++ b/docs/PhoneNumberResponse1.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumberDeletedDetailed**](PhoneNumberDeletedDetailed.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumberDeletedDetailed**](PhoneNumberDeletedDetailed.md) | | [optional] | diff --git a/docs/PhoneNumberWithMessagingSettings.md b/docs/PhoneNumberWithMessagingSettings.md index 24a15d37..cfd27353 100644 --- a/docs/PhoneNumberWithMessagingSettings.md +++ b/docs/PhoneNumberWithMessagingSettings.md @@ -5,43 +5,43 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**id** | **String** | Identifies the type of resource. | [optional] [readonly] -**phoneNumber** | **String** | +E.164 formatted phone number. | [optional] [readonly] -**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] -**countryCode** | **String** | ISO 3166-1 alpha-2 country code. | [optional] [readonly] -**type** | [**TypeEnum**](#TypeEnum) | The type of the phone number | [optional] [readonly] -**health** | [**NumberHealthMetrics**](NumberHealthMetrics.md) | | [optional] -**eligibleMessagingProducts** | **List<String>** | The messaging products that this number can be registered to use | [optional] [readonly] -**trafficType** | **String** | The messaging traffic or use case for which the number is currently configured. | [optional] [readonly] -**messagingProduct** | **String** | The messaging product that the number is registered to use | [optional] -**features** | [**PhoneNumberWithMessagingSettingsFeatures**](PhoneNumberWithMessagingSettingsFeatures.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**id** | **String** | Identifies the type of resource. | [optional] [readonly] | +|**phoneNumber** | **String** | +E.164 formatted phone number. | [optional] [readonly] | +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | +|**countryCode** | **String** | ISO 3166-1 alpha-2 country code. | [optional] [readonly] | +|**type** | [**TypeEnum**](#TypeEnum) | The type of the phone number | [optional] [readonly] | +|**health** | [**NumberHealthMetrics**](NumberHealthMetrics.md) | | [optional] | +|**eligibleMessagingProducts** | **List<String>** | The messaging products that this number can be registered to use | [optional] [readonly] | +|**trafficType** | **String** | The messaging traffic or use case for which the number is currently configured. | [optional] [readonly] | +|**messagingProduct** | **String** | The messaging product that the number is registered to use | [optional] | +|**features** | [**PhoneNumberWithMessagingSettingsFeatures**](PhoneNumberWithMessagingSettingsFeatures.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -PHONE_NUMBER | "messaging_phone_number" -SETTINGS | "messaging_settings" +| Name | Value | +|---- | -----| +| PHONE_NUMBER | "messaging_phone_number" | +| SETTINGS | "messaging_settings" | ## Enum: TypeEnum -Name | Value ----- | ----- -LONG_CODE | "long-code" -TOLL_FREE | "toll-free" -SHORT_CODE | "short-code" -LONGCODE | "longcode" -TOLLFREE | "tollfree" -SHORTCODE | "shortcode" +| Name | Value | +|---- | -----| +| LONG_CODE | "long-code" | +| TOLL_FREE | "toll-free" | +| SHORT_CODE | "short-code" | +| LONGCODE | "longcode" | +| TOLLFREE | "tollfree" | +| SHORTCODE | "shortcode" | diff --git a/docs/PhoneNumberWithMessagingSettingsFeatures.md b/docs/PhoneNumberWithMessagingSettingsFeatures.md index 1a0ad4ab..8eb3eb13 100644 --- a/docs/PhoneNumberWithMessagingSettingsFeatures.md +++ b/docs/PhoneNumberWithMessagingSettingsFeatures.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sms** | [**MessagingFeatureSet**](MessagingFeatureSet.md) | | [optional] -**mms** | [**MessagingFeatureSet**](MessagingFeatureSet.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sms** | [**MessagingFeatureSet**](MessagingFeatureSet.md) | | [optional] | +|**mms** | [**MessagingFeatureSet**](MessagingFeatureSet.md) | | [optional] | diff --git a/docs/PhoneNumberWithVoiceSettings.md b/docs/PhoneNumberWithVoiceSettings.md index 56bf2abe..db762e88 100644 --- a/docs/PhoneNumberWithVoiceSettings.md +++ b/docs/PhoneNumberWithVoiceSettings.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the type of resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**phoneNumber** | **String** | The phone number in +E164 format. | [optional] [readonly] -**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**techPrefixEnabled** | **Boolean** | Controls whether a tech prefix is enabled for this phone number. | [optional] -**translatedNumber** | **String** | This field allows you to rewrite the destination number of an inbound call before the call is routed to you. The value of this field may be any alphanumeric value, and the value will replace the number originally dialed. | [optional] -**callForwarding** | [**CallForwarding**](CallForwarding.md) | | [optional] -**cnamListing** | [**CnamListing**](CnamListing.md) | | [optional] -**emergency** | [**EmergencySettings**](EmergencySettings.md) | | [optional] -**usagePaymentMethod** | [**UsagePaymentMethodEnum**](#UsagePaymentMethodEnum) | Controls whether a number is billed per minute or uses your concurrent channels. | [optional] -**mediaFeatures** | [**MediaFeatures**](MediaFeatures.md) | | [optional] -**callRecording** | [**CallRecording**](CallRecording.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the type of resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**phoneNumber** | **String** | The phone number in +E164 format. | [optional] [readonly] | +|**connectionId** | **String** | Identifies the connection associated with this phone number. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**techPrefixEnabled** | **Boolean** | Controls whether a tech prefix is enabled for this phone number. | [optional] | +|**translatedNumber** | **String** | This field allows you to rewrite the destination number of an inbound call before the call is routed to you. The value of this field may be any alphanumeric value, and the value will replace the number originally dialed. | [optional] | +|**callForwarding** | [**CallForwarding**](CallForwarding.md) | | [optional] | +|**cnamListing** | [**CnamListing**](CnamListing.md) | | [optional] | +|**emergency** | [**EmergencySettings**](EmergencySettings.md) | | [optional] | +|**usagePaymentMethod** | [**UsagePaymentMethodEnum**](#UsagePaymentMethodEnum) | Controls whether a number is billed per minute or uses your concurrent channels. | [optional] | +|**mediaFeatures** | [**MediaFeatures**](MediaFeatures.md) | | [optional] | +|**callRecording** | [**CallRecording**](CallRecording.md) | | [optional] | ## Enum: UsagePaymentMethodEnum -Name | Value ----- | ----- -PAY_PER_MINUTE | "pay-per-minute" -CHANNEL | "channel" +| Name | Value | +|---- | -----| +| PAY_PER_MINUTE | "pay-per-minute" | +| CHANNEL | "channel" | diff --git a/docs/PhoneNumbersBulkUpdateError.md b/docs/PhoneNumbersBulkUpdateError.md index 52daee1c..ff36a386 100644 --- a/docs/PhoneNumbersBulkUpdateError.md +++ b/docs/PhoneNumbersBulkUpdateError.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number in e164 format. | [optional] -**errors** | [**List<Error>**](Error.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number in e164 format. | [optional] | +|**errors** | [**List<Error>**](Error.md) | | [optional] | diff --git a/docs/PhoneNumbersEnableEmergency.md b/docs/PhoneNumbersEnableEmergency.md index af5e2aa9..40569a6e 100644 --- a/docs/PhoneNumbersEnableEmergency.md +++ b/docs/PhoneNumbersEnableEmergency.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumbersJob**](PhoneNumbersJob.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumbersJob**](PhoneNumbersJob.md) | | [optional] | diff --git a/docs/PhoneNumbersJob.md b/docs/PhoneNumbersJob.md index e4c275b9..f34c302d 100644 --- a/docs/PhoneNumbersJob.md +++ b/docs/PhoneNumbersJob.md @@ -5,41 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | Indicates the completion status of the background update. | [optional] [readonly] -**type** | [**TypeEnum**](#TypeEnum) | Identifies the type of the background job. | [optional] [readonly] -**etc** | **OffsetDateTime** | ISO 8601 formatted date indicating when the estimated time of completion of the background job. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] -**phoneNumbers** | [**List<PhoneNumbersJobPhoneNumber>**](PhoneNumbersJobPhoneNumber.md) | | [optional] -**successfulOperations** | [**List<PhoneNumbersJobSuccessfulOperation>**](PhoneNumbersJobSuccessfulOperation.md) | | [optional] [readonly] -**pendingOperations** | [**List<PhoneNumbersJobPendingOperation>**](PhoneNumbersJobPendingOperation.md) | | [optional] [readonly] -**failedOperations** | [**List<PhoneNumbersJobFailedOperation>**](PhoneNumbersJobFailedOperation.md) | | [optional] [readonly] - - - -## Enum: StatusEnum - -Name | Value ----- | ----- -PENDING | "pending" -IN_PROGRESS | "in_progress" -COMPLETED | "completed" -FAILED | "failed" -EXPIRED | "expired" - - - -## Enum: TypeEnum - -Name | Value ----- | ----- -UPDATE_EMERGENCY_SETTINGS | "update_emergency_settings" -DELETE_PHONE_NUMBERS | "delete_phone_numbers" -UPDATE_PHONE_NUMBERS | "update_phone_numbers" +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumbersJob**](PhoneNumbersJob.md) | | [optional] | diff --git a/docs/PhoneNumbersJobDeletePhoneNumbers.md b/docs/PhoneNumbersJobDeletePhoneNumbers.md index 51bc7760..fd02dc28 100644 --- a/docs/PhoneNumbersJobDeletePhoneNumbers.md +++ b/docs/PhoneNumbersJobDeletePhoneNumbers.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumbersJob**](PhoneNumbersJob.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumbersJob**](PhoneNumbersJob.md) | | [optional] | diff --git a/docs/PhoneNumbersJobDeletePhoneNumbersRequest.md b/docs/PhoneNumbersJobDeletePhoneNumbersRequest.md index 122029df..f326b267 100644 --- a/docs/PhoneNumbersJobDeletePhoneNumbersRequest.md +++ b/docs/PhoneNumbersJobDeletePhoneNumbersRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumbers** | **List<String>** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | **List<String>** | | | diff --git a/docs/PhoneNumbersJobFailedOperation.md b/docs/PhoneNumbersJobFailedOperation.md index 78627e73..6ad752d7 100644 --- a/docs/PhoneNumbersJobFailedOperation.md +++ b/docs/PhoneNumbersJobFailedOperation.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number in e164 format. | [optional] -**id** | **String** | The phone number's ID | [optional] -**errors** | [**List<Error>**](Error.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number in e164 format. | [optional] | +|**id** | **String** | The phone number's ID | [optional] | +|**errors** | [**List<Error>**](Error.md) | | [optional] | diff --git a/docs/PhoneNumbersJobPendingOperation.md b/docs/PhoneNumbersJobPendingOperation.md index d55707e9..e96c8c87 100644 --- a/docs/PhoneNumbersJobPendingOperation.md +++ b/docs/PhoneNumbersJobPendingOperation.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number in e164 format. | [optional] -**id** | **String** | The phone number's ID | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number in e164 format. | [optional] | +|**id** | **String** | The phone number's ID | [optional] | diff --git a/docs/PhoneNumbersJobPhoneNumber.md b/docs/PhoneNumbersJobPhoneNumber.md index 08417213..ed4824ae 100644 --- a/docs/PhoneNumbersJobPhoneNumber.md +++ b/docs/PhoneNumbersJobPhoneNumber.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number in e164 format. | [optional] -**id** | **String** | The phone number's ID | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number in e164 format. | [optional] | +|**id** | **String** | The phone number's ID | [optional] | diff --git a/docs/PhoneNumbersJobSuccessfulOperation.md b/docs/PhoneNumbersJobSuccessfulOperation.md index 52f191c0..496e534a 100644 --- a/docs/PhoneNumbersJobSuccessfulOperation.md +++ b/docs/PhoneNumbersJobSuccessfulOperation.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | The phone number in e164 format. | [optional] -**id** | **String** | The phone number's ID | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | The phone number in e164 format. | [optional] | +|**id** | **String** | The phone number's ID | [optional] | diff --git a/docs/PhoneNumbersJobUpdateEmergencySettingsRequest.md b/docs/PhoneNumbersJobUpdateEmergencySettingsRequest.md index 79abc18c..dd6ba6d5 100644 --- a/docs/PhoneNumbersJobUpdateEmergencySettingsRequest.md +++ b/docs/PhoneNumbersJobUpdateEmergencySettingsRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumbers** | **List<String>** | | -**emergencyEnabled** | **Boolean** | Indicates whether to enable emergency services on this number. | -**emergencyAddressId** | **String** | Identifies the address to be used with emergency services. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | **List<String>** | | | +|**emergencyEnabled** | **Boolean** | Indicates whether to enable emergency services on this number. | | +|**emergencyAddressId** | **String** | Identifies the address to be used with emergency services. | | diff --git a/docs/PhoneNumbersJobUpdatePhoneNumbers.md b/docs/PhoneNumbersJobUpdatePhoneNumbers.md index c76ac663..28a58237 100644 --- a/docs/PhoneNumbersJobUpdatePhoneNumbers.md +++ b/docs/PhoneNumbersJobUpdatePhoneNumbers.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumbersJob**](PhoneNumbersJob.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumbersJob**](PhoneNumbersJob.md) | | [optional] | diff --git a/docs/PhoneNumbersJobUpdatePhoneNumbersRequest.md b/docs/PhoneNumbersJobUpdatePhoneNumbersRequest.md index 6868f539..3837d4f0 100644 --- a/docs/PhoneNumbersJobUpdatePhoneNumbersRequest.md +++ b/docs/PhoneNumbersJobUpdatePhoneNumbersRequest.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumbers** | **List<String>** | Array of phone number ids and/or phone numbers in E164 format to update | -**tags** | **List<String>** | A list of user-assigned tags to help organize phone numbers. | [optional] -**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, we will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] -**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | **List<String>** | Array of phone number ids and/or phone numbers in E164 format to update | | +|**tags** | **List<String>** | A list of user-assigned tags to help organize phone numbers. | [optional] | +|**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, we will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] | +|**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] | diff --git a/docs/PlayAudioUrlRequest.md b/docs/PlayAudioUrlRequest.md index 5f791f0b..ef9d8d37 100644 --- a/docs/PlayAudioUrlRequest.md +++ b/docs/PlayAudioUrlRequest.md @@ -5,17 +5,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**audioUrl** | **String** | The URL of a file to be played back on the call. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] -**mediaName** | **String** | The media_name of a file to be played back on the call. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] -**loop** | [**Loopcount**](Loopcount.md) | | [optional] -**overlay** | **Boolean** | When enabled, audio will be mixed on top of any other audio that is actively being played back. Note that `overlay: true` will only work if there is another audio file already being played on the call. | [optional] -**stop** | **String** | When specified, it stops the current audio being played. Specify `current` to stop the current audio being played, and to play the next file in the queue. Specify `all` to stop the current audio file being played and to also clear all audio files from the queue. | [optional] -**targetLegs** | **String** | Specifies the leg or legs on which audio will be played. If supplied, the value must be either `self`, `opposite` or `both`. | [optional] -**cacheAudio** | **Boolean** | Fetches the audio file for caching prior to playing on the call. Useful when an audio file is queued. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**audioUrl** | **String** | The URL of a file to be played back on the call. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] | +|**mediaName** | **String** | The media_name of a file to be played back on the call. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] | +|**loop** | [**Loopcount**](Loopcount.md) | | [optional] | +|**overlay** | **Boolean** | When enabled, audio will be mixed on top of any other audio that is actively being played back. Note that `overlay: true` will only work if there is another audio file already being played on the call. | [optional] | +|**stop** | **String** | When specified, it stops the current audio being played. Specify `current` to stop the current audio being played, and to play the next file in the queue. Specify `all` to stop the current audio file being played and to also clear all audio files from the queue. | [optional] | +|**targetLegs** | **String** | Specifies the leg or legs on which audio will be played. If supplied, the value must be either `self`, `opposite` or `both`. | [optional] | +|**cacheAudio** | **Boolean** | Fetches the audio file for caching prior to playing on the call. Useful when an audio file is queued. | [optional] | +|**playbackContent** | **String** | Allows a user to provide base64 encoded mp3. Note: when using this parameter, `media_url` and `media_name` in the `playback_started` and `playback_ended` webhooks will be empty | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/PlaybackStopRequest.md b/docs/PlaybackStopRequest.md index 7fc780d6..acd446df 100644 --- a/docs/PlaybackStopRequest.md +++ b/docs/PlaybackStopRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**overlay** | **Boolean** | When enabled, it stops the audio being played in the overlay queue. | [optional] -**stop** | **String** | Use `current` to stop the current audio being played. Use `all` to stop the current audio file being played and clear all audio files from the queue. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**overlay** | **Boolean** | When enabled, it stops the audio being played in the overlay queue. | [optional] | +|**stop** | **String** | Use `current` to stop the current audio being played. Use `all` to stop the current audio file being played and clear all audio files from the queue. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/PortOutSupportingDocument.md b/docs/PortOutSupportingDocument.md index c9d634fc..6d10441e 100644 --- a/docs/PortOutSupportingDocument.md +++ b/docs/PortOutSupportingDocument.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | -**recordType** | **String** | Identifies the type of the resource. | [readonly] -**type** | [**TypeEnum**](#TypeEnum) | Identifies the type of the document | [readonly] -**portoutId** | **UUID** | Identifies the associated port request | [readonly] -**documentId** | **UUID** | Identifies the associated document | -**createdAt** | **String** | Supporting document creation timestamp in ISO 8601 format | -**updatedAt** | **String** | Supporting document last changed timestamp in ISO 8601 format | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | | +|**recordType** | **String** | Identifies the type of the resource. | [readonly] | +|**type** | [**TypeEnum**](#TypeEnum) | Identifies the type of the document | [readonly] | +|**portoutId** | **UUID** | Identifies the associated port request | [readonly] | +|**documentId** | **UUID** | Identifies the associated document | | +|**createdAt** | **String** | Supporting document creation timestamp in ISO 8601 format | | +|**updatedAt** | **String** | Supporting document last changed timestamp in ISO 8601 format | | ## Enum: TypeEnum -Name | Value ----- | ----- -LOA | "loa" -INVOICE | "invoice" +| Name | Value | +|---- | -----| +| LOA | "loa" | +| INVOICE | "invoice" | diff --git a/docs/Portability.md b/docs/Portability.md index e2c18a0c..c6d765ce 100644 --- a/docs/Portability.md +++ b/docs/Portability.md @@ -5,31 +5,31 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**lrn** | **String** | Local Routing Number, if assigned to the requested phone number | [optional] -**portedStatus** | [**PortedStatusEnum**](#PortedStatusEnum) | Indicates whether or not the requested phone number has been ported | [optional] -**portedDate** | **String** | ISO-formatted date when the requested phone number has been ported | [optional] -**ocn** | **String** | Operating Company Name (OCN) as per the Local Exchange Routing Guide (LERG) database | [optional] -**lineType** | **String** | Type of number | [optional] -**spid** | **String** | SPID (Service Provider ID) | [optional] -**spidCarrierName** | **String** | Service provider name | [optional] -**spidCarrierType** | **String** | Service provider type | [optional] -**altspid** | **String** | Alternative SPID (Service Provider ID). Often used when a carrier is using a number from another carrier | [optional] -**altspidCarrierName** | **String** | Alternative service provider name | [optional] -**altspidCarrierType** | **String** | Alternative service provider type | [optional] -**city** | **String** | City name extracted from the locality in the Local Exchange Routing Guide (LERG) database | [optional] -**state** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lrn** | **String** | Local Routing Number, if assigned to the requested phone number | [optional] | +|**portedStatus** | [**PortedStatusEnum**](#PortedStatusEnum) | Indicates whether or not the requested phone number has been ported | [optional] | +|**portedDate** | **String** | ISO-formatted date when the requested phone number has been ported | [optional] | +|**ocn** | **String** | Operating Company Name (OCN) as per the Local Exchange Routing Guide (LERG) database | [optional] | +|**lineType** | **String** | Type of number | [optional] | +|**spid** | **String** | SPID (Service Provider ID) | [optional] | +|**spidCarrierName** | **String** | Service provider name | [optional] | +|**spidCarrierType** | **String** | Service provider type | [optional] | +|**altspid** | **String** | Alternative SPID (Service Provider ID). Often used when a carrier is using a number from another carrier | [optional] | +|**altspidCarrierName** | **String** | Alternative service provider name | [optional] | +|**altspidCarrierType** | **String** | Alternative service provider type | [optional] | +|**city** | **String** | City name extracted from the locality in the Local Exchange Routing Guide (LERG) database | [optional] | +|**state** | **String** | | [optional] | ## Enum: PortedStatusEnum -Name | Value ----- | ----- -Y | "Y" -N | "N" -EMPTY | "" +| Name | Value | +|---- | -----| +| Y | "Y" | +| N | "N" | +| EMPTY | "" | diff --git a/docs/PortabilityCheckDetails.md b/docs/PortabilityCheckDetails.md index 1536658c..068b50d7 100644 --- a/docs/PortabilityCheckDetails.md +++ b/docs/PortabilityCheckDetails.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**fastPortable** | **Boolean** | Indicates whether this phone number is FastPort eligible | [optional] [readonly] -**notPortableReason** | **String** | If this phone number is not portable, explains why. Empty string if the number is portable. | [optional] [readonly] -**phoneNumber** | **String** | The +E.164 formatted phone number this result is about | [optional] [readonly] -**portable** | **Boolean** | Indicates whether this phone number is portable | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**fastPortable** | **Boolean** | Indicates whether this phone number is FastPort eligible | [optional] [readonly] | +|**notPortableReason** | **String** | If this phone number is not portable, explains why. Empty string if the number is portable. | [optional] [readonly] | +|**phoneNumber** | **String** | The +E.164 formatted phone number this result is about | [optional] [readonly] | +|**portable** | **Boolean** | Indicates whether this phone number is portable | [optional] [readonly] | diff --git a/docs/PortingOrder.md b/docs/PortingOrder.md index ac8000ec..54c1fb25 100644 --- a/docs/PortingOrder.md +++ b/docs/PortingOrder.md @@ -5,27 +5,43 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies this porting order | [optional] [readonly] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**status** | [**PortingOrderStatus**](PortingOrderStatus.md) | | [optional] -**supportKey** | **String** | A key to reference this porting order when contacting Telnyx customer support. This information is not available in draft porting orders. | [optional] [readonly] -**parentSupportKey** | **String** | A key to reference for the porting order group when contacting Telnyx customer support. This information is not available for porting orders in `draft` state | [optional] [readonly] -**portingPhoneNumbersCount** | **Integer** | Count of phone numbers associated with this porting order | [optional] [readonly] -**oldServiceProviderOcn** | **String** | Identifies the old service provider | [optional] [readonly] -**documents** | [**PortingOrderDocuments**](PortingOrderDocuments.md) | | [optional] -**misc** | [**PortingOrderMisc**](PortingOrderMisc.md) | | [optional] -**endUser** | [**PortingOrderEndUser**](PortingOrderEndUser.md) | | [optional] -**activationSettings** | [**PortingOrderActivationSettings**](PortingOrderActivationSettings.md) | | [optional] -**phoneNumberConfiguration** | [**PortingOrderPhoneNumberConfiguration**](PortingOrderPhoneNumberConfiguration.md) | | [optional] -**description** | **String** | A description of the porting order | [optional] [readonly] -**requirements** | [**List<PortingOrderRequirement>**](PortingOrderRequirement.md) | List of documentation requirements for porting numbers. | [optional] -**userFeedback** | [**PortingOrderUserFeedback**](PortingOrderUserFeedback.md) | | [optional] -**webhookUrl** | **URI** | | [optional] -**userReference** | **String** | A customer-specified reference number for customer bookkeeping purposes | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies this porting order | [optional] [readonly] | +|**customerReference** | **String** | A customer-specified reference number for customer bookkeeping purposes | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**status** | [**PortingOrderStatus**](PortingOrderStatus.md) | | [optional] | +|**supportKey** | **String** | A key to reference this porting order when contacting Telnyx customer support. This information is not available in draft porting orders. | [optional] [readonly] | +|**parentSupportKey** | **String** | A key to reference for the porting order group when contacting Telnyx customer support. This information is not available for porting orders in `draft` state | [optional] [readonly] | +|**portingPhoneNumbersCount** | **Integer** | Count of phone numbers associated with this porting order | [optional] [readonly] | +|**oldServiceProviderOcn** | **String** | Identifies the old service provider | [optional] [readonly] | +|**documents** | [**PortingOrderDocuments**](PortingOrderDocuments.md) | | [optional] | +|**misc** | [**PortingOrderMisc**](PortingOrderMisc.md) | | [optional] | +|**endUser** | [**PortingOrderEndUser**](PortingOrderEndUser.md) | | [optional] | +|**activationSettings** | [**PortingOrderActivationSettings**](PortingOrderActivationSettings.md) | | [optional] | +|**phoneNumberConfiguration** | [**PortingOrderPhoneNumberConfiguration**](PortingOrderPhoneNumberConfiguration.md) | | [optional] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | The type of the phone number | [optional] | +|**description** | **String** | A description of the porting order | [optional] [readonly] | +|**requirements** | [**List<PortingOrderRequirement>**](PortingOrderRequirement.md) | List of documentation requirements for porting numbers. | [optional] | +|**requirementsMet** | **Boolean** | Is true when the required documentation is met | [optional] | +|**userFeedback** | [**PortingOrderUserFeedback**](PortingOrderUserFeedback.md) | | [optional] | +|**userId** | **UUID** | Identifies the user (or organization) who requested the porting order | [optional] | +|**webhookUrl** | **URI** | | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | + + + +## Enum: PhoneNumberTypeEnum + +| Name | Value | +|---- | -----| +| LANDLINE | "landline" | +| LOCAL | "local" | +| MOBILE | "mobile" | +| NATIONAL | "national" | +| SHARED_COST | "shared_cost" | +| TOLL_FREE | "toll_free" | diff --git a/docs/PortingOrderActivationSettings.md b/docs/PortingOrderActivationSettings.md index 27c60371..33040074 100644 --- a/docs/PortingOrderActivationSettings.md +++ b/docs/PortingOrderActivationSettings.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**focDatetimeRequested** | **OffsetDateTime** | ISO 8601 formatted Date/Time requested for the FOC date | [optional] -**focDatetimeActual** | **OffsetDateTime** | ISO 8601 formatted Date/Time of the FOC date | [optional] -**fastPortEligible** | **Boolean** | Indicates whether this porting order is eligible for FastPort | [optional] [readonly] -**activationStatus** | **PortingOrderActivationStatus** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**focDatetimeRequested** | **OffsetDateTime** | ISO 8601 formatted Date/Time requested for the FOC date | [optional] | +|**focDatetimeActual** | **OffsetDateTime** | ISO 8601 formatted Date/Time of the FOC date | [optional] | +|**fastPortEligible** | **Boolean** | Indicates whether this porting order is eligible for FastPort | [optional] [readonly] | +|**activationStatus** | **PortingOrderActivationStatus** | | [optional] | diff --git a/docs/PortingOrderApi.md b/docs/PortingOrderApi.md index 68101bbe..528ca69b 100644 --- a/docs/PortingOrderApi.md +++ b/docs/PortingOrderApi.md @@ -16,6 +16,7 @@ Method | HTTP request | Description [**getPortingOrdersActivationJob**](PortingOrderApi.md#getPortingOrdersActivationJob) | **GET** /porting_orders/{id}/activation_jobs/{activationJobId} | Retrieve a porting activation job [**listAllowedFocWindows**](PortingOrderApi.md#listAllowedFocWindows) | **GET** /porting_orders/{id}/allowed_foc_windows | List allowed FOC dates [**listPortingOrderDocuments**](PortingOrderApi.md#listPortingOrderDocuments) | **GET** /porting_orders/{id}/documents | List all documents associated with a porting order +[**listPortingOrderRequirements**](PortingOrderApi.md#listPortingOrderRequirements) | **GET** /porting_orders/{id}/requirements | List all required documents for this porting order [**listPortingOrders**](PortingOrderApi.md#listPortingOrders) | **GET** /porting_orders | List all porting orders [**listPortingOrdersActivationJobs**](PortingOrderApi.md#listPortingOrdersActivationJobs) | **GET** /porting_orders/{id}/activation_jobs | List all porting activation jobs [**listPortingOrdersComments**](PortingOrderApi.md#listPortingOrdersComments) | **GET** /porting_orders/{id}/comments | List all comments of a porting order @@ -28,7 +29,7 @@ Method | HTTP request | Description ## activatePortingOrder -> ShowPortingOrdersActivationJob activatePortingOrder(id) +> ActivatePortingOrder202Response activatePortingOrder(id) Activates every number on a porting order. @@ -58,7 +59,7 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Porting Order id try { - ShowPortingOrdersActivationJob result = apiInstance.activatePortingOrder(id); + ActivatePortingOrder202Response result = apiInstance.activatePortingOrder(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#activatePortingOrder"); @@ -80,7 +81,7 @@ Name | Type | Description | Notes ### Return type -[**ShowPortingOrdersActivationJob**](ShowPortingOrdersActivationJob.md) +[**ActivatePortingOrder202Response**](ActivatePortingOrder202Response.md) ### Authorization @@ -101,7 +102,7 @@ Name | Type | Description | Notes ## cancelPortingOrder -> ShowPortingOrder cancelPortingOrder(id) +> CancelPortingOrder200Response cancelPortingOrder(id) Cancel a porting order @@ -131,7 +132,7 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Porting Order id try { - ShowPortingOrder result = apiInstance.cancelPortingOrder(id); + CancelPortingOrder200Response result = apiInstance.cancelPortingOrder(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#cancelPortingOrder"); @@ -153,7 +154,7 @@ Name | Type | Description | Notes ### Return type -[**ShowPortingOrder**](ShowPortingOrder.md) +[**CancelPortingOrder200Response**](CancelPortingOrder200Response.md) ### Authorization @@ -174,7 +175,7 @@ Name | Type | Description | Notes ## confirmPortingOrder -> ShowPortingOrder confirmPortingOrder(id) +> ConfirmPortingOrder200Response confirmPortingOrder(id) Submit a porting order. @@ -204,7 +205,7 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Porting Order id try { - ShowPortingOrder result = apiInstance.confirmPortingOrder(id); + ConfirmPortingOrder200Response result = apiInstance.confirmPortingOrder(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#confirmPortingOrder"); @@ -226,7 +227,7 @@ Name | Type | Description | Notes ### Return type -[**ShowPortingOrder**](ShowPortingOrder.md) +[**ConfirmPortingOrder200Response**](ConfirmPortingOrder200Response.md) ### Authorization @@ -247,7 +248,7 @@ Name | Type | Description | Notes ## createPortingOrder -> ListDraftPortingOrderWithoutPagination createPortingOrder(createPortingOrder) +> CreatePortingOrder201Response createPortingOrder(createPortingOrder) Create a porting order @@ -276,7 +277,7 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); CreatePortingOrder createPortingOrder = new CreatePortingOrder(); // CreatePortingOrder | try { - ListDraftPortingOrderWithoutPagination result = apiInstance.createPortingOrder(createPortingOrder); + CreatePortingOrder201Response result = apiInstance.createPortingOrder(createPortingOrder); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#createPortingOrder"); @@ -298,7 +299,7 @@ Name | Type | Description | Notes ### Return type -[**ListDraftPortingOrderWithoutPagination**](ListDraftPortingOrderWithoutPagination.md) +[**CreatePortingOrder201Response**](CreatePortingOrder201Response.md) ### Authorization @@ -319,7 +320,7 @@ Name | Type | Description | Notes ## createPortingOrderComment -> ShowPortingOrderComment createPortingOrderComment(id, createPortingOrderComment) +> CreatePortingOrderComment201Response createPortingOrderComment(id, createPortingOrderComment) Create a comment for a porting order @@ -350,7 +351,7 @@ public class Example { UUID id = UUID.randomUUID(); // UUID | Porting Order id CreatePortingOrderComment createPortingOrderComment = new CreatePortingOrderComment(); // CreatePortingOrderComment | try { - ShowPortingOrderComment result = apiInstance.createPortingOrderComment(id, createPortingOrderComment); + CreatePortingOrderComment201Response result = apiInstance.createPortingOrderComment(id, createPortingOrderComment); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#createPortingOrderComment"); @@ -373,7 +374,7 @@ Name | Type | Description | Notes ### Return type -[**ShowPortingOrderComment**](ShowPortingOrderComment.md) +[**CreatePortingOrderComment201Response**](CreatePortingOrderComment201Response.md) ### Authorization @@ -466,7 +467,7 @@ null (empty response body) ## getPortingOrder -> ShowPortingOrder getPortingOrder(id, includePhoneNumbers) +> GetPortingOrder200Response getPortingOrder(id, includePhoneNumbers) Retrieve a porting order @@ -497,7 +498,7 @@ public class Example { UUID id = UUID.randomUUID(); // UUID | Porting Order id Boolean includePhoneNumbers = true; // Boolean | Include the first 50 phone number objects in the results try { - ShowPortingOrder result = apiInstance.getPortingOrder(id, includePhoneNumbers); + GetPortingOrder200Response result = apiInstance.getPortingOrder(id, includePhoneNumbers); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#getPortingOrder"); @@ -520,7 +521,7 @@ Name | Type | Description | Notes ### Return type -[**ShowPortingOrder**](ShowPortingOrder.md) +[**GetPortingOrder200Response**](GetPortingOrder200Response.md) ### Authorization @@ -612,7 +613,7 @@ Name | Type | Description | Notes ## getPortingOrderSubRequest -> SubRequestByPortingOrder getPortingOrderSubRequest(id) +> GetPortingOrderSubRequest200Response getPortingOrderSubRequest(id) Retrieve the associated V1 sub_request_id and port_request_id @@ -642,7 +643,7 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Porting Order id try { - SubRequestByPortingOrder result = apiInstance.getPortingOrderSubRequest(id); + GetPortingOrderSubRequest200Response result = apiInstance.getPortingOrderSubRequest(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#getPortingOrderSubRequest"); @@ -664,7 +665,7 @@ Name | Type | Description | Notes ### Return type -[**SubRequestByPortingOrder**](SubRequestByPortingOrder.md) +[**GetPortingOrderSubRequest200Response**](GetPortingOrderSubRequest200Response.md) ### Authorization @@ -685,7 +686,7 @@ Name | Type | Description | Notes ## getPortingOrdersActivationJob -> ShowPortingOrdersActivationJob getPortingOrdersActivationJob(id, activationJobId) +> ActivatePortingOrder202Response getPortingOrdersActivationJob(id, activationJobId) Retrieve a porting activation job @@ -716,7 +717,7 @@ public class Example { UUID id = UUID.randomUUID(); // UUID | Porting Order id UUID activationJobId = UUID.randomUUID(); // UUID | Activation Job Identifier try { - ShowPortingOrdersActivationJob result = apiInstance.getPortingOrdersActivationJob(id, activationJobId); + ActivatePortingOrder202Response result = apiInstance.getPortingOrdersActivationJob(id, activationJobId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#getPortingOrdersActivationJob"); @@ -739,7 +740,7 @@ Name | Type | Description | Notes ### Return type -[**ShowPortingOrdersActivationJob**](ShowPortingOrdersActivationJob.md) +[**ActivatePortingOrder202Response**](ActivatePortingOrder202Response.md) ### Authorization @@ -760,7 +761,7 @@ Name | Type | Description | Notes ## listAllowedFocWindows -> ListAllowedFocWindow listAllowedFocWindows(id) +> ListAllowedFocWindows200Response listAllowedFocWindows(id) List allowed FOC dates @@ -790,7 +791,7 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Porting Order id try { - ListAllowedFocWindow result = apiInstance.listAllowedFocWindows(id); + ListAllowedFocWindows200Response result = apiInstance.listAllowedFocWindows(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#listAllowedFocWindows"); @@ -812,7 +813,7 @@ Name | Type | Description | Notes ### Return type -[**ListAllowedFocWindow**](ListAllowedFocWindow.md) +[**ListAllowedFocWindows200Response**](ListAllowedFocWindows200Response.md) ### Authorization @@ -832,7 +833,7 @@ Name | Type | Description | Notes ## listPortingOrderDocuments -> ListPortingOrderDocuments listPortingOrderDocuments(id, pageNumber, pageSize) +> ListPortingOrderDocuments200Response listPortingOrderDocuments(id, pageNumber, pageSize) List all documents associated with a porting order @@ -864,7 +865,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListPortingOrderDocuments result = apiInstance.listPortingOrderDocuments(id, pageNumber, pageSize); + ListPortingOrderDocuments200Response result = apiInstance.listPortingOrderDocuments(id, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#listPortingOrderDocuments"); @@ -888,7 +889,84 @@ Name | Type | Description | Notes ### Return type -[**ListPortingOrderDocuments**](ListPortingOrderDocuments.md) +[**ListPortingOrderDocuments200Response**](ListPortingOrderDocuments200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **401** | Unauthorized | - | +| **422** | Unprocessable entity. Check message field in response for details. | - | + + +## listPortingOrderRequirements + +> ListPortingOrderRequirements200Response listPortingOrderRequirements(id, pageNumber, pageSize) + +List all required documents for this porting order + +Returns a list of all requirements for this porting order. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.PortingOrderApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); + UUID id = UUID.randomUUID(); // UUID | Porting Order id + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + try { + ListPortingOrderRequirements200Response result = apiInstance.listPortingOrderRequirements(id, pageNumber, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PortingOrderApi#listPortingOrderRequirements"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Porting Order id | + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + +### Return type + +[**ListPortingOrderRequirements200Response**](ListPortingOrderRequirements200Response.md) ### Authorization @@ -909,7 +987,7 @@ Name | Type | Description | Notes ## listPortingOrders -> ListPortingOrder listPortingOrders(pageNumber, pageSize, includePhoneNumbers, filterStatus, filterCustomerReference, filterPhoneNumbersCountryCode, filterPhoneNumbersCarrierName, filterMiscType, filterEndUserAdminEntityName, filterEndUserAdminAuthPersonName, filterActivationSettingsFastPortEligible, filterActivationSettingsFocDatetimeRequestedGt, filterActivationSettingsFocDatetimeRequestedLt, sort) +> ListPortingOrders200Response listPortingOrders(pageNumber, pageSize, includePhoneNumbers, filterStatus, filterCustomerReference, filterPhoneNumbersCountryCode, filterPhoneNumbersCarrierName, filterMiscType, filterEndUserAdminEntityName, filterEndUserAdminAuthPersonName, filterActivationSettingsFastPortEligible, filterActivationSettingsFocDatetimeRequestedGt, filterActivationSettingsFocDatetimeRequestedLt, sort) List all porting orders @@ -951,7 +1029,7 @@ public class Example { String filterActivationSettingsFocDatetimeRequestedLt = "2021-03-25T10:00:00.000Z"; // String | Filter results by foc date earlier than this value String sort = "created_at"; // String | Specifies the sort order for results. If not given, results are sorted by created_at in descending order. try { - ListPortingOrder result = apiInstance.listPortingOrders(pageNumber, pageSize, includePhoneNumbers, filterStatus, filterCustomerReference, filterPhoneNumbersCountryCode, filterPhoneNumbersCarrierName, filterMiscType, filterEndUserAdminEntityName, filterEndUserAdminAuthPersonName, filterActivationSettingsFastPortEligible, filterActivationSettingsFocDatetimeRequestedGt, filterActivationSettingsFocDatetimeRequestedLt, sort); + ListPortingOrders200Response result = apiInstance.listPortingOrders(pageNumber, pageSize, includePhoneNumbers, filterStatus, filterCustomerReference, filterPhoneNumbersCountryCode, filterPhoneNumbersCarrierName, filterMiscType, filterEndUserAdminEntityName, filterEndUserAdminAuthPersonName, filterActivationSettingsFastPortEligible, filterActivationSettingsFocDatetimeRequestedGt, filterActivationSettingsFocDatetimeRequestedLt, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#listPortingOrders"); @@ -986,7 +1064,7 @@ Name | Type | Description | Notes ### Return type -[**ListPortingOrder**](ListPortingOrder.md) +[**ListPortingOrders200Response**](ListPortingOrders200Response.md) ### Authorization @@ -1007,7 +1085,7 @@ Name | Type | Description | Notes ## listPortingOrdersActivationJobs -> ListPortingOrdersActivationJobs listPortingOrdersActivationJobs(id, pageNumber, pageSize) +> ListPortingOrdersActivationJobs200Response listPortingOrdersActivationJobs(id, pageNumber, pageSize) List all porting activation jobs @@ -1039,7 +1117,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListPortingOrdersActivationJobs result = apiInstance.listPortingOrdersActivationJobs(id, pageNumber, pageSize); + ListPortingOrdersActivationJobs200Response result = apiInstance.listPortingOrdersActivationJobs(id, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#listPortingOrdersActivationJobs"); @@ -1063,7 +1141,7 @@ Name | Type | Description | Notes ### Return type -[**ListPortingOrdersActivationJobs**](ListPortingOrdersActivationJobs.md) +[**ListPortingOrdersActivationJobs200Response**](ListPortingOrdersActivationJobs200Response.md) ### Authorization @@ -1084,7 +1162,7 @@ Name | Type | Description | Notes ## listPortingOrdersComments -> ListPortingOrdersComments listPortingOrdersComments(id, pageNumber, pageSize) +> ListPortingOrdersComments200Response listPortingOrdersComments(id, pageNumber, pageSize) List all comments of a porting order @@ -1116,7 +1194,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListPortingOrdersComments result = apiInstance.listPortingOrdersComments(id, pageNumber, pageSize); + ListPortingOrdersComments200Response result = apiInstance.listPortingOrdersComments(id, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#listPortingOrdersComments"); @@ -1140,7 +1218,7 @@ Name | Type | Description | Notes ### Return type -[**ListPortingOrdersComments**](ListPortingOrdersComments.md) +[**ListPortingOrdersComments200Response**](ListPortingOrdersComments200Response.md) ### Authorization @@ -1161,7 +1239,7 @@ Name | Type | Description | Notes ## listPortingOrdersExceptionTypes -> ListPortingOrdersExceptionTypes listPortingOrdersExceptionTypes() +> ListPortingOrdersExceptionTypes200Response listPortingOrdersExceptionTypes() List all exception types @@ -1189,7 +1267,7 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); try { - ListPortingOrdersExceptionTypes result = apiInstance.listPortingOrdersExceptionTypes(); + ListPortingOrdersExceptionTypes200Response result = apiInstance.listPortingOrdersExceptionTypes(); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#listPortingOrdersExceptionTypes"); @@ -1208,7 +1286,7 @@ This endpoint does not need any parameter. ### Return type -[**ListPortingOrdersExceptionTypes**](ListPortingOrdersExceptionTypes.md) +[**ListPortingOrdersExceptionTypes200Response**](ListPortingOrdersExceptionTypes200Response.md) ### Authorization @@ -1229,7 +1307,7 @@ This endpoint does not need any parameter. ## listPortingPhoneNumbers -> ListPortingPhoneNumbers listPortingPhoneNumbers(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterSupportKeyEq, filterSupportKeyIn, filterPhoneNumber, filterPhoneNumberIn, filterPortingOrderStatus, filterActivationStatus, filterPortabilityStatus) +> ListPortingPhoneNumbers200Response listPortingPhoneNumbers(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterSupportKeyEq, filterSupportKeyIn, filterPhoneNumber, filterPhoneNumberIn, filterPortingOrderStatus, filterActivationStatus, filterPortabilityStatus) List all porting phone numbers @@ -1269,7 +1347,7 @@ public class Example { PortingOrderActivationStatus filterActivationStatus = PortingOrderActivationStatus.fromValue("New"); // PortingOrderActivationStatus | Filter results by activation status PortabilityStatus filterPortabilityStatus = PortabilityStatus.fromValue("pending"); // PortabilityStatus | Filter results by portability status try { - ListPortingPhoneNumbers result = apiInstance.listPortingPhoneNumbers(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterSupportKeyEq, filterSupportKeyIn, filterPhoneNumber, filterPhoneNumberIn, filterPortingOrderStatus, filterActivationStatus, filterPortabilityStatus); + ListPortingPhoneNumbers200Response result = apiInstance.listPortingPhoneNumbers(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterSupportKeyEq, filterSupportKeyIn, filterPhoneNumber, filterPhoneNumberIn, filterPortingOrderStatus, filterActivationStatus, filterPortabilityStatus); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#listPortingPhoneNumbers"); @@ -1301,7 +1379,7 @@ Name | Type | Description | Notes ### Return type -[**ListPortingPhoneNumbers**](ListPortingPhoneNumbers.md) +[**ListPortingPhoneNumbers200Response**](ListPortingPhoneNumbers200Response.md) ### Authorization @@ -1322,7 +1400,7 @@ Name | Type | Description | Notes ## updatePortingOrder -> ShowPortingOrder updatePortingOrder(id, updatePortingOrder) +> UpdatePortingOrder200Response updatePortingOrder(id, updatePortingOrder) Edit a porting order @@ -1357,7 +1435,7 @@ public class Example { UUID id = UUID.randomUUID(); // UUID | Porting Order id UpdatePortingOrder updatePortingOrder = new UpdatePortingOrder(); // UpdatePortingOrder | try { - ShowPortingOrder result = apiInstance.updatePortingOrder(id, updatePortingOrder); + UpdatePortingOrder200Response result = apiInstance.updatePortingOrder(id, updatePortingOrder); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#updatePortingOrder"); @@ -1380,7 +1458,7 @@ Name | Type | Description | Notes ### Return type -[**ShowPortingOrder**](ShowPortingOrder.md) +[**UpdatePortingOrder200Response**](UpdatePortingOrder200Response.md) ### Authorization @@ -1401,7 +1479,7 @@ Name | Type | Description | Notes ## uploadPortingOrderDocuments -> PortingOrderDocumentsCreated uploadPortingOrderDocuments(id, UNKNOWN_BASE_TYPE) +> UploadPortingOrderDocuments201Response uploadPortingOrderDocuments(id, uploadPortingOrderDocumentsRequest) Associate a list of documents with a porting order @@ -1430,9 +1508,9 @@ public class Example { PortingOrderApi apiInstance = new PortingOrderApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | Porting Order id - UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE = new HashMap(); // UNKNOWN_BASE_TYPE | + UploadPortingOrderDocumentsRequest uploadPortingOrderDocumentsRequest = new UploadPortingOrderDocumentsRequest(); // UploadPortingOrderDocumentsRequest | try { - PortingOrderDocumentsCreated result = apiInstance.uploadPortingOrderDocuments(id, UNKNOWN_BASE_TYPE); + UploadPortingOrderDocuments201Response result = apiInstance.uploadPortingOrderDocuments(id, uploadPortingOrderDocumentsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PortingOrderApi#uploadPortingOrderDocuments"); @@ -1451,11 +1529,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **UUID**| Porting Order id | - **UNKNOWN_BASE_TYPE** | **UNKNOWN_BASE_TYPE**| | + **uploadPortingOrderDocumentsRequest** | [**UploadPortingOrderDocumentsRequest**](UploadPortingOrderDocumentsRequest.md)| | ### Return type -[**PortingOrderDocumentsCreated**](PortingOrderDocumentsCreated.md) +[**UploadPortingOrderDocuments201Response**](UploadPortingOrderDocuments201Response.md) ### Authorization diff --git a/docs/PortingOrderDocument.md b/docs/PortingOrderDocument.md index ab497bf2..1b16016a 100644 --- a/docs/PortingOrderDocument.md +++ b/docs/PortingOrderDocument.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies the document in the porting order | [optional] -**documentType** | [**DocumentTypeEnum**](#DocumentTypeEnum) | The type of document | [optional] -**documentId** | **UUID** | Uniquely identifies a document uploaded via the <code><a href=\"https://developers.telnyx.com/docs/api/v2/documents/Documents#createDocument\">/v2/documents</a></code> endpoint. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date/time when document was associated for the porting order. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies the document in the porting order | [optional] | +|**documentType** | [**DocumentTypeEnum**](#DocumentTypeEnum) | The type of document | [optional] | +|**documentId** | **UUID** | Uniquely identifies a document uploaded via the <code><a href=\"https://developers.telnyx.com/docs/api/v2/documents/Documents#createDocument\">/v2/documents</a></code> endpoint. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date/time when document was associated for the porting order. | [optional] | ## Enum: DocumentTypeEnum -Name | Value ----- | ----- -LOA | "loa" -INVOICE | "invoice" -OTHER | "other" +| Name | Value | +|---- | -----| +| LOA | "loa" | +| INVOICE | "invoice" | +| OTHER | "other" | diff --git a/docs/PortingOrderDocuments.md b/docs/PortingOrderDocuments.md index 65413b01..1afd4703 100644 --- a/docs/PortingOrderDocuments.md +++ b/docs/PortingOrderDocuments.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**loa** | **UUID** | Returned ID of the submitted LOA via the Documents endpoint | [optional] -**invoice** | **UUID** | Returned ID of the submitted Invoice via the Documents endpoint | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**loa** | **UUID** | Returned ID of the submitted LOA via the Documents endpoint | [optional] | +|**invoice** | **UUID** | Returned ID of the submitted Invoice via the Documents endpoint | [optional] | diff --git a/docs/PortingOrderEndUser.md b/docs/PortingOrderEndUser.md index 8f183146..003fb6ab 100644 --- a/docs/PortingOrderEndUser.md +++ b/docs/PortingOrderEndUser.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**admin** | [**PortingOrderEndUserAdmin**](PortingOrderEndUserAdmin.md) | | [optional] -**location** | [**PortingOrderEndUserLocation**](PortingOrderEndUserLocation.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**admin** | [**PortingOrderEndUserAdmin**](PortingOrderEndUserAdmin.md) | | [optional] | +|**location** | [**PortingOrderEndUserLocation**](PortingOrderEndUserLocation.md) | | [optional] | diff --git a/docs/PortingOrderEndUserAdmin.md b/docs/PortingOrderEndUserAdmin.md index 20117b12..91f35c66 100644 --- a/docs/PortingOrderEndUserAdmin.md +++ b/docs/PortingOrderEndUserAdmin.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**entityName** | **String** | Person Name or Company name requesting the port | [optional] -**authPersonName** | **String** | Name of person authorizing the porting order | [optional] -**billingPhoneNumber** | **String** | Billing phone number associated with these phone numbers | [optional] -**accountNumber** | **String** | The authorized person's account number with the current service provider | [optional] -**taxIdentifier** | **String** | European tax identification number. Applicable only in the European Union | [optional] -**pinPasscode** | **String** | PIN/passcode possibly required by the old service provider for extra verification | [optional] -**businessIdentifier** | **String** | European business identification number. Applicable only in the European Union | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**entityName** | **String** | Person Name or Company name requesting the port | [optional] | +|**authPersonName** | **String** | Name of person authorizing the porting order | [optional] | +|**billingPhoneNumber** | **String** | Billing phone number associated with these phone numbers | [optional] | +|**accountNumber** | **String** | The authorized person's account number with the current service provider | [optional] | +|**taxIdentifier** | **String** | European tax identification number. Applicable only in the European Union | [optional] | +|**pinPasscode** | **String** | PIN/passcode possibly required by the old service provider for extra verification | [optional] | +|**businessIdentifier** | **String** | European business identification number. Applicable only in the European Union | [optional] | diff --git a/docs/PortingOrderEndUserLocation.md b/docs/PortingOrderEndUserLocation.md index ee90b893..38761687 100644 --- a/docs/PortingOrderEndUserLocation.md +++ b/docs/PortingOrderEndUserLocation.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**streetAddress** | **String** | First line of billing address | [optional] -**extendedAddress** | **String** | Second line of billing address | [optional] -**locality** | **String** | City or municipality of billing address | [optional] -**administrativeArea** | **String** | State, province, or similar of billing address | [optional] -**postalCode** | **String** | Postal Code of billing address | [optional] -**countryCode** | **String** | ISO3166-1 alpha-2 country code of billing address | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**streetAddress** | **String** | First line of billing address | [optional] | +|**extendedAddress** | **String** | Second line of billing address | [optional] | +|**locality** | **String** | City or municipality of billing address | [optional] | +|**administrativeArea** | **String** | State, province, or similar of billing address | [optional] | +|**postalCode** | **String** | Postal Code of billing address | [optional] | +|**countryCode** | **String** | ISO3166-1 alpha-2 country code of billing address | [optional] | diff --git a/docs/PortingOrderMisc.md b/docs/PortingOrderMisc.md index 146559bf..1184e1d1 100644 --- a/docs/PortingOrderMisc.md +++ b/docs/PortingOrderMisc.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**type** | **PortingOrderType** | | [optional] -**remainingNumbersAction** | [**RemainingNumbersActionEnum**](#RemainingNumbersActionEnum) | Remaining numbers can be either kept with their current service provider or disconnected. 'new_billing_telephone_number' is required when 'remaining_numbers_action' is 'keep'. | [optional] -**newBillingPhoneNumber** | **String** | New billing phone number for the remaining numbers. Used in case the current billing phone number is being ported to Telnyx. This will be set on your account with your current service provider and should be one of the numbers remaining on that account. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **PortingOrderType** | | [optional] | +|**remainingNumbersAction** | [**RemainingNumbersActionEnum**](#RemainingNumbersActionEnum) | Remaining numbers can be either kept with their current service provider or disconnected. 'new_billing_telephone_number' is required when 'remaining_numbers_action' is 'keep'. | [optional] | +|**newBillingPhoneNumber** | **String** | New billing phone number for the remaining numbers. Used in case the current billing phone number is being ported to Telnyx. This will be set on your account with your current service provider and should be one of the numbers remaining on that account. | [optional] | ## Enum: RemainingNumbersActionEnum -Name | Value ----- | ----- -KEEP | "keep" -DISCONNECT | "disconnect" +| Name | Value | +|---- | -----| +| KEEP | "keep" | +| DISCONNECT | "disconnect" | diff --git a/docs/PortingOrderPhoneNumberConfiguration.md b/docs/PortingOrderPhoneNumberConfiguration.md index 60a047c8..b7870b91 100644 --- a/docs/PortingOrderPhoneNumberConfiguration.md +++ b/docs/PortingOrderPhoneNumberConfiguration.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | identifies the connection to set on the numbers when ported | [optional] -**messagingProfileId** | **String** | identifies the messaging profile to set on the numbers when ported | [optional] -**emergencyAddressId** | **String** | identifies the emergency address to set on the numbers when ported | [optional] -**tags** | **List<String>** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | identifies the connection to set on the numbers when ported | [optional] | +|**messagingProfileId** | **String** | identifies the messaging profile to set on the numbers when ported | [optional] | +|**emergencyAddressId** | **String** | identifies the emergency address to set on the numbers when ported | [optional] | +|**tags** | **List<String>** | | [optional] | diff --git a/docs/PortingOrderRequirement.md b/docs/PortingOrderRequirement.md index 499996df..cdb1375c 100644 --- a/docs/PortingOrderRequirement.md +++ b/docs/PortingOrderRequirement.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldType** | [**FieldTypeEnum**](#FieldTypeEnum) | Type of value expected on field_value field | [optional] -**fieldValue** | **String** | identifies the document that satisfies this requirement | [optional] -**requirementTypeId** | **String** | Identifies the requirement type that meets this requirement | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fieldType** | [**FieldTypeEnum**](#FieldTypeEnum) | Type of value expected on field_value field | [optional] | +|**fieldValue** | **String** | identifies the document that satisfies this requirement | [optional] | +|**requirementTypeId** | **String** | Identifies the requirement type that meets this requirement | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | ## Enum: FieldTypeEnum -Name | Value ----- | ----- -DOCUMENT | "document" +| Name | Value | +|---- | -----| +| DOCUMENT | "document" | diff --git a/docs/PortingOrderRequirementDetail.md b/docs/PortingOrderRequirementDetail.md new file mode 100644 index 00000000..a0ecbd09 --- /dev/null +++ b/docs/PortingOrderRequirementDetail.md @@ -0,0 +1,26 @@ + + +# PortingOrderRequirementDetail + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fieldType** | [**FieldTypeEnum**](#FieldTypeEnum) | Type of value expected on field_value field | [optional] | +|**fieldValue** | **String** | Identifies the document that satisfies this requirement | [optional] | +|**requirementType** | [**PortingOrderRequirementDetailRequirementType**](PortingOrderRequirementDetailRequirementType.md) | | [optional] | +|**requirementStatus** | **String** | Status of the requirement | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | + + + +## Enum: FieldTypeEnum + +| Name | Value | +|---- | -----| +| DOCUMENT | "document" | +| TEXTUAL | "textual" | + + + diff --git a/docs/PortingOrderRequirementDetailRequirementType.md b/docs/PortingOrderRequirementDetailRequirementType.md new file mode 100644 index 00000000..c0cf541f --- /dev/null +++ b/docs/PortingOrderRequirementDetailRequirementType.md @@ -0,0 +1,19 @@ + + +# PortingOrderRequirementDetailRequirementType + +Identifies the requirement type that meets this requirement + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**acceptanceCriteria** | **Object** | The acceptance criteria for the requirement type | [optional] | +|**description** | **String** | A description of the requirement type | [optional] | +|**example** | **String** | An example of the requirement type | [optional] | +|**id** | **String** | Identifies the requirement type | [optional] | +|**name** | **String** | The name of the requirement type | [optional] | +|**type** | **String** | The type of the requirement type | [optional] | + + + diff --git a/docs/PortingOrderStatus.md b/docs/PortingOrderStatus.md index 7264ca48..ffd7c8d1 100644 --- a/docs/PortingOrderStatus.md +++ b/docs/PortingOrderStatus.md @@ -6,25 +6,25 @@ Porting order status ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**details** | [**List<PortingOrdersExceptionType>**](PortingOrdersExceptionType.md) | A list of 0 or more details about this porting order's status | [optional] -**value** | [**ValueEnum**](#ValueEnum) | The current status of the porting order | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**details** | [**List<PortingOrdersExceptionType>**](PortingOrdersExceptionType.md) | A list of 0 or more details about this porting order's status | [optional] | +|**value** | [**ValueEnum**](#ValueEnum) | The current status of the porting order | [optional] | ## Enum: ValueEnum -Name | Value ----- | ----- -DRAFT | "draft" -IN_PROCESS | "in-process" -SUBMITTED | "submitted" -EXCEPTION | "exception" -FOC_DATE_CONFIRMED | "foc-date-confirmed" -PORTED | "ported" -CANCELED | "canceled" -CANCEL_PENDING | "cancel-pending" +| Name | Value | +|---- | -----| +| DRAFT | "draft" | +| IN_PROCESS | "in-process" | +| SUBMITTED | "submitted" | +| EXCEPTION | "exception" | +| FOC_DATE_CONFIRMED | "foc-date-confirmed" | +| PORTED | "ported" | +| CANCELED | "canceled" | +| CANCEL_PENDING | "cancel-pending" | diff --git a/docs/PortingOrderUserFeedback.md b/docs/PortingOrderUserFeedback.md index c3ef5f51..882c8b60 100644 --- a/docs/PortingOrderUserFeedback.md +++ b/docs/PortingOrderUserFeedback.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**userRating** | **Integer** | Once an order is ported, cancellation is requested or the request is canceled, the user may rate their experience | [optional] -**userComment** | **String** | A comment related to the customer rating. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**userRating** | **Integer** | Once an order is ported, cancellation is requested or the request is canceled, the user may rate their experience | [optional] | +|**userComment** | **String** | A comment related to the customer rating. | [optional] | diff --git a/docs/PortingOrdersActivationJob.md b/docs/PortingOrdersActivationJob.md index b0b2cbee..87f23663 100644 --- a/docs/PortingOrdersActivationJob.md +++ b/docs/PortingOrdersActivationJob.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies this activation job | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | Specifies the status of this activation job | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies this activation job | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | Specifies the status of this activation job | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -CREATED | "created" -IN_PROCESS | "in-process" -COMPLETED | "completed" -FAILED | "failed" +| Name | Value | +|---- | -----| +| CREATED | "created" | +| IN_PROCESS | "in-process" | +| COMPLETED | "completed" | +| FAILED | "failed" | diff --git a/docs/PortingOrdersAllowedFocWindow.md b/docs/PortingOrdersAllowedFocWindow.md index 0943ba1d..538bbb39 100644 --- a/docs/PortingOrdersAllowedFocWindow.md +++ b/docs/PortingOrdersAllowedFocWindow.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating the start of the range of foc window. | [optional] [readonly] -**endedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating the end of the range of foc window | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating the start of the range of foc window. | [optional] [readonly] | +|**endedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating the end of the range of foc window | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | diff --git a/docs/PortingOrdersComment.md b/docs/PortingOrdersComment.md index 15170f74..eb867c26 100644 --- a/docs/PortingOrdersComment.md +++ b/docs/PortingOrdersComment.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] -**body** | **String** | Body of comment | [optional] -**portingOrderId** | **UUID** | | [optional] -**userType** | [**UserTypeEnum**](#UserTypeEnum) | Indicates whether this comment was created by a Telnyx Admin, user, or system | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] | +|**body** | **String** | Body of comment | [optional] | +|**portingOrderId** | **UUID** | | [optional] | +|**userType** | [**UserTypeEnum**](#UserTypeEnum) | Indicates whether this comment was created by a Telnyx Admin, user, or system | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] | ## Enum: UserTypeEnum -Name | Value ----- | ----- -ADMIN | "admin" -USER | "user" -SYSTEM | "system" +| Name | Value | +|---- | -----| +| ADMIN | "admin" | +| USER | "user" | +| SYSTEM | "system" | diff --git a/docs/PortingOrdersExceptionType.md b/docs/PortingOrdersExceptionType.md index 3b1d95f3..f9256744 100644 --- a/docs/PortingOrdersExceptionType.md +++ b/docs/PortingOrdersExceptionType.md @@ -5,39 +5,39 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | [**CodeEnum**](#CodeEnum) | Identifier of an exception type | [optional] -**description** | **String** | Description of an exception type | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | [**CodeEnum**](#CodeEnum) | Identifier of an exception type | [optional] | +|**description** | **String** | Description of an exception type | [optional] | ## Enum: CodeEnum -Name | Value ----- | ----- -ACCOUNT_NUMBER_MISMATCH | "ACCOUNT_NUMBER_MISMATCH" -AUTH_PERSON_MISMATCH | "AUTH_PERSON_MISMATCH" -BTN_ATN_MISMATCH | "BTN_ATN_MISMATCH" -ENTITY_NAME_MISMATCH | "ENTITY_NAME_MISMATCH" -FOC_EXPIRED | "FOC_EXPIRED" -FOC_REJECTED | "FOC_REJECTED" -LOCATION_MISMATCH | "LOCATION_MISMATCH" -LSR_PENDING | "LSR_PENDING" -MAIN_BTN_PORTING | "MAIN_BTN_PORTING" -OSP_IRRESPONSIVE | "OSP_IRRESPONSIVE" -OTHER | "OTHER" -PASSCODE_PIN_INVALID | "PASSCODE_PIN_INVALID" -PHONE_NUMBER_HAS_SPECIAL_FEATURE | "PHONE_NUMBER_HAS_SPECIAL_FEATURE" -PHONE_NUMBER_MISMATCH | "PHONE_NUMBER_MISMATCH" -PHONE_NUMBER_NOT_PORTABLE | "PHONE_NUMBER_NOT_PORTABLE" -PORT_TYPE_INCORRECT | "PORT_TYPE_INCORRECT" -PORTING_ORDER_SPLIT_REQUIRED | "PORTING_ORDER_SPLIT_REQUIRED" -PORTING_ORDER_SPLIT_REQUIRED | "PORTING_ORDER_SPLIT_REQUIRED" -POSTAL_CODE_MISMATCH | "POSTAL_CODE_MISMATCH" -RATE_CENTER_NOT_PORTABLE | "RATE_CENTER_NOT_PORTABLE" -SV_CONFLICT | "SV_CONFLICT" -SV_UNKNOWN_FAILURE | "SV_UNKNOWN_FAILURE" +| Name | Value | +|---- | -----| +| ACCOUNT_NUMBER_MISMATCH | "ACCOUNT_NUMBER_MISMATCH" | +| AUTH_PERSON_MISMATCH | "AUTH_PERSON_MISMATCH" | +| BTN_ATN_MISMATCH | "BTN_ATN_MISMATCH" | +| ENTITY_NAME_MISMATCH | "ENTITY_NAME_MISMATCH" | +| FOC_EXPIRED | "FOC_EXPIRED" | +| FOC_REJECTED | "FOC_REJECTED" | +| LOCATION_MISMATCH | "LOCATION_MISMATCH" | +| LSR_PENDING | "LSR_PENDING" | +| MAIN_BTN_PORTING | "MAIN_BTN_PORTING" | +| OSP_IRRESPONSIVE | "OSP_IRRESPONSIVE" | +| OTHER | "OTHER" | +| PASSCODE_PIN_INVALID | "PASSCODE_PIN_INVALID" | +| PHONE_NUMBER_HAS_SPECIAL_FEATURE | "PHONE_NUMBER_HAS_SPECIAL_FEATURE" | +| PHONE_NUMBER_MISMATCH | "PHONE_NUMBER_MISMATCH" | +| PHONE_NUMBER_NOT_PORTABLE | "PHONE_NUMBER_NOT_PORTABLE" | +| PORT_TYPE_INCORRECT | "PORT_TYPE_INCORRECT" | +| PORTING_ORDER_SPLIT_REQUIRED | "PORTING_ORDER_SPLIT_REQUIRED" | +| PORTING_ORDER_SPLIT_REQUIRED | "PORTING_ORDER_SPLIT_REQUIRED" | +| POSTAL_CODE_MISMATCH | "POSTAL_CODE_MISMATCH" | +| RATE_CENTER_NOT_PORTABLE | "RATE_CENTER_NOT_PORTABLE" | +| SV_CONFLICT | "SV_CONFLICT" | +| SV_UNKNOWN_FAILURE | "SV_UNKNOWN_FAILURE" | diff --git a/docs/PortingPhoneNumber.md b/docs/PortingPhoneNumber.md index c61d61be..0231a59a 100644 --- a/docs/PortingPhoneNumber.md +++ b/docs/PortingPhoneNumber.md @@ -5,56 +5,56 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**portingOrderStatus** | [**PortingOrderStatusEnum**](#PortingOrderStatusEnum) | The current status of the porting order | [optional] -**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | The type of the phone number | [optional] -**phoneNumber** | **String** | E164 formatted phone number | [optional] -**portingOrderId** | **UUID** | Identifies the associated port request | [optional] -**supportKey** | **String** | A key to reference this porting order when contacting Telnyx customer support | [optional] -**activationStatus** | **PortingOrderActivationStatus** | | [optional] -**portabilityStatus** | **PortabilityStatus** | | [optional] -**requirementsStatus** | [**RequirementsStatusEnum**](#RequirementsStatusEnum) | The current status of the requirements in a INTL porting order | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**portingOrderStatus** | [**PortingOrderStatusEnum**](#PortingOrderStatusEnum) | The current status of the porting order | [optional] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | The type of the phone number | [optional] | +|**phoneNumber** | **String** | E164 formatted phone number | [optional] | +|**portingOrderId** | **UUID** | Identifies the associated port request | [optional] | +|**supportKey** | **String** | A key to reference this porting order when contacting Telnyx customer support | [optional] | +|**activationStatus** | **PortingOrderActivationStatus** | | [optional] | +|**portabilityStatus** | **PortabilityStatus** | | [optional] | +|**requirementsStatus** | [**RequirementsStatusEnum**](#RequirementsStatusEnum) | The current status of the requirements in a INTL porting order | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | ## Enum: PortingOrderStatusEnum -Name | Value ----- | ----- -DRAFT | "draft" -IN_PROCESS | "in-process" -SUBMITTED | "submitted" -EXCEPTION | "exception" -FOC_DATE_CONFIRMED | "foc-date-confirmed" -CANCEL_PENDING | "cancel-pending" -PORTED | "ported" -CANCELLED | "cancelled" +| Name | Value | +|---- | -----| +| DRAFT | "draft" | +| IN_PROCESS | "in-process" | +| SUBMITTED | "submitted" | +| EXCEPTION | "exception" | +| FOC_DATE_CONFIRMED | "foc-date-confirmed" | +| CANCEL_PENDING | "cancel-pending" | +| PORTED | "ported" | +| CANCELLED | "cancelled" | ## Enum: PhoneNumberTypeEnum -Name | Value ----- | ----- -LANDLINE | "landline" -LOCAL | "local" -MOBILE | "mobile" -NATIONAL | "national" -SHARED_COST | "shared_cost" -TOLL_FREE | "toll_free" +| Name | Value | +|---- | -----| +| LANDLINE | "landline" | +| LOCAL | "local" | +| MOBILE | "mobile" | +| NATIONAL | "national" | +| SHARED_COST | "shared_cost" | +| TOLL_FREE | "toll_free" | ## Enum: RequirementsStatusEnum -Name | Value ----- | ----- -REQUIREMENT_INFO_PENDING | "requirement-info-pending" -REQUIREMENT_INFO_UNDER_REVIEW | "requirement-info-under-review" -REQUIREMENT_INFO_EXCEPTION | "requirement-info-exception" -APPROVED | "approved" +| Name | Value | +|---- | -----| +| REQUIREMENT_INFO_PENDING | "requirement-info-pending" | +| REQUIREMENT_INFO_UNDER_REVIEW | "requirement-info-under-review" | +| REQUIREMENT_INFO_EXCEPTION | "requirement-info-exception" | +| APPROVED | "approved" | diff --git a/docs/PortoutComment.md b/docs/PortoutComment.md index 0701e770..f4f1fcb4 100644 --- a/docs/PortoutComment.md +++ b/docs/PortoutComment.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**body** | **String** | Comment body | -**portoutId** | **String** | Identifies the associated port request | [optional] -**userId** | **String** | Identifies the user who created the comment. Will be null if created by Telnyx Admin | -**createdAt** | **String** | Comment creation timestamp in ISO 8601 format | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**body** | **String** | Comment body | | +|**portoutId** | **String** | Identifies the associated port request | [optional] | +|**userId** | **String** | Identifies the user who created the comment. Will be null if created by Telnyx Admin | | +|**createdAt** | **String** | Comment creation timestamp in ISO 8601 format | | diff --git a/docs/PortoutDetails.md b/docs/PortoutDetails.md index 2006d86c..7510f6ac 100644 --- a/docs/PortoutDetails.md +++ b/docs/PortoutDetails.md @@ -5,31 +5,46 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**phoneNumbers** | **List<String>** | Phone numbers associated with this portout | [optional] -**carrierName** | **String** | Carrier the number will be ported out to | [optional] -**focDate** | **String** | ISO 8601 formatted Date/Time of the FOC date | [optional] -**requestedFocDate** | **String** | ISO 8601 formatted Date/Time of the user requested FOC date | [optional] -**spid** | **String** | New service provider spid | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Status of portout request | [optional] -**createdAt** | **String** | ISO 8601 formatted date of when the portout was created | [optional] -**updatedAt** | **String** | ISO 8601 formatted date of when the portout was last updated | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**phoneNumbers** | **List<String>** | Phone numbers associated with this portout | [optional] | +|**authorizedName** | **String** | Name of person authorizing the porting order | [optional] | +|**carrierName** | **String** | Carrier the number will be ported out to | [optional] | +|**currentCarrier** | **String** | The current carrier | [optional] | +|**endUserName** | **String** | Person name or company name requesting the port | [optional] | +|**city** | **String** | City or municipality of billing address | [optional] | +|**state** | **String** | State, province, or similar of billing address | [optional] | +|**zip** | **String** | Postal Code of billing address | [optional] | +|**lsr** | **List<URI>** | The Local Service Request | [optional] | +|**pon** | **String** | Port order number assigned by the carrier the number will be ported out to | [optional] | +|**reason** | **String** | The reason why the order is being rejected by the user. If the order is authorized, this field can be left null | [optional] | +|**serviceAddress** | **String** | First line of billing address (street address) | [optional] | +|**focDate** | **String** | ISO 8601 formatted Date/Time of the FOC date | [optional] | +|**requestedFocDate** | **String** | ISO 8601 formatted Date/Time of the user requested FOC date | [optional] | +|**spid** | **String** | New service provider spid | [optional] | +|**supportKey** | **String** | A key to reference this port out request when contacting Telnyx customer support | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Status of portout request | [optional] | +|**alreadyPorted** | **Boolean** | Is true when the number is already ported | [optional] | +|**userId** | **UUID** | Identifies the user (or organization) who requested the port out | [optional] | +|**vendor** | **UUID** | Telnyx partner providing network coverage | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date of when the portout was created | [optional] | +|**insertedAt** | **String** | ISO 8601 formatted date of when the portout was created | [optional] | +|**updatedAt** | **String** | ISO 8601 formatted date of when the portout was last updated | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -AUTHORIZED | "authorized" -PORTED | "ported" -REJECTED | "rejected" -REJECTED_PENDING | "rejected-pending" -CANCELED | "canceled" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| AUTHORIZED | "authorized" | +| PORTED | "ported" | +| REJECTED | "rejected" | +| REJECTED_PENDING | "rejected-pending" | +| CANCELED | "canceled" | diff --git a/docs/PostPortRequestComment201Response.md b/docs/PostPortRequestComment201Response.md new file mode 100644 index 00000000..3798a07f --- /dev/null +++ b/docs/PostPortRequestComment201Response.md @@ -0,0 +1,13 @@ + + +# PostPortRequestComment201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortoutComment**](PortoutComment.md) | | [optional] | + + + diff --git a/docs/PostPortRequestCommentRequest.md b/docs/PostPortRequestCommentRequest.md new file mode 100644 index 00000000..37f3d0c4 --- /dev/null +++ b/docs/PostPortRequestCommentRequest.md @@ -0,0 +1,13 @@ + + +# PostPortRequestCommentRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**body** | **String** | Comment to post on this portout request | [optional] | + + + diff --git a/docs/PostPortRequestSupportingDocumentsRequest.md b/docs/PostPortRequestSupportingDocumentsRequest.md new file mode 100644 index 00000000..1746b8b8 --- /dev/null +++ b/docs/PostPortRequestSupportingDocumentsRequest.md @@ -0,0 +1,13 @@ + + +# PostPortRequestSupportingDocumentsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**documents** | [**List<PostPortRequestSupportingDocumentsRequestDocumentsInner>**](PostPortRequestSupportingDocumentsRequestDocumentsInner.md) | List of supporting documents parameters | [optional] | + + + diff --git a/docs/PostPortRequestSupportingDocumentsRequestDocumentsInner.md b/docs/PostPortRequestSupportingDocumentsRequestDocumentsInner.md new file mode 100644 index 00000000..0cd1041b --- /dev/null +++ b/docs/PostPortRequestSupportingDocumentsRequestDocumentsInner.md @@ -0,0 +1,23 @@ + + +# PostPortRequestSupportingDocumentsRequestDocumentsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | Identifies the type of the document | | +|**documentId** | **UUID** | Identifies the associated document | | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| LOA | "loa" | +| INVOICE | "invoice" | + + + diff --git a/docs/PostPortabilityCheck201Response.md b/docs/PostPortabilityCheck201Response.md new file mode 100644 index 00000000..310c4e94 --- /dev/null +++ b/docs/PostPortabilityCheck201Response.md @@ -0,0 +1,13 @@ + + +# PostPortabilityCheck201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortabilityCheckDetails>**](PortabilityCheckDetails.md) | | [optional] | + + + diff --git a/docs/PostPortabilityCheckRequest.md b/docs/PostPortabilityCheckRequest.md new file mode 100644 index 00000000..9148d9be --- /dev/null +++ b/docs/PostPortabilityCheckRequest.md @@ -0,0 +1,13 @@ + + +# PostPortabilityCheckRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | **List<String>** | The list of +E.164 formatted phone numbers to check for portability | [optional] | + + + diff --git a/docs/PostValidateRegistrationCodesRequest.md b/docs/PostValidateRegistrationCodesRequest.md new file mode 100644 index 00000000..db9da5dd --- /dev/null +++ b/docs/PostValidateRegistrationCodesRequest.md @@ -0,0 +1,14 @@ + + +# PostValidateRegistrationCodesRequest + +The object containing the Array of SIM card registration codes. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**registrationCodes** | **List<String>** | | [optional] | + + + diff --git a/docs/PrivateWirelessGateway.md b/docs/PrivateWirelessGateway.md index 6b67f791..26ff857c 100644 --- a/docs/PrivateWirelessGateway.md +++ b/docs/PrivateWirelessGateway.md @@ -5,17 +5,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**networkId** | **UUID** | The identification of the related network resource. | [optional] -**recordType** | **String** | | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] -**name** | **String** | The private wireless gateway name. | [optional] -**regionCode** | **String** | The geographical region where the Private Wireless Gateway is deployed to. | [optional] -**status** | [**PrivateWirelessGatewayStatus**](PrivateWirelessGatewayStatus.md) | | [optional] -**ipRange** | **String** | IP block used to assign IPs to the SIM cards in the Private Wireless Gateway. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**networkId** | **UUID** | The identification of the related network resource. | [optional] | +|**recordType** | **String** | | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**name** | **String** | The private wireless gateway name. | [optional] | +|**regionCode** | **String** | The geographical region where the Private Wireless Gateway is deployed to. | [optional] | +|**status** | [**PrivateWirelessGatewayStatus**](PrivateWirelessGatewayStatus.md) | | [optional] | +|**ipRange** | **String** | IP block used to assign IPs to the SIM cards in the Private Wireless Gateway. | [optional] [readonly] | +|**assignedResources** | [**List<PWGAssignedResourcesSummary>**](PWGAssignedResourcesSummary.md) | A list of the resources that have been assigned to the Private Wireless Gateway | [optional] | diff --git a/docs/PrivateWirelessGatewayRequest.md b/docs/PrivateWirelessGatewayRequest.md index 63dd641f..ec3f7290 100644 --- a/docs/PrivateWirelessGatewayRequest.md +++ b/docs/PrivateWirelessGatewayRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**networkId** | **UUID** | The identification of the related network resource. | [optional] -**name** | **String** | The private wireless gateway name. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**networkId** | **UUID** | The identification of the related network resource. | [optional] | +|**name** | **String** | The private wireless gateway name. | [optional] | diff --git a/docs/PrivateWirelessGatewayStatus.md b/docs/PrivateWirelessGatewayStatus.md index d8eea2ce..12b71462 100644 --- a/docs/PrivateWirelessGatewayStatus.md +++ b/docs/PrivateWirelessGatewayStatus.md @@ -6,22 +6,22 @@ The current status or failure details of the Private Wireless Gateway. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**ValueEnum**](#ValueEnum) | The current status or failure details of the Private Wireless Gateway. <ul> <li><code>provisioning</code> - the Private Wireless Gateway is being provisioned.</li> <li><code>provisioned</code> - the Private Wireless Gateway was provisioned and able to receive connections.</li> <li><code>failed</code> - the provisioning had failed for a reason and it requires an intervention.</li> <li><code>decommissioning</code> - the Private Wireless Gateway is being removed from the network.</li> </ul> Transitioning between the provisioning and provisioned states may take some time. | [optional] [readonly] -**errorDescription** | **String** | This attribute provides a human-readable explanation of why a failure happened. | [optional] [readonly] -**errorCode** | **String** | This attribute is an <a href=\"https://developers.telnyx.com/docs/api/v2/overview#errors\">error code</a> related to the failure reason. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | [**ValueEnum**](#ValueEnum) | The current status or failure details of the Private Wireless Gateway. <ul> <li><code>provisioning</code> - the Private Wireless Gateway is being provisioned.</li> <li><code>provisioned</code> - the Private Wireless Gateway was provisioned and able to receive connections.</li> <li><code>failed</code> - the provisioning had failed for a reason and it requires an intervention.</li> <li><code>decommissioning</code> - the Private Wireless Gateway is being removed from the network.</li> </ul> Transitioning between the provisioning and provisioned states may take some time. | [optional] [readonly] | +|**errorDescription** | **String** | This attribute provides a human-readable explanation of why a failure happened. | [optional] [readonly] | +|**errorCode** | **String** | This attribute is an <a href=\"https://developers.telnyx.com/docs/api/v2/overview#errors\">error code</a> related to the failure reason. | [optional] [readonly] | ## Enum: ValueEnum -Name | Value ----- | ----- -PROVISIONING | "provisioning" -PROVISIONED | "provisioned" -FAILED | "failed" -DECOMMISSIONING | "decommissioning" +| Name | Value | +|---- | -----| +| PROVISIONING | "provisioning" | +| PROVISIONED | "provisioned" | +| FAILED | "failed" | +| DECOMMISSIONING | "decommissioning" | diff --git a/docs/PrivateWirelessGatewaysApi.md b/docs/PrivateWirelessGatewaysApi.md index f2e9a648..fcb2a470 100644 --- a/docs/PrivateWirelessGatewaysApi.md +++ b/docs/PrivateWirelessGatewaysApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## createPrivateWirelessGateway -> CreatePrivateWirelessGatewayResponse createPrivateWirelessGateway(createPrivateWirelessGatwewayRequest) +> CreatePrivateWirelessGateway202Response createPrivateWirelessGateway(createPrivateWirelessGatewayRequest) Create a Private Wireless Gateway @@ -40,9 +40,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); PrivateWirelessGatewaysApi apiInstance = new PrivateWirelessGatewaysApi(defaultClient); - CreatePrivateWirelessGatwewayRequest createPrivateWirelessGatwewayRequest = new CreatePrivateWirelessGatwewayRequest(); // CreatePrivateWirelessGatwewayRequest | + CreatePrivateWirelessGatewayRequest createPrivateWirelessGatewayRequest = new CreatePrivateWirelessGatewayRequest(); // CreatePrivateWirelessGatewayRequest | try { - CreatePrivateWirelessGatewayResponse result = apiInstance.createPrivateWirelessGateway(createPrivateWirelessGatwewayRequest); + CreatePrivateWirelessGateway202Response result = apiInstance.createPrivateWirelessGateway(createPrivateWirelessGatewayRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PrivateWirelessGatewaysApi#createPrivateWirelessGateway"); @@ -60,11 +60,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createPrivateWirelessGatwewayRequest** | [**CreatePrivateWirelessGatwewayRequest**](CreatePrivateWirelessGatwewayRequest.md)| | + **createPrivateWirelessGatewayRequest** | [**CreatePrivateWirelessGatewayRequest**](CreatePrivateWirelessGatewayRequest.md)| | ### Return type -[**CreatePrivateWirelessGatewayResponse**](CreatePrivateWirelessGatewayResponse.md) +[**CreatePrivateWirelessGateway202Response**](CreatePrivateWirelessGateway202Response.md) ### Authorization @@ -85,7 +85,7 @@ Name | Type | Description | Notes ## deletePrivateWirelessGateway -> DeletePrivateWirelessGatewayResponse deletePrivateWirelessGateway(id) +> CreatePrivateWirelessGateway202Response deletePrivateWirelessGateway(id) Delete a Private Wireless Gateway @@ -115,7 +115,7 @@ public class Example { PrivateWirelessGatewaysApi apiInstance = new PrivateWirelessGatewaysApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - DeletePrivateWirelessGatewayResponse result = apiInstance.deletePrivateWirelessGateway(id); + CreatePrivateWirelessGateway202Response result = apiInstance.deletePrivateWirelessGateway(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PrivateWirelessGatewaysApi#deletePrivateWirelessGateway"); @@ -137,7 +137,7 @@ Name | Type | Description | Notes ### Return type -[**DeletePrivateWirelessGatewayResponse**](DeletePrivateWirelessGatewayResponse.md) +[**CreatePrivateWirelessGateway202Response**](CreatePrivateWirelessGateway202Response.md) ### Authorization @@ -158,7 +158,7 @@ Name | Type | Description | Notes ## getPrivateWirelessGateway -> GetPrivateWirelessGatewayResponse getPrivateWirelessGateway(id) +> CreatePrivateWirelessGateway202Response getPrivateWirelessGateway(id) Get a Private Wireless Gateway @@ -188,7 +188,7 @@ public class Example { PrivateWirelessGatewaysApi apiInstance = new PrivateWirelessGatewaysApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - GetPrivateWirelessGatewayResponse result = apiInstance.getPrivateWirelessGateway(id); + CreatePrivateWirelessGateway202Response result = apiInstance.getPrivateWirelessGateway(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PrivateWirelessGatewaysApi#getPrivateWirelessGateway"); @@ -210,7 +210,7 @@ Name | Type | Description | Notes ### Return type -[**GetPrivateWirelessGatewayResponse**](GetPrivateWirelessGatewayResponse.md) +[**CreatePrivateWirelessGateway202Response**](CreatePrivateWirelessGateway202Response.md) ### Authorization @@ -231,7 +231,7 @@ Name | Type | Description | Notes ## getPrivateWirelessGateways -> GetAllPrivateWirelessGatewaysResponse getPrivateWirelessGateways(pageNumber, pageSize, filterName, filterIpRange, filterRegionCode, filterCreatedAt, filterUpdatedAt) +> GetPrivateWirelessGateways200Response getPrivateWirelessGateways(pageNumber, pageSize, filterName, filterIpRange, filterRegionCode, filterCreatedAt, filterUpdatedAt) Get all Private Wireless Gateways @@ -266,7 +266,7 @@ public class Example { String filterCreatedAt = "2018-02-02T22:25:27.521Z"; // String | Private Wireless Gateway resource creation date. String filterUpdatedAt = "2018-02-02T22:25:27.521Z"; // String | When the Private Wireless Gateway was last updated. try { - GetAllPrivateWirelessGatewaysResponse result = apiInstance.getPrivateWirelessGateways(pageNumber, pageSize, filterName, filterIpRange, filterRegionCode, filterCreatedAt, filterUpdatedAt); + GetPrivateWirelessGateways200Response result = apiInstance.getPrivateWirelessGateways(pageNumber, pageSize, filterName, filterIpRange, filterRegionCode, filterCreatedAt, filterUpdatedAt); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling PrivateWirelessGatewaysApi#getPrivateWirelessGateways"); @@ -294,7 +294,7 @@ Name | Type | Description | Notes ### Return type -[**GetAllPrivateWirelessGatewaysResponse**](GetAllPrivateWirelessGatewaysResponse.md) +[**GetPrivateWirelessGateways200Response**](GetPrivateWirelessGateways200Response.md) ### Authorization diff --git a/docs/ProgrammableFaxApplicationsApi.md b/docs/ProgrammableFaxApplicationsApi.md index e3b4698a..032a4ceb 100644 --- a/docs/ProgrammableFaxApplicationsApi.md +++ b/docs/ProgrammableFaxApplicationsApi.md @@ -231,7 +231,7 @@ Name | Type | Description | Notes ## listFaxApplications -> GetAllFaxApplicationsResponse listFaxApplications(pageNumber, pageSize, filterApplicationNameContains, filterOutboundOutboundVoiceProfileId, sort) +> GetAllFaxApplicationsResponse listFaxApplications(pageNumber, pageSize, filterApplicationNameContains, filterOutboundVoiceProfileId, sort) List all Fax Applications @@ -261,10 +261,10 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page String filterApplicationNameContains = "null"; // String | If present, applications with application_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. - String filterOutboundOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. + String filterOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • connection_name: sorts the result by the connection_name field in ascending order.
  • -connection_name: sorts the result by the connection_name field in descending order.

If not given, results are sorted by created_at in descending order. try { - GetAllFaxApplicationsResponse result = apiInstance.listFaxApplications(pageNumber, pageSize, filterApplicationNameContains, filterOutboundOutboundVoiceProfileId, sort); + GetAllFaxApplicationsResponse result = apiInstance.listFaxApplications(pageNumber, pageSize, filterApplicationNameContains, filterOutboundVoiceProfileId, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ProgrammableFaxApplicationsApi#listFaxApplications"); @@ -285,7 +285,7 @@ Name | Type | Description | Notes **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] **filterApplicationNameContains** | **String**| If present, applications with <code>application_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] - **filterOutboundOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] + **filterOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] ### Return type diff --git a/docs/ProgrammableFaxCommandsApi.md b/docs/ProgrammableFaxCommandsApi.md index 8a98a6d0..9c70369b 100644 --- a/docs/ProgrammableFaxCommandsApi.md +++ b/docs/ProgrammableFaxCommandsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- +[**cancelFax**](ProgrammableFaxCommandsApi.md#cancelFax) | **POST** /faxes/{id}/actions/cancel | Cancel a fax [**deleteFax**](ProgrammableFaxCommandsApi.md#deleteFax) | **DELETE** /faxes/{id} | Delete a fax [**listFaxes**](ProgrammableFaxCommandsApi.md#listFaxes) | **GET** /faxes | View a list of faxes [**refreshFax**](ProgrammableFaxCommandsApi.md#refreshFax) | **POST** /faxes/{id}/actions/refresh | Refresh a fax @@ -12,6 +13,80 @@ Method | HTTP request | Description +## cancelFax + +> SuccessfulResponseUponAcceptingCancelFaxCommand cancelFax(id) + +Cancel a fax + +Cancel the outbound fax that is in one of the following states: `queued`, `media.processed`, `originated` or `sending` + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.ProgrammableFaxCommandsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + ProgrammableFaxCommandsApi apiInstance = new ProgrammableFaxCommandsApi(defaultClient); + UUID id = UUID.randomUUID(); // UUID | The unique identifier of a fax. + try { + SuccessfulResponseUponAcceptingCancelFaxCommand result = apiInstance.cancelFax(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling ProgrammableFaxCommandsApi#cancelFax"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| The unique identifier of a fax. | + +### Return type + +[**SuccessfulResponseUponAcceptingCancelFaxCommand**](SuccessfulResponseUponAcceptingCancelFaxCommand.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful response upon accepting cancel fax command | - | +| **404** | Fax does not exist | - | +| **422** | Unprocessable entity | - | +| **0** | Unexpected error | - | + + ## deleteFax > deleteFax(id) @@ -87,6 +162,8 @@ null (empty response body) View a list of faxes + + ### Example ```java @@ -234,7 +311,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Refresh fax response | - | -| **404** | Conference does not exist | - | +| **404** | Fax does not exist | - | | **0** | Unexpected error | - | @@ -244,6 +321,17 @@ Name | Type | Description | Notes Send a fax +Send a fax. Files have size limits and page count limit validations. If a file is bigger than 50MB or has more than 350 pages it will fail with `file_size_limit_exceeded` and `page_count_limit_exceeded` respectively. + +**Expected Webhooks:** + +- `fax.queued` +- `fax.media.processed` +- `fax.sending.started` +- `fax.delivered` +- `fax.failed` + + ### Example ```java diff --git a/docs/PublicInternetGateway.md b/docs/PublicInternetGateway.md new file mode 100644 index 00000000..229a69d7 --- /dev/null +++ b/docs/PublicInternetGateway.md @@ -0,0 +1,20 @@ + + +# PublicInternetGateway + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | [optional] | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**publicIp** | **String** | The publically accessible ip for this interface. | [optional] [readonly] | + + + diff --git a/docs/PublicInternetGateway1.md b/docs/PublicInternetGateway1.md new file mode 100644 index 00000000..29c5bbb9 --- /dev/null +++ b/docs/PublicInternetGateway1.md @@ -0,0 +1,14 @@ + + +# PublicInternetGateway1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**publicIp** | **String** | The publically accessible ip for this interface. | [optional] [readonly] | + + + diff --git a/docs/PublicInternetGatewayCreate.md b/docs/PublicInternetGatewayCreate.md new file mode 100644 index 00000000..65f6e58c --- /dev/null +++ b/docs/PublicInternetGatewayCreate.md @@ -0,0 +1,21 @@ + + +# PublicInternetGatewayCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**publicIp** | **String** | The publically accessible ip for this interface. | [optional] [readonly] | +|**regionCode** | **String** | The region the interface should be deployed to. | [optional] | + + + diff --git a/docs/PublicInternetGatewayCreate202Response.md b/docs/PublicInternetGatewayCreate202Response.md new file mode 100644 index 00000000..218a5dca --- /dev/null +++ b/docs/PublicInternetGatewayCreate202Response.md @@ -0,0 +1,13 @@ + + +# PublicInternetGatewayCreate202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PublicInternetGatewayRead**](PublicInternetGatewayRead.md) | | [optional] | + + + diff --git a/docs/PublicInternetGatewayList200Response.md b/docs/PublicInternetGatewayList200Response.md new file mode 100644 index 00000000..3351c7cb --- /dev/null +++ b/docs/PublicInternetGatewayList200Response.md @@ -0,0 +1,14 @@ + + +# PublicInternetGatewayList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PublicInternetGatewayRead>**](PublicInternetGatewayRead.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/PublicInternetGatewayRead.md b/docs/PublicInternetGatewayRead.md new file mode 100644 index 00000000..5b95f3e5 --- /dev/null +++ b/docs/PublicInternetGatewayRead.md @@ -0,0 +1,22 @@ + + +# PublicInternetGatewayRead + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | [optional] | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**publicIp** | **String** | The publically accessible ip for this interface. | [optional] [readonly] | +|**regionCode** | **String** | The region interface is deployed to. | [optional] | +|**region** | [**RegionOutRegion**](RegionOutRegion.md) | | [optional] | + + + diff --git a/docs/PublicInternetGatewaysApi.md b/docs/PublicInternetGatewaysApi.md new file mode 100644 index 00000000..f39a3a83 --- /dev/null +++ b/docs/PublicInternetGatewaysApi.md @@ -0,0 +1,303 @@ +# PublicInternetGatewaysApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**publicInternetGatewayCreate**](PublicInternetGatewaysApi.md#publicInternetGatewayCreate) | **POST** /public_internet_gateways | Create a Public Internet Gateway +[**publicInternetGatewayDelete**](PublicInternetGatewaysApi.md#publicInternetGatewayDelete) | **DELETE** /public_internet_gateways/{id} | Delete a Public Internet Gateway +[**publicInternetGatewayGet**](PublicInternetGatewaysApi.md#publicInternetGatewayGet) | **GET** /public_internet_gateways/{id} | Retrieve a Public Internet Gateway +[**publicInternetGatewayList**](PublicInternetGatewaysApi.md#publicInternetGatewayList) | **GET** /public_internet_gateways | List all Public Internet Gateways + + + +## publicInternetGatewayCreate + +> PublicInternetGatewayCreate202Response publicInternetGatewayCreate(publicInternetGatewayCreate) + +Create a Public Internet Gateway + +Create a new Public Internet Gateway. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.PublicInternetGatewaysApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + PublicInternetGatewaysApi apiInstance = new PublicInternetGatewaysApi(defaultClient); + PublicInternetGatewayCreate publicInternetGatewayCreate = new PublicInternetGatewayCreate(); // PublicInternetGatewayCreate | + try { + PublicInternetGatewayCreate202Response result = apiInstance.publicInternetGatewayCreate(publicInternetGatewayCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicInternetGatewaysApi#publicInternetGatewayCreate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **publicInternetGatewayCreate** | [**PublicInternetGatewayCreate**](PublicInternetGatewayCreate.md)| | + +### Return type + +[**PublicInternetGatewayCreate202Response**](PublicInternetGatewayCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + + +## publicInternetGatewayDelete + +> PublicInternetGatewayCreate202Response publicInternetGatewayDelete(id) + +Delete a Public Internet Gateway + +Delete a Public Internet Gateway. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.PublicInternetGatewaysApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + PublicInternetGatewaysApi apiInstance = new PublicInternetGatewaysApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + PublicInternetGatewayCreate202Response result = apiInstance.publicInternetGatewayDelete(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicInternetGatewaysApi#publicInternetGatewayDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**PublicInternetGatewayCreate202Response**](PublicInternetGatewayCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## publicInternetGatewayGet + +> PublicInternetGatewayCreate202Response publicInternetGatewayGet(id) + +Retrieve a Public Internet Gateway + +Retrieve a Public Internet Gateway. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.PublicInternetGatewaysApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + PublicInternetGatewaysApi apiInstance = new PublicInternetGatewaysApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + PublicInternetGatewayCreate202Response result = apiInstance.publicInternetGatewayGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicInternetGatewaysApi#publicInternetGatewayGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**PublicInternetGatewayCreate202Response**](PublicInternetGatewayCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## publicInternetGatewayList + +> PublicInternetGatewayList200Response publicInternetGatewayList(pageNumber, pageSize, filterNetworkId) + +List all Public Internet Gateways + +List all Public Internet Gateways. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.PublicInternetGatewaysApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + PublicInternetGatewaysApi apiInstance = new PublicInternetGatewaysApi(defaultClient); + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String filterNetworkId = "6a09cdc3-8948-47f0-aa62-74ac943d6c58"; // String | The associated network id to filter on. + try { + PublicInternetGatewayList200Response result = apiInstance.publicInternetGatewayList(pageNumber, pageSize, filterNetworkId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling PublicInternetGatewaysApi#publicInternetGatewayList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterNetworkId** | **String**| The associated network id to filter on. | [optional] + +### Return type + +[**PublicInternetGatewayList200Response**](PublicInternetGatewayList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + diff --git a/docs/PushCredential.md b/docs/PushCredential.md index e895ba22..45f96032 100644 --- a/docs/PushCredential.md +++ b/docs/PushCredential.md @@ -5,16 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Unique identifier of a push credential | -**certificate** | **String** | Apple certificate for sending push notifications | -**privateKey** | **String** | Apple private key for a given certificate for sending push notifications | -**serverKey** | **String** | Google server key for sending push notifications | -**alias** | **String** | Alias to uniquely identify a credential | -**recordType** | **String** | | [readonly] -**createdAt** | **String** | ISO 8601 timestamp when the room was created | -**updatedAt** | **String** | ISO 8601 timestamp when the room was updated. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Unique identifier of a push credential | | +|**certificate** | **String** | Apple certificate for sending push notifications. For iOS only | | +|**privateKey** | **String** | Apple private key for a given certificate for sending push notifications. For iOS only | | +|**serverKey** | **String** | Google server key for sending push notifications. For Android only | | +|**alias** | **String** | Alias to uniquely identify a credential | | +|**type** | **String** | Type of mobile push credential. Either <code>ios</code> or <code>android</code> | | +|**recordType** | **String** | | [readonly] | +|**createdAt** | **String** | ISO 8601 timestamp when the room was created | | +|**updatedAt** | **String** | ISO 8601 timestamp when the room was updated. | | diff --git a/docs/PushCredentialsApi.md b/docs/PushCredentialsApi.md index b4c6f352..0293bdab 100644 --- a/docs/PushCredentialsApi.md +++ b/docs/PushCredentialsApi.md @@ -4,25 +4,24 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- -[**deletePushCredentialnById**](PushCredentialsApi.md#deletePushCredentialnById) | **DELETE** /push_credentials/{push_credential_id} | Deletes a push credential -[**getPushCredentialById**](PushCredentialsApi.md#getPushCredentialById) | **GET** /push_credentials/{push_credential_id} | Retrieves a push credential -[**getPushCredentials**](PushCredentialsApi.md#getPushCredentials) | **GET** /mobile_applications/{mobile_application_id}/push_credentials | Retrieves push credentials associated to a mobile application -[**updatePushCredentialById**](PushCredentialsApi.md#updatePushCredentialById) | **PATCH** /push_credentials/{push_credential_id} | Updates a push credential +[**createPushCredential**](PushCredentialsApi.md#createPushCredential) | **POST** /mobile_push_credentials | Creates a new mobile push credential +[**deletePushCredentialById**](PushCredentialsApi.md#deletePushCredentialById) | **DELETE** /mobile_push_credentials/{push_credential_id} | Deletes a mobile push credential +[**getPushCredentialById**](PushCredentialsApi.md#getPushCredentialById) | **GET** /mobile_push_credentials/{push_credential_id} | Retrieves a mobile push credential +[**listPushCredentials**](PushCredentialsApi.md#listPushCredentials) | **GET** /mobile_push_credentials | List mobile push credentials -## deletePushCredentialnById +## createPushCredential -> deletePushCredentialnById(pushCredentialId) +> PushCredentialResponse createPushCredential(createPushCredentialRequest) -Deletes a push credential +Creates a new mobile push credential -Deletes a push credential based on the given `id` +Creates a new mobile push credential ### Example ```java -import java.util.UUID; // Import classes: import com.telnyx.sdk.ApiClient; import com.telnyx.sdk.ApiException; @@ -41,11 +40,12 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); PushCredentialsApi apiInstance = new PushCredentialsApi(defaultClient); - UUID pushCredentialId = UUID.fromString("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0"); // UUID | The unique identifier of a push credential + CreatePushCredentialRequest createPushCredentialRequest = new CreatePushCredentialRequest(); // CreatePushCredentialRequest | Mobile push credential parameters that need to be sent in the request try { - apiInstance.deletePushCredentialnById(pushCredentialId); + PushCredentialResponse result = apiInstance.createPushCredential(createPushCredentialRequest); + System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PushCredentialsApi#deletePushCredentialnById"); + System.err.println("Exception when calling PushCredentialsApi#createPushCredential"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -60,11 +60,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pushCredentialId** | **UUID**| The unique identifier of a push credential | + **createPushCredentialRequest** | [**CreatePushCredentialRequest**](CreatePushCredentialRequest.md)| Mobile push credential parameters that need to be sent in the request | ### Return type -null (empty response body) +[**PushCredentialResponse**](PushCredentialResponse.md) ### Authorization @@ -72,25 +72,24 @@ null (empty response body) ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **204** | The push credential was deleted successfully | - | +| **200** | Mobile push credential created | - | | **401** | Unauthorized request | - | -| **404** | Resource not found | - | | **422** | Unable to process request | - | -## getPushCredentialById +## deletePushCredentialById -> PushCredentialResponse getPushCredentialById(pushCredentialId) +> deletePushCredentialById(pushCredentialId) -Retrieves a push credential +Deletes a mobile push credential -Retrieves push credential based on the given `id` +Deletes a mobile push credential based on the given `push_credential_id` ### Example @@ -114,12 +113,11 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); PushCredentialsApi apiInstance = new PushCredentialsApi(defaultClient); - UUID pushCredentialId = UUID.fromString("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0"); // UUID | The unique identifier of a push credential + UUID pushCredentialId = UUID.fromString("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0"); // UUID | The unique identifier of a mobile push credential try { - PushCredentialResponse result = apiInstance.getPushCredentialById(pushCredentialId); - System.out.println(result); + apiInstance.deletePushCredentialById(pushCredentialId); } catch (ApiException e) { - System.err.println("Exception when calling PushCredentialsApi#getPushCredentialById"); + System.err.println("Exception when calling PushCredentialsApi#deletePushCredentialById"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -134,11 +132,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pushCredentialId** | **UUID**| The unique identifier of a push credential | + **pushCredentialId** | **UUID**| The unique identifier of a mobile push credential | ### Return type -[**PushCredentialResponse**](PushCredentialResponse.md) +null (empty response body) ### Authorization @@ -152,24 +150,23 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Successful get push credential response | - | +| **204** | The mobile push credential was deleted successfully | - | | **401** | Unauthorized request | - | | **404** | Resource not found | - | | **422** | Unable to process request | - | -## getPushCredentials +## getPushCredentialById -> List<PushCredentialResponse> getPushCredentials(mobileApplicationId, filterCreatedAtEq, filterCreatedAtGte, filterCreatedAtLte, filterAlias) +> PushCredentialResponse getPushCredentialById(pushCredentialId) -Retrieves push credentials associated to a mobile application +Retrieves a mobile push credential -Retrieves push credentials for a given mobile application based on filters for a user +Retrieves mobile push credential based on the given `push_credential_id` ### Example ```java -import java.time.LocalDate; import java.util.UUID; // Import classes: import com.telnyx.sdk.ApiClient; @@ -189,16 +186,12 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); PushCredentialsApi apiInstance = new PushCredentialsApi(defaultClient); - UUID mobileApplicationId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a mobile application - LocalDate filterCreatedAtEq = LocalDate.parse("Sat Apr 24 19:00:00 CDT 2021"); // LocalDate | ISO 8601 date for filtering credentials created on that date - LocalDate filterCreatedAtGte = LocalDate.parse("Sat Apr 24 19:00:00 CDT 2021"); // LocalDate | ISO 8601 date for filtering credentials created after that date - LocalDate filterCreatedAtLte = LocalDate.parse("Sat Apr 24 19:00:00 CDT 2021"); // LocalDate | ISO 8601 date for filtering credentials created before that date - String filterAlias = "LucyCredential"; // String | Unique push credential alias + UUID pushCredentialId = UUID.fromString("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0"); // UUID | The unique identifier of a mobile push credential try { - List result = apiInstance.getPushCredentials(mobileApplicationId, filterCreatedAtEq, filterCreatedAtGte, filterCreatedAtLte, filterAlias); + PushCredentialResponse result = apiInstance.getPushCredentialById(pushCredentialId); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PushCredentialsApi#getPushCredentials"); + System.err.println("Exception when calling PushCredentialsApi#getPushCredentialById"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -213,15 +206,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **mobileApplicationId** | **UUID**| The unique identifier of a mobile application | - **filterCreatedAtEq** | **LocalDate**| ISO 8601 date for filtering credentials created on that date | [optional] - **filterCreatedAtGte** | **LocalDate**| ISO 8601 date for filtering credentials created after that date | [optional] - **filterCreatedAtLte** | **LocalDate**| ISO 8601 date for filtering credentials created before that date | [optional] - **filterAlias** | **String**| Unique push credential alias | [optional] + **pushCredentialId** | **UUID**| The unique identifier of a mobile push credential | ### Return type -[**List<PushCredentialResponse>**](PushCredentialResponse.md) +[**PushCredentialResponse**](PushCredentialResponse.md) ### Authorization @@ -235,23 +224,23 @@ Name | Type | Description | Notes ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | Mobile application created | - | +| **200** | Successful get mobile push credential response | - | | **401** | Unauthorized request | - | +| **404** | Resource not found | - | | **422** | Unable to process request | - | -## updatePushCredentialById +## listPushCredentials -> PushCredentialResponse updatePushCredentialById(pushCredentialId, UNKNOWN_BASE_TYPE) +> ListPushCredentialsResponse listPushCredentials(filterType, filterAlias, pageSize, pageNumber) -Updates a push credential +List mobile push credentials -Updates a push credential based on the given `id` +List mobile push credentials ### Example ```java -import java.util.UUID; // Import classes: import com.telnyx.sdk.ApiClient; import com.telnyx.sdk.ApiException; @@ -270,13 +259,15 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); PushCredentialsApi apiInstance = new PushCredentialsApi(defaultClient); - UUID pushCredentialId = UUID.fromString("0ccc7b76-4df3-4bca-a05a-3da1ecc389f0"); // UUID | The unique identifier of a push credential - UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE = new UNKNOWN_BASE_TYPE(); // UNKNOWN_BASE_TYPE | Push credential parameters that need to be sent in the request + String filterType = "ios"; // String | type of mobile push credentials + String filterAlias = "LucyCredential"; // String | Unique mobile push credential alias + Integer pageSize = 20; // Integer | The size of the page + Integer pageNumber = 1; // Integer | The page number to load try { - PushCredentialResponse result = apiInstance.updatePushCredentialById(pushCredentialId, UNKNOWN_BASE_TYPE); + ListPushCredentialsResponse result = apiInstance.listPushCredentials(filterType, filterAlias, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling PushCredentialsApi#updatePushCredentialById"); + System.err.println("Exception when calling PushCredentialsApi#listPushCredentials"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -291,12 +282,14 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **pushCredentialId** | **UUID**| The unique identifier of a push credential | - **UNKNOWN_BASE_TYPE** | **UNKNOWN_BASE_TYPE**| Push credential parameters that need to be sent in the request | [optional] + **filterType** | **String**| type of mobile push credentials | [optional] [enum: ios, android] + **filterAlias** | **String**| Unique mobile push credential alias | [optional] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] ### Return type -[**PushCredentialResponse**](PushCredentialResponse.md) +[**ListPushCredentialsResponse**](ListPushCredentialsResponse.md) ### Authorization @@ -304,14 +297,12 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json +- **Content-Type**: Not defined - **Accept**: application/json ### HTTP response details | Status code | Description | Response headers | |-------------|-------------|------------------| -| **200** | The push credential was updated successfully | - | +| **200** | Mobile mobile push credentials | - | | **401** | Unauthorized request | - | -| **404** | Resource not found | - | -| **422** | Unable to process request | - | diff --git a/docs/Queue.md b/docs/Queue.md index d9d984a8..019f280d 100644 --- a/docs/Queue.md +++ b/docs/Queue.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**id** | **String** | Uniquely identifies the queue | -**name** | **String** | Name of the queue | -**createdAt** | **String** | ISO 8601 formatted date of when the queue was created | -**updatedAt** | **String** | ISO 8601 formatted date of when the queue was last updated | -**currentSize** | **Integer** | The number of calls currently in the queue | -**maxSize** | **Integer** | The maximum number of calls allowed in the queue | -**averageWaitTimeSecs** | **Integer** | The average time that the calls currently in the queue have spent waiting, given in seconds. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**id** | **String** | Uniquely identifies the queue | | +|**name** | **String** | Name of the queue | | +|**createdAt** | **String** | ISO 8601 formatted date of when the queue was created | | +|**updatedAt** | **String** | ISO 8601 formatted date of when the queue was last updated | | +|**currentSize** | **Integer** | The number of calls currently in the queue | | +|**maxSize** | **Integer** | The maximum number of calls allowed in the queue | | +|**averageWaitTimeSecs** | **Integer** | The average time that the calls currently in the queue have spent waiting, given in seconds. | | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -QUEUE | "queue" +| Name | Value | +|---- | -----| +| QUEUE | "queue" | diff --git a/docs/QueueCall.md b/docs/QueueCall.md index eea27bb4..2a781fbe 100644 --- a/docs/QueueCall.md +++ b/docs/QueueCall.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call | -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events | -**callControlId** | **String** | Unique identifier and token for controlling the call. | -**connectionId** | **String** | Telnyx connection ID used in the call. | -**from** | **String** | Number or SIP URI placing the call. | -**to** | **String** | Destination number or SIP URI of the call. | -**enqueuedAt** | **String** | ISO 8601 formatted date of when the call was put in the queue | -**waitTimeSecs** | **Integer** | The time the call has been waiting in the queue, given in seconds | -**queuePosition** | **Integer** | Current position of the call in the queue | -**queueId** | **String** | Unique identifier of the queue the call is in. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call | | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events | | +|**callControlId** | **String** | Unique identifier and token for controlling the call. | | +|**connectionId** | **String** | Telnyx connection ID used in the call. | | +|**from** | **String** | Number or SIP URI placing the call. | | +|**to** | **String** | Destination number or SIP URI of the call. | | +|**enqueuedAt** | **String** | ISO 8601 formatted date of when the call was put in the queue | | +|**waitTimeSecs** | **Integer** | The time the call has been waiting in the queue, given in seconds | | +|**queuePosition** | **Integer** | Current position of the call in the queue | | +|**queueId** | **String** | Unique identifier of the queue the call is in. | | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -QUEUE_CALL | "queue_call" +| Name | Value | +|---- | -----| +| QUEUE_CALL | "queue_call" | diff --git a/docs/QueueCallResponse.md b/docs/QueueCallResponse.md index ba7abbfb..d7d9d15f 100644 --- a/docs/QueueCallResponse.md +++ b/docs/QueueCallResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**QueueCall**](QueueCall.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**QueueCall**](QueueCall.md) | | [optional] | diff --git a/docs/QueueCommandsApi.md b/docs/QueueCommandsApi.md index 813620f5..dcb5a263 100644 --- a/docs/QueueCommandsApi.md +++ b/docs/QueueCommandsApi.md @@ -82,7 +82,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with a list of calls in a queue. | - | -| **404** | Conference does not exist | - | +| **404** | Fax does not exist | - | ## retrieveCallFromQueue @@ -155,7 +155,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a call in a queue. | - | -| **404** | Conference does not exist | - | +| **404** | Fax does not exist | - | ## retrieveCallQueue @@ -226,5 +226,5 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a queue. | - | -| **404** | Conference does not exist | - | +| **404** | Fax does not exist | - | diff --git a/docs/QueueResponse.md b/docs/QueueResponse.md index f70ded4b..f6a68a82 100644 --- a/docs/QueueResponse.md +++ b/docs/QueueResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Queue**](Queue.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Queue**](Queue.md) | | [optional] | diff --git a/docs/ReadComment.md b/docs/ReadComment.md index ec448719..907be920 100644 --- a/docs/ReadComment.md +++ b/docs/ReadComment.md @@ -5,36 +5,36 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**body** | **String** | | [optional] -**commenter** | **String** | | [optional] [readonly] -**commenterType** | [**CommenterTypeEnum**](#CommenterTypeEnum) | | [optional] [readonly] -**commentRecordType** | [**CommentRecordTypeEnum**](#CommentRecordTypeEnum) | | [optional] -**commentRecordId** | **UUID** | | [optional] -**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the comment was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the comment was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**body** | **String** | | [optional] | +|**commenter** | **String** | | [optional] [readonly] | +|**commenterType** | [**CommenterTypeEnum**](#CommenterTypeEnum) | | [optional] [readonly] | +|**commentRecordType** | [**CommentRecordTypeEnum**](#CommentRecordTypeEnum) | | [optional] | +|**commentRecordId** | **UUID** | | [optional] | +|**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the comment was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the comment was updated. | [optional] [readonly] | ## Enum: CommenterTypeEnum -Name | Value ----- | ----- -ADMIN | "admin" -USER | "user" +| Name | Value | +|---- | -----| +| ADMIN | "admin" | +| USER | "user" | ## Enum: CommentRecordTypeEnum -Name | Value ----- | ----- -NUMBER_ORDER | "number_order" -SUB_NUMBER_ORDER | "sub_number_order" -NUMBER_ORDER_PHONE_NUMBER | "number_order_phone_number" +| Name | Value | +|---- | -----| +| NUMBER_ORDER | "number_order" | +| SUB_NUMBER_ORDER | "sub_number_order" | +| NUMBER_ORDER_PHONE_NUMBER | "number_order_phone_number" | diff --git a/docs/ReadCommentAllOf.md b/docs/ReadCommentAllOf.md index ff72d7fd..c4c1eb8d 100644 --- a/docs/ReadCommentAllOf.md +++ b/docs/ReadCommentAllOf.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**readAt** | **String** | An ISO 8901 datetime string for when the comment was read. | [optional] [readonly] | diff --git a/docs/Record.md b/docs/Record.md new file mode 100644 index 00000000..27b7ad55 --- /dev/null +++ b/docs/Record.md @@ -0,0 +1,16 @@ + + +# Record + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | + + + diff --git a/docs/Recording.md b/docs/Recording.md index b8d6a1d7..41e9af3f 100644 --- a/docs/Recording.md +++ b/docs/Recording.md @@ -5,56 +5,56 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | -**id** | **String** | Uniquely identifies the recording | -**createdAt** | **String** | ISO 8601 formatted date of when the recording was created | -**updatedAt** | **String** | ISO 8601 formatted date of when the recording was last updated | -**recordingStartedAt** | **String** | ISO 8601 formatted date of when the recording started | -**recordingEndedAt** | **String** | ISO 8601 formatted date of when the recording ended | -**durationMillis** | **Integer** | The duration of the recording in milliseconds | -**status** | [**StatusEnum**](#StatusEnum) | The status of the recording. Only resources for `completed` recordings are currently supported | -**channels** | [**ChannelsEnum**](#ChannelsEnum) | When `dual`, final audio file has the first leg on channel A, and the rest on channel B. | -**source** | [**SourceEnum**](#SourceEnum) | The kind of event that led to this recording being created | -**conferenceId** | **String** | If a conference recording, uniquely identifies the recorded conference | [optional] -**callLegId** | **String** | If a call recording, uniquely identifies the recorded call leg | [optional] -**callSessionId** | **String** | If a call recording, uniquely identifies the recorded call session | [optional] -**downloadUrls** | [**RecordingDownloadUrls**](RecordingDownloadUrls.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | | | +|**id** | **String** | Uniquely identifies the recording | | +|**createdAt** | **String** | ISO 8601 formatted date of when the recording was created | | +|**updatedAt** | **String** | ISO 8601 formatted date of when the recording was last updated | | +|**recordingStartedAt** | **String** | ISO 8601 formatted date of when the recording started | | +|**recordingEndedAt** | **String** | ISO 8601 formatted date of when the recording ended | | +|**durationMillis** | **Integer** | The duration of the recording in milliseconds | | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the recording. Only resources for `completed` recordings are currently supported | | +|**channels** | [**ChannelsEnum**](#ChannelsEnum) | When `dual`, final audio file has the first leg on channel A, and the rest on channel B. | | +|**source** | [**SourceEnum**](#SourceEnum) | The kind of event that led to this recording being created | | +|**conferenceId** | **String** | If a conference recording, uniquely identifies the recorded conference | [optional] | +|**callLegId** | **String** | If a call recording, uniquely identifies the recorded call leg | [optional] | +|**callSessionId** | **String** | If a call recording, uniquely identifies the recorded call session | [optional] | +|**downloadUrls** | [**RecordingDownloadUrls**](RecordingDownloadUrls.md) | | | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -RECORDING | "recording" +| Name | Value | +|---- | -----| +| RECORDING | "recording" | ## Enum: StatusEnum -Name | Value ----- | ----- -COMPLETED | "completed" +| Name | Value | +|---- | -----| +| COMPLETED | "completed" | ## Enum: ChannelsEnum -Name | Value ----- | ----- -SINGLE | "single" -DUAL | "dual" +| Name | Value | +|---- | -----| +| SINGLE | "single" | +| DUAL | "dual" | ## Enum: SourceEnum -Name | Value ----- | ----- -CONFERENCE | "conference" -CALL | "call" +| Name | Value | +|---- | -----| +| CONFERENCE | "conference" | +| CALL | "call" | diff --git a/docs/RecordingCompleted.md b/docs/RecordingCompleted.md index 1a490879..844199ef 100644 --- a/docs/RecordingCompleted.md +++ b/docs/RecordingCompleted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Uniquely identify the event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**RecordingCompletedPayload**](RecordingCompletedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Uniquely identify the event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**RecordingCompletedPayload**](RecordingCompletedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -VIDEO_ROOM_RECORDING_COMPLETED | "video.room.recording.completed" +| Name | Value | +|---- | -----| +| VIDEO_ROOM_RECORDING_COMPLETED | "video.room.recording.completed" | diff --git a/docs/RecordingCompletedEvent.md b/docs/RecordingCompletedEvent.md index 38b7a7ca..611e0c0e 100644 --- a/docs/RecordingCompletedEvent.md +++ b/docs/RecordingCompletedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**RecordingCompleted**](RecordingCompleted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RecordingCompleted**](RecordingCompleted.md) | | [optional] | diff --git a/docs/RecordingCompletedPayload.md b/docs/RecordingCompletedPayload.md index 3d19cc72..e2985764 100644 --- a/docs/RecordingCompletedPayload.md +++ b/docs/RecordingCompletedPayload.md @@ -5,26 +5,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **UUID** | Session ID associated with the recording. | [optional] -**roomId** | **UUID** | Room ID associated with the recording. | [optional] -**participantId** | **UUID** | Participant ID associated with the recording. | [optional] -**recordingId** | **UUID** | Recording ID that identifies the recording. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | Type of the recording. | [optional] -**sizeMb** | **Float** | Recording size in MB. | [optional] -**downloadUrl** | **String** | Url to download the recording. | [optional] -**codec** | **String** | Codec used for the recording. | [optional] -**durationSecs** | **Integer** | Recording duration in seconds. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sessionId** | **UUID** | Session ID associated with the recording. | [optional] | +|**roomId** | **UUID** | Room ID associated with the recording. | [optional] | +|**participantId** | **UUID** | Participant ID associated with the recording. | [optional] | +|**recordingId** | **UUID** | Recording ID that identifies the recording. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Type of the recording. | [optional] | +|**sizeMb** | **Float** | Recording size in MB. | [optional] | +|**downloadUrl** | **String** | Url to download the recording. | [optional] | +|**codec** | **String** | Codec used for the recording. | [optional] | +|**durationSecs** | **Integer** | Recording duration in seconds. | [optional] | ## Enum: TypeEnum -Name | Value ----- | ----- -AUDIO | "audio" -VIDEO | "video" +| Name | Value | +|---- | -----| +| AUDIO | "audio" | +| VIDEO | "video" | diff --git a/docs/RecordingDownloadUrls.md b/docs/RecordingDownloadUrls.md index 7b72f6bc..0829ff57 100644 --- a/docs/RecordingDownloadUrls.md +++ b/docs/RecordingDownloadUrls.md @@ -6,10 +6,10 @@ The links to download the recording files ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mp3** | **String** | Link to download the recording in mp3 format | [optional] -**wav** | **String** | Link to download the recording in wav format | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mp3** | **String** | Link to download the recording in mp3 format | [optional] | +|**wav** | **String** | Link to download the recording in wav format | [optional] | diff --git a/docs/RecordingStarted.md b/docs/RecordingStarted.md index 27db2ace..c23e7dd3 100644 --- a/docs/RecordingStarted.md +++ b/docs/RecordingStarted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Uniquely identify the event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**RecordingStartedPayload**](RecordingStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Uniquely identify the event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**RecordingStartedPayload**](RecordingStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -VIDEO_ROOM_RECORDING_STARTED | "video.room.recording.started" +| Name | Value | +|---- | -----| +| VIDEO_ROOM_RECORDING_STARTED | "video.room.recording.started" | diff --git a/docs/RecordingStartedEvent.md b/docs/RecordingStartedEvent.md index 438a88eb..eb5fd73f 100644 --- a/docs/RecordingStartedEvent.md +++ b/docs/RecordingStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**RecordingStarted**](RecordingStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RecordingStarted**](RecordingStarted.md) | | [optional] | diff --git a/docs/RecordingStartedPayload.md b/docs/RecordingStartedPayload.md index 729bbb54..102b361e 100644 --- a/docs/RecordingStartedPayload.md +++ b/docs/RecordingStartedPayload.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **UUID** | Session ID associated with the recording. | [optional] -**roomId** | **UUID** | Room ID associated with the recording. | [optional] -**participantId** | **UUID** | Participant ID associated with the recording. | [optional] -**recordingId** | **UUID** | Recording ID associated with the recording. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | Type of the recording. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sessionId** | **UUID** | Session ID associated with the recording. | [optional] | +|**roomId** | **UUID** | Room ID associated with the recording. | [optional] | +|**participantId** | **UUID** | Participant ID associated with the recording. | [optional] | +|**recordingId** | **UUID** | Recording ID associated with the recording. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Type of the recording. | [optional] | ## Enum: TypeEnum -Name | Value ----- | ----- -AUDIO | "audio" -VIDEO | "video" +| Name | Value | +|---- | -----| +| AUDIO | "audio" | +| VIDEO | "video" | diff --git a/docs/RecordingsCommandsApi.md b/docs/RecordingsCommandsApi.md index f4b3fd4b..d9a54bc9 100644 --- a/docs/RecordingsCommandsApi.md +++ b/docs/RecordingsCommandsApi.md @@ -91,7 +91,7 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with a list of recordings. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **422** | Unprocessable entity | - | @@ -163,6 +163,6 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Successful response with details about a recording. | - | -| **401** | Unauthorized | - | -| **404** | Conference does not exist | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | +| **404** | Fax does not exist | - | diff --git a/docs/ReferRequest.md b/docs/ReferRequest.md index 318890f7..be96ecdc 100644 --- a/docs/ReferRequest.md +++ b/docs/ReferRequest.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sipAddress** | **String** | The SIP URI to which the call will be referred to. | -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] -**customHeaders** | [**List<CustomSipHeader>**](CustomSipHeader.md) | Custom headers to be added to the SIP INVITE. | [optional] -**sipAuthUsername** | **String** | SIP Authentication username used for SIP challenges. | [optional] -**sipAuthPassword** | **String** | SIP Authentication password used for SIP challenges. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sipAddress** | **String** | The SIP URI to which the call will be referred to. | | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] | +|**customHeaders** | [**List<CustomSipHeader>**](CustomSipHeader.md) | Custom headers to be added to the SIP INVITE. | [optional] | +|**sipAuthUsername** | **String** | SIP Authentication username used for SIP challenges. | [optional] | +|**sipAuthPassword** | **String** | SIP Authentication password used for SIP challenges. | [optional] | diff --git a/docs/RefreshFaxResponse.md b/docs/RefreshFaxResponse.md index 7fedc4c2..34ba3338 100644 --- a/docs/RefreshFaxResponse.md +++ b/docs/RefreshFaxResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **String** | | [optional] | diff --git a/docs/RefreshRoomClientToken201Response.md b/docs/RefreshRoomClientToken201Response.md new file mode 100644 index 00000000..9b070d42 --- /dev/null +++ b/docs/RefreshRoomClientToken201Response.md @@ -0,0 +1,13 @@ + + +# RefreshRoomClientToken201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RefreshRoomClientToken201ResponseData**](RefreshRoomClientToken201ResponseData.md) | | [optional] | + + + diff --git a/docs/RefreshRoomClientToken201ResponseData.md b/docs/RefreshRoomClientToken201ResponseData.md new file mode 100644 index 00000000..1f0a782d --- /dev/null +++ b/docs/RefreshRoomClientToken201ResponseData.md @@ -0,0 +1,14 @@ + + +# RefreshRoomClientToken201ResponseData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**token** | **String** | | [optional] | +|**tokenExpiresAt** | **String** | ISO 8601 timestamp when the token expires. | [optional] | + + + diff --git a/docs/RefreshRoomClientTokenRequest.md b/docs/RefreshRoomClientTokenRequest.md index 814095a3..0a3fb664 100644 --- a/docs/RefreshRoomClientTokenRequest.md +++ b/docs/RefreshRoomClientTokenRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**tokenTtlSecs** | **Integer** | The time to live in seconds of the Client Token, after that time the Client Token is invalid and can't be used to join a Room. | [optional] -**refreshToken** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**tokenTtlSecs** | **Integer** | The time to live in seconds of the Client Token, after that time the Client Token is invalid and can't be used to join a Room. | [optional] | +|**refreshToken** | **String** | | | diff --git a/docs/Region.md b/docs/Region.md new file mode 100644 index 00000000..d3ea8e9f --- /dev/null +++ b/docs/Region.md @@ -0,0 +1,18 @@ + + +# Region + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**code** | **String** | A code for the region. | [optional] | +|**name** | **String** | A name for the region. | [optional] | +|**supportedInterfaces** | **List<String>** | List of interface types supported in this region. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | + + + diff --git a/docs/RegionIn.md b/docs/RegionIn.md new file mode 100644 index 00000000..1de50d50 --- /dev/null +++ b/docs/RegionIn.md @@ -0,0 +1,13 @@ + + +# RegionIn + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**regionCode** | **String** | The region the interface should be deployed to. | [optional] | + + + diff --git a/docs/RegionInformation.md b/docs/RegionInformation.md index 62501f6b..53b04a27 100644 --- a/docs/RegionInformation.md +++ b/docs/RegionInformation.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**regionType** | [**RegionTypeEnum**](#RegionTypeEnum) | | [optional] -**regionName** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**regionType** | [**RegionTypeEnum**](#RegionTypeEnum) | | [optional] | +|**regionName** | **String** | | [optional] | ## Enum: RegionTypeEnum -Name | Value ----- | ----- -COUNTRY_CODE | "country_code" -RATE_CENTER | "rate_center" -STATE | "state" -LOCATION | "location" +| Name | Value | +|---- | -----| +| COUNTRY_CODE | "country_code" | +| RATE_CENTER | "rate_center" | +| STATE | "state" | +| LOCATION | "location" | diff --git a/docs/RegionList200Response.md b/docs/RegionList200Response.md new file mode 100644 index 00000000..10a9b1b7 --- /dev/null +++ b/docs/RegionList200Response.md @@ -0,0 +1,13 @@ + + +# RegionList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<Region>**](Region.md) | | [optional] | + + + diff --git a/docs/RegionOut.md b/docs/RegionOut.md new file mode 100644 index 00000000..64c01de1 --- /dev/null +++ b/docs/RegionOut.md @@ -0,0 +1,14 @@ + + +# RegionOut + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**regionCode** | **String** | The region interface is deployed to. | [optional] | +|**region** | [**RegionOutRegion**](RegionOutRegion.md) | | [optional] | + + + diff --git a/docs/RegionOutRegion.md b/docs/RegionOutRegion.md new file mode 100644 index 00000000..9f190185 --- /dev/null +++ b/docs/RegionOutRegion.md @@ -0,0 +1,15 @@ + + +# RegionOutRegion + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | Region code of the interface. | [optional] | +|**name** | **String** | Region name of the interface. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | + + + diff --git a/docs/RegionsApi.md b/docs/RegionsApi.md new file mode 100644 index 00000000..7743c652 --- /dev/null +++ b/docs/RegionsApi.md @@ -0,0 +1,76 @@ +# RegionsApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**regionList**](RegionsApi.md#regionList) | **GET** /regions | List all Regions + + + +## regionList + +> RegionList200Response regionList() + +List all Regions + +List all regions and the interfaces that region supports + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.RegionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + RegionsApi apiInstance = new RegionsApi(defaultClient); + try { + RegionList200Response result = apiInstance.regionList(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RegionsApi#regionList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +This endpoint does not need any parameter. + +### Return type + +[**RegionList200Response**](RegionList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + diff --git a/docs/RegisterCallCommandResult.md b/docs/RegisterCallCommandResult.md index bc2d3f01..40bf719c 100644 --- a/docs/RegisterCallCommandResult.md +++ b/docs/RegisterCallCommandResult.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**result** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **String** | | [optional] | diff --git a/docs/RegisterCallRequest.md b/docs/RegisterCallRequest.md index a71cc57e..be54a0a8 100644 --- a/docs/RegisterCallRequest.md +++ b/docs/RegisterCallRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**from** | **String** | The DID that you will dial out from. | -**to** | **String** | The DID that you will dial out to. | -**reason** | **String** | The reason for call (this will be displayed on call recipient's device). | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**from** | **String** | The DID that you will dial out from. | | +|**to** | **String** | The DID that you will dial out to. | | +|**reason** | **String** | The reason for call (this will be displayed on call recipient's device). | | diff --git a/docs/RegisterCallResponse.md b/docs/RegisterCallResponse.md index 09d6f099..07020d1b 100644 --- a/docs/RegisterCallResponse.md +++ b/docs/RegisterCallResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**RegisterCallCommandResult**](RegisterCallCommandResult.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RegisterCallCommandResult**](RegisterCallCommandResult.md) | | [optional] | diff --git a/docs/RegulatoryRequirements.md b/docs/RegulatoryRequirements.md index 146b4e70..126c6888 100644 --- a/docs/RegulatoryRequirements.md +++ b/docs/RegulatoryRequirements.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | | [optional] [readonly] -**phoneNumberType** | **String** | | [optional] [readonly] -**regionInformation** | [**List<RegulatoryRequirementsRegionInformation>**](RegulatoryRequirementsRegionInformation.md) | | [optional] -**recordType** | **String** | | [optional] [readonly] -**regulatoryRequirements** | [**List<RegulatoryRequirementsRegulatoryRequirements>**](RegulatoryRequirementsRegulatoryRequirements.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | | [optional] [readonly] | +|**phoneNumberType** | **String** | | [optional] [readonly] | +|**regionInformation** | [**List<RegulatoryRequirementsRegionInformationInner>**](RegulatoryRequirementsRegionInformationInner.md) | | [optional] | +|**recordType** | **String** | | [optional] [readonly] | +|**regulatoryRequirements** | [**List<RegulatoryRequirementsRegulatoryRequirementsInner>**](RegulatoryRequirementsRegulatoryRequirementsInner.md) | | [optional] | diff --git a/docs/RegulatoryRequirementsRegionInformationInner.md b/docs/RegulatoryRequirementsRegionInformationInner.md new file mode 100644 index 00000000..f599334b --- /dev/null +++ b/docs/RegulatoryRequirementsRegionInformationInner.md @@ -0,0 +1,14 @@ + + +# RegulatoryRequirementsRegionInformationInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**regionName** | **String** | | [optional] | +|**regionType** | **String** | | [optional] | + + + diff --git a/docs/RegulatoryRequirementsRegulatoryRequirementsInner.md b/docs/RegulatoryRequirementsRegulatoryRequirementsInner.md new file mode 100644 index 00000000..c690a33a --- /dev/null +++ b/docs/RegulatoryRequirementsRegulatoryRequirementsInner.md @@ -0,0 +1,19 @@ + + +# RegulatoryRequirementsRegulatoryRequirementsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**description** | **String** | | [optional] [readonly] | +|**id** | **UUID** | | [optional] [readonly] | +|**example** | **String** | | [optional] [readonly] | +|**label** | **String** | | [optional] | +|**fieldType** | **String** | | [optional] | +|**acceptanceCriteria** | [**RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria**](RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.md) | | [optional] | +|**recordType** | **String** | | [optional] [readonly] | + + + diff --git a/docs/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.md b/docs/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.md new file mode 100644 index 00000000..cdbbc39a --- /dev/null +++ b/docs/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.md @@ -0,0 +1,15 @@ + + +# RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**localityLimit** | **String** | | [optional] | +|**fieldValue** | **String** | | [optional] | +|**fieldType** | **String** | | [optional] | + + + diff --git a/docs/RejectRequest.md b/docs/RejectRequest.md index 94766552..3c94c752 100644 --- a/docs/RejectRequest.md +++ b/docs/RejectRequest.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] -**cause** | [**CauseEnum**](#CauseEnum) | Cause for call rejection. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**cause** | [**CauseEnum**](#CauseEnum) | Cause for call rejection. | | ## Enum: CauseEnum -Name | Value ----- | ----- -CALL_REJECTED | "CALL_REJECTED" -USER_BUSY | "USER_BUSY" +| Name | Value | +|---- | -----| +| CALL_REJECTED | "CALL_REJECTED" | +| USER_BUSY | "USER_BUSY" | diff --git a/docs/ReplacedLinkClick.md b/docs/ReplacedLinkClick.md index 9363fdb6..ac764700 100644 --- a/docs/ReplacedLinkClick.md +++ b/docs/ReplacedLinkClick.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | Identifies the type of the resource. | [optional] -**url** | **String** | The original link that was sent in the message. | [optional] -**to** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). | [optional] -**messageId** | **UUID** | The message ID associated with the clicked link. | [optional] -**timeClicked** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message request was received. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**url** | **String** | The original link that was sent in the message. | [optional] | +|**to** | **String** | Sending address (+E.164 formatted phone number, alphanumeric sender ID, or short code). | [optional] | +|**messageId** | **UUID** | The message ID associated with the clicked link. | [optional] | +|**timeClicked** | **OffsetDateTime** | ISO 8601 formatted date indicating when the message request was received. | [optional] | diff --git a/docs/ReplacedLinkClickEvent.md b/docs/ReplacedLinkClickEvent.md index 1f0e0ebf..234d0df2 100644 --- a/docs/ReplacedLinkClickEvent.md +++ b/docs/ReplacedLinkClickEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ReplacedLinkClick**](ReplacedLinkClick.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ReplacedLinkClick**](ReplacedLinkClick.md) | | [optional] | diff --git a/docs/Reply.md b/docs/Reply.md new file mode 100644 index 00000000..529052ff --- /dev/null +++ b/docs/Reply.md @@ -0,0 +1,15 @@ + + +# Reply + +Reply button details. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**title** | **String** | Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. | | +|**id** | **String** | Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. You cannot have leading or trailing spaces when setting the ID. | | + + + diff --git a/docs/ReportingApi.md b/docs/ReportingApi.md index cdf8dbfa..716e1d78 100644 --- a/docs/ReportingApi.md +++ b/docs/ReportingApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## createWdrReport -> CreateWdrReportResponse createWdrReport(wdrReportRequest) +> CreateWdrReport201Response createWdrReport(wdrReportRequest) Create a Wireless Detail Records (WDRs) Report @@ -43,7 +43,7 @@ public class Example { ReportingApi apiInstance = new ReportingApi(defaultClient); WdrReportRequest wdrReportRequest = new WdrReportRequest(); // WdrReportRequest | try { - CreateWdrReportResponse result = apiInstance.createWdrReport(wdrReportRequest); + CreateWdrReport201Response result = apiInstance.createWdrReport(wdrReportRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportingApi#createWdrReport"); @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**CreateWdrReportResponse**](CreateWdrReportResponse.md) +[**CreateWdrReport201Response**](CreateWdrReport201Response.md) ### Authorization @@ -86,7 +86,7 @@ Name | Type | Description | Notes ## deleteWdrReport -> DeleteWdrReportResponse deleteWdrReport(id) +> CreateWdrReport201Response deleteWdrReport(id) Delete a Wireless Detail Record (WDR) Report @@ -116,7 +116,7 @@ public class Example { ReportingApi apiInstance = new ReportingApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - DeleteWdrReportResponse result = apiInstance.deleteWdrReport(id); + CreateWdrReport201Response result = apiInstance.deleteWdrReport(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportingApi#deleteWdrReport"); @@ -138,7 +138,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteWdrReportResponse**](DeleteWdrReportResponse.md) +[**CreateWdrReport201Response**](CreateWdrReport201Response.md) ### Authorization @@ -159,7 +159,7 @@ Name | Type | Description | Notes ## getWdrReport -> GetWdrReportResponse getWdrReport(id) +> CreateWdrReport201Response getWdrReport(id) Get a Wireless Detail Record (WDR) Report @@ -189,7 +189,7 @@ public class Example { ReportingApi apiInstance = new ReportingApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - GetWdrReportResponse result = apiInstance.getWdrReport(id); + CreateWdrReport201Response result = apiInstance.getWdrReport(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportingApi#getWdrReport"); @@ -211,7 +211,7 @@ Name | Type | Description | Notes ### Return type -[**GetWdrReportResponse**](GetWdrReportResponse.md) +[**CreateWdrReport201Response**](CreateWdrReport201Response.md) ### Authorization @@ -232,7 +232,7 @@ Name | Type | Description | Notes ## getWdrReports -> GetWdrReportsResponse getWdrReports(pageNumber, pageSize) +> GetWdrReports200Response getWdrReports(pageNumber, pageSize) Get all Wireless Detail Records (WDRs) Reports @@ -262,7 +262,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - GetWdrReportsResponse result = apiInstance.getWdrReports(pageNumber, pageSize); + GetWdrReports200Response result = apiInstance.getWdrReports(pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportingApi#getWdrReports"); @@ -285,7 +285,7 @@ Name | Type | Description | Notes ### Return type -[**GetWdrReportsResponse**](GetWdrReportsResponse.md) +[**GetWdrReports200Response**](GetWdrReports200Response.md) ### Authorization diff --git a/docs/ReportsApi.md b/docs/ReportsApi.md index 2c28ecb7..d776cadd 100644 --- a/docs/ReportsApi.md +++ b/docs/ReportsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## createLedgerBillingGroupReport -> CreateLedgerBillingGroupReportResponse createLedgerBillingGroupReport(newLedgerBillingGroupReport) +> CreateLedgerBillingGroupReport200Response createLedgerBillingGroupReport(newLedgerBillingGroupReport) Create a ledger billing group report @@ -38,7 +38,7 @@ public class Example { ReportsApi apiInstance = new ReportsApi(defaultClient); NewLedgerBillingGroupReport newLedgerBillingGroupReport = new NewLedgerBillingGroupReport(); // NewLedgerBillingGroupReport | New ledger billing group report parameters try { - CreateLedgerBillingGroupReportResponse result = apiInstance.createLedgerBillingGroupReport(newLedgerBillingGroupReport); + CreateLedgerBillingGroupReport200Response result = apiInstance.createLedgerBillingGroupReport(newLedgerBillingGroupReport); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportsApi#createLedgerBillingGroupReport"); @@ -60,7 +60,7 @@ Name | Type | Description | Notes ### Return type -[**CreateLedgerBillingGroupReportResponse**](CreateLedgerBillingGroupReportResponse.md) +[**CreateLedgerBillingGroupReport200Response**](CreateLedgerBillingGroupReport200Response.md) ### Authorization @@ -80,7 +80,7 @@ Name | Type | Description | Notes ## retrieveLedgerBillingGroupReport -> RetrieveLedgerBillingGroupReportResponse retrieveLedgerBillingGroupReport(id) +> CreateLedgerBillingGroupReport200Response retrieveLedgerBillingGroupReport(id) Retrieve a ledger billing group report @@ -108,7 +108,7 @@ public class Example { ReportsApi apiInstance = new ReportsApi(defaultClient); UUID id = UUID.randomUUID(); // UUID | The id of the ledger billing group report try { - RetrieveLedgerBillingGroupReportResponse result = apiInstance.retrieveLedgerBillingGroupReport(id); + CreateLedgerBillingGroupReport200Response result = apiInstance.retrieveLedgerBillingGroupReport(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ReportsApi#retrieveLedgerBillingGroupReport"); @@ -130,7 +130,7 @@ Name | Type | Description | Notes ### Return type -[**RetrieveLedgerBillingGroupReportResponse**](RetrieveLedgerBillingGroupReportResponse.md) +[**CreateLedgerBillingGroupReport200Response**](CreateLedgerBillingGroupReport200Response.md) ### Authorization diff --git a/docs/RequirementTypesApi.md b/docs/RequirementTypesApi.md index dd87b3bd..f7088515 100644 --- a/docs/RequirementTypesApi.md +++ b/docs/RequirementTypesApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## docReqsListRequirementTypes -> DocReqsListRequirementTypesResponse docReqsListRequirementTypes(filterNameContains, sort) +> DocReqsListRequirementTypes200Response docReqsListRequirementTypes(filterNameContains, sort) List all requirement types @@ -41,7 +41,7 @@ public class Example { String filterNameContains = "utility bill"; // String | Filters requirement types to those whose name contains a certain string. String sort = "created_at"; // String | Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the field name. try { - DocReqsListRequirementTypesResponse result = apiInstance.docReqsListRequirementTypes(filterNameContains, sort); + DocReqsListRequirementTypes200Response result = apiInstance.docReqsListRequirementTypes(filterNameContains, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RequirementTypesApi#docReqsListRequirementTypes"); @@ -64,7 +64,7 @@ Name | Type | Description | Notes ### Return type -[**DocReqsListRequirementTypesResponse**](DocReqsListRequirementTypesResponse.md) +[**DocReqsListRequirementTypes200Response**](DocReqsListRequirementTypes200Response.md) ### Authorization @@ -84,7 +84,7 @@ Name | Type | Description | Notes ## docReqsRetrieveRequirementType -> DocReqsRequirementTypeResponse docReqsRetrieveRequirementType(id) +> DocReqsRetrieveRequirementType200Response docReqsRetrieveRequirementType(id) Retrieve a requirement types @@ -114,7 +114,7 @@ public class Example { RequirementTypesApi apiInstance = new RequirementTypesApi(defaultClient); UUID id = UUID.fromString("a38c217a-8019-48f8-bff6-0fdd9939075b"); // UUID | Uniquely identifies the requirement_type record try { - DocReqsRequirementTypeResponse result = apiInstance.docReqsRetrieveRequirementType(id); + DocReqsRetrieveRequirementType200Response result = apiInstance.docReqsRetrieveRequirementType(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RequirementTypesApi#docReqsRetrieveRequirementType"); @@ -136,7 +136,7 @@ Name | Type | Description | Notes ### Return type -[**DocReqsRequirementTypeResponse**](DocReqsRequirementTypeResponse.md) +[**DocReqsRetrieveRequirementType200Response**](DocReqsRetrieveRequirementType200Response.md) ### Authorization diff --git a/docs/RequirementsApi.md b/docs/RequirementsApi.md index 3c7b4a2c..c9148ad1 100644 --- a/docs/RequirementsApi.md +++ b/docs/RequirementsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## docReqsRetrieveDocumentRequirements -> DocReqsRequirementResponse docReqsRetrieveDocumentRequirements(id) +> DocReqsRetrieveDocumentRequirements200Response docReqsRetrieveDocumentRequirements(id) Retrieve a document requirement @@ -41,7 +41,7 @@ public class Example { RequirementsApi apiInstance = new RequirementsApi(defaultClient); UUID id = UUID.fromString("a9dad8d5-fdbd-49d7-aa23-39bb08a5ebaa"); // UUID | Uniquely identifies the requirement_type record try { - DocReqsRequirementResponse result = apiInstance.docReqsRetrieveDocumentRequirements(id); + DocReqsRetrieveDocumentRequirements200Response result = apiInstance.docReqsRetrieveDocumentRequirements(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RequirementsApi#docReqsRetrieveDocumentRequirements"); @@ -63,7 +63,7 @@ Name | Type | Description | Notes ### Return type -[**DocReqsRequirementResponse**](DocReqsRequirementResponse.md) +[**DocReqsRetrieveDocumentRequirements200Response**](DocReqsRetrieveDocumentRequirements200Response.md) ### Authorization @@ -83,7 +83,7 @@ Name | Type | Description | Notes ## listRequirements -> ListRequirementsResponse listRequirements(filterCountryCode, filterPhoneNumberType, filterAction, sort, pageNumber, pageSize) +> ListRequirements200Response listRequirements(filterCountryCode, filterPhoneNumberType, filterAction, sort, pageNumber, pageSize) List all requirements @@ -117,7 +117,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListRequirementsResponse result = apiInstance.listRequirements(filterCountryCode, filterPhoneNumberType, filterAction, sort, pageNumber, pageSize); + ListRequirements200Response result = apiInstance.listRequirements(filterCountryCode, filterPhoneNumberType, filterAction, sort, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RequirementsApi#listRequirements"); @@ -144,7 +144,7 @@ Name | Type | Description | Notes ### Return type -[**ListRequirementsResponse**](ListRequirementsResponse.md) +[**ListRequirements200Response**](ListRequirements200Response.md) ### Authorization diff --git a/docs/ReservedPhoneNumber.md b/docs/ReservedPhoneNumber.md index 63e5aaab..3ce5a11c 100644 --- a/docs/ReservedPhoneNumber.md +++ b/docs/ReservedPhoneNumber.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumber** | **String** | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The status of the phone number's reservation. | [optional] [readonly] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the individual number reservation was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the the individual number reservation was updated. | [optional] [readonly] -**expiredAt** | **String** | An ISO 8901 datetime string for when the individual number reservation is going to expire | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumber** | **String** | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the phone number's reservation. | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the individual number reservation was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the the individual number reservation was updated. | [optional] [readonly] | +|**expiredAt** | **String** | An ISO 8901 datetime string for when the individual number reservation is going to expire | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/ResourceNotFoundError.md b/docs/ResourceNotFoundError.md index 10ab043f..7cc79ce2 100644 --- a/docs/ResourceNotFoundError.md +++ b/docs/ResourceNotFoundError.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**source** | [**ErrorSource**](ErrorSource.md) | | [optional] -**meta** | [**ResourceNotFoundErrorAllOfMeta**](ResourceNotFoundErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**source** | [**UpdateOutboundChannelsDefaultResponseErrorsInnerSource**](UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md) | | [optional] | +|**meta** | [**ResourceNotFoundErrorAllOfMeta**](ResourceNotFoundErrorAllOfMeta.md) | | [optional] | diff --git a/docs/ResourceNotFoundErrorAllOf.md b/docs/ResourceNotFoundErrorAllOf.md index 80e02505..b2ccf099 100644 --- a/docs/ResourceNotFoundErrorAllOf.md +++ b/docs/ResourceNotFoundErrorAllOf.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**meta** | [**ResourceNotFoundErrorAllOfMeta**](ResourceNotFoundErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**meta** | [**ResourceNotFoundErrorAllOfMeta**](ResourceNotFoundErrorAllOfMeta.md) | | [optional] | diff --git a/docs/ResourceNotFoundErrorAllOfMeta.md b/docs/ResourceNotFoundErrorAllOfMeta.md index d1992183..98e319aa 100644 --- a/docs/ResourceNotFoundErrorAllOfMeta.md +++ b/docs/ResourceNotFoundErrorAllOfMeta.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | | [optional] | diff --git a/docs/ResumeRecordingRequest.md b/docs/ResumeRecordingRequest.md index 20e0d972..c33d2f6f 100644 --- a/docs/ResumeRecordingRequest.md +++ b/docs/ResumeRecordingRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/RetrieveCallStatusResponse.md b/docs/RetrieveCallStatusResponse.md index 45b2c27b..2b96cef6 100644 --- a/docs/RetrieveCallStatusResponse.md +++ b/docs/RetrieveCallStatusResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Call**](Call.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Call**](Call.md) | | [optional] | diff --git a/docs/RetrieveMessagingHostedNumberOrderResponse.md b/docs/RetrieveMessagingHostedNumberOrderResponse.md index 67b16374..e2897789 100644 --- a/docs/RetrieveMessagingHostedNumberOrderResponse.md +++ b/docs/RetrieveMessagingHostedNumberOrderResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MessagingHostedNumberOrder**](MessagingHostedNumberOrder.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MessagingHostedNumberOrder**](MessagingHostedNumberOrder.md) | | [optional] | diff --git a/docs/RetrieveMessagingHostedNumberResponse.md b/docs/RetrieveMessagingHostedNumberResponse.md index 9aad8bb4..b2471473 100644 --- a/docs/RetrieveMessagingHostedNumberResponse.md +++ b/docs/RetrieveMessagingHostedNumberResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**HostedNumber**](HostedNumber.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**HostedNumber**](HostedNumber.md) | | [optional] | diff --git a/docs/RetrieveMessagingProfileMetricsResponse.md b/docs/RetrieveMessagingProfileMetricsResponse.md index e52d388d..c789c191 100644 --- a/docs/RetrieveMessagingProfileMetricsResponse.md +++ b/docs/RetrieveMessagingProfileMetricsResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**MessagingProfileDetailedMetrics**](MessagingProfileDetailedMetrics.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**MessagingProfileDetailedMetrics**](MessagingProfileDetailedMetrics.md) | | [optional] | diff --git a/docs/RetrieveMessagingSettingsResponse.md b/docs/RetrieveMessagingSettingsResponse.md index eaca00b7..0af864df 100644 --- a/docs/RetrieveMessagingSettingsResponse.md +++ b/docs/RetrieveMessagingSettingsResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumberWithMessagingSettings**](PhoneNumberWithMessagingSettings.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumberWithMessagingSettings**](PhoneNumberWithMessagingSettings.md) | | [optional] | diff --git a/docs/RetrievePhoneNumberVoiceResponse.md b/docs/RetrievePhoneNumberVoiceResponse.md index b4cff170..e9dd9d50 100644 --- a/docs/RetrievePhoneNumberVoiceResponse.md +++ b/docs/RetrievePhoneNumberVoiceResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**PhoneNumberWithVoiceSettings**](PhoneNumberWithVoiceSettings.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PhoneNumberWithVoiceSettings**](PhoneNumberWithVoiceSettings.md) | | [optional] | diff --git a/docs/RetrieveVerificationResponse.md b/docs/RetrieveVerificationResponse.md index 9cbcbddf..103b5fef 100644 --- a/docs/RetrieveVerificationResponse.md +++ b/docs/RetrieveVerificationResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Verification**](Verification.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Verification**](Verification.md) | | | diff --git a/docs/Room.md b/docs/Room.md index 6a8de1e9..6b5e06ba 100644 --- a/docs/Room.md +++ b/docs/Room.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | A unique identifier for the room. | [optional] -**maxParticipants** | **Integer** | Maximum participants allowed in the room. | [optional] -**uniqueName** | **String** | The unique (within the Telnyx account scope) name of the room. | [optional] -**createdAt** | **String** | ISO 8601 timestamp when the room was created. | [optional] -**updatedAt** | **String** | ISO 8601 timestamp when the room was updated. | [optional] -**activeSessionId** | **UUID** | The identifier of the active room session if any. | [optional] -**sessions** | [**List<RoomSession>**](RoomSession.md) | | [optional] -**enableRecording** | **Boolean** | Enable or disable recording for that room. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this room will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**recordType** | **String** | | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | A unique identifier for the room. | [optional] | +|**maxParticipants** | **Integer** | Maximum participants allowed in the room. | [optional] | +|**uniqueName** | **String** | The unique (within the Telnyx account scope) name of the room. | [optional] | +|**createdAt** | **String** | ISO 8601 timestamp when the room was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 timestamp when the room was updated. | [optional] | +|**activeSessionId** | **UUID** | The identifier of the active room session if any. | [optional] | +|**sessions** | [**List<RoomSession>**](RoomSession.md) | | [optional] | +|**enableRecording** | **Boolean** | Enable or disable recording for that room. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this room will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**recordType** | **String** | | [optional] [readonly] | diff --git a/docs/RoomComposition.md b/docs/RoomComposition.md index 7dc582f0..a9131255 100644 --- a/docs/RoomComposition.md +++ b/docs/RoomComposition.md @@ -5,45 +5,45 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | A unique identifier for the room composition. | [optional] -**roomId** | **UUID** | Identify the room associated with the room composition. | [optional] -**sessionId** | **UUID** | Identify the room session associated with the room composition. | [optional] -**userId** | **UUID** | Identify the user associated with the room composition. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Shows the room composition status. | [optional] -**sizeMb** | **Float** | Shows the room composition size in MB. | [optional] -**downloadUrl** | **String** | Url to download the composition. | [optional] -**durationSecs** | **Integer** | Shows the room composition duration in seconds. | [optional] -**format** | [**FormatEnum**](#FormatEnum) | Shows format of the room composition. | [optional] -**createdAt** | **String** | ISO 8601 timestamp when the room composition was created. | [optional] -**updatedAt** | **String** | ISO 8601 timestamp when the room composition was updated. | [optional] -**endedAt** | **String** | ISO 8601 timestamp when the room composition has ended. | [optional] -**startedAt** | **String** | ISO 8601 timestamp when the room composition has stated. | [optional] -**completedAt** | **String** | ISO 8601 timestamp when the room composition has completed. | [optional] -**videoLayout** | [**Map<String, VideoRegion>**](VideoRegion.md) | Describes the video layout of the room composition in terms of regions. Limited to 2 regions. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this room composition will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room composition will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**recordType** | **String** | | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | A unique identifier for the room composition. | [optional] | +|**roomId** | **UUID** | Identify the room associated with the room composition. | [optional] | +|**sessionId** | **UUID** | Identify the room session associated with the room composition. | [optional] | +|**userId** | **UUID** | Identify the user associated with the room composition. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Shows the room composition status. | [optional] | +|**sizeMb** | **Float** | Shows the room composition size in MB. | [optional] | +|**downloadUrl** | **String** | Url to download the composition. | [optional] | +|**durationSecs** | **Integer** | Shows the room composition duration in seconds. | [optional] | +|**format** | [**FormatEnum**](#FormatEnum) | Shows format of the room composition. | [optional] | +|**createdAt** | **String** | ISO 8601 timestamp when the room composition was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 timestamp when the room composition was updated. | [optional] | +|**endedAt** | **String** | ISO 8601 timestamp when the room composition has ended. | [optional] | +|**startedAt** | **String** | ISO 8601 timestamp when the room composition has stated. | [optional] | +|**completedAt** | **String** | ISO 8601 timestamp when the room composition has completed. | [optional] | +|**videoLayout** | [**Map<String, VideoRegion>**](VideoRegion.md) | Describes the video layout of the room composition in terms of regions. Limited to 2 regions. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this room composition will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this room composition will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**recordType** | **String** | | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -COMPLETED | "completed" -ENQUEUED | "enqueued" -PROCESSING | "processing" +| Name | Value | +|---- | -----| +| COMPLETED | "completed" | +| ENQUEUED | "enqueued" | +| PROCESSING | "processing" | ## Enum: FormatEnum -Name | Value ----- | ----- -MP4 | "mp4" +| Name | Value | +|---- | -----| +| MP4 | "mp4" | diff --git a/docs/RoomCompositionsApi.md b/docs/RoomCompositionsApi.md index 8fe012c7..e680b858 100644 --- a/docs/RoomCompositionsApi.md +++ b/docs/RoomCompositionsApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## createRoomComposition -> CreateRoomCompositionResponse createRoomComposition(createRoomCompositionRequest) +> CreateRoomComposition202Response createRoomComposition(createRoomCompositionRequest) Create a room composition. @@ -42,7 +42,7 @@ public class Example { RoomCompositionsApi apiInstance = new RoomCompositionsApi(defaultClient); CreateRoomCompositionRequest createRoomCompositionRequest = new CreateRoomCompositionRequest(); // CreateRoomCompositionRequest | Parameters that can be defined during room composition creation. try { - CreateRoomCompositionResponse result = apiInstance.createRoomComposition(createRoomCompositionRequest); + CreateRoomComposition202Response result = apiInstance.createRoomComposition(createRoomCompositionRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomCompositionsApi#createRoomComposition"); @@ -64,7 +64,7 @@ Name | Type | Description | Notes ### Return type -[**CreateRoomCompositionResponse**](CreateRoomCompositionResponse.md) +[**CreateRoomComposition202Response**](CreateRoomComposition202Response.md) ### Authorization @@ -155,10 +155,12 @@ null (empty response body) ## listRoomCompositions -> ListRoomCompositionsResponse listRoomCompositions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterSessionId, filterStatus, pageSize, pageNumber) +> ListRoomCompositions200Response listRoomCompositions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterSessionId, filterStatus, pageSize, pageNumber) View a list of room compositions. + + ### Example ```java @@ -190,7 +192,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page Integer pageNumber = 1; // Integer | The page number to load try { - ListRoomCompositionsResponse result = apiInstance.listRoomCompositions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterSessionId, filterStatus, pageSize, pageNumber); + ListRoomCompositions200Response result = apiInstance.listRoomCompositions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterSessionId, filterStatus, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomCompositionsApi#listRoomCompositions"); @@ -218,7 +220,7 @@ Name | Type | Description | Notes ### Return type -[**ListRoomCompositionsResponse**](ListRoomCompositionsResponse.md) +[**ListRoomCompositions200Response**](ListRoomCompositions200Response.md) ### Authorization @@ -237,7 +239,7 @@ Name | Type | Description | Notes ## viewRoomComposition -> GetRoomCompositionResponse viewRoomComposition(roomCompositionId) +> CreateRoomComposition202Response viewRoomComposition(roomCompositionId) View a room composition. @@ -265,7 +267,7 @@ public class Example { RoomCompositionsApi apiInstance = new RoomCompositionsApi(defaultClient); UUID roomCompositionId = UUID.fromString("5219b3af-87c6-4c08-9b58-5a533d893e21"); // UUID | The unique identifier of a room composition. try { - GetRoomCompositionResponse result = apiInstance.viewRoomComposition(roomCompositionId); + CreateRoomComposition202Response result = apiInstance.viewRoomComposition(roomCompositionId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomCompositionsApi#viewRoomComposition"); @@ -287,7 +289,7 @@ Name | Type | Description | Notes ### Return type -[**GetRoomCompositionResponse**](GetRoomCompositionResponse.md) +[**CreateRoomComposition202Response**](CreateRoomComposition202Response.md) ### Authorization diff --git a/docs/RoomParticipant.md b/docs/RoomParticipant.md index 8d371430..e6419c9d 100644 --- a/docs/RoomParticipant.md +++ b/docs/RoomParticipant.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | A unique identifier for the room participant. | [optional] -**sessionId** | **UUID** | Identify the room session that participant is part of. | [optional] -**context** | **String** | Context provided to the given participant through the client SDK | [optional] -**joinedAt** | **String** | ISO 8601 timestamp when the participant joined the session. | [optional] -**updatedAt** | **String** | ISO 8601 timestamp when the participant was updated. | [optional] -**leftAt** | **String** | ISO 8601 timestamp when the participant left the session. | [optional] -**recordType** | **String** | | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | A unique identifier for the room participant. | [optional] | +|**sessionId** | **UUID** | Identify the room session that participant is part of. | [optional] | +|**context** | **String** | Context provided to the given participant through the client SDK | [optional] | +|**joinedAt** | **String** | ISO 8601 timestamp when the participant joined the session. | [optional] | +|**updatedAt** | **String** | ISO 8601 timestamp when the participant was updated. | [optional] | +|**leftAt** | **String** | ISO 8601 timestamp when the participant left the session. | [optional] | +|**recordType** | **String** | | [optional] [readonly] | diff --git a/docs/RoomParticipantsApi.md b/docs/RoomParticipantsApi.md index 8f658eb3..4bc80f7f 100644 --- a/docs/RoomParticipantsApi.md +++ b/docs/RoomParticipantsApi.md @@ -11,10 +11,12 @@ Method | HTTP request | Description ## listRoomParticipants -> ListRoomParticipantsResponse listRoomParticipants(filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, filterSessionId, pageSize, pageNumber) +> ListRoomParticipants200Response listRoomParticipants(filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, filterSessionId, pageSize, pageNumber) View a list of room participants. + + ### Example ```java @@ -51,7 +53,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page Integer pageNumber = 1; // Integer | The page number to load try { - ListRoomParticipantsResponse result = apiInstance.listRoomParticipants(filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, filterSessionId, pageSize, pageNumber); + ListRoomParticipants200Response result = apiInstance.listRoomParticipants(filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, filterSessionId, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomParticipantsApi#listRoomParticipants"); @@ -85,7 +87,7 @@ Name | Type | Description | Notes ### Return type -[**ListRoomParticipantsResponse**](ListRoomParticipantsResponse.md) +[**ListRoomParticipants200Response**](ListRoomParticipants200Response.md) ### Authorization @@ -104,7 +106,7 @@ Name | Type | Description | Notes ## viewRoomParticipant -> GetRoomParticipantResponse viewRoomParticipant(roomParticipantId) +> ViewRoomParticipant200Response viewRoomParticipant(roomParticipantId) View a room participant. @@ -132,7 +134,7 @@ public class Example { RoomParticipantsApi apiInstance = new RoomParticipantsApi(defaultClient); UUID roomParticipantId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room participant. try { - GetRoomParticipantResponse result = apiInstance.viewRoomParticipant(roomParticipantId); + ViewRoomParticipant200Response result = apiInstance.viewRoomParticipant(roomParticipantId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomParticipantsApi#viewRoomParticipant"); @@ -154,7 +156,7 @@ Name | Type | Description | Notes ### Return type -[**GetRoomParticipantResponse**](GetRoomParticipantResponse.md) +[**ViewRoomParticipant200Response**](ViewRoomParticipant200Response.md) ### Authorization diff --git a/docs/RoomRecording.md b/docs/RoomRecording.md index 573f99d9..b9c7a5af 100644 --- a/docs/RoomRecording.md +++ b/docs/RoomRecording.md @@ -5,42 +5,42 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | A unique identifier for the room recording. | [optional] -**roomId** | **UUID** | Identify the room associated with the room recording. | [optional] -**sessionId** | **UUID** | Identify the room session associated with the room recording. | [optional] -**participantId** | **UUID** | Identify the room participant associated with the room recording. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Shows the room recording status. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | Shows the room recording type. | [optional] -**sizeMb** | **Float** | Shows the room recording size in MB. | [optional] -**downloadUrl** | **String** | Url to download the recording. | [optional] -**codec** | **String** | Shows the codec used for the room recording. | [optional] -**durationSecs** | **Integer** | Shows the room recording duration in seconds. | [optional] -**createdAt** | **String** | ISO 8601 timestamp when the room recording was created. | [optional] -**updatedAt** | **String** | ISO 8601 timestamp when the room recording was updated. | [optional] -**endedAt** | **String** | ISO 8601 timestamp when the room recording has ended. | [optional] -**startedAt** | **String** | ISO 8601 timestamp when the room recording has stated. | [optional] -**completedAt** | **String** | ISO 8601 timestamp when the room recording has completed. | [optional] -**recordType** | **String** | | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | A unique identifier for the room recording. | [optional] | +|**roomId** | **UUID** | Identify the room associated with the room recording. | [optional] | +|**sessionId** | **UUID** | Identify the room session associated with the room recording. | [optional] | +|**participantId** | **UUID** | Identify the room participant associated with the room recording. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Shows the room recording status. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Shows the room recording type. | [optional] | +|**sizeMb** | **Float** | Shows the room recording size in MB. | [optional] | +|**downloadUrl** | **String** | Url to download the recording. | [optional] | +|**codec** | **String** | Shows the codec used for the room recording. | [optional] | +|**durationSecs** | **Integer** | Shows the room recording duration in seconds. | [optional] | +|**createdAt** | **String** | ISO 8601 timestamp when the room recording was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 timestamp when the room recording was updated. | [optional] | +|**endedAt** | **String** | ISO 8601 timestamp when the room recording has ended. | [optional] | +|**startedAt** | **String** | ISO 8601 timestamp when the room recording has stated. | [optional] | +|**completedAt** | **String** | ISO 8601 timestamp when the room recording has completed. | [optional] | +|**recordType** | **String** | | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -COMPLETED | "completed" -PROCESSING | "processing" +| Name | Value | +|---- | -----| +| COMPLETED | "completed" | +| PROCESSING | "processing" | ## Enum: TypeEnum -Name | Value ----- | ----- -AUDIO | "audio" -VIDEO | "video" +| Name | Value | +|---- | -----| +| AUDIO | "audio" | +| VIDEO | "video" | diff --git a/docs/RoomRecordingsApi.md b/docs/RoomRecordingsApi.md index aca99e8e..9fb1b83b 100644 --- a/docs/RoomRecordingsApi.md +++ b/docs/RoomRecordingsApi.md @@ -88,6 +88,8 @@ null (empty response body) Delete several room recordings in a bulk. + + ### Example ```java @@ -185,10 +187,12 @@ Name | Type | Description | Notes ## listRoomRecordings -> ListRoomRecordingsResponse listRoomRecordings(filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterDateStartedAtEq, filterDateStartedAtGte, filterDateStartedAtLte, filterRoomId, filterParticipantId, filterSessionId, filterStatus, filterType, filterDurationSecsEq, filterDurationSecsLte, filterDurationSecsGte, pageSize, pageNumber) +> ListRoomRecordings200Response listRoomRecordings(filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterDateStartedAtEq, filterDateStartedAtGte, filterDateStartedAtLte, filterRoomId, filterParticipantId, filterSessionId, filterStatus, filterType, filterDurationSecsEq, filterDurationSecsLte, filterDurationSecsGte, pageSize, pageNumber) View a list of room recordings. + + ### Example ```java @@ -229,7 +233,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page Integer pageNumber = 1; // Integer | The page number to load try { - ListRoomRecordingsResponse result = apiInstance.listRoomRecordings(filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterDateStartedAtEq, filterDateStartedAtGte, filterDateStartedAtLte, filterRoomId, filterParticipantId, filterSessionId, filterStatus, filterType, filterDurationSecsEq, filterDurationSecsLte, filterDurationSecsGte, pageSize, pageNumber); + ListRoomRecordings200Response result = apiInstance.listRoomRecordings(filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterDateStartedAtEq, filterDateStartedAtGte, filterDateStartedAtLte, filterRoomId, filterParticipantId, filterSessionId, filterStatus, filterType, filterDurationSecsEq, filterDurationSecsLte, filterDurationSecsGte, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomRecordingsApi#listRoomRecordings"); @@ -266,7 +270,7 @@ Name | Type | Description | Notes ### Return type -[**ListRoomRecordingsResponse**](ListRoomRecordingsResponse.md) +[**ListRoomRecordings200Response**](ListRoomRecordings200Response.md) ### Authorization @@ -285,7 +289,7 @@ Name | Type | Description | Notes ## viewRoomRecording -> GetRoomRecordingResponse viewRoomRecording(roomRecordingId) +> ViewRoomRecording200Response viewRoomRecording(roomRecordingId) View a room recording. @@ -313,7 +317,7 @@ public class Example { RoomRecordingsApi apiInstance = new RoomRecordingsApi(defaultClient); UUID roomRecordingId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room recording. try { - GetRoomRecordingResponse result = apiInstance.viewRoomRecording(roomRecordingId); + ViewRoomRecording200Response result = apiInstance.viewRoomRecording(roomRecordingId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomRecordingsApi#viewRoomRecording"); @@ -335,7 +339,7 @@ Name | Type | Description | Notes ### Return type -[**GetRoomRecordingResponse**](GetRoomRecordingResponse.md) +[**ViewRoomRecording200Response**](ViewRoomRecording200Response.md) ### Authorization diff --git a/docs/RoomSession.md b/docs/RoomSession.md index 2f4fe372..5edd2b30 100644 --- a/docs/RoomSession.md +++ b/docs/RoomSession.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | A unique identifier for the room session. | [optional] -**roomId** | **UUID** | Identify the room hosting that room session. | [optional] -**active** | **Boolean** | Shows if the room session is active or not. | [optional] -**createdAt** | **String** | ISO 8601 timestamp when the room session was created. | [optional] -**updatedAt** | **String** | ISO 8601 timestamp when the room session was updated. | [optional] -**endedAt** | **String** | ISO 8601 timestamp when the room session has ended. | [optional] -**participants** | [**List<RoomParticipant>**](RoomParticipant.md) | | [optional] -**recordType** | **String** | | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | A unique identifier for the room session. | [optional] | +|**roomId** | **UUID** | Identify the room hosting that room session. | [optional] | +|**active** | **Boolean** | Shows if the room session is active or not. | [optional] | +|**createdAt** | **String** | ISO 8601 timestamp when the room session was created. | [optional] | +|**updatedAt** | **String** | ISO 8601 timestamp when the room session was updated. | [optional] | +|**endedAt** | **String** | ISO 8601 timestamp when the room session has ended. | [optional] | +|**participants** | [**List<RoomParticipant>**](RoomParticipant.md) | | [optional] | +|**recordType** | **String** | | [optional] [readonly] | diff --git a/docs/RoomSessionsApi.md b/docs/RoomSessionsApi.md index 77fec8f1..96ee3b99 100644 --- a/docs/RoomSessionsApi.md +++ b/docs/RoomSessionsApi.md @@ -4,6 +4,7 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- +[**endSession**](RoomSessionsApi.md#endSession) | **POST** /room_sessions/{room_session_id}/actions/end | End a room session. [**kickParticipantInSession**](RoomSessionsApi.md#kickParticipantInSession) | **POST** /room_sessions/{room_session_id}/actions/kick | Kick participants from a room session. [**listRoomSessions**](RoomSessionsApi.md#listRoomSessions) | **GET** /room_sessions | View a list of room sessions. [**muteParticipantInSession**](RoomSessionsApi.md#muteParticipantInSession) | **POST** /room_sessions/{room_session_id}/actions/mute | Mute participants in room session. @@ -13,12 +14,80 @@ Method | HTTP request | Description +## endSession + +> EndSession200Response endSession(roomSessionId) + +End a room session. + +Note: this will also kick all participants currently present in the room + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.RoomSessionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + RoomSessionsApi apiInstance = new RoomSessionsApi(defaultClient); + UUID roomSessionId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room session. + try { + EndSession200Response result = apiInstance.endSession(roomSessionId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling RoomSessionsApi#endSession"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **roomSessionId** | **UUID**| The unique identifier of a room session. | + +### Return type + +[**EndSession200Response**](EndSession200Response.md) + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Success Action Response | - | + + ## kickParticipantInSession -> ActionSuccessResponse kickParticipantInSession(roomSessionId, actionsParticipantsRequest) +> EndSession200Response kickParticipantInSession(roomSessionId, actionsParticipantsRequest) Kick participants from a room session. + + ### Example ```java @@ -39,7 +108,7 @@ public class Example { UUID roomSessionId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room session. ActionsParticipantsRequest actionsParticipantsRequest = new ActionsParticipantsRequest(); // ActionsParticipantsRequest | Parameters that can be defined during Kick action. try { - ActionSuccessResponse result = apiInstance.kickParticipantInSession(roomSessionId, actionsParticipantsRequest); + EndSession200Response result = apiInstance.kickParticipantInSession(roomSessionId, actionsParticipantsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomSessionsApi#kickParticipantInSession"); @@ -62,7 +131,7 @@ Name | Type | Description | Notes ### Return type -[**ActionSuccessResponse**](ActionSuccessResponse.md) +[**EndSession200Response**](EndSession200Response.md) ### Authorization @@ -81,10 +150,12 @@ No authorization required ## listRoomSessions -> ListRoomSessionsResponse listRoomSessions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterRoomId, filterActive, includeParticipants, pageSize, pageNumber) +> ListRoomSessions200Response listRoomSessions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterRoomId, filterActive, includeParticipants, pageSize, pageNumber) View a list of room sessions. + + ### Example ```java @@ -122,7 +193,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page Integer pageNumber = 1; // Integer | The page number to load try { - ListRoomSessionsResponse result = apiInstance.listRoomSessions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterRoomId, filterActive, includeParticipants, pageSize, pageNumber); + ListRoomSessions200Response result = apiInstance.listRoomSessions(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterRoomId, filterActive, includeParticipants, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomSessionsApi#listRoomSessions"); @@ -157,7 +228,7 @@ Name | Type | Description | Notes ### Return type -[**ListRoomSessionsResponse**](ListRoomSessionsResponse.md) +[**ListRoomSessions200Response**](ListRoomSessions200Response.md) ### Authorization @@ -176,10 +247,12 @@ Name | Type | Description | Notes ## muteParticipantInSession -> ActionSuccessResponse muteParticipantInSession(roomSessionId, actionsParticipantsRequest) +> EndSession200Response muteParticipantInSession(roomSessionId, actionsParticipantsRequest) Mute participants in room session. + + ### Example ```java @@ -200,7 +273,7 @@ public class Example { UUID roomSessionId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room session. ActionsParticipantsRequest actionsParticipantsRequest = new ActionsParticipantsRequest(); // ActionsParticipantsRequest | Parameters that can be defined during Mute action. try { - ActionSuccessResponse result = apiInstance.muteParticipantInSession(roomSessionId, actionsParticipantsRequest); + EndSession200Response result = apiInstance.muteParticipantInSession(roomSessionId, actionsParticipantsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomSessionsApi#muteParticipantInSession"); @@ -223,7 +296,7 @@ Name | Type | Description | Notes ### Return type -[**ActionSuccessResponse**](ActionSuccessResponse.md) +[**EndSession200Response**](EndSession200Response.md) ### Authorization @@ -242,10 +315,12 @@ No authorization required ## nestedListRoomParticipants -> ListRoomParticipantsResponse nestedListRoomParticipants(roomSessionId, filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, pageSize, pageNumber) +> ListRoomParticipants200Response nestedListRoomParticipants(roomSessionId, filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, pageSize, pageNumber) View a list of room participants. + + ### Example ```java @@ -283,7 +358,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page Integer pageNumber = 1; // Integer | The page number to load try { - ListRoomParticipantsResponse result = apiInstance.nestedListRoomParticipants(roomSessionId, filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, pageSize, pageNumber); + ListRoomParticipants200Response result = apiInstance.nestedListRoomParticipants(roomSessionId, filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomSessionsApi#nestedListRoomParticipants"); @@ -317,7 +392,7 @@ Name | Type | Description | Notes ### Return type -[**ListRoomParticipantsResponse**](ListRoomParticipantsResponse.md) +[**ListRoomParticipants200Response**](ListRoomParticipants200Response.md) ### Authorization @@ -336,10 +411,12 @@ Name | Type | Description | Notes ## unmuteParticipantInSession -> ActionSuccessResponse unmuteParticipantInSession(roomSessionId, actionsParticipantsRequest) +> EndSession200Response unmuteParticipantInSession(roomSessionId, actionsParticipantsRequest) Unmute participants in room session. + + ### Example ```java @@ -360,7 +437,7 @@ public class Example { UUID roomSessionId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room session. ActionsParticipantsRequest actionsParticipantsRequest = new ActionsParticipantsRequest(); // ActionsParticipantsRequest | Parameters that can be defined during Unmute action. try { - ActionSuccessResponse result = apiInstance.unmuteParticipantInSession(roomSessionId, actionsParticipantsRequest); + EndSession200Response result = apiInstance.unmuteParticipantInSession(roomSessionId, actionsParticipantsRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomSessionsApi#unmuteParticipantInSession"); @@ -383,7 +460,7 @@ Name | Type | Description | Notes ### Return type -[**ActionSuccessResponse**](ActionSuccessResponse.md) +[**EndSession200Response**](EndSession200Response.md) ### Authorization @@ -402,7 +479,7 @@ No authorization required ## viewRoomSession -> GetRoomSessionResponse viewRoomSession(roomSessionId, includeParticipants) +> ViewRoomSession200Response viewRoomSession(roomSessionId, includeParticipants) View a room session. @@ -431,7 +508,7 @@ public class Example { UUID roomSessionId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room session. Boolean includeParticipants = true; // Boolean | To decide if room participants should be included in the response. try { - GetRoomSessionResponse result = apiInstance.viewRoomSession(roomSessionId, includeParticipants); + ViewRoomSession200Response result = apiInstance.viewRoomSession(roomSessionId, includeParticipants); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomSessionsApi#viewRoomSession"); @@ -454,7 +531,7 @@ Name | Type | Description | Notes ### Return type -[**GetRoomSessionResponse**](GetRoomSessionResponse.md) +[**ViewRoomSession200Response**](ViewRoomSession200Response.md) ### Authorization diff --git a/docs/RoomsApi.md b/docs/RoomsApi.md index 854cd736..3ec37e9b 100644 --- a/docs/RoomsApi.md +++ b/docs/RoomsApi.md @@ -15,7 +15,7 @@ Method | HTTP request | Description ## createRoom -> CreateRoomResponse createRoom(createRoomRequest) +> CreateRoom201Response createRoom(createRoomRequest) Create a room. @@ -44,7 +44,7 @@ public class Example { RoomsApi apiInstance = new RoomsApi(defaultClient); CreateRoomRequest createRoomRequest = new CreateRoomRequest(); // CreateRoomRequest | Parameters that can be defined during room creation. try { - CreateRoomResponse result = apiInstance.createRoom(createRoomRequest); + CreateRoom201Response result = apiInstance.createRoom(createRoomRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomsApi#createRoom"); @@ -66,7 +66,7 @@ Name | Type | Description | Notes ### Return type -[**CreateRoomResponse**](CreateRoomResponse.md) +[**CreateRoom201Response**](CreateRoom201Response.md) ### Authorization @@ -157,10 +157,12 @@ null (empty response body) ## listRooms -> ListRoomsResponse listRooms(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterUniqueName, includeSessions, pageSize, pageNumber) +> ListRooms200Response listRooms(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterUniqueName, includeSessions, pageSize, pageNumber) View a list of rooms. + + ### Example ```java @@ -194,7 +196,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page Integer pageNumber = 1; // Integer | The page number to load try { - ListRoomsResponse result = apiInstance.listRooms(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterUniqueName, includeSessions, pageSize, pageNumber); + ListRooms200Response result = apiInstance.listRooms(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterUniqueName, includeSessions, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomsApi#listRooms"); @@ -225,7 +227,7 @@ Name | Type | Description | Notes ### Return type -[**ListRoomsResponse**](ListRoomsResponse.md) +[**ListRooms200Response**](ListRooms200Response.md) ### Authorization @@ -244,10 +246,12 @@ Name | Type | Description | Notes ## nestedListRoomSessions -> ListRoomSessionsResponse nestedListRoomSessions(roomId, filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterActive, includeParticipants, pageSize, pageNumber) +> ListRoomSessions200Response nestedListRoomSessions(roomId, filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterActive, includeParticipants, pageSize, pageNumber) View a list of room sessions. + + ### Example ```java @@ -286,7 +290,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page Integer pageNumber = 1; // Integer | The page number to load try { - ListRoomSessionsResponse result = apiInstance.nestedListRoomSessions(roomId, filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterActive, includeParticipants, pageSize, pageNumber); + ListRoomSessions200Response result = apiInstance.nestedListRoomSessions(roomId, filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterActive, includeParticipants, pageSize, pageNumber); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomsApi#nestedListRoomSessions"); @@ -321,7 +325,7 @@ Name | Type | Description | Notes ### Return type -[**ListRoomSessionsResponse**](ListRoomSessionsResponse.md) +[**ListRoomSessions200Response**](ListRoomSessions200Response.md) ### Authorization @@ -340,7 +344,7 @@ Name | Type | Description | Notes ## patchRoom -> PatchRoomResponse patchRoom(roomId, patchRoomRequest) +> CreateRoom201Response patchRoom(roomId, patchRoomRequest) Update a room. @@ -371,7 +375,7 @@ public class Example { UUID roomId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room. PatchRoomRequest patchRoomRequest = new PatchRoomRequest(); // PatchRoomRequest | Parameters that can be defined during room update. try { - PatchRoomResponse result = apiInstance.patchRoom(roomId, patchRoomRequest); + CreateRoom201Response result = apiInstance.patchRoom(roomId, patchRoomRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomsApi#patchRoom"); @@ -394,7 +398,7 @@ Name | Type | Description | Notes ### Return type -[**PatchRoomResponse**](PatchRoomResponse.md) +[**CreateRoom201Response**](CreateRoom201Response.md) ### Authorization @@ -409,14 +413,14 @@ Name | Type | Description | Notes | Status code | Description | Response headers | |-------------|-------------|------------------| | **200** | Update room response. | - | -| **401** | Unauthorized | - | +| **401** | Unauthorized response. Happens when the current user is not a manager account. | - | | **404** | Resource not found | - | | **422** | Bad request | - | ## viewRoom -> GetRoomResponse viewRoom(roomId, includeSessions) +> CreateRoom201Response viewRoom(roomId, includeSessions) View a room. @@ -445,7 +449,7 @@ public class Example { UUID roomId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room. Boolean includeSessions = true; // Boolean | To decide if room sessions should be included in the response. try { - GetRoomResponse result = apiInstance.viewRoom(roomId, includeSessions); + CreateRoom201Response result = apiInstance.viewRoom(roomId, includeSessions); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomsApi#viewRoom"); @@ -468,7 +472,7 @@ Name | Type | Description | Notes ### Return type -[**GetRoomResponse**](GetRoomResponse.md) +[**CreateRoom201Response**](CreateRoom201Response.md) ### Authorization diff --git a/docs/RoomsClientTokensApi.md b/docs/RoomsClientTokensApi.md index e88abc8c..089d435d 100644 --- a/docs/RoomsClientTokensApi.md +++ b/docs/RoomsClientTokensApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## createRoomClientToken -> CreateRoomClientTokenResponse createRoomClientToken(roomId, createRoomClientTokenRequest) +> CreateRoomClientToken201Response createRoomClientToken(roomId, createRoomClientTokenRequest) Create Client Token to join a room. @@ -42,7 +42,7 @@ public class Example { UUID roomId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room. CreateRoomClientTokenRequest createRoomClientTokenRequest = new CreateRoomClientTokenRequest(); // CreateRoomClientTokenRequest | Parameters that can be defined during Room Client Token creation. try { - CreateRoomClientTokenResponse result = apiInstance.createRoomClientToken(roomId, createRoomClientTokenRequest); + CreateRoomClientToken201Response result = apiInstance.createRoomClientToken(roomId, createRoomClientTokenRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomsClientTokensApi#createRoomClientToken"); @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**CreateRoomClientTokenResponse**](CreateRoomClientTokenResponse.md) +[**CreateRoomClientToken201Response**](CreateRoomClientToken201Response.md) ### Authorization @@ -85,7 +85,7 @@ Name | Type | Description | Notes ## refreshRoomClientToken -> RefreshRoomClientTokenResponse refreshRoomClientToken(roomId, refreshRoomClientTokenRequest) +> RefreshRoomClientToken201Response refreshRoomClientToken(roomId, refreshRoomClientTokenRequest) Refresh Client Token to join a room. @@ -111,7 +111,7 @@ public class Example { UUID roomId = UUID.fromString("0ccc7b54-4df3-4bca-a65a-3da1ecc777f0"); // UUID | The unique identifier of a room. RefreshRoomClientTokenRequest refreshRoomClientTokenRequest = new RefreshRoomClientTokenRequest(); // RefreshRoomClientTokenRequest | Parameters that can be defined during Room Client Token refresh. try { - RefreshRoomClientTokenResponse result = apiInstance.refreshRoomClientToken(roomId, refreshRoomClientTokenRequest); + RefreshRoomClientToken201Response result = apiInstance.refreshRoomClientToken(roomId, refreshRoomClientTokenRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling RoomsClientTokensApi#refreshRoomClientToken"); @@ -134,7 +134,7 @@ Name | Type | Description | Notes ### Return type -[**RefreshRoomClientTokenResponse**](RefreshRoomClientTokenResponse.md) +[**RefreshRoomClientToken201Response**](RefreshRoomClientToken201Response.md) ### Authorization diff --git a/docs/SIMCard.md b/docs/SIMCard.md index 32a4ef29..7a863266 100644 --- a/docs/SIMCard.md +++ b/docs/SIMCard.md @@ -5,25 +5,38 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**status** | [**SIMCardStatus**](SIMCardStatus.md) | | [optional] -**iccid** | **String** | The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card's memory and are also engraved or printed on the SIM card body during a process called personalization. | [optional] [readonly] -**imsi** | **String** | SIM cards are identified on their individual operator networks by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR). | [optional] [readonly] -**msisdn** | **String** | Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally. <br/> MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber's operator. | [optional] [readonly] -**simCardGroupId** | **UUID** | The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource. | [optional] -**tags** | **List<String>** | Searchable tags associated with the SIM card | [optional] -**dataLimit** | [**SIMCardDataLimit**](SIMCardDataLimit.md) | | [optional] -**currentBillingPeriodConsumedData** | [**SIMCardCurrentBillingPeriodConsumedData**](SIMCardCurrentBillingPeriodConsumedData.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] -**ipv4** | **String** | The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] -**ipv6** | **String** | The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] -**currentDeviceLocation** | [**SIMCardCurrentDeviceLocation**](SIMCardCurrentDeviceLocation.md) | | [optional] -**currentMnc** | **String** | Mobile Network Code of the current network to which the SIM card is connected. It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] -**currentMcc** | **String** | Mobile Country Code of the current network to which the SIM card is connected. It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**status** | [**SIMCardStatus**](SIMCardStatus.md) | | [optional] | +|**iccid** | **String** | The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card's memory and are also engraved or printed on the SIM card body during a process called personalization. | [optional] [readonly] | +|**imsi** | **String** | SIM cards are identified on their individual operator networks by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR). | [optional] [readonly] | +|**msisdn** | **String** | Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally. <br/> MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber's operator. | [optional] [readonly] | +|**simCardGroupId** | **UUID** | The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource. | [optional] | +|**tags** | **List<String>** | Searchable tags associated with the SIM card | [optional] | +|**dataLimit** | [**SIMCardDataLimit**](SIMCardDataLimit.md) | | [optional] | +|**currentBillingPeriodConsumedData** | [**SIMCardCurrentBillingPeriodConsumedData**](SIMCardCurrentBillingPeriodConsumedData.md) | | [optional] | +|**authorizedImeis** | **List<String>** | List of IMEIs authorized to use a given SIM card. | [optional] | +|**currentImei** | **String** | IMEI of the device where a given SIM card is currently being used. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**ipv4** | **String** | The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] | +|**ipv6** | **String** | The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] | +|**currentDeviceLocation** | [**SIMCardCurrentDeviceLocation**](SIMCardCurrentDeviceLocation.md) | | [optional] | +|**currentMnc** | **String** | Mobile Network Code of the current network to which the SIM card is connected. It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] | +|**currentMcc** | **String** | Mobile Country Code of the current network to which the SIM card is connected. It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] | +|**liveDataSession** | [**LiveDataSessionEnum**](#LiveDataSessionEnum) | Indicates whether the device is actively connected to a network and able to run data. | [optional] [readonly] | + + + +## Enum: LiveDataSessionEnum + +| Name | Value | +|---- | -----| +| CONNECTED | "connected" | +| DISCONNECTED | "disconnected" | +| UNKNOWN | "unknown" | diff --git a/docs/SIMCardAction.md b/docs/SIMCardAction.md index ffbeb70e..69d01345 100644 --- a/docs/SIMCardAction.md +++ b/docs/SIMCardAction.md @@ -6,27 +6,27 @@ This object represents a SIM card action. It allows tracking the current status ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**simCardId** | **UUID** | The related SIM card identifier. | [optional] [readonly] -**actionType** | [**ActionTypeEnum**](#ActionTypeEnum) | The operation type. It can be one of the following: <br/> <ul> <li><code>enable</code> - move the SIM card to the <code>enabled</code> status</li> <li><code>enable_standby_sim_card</code> - move a SIM card previously on the <code>standby</code> status to the <code>enabled</code> status after it consumes data.</li> <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li> <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li> </ul> | [optional] [readonly] -**status** | [**SIMCardActionStatus**](SIMCardActionStatus.md) | | [optional] -**settings** | **Object** | A JSON object representation of the action params. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**simCardId** | **UUID** | The related SIM card identifier. | [optional] [readonly] | +|**actionType** | [**ActionTypeEnum**](#ActionTypeEnum) | The operation type. It can be one of the following: <br/> <ul> <li><code>enable</code> - move the SIM card to the <code>enabled</code> status</li> <li><code>enable_standby_sim_card</code> - move a SIM card previously on the <code>standby</code> status to the <code>enabled</code> status after it consumes data.</li> <li><code>disable</code> - move the SIM card to the <code>disabled</code> status</li> <li><code>set_standby</code> - move the SIM card to the <code>standby</code> status</li> </ul> | [optional] [readonly] | +|**status** | [**SIMCardActionStatus**](SIMCardActionStatus.md) | | [optional] | +|**settings** | **Object** | A JSON object representation of the action params. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | ## Enum: ActionTypeEnum -Name | Value ----- | ----- -ENABLE | "enable" -ENABLE_STANDBY_SIM_CARD | "enable_standby_sim_card" -DISABLE | "disable" -SET_STANDBY | "set_standby" +| Name | Value | +|---- | -----| +| ENABLE | "enable" | +| ENABLE_STANDBY_SIM_CARD | "enable_standby_sim_card" | +| DISABLE | "disable" | +| SET_STANDBY | "set_standby" | diff --git a/docs/SIMCardActionStatus.md b/docs/SIMCardActionStatus.md index 0acd4948..4bbf2968 100644 --- a/docs/SIMCardActionStatus.md +++ b/docs/SIMCardActionStatus.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**ValueEnum**](#ValueEnum) | The current status of the SIM card action. | [optional] [readonly] -**reason** | **String** | It describes why the SIM card action is in the current status. This will be <code>null</code> for self-explanatory statuses, such as <code>in-progress</code> and <code>completed</code> but will include further information on statuses like <code>interrupted</code> and <code>failed</code>. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | [**ValueEnum**](#ValueEnum) | The current status of the SIM card action. | [optional] [readonly] | +|**reason** | **String** | It describes why the SIM card action is in the current status. This will be <code>null</code> for self-explanatory statuses, such as <code>in-progress</code> and <code>completed</code> but will include further information on statuses like <code>interrupted</code> and <code>failed</code>. | [optional] [readonly] | ## Enum: ValueEnum -Name | Value ----- | ----- -IN_PROGRESS | "in-progress" -COMPLETED | "completed" -FAILED | "failed" -INTERRUPTED | "interrupted" +| Name | Value | +|---- | -----| +| IN_PROGRESS | "in-progress" | +| COMPLETED | "completed" | +| FAILED | "failed" | +| INTERRUPTED | "interrupted" | diff --git a/docs/SIMCardActionsSummary.md b/docs/SIMCardActionsSummary.md new file mode 100644 index 00000000..9b5a34d9 --- /dev/null +++ b/docs/SIMCardActionsSummary.md @@ -0,0 +1,25 @@ + + +# SIMCardActionsSummary + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**count** | **Integer** | | [optional] | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| IN_PROGRESS | "in-progress" | +| COMPLETED | "completed" | +| FAILED | "failed" | +| INTERRUPTED | "interrupted" | + + + diff --git a/docs/SIMCardCurrentBillingPeriodConsumedData.md b/docs/SIMCardCurrentBillingPeriodConsumedData.md index 6c74c1e4..7af2e3cc 100644 --- a/docs/SIMCardCurrentBillingPeriodConsumedData.md +++ b/docs/SIMCardCurrentBillingPeriodConsumedData.md @@ -6,10 +6,10 @@ The SIM card consumption so far in the current billing cycle. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **BigDecimal** | | [optional] -**unit** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | | [optional] | +|**unit** | **String** | | [optional] | diff --git a/docs/SIMCardCurrentDeviceLocation.md b/docs/SIMCardCurrentDeviceLocation.md index bdfaa547..f1a60bc6 100644 --- a/docs/SIMCardCurrentDeviceLocation.md +++ b/docs/SIMCardCurrentDeviceLocation.md @@ -6,12 +6,12 @@ Current physical location data of a given SIM card. Accuracy is given in meters. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**latitude** | **Float** | | [optional] -**longitude** | **Float** | | [optional] -**accuracy** | **Integer** | | [optional] -**accuracyUnit** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**latitude** | **Float** | | [optional] | +|**longitude** | **Float** | | [optional] | +|**accuracy** | **Integer** | | [optional] | +|**accuracyUnit** | **String** | | [optional] | diff --git a/docs/SIMCardDataLimit.md b/docs/SIMCardDataLimit.md index 12f4c00e..a2789946 100644 --- a/docs/SIMCardDataLimit.md +++ b/docs/SIMCardDataLimit.md @@ -6,19 +6,19 @@ The SIM card individual data limit configuration. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **BigDecimal** | | [optional] -**unit** | [**UnitEnum**](#UnitEnum) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | | [optional] | +|**unit** | [**UnitEnum**](#UnitEnum) | | [optional] | ## Enum: UnitEnum -Name | Value ----- | ----- -MB | "MB" -GB | "GB" +| Name | Value | +|---- | -----| +| MB | "MB" | +| GB | "GB" | diff --git a/docs/SIMCardDeviceDetails.md b/docs/SIMCardDeviceDetails.md new file mode 100644 index 00000000..5a0b61cc --- /dev/null +++ b/docs/SIMCardDeviceDetails.md @@ -0,0 +1,18 @@ + + +# SIMCardDeviceDetails + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**imei** | **String** | IMEI of the device where the SIM card is being used in. | [optional] [readonly] | +|**modelName** | **String** | Brand of the device where the SIM card is being used in. | [optional] [readonly] | +|**brandName** | **String** | Brand of the device where the SIM card is being used in. | [optional] [readonly] | +|**deviceType** | **String** | Type of the device where the SIM card is being used in. | [optional] [readonly] | +|**operatingSystem** | **String** | Operating system of the device where the SIM card is being used in. | [optional] [readonly] | + + + diff --git a/docs/SIMCardDeviceDetailsGet200Response.md b/docs/SIMCardDeviceDetailsGet200Response.md new file mode 100644 index 00000000..63510a7a --- /dev/null +++ b/docs/SIMCardDeviceDetailsGet200Response.md @@ -0,0 +1,13 @@ + + +# SIMCardDeviceDetailsGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardDeviceDetails**](SIMCardDeviceDetails.md) | | [optional] | + + + diff --git a/docs/SIMCardGroup.md b/docs/SIMCardGroup.md index a4da93b7..cf9e2172 100644 --- a/docs/SIMCardGroup.md +++ b/docs/SIMCardGroup.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**_default** | **Boolean** | Indicates whether the SIM card group is the users default group.<br/>The default group is created for the user and can not be removed. | [optional] [readonly] -**name** | **String** | A user friendly name for the SIM card group. | [optional] -**dataLimit** | [**SIMCardGroupDataLimit**](SIMCardGroupDataLimit.md) | | [optional] -**consumedData** | [**ConsumedData**](ConsumedData.md) | | [optional] -**privateWirelessGatewayId** | **UUID** | The identification of the related Private Wireless Gateway resource. | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**_default** | **Boolean** | Indicates whether the SIM card group is the users default group.<br/>The default group is created for the user and can not be removed. | [optional] [readonly] | +|**name** | **String** | A user friendly name for the SIM card group. | [optional] | +|**dataLimit** | [**SIMCardGroupDataLimit**](SIMCardGroupDataLimit.md) | | [optional] | +|**consumedData** | [**ConsumedData**](ConsumedData.md) | | [optional] | +|**privateWirelessGatewayId** | **UUID** | The identification of the related Private Wireless Gateway resource. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | diff --git a/docs/SIMCardGroupAction.md b/docs/SIMCardGroupAction.md index bdfdb14f..db1f6397 100644 --- a/docs/SIMCardGroupAction.md +++ b/docs/SIMCardGroupAction.md @@ -6,35 +6,35 @@ This object represents a SIM card group action request. It allows tracking the c ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**simCardGroupId** | **UUID** | The SIM card group identification. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | Represents the type of the operation requested. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**settings** | [**SIMCardGroupActionSettings**](SIMCardGroupActionSettings.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**simCardGroupId** | **UUID** | The SIM card group identification. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Represents the type of the operation requested. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**settings** | [**SIMCardGroupActionSettings**](SIMCardGroupActionSettings.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | ## Enum: TypeEnum -Name | Value ----- | ----- -SET_PRIVATE_WIRELESS_GATEWAY | "set_private_wireless_gateway" -REMOVE_PRIVATE_WIRELESS_GATEWAY | "remove_private_wireless_gateway" +| Name | Value | +|---- | -----| +| SET_PRIVATE_WIRELESS_GATEWAY | "set_private_wireless_gateway" | +| REMOVE_PRIVATE_WIRELESS_GATEWAY | "remove_private_wireless_gateway" | ## Enum: StatusEnum -Name | Value ----- | ----- -IN_PROGRESS | "in-progress" -COMPLETED | "completed" -FAILED | "failed" +| Name | Value | +|---- | -----| +| IN_PROGRESS | "in-progress" | +| COMPLETED | "completed" | +| FAILED | "failed" | diff --git a/docs/SIMCardGroupActionSettings.md b/docs/SIMCardGroupActionSettings.md index eb9303af..38babf65 100644 --- a/docs/SIMCardGroupActionSettings.md +++ b/docs/SIMCardGroupActionSettings.md @@ -6,9 +6,9 @@ A JSON object representation of the action params. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**privateWirelessGatewayId** | **UUID** | The identification of the related Private Wireless Gateway resource. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**privateWirelessGatewayId** | **UUID** | The identification of the related Private Wireless Gateway resource. | [optional] | diff --git a/docs/SIMCardGroupCreate.md b/docs/SIMCardGroupCreate.md index d51f5394..493fccc5 100644 --- a/docs/SIMCardGroupCreate.md +++ b/docs/SIMCardGroupCreate.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A user friendly name for the SIM card group. | -**dataLimit** | [**SIMCardGroupDataLimit**](SIMCardGroupDataLimit.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A user friendly name for the SIM card group. | | +|**dataLimit** | [**SIMCardGroupDataLimit**](SIMCardGroupDataLimit.md) | | [optional] | diff --git a/docs/SIMCardGroupDataLimit.md b/docs/SIMCardGroupDataLimit.md index 3b84358a..c2ce31c6 100644 --- a/docs/SIMCardGroupDataLimit.md +++ b/docs/SIMCardGroupDataLimit.md @@ -6,10 +6,10 @@ Upper limit on the amount of data the SIM cards, within the group, can use. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **BigDecimal** | | [optional] -**unit** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | | [optional] | +|**unit** | **String** | | [optional] | diff --git a/docs/SIMCardGroupPatch.md b/docs/SIMCardGroupPatch.md index 5982330d..10f0964c 100644 --- a/docs/SIMCardGroupPatch.md +++ b/docs/SIMCardGroupPatch.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A user friendly name for the SIM card group. | [optional] -**dataLimit** | [**SIMCardGroupDataLimit**](SIMCardGroupDataLimit.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A user friendly name for the SIM card group. | [optional] | +|**dataLimit** | [**SIMCardGroupDataLimit**](SIMCardGroupDataLimit.md) | | [optional] | diff --git a/docs/SIMCardNetworkPreference.md b/docs/SIMCardNetworkPreference.md index 108c5d19..61e658ec 100644 --- a/docs/SIMCardNetworkPreference.md +++ b/docs/SIMCardNetworkPreference.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**simCardId** | **UUID** | | [optional] -**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesResponse>**](MobileOperatorNetworkPreferencesResponse.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**simCardId** | **UUID** | | [optional] | +|**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesResponse>**](MobileOperatorNetworkPreferencesResponse.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | diff --git a/docs/SIMCardNetworkPreferenceWithOTAUpdates.md b/docs/SIMCardNetworkPreferenceWithOTAUpdates.md index c25f2f9a..ef01e6d0 100644 --- a/docs/SIMCardNetworkPreferenceWithOTAUpdates.md +++ b/docs/SIMCardNetworkPreferenceWithOTAUpdates.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**simCardId** | **UUID** | | [optional] -**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesResponse>**](MobileOperatorNetworkPreferencesResponse.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] -**otaUpdates** | [**List<CompleteOTAUpdate>**](CompleteOTAUpdate.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**simCardId** | **UUID** | | [optional] | +|**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesResponse>**](MobileOperatorNetworkPreferencesResponse.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] | +|**otaUpdates** | [**List<CompleteOTAUpdate>**](CompleteOTAUpdate.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | diff --git a/docs/SIMCardNetworkPreferencesGet200Response.md b/docs/SIMCardNetworkPreferencesGet200Response.md new file mode 100644 index 00000000..22413bce --- /dev/null +++ b/docs/SIMCardNetworkPreferencesGet200Response.md @@ -0,0 +1,13 @@ + + +# SIMCardNetworkPreferencesGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardNetworkPreferenceWithOTAUpdates**](SIMCardNetworkPreferenceWithOTAUpdates.md) | | [optional] | + + + diff --git a/docs/SIMCardNetworkPreferencesPutRequest.md b/docs/SIMCardNetworkPreferencesPutRequest.md new file mode 100644 index 00000000..bc4dc1a3 --- /dev/null +++ b/docs/SIMCardNetworkPreferencesPutRequest.md @@ -0,0 +1,13 @@ + + +# SIMCardNetworkPreferencesPutRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mobileOperatorNetworksPreferences** | [**List<MobileOperatorNetworkPreferencesRequest>**](MobileOperatorNetworkPreferencesRequest.md) | A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. | [optional] | + + + diff --git a/docs/SIMCardOrder.md b/docs/SIMCardOrder.md index 1df41e27..f6996b80 100644 --- a/docs/SIMCardOrder.md +++ b/docs/SIMCardOrder.md @@ -5,30 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**quantity** | **Integer** | The amount of SIM cards requested in the SIM card order. | [optional] -**cost** | [**SIMCardOrderCost**](SIMCardOrderCost.md) | | [optional] -**orderAddress** | [**SIMCardOrderOrderAddress**](SIMCardOrderOrderAddress.md) | | [optional] -**trackingUrl** | **String** | The URL used to get tracking information about the order. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The current status of the SIM Card order.<ul> <li><code>pending</code> - the order is waiting to be processed.</li> <li><code>processing</code> - the order is currently being processed.</li> <li><code>ready_to_ship</code> - the order is ready to be shipped to the specified <b>address</b>.</li> <li><code>shipped</code> - the order was shipped and is on its way to be delivered to the specified <b>address</b>.</li> <li><code>delivered</code> - the order was delivered to the specified <b>address</b>.</li> <li><code>canceled</code> - the order was canceled.</li> </ul> | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**quantity** | **Integer** | The amount of SIM cards requested in the SIM card order. | [optional] | +|**cost** | [**SIMCardOrderCost**](SIMCardOrderCost.md) | | [optional] | +|**orderAddress** | [**SIMCardOrderOrderAddress**](SIMCardOrderOrderAddress.md) | | [optional] | +|**trackingUrl** | **String** | The URL used to get tracking information about the order. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The current status of the SIM Card order.<ul> <li><code>pending</code> - the order is waiting to be processed.</li> <li><code>processing</code> - the order is currently being processed.</li> <li><code>ready_to_ship</code> - the order is ready to be shipped to the specified <b>address</b>.</li> <li><code>shipped</code> - the order was shipped and is on its way to be delivered to the specified <b>address</b>.</li> <li><code>delivered</code> - the order was delivered to the specified <b>address</b>.</li> <li><code>canceled</code> - the order was canceled.</li> </ul> | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was last updated. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -PROCESSING | "processing" -READY_TO_SHIP | "ready_to_ship" -SHIPPED | "shipped" -DELIVERED | "delivered" -CANCELED | "canceled" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| PROCESSING | "processing" | +| READY_TO_SHIP | "ready_to_ship" | +| SHIPPED | "shipped" | +| DELIVERED | "delivered" | +| CANCELED | "canceled" | diff --git a/docs/SIMCardOrderCost.md b/docs/SIMCardOrderCost.md index 7cdfdbbd..5c88c61e 100644 --- a/docs/SIMCardOrderCost.md +++ b/docs/SIMCardOrderCost.md @@ -6,10 +6,10 @@ An object representing the total cost of the order. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **String** | A string representing the cost amount. | [optional] -**currency** | **String** | Filter by ISO 4217 currency string. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **String** | A string representing the cost amount. | [optional] | +|**currency** | **String** | Filter by ISO 4217 currency string. | [optional] | diff --git a/docs/SIMCardOrderOrderAddress.md b/docs/SIMCardOrderOrderAddress.md index db6637ac..ebe61008 100644 --- a/docs/SIMCardOrderOrderAddress.md +++ b/docs/SIMCardOrderOrderAddress.md @@ -6,15 +6,15 @@ An object representing the address information from when the order was submitted ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Uniquely identifies the address for the order. | [optional] -**streetAddress** | **String** | The name of the street where the address is located. | [optional] -**extendedAddress** | **String** | Supplemental field for address information. | [optional] -**locality** | **String** | The name of the city where the address is located. | [optional] -**administrativeArea** | **String** | State or province where the address is located. | [optional] -**countryCode** | **String** | The mobile operator two-character (ISO 3166-1 alpha-2) origin country code. | [optional] -**postalCode** | **String** | Postal code for the address. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Uniquely identifies the address for the order. | [optional] | +|**streetAddress** | **String** | The name of the street where the address is located. | [optional] | +|**extendedAddress** | **String** | Supplemental field for address information. | [optional] | +|**locality** | **String** | The name of the city where the address is located. | [optional] | +|**administrativeArea** | **String** | State or province where the address is located. | [optional] | +|**countryCode** | **String** | The mobile operator two-character (ISO 3166-1 alpha-2) origin country code. | [optional] | +|**postalCode** | **String** | Postal code for the address. | [optional] | diff --git a/docs/SIMCardOrderPreview.md b/docs/SIMCardOrderPreview.md index ad72b364..315697f0 100644 --- a/docs/SIMCardOrderPreview.md +++ b/docs/SIMCardOrderPreview.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**totalCost** | [**SIMCardOrderPreviewTotalCost**](SIMCardOrderPreviewTotalCost.md) | | [optional] -**shippingCost** | [**SIMCardOrderPreviewTotalCost**](SIMCardOrderPreviewTotalCost.md) | | [optional] -**simCardsCost** | [**SIMCardOrderPreviewTotalCost**](SIMCardOrderPreviewTotalCost.md) | | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] -**quantity** | **Integer** | The amount of SIM cards requested in the SIM card order. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**totalCost** | [**SIMCardOrderPreviewTotalCost**](SIMCardOrderPreviewTotalCost.md) | | [optional] | +|**shippingCost** | [**SIMCardOrderPreviewTotalCost**](SIMCardOrderPreviewTotalCost.md) | | [optional] | +|**simCardsCost** | [**SIMCardOrderPreviewTotalCost**](SIMCardOrderPreviewTotalCost.md) | | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**quantity** | **Integer** | The amount of SIM cards requested in the SIM card order. | [optional] | diff --git a/docs/SIMCardOrderPreviewTotalCost.md b/docs/SIMCardOrderPreviewTotalCost.md index 4849d121..c52f97f2 100644 --- a/docs/SIMCardOrderPreviewTotalCost.md +++ b/docs/SIMCardOrderPreviewTotalCost.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **String** | A string representing the cost amount. | [optional] -**currency** | **String** | ISO 4217 currency string. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **String** | A string representing the cost amount. | [optional] | +|**currency** | **String** | ISO 4217 currency string. | [optional] | diff --git a/docs/SIMCardPublicIP.md b/docs/SIMCardPublicIP.md index 5214c735..9ad4809e 100644 --- a/docs/SIMCardPublicIP.md +++ b/docs/SIMCardPublicIP.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**simCardId** | **UUID** | | [optional] -**type** | [**TypeEnum**](#TypeEnum) | | [optional] [readonly] -**ip** | **String** | The provisioned IP address. This attribute will only be available when underlying resource status is in a \"provisioned\" status. | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**simCardId** | **UUID** | | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | | [optional] [readonly] | +|**ip** | **String** | The provisioned IP address. This attribute will only be available when underlying resource status is in a \"provisioned\" status. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | ## Enum: TypeEnum -Name | Value ----- | ----- -IPV4 | "ipv4" +| Name | Value | +|---- | -----| +| IPV4 | "ipv4" | diff --git a/docs/SIMCardPublicIPGet200Response.md b/docs/SIMCardPublicIPGet200Response.md new file mode 100644 index 00000000..afda8288 --- /dev/null +++ b/docs/SIMCardPublicIPGet200Response.md @@ -0,0 +1,13 @@ + + +# SIMCardPublicIPGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardPublicIP**](SIMCardPublicIP.md) | | [optional] | + + + diff --git a/docs/SIMCardRegistration.md b/docs/SIMCardRegistration.md index 83d13f5f..edb17113 100644 --- a/docs/SIMCardRegistration.md +++ b/docs/SIMCardRegistration.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**simCardGroupId** | **UUID** | The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource. | [optional] -**tags** | **List<String>** | Searchable tags associated with the SIM card | [optional] -**registrationCodes** | **List<String>** | | -**status** | [**StatusEnum**](#StatusEnum) | Status on which the SIM card will be set after being successful registered. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**simCardGroupId** | **UUID** | The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource. | [optional] | +|**tags** | **List<String>** | Searchable tags associated with the SIM card | [optional] | +|**registrationCodes** | **List<String>** | | | +|**status** | [**StatusEnum**](#StatusEnum) | Status on which the SIM card will be set after being successful registered. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -ENABLED | "enabled" -DISABLED | "disabled" -STANDBY | "standby" +| Name | Value | +|---- | -----| +| ENABLED | "enabled" | +| DISABLED | "disabled" | +| STANDBY | "standby" | diff --git a/docs/SIMCardRegistrationCodeValidation.md b/docs/SIMCardRegistrationCodeValidation.md index 1c6aaa7a..dc4f3373 100644 --- a/docs/SIMCardRegistrationCodeValidation.md +++ b/docs/SIMCardRegistrationCodeValidation.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] -**registrationCode** | **String** | The 10-digit SIM card registration code | [optional] -**valid** | **Boolean** | The attribute that denotes whether the code is valid or not | [optional] -**invalidDetail** | **String** | The validation message | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] | +|**registrationCode** | **String** | The 10-digit SIM card registration code | [optional] | +|**valid** | **Boolean** | The attribute that denotes whether the code is valid or not | [optional] | +|**invalidDetail** | **String** | The validation message | [optional] | diff --git a/docs/SIMCardRegistrationCodeValidations.md b/docs/SIMCardRegistrationCodeValidations.md index 131f2392..6c15935e 100644 --- a/docs/SIMCardRegistrationCodeValidations.md +++ b/docs/SIMCardRegistrationCodeValidations.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<SIMCardRegistrationCodeValidation>**](SIMCardRegistrationCodeValidation.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SIMCardRegistrationCodeValidation>**](SIMCardRegistrationCodeValidation.md) | | [optional] | diff --git a/docs/SIMCardStatus.md b/docs/SIMCardStatus.md index 0505215e..d62cbe1c 100644 --- a/docs/SIMCardStatus.md +++ b/docs/SIMCardStatus.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | [**ValueEnum**](#ValueEnum) | The current status of the SIM card. It will be one of the following: <br/> <ul> <li><code>registering</code> - the card is being registered</li> <li><code>enabling</code> - the card is being enabled</li> <li><code>enabled</code> - the card is enabled and ready for use</li> <li><code>disabling</code> - the card is being disabled</li> <li><code>disabled</code> - the card has been disabled and cannot be used</li> <li><code>data_limit_exceeded</code> - the card has exceeded its data consumption limit</li> <li><code>setting_standby</code> - the process to set the card in stand by is in progress</li> <li><code>standby</code> - the card is in stand by</li> </ul> Transitioning between the enabled and disabled states may take a period of time. | [optional] [readonly] -**reason** | **String** | It describes why the SIM card is in the current status. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | [**ValueEnum**](#ValueEnum) | The current status of the SIM card. It will be one of the following: <br/> <ul> <li><code>registering</code> - the card is being registered</li> <li><code>enabling</code> - the card is being enabled</li> <li><code>enabled</code> - the card is enabled and ready for use</li> <li><code>disabling</code> - the card is being disabled</li> <li><code>disabled</code> - the card has been disabled and cannot be used</li> <li><code>data_limit_exceeded</code> - the card has exceeded its data consumption limit</li> <li><code>setting_standby</code> - the process to set the card in stand by is in progress</li> <li><code>standby</code> - the card is in stand by</li> </ul> Transitioning between the enabled and disabled states may take a period of time. | [optional] [readonly] | +|**reason** | **String** | It describes why the SIM card is in the current status. | [optional] [readonly] | ## Enum: ValueEnum -Name | Value ----- | ----- -REGISTERING | "registering" -ENABLING | "enabling" -ENABLED | "enabled" -DISABLING | "disabling" -DISABLED | "disabled" -DATA_LIMIT_EXCEEDED | "data_limit_exceeded" -SETTING_STANDBY | "setting_standby" -STANDBY | "standby" +| Name | Value | +|---- | -----| +| REGISTERING | "registering" | +| ENABLING | "enabling" | +| ENABLED | "enabled" | +| DISABLING | "disabling" | +| DISABLED | "disabled" | +| DATA_LIMIT_EXCEEDED | "data_limit_exceeded" | +| SETTING_STANDBY | "setting_standby" | +| STANDBY | "standby" | diff --git a/docs/SearchedSIMCardGroup.md b/docs/SearchedSIMCardGroup.md new file mode 100644 index 00000000..0fd9863a --- /dev/null +++ b/docs/SearchedSIMCardGroup.md @@ -0,0 +1,22 @@ + + +# SearchedSIMCardGroup + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**_default** | **Boolean** | Indicates whether the SIM card group is the users default group.<br/>The default group is created for the user and can not be removed. | [optional] [readonly] | +|**name** | **String** | A user friendly name for the SIM card group. | [optional] | +|**dataLimit** | [**SIMCardGroupDataLimit**](SIMCardGroupDataLimit.md) | | [optional] | +|**consumedData** | [**ConsumedData**](ConsumedData.md) | | [optional] | +|**simCardCount** | **Integer** | The number of SIM cards associated with the group. | [optional] | +|**privateWirelessGatewayId** | **UUID** | The identification of the related Private Wireless Gateway resource. | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | + + + diff --git a/docs/SendDTMFRequest.md b/docs/SendDTMFRequest.md index 9881642b..71154118 100644 --- a/docs/SendDTMFRequest.md +++ b/docs/SendDTMFRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**digits** | **String** | DTMF digits to send. Valid digits are 0-9, A-D, *, and #. Pauses can be added using w (0.5s) and W (1s). | -**durationMillis** | **Integer** | Specifies for how many milliseconds each digit will be played in the audio stream. Ranges from 100 to 500ms | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**digits** | **String** | DTMF digits to send. Valid digits are 0-9, A-D, *, and #. Pauses can be added using w (0.5s) and W (1s). | | +|**durationMillis** | **Integer** | Specifies for how many milliseconds each digit will be played in the audio stream. Ranges from 100 to 500ms | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/SendFaxRequest.md b/docs/SendFaxRequest.md index 8b14567f..9ac249ac 100644 --- a/docs/SendFaxRequest.md +++ b/docs/SendFaxRequest.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | The connection ID to send the fax with. | -**mediaUrl** | **String** | The URL to the PDF used for the fax's media. media_url and media_name can't be submitted together. | [optional] -**mediaName** | **String** | The media_name of a file to be used for the fax's media. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_url and media_name can't be submitted together. | [optional] -**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI. | -**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | -**quality** | **String** | The quality of the fax. Can be normal, high, very_high. | [optional] -**t38Enabled** | **Boolean** | The flag to disable the T.38 protocol. | [optional] -**monochrome** | **Boolean** | The flag to enable monochrome, true black and white fax results. | [optional] -**storeMedia** | **Boolean** | Should fax media be stored on temporary URL. It does not support media_name, they can't be submitted together. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | The connection ID to send the fax with. | | +|**mediaUrl** | **String** | The URL to the PDF used for the fax's media. media_url and media_name/contents can't be submitted together. | [optional] | +|**mediaName** | **String** | The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. | [optional] | +|**to** | **String** | The phone number, in E.164 format, the fax will be sent to or SIP URI | | +|**from** | **String** | The phone number, in E.164 format, the fax will be sent from. | | +|**quality** | **String** | The quality of the fax. Can be normal, high, very_high | [optional] | +|**t38Enabled** | **Boolean** | The flag to disable the T.38 protocol. | [optional] | +|**monochrome** | **Boolean** | The flag to enable monochrome, true black and white fax results. | [optional] | +|**storeMedia** | **Boolean** | Should fax media be stored on temporary URL. It does not support media_name, they can't be submitted together. | [optional] | diff --git a/docs/SendFaxResponse.md b/docs/SendFaxResponse.md index 7850a15e..f4523b4f 100644 --- a/docs/SendFaxResponse.md +++ b/docs/SendFaxResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Fax**](Fax.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Fax**](Fax.md) | | [optional] | diff --git a/docs/SessionEnded.md b/docs/SessionEnded.md index 4506ef9f..c985db0e 100644 --- a/docs/SessionEnded.md +++ b/docs/SessionEnded.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Uniquely identify the event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**SessionEndedPayload**](SessionEndedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Uniquely identify the event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**SessionEndedPayload**](SessionEndedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -VIDEO_ROOM_SESSION_ENDED | "video.room.session.ended" +| Name | Value | +|---- | -----| +| VIDEO_ROOM_SESSION_ENDED | "video.room.session.ended" | diff --git a/docs/SessionEndedEvent.md b/docs/SessionEndedEvent.md index f522782a..7502bdff 100644 --- a/docs/SessionEndedEvent.md +++ b/docs/SessionEndedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**SessionEnded**](SessionEnded.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SessionEnded**](SessionEnded.md) | | [optional] | diff --git a/docs/SessionEndedPayload.md b/docs/SessionEndedPayload.md index 30b352e0..402625d4 100644 --- a/docs/SessionEndedPayload.md +++ b/docs/SessionEndedPayload.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **UUID** | Session ID that identifies the session that ended. | [optional] -**roomId** | **UUID** | Room ID that identifies the room where the session ended. | [optional] -**durationSecs** | **Integer** | The duration in seconds of the session | [optional] -**endedReason** | **String** | The reason why the session ended | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sessionId** | **UUID** | Session ID that identifies the session that ended. | [optional] | +|**roomId** | **UUID** | Room ID that identifies the room where the session ended. | [optional] | +|**durationSecs** | **Integer** | The duration in seconds of the session | [optional] | +|**endedReason** | **String** | The reason why the session ended | [optional] | diff --git a/docs/SessionStarted.md b/docs/SessionStarted.md index f7a799ca..13462693 100644 --- a/docs/SessionStarted.md +++ b/docs/SessionStarted.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Uniquely identify the event. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**SessionStartedPayload**](SessionStartedPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | An identifier for the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Uniquely identify the event. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**SessionStartedPayload**](SessionStartedPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -VIDEO_ROOM_SESSION_STARTED | "video.room.session.started" +| Name | Value | +|---- | -----| +| VIDEO_ROOM_SESSION_STARTED | "video.room.session.started" | diff --git a/docs/SessionStartedEvent.md b/docs/SessionStartedEvent.md index 5f270d35..48b30a30 100644 --- a/docs/SessionStartedEvent.md +++ b/docs/SessionStartedEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**SessionStarted**](SessionStarted.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SessionStarted**](SessionStarted.md) | | [optional] | diff --git a/docs/SessionStartedPayload.md b/docs/SessionStartedPayload.md index 0e291318..ff796d00 100644 --- a/docs/SessionStartedPayload.md +++ b/docs/SessionStartedPayload.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**sessionId** | **UUID** | Session ID that identifies the session that started. | [optional] -**roomId** | **UUID** | Room ID that identifies the room where the session started. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sessionId** | **UUID** | Session ID that identifies the session that started. | [optional] | +|**roomId** | **UUID** | Room ID that identifies the room where the session started. | [optional] | diff --git a/docs/SetSIMCardGroupPrivateWirelessGatewayRequest.md b/docs/SetSIMCardGroupPrivateWirelessGatewayRequest.md new file mode 100644 index 00000000..de41423b --- /dev/null +++ b/docs/SetSIMCardGroupPrivateWirelessGatewayRequest.md @@ -0,0 +1,13 @@ + + +# SetSIMCardGroupPrivateWirelessGatewayRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**privateWirelessGatewayId** | **UUID** | The identification of the related Private Wireless Gateway resource. | | + + + diff --git a/docs/Settings.md b/docs/Settings.md index 2f8ee1a8..953ecf8b 100644 --- a/docs/Settings.md +++ b/docs/Settings.md @@ -6,23 +6,23 @@ The settings associated with the authentication provider. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**idpEntityId** | **String** | The Entity ID for the identity provider (IdP). | -**idpSsoTargetUrl** | **String** | The SSO target url for the identity provider (IdP). | -**idpCertFingerprint** | **String** | The certificate fingerprint for the identity provider (IdP) | -**idpCertFingerprintAlgorithm** | [**IdpCertFingerprintAlgorithmEnum**](#IdpCertFingerprintAlgorithmEnum) | The algorithm used to generate the identity provider's (IdP) certificate fingerprint | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**idpEntityId** | **String** | The Entity ID for the identity provider (IdP). | | +|**idpSsoTargetUrl** | **String** | The SSO target url for the identity provider (IdP). | | +|**idpCertFingerprint** | **String** | The certificate fingerprint for the identity provider (IdP) | | +|**idpCertFingerprintAlgorithm** | [**IdpCertFingerprintAlgorithmEnum**](#IdpCertFingerprintAlgorithmEnum) | The algorithm used to generate the identity provider's (IdP) certificate fingerprint | [optional] | ## Enum: IdpCertFingerprintAlgorithmEnum -Name | Value ----- | ----- -SHA1 | "sha1" -SHA256 | "sha256" -SHA384 | "sha384" -SHA512 | "sha512" +| Name | Value | +|---- | -----| +| SHA1 | "sha1" | +| SHA256 | "sha256" | +| SHA384 | "sha384" | +| SHA512 | "sha512" | diff --git a/docs/ShortCode.md b/docs/ShortCode.md index ebb53c23..ef3c856f 100644 --- a/docs/ShortCode.md +++ b/docs/ShortCode.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] -**shortCode** | **String** | Short digit sequence used to address messages. | [optional] [readonly] -**countryCode** | **String** | ISO 3166-1 alpha-2 country code. | [optional] [readonly] -**messagingProfileId** | **String** | Unique identifier for a messaging profile. | -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] | +|**shortCode** | **String** | Short digit sequence used to address messages. | [optional] [readonly] | +|**countryCode** | **String** | ISO 3166-1 alpha-2 country code. | [optional] [readonly] | +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. | | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -SHORT_CODE | "short_code" +| Name | Value | +|---- | -----| +| SHORT_CODE | "short_code" | diff --git a/docs/ShortCodeResponse.md b/docs/ShortCodeResponse.md index 5c388001..db5e560e 100644 --- a/docs/ShortCodeResponse.md +++ b/docs/ShortCodeResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**ShortCode**](ShortCode.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**ShortCode**](ShortCode.md) | | [optional] | diff --git a/docs/ShowBusinessIdentityResponse.md b/docs/ShowBusinessIdentityResponse.md index 4dee725e..6e27ca50 100644 --- a/docs/ShowBusinessIdentityResponse.md +++ b/docs/ShowBusinessIdentityResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**BusinessIdentity**](BusinessIdentity.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**BusinessIdentity**](BusinessIdentity.md) | | [optional] | diff --git a/docs/ShowVerifiedCallsDisplayProfileResponse.md b/docs/ShowVerifiedCallsDisplayProfileResponse.md index a89c2d17..f1e53cfc 100644 --- a/docs/ShowVerifiedCallsDisplayProfileResponse.md +++ b/docs/ShowVerifiedCallsDisplayProfileResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**VerifiedCallsDisplayProfile**](VerifiedCallsDisplayProfile.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**VerifiedCallsDisplayProfile**](VerifiedCallsDisplayProfile.md) | | [optional] | diff --git a/docs/SimCardActionGet200Response.md b/docs/SimCardActionGet200Response.md new file mode 100644 index 00000000..d8567792 --- /dev/null +++ b/docs/SimCardActionGet200Response.md @@ -0,0 +1,13 @@ + + +# SimCardActionGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardAction**](SIMCardAction.md) | | [optional] | + + + diff --git a/docs/SimCardActionsApi.md b/docs/SimCardActionsApi.md index 9ef3bd8e..dd809c6d 100644 --- a/docs/SimCardActionsApi.md +++ b/docs/SimCardActionsApi.md @@ -4,14 +4,163 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- +[**bulkSimCardActionGet**](SimCardActionsApi.md#bulkSimCardActionGet) | **GET** /bulk_sim_card_actions/{id} | Get bulk SIM card action details +[**listBulkSIMCardActions**](SimCardActionsApi.md#listBulkSIMCardActions) | **GET** /bulk_sim_card_actions | List bulk SIM card actions [**listSIMCardActions**](SimCardActionsApi.md#listSIMCardActions) | **GET** /sim_card_actions | List SIM card actions [**simCardActionGet**](SimCardActionsApi.md#simCardActionGet) | **GET** /sim_card_actions/{id} | Get SIM card action details +## bulkSimCardActionGet + +> BulkSimCardActionGet200Response bulkSimCardActionGet(id) + +Get bulk SIM card action details + +This API fetches information about a bulk SIM card action. A bulk SIM card action contains details about a collection of individual SIM card actions. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.SimCardActionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + SimCardActionsApi apiInstance = new SimCardActionsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + BulkSimCardActionGet200Response result = apiInstance.bulkSimCardActionGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SimCardActionsApi#bulkSimCardActionGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**BulkSimCardActionGet200Response**](BulkSimCardActionGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful Response | - | +| **0** | Unexpected error | - | + + +## listBulkSIMCardActions + +> ListBulkSIMCardActions200Response listBulkSIMCardActions(pageNumber, pageSize, filterActionType) + +List bulk SIM card actions + +This API lists a paginated collection of bulk SIM card actions. A bulk SIM card action contains details about a collection of individual SIM card actions. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.SimCardActionsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + SimCardActionsApi apiInstance = new SimCardActionsApi(defaultClient); + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String filterActionType = "bulk_set_public_ips"; // String | Filter by action type. + try { + ListBulkSIMCardActions200Response result = apiInstance.listBulkSIMCardActions(pageNumber, pageSize, filterActionType); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SimCardActionsApi#listBulkSIMCardActions"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterActionType** | **String**| Filter by action type. | [optional] [enum: bulk_set_public_ips] + +### Return type + +[**ListBulkSIMCardActions200Response**](ListBulkSIMCardActions200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + ## listSIMCardActions -> SimCardActionCollectionResponse listSIMCardActions(pageNumber, pageSize, filterSimCardId, filterStatus, filterActionType) +> ListSIMCardActions200Response listSIMCardActions(pageNumber, pageSize, filterSimCardId, filterStatus, filterBulkSimCardActionId, filterActionType) List SIM card actions @@ -43,9 +192,10 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page UUID filterSimCardId = UUID.fromString("47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9"); // UUID | A valid SIM card ID. String filterStatus = "in-progress"; // String | Filter by a specific status of the resource's lifecycle. + UUID filterBulkSimCardActionId = UUID.fromString("47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9"); // UUID | Filter by a bulk SIM card action ID. String filterActionType = "enable"; // String | Filter by action type. try { - SimCardActionCollectionResponse result = apiInstance.listSIMCardActions(pageNumber, pageSize, filterSimCardId, filterStatus, filterActionType); + ListSIMCardActions200Response result = apiInstance.listSIMCardActions(pageNumber, pageSize, filterSimCardId, filterStatus, filterBulkSimCardActionId, filterActionType); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardActionsApi#listSIMCardActions"); @@ -67,11 +217,12 @@ Name | Type | Description | Notes **pageSize** | **Integer**| The size of the page | [optional] [default to 20] **filterSimCardId** | **UUID**| A valid SIM card ID. | [optional] **filterStatus** | **String**| Filter by a specific status of the resource's lifecycle. | [optional] [enum: in-progress, completed, failed] + **filterBulkSimCardActionId** | **UUID**| Filter by a bulk SIM card action ID. | [optional] **filterActionType** | **String**| Filter by action type. | [optional] [enum: enable, enable_standby_sim_card, disable, set_standby, remove_public_ip, set_public_ip] ### Return type -[**SimCardActionCollectionResponse**](SimCardActionCollectionResponse.md) +[**ListSIMCardActions200Response**](ListSIMCardActions200Response.md) ### Authorization @@ -91,7 +242,7 @@ Name | Type | Description | Notes ## simCardActionGet -> SIMCardActionResponse simCardActionGet(id) +> SimCardActionGet200Response simCardActionGet(id) Get SIM card action details @@ -121,7 +272,7 @@ public class Example { SimCardActionsApi apiInstance = new SimCardActionsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardActionResponse result = apiInstance.simCardActionGet(id); + SimCardActionGet200Response result = apiInstance.simCardActionGet(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardActionsApi#simCardActionGet"); @@ -143,7 +294,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardActionResponse**](SIMCardActionResponse.md) +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) ### Authorization diff --git a/docs/SimCardDataUsageNotification.md b/docs/SimCardDataUsageNotification.md index 942dc563..2a78bc77 100644 --- a/docs/SimCardDataUsageNotification.md +++ b/docs/SimCardDataUsageNotification.md @@ -6,14 +6,14 @@ The SIM card individual data usage notification information. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] -**recordType** | **String** | | [optional] [readonly] -**threshold** | [**SimCardDataUsageNotificationsThreshold**](SimCardDataUsageNotificationsThreshold.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] | +|**recordType** | **String** | | [optional] [readonly] | +|**threshold** | [**SimCardDataUsageNotificationsPostRequestThreshold**](SimCardDataUsageNotificationsPostRequestThreshold.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | diff --git a/docs/SimCardDataUsageNotificationsPost201Response.md b/docs/SimCardDataUsageNotificationsPost201Response.md new file mode 100644 index 00000000..414cc8e2 --- /dev/null +++ b/docs/SimCardDataUsageNotificationsPost201Response.md @@ -0,0 +1,13 @@ + + +# SimCardDataUsageNotificationsPost201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SimCardDataUsageNotification**](SimCardDataUsageNotification.md) | | [optional] | + + + diff --git a/docs/SimCardDataUsageNotificationsPostRequest.md b/docs/SimCardDataUsageNotificationsPostRequest.md new file mode 100644 index 00000000..17085bb8 --- /dev/null +++ b/docs/SimCardDataUsageNotificationsPostRequest.md @@ -0,0 +1,14 @@ + + +# SimCardDataUsageNotificationsPostRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | | +|**threshold** | [**SimCardDataUsageNotificationsPostRequestThreshold**](SimCardDataUsageNotificationsPostRequestThreshold.md) | | | + + + diff --git a/docs/SimCardDataUsageNotificationsPostRequestThreshold.md b/docs/SimCardDataUsageNotificationsPostRequestThreshold.md new file mode 100644 index 00000000..10dda7b8 --- /dev/null +++ b/docs/SimCardDataUsageNotificationsPostRequestThreshold.md @@ -0,0 +1,24 @@ + + +# SimCardDataUsageNotificationsPostRequestThreshold + +Data usage threshold that will trigger the notification. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | | [optional] | +|**unit** | [**UnitEnum**](#UnitEnum) | | [optional] | + + + +## Enum: UnitEnum + +| Name | Value | +|---- | -----| +| MB | "MB" | +| GB | "GB" | + + + diff --git a/docs/SimCardGet200Response.md b/docs/SimCardGet200Response.md new file mode 100644 index 00000000..c01acf82 --- /dev/null +++ b/docs/SimCardGet200Response.md @@ -0,0 +1,13 @@ + + +# SimCardGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCard**](SIMCard.md) | | [optional] | + + + diff --git a/docs/SimCardGroupActionGet200Response.md b/docs/SimCardGroupActionGet200Response.md new file mode 100644 index 00000000..f86cdd7d --- /dev/null +++ b/docs/SimCardGroupActionGet200Response.md @@ -0,0 +1,13 @@ + + +# SimCardGroupActionGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardGroupAction**](SIMCardGroupAction.md) | | [optional] | + + + diff --git a/docs/SimCardGroupActionsApi.md b/docs/SimCardGroupActionsApi.md index a6438630..f76334ff 100644 --- a/docs/SimCardGroupActionsApi.md +++ b/docs/SimCardGroupActionsApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## simCardGroupActionGet -> SIMCardGroupActionResponse simCardGroupActionGet(id) +> SimCardGroupActionGet200Response simCardGroupActionGet(id) Get SIM card group action details @@ -41,7 +41,7 @@ public class Example { SimCardGroupActionsApi apiInstance = new SimCardGroupActionsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardGroupActionResponse result = apiInstance.simCardGroupActionGet(id); + SimCardGroupActionGet200Response result = apiInstance.simCardGroupActionGet(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupActionsApi#simCardGroupActionGet"); @@ -63,7 +63,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardGroupActionResponse**](SIMCardGroupActionResponse.md) +[**SimCardGroupActionGet200Response**](SimCardGroupActionGet200Response.md) ### Authorization @@ -83,7 +83,7 @@ Name | Type | Description | Notes ## simCardGroupActionsGet -> SimCardGroupActionCollectionResponse simCardGroupActionsGet(pageNumber, pageSize, filterSimCardGroupId, filterStatus, filterType) +> SimCardGroupActionsGet200Response simCardGroupActionsGet(pageNumber, pageSize, filterSimCardGroupId, filterStatus, filterType) List SIM card group actions @@ -117,7 +117,7 @@ public class Example { String filterStatus = "in-progress"; // String | Filter by a specific status of the resource's lifecycle. String filterType = "set_private_wireless_gateway"; // String | Filter by action type. try { - SimCardGroupActionCollectionResponse result = apiInstance.simCardGroupActionsGet(pageNumber, pageSize, filterSimCardGroupId, filterStatus, filterType); + SimCardGroupActionsGet200Response result = apiInstance.simCardGroupActionsGet(pageNumber, pageSize, filterSimCardGroupId, filterStatus, filterType); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupActionsApi#simCardGroupActionsGet"); @@ -143,7 +143,7 @@ Name | Type | Description | Notes ### Return type -[**SimCardGroupActionCollectionResponse**](SimCardGroupActionCollectionResponse.md) +[**SimCardGroupActionsGet200Response**](SimCardGroupActionsGet200Response.md) ### Authorization diff --git a/docs/SimCardGroupActionsGet200Response.md b/docs/SimCardGroupActionsGet200Response.md new file mode 100644 index 00000000..496db9e7 --- /dev/null +++ b/docs/SimCardGroupActionsGet200Response.md @@ -0,0 +1,14 @@ + + +# SimCardGroupActionsGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SIMCardGroupAction>**](SIMCardGroupAction.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/SimCardGroupsApi.md b/docs/SimCardGroupsApi.md index 233a00f2..99489ad3 100644 --- a/docs/SimCardGroupsApi.md +++ b/docs/SimCardGroupsApi.md @@ -16,7 +16,7 @@ Method | HTTP request | Description ## removeSIMCardGroupPrivateWirelessGateway -> SIMCardGroupActionResponse removeSIMCardGroupPrivateWirelessGateway(id) +> SimCardGroupActionGet200Response removeSIMCardGroupPrivateWirelessGateway(id) Request Private Wireless Gateway removal from SIM card group @@ -46,7 +46,7 @@ public class Example { SimCardGroupsApi apiInstance = new SimCardGroupsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardGroupActionResponse result = apiInstance.removeSIMCardGroupPrivateWirelessGateway(id); + SimCardGroupActionGet200Response result = apiInstance.removeSIMCardGroupPrivateWirelessGateway(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupsApi#removeSIMCardGroupPrivateWirelessGateway"); @@ -68,7 +68,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardGroupActionResponse**](SIMCardGroupActionResponse.md) +[**SimCardGroupActionGet200Response**](SimCardGroupActionGet200Response.md) ### Authorization @@ -88,7 +88,7 @@ Name | Type | Description | Notes ## setSIMCardGroupPrivateWirelessGateway -> SIMCardGroupActionResponse setSIMCardGroupPrivateWirelessGateway(id, createPrivateWirelessGatwewayRequest1) +> SimCardGroupActionGet200Response setSIMCardGroupPrivateWirelessGateway(id, setSIMCardGroupPrivateWirelessGatewayRequest) Request Private Wireless Gateway assignment for SIM card group @@ -117,9 +117,9 @@ public class Example { SimCardGroupsApi apiInstance = new SimCardGroupsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. - CreatePrivateWirelessGatwewayRequest1 createPrivateWirelessGatwewayRequest1 = new CreatePrivateWirelessGatwewayRequest1(); // CreatePrivateWirelessGatwewayRequest1 | + SetSIMCardGroupPrivateWirelessGatewayRequest setSIMCardGroupPrivateWirelessGatewayRequest = new SetSIMCardGroupPrivateWirelessGatewayRequest(); // SetSIMCardGroupPrivateWirelessGatewayRequest | try { - SIMCardGroupActionResponse result = apiInstance.setSIMCardGroupPrivateWirelessGateway(id, createPrivateWirelessGatwewayRequest1); + SimCardGroupActionGet200Response result = apiInstance.setSIMCardGroupPrivateWirelessGateway(id, setSIMCardGroupPrivateWirelessGatewayRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupsApi#setSIMCardGroupPrivateWirelessGateway"); @@ -138,11 +138,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **UUID**| Identifies the resource. | - **createPrivateWirelessGatwewayRequest1** | [**CreatePrivateWirelessGatwewayRequest1**](CreatePrivateWirelessGatwewayRequest1.md)| | + **setSIMCardGroupPrivateWirelessGatewayRequest** | [**SetSIMCardGroupPrivateWirelessGatewayRequest**](SetSIMCardGroupPrivateWirelessGatewayRequest.md)| | ### Return type -[**SIMCardGroupActionResponse**](SIMCardGroupActionResponse.md) +[**SimCardGroupActionGet200Response**](SimCardGroupActionGet200Response.md) ### Authorization @@ -162,7 +162,7 @@ Name | Type | Description | Notes ## simCardGroupDelete -> DeleteSimCardGroupResponse simCardGroupDelete(id) +> SimCardGroupsPost200Response simCardGroupDelete(id) Delete a SIM card group @@ -192,7 +192,7 @@ public class Example { SimCardGroupsApi apiInstance = new SimCardGroupsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - DeleteSimCardGroupResponse result = apiInstance.simCardGroupDelete(id); + SimCardGroupsPost200Response result = apiInstance.simCardGroupDelete(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupsApi#simCardGroupDelete"); @@ -214,7 +214,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteSimCardGroupResponse**](DeleteSimCardGroupResponse.md) +[**SimCardGroupsPost200Response**](SimCardGroupsPost200Response.md) ### Authorization @@ -234,7 +234,7 @@ Name | Type | Description | Notes ## simCardGroupUpdate -> UpdateSimCardGroupResponse simCardGroupUpdate(id, siMCardGroupPatch) +> SimCardGroupsPost200Response simCardGroupUpdate(id, siMCardGroupPatch) Update a SIM card group @@ -265,7 +265,7 @@ public class Example { UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. SIMCardGroupPatch siMCardGroupPatch = new SIMCardGroupPatch(); // SIMCardGroupPatch | try { - UpdateSimCardGroupResponse result = apiInstance.simCardGroupUpdate(id, siMCardGroupPatch); + SimCardGroupsPost200Response result = apiInstance.simCardGroupUpdate(id, siMCardGroupPatch); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupsApi#simCardGroupUpdate"); @@ -288,7 +288,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateSimCardGroupResponse**](UpdateSimCardGroupResponse.md) +[**SimCardGroupsPost200Response**](SimCardGroupsPost200Response.md) ### Authorization @@ -308,7 +308,7 @@ Name | Type | Description | Notes ## simCardGroupsGet -> GetSimCardGroupResponse simCardGroupsGet(id) +> SimCardGroupsPost200Response simCardGroupsGet(id) Get SIM card group @@ -338,7 +338,7 @@ public class Example { SimCardGroupsApi apiInstance = new SimCardGroupsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - GetSimCardGroupResponse result = apiInstance.simCardGroupsGet(id); + SimCardGroupsPost200Response result = apiInstance.simCardGroupsGet(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupsApi#simCardGroupsGet"); @@ -360,7 +360,7 @@ Name | Type | Description | Notes ### Return type -[**GetSimCardGroupResponse**](GetSimCardGroupResponse.md) +[**SimCardGroupsPost200Response**](SimCardGroupsPost200Response.md) ### Authorization @@ -380,7 +380,7 @@ Name | Type | Description | Notes ## simCardGroupsGetAll -> GetAllSimCardGroupsResponse simCardGroupsGetAll(pageNumber, pageSize, filterName) +> SimCardGroupsGetAll200Response simCardGroupsGetAll(pageNumber, pageSize, filterName, filterPrivateWirelessGatewayId) Get all SIM card groups @@ -411,8 +411,9 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page UUID filterName = UUID.randomUUID(); // UUID | A valid SIM card group name. + UUID filterPrivateWirelessGatewayId = UUID.fromString("7606c6d3-ff7c-49c1-943d-68879e9d584d"); // UUID | A Private Wireless Gateway ID associated with the group. try { - GetAllSimCardGroupsResponse result = apiInstance.simCardGroupsGetAll(pageNumber, pageSize, filterName); + SimCardGroupsGetAll200Response result = apiInstance.simCardGroupsGetAll(pageNumber, pageSize, filterName, filterPrivateWirelessGatewayId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupsApi#simCardGroupsGetAll"); @@ -433,10 +434,11 @@ Name | Type | Description | Notes **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] **filterName** | **UUID**| A valid SIM card group name. | [optional] + **filterPrivateWirelessGatewayId** | **UUID**| A Private Wireless Gateway ID associated with the group. | [optional] ### Return type -[**GetAllSimCardGroupsResponse**](GetAllSimCardGroupsResponse.md) +[**SimCardGroupsGetAll200Response**](SimCardGroupsGetAll200Response.md) ### Authorization @@ -456,7 +458,7 @@ Name | Type | Description | Notes ## simCardGroupsPost -> CreateSimCardGroupResponse simCardGroupsPost(siMCardGroupCreate) +> SimCardGroupsPost200Response simCardGroupsPost(siMCardGroupCreate) Create a SIM card group @@ -485,7 +487,7 @@ public class Example { SimCardGroupsApi apiInstance = new SimCardGroupsApi(defaultClient); SIMCardGroupCreate siMCardGroupCreate = new SIMCardGroupCreate(); // SIMCardGroupCreate | try { - CreateSimCardGroupResponse result = apiInstance.simCardGroupsPost(siMCardGroupCreate); + SimCardGroupsPost200Response result = apiInstance.simCardGroupsPost(siMCardGroupCreate); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardGroupsApi#simCardGroupsPost"); @@ -507,7 +509,7 @@ Name | Type | Description | Notes ### Return type -[**CreateSimCardGroupResponse**](CreateSimCardGroupResponse.md) +[**SimCardGroupsPost200Response**](SimCardGroupsPost200Response.md) ### Authorization diff --git a/docs/SimCardGroupsGetAll200Response.md b/docs/SimCardGroupsGetAll200Response.md new file mode 100644 index 00000000..35d8f812 --- /dev/null +++ b/docs/SimCardGroupsGetAll200Response.md @@ -0,0 +1,14 @@ + + +# SimCardGroupsGetAll200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SearchedSIMCardGroup>**](SearchedSIMCardGroup.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/SimCardGroupsPost200Response.md b/docs/SimCardGroupsPost200Response.md new file mode 100644 index 00000000..8ee52610 --- /dev/null +++ b/docs/SimCardGroupsPost200Response.md @@ -0,0 +1,13 @@ + + +# SimCardGroupsPost200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardGroup**](SIMCardGroup.md) | | [optional] | + + + diff --git a/docs/SimCardOrderCreate.md b/docs/SimCardOrderCreate.md index 74ac5215..235cb9ab 100644 --- a/docs/SimCardOrderCreate.md +++ b/docs/SimCardOrderCreate.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**addressId** | **String** | Uniquely identifies the address for the order. | -**quantity** | **Integer** | The amount of SIM cards to order. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**addressId** | **String** | Uniquely identifies the address for the order. | | +|**quantity** | **Integer** | The amount of SIM cards to order. | | diff --git a/docs/SimCardOrdersApi.md b/docs/SimCardOrdersApi.md index 37d11bc7..560a4dea 100644 --- a/docs/SimCardOrdersApi.md +++ b/docs/SimCardOrdersApi.md @@ -13,7 +13,7 @@ Method | HTTP request | Description ## simCardOrderGet -> GetSimCardOrderResponse simCardOrderGet(id) +> SimCardOrdersPost200Response simCardOrderGet(id) Get a single SIM card order @@ -43,7 +43,7 @@ public class Example { SimCardOrdersApi apiInstance = new SimCardOrdersApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - GetSimCardOrderResponse result = apiInstance.simCardOrderGet(id); + SimCardOrdersPost200Response result = apiInstance.simCardOrderGet(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardOrdersApi#simCardOrderGet"); @@ -65,7 +65,7 @@ Name | Type | Description | Notes ### Return type -[**GetSimCardOrderResponse**](GetSimCardOrderResponse.md) +[**SimCardOrdersPost200Response**](SimCardOrdersPost200Response.md) ### Authorization @@ -86,7 +86,7 @@ Name | Type | Description | Notes ## simCardOrdersGet -> GetAllSimCardOrderResponse simCardOrdersGet(filterCreatedAt, filterUpdatedAt, filterQuantity, filterCostAmount, filterCostCurrency, filterAddressId, filterAddressStreetAddress, filterAddressExtendedAddress, filterAddressLocality, filterAddressAdministrativeArea, filterAddressCountryCode, filterAddressPostalCode, pageNumber, pageSize) +> SimCardOrdersGet200Response simCardOrdersGet(filterCreatedAt, filterUpdatedAt, filterQuantity, filterCostAmount, filterCostCurrency, filterAddressId, filterAddressStreetAddress, filterAddressExtendedAddress, filterAddressLocality, filterAddressAdministrativeArea, filterAddressCountryCode, filterAddressPostalCode, pageNumber, pageSize) Get all SIM card orders @@ -128,7 +128,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - GetAllSimCardOrderResponse result = apiInstance.simCardOrdersGet(filterCreatedAt, filterUpdatedAt, filterQuantity, filterCostAmount, filterCostCurrency, filterAddressId, filterAddressStreetAddress, filterAddressExtendedAddress, filterAddressLocality, filterAddressAdministrativeArea, filterAddressCountryCode, filterAddressPostalCode, pageNumber, pageSize); + SimCardOrdersGet200Response result = apiInstance.simCardOrdersGet(filterCreatedAt, filterUpdatedAt, filterQuantity, filterCostAmount, filterCostCurrency, filterAddressId, filterAddressStreetAddress, filterAddressExtendedAddress, filterAddressLocality, filterAddressAdministrativeArea, filterAddressCountryCode, filterAddressPostalCode, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardOrdersApi#simCardOrdersGet"); @@ -163,7 +163,7 @@ Name | Type | Description | Notes ### Return type -[**GetAllSimCardOrderResponse**](GetAllSimCardOrderResponse.md) +[**SimCardOrdersGet200Response**](SimCardOrdersGet200Response.md) ### Authorization @@ -183,7 +183,7 @@ Name | Type | Description | Notes ## simCardOrdersPost -> CreateSimCardOrderResponse simCardOrdersPost(simCardOrderCreate) +> SimCardOrdersPost200Response simCardOrdersPost(simCardOrderCreate) Create a SIM card order @@ -212,7 +212,7 @@ public class Example { SimCardOrdersApi apiInstance = new SimCardOrdersApi(defaultClient); SimCardOrderCreate simCardOrderCreate = new SimCardOrderCreate(); // SimCardOrderCreate | try { - CreateSimCardOrderResponse result = apiInstance.simCardOrdersPost(simCardOrderCreate); + SimCardOrdersPost200Response result = apiInstance.simCardOrdersPost(simCardOrderCreate); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardOrdersApi#simCardOrdersPost"); @@ -234,7 +234,7 @@ Name | Type | Description | Notes ### Return type -[**CreateSimCardOrderResponse**](CreateSimCardOrderResponse.md) +[**SimCardOrdersPost200Response**](SimCardOrdersPost200Response.md) ### Authorization @@ -254,7 +254,7 @@ Name | Type | Description | Notes ## simCardOrdersPreview -> SIMCardOrdersPreviewResponse simCardOrdersPreview(createSimCardOrderPreview) +> SimCardOrdersPreview202Response simCardOrdersPreview(simCardOrdersPreviewRequest) Preview SIM card orders @@ -281,9 +281,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); SimCardOrdersApi apiInstance = new SimCardOrdersApi(defaultClient); - CreateSimCardOrderPreview createSimCardOrderPreview = new CreateSimCardOrderPreview(); // CreateSimCardOrderPreview | + SimCardOrdersPreviewRequest simCardOrdersPreviewRequest = new SimCardOrdersPreviewRequest(); // SimCardOrdersPreviewRequest | try { - SIMCardOrdersPreviewResponse result = apiInstance.simCardOrdersPreview(createSimCardOrderPreview); + SimCardOrdersPreview202Response result = apiInstance.simCardOrdersPreview(simCardOrdersPreviewRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardOrdersApi#simCardOrdersPreview"); @@ -301,11 +301,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createSimCardOrderPreview** | [**CreateSimCardOrderPreview**](CreateSimCardOrderPreview.md)| | [optional] + **simCardOrdersPreviewRequest** | [**SimCardOrdersPreviewRequest**](SimCardOrdersPreviewRequest.md)| | [optional] ### Return type -[**SIMCardOrdersPreviewResponse**](SIMCardOrdersPreviewResponse.md) +[**SimCardOrdersPreview202Response**](SimCardOrdersPreview202Response.md) ### Authorization diff --git a/docs/SimCardOrdersGet200Response.md b/docs/SimCardOrdersGet200Response.md new file mode 100644 index 00000000..9f7e0db5 --- /dev/null +++ b/docs/SimCardOrdersGet200Response.md @@ -0,0 +1,14 @@ + + +# SimCardOrdersGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SIMCardOrder>**](SIMCardOrder.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/SimCardOrdersPost200Response.md b/docs/SimCardOrdersPost200Response.md new file mode 100644 index 00000000..3e529938 --- /dev/null +++ b/docs/SimCardOrdersPost200Response.md @@ -0,0 +1,13 @@ + + +# SimCardOrdersPost200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardOrder**](SIMCardOrder.md) | | [optional] | + + + diff --git a/docs/SimCardOrdersPreview202Response.md b/docs/SimCardOrdersPreview202Response.md new file mode 100644 index 00000000..f369fa03 --- /dev/null +++ b/docs/SimCardOrdersPreview202Response.md @@ -0,0 +1,13 @@ + + +# SimCardOrdersPreview202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SIMCardOrderPreview**](SIMCardOrderPreview.md) | | [optional] | + + + diff --git a/docs/SimCardOrdersPreviewRequest.md b/docs/SimCardOrdersPreviewRequest.md new file mode 100644 index 00000000..fef7deb6 --- /dev/null +++ b/docs/SimCardOrdersPreviewRequest.md @@ -0,0 +1,14 @@ + + +# SimCardOrdersPreviewRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**quantity** | **Integer** | The amount of SIM cards that the user would like to purchase in the SIM card order. | | +|**addressId** | **String** | Uniquely identifies the address for the order. | | + + + diff --git a/docs/SimCardRegister202Response.md b/docs/SimCardRegister202Response.md new file mode 100644 index 00000000..18c3470e --- /dev/null +++ b/docs/SimCardRegister202Response.md @@ -0,0 +1,14 @@ + + +# SimCardRegister202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SimpleSIMCard>**](SimpleSIMCard.md) | Successfully registered SIM cards. | [optional] | +|**errors** | [**List<Error>**](Error.md) | | [optional] | + + + diff --git a/docs/SimCardUsageDetailRecord.md b/docs/SimCardUsageDetailRecord.md index e9f7a6ce..e05b38bf 100644 --- a/docs/SimCardUsageDetailRecord.md +++ b/docs/SimCardUsageDetailRecord.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Unique identifier for this SIM Card Usage | [optional] -**createdAt** | **OffsetDateTime** | Event creation time | [optional] -**closedAt** | **OffsetDateTime** | Event close time | [optional] -**ipAddress** | **String** | Ip address that generated the event | [optional] -**downlinkData** | **BigDecimal** | Number of megabytes downloaded | [optional] -**imsi** | **String** | International Mobile Subscriber Identity | [optional] -**mcc** | **String** | Mobile country code | [optional] -**mnc** | **String** | Mobile network code | [optional] -**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] -**dataUnit** | **String** | Unit of wireless link consumption | [optional] -**dataRate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] -**simGroupName** | **String** | Sim group name for sim card | [optional] -**simCardId** | **String** | Unique identifier for SIM card | [optional] -**simGroupId** | **String** | Unique identifier for SIM group | [optional] -**simCardTags** | **String** | User-provided tags | [optional] -**phoneNumber** | **String** | Telephone number associated to SIM card | [optional] -**uplinkData** | **BigDecimal** | Number of megabytes uploaded | [optional] -**dataCost** | **BigDecimal** | Data cost | [optional] -**recordType** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Unique identifier for this SIM Card Usage | [optional] | +|**createdAt** | **OffsetDateTime** | Event creation time | [optional] | +|**closedAt** | **OffsetDateTime** | Event close time | [optional] | +|**ipAddress** | **String** | Ip address that generated the event | [optional] | +|**downlinkData** | **BigDecimal** | Number of megabytes downloaded | [optional] | +|**imsi** | **String** | International Mobile Subscriber Identity | [optional] | +|**mcc** | **String** | Mobile country code | [optional] | +|**mnc** | **String** | Mobile network code | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] | +|**dataUnit** | **String** | Unit of wireless link consumption | [optional] | +|**dataRate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing cost | [optional] | +|**simGroupName** | **String** | Sim group name for sim card | [optional] | +|**simCardId** | **String** | Unique identifier for SIM card | [optional] | +|**simGroupId** | **String** | Unique identifier for SIM group | [optional] | +|**simCardTags** | **String** | User-provided tags | [optional] | +|**phoneNumber** | **String** | Telephone number associated to SIM card | [optional] | +|**uplinkData** | **BigDecimal** | Number of megabytes uploaded | [optional] | +|**dataCost** | **BigDecimal** | Data cost | [optional] | +|**recordType** | **String** | | | diff --git a/docs/SimCardsApi.md b/docs/SimCardsApi.md index 2cbe485b..425b41f7 100644 --- a/docs/SimCardsApi.md +++ b/docs/SimCardsApi.md @@ -5,13 +5,17 @@ All URIs are relative to *https://api.telnyx.com/v2* Method | HTTP request | Description ------------- | ------------- | ------------- [**bulkSIMCardNetworkPreferences**](SimCardsApi.md#bulkSIMCardNetworkPreferences) | **PUT** /actions/network_preferences/sim_cards | Bulk Network Preferences for SIM cards +[**bulkSetPublicIPs**](SimCardsApi.md#bulkSetPublicIPs) | **POST** /sim_cards/actions/bulk_set_public_ips | Request bulk setting SIM card public IPs. +[**deleteNetworkPreference**](SimCardsApi.md#deleteNetworkPreference) | **POST** /sim_cards/{id}/actions/delete_network_preferences | Delete network preferences for a SIM card [**listSimCardDataUsageNotifications**](SimCardsApi.md#listSimCardDataUsageNotifications) | **GET** /sim_card_data_usage_notifications | List SIM card data usage notifications [**postValidateRegistrationCodes**](SimCardsApi.md#postValidateRegistrationCodes) | **POST** /sim_cards/actions/validate_registration_codes | Validate SIM cards registration codes [**removeSIMCardPublicIP**](SimCardsApi.md#removeSIMCardPublicIP) | **POST** /sim_cards/{id}/actions/remove_public_ip | Request removing a SIM card public IP +[**sIMCardDeviceDetailsGet**](SimCardsApi.md#sIMCardDeviceDetailsGet) | **GET** /sim_cards/{sim_card_id}/device_details | Get SIM card device details [**sIMCardNetworkPreferencesDelete**](SimCardsApi.md#sIMCardNetworkPreferencesDelete) | **DELETE** /sim_cards/{sim_card_id}/network_preferences | DELETE network preferences [**sIMCardNetworkPreferencesGet**](SimCardsApi.md#sIMCardNetworkPreferencesGet) | **GET** /sim_cards/{sim_card_id}/network_preferences | Get network preferences [**sIMCardNetworkPreferencesPut**](SimCardsApi.md#sIMCardNetworkPreferencesPut) | **PUT** /sim_cards/{sim_card_id}/network_preferences | Set network preferences [**sIMCardPublicIPGet**](SimCardsApi.md#sIMCardPublicIPGet) | **GET** /sim_cards/{sim_card_id}/public_ip | Get SIM card public IP definition +[**setNetworkPreference**](SimCardsApi.md#setNetworkPreference) | **POST** /sim_cards/{id}/actions/set_network_preferences | Create or update network preferences for a SIM card [**setSIMCardPublicIP**](SimCardsApi.md#setSIMCardPublicIP) | **POST** /sim_cards/{id}/actions/set_public_ip | Request setting a SIM card public IP [**simCardDataUsageNotificationsDelete**](SimCardsApi.md#simCardDataUsageNotificationsDelete) | **DELETE** /sim_card_data_usage_notifications/{id} | Delete SIM card data usage notifications [**simCardDataUsageNotificationsGet**](SimCardsApi.md#simCardDataUsageNotificationsGet) | **GET** /sim_card_data_usage_notifications/{id} | Get a single SIM card data usage notification @@ -31,7 +35,7 @@ Method | HTTP request | Description ## bulkSIMCardNetworkPreferences -> BulkSIMCardNetworkPreferenceResponse bulkSIMCardNetworkPreferences(bulkUpdateSimNetworkPreference) +> BulkSIMCardNetworkPreferences202Response bulkSIMCardNetworkPreferences(bulkSIMCardNetworkPreferencesRequest) Bulk Network Preferences for SIM cards @@ -60,9 +64,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); SimCardsApi apiInstance = new SimCardsApi(defaultClient); - BulkUpdateSimNetworkPreference bulkUpdateSimNetworkPreference = new BulkUpdateSimNetworkPreference(); // BulkUpdateSimNetworkPreference | + BulkSIMCardNetworkPreferencesRequest bulkSIMCardNetworkPreferencesRequest = new BulkSIMCardNetworkPreferencesRequest(); // BulkSIMCardNetworkPreferencesRequest | try { - BulkSIMCardNetworkPreferenceResponse result = apiInstance.bulkSIMCardNetworkPreferences(bulkUpdateSimNetworkPreference); + BulkSIMCardNetworkPreferences202Response result = apiInstance.bulkSIMCardNetworkPreferences(bulkSIMCardNetworkPreferencesRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#bulkSIMCardNetworkPreferences"); @@ -80,11 +84,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **bulkUpdateSimNetworkPreference** | [**BulkUpdateSimNetworkPreference**](BulkUpdateSimNetworkPreference.md)| | [optional] + **bulkSIMCardNetworkPreferencesRequest** | [**BulkSIMCardNetworkPreferencesRequest**](BulkSIMCardNetworkPreferencesRequest.md)| | [optional] ### Return type -[**BulkSIMCardNetworkPreferenceResponse**](BulkSIMCardNetworkPreferenceResponse.md) +[**BulkSIMCardNetworkPreferences202Response**](BulkSIMCardNetworkPreferences202Response.md) ### Authorization @@ -102,9 +106,157 @@ Name | Type | Description | Notes | **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +## bulkSetPublicIPs + +> BulkSetPublicIPs202Response bulkSetPublicIPs(bulkSetPublicIPsRequest) + +Request bulk setting SIM card public IPs. + +This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards.
+For each SIM Card a SIM Card Action will be generated. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.SimCardsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + SimCardsApi apiInstance = new SimCardsApi(defaultClient); + BulkSetPublicIPsRequest bulkSetPublicIPsRequest = new BulkSetPublicIPsRequest(); // BulkSetPublicIPsRequest | + try { + BulkSetPublicIPs202Response result = apiInstance.bulkSetPublicIPs(bulkSetPublicIPsRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SimCardsApi#bulkSetPublicIPs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **bulkSetPublicIPsRequest** | [**BulkSetPublicIPsRequest**](BulkSetPublicIPsRequest.md)| | [optional] + +### Return type + +[**BulkSetPublicIPs202Response**](BulkSetPublicIPs202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful Response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | + + +## deleteNetworkPreference + +> SimCardActionGet200Response deleteNetworkPreference(id) + +Delete network preferences for a SIM card + +This API deletes network preferences for a SIM card.
+The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.SimCardsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + SimCardsApi apiInstance = new SimCardsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + SimCardActionGet200Response result = apiInstance.deleteNetworkPreference(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SimCardsApi#deleteNetworkPreference"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful Response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + + ## listSimCardDataUsageNotifications -> SimCardDataUsageNotificationCollection listSimCardDataUsageNotifications(pageNumber, pageSize, filterSimCardId) +> ListSimCardDataUsageNotifications200Response listSimCardDataUsageNotifications(pageNumber, pageSize, filterSimCardId) List SIM card data usage notifications @@ -136,7 +288,7 @@ public class Example { Integer pageSize = 20; // Integer | The size of the page UUID filterSimCardId = UUID.fromString("47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9"); // UUID | A valid SIM card ID. try { - SimCardDataUsageNotificationCollection result = apiInstance.listSimCardDataUsageNotifications(pageNumber, pageSize, filterSimCardId); + ListSimCardDataUsageNotifications200Response result = apiInstance.listSimCardDataUsageNotifications(pageNumber, pageSize, filterSimCardId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#listSimCardDataUsageNotifications"); @@ -160,7 +312,7 @@ Name | Type | Description | Notes ### Return type -[**SimCardDataUsageNotificationCollection**](SimCardDataUsageNotificationCollection.md) +[**ListSimCardDataUsageNotifications200Response**](ListSimCardDataUsageNotifications200Response.md) ### Authorization @@ -180,7 +332,7 @@ Name | Type | Description | Notes ## postValidateRegistrationCodes -> SIMCardRegistrationCodeValidations postValidateRegistrationCodes(createSIMCardValidateRequest) +> SIMCardRegistrationCodeValidations postValidateRegistrationCodes(postValidateRegistrationCodesRequest) Validate SIM cards registration codes @@ -207,9 +359,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); SimCardsApi apiInstance = new SimCardsApi(defaultClient); - CreateSIMCardValidateRequest createSIMCardValidateRequest = new CreateSIMCardValidateRequest(); // CreateSIMCardValidateRequest | + PostValidateRegistrationCodesRequest postValidateRegistrationCodesRequest = new PostValidateRegistrationCodesRequest(); // PostValidateRegistrationCodesRequest | try { - SIMCardRegistrationCodeValidations result = apiInstance.postValidateRegistrationCodes(createSIMCardValidateRequest); + SIMCardRegistrationCodeValidations result = apiInstance.postValidateRegistrationCodes(postValidateRegistrationCodesRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#postValidateRegistrationCodes"); @@ -227,7 +379,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createSIMCardValidateRequest** | [**CreateSIMCardValidateRequest**](CreateSIMCardValidateRequest.md)| | + **postValidateRegistrationCodesRequest** | [**PostValidateRegistrationCodesRequest**](PostValidateRegistrationCodesRequest.md)| | ### Return type @@ -251,7 +403,7 @@ Name | Type | Description | Notes ## removeSIMCardPublicIP -> SIMCardActionResponse removeSIMCardPublicIP(id) +> SimCardActionGet200Response removeSIMCardPublicIP(id) Request removing a SIM card public IP @@ -282,7 +434,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardActionResponse result = apiInstance.removeSIMCardPublicIP(id); + SimCardActionGet200Response result = apiInstance.removeSIMCardPublicIP(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#removeSIMCardPublicIP"); @@ -304,7 +456,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardActionResponse**](SIMCardActionResponse.md) +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) ### Authorization @@ -322,9 +474,82 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | +## sIMCardDeviceDetailsGet + +> SIMCardDeviceDetailsGet200Response sIMCardDeviceDetailsGet(simCardId) + +Get SIM card device details + +It returns the device details where a SIM card is currently being used. + + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.SimCardsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + SimCardsApi apiInstance = new SimCardsApi(defaultClient); + UUID simCardId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies a SIM card. + try { + SIMCardDeviceDetailsGet200Response result = apiInstance.sIMCardDeviceDetailsGet(simCardId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SimCardsApi#sIMCardDeviceDetailsGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **simCardId** | **UUID**| Identifies a SIM card. | + +### Return type + +[**SIMCardDeviceDetailsGet200Response**](SIMCardDeviceDetailsGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + ## sIMCardNetworkPreferencesDelete -> DeleteSIMCardNetworkPreferenceResponse sIMCardNetworkPreferencesDelete(simCardId) +> SIMCardNetworkPreferencesGet200Response sIMCardNetworkPreferencesDelete(simCardId) DELETE network preferences @@ -355,7 +580,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID simCardId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies a SIM card. try { - DeleteSIMCardNetworkPreferenceResponse result = apiInstance.sIMCardNetworkPreferencesDelete(simCardId); + SIMCardNetworkPreferencesGet200Response result = apiInstance.sIMCardNetworkPreferencesDelete(simCardId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#sIMCardNetworkPreferencesDelete"); @@ -377,7 +602,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteSIMCardNetworkPreferenceResponse**](DeleteSIMCardNetworkPreferenceResponse.md) +[**SIMCardNetworkPreferencesGet200Response**](SIMCardNetworkPreferencesGet200Response.md) ### Authorization @@ -397,7 +622,7 @@ Name | Type | Description | Notes ## sIMCardNetworkPreferencesGet -> SIMCardNetworkPreferenceWithOTAUpdatesResponse sIMCardNetworkPreferencesGet(simCardId, includeOtaUpdates) +> SIMCardNetworkPreferencesGet200Response sIMCardNetworkPreferencesGet(simCardId, includeOtaUpdates) Get network preferences @@ -429,7 +654,7 @@ public class Example { UUID simCardId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies a SIM card. Boolean includeOtaUpdates = false; // Boolean | It includes the associated OTA update objects in the response when present. try { - SIMCardNetworkPreferenceWithOTAUpdatesResponse result = apiInstance.sIMCardNetworkPreferencesGet(simCardId, includeOtaUpdates); + SIMCardNetworkPreferencesGet200Response result = apiInstance.sIMCardNetworkPreferencesGet(simCardId, includeOtaUpdates); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#sIMCardNetworkPreferencesGet"); @@ -452,7 +677,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardNetworkPreferenceWithOTAUpdatesResponse**](SIMCardNetworkPreferenceWithOTAUpdatesResponse.md) +[**SIMCardNetworkPreferencesGet200Response**](SIMCardNetworkPreferencesGet200Response.md) ### Authorization @@ -472,7 +697,7 @@ Name | Type | Description | Notes ## sIMCardNetworkPreferencesPut -> PUTSIMCardNetworkPreferenceResponse sIMCardNetworkPreferencesPut(simCardId, putNetworkPreferenceRequest) +> SIMCardNetworkPreferencesGet200Response sIMCardNetworkPreferencesPut(simCardId, siMCardNetworkPreferencesPutRequest) Set network preferences @@ -504,9 +729,9 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID simCardId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies a SIM card. - PutNetworkPreferenceRequest putNetworkPreferenceRequest = new PutNetworkPreferenceRequest(); // PutNetworkPreferenceRequest | + SIMCardNetworkPreferencesPutRequest siMCardNetworkPreferencesPutRequest = new SIMCardNetworkPreferencesPutRequest(); // SIMCardNetworkPreferencesPutRequest | try { - PUTSIMCardNetworkPreferenceResponse result = apiInstance.sIMCardNetworkPreferencesPut(simCardId, putNetworkPreferenceRequest); + SIMCardNetworkPreferencesGet200Response result = apiInstance.sIMCardNetworkPreferencesPut(simCardId, siMCardNetworkPreferencesPutRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#sIMCardNetworkPreferencesPut"); @@ -525,11 +750,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **simCardId** | **UUID**| Identifies a SIM card. | - **putNetworkPreferenceRequest** | [**PutNetworkPreferenceRequest**](PutNetworkPreferenceRequest.md)| | [optional] + **siMCardNetworkPreferencesPutRequest** | [**SIMCardNetworkPreferencesPutRequest**](SIMCardNetworkPreferencesPutRequest.md)| | [optional] ### Return type -[**PUTSIMCardNetworkPreferenceResponse**](PUTSIMCardNetworkPreferenceResponse.md) +[**SIMCardNetworkPreferencesGet200Response**](SIMCardNetworkPreferencesGet200Response.md) ### Authorization @@ -549,7 +774,7 @@ Name | Type | Description | Notes ## sIMCardPublicIPGet -> SIMCardPublicIPResponse sIMCardPublicIPGet(simCardId) +> SIMCardPublicIPGet200Response sIMCardPublicIPGet(simCardId) Get SIM card public IP definition @@ -580,7 +805,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID simCardId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies a SIM card. try { - SIMCardPublicIPResponse result = apiInstance.sIMCardPublicIPGet(simCardId); + SIMCardPublicIPGet200Response result = apiInstance.sIMCardPublicIPGet(simCardId); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#sIMCardPublicIPGet"); @@ -602,7 +827,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardPublicIPResponse**](SIMCardPublicIPResponse.md) +[**SIMCardPublicIPGet200Response**](SIMCardPublicIPGet200Response.md) ### Authorization @@ -620,9 +845,86 @@ Name | Type | Description | Notes | **0** | Unexpected error | - | +## setNetworkPreference + +> SimCardActionGet200Response setNetworkPreference(id) + +Create or update network preferences for a SIM card + +This API sets network preferences for a SIM card.
+Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.

+The SIM card needs to be attached to the network so this can connect and SMS must be available, otherwise, the operation will fail. This preference will only be respected if the network is available, otherwise the strongest signal will be used.

+The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.SimCardsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + SimCardsApi apiInstance = new SimCardsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + SimCardActionGet200Response result = apiInstance.setNetworkPreference(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling SimCardsApi#setNetworkPreference"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful Response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + + ## setSIMCardPublicIP -> SIMCardActionResponse setSIMCardPublicIP(id) +> SimCardActionGet200Response setSIMCardPublicIP(id) Request setting a SIM card public IP @@ -654,7 +956,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardActionResponse result = apiInstance.setSIMCardPublicIP(id); + SimCardActionGet200Response result = apiInstance.setSIMCardPublicIP(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#setSIMCardPublicIP"); @@ -676,7 +978,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardActionResponse**](SIMCardActionResponse.md) +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) ### Authorization @@ -696,7 +998,7 @@ Name | Type | Description | Notes ## simCardDataUsageNotificationsDelete -> DeleteSimCardDataUsageNotificationResponse simCardDataUsageNotificationsDelete(id) +> SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsDelete(id) Delete SIM card data usage notifications @@ -726,7 +1028,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - DeleteSimCardDataUsageNotificationResponse result = apiInstance.simCardDataUsageNotificationsDelete(id); + SimCardDataUsageNotificationsPost201Response result = apiInstance.simCardDataUsageNotificationsDelete(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardDataUsageNotificationsDelete"); @@ -748,7 +1050,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteSimCardDataUsageNotificationResponse**](DeleteSimCardDataUsageNotificationResponse.md) +[**SimCardDataUsageNotificationsPost201Response**](SimCardDataUsageNotificationsPost201Response.md) ### Authorization @@ -768,7 +1070,7 @@ Name | Type | Description | Notes ## simCardDataUsageNotificationsGet -> GetSimCardDataUsageNotificationResponse simCardDataUsageNotificationsGet(id) +> SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsGet(id) Get a single SIM card data usage notification @@ -798,7 +1100,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - GetSimCardDataUsageNotificationResponse result = apiInstance.simCardDataUsageNotificationsGet(id); + SimCardDataUsageNotificationsPost201Response result = apiInstance.simCardDataUsageNotificationsGet(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardDataUsageNotificationsGet"); @@ -820,7 +1122,7 @@ Name | Type | Description | Notes ### Return type -[**GetSimCardDataUsageNotificationResponse**](GetSimCardDataUsageNotificationResponse.md) +[**SimCardDataUsageNotificationsPost201Response**](SimCardDataUsageNotificationsPost201Response.md) ### Authorization @@ -841,7 +1143,7 @@ Name | Type | Description | Notes ## simCardDataUsageNotificationsPatch -> UpdateSimCardDataUsageNotificationResponse simCardDataUsageNotificationsPatch(id, simCardDataUsageNotification) +> SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsPatch(id, simCardDataUsageNotification) Updates information for a SIM Card Data Usage Notification @@ -872,7 +1174,7 @@ public class Example { UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. SimCardDataUsageNotification simCardDataUsageNotification = new SimCardDataUsageNotification(); // SimCardDataUsageNotification | try { - UpdateSimCardDataUsageNotificationResponse result = apiInstance.simCardDataUsageNotificationsPatch(id, simCardDataUsageNotification); + SimCardDataUsageNotificationsPost201Response result = apiInstance.simCardDataUsageNotificationsPatch(id, simCardDataUsageNotification); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardDataUsageNotificationsPatch"); @@ -895,7 +1197,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateSimCardDataUsageNotificationResponse**](UpdateSimCardDataUsageNotificationResponse.md) +[**SimCardDataUsageNotificationsPost201Response**](SimCardDataUsageNotificationsPost201Response.md) ### Authorization @@ -915,7 +1217,7 @@ Name | Type | Description | Notes ## simCardDataUsageNotificationsPost -> CreateSimCardDataUsageNotificationResponse simCardDataUsageNotificationsPost(createSIMCardDataUsageNotificationRequest) +> SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsPost(simCardDataUsageNotificationsPostRequest) Create a new SIM card data usage notification @@ -942,9 +1244,9 @@ public class Example { bearerAuth.setBearerToken("BEARER TOKEN"); SimCardsApi apiInstance = new SimCardsApi(defaultClient); - CreateSIMCardDataUsageNotificationRequest createSIMCardDataUsageNotificationRequest = new CreateSIMCardDataUsageNotificationRequest(); // CreateSIMCardDataUsageNotificationRequest | + SimCardDataUsageNotificationsPostRequest simCardDataUsageNotificationsPostRequest = new SimCardDataUsageNotificationsPostRequest(); // SimCardDataUsageNotificationsPostRequest | try { - CreateSimCardDataUsageNotificationResponse result = apiInstance.simCardDataUsageNotificationsPost(createSIMCardDataUsageNotificationRequest); + SimCardDataUsageNotificationsPost201Response result = apiInstance.simCardDataUsageNotificationsPost(simCardDataUsageNotificationsPostRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardDataUsageNotificationsPost"); @@ -962,11 +1264,11 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **createSIMCardDataUsageNotificationRequest** | [**CreateSIMCardDataUsageNotificationRequest**](CreateSIMCardDataUsageNotificationRequest.md)| | + **simCardDataUsageNotificationsPostRequest** | [**SimCardDataUsageNotificationsPostRequest**](SimCardDataUsageNotificationsPostRequest.md)| | ### Return type -[**CreateSimCardDataUsageNotificationResponse**](CreateSimCardDataUsageNotificationResponse.md) +[**SimCardDataUsageNotificationsPost201Response**](SimCardDataUsageNotificationsPost201Response.md) ### Authorization @@ -986,7 +1288,7 @@ Name | Type | Description | Notes ## simCardDelete -> DeleteSimCardResponse simCardDelete(id) +> SimCardGet200Response simCardDelete(id) Deletes a SIM card @@ -1018,7 +1320,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - DeleteSimCardResponse result = apiInstance.simCardDelete(id); + SimCardGet200Response result = apiInstance.simCardDelete(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardDelete"); @@ -1040,7 +1342,7 @@ Name | Type | Description | Notes ### Return type -[**DeleteSimCardResponse**](DeleteSimCardResponse.md) +[**SimCardGet200Response**](SimCardGet200Response.md) ### Authorization @@ -1060,7 +1362,7 @@ Name | Type | Description | Notes ## simCardDisable -> SIMCardActionResponse simCardDisable(id) +> SimCardActionGet200Response simCardDisable(id) Request a SIM card disable @@ -1092,7 +1394,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardActionResponse result = apiInstance.simCardDisable(id); + SimCardActionGet200Response result = apiInstance.simCardDisable(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardDisable"); @@ -1114,7 +1416,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardActionResponse**](SIMCardActionResponse.md) +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) ### Authorization @@ -1134,7 +1436,7 @@ Name | Type | Description | Notes ## simCardEnable -> SIMCardActionResponse simCardEnable(id) +> SimCardActionGet200Response simCardEnable(id) Request a SIM card enable @@ -1167,7 +1469,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardActionResponse result = apiInstance.simCardEnable(id); + SimCardActionGet200Response result = apiInstance.simCardEnable(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardEnable"); @@ -1189,7 +1491,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardActionResponse**](SIMCardActionResponse.md) +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) ### Authorization @@ -1210,7 +1512,7 @@ Name | Type | Description | Notes ## simCardGet -> GetSimCardResponse simCardGet(id, includeSimCardGroup) +> SimCardGet200Response simCardGet(id, includeSimCardGroup) Get SIM card @@ -1241,7 +1543,7 @@ public class Example { UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. Boolean includeSimCardGroup = false; // Boolean | It includes the associated SIM card group object in the response when present. try { - GetSimCardResponse result = apiInstance.simCardGet(id, includeSimCardGroup); + SimCardGet200Response result = apiInstance.simCardGet(id, includeSimCardGroup); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardGet"); @@ -1264,7 +1566,7 @@ Name | Type | Description | Notes ### Return type -[**GetSimCardResponse**](GetSimCardResponse.md) +[**SimCardGet200Response**](SimCardGet200Response.md) ### Authorization @@ -1284,7 +1586,7 @@ Name | Type | Description | Notes ## simCardRegister -> RegisterSimCardsResponse simCardRegister(siMCardRegistration) +> SimCardRegister202Response simCardRegister(siMCardRegistration) Register SIM cards @@ -1315,7 +1617,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); SIMCardRegistration siMCardRegistration = new SIMCardRegistration(); // SIMCardRegistration | try { - RegisterSimCardsResponse result = apiInstance.simCardRegister(siMCardRegistration); + SimCardRegister202Response result = apiInstance.simCardRegister(siMCardRegistration); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardRegister"); @@ -1337,7 +1639,7 @@ Name | Type | Description | Notes ### Return type -[**RegisterSimCardsResponse**](RegisterSimCardsResponse.md) +[**SimCardRegister202Response**](SimCardRegister202Response.md) ### Authorization @@ -1356,7 +1658,7 @@ Name | Type | Description | Notes ## simCardSetStandby -> SIMCardActionResponse simCardSetStandby(id) +> SimCardActionGet200Response simCardSetStandby(id) Request setting a SIM card to standby @@ -1389,7 +1691,7 @@ public class Example { SimCardsApi apiInstance = new SimCardsApi(defaultClient); UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. try { - SIMCardActionResponse result = apiInstance.simCardSetStandby(id); + SimCardActionGet200Response result = apiInstance.simCardSetStandby(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardSetStandby"); @@ -1411,7 +1713,7 @@ Name | Type | Description | Notes ### Return type -[**SIMCardActionResponse**](SIMCardActionResponse.md) +[**SimCardActionGet200Response**](SimCardActionGet200Response.md) ### Authorization @@ -1431,7 +1733,7 @@ Name | Type | Description | Notes ## simCardUpdate -> UpdateSimCardResponse simCardUpdate(id, siMCard) +> SimCardGet200Response simCardUpdate(id, siMCard) Update a SIM card @@ -1462,7 +1764,7 @@ public class Example { UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. SIMCard siMCard = new SIMCard(); // SIMCard | try { - UpdateSimCardResponse result = apiInstance.simCardUpdate(id, siMCard); + SimCardGet200Response result = apiInstance.simCardUpdate(id, siMCard); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardUpdate"); @@ -1485,7 +1787,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateSimCardResponse**](UpdateSimCardResponse.md) +[**SimCardGet200Response**](SimCardGet200Response.md) ### Authorization @@ -1505,7 +1807,7 @@ Name | Type | Description | Notes ## simCardsGet -> SearchSimCardsResponse simCardsGet(pageNumber, pageSize, includeSimCardGroup, filterSimCardGroupId, filterTags, filterIccid) +> SimCardsGet200Response simCardsGet(pageNumber, pageSize, includeSimCardGroup, filterSimCardGroupId, filterTags, filterIccid, filterStatus) Get all SIM cards @@ -1539,8 +1841,9 @@ public class Example { UUID filterSimCardGroupId = UUID.fromString("47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9"); // UUID | A valid SIM card group ID. List filterTags = Arrays.asList(); // List | A list of SIM card tags to filter on.

If the SIM card contains all of the given tags they will be found.

For example, if the SIM cards have the following tags:
  • ['customers', 'staff', 'test']
  • ['test']
  • ['customers']
Searching for ['customers', 'test'] returns only the first because it's the only one with both tags.
Searching for test returns the first two SIMs, because both of them have such tag.
Searching for customers returns the first and last SIMs.
String filterIccid = "89310410106543789301"; // String | A search string to partially match for the SIM card's ICCID. + List filterStatus = Arrays.asList(); // List | Filter by a SIM card's status. try { - SearchSimCardsResponse result = apiInstance.simCardsGet(pageNumber, pageSize, includeSimCardGroup, filterSimCardGroupId, filterTags, filterIccid); + SimCardsGet200Response result = apiInstance.simCardsGet(pageNumber, pageSize, includeSimCardGroup, filterSimCardGroupId, filterTags, filterIccid, filterStatus); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#simCardsGet"); @@ -1564,10 +1867,11 @@ Name | Type | Description | Notes **filterSimCardGroupId** | **UUID**| A valid SIM card group ID. | [optional] **filterTags** | **List<String>**| A list of SIM card tags to filter on.<br/><br/> If the SIM card contains <b><i>all</i></b> of the given <code>tags</code> they will be found.<br/><br/> For example, if the SIM cards have the following tags: <ul> <li><code>['customers', 'staff', 'test']</code> <li><code>['test']</code></li> <li><code>['customers']</code></li> </ul> Searching for <code>['customers', 'test']</code> returns only the first because it's the only one with both tags.<br/> Searching for <code>test</code> returns the first two SIMs, because both of them have such tag.<br/> Searching for <code>customers</code> returns the first and last SIMs.<br/> | [optional] **filterIccid** | **String**| A search string to partially match for the SIM card's ICCID. | [optional] + **filterStatus** | **List<String>**| Filter by a SIM card's status. | [optional] [enum: enabled, disabled, standby, data_limit_exceeded, unauthorized_imei] ### Return type -[**SearchSimCardsResponse**](SearchSimCardsResponse.md) +[**SimCardsGet200Response**](SimCardsGet200Response.md) ### Authorization @@ -1587,7 +1891,7 @@ Name | Type | Description | Notes ## wirelessConnectivityLogsGet -> WirelessConnectivityLogCollectionResponse wirelessConnectivityLogsGet(simCardId, pageNumber, pageSize) +> WirelessConnectivityLogsGet200Response wirelessConnectivityLogsGet(simCardId, pageNumber, pageSize) List wireless connectivity logs @@ -1619,7 +1923,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - WirelessConnectivityLogCollectionResponse result = apiInstance.wirelessConnectivityLogsGet(simCardId, pageNumber, pageSize); + WirelessConnectivityLogsGet200Response result = apiInstance.wirelessConnectivityLogsGet(simCardId, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling SimCardsApi#wirelessConnectivityLogsGet"); @@ -1643,7 +1947,7 @@ Name | Type | Description | Notes ### Return type -[**WirelessConnectivityLogCollectionResponse**](WirelessConnectivityLogCollectionResponse.md) +[**WirelessConnectivityLogsGet200Response**](WirelessConnectivityLogsGet200Response.md) ### Authorization diff --git a/docs/SimCardsGet200Response.md b/docs/SimCardsGet200Response.md new file mode 100644 index 00000000..f0281057 --- /dev/null +++ b/docs/SimCardsGet200Response.md @@ -0,0 +1,14 @@ + + +# SimCardsGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<SimpleSIMCard>**](SimpleSIMCard.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/SimpleSIMCard.md b/docs/SimpleSIMCard.md index 1399f150..f9feb3b2 100644 --- a/docs/SimpleSIMCard.md +++ b/docs/SimpleSIMCard.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**status** | [**SIMCardStatus**](SIMCardStatus.md) | | [optional] -**iccid** | **String** | The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card's memory and are also engraved or printed on the SIM card body during a process called personalization. | [optional] [readonly] -**imsi** | **String** | SIM cards are identified on their individual operator networks by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR). | [optional] [readonly] -**msisdn** | **String** | Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally. <br/> MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber's operator. | [optional] [readonly] -**simCardGroupId** | **UUID** | The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource. | [optional] -**tags** | **List<String>** | Searchable tags associated with the SIM card | [optional] -**dataLimit** | [**SimpleSIMCardDataLimit**](SimpleSIMCardDataLimit.md) | | [optional] -**currentBillingPeriodConsumedData** | [**SIMCardCurrentBillingPeriodConsumedData**](SIMCardCurrentBillingPeriodConsumedData.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**status** | [**SIMCardStatus**](SIMCardStatus.md) | | [optional] | +|**iccid** | **String** | The ICCID is the identifier of the specific SIM card/chip. Each SIM is internationally identified by its integrated circuit card identifier (ICCID). ICCIDs are stored in the SIM card's memory and are also engraved or printed on the SIM card body during a process called personalization. | [optional] [readonly] | +|**imsi** | **String** | SIM cards are identified on their individual operator networks by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR). | [optional] [readonly] | +|**msisdn** | **String** | Mobile Station International Subscriber Directory Number (MSISDN) is a number used to identify a mobile phone number internationally. <br/> MSISDN is defined by the E.164 numbering plan. It includes a country code and a National Destination Code which identifies the subscriber's operator. | [optional] [readonly] | +|**simCardGroupId** | **UUID** | The group SIMCardGroup identification. This attribute can be <code>null</code> when it's present in an associated resource. | [optional] | +|**tags** | **List<String>** | Searchable tags associated with the SIM card | [optional] | +|**dataLimit** | [**SimpleSIMCardDataLimit**](SimpleSIMCardDataLimit.md) | | [optional] | +|**currentBillingPeriodConsumedData** | [**SIMCardCurrentBillingPeriodConsumedData**](SIMCardCurrentBillingPeriodConsumedData.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | diff --git a/docs/SimpleSIMCardDataLimit.md b/docs/SimpleSIMCardDataLimit.md index 8c2bbc71..aa687451 100644 --- a/docs/SimpleSIMCardDataLimit.md +++ b/docs/SimpleSIMCardDataLimit.md @@ -6,19 +6,19 @@ The SIM card individual data limit configuration. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **BigDecimal** | | [optional] -**unit** | [**UnitEnum**](#UnitEnum) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | | [optional] | +|**unit** | [**UnitEnum**](#UnitEnum) | | [optional] | ## Enum: UnitEnum -Name | Value ----- | ----- -MB | "MB" -GB | "GB" +| Name | Value | +|---- | -----| +| MB | "MB" | +| GB | "GB" | diff --git a/docs/SimplifiedOTAUpdate.md b/docs/SimplifiedOTAUpdate.md index 17866f95..386a768f 100644 --- a/docs/SimplifiedOTAUpdate.md +++ b/docs/SimplifiedOTAUpdate.md @@ -6,33 +6,33 @@ This object represents an Over the Air (OTA) update request. It allows tracking ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] -**type** | [**TypeEnum**](#TypeEnum) | Represents the type of the operation requested. This will relate directly to the source of the request. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Represents the type of the operation requested. This will relate directly to the source of the request. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | ## Enum: TypeEnum -Name | Value ----- | ----- -SIM_CARD_NETWORK_PREFERENCES | "sim_card_network_preferences" +| Name | Value | +|---- | -----| +| SIM_CARD_NETWORK_PREFERENCES | "sim_card_network_preferences" | ## Enum: StatusEnum -Name | Value ----- | ----- -IN_PROGRESS | "in-progress" -COMPLETED | "completed" -FAILED | "failed" +| Name | Value | +|---- | -----| +| IN_PROGRESS | "in-progress" | +| COMPLETED | "completed" | +| FAILED | "failed" | diff --git a/docs/SipHeader.md b/docs/SipHeader.md index fe64c35f..ba357dcf 100644 --- a/docs/SipHeader.md +++ b/docs/SipHeader.md @@ -5,18 +5,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | [**NameEnum**](#NameEnum) | The name of the header to add. | -**value** | **String** | The value of the header. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | [**NameEnum**](#NameEnum) | The name of the header to add. | | +|**value** | **String** | The value of the header. | | ## Enum: NameEnum -Name | Value ----- | ----- -USER_TO_USER | "user-to-user" +| Name | Value | +|---- | -----| +| USER_TO_USER | "user-to-user" | diff --git a/docs/SoundModifications.md b/docs/SoundModifications.md index 6a80db6d..5e92bd3d 100644 --- a/docs/SoundModifications.md +++ b/docs/SoundModifications.md @@ -2,14 +2,16 @@ # SoundModifications +Use this field to modify sound effects, for example adjust the pitch. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pitch** | **Double** | Set the pitch directly, value should be > 0, default 1 (lower = lower tone) | [optional] -**semitone** | **Double** | Adjust the pitch in semitones, values should be between -14 and 14, default 0 | [optional] -**octaves** | **Double** | Adjust the pitch in octaves, values should be between -1 and 1, default 0 | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pitch** | **Double** | Set the pitch directly, value should be > 0, default 1 (lower = lower tone) | [optional] | +|**semitone** | **Double** | Adjust the pitch in semitones, values should be between -14 and 14, default 0 | [optional] | +|**octaves** | **Double** | Adjust the pitch in octaves, values should be between -1 and 1, default 0 | [optional] | +|**track** | **String** | The track to which the sound modifications will be applied. Accepted values are `inbound`, `outbound`, or `both` | [optional] | diff --git a/docs/SpeakRequest.md b/docs/SpeakRequest.md index af79223a..6edf0417 100644 --- a/docs/SpeakRequest.md +++ b/docs/SpeakRequest.md @@ -5,79 +5,79 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**payload** | **String** | The text or SSML to be converted into speech. There is a 3,000 character limit. | -**payloadType** | [**PayloadTypeEnum**](#PayloadTypeEnum) | The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML). | [optional] -**serviceLevel** | [**ServiceLevelEnum**](#ServiceLevelEnum) | This parameter impacts speech quality, language options and payload types. When using `basic`, only the `en-US` language and payload type `text` are allowed. | [optional] -**stop** | **String** | When specified, it stops the current audio being played. Specify `current` to stop the current audio being played, and to play the next file in the queue. Specify `all` to stop the current audio file being played and to also clear all audio files from the queue. | [optional] -**voice** | [**VoiceEnum**](#VoiceEnum) | The gender of the voice used to speak back the text. | -**language** | [**LanguageEnum**](#LanguageEnum) | The language you want spoken. | -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**payload** | **String** | The text or SSML to be converted into speech. There is a 3,000 character limit. | | +|**payloadType** | [**PayloadTypeEnum**](#PayloadTypeEnum) | The type of the provided payload. The payload can either be plain text, or Speech Synthesis Markup Language (SSML). | [optional] | +|**serviceLevel** | [**ServiceLevelEnum**](#ServiceLevelEnum) | This parameter impacts speech quality, language options and payload types. When using `basic`, only the `en-US` language and payload type `text` are allowed. | [optional] | +|**stop** | **String** | When specified, it stops the current audio being played. Specify `current` to stop the current audio being played, and to play the next file in the queue. Specify `all` to stop the current audio file being played and to also clear all audio files from the queue. | [optional] | +|**voice** | [**VoiceEnum**](#VoiceEnum) | The gender of the voice used to speak back the text. | | +|**language** | [**LanguageEnum**](#LanguageEnum) | The language you want spoken. | | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | ## Enum: PayloadTypeEnum -Name | Value ----- | ----- -TEXT | "text" -SSML | "ssml" +| Name | Value | +|---- | -----| +| TEXT | "text" | +| SSML | "ssml" | ## Enum: ServiceLevelEnum -Name | Value ----- | ----- -BASIC | "basic" -PREMIUM | "premium" +| Name | Value | +|---- | -----| +| BASIC | "basic" | +| PREMIUM | "premium" | ## Enum: VoiceEnum -Name | Value ----- | ----- -MALE | "male" -FEMALE | "female" +| Name | Value | +|---- | -----| +| MALE | "male" | +| FEMALE | "female" | ## Enum: LanguageEnum -Name | Value ----- | ----- -ARB | "arb" -CMN_CN | "cmn-CN" -CY_GB | "cy-GB" -DA_DK | "da-DK" -DE_DE | "de-DE" -EN_AU | "en-AU" -EN_GB | "en-GB" -EN_GB_WLS | "en-GB-WLS" -EN_IN | "en-IN" -EN_US | "en-US" -ES_ES | "es-ES" -ES_MX | "es-MX" -ES_US | "es-US" -FR_CA | "fr-CA" -FR_FR | "fr-FR" -HI_IN | "hi-IN" -IS_IS | "is-IS" -IT_IT | "it-IT" -JA_JP | "ja-JP" -KO_KR | "ko-KR" -NB_NO | "nb-NO" -NL_NL | "nl-NL" -PL_PL | "pl-PL" -PT_BR | "pt-BR" -PT_PT | "pt-PT" -RO_RO | "ro-RO" -RU_RU | "ru-RU" -SV_SE | "sv-SE" -TR_TR | "tr-TR" +| Name | Value | +|---- | -----| +| ARB | "arb" | +| CMN_CN | "cmn-CN" | +| CY_GB | "cy-GB" | +| DA_DK | "da-DK" | +| DE_DE | "de-DE" | +| EN_AU | "en-AU" | +| EN_GB | "en-GB" | +| EN_GB_WLS | "en-GB-WLS" | +| EN_IN | "en-IN" | +| EN_US | "en-US" | +| ES_ES | "es-ES" | +| ES_MX | "es-MX" | +| ES_US | "es-US" | +| FR_CA | "fr-CA" | +| FR_FR | "fr-FR" | +| HI_IN | "hi-IN" | +| IS_IS | "is-IS" | +| IT_IT | "it-IT" | +| JA_JP | "ja-JP" | +| KO_KR | "ko-KR" | +| NB_NO | "nb-NO" | +| NL_NL | "nl-NL" | +| PL_PL | "pl-PL" | +| PT_BR | "pt-BR" | +| PT_PT | "pt-PT" | +| RO_RO | "ro-RO" | +| RU_RU | "ru-RU" | +| SV_SE | "sv-SE" | +| TR_TR | "tr-TR" | diff --git a/docs/StartForkingRequest.md b/docs/StartForkingRequest.md index 0da00e9c..2489351d 100644 --- a/docs/StartForkingRequest.md +++ b/docs/StartForkingRequest.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**target** | **String** | The network target, <udp:ip_address:port>, where the call's RTP media packets should be forwarded. Both incoming and outgoing media packets will be delivered to the specified target, and information about the stream will be included in the encapsulation protocol header, including the direction (0 = inbound; 1 = outbound), leg (0 = A-leg; 1 = B-leg), and call_leg_id. | [optional] -**rx** | **String** | The network target, <udp:ip_address:port>, where the call's incoming RTP media packets should be forwarded. | [optional] -**streamType** | [**StreamTypeEnum**](#StreamTypeEnum) | Optionally specify a media type to stream. If `decrypted` selected, Telnyx will decrypt incoming SIP media before forking to the target. `rx` and `tx` are required fields if `decrypted` selected. | [optional] -**tx** | **String** | The network target, <udp:ip_address:port>, where the call's outgoing RTP media packets should be forwarded. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**target** | **String** | The network target, <udp:ip_address:port>, where the call's RTP media packets should be forwarded. Both incoming and outgoing media packets will be delivered to the specified target, and information about the stream will be included in the encapsulation protocol header, including the direction (0 = inbound; 1 = outbound), leg (0 = A-leg; 1 = B-leg), and call_leg_id. | [optional] | +|**rx** | **String** | The network target, <udp:ip_address:port>, where the call's incoming RTP media packets should be forwarded. | [optional] | +|**streamType** | [**StreamTypeEnum**](#StreamTypeEnum) | Optionally specify a media type to stream. If `decrypted` selected, Telnyx will decrypt incoming SIP media before forking to the target. `rx` and `tx` are required fields if `decrypted` selected. | [optional] | +|**tx** | **String** | The network target, <udp:ip_address:port>, where the call's outgoing RTP media packets should be forwarded. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | ## Enum: StreamTypeEnum -Name | Value ----- | ----- -RAW | "raw" -DECRYPTED | "decrypted" +| Name | Value | +|---- | -----| +| RAW | "raw" | +| DECRYPTED | "decrypted" | diff --git a/docs/StartRecordingRequest.md b/docs/StartRecordingRequest.md index 14c241ce..9f373b8d 100644 --- a/docs/StartRecordingRequest.md +++ b/docs/StartRecordingRequest.md @@ -5,32 +5,33 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**format** | [**FormatEnum**](#FormatEnum) | The audio file format used when storing the call recording. Can be either `mp3` or `wav`. | -**channels** | [**ChannelsEnum**](#ChannelsEnum) | When `dual`, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. | -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] -**playBeep** | **Boolean** | If enabled, a beep sound will be played at the start of a recording. | [optional] -**maxLength** | **Integer** | Defines the maximum length for the recording in seconds. Minimum value is 0. Maximum value is 14400. Default is 0 (infinite) | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**format** | [**FormatEnum**](#FormatEnum) | The audio file format used when storing the call recording. Can be either `mp3` or `wav`. | | +|**channels** | [**ChannelsEnum**](#ChannelsEnum) | When `dual`, final audio file will be stereo recorded with the first leg on channel A, and the rest on channel B. | | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**playBeep** | **Boolean** | If enabled, a beep sound will be played at the start of a recording. | [optional] | +|**maxLength** | **Integer** | Defines the maximum length for the recording in seconds. The minimum value is 0. The maximum value is 14400. The default value is 0 (infinite) | [optional] | +|**timeoutSecs** | **Integer** | The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite) | [optional] | ## Enum: FormatEnum -Name | Value ----- | ----- -WAV | "wav" -MP3 | "mp3" +| Name | Value | +|---- | -----| +| WAV | "wav" | +| MP3 | "mp3" | ## Enum: ChannelsEnum -Name | Value ----- | ----- -SINGLE | "single" -DUAL | "dual" +| Name | Value | +|---- | -----| +| SINGLE | "single" | +| DUAL | "dual" | diff --git a/docs/StartStreamingRequest.md b/docs/StartStreamingRequest.md index 776becd0..182c0727 100644 --- a/docs/StartStreamingRequest.md +++ b/docs/StartStreamingRequest.md @@ -5,22 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**streamUrl** | **String** | The destination WebSocket address where the stream is going to be delivered. | [optional] -**streamTrack** | [**StreamTrackEnum**](#StreamTrackEnum) | Specifies which track should be streamed. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**streamUrl** | **String** | The destination WebSocket address where the stream is going to be delivered. | [optional] | +|**streamTrack** | [**StreamTrackEnum**](#StreamTrackEnum) | Specifies which track should be streamed. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**enableDialogflow** | **Boolean** | Enables Dialogflow for the current call. The default value is false. | [optional] | +|**dialogflowConfig** | [**DialogflowConfig**](DialogflowConfig.md) | | [optional] | ## Enum: StreamTrackEnum -Name | Value ----- | ----- -INBOUND_TRACK | "inbound_track" -OUTBOUND_TRACK | "outbound_track" -BOTH_TRACKS | "both_tracks" +| Name | Value | +|---- | -----| +| INBOUND_TRACK | "inbound_track" | +| OUTBOUND_TRACK | "outbound_track" | +| BOTH_TRACKS | "both_tracks" | diff --git a/docs/StopForkingRequest.md b/docs/StopForkingRequest.md index 7bbb724a..bb87890c 100644 --- a/docs/StopForkingRequest.md +++ b/docs/StopForkingRequest.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] -**streamType** | [**StreamTypeEnum**](#StreamTypeEnum) | Optionally specify a `stream_type`. This should match the `stream_type` that was used in `fork_start` command to properly stop the fork. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**streamType** | [**StreamTypeEnum**](#StreamTypeEnum) | Optionally specify a `stream_type`. This should match the `stream_type` that was used in `fork_start` command to properly stop the fork. | [optional] | ## Enum: StreamTypeEnum -Name | Value ----- | ----- -RAW | "raw" -DECRYPTED | "decrypted" +| Name | Value | +|---- | -----| +| RAW | "raw" | +| DECRYPTED | "decrypted" | diff --git a/docs/StopGatherRequest.md b/docs/StopGatherRequest.md index d0bb8824..2744086e 100644 --- a/docs/StopGatherRequest.md +++ b/docs/StopGatherRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/StopRecordingRequest.md b/docs/StopRecordingRequest.md index 76dd863e..17e67ee9 100644 --- a/docs/StopRecordingRequest.md +++ b/docs/StopRecordingRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/StopStreamingRequest.md b/docs/StopStreamingRequest.md index fd96e092..75a99af5 100644 --- a/docs/StopStreamingRequest.md +++ b/docs/StopStreamingRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/SubNumberOrder.md b/docs/SubNumberOrder.md index 9654f93f..a5ecbeae 100644 --- a/docs/SubNumberOrder.md +++ b/docs/SubNumberOrder.md @@ -5,32 +5,32 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**orderRequestId** | **UUID** | | [optional] [readonly] -**countryCode** | **String** | | [optional] [readonly] -**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | | [optional] -**userId** | **UUID** | | [optional] -**regulatoryRequirements** | [**List<SubNumberOrderRegulatoryRequirement>**](SubNumberOrderRegulatoryRequirement.md) | | [optional] -**recordType** | **String** | | [optional] [readonly] -**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] -**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**orderRequestId** | **UUID** | | [optional] [readonly] | +|**countryCode** | **String** | | [optional] [readonly] | +|**phoneNumberType** | [**PhoneNumberTypeEnum**](#PhoneNumberTypeEnum) | | [optional] | +|**userId** | **UUID** | | [optional] | +|**regulatoryRequirements** | [**List<SubNumberOrderRegulatoryRequirement>**](SubNumberOrderRegulatoryRequirement.md) | | [optional] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] | +|**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] | ## Enum: PhoneNumberTypeEnum -Name | Value ----- | ----- -LOCAL | "local" -TOLL_FREE | "toll_free" -MOBILE | "mobile" -NATIONAL | "national" -SHARED_COST | "shared_cost" -LANDLINE | "landline" +| Name | Value | +|---- | -----| +| LOCAL | "local" | +| TOLL_FREE | "toll_free" | +| MOBILE | "mobile" | +| NATIONAL | "national" | +| SHARED_COST | "shared_cost" | +| LANDLINE | "landline" | diff --git a/docs/SubNumberOrderRegulatoryRequirement.md b/docs/SubNumberOrderRegulatoryRequirement.md index a48408dd..aab2ed2a 100644 --- a/docs/SubNumberOrderRegulatoryRequirement.md +++ b/docs/SubNumberOrderRegulatoryRequirement.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**requirementId** | **UUID** | Unique id for a requirement. | [optional] -**fieldType** | [**FieldTypeEnum**](#FieldTypeEnum) | | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**requirementId** | **UUID** | Unique id for a requirement. | [optional] | +|**fieldType** | [**FieldTypeEnum**](#FieldTypeEnum) | | [optional] [readonly] | ## Enum: FieldTypeEnum -Name | Value ----- | ----- -TEXTUAL | "textual" -DATETIME | "datetime" -ADDRESS | "address" -DOCUMENT | "document" +| Name | Value | +|---- | -----| +| TEXTUAL | "textual" | +| DATETIME | "datetime" | +| ADDRESS | "address" | +| DOCUMENT | "document" | diff --git a/docs/SubNumberOrderResponse.md b/docs/SubNumberOrderResponse.md index c56bf0d6..fb93a27e 100644 --- a/docs/SubNumberOrderResponse.md +++ b/docs/SubNumberOrderResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**SubNumberOrder**](SubNumberOrder.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**SubNumberOrder**](SubNumberOrder.md) | | [optional] | diff --git a/docs/SuccessfulResponseUponAcceptingCancelFaxCommand.md b/docs/SuccessfulResponseUponAcceptingCancelFaxCommand.md new file mode 100644 index 00000000..36ebd5a6 --- /dev/null +++ b/docs/SuccessfulResponseUponAcceptingCancelFaxCommand.md @@ -0,0 +1,13 @@ + + +# SuccessfulResponseUponAcceptingCancelFaxCommand + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**result** | **String** | | [optional] | + + + diff --git a/docs/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.md b/docs/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.md new file mode 100644 index 00000000..4c9a06e9 --- /dev/null +++ b/docs/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.md @@ -0,0 +1,13 @@ + + +# SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Message**](Message.md) | | [optional] | + + + diff --git a/docs/TeXmlApplicationsApi.md b/docs/TeXmlApplicationsApi.md index 37921452..e6bb92de 100644 --- a/docs/TeXmlApplicationsApi.md +++ b/docs/TeXmlApplicationsApi.md @@ -158,7 +158,7 @@ Name | Type | Description | Notes ## findTexmlApplications -> GetAllTexmlApplicationsResponse findTexmlApplications(pageNumber, pageSize, filterFriendlyNameContains, filterOutboundOutboundVoiceProfileId, sort) +> GetAllTexmlApplicationsResponse findTexmlApplications(pageNumber, pageSize, filterFriendlyNameContains, filterOutboundVoiceProfileId, sort) List all TeXML Applications @@ -188,10 +188,10 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page String filterFriendlyNameContains = "null"; // String | If present, applications with friendly_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. - String filterOutboundOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. + String filterOutboundVoiceProfileId = "1293384261075731499"; // String | Identifies the associated outbound voice profile. String sort = "created_at"; // String | Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

That is:
  • connection_name: sorts the result by the connection_name field in ascending order.
  • -connection_name: sorts the result by the connection_name field in descending order.

If not given, results are sorted by created_at in descending order. try { - GetAllTexmlApplicationsResponse result = apiInstance.findTexmlApplications(pageNumber, pageSize, filterFriendlyNameContains, filterOutboundOutboundVoiceProfileId, sort); + GetAllTexmlApplicationsResponse result = apiInstance.findTexmlApplications(pageNumber, pageSize, filterFriendlyNameContains, filterOutboundVoiceProfileId, sort); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling TeXmlApplicationsApi#findTexmlApplications"); @@ -212,7 +212,7 @@ Name | Type | Description | Notes **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] **pageSize** | **Integer**| The size of the page | [optional] [default to 20] **filterFriendlyNameContains** | **String**| If present, applications with <code>friendly_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. | [optional] [default to null] - **filterOutboundOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] + **filterOutboundVoiceProfileId** | **String**| Identifies the associated outbound voice profile. | [optional] **sort** | **String**| Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. | [optional] [default to created_at] [enum: created_at, connection_name, active] ### Return type diff --git a/docs/TeXmlRESTCommandResponse.md b/docs/TeXmlRESTCommandResponse.md new file mode 100644 index 00000000..94399a98 --- /dev/null +++ b/docs/TeXmlRESTCommandResponse.md @@ -0,0 +1,13 @@ + + +# TeXmlRESTCommandResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**UpdateCommandResult**](UpdateCommandResult.md) | | [optional] | + + + diff --git a/docs/TeXmlRestCommandsApi.md b/docs/TeXmlRestCommandsApi.md new file mode 100644 index 00000000..9348b6a6 --- /dev/null +++ b/docs/TeXmlRestCommandsApi.md @@ -0,0 +1,83 @@ +# TeXmlRestCommandsApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**updateTeXMLCall**](TeXmlRestCommandsApi.md#updateTeXMLCall) | **POST** /texml/{call_sid}/update | Update call + + + +## updateTeXMLCall + +> TeXmlRESTCommandResponse updateTeXMLCall(callSid).updateCallRequest(updateCallRequest).execute(); + +Update call + +Update TeXml call + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.TeXmlRestCommandsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + TeXmlRestCommandsApi apiInstance = new TeXmlRestCommandsApi(defaultClient); + String callSid = "callSid_example"; // String | The CallSid that identifies the call to update. + UpdateCallRequest updateCallRequest = new UpdateCallRequest(); // UpdateCallRequest | Update Call request object + try { + TeXmlRESTCommandResponse result = api.updateTeXMLCall(callSid) + .updateCallRequest(updateCallRequest) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling TeXmlRestCommandsApi#updateTeXMLCall"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **callSid** | **String**| The CallSid that identifies the call to update. | + **updateCallRequest** | [**UpdateCallRequest**](UpdateCallRequest.md)| Update Call request object | + +### Return type + +[**TeXmlRESTCommandResponse**](TeXmlRESTCommandResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response upon updating a TeXml call. | - | + diff --git a/docs/TelephonyCredential.md b/docs/TelephonyCredential.md index 40ff7e3f..65b9094f 100644 --- a/docs/TelephonyCredential.md +++ b/docs/TelephonyCredential.md @@ -5,18 +5,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**name** | **String** | | [optional] -**resourceId** | **String** | Identifies the resource this credential is associated with. | [optional] -**expired** | **Boolean** | Defaults to false | [optional] -**sipUsername** | **String** | The randomly generated SIP username for the credential. | [optional] -**sipPassword** | **String** | The randomly generated SIP password for the credential. | [optional] -**createdAt** | **String** | ISO-8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO-8601 formatted date indicating when the resource was updated. | [optional] -**expiresAt** | **String** | ISO-8601 formatted date indicating when the resource will expire. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**name** | **String** | | [optional] | +|**resourceId** | **String** | Identifies the resource this credential is associated with. | [optional] | +|**expired** | **Boolean** | Defaults to false | [optional] | +|**sipUsername** | **String** | The randomly generated SIP username for the credential. | [optional] | +|**sipPassword** | **String** | The randomly generated SIP password for the credential. | [optional] | +|**createdAt** | **String** | ISO-8601 formatted date indicating when the resource was created. | [optional] | +|**updatedAt** | **String** | ISO-8601 formatted date indicating when the resource was updated. | [optional] | +|**expiresAt** | **String** | ISO-8601 formatted date indicating when the resource will expire. | [optional] | diff --git a/docs/TelephonyCredentialCreateRequest.md b/docs/TelephonyCredentialCreateRequest.md index 8830dd61..30461c93 100644 --- a/docs/TelephonyCredentialCreateRequest.md +++ b/docs/TelephonyCredentialCreateRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**tag** | **String** | Tags a credential to filter for bulk operations. A single tag can hold at maximum 1000 credentials. | [optional] -**connectionId** | **String** | Identifies the Credential Connection this credential is associated with. | -**expiresAt** | **String** | ISO-8601 formatted date indicating when the credential will expire. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**tag** | **String** | Tags a credential to filter for bulk operations. A single tag can hold at maximum 1000 credentials. | [optional] | +|**connectionId** | **String** | Identifies the Credential Connection this credential is associated with. | | +|**expiresAt** | **String** | ISO-8601 formatted date indicating when the credential will expire. | [optional] | diff --git a/docs/TelephonyCredentialResponse.md b/docs/TelephonyCredentialResponse.md index 70f67b5b..b734ac14 100644 --- a/docs/TelephonyCredentialResponse.md +++ b/docs/TelephonyCredentialResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**TelephonyCredential**](TelephonyCredential.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**TelephonyCredential**](TelephonyCredential.md) | | [optional] | diff --git a/docs/TelephonyCredentialUpdateRequest.md b/docs/TelephonyCredentialUpdateRequest.md index 5b55e068..bc4a4c33 100644 --- a/docs/TelephonyCredentialUpdateRequest.md +++ b/docs/TelephonyCredentialUpdateRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**tag** | **String** | Tags a credential to filter for bulk operations. A single tag can hold at maximum 1000 credentials. | [optional] -**connectionId** | **String** | Identifies the Credential Connection this credential is associated with. | [optional] -**expiresAt** | **String** | ISO-8601 formatted date indicating when the credential will expire. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**tag** | **String** | Tags a credential to filter for bulk operations. A single tag can hold at maximum 1000 credentials. | [optional] | +|**connectionId** | **String** | Identifies the Credential Connection this credential is associated with. | [optional] | +|**expiresAt** | **String** | ISO-8601 formatted date indicating when the credential will expire. | [optional] | diff --git a/docs/Template.md b/docs/Template.md index 8b403675..d614a526 100644 --- a/docs/Template.md +++ b/docs/Template.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**namespace** | **String** | Namespace of the template. This must be the namespace associated with the WhatsApp business account that owns the phone number associated with the current WhatsApp Business API client or the message fails to send. | -**name** | **String** | Name of the template. | -**language** | [**Language**](Language.md) | | -**components** | [**List<Object>**](Object.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**namespace** | **String** | Namespace of the template. This must be the namespace associated with the WhatsApp business account that owns the phone number associated with the current WhatsApp Business API client or the message fails to send. | | +|**name** | **String** | Name of the template. | | +|**language** | [**Language**](Language.md) | | | +|**components** | [**List<TemplateComponents>**](TemplateComponents.md) | | [optional] | diff --git a/docs/TemplateButtonComponent.md b/docs/TemplateButtonComponent.md new file mode 100644 index 00000000..73942537 --- /dev/null +++ b/docs/TemplateButtonComponent.md @@ -0,0 +1,16 @@ + + +# TemplateButtonComponent + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**ButtonComponentType**](ButtonComponentType.md) | Describes the component type. | | +|**subType** | [**ButtonSubtype**](ButtonSubtype.md) | Used when type is set to button. | | +|**index** | **Integer** | Position index of the button. You can have up to 3 buttons using index values of 0-2. | | +|**parameters** | [**List**](List.md) | The parameters for the button, which are set at creation time in your Business Manager. | | + + + diff --git a/docs/TemplateButtonParameter.md b/docs/TemplateButtonParameter.md new file mode 100644 index 00000000..b282799e --- /dev/null +++ b/docs/TemplateButtonParameter.md @@ -0,0 +1,15 @@ + + +# TemplateButtonParameter + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**ButtonParameterType**](ButtonParameterType.md) | Indicates the type of parameter for the button. | | +|**payload** | **String** | Required for quick_reply buttons. Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button. | [optional] | +|**text** | **String** | Required for url buttons. Developer provided suffix that will be appended to a previously created dynamic URL button. | [optional] | + + + diff --git a/docs/TemplateComponent.md b/docs/TemplateComponent.md new file mode 100644 index 00000000..1b823542 --- /dev/null +++ b/docs/TemplateComponent.md @@ -0,0 +1,14 @@ + + +# TemplateComponent + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TemplateComponentType**](TemplateComponentType.md) | Describes the component type. | | +|**parameters** | [**List<TemplateParameters>**](TemplateParameters.md) | | [optional] | + + + diff --git a/docs/TemplateComponentType.md b/docs/TemplateComponentType.md new file mode 100644 index 00000000..81df6c56 --- /dev/null +++ b/docs/TemplateComponentType.md @@ -0,0 +1,13 @@ + + +# TemplateComponentType + +## Enum + + +* `HEADER` (value: `"header"`) + +* `BODY` (value: `"body"`) + + + diff --git a/docs/TemplateComponents.md b/docs/TemplateComponents.md new file mode 100644 index 00000000..b0faf0da --- /dev/null +++ b/docs/TemplateComponents.md @@ -0,0 +1,39 @@ + + +# TemplateComponents + + + +## anyOf schemas +* [TemplateButtonComponent](TemplateButtonComponent.md) +* [TemplateComponent](TemplateComponent.md) + +## Example +```java +// Import classes: +import com.telnyx.sdk.model.TemplateComponents; +import com.telnyx.sdk.model.TemplateButtonComponent; +import com.telnyx.sdk.model.TemplateComponent; + +public class Example { + public static void main(String[] args) { + TemplateComponents exampleTemplateComponents = new TemplateComponents(); + + // create a new TemplateButtonComponent + TemplateButtonComponent exampleTemplateButtonComponent = new TemplateButtonComponent(); + // set TemplateComponents to TemplateButtonComponent + exampleTemplateComponents.setActualInstance(exampleTemplateButtonComponent); + // to get back the TemplateButtonComponent set earlier + TemplateButtonComponent testTemplateButtonComponent = (TemplateButtonComponent) exampleTemplateComponents.getActualInstance(); + + // create a new TemplateComponent + TemplateComponent exampleTemplateComponent = new TemplateComponent(); + // set TemplateComponents to TemplateComponent + exampleTemplateComponents.setActualInstance(exampleTemplateComponent); + // to get back the TemplateComponent set earlier + TemplateComponent testTemplateComponent = (TemplateComponent) exampleTemplateComponents.getActualInstance(); + } +} +``` + + diff --git a/docs/TemplateParameters.md b/docs/TemplateParameters.md new file mode 100644 index 00000000..3bd23f08 --- /dev/null +++ b/docs/TemplateParameters.md @@ -0,0 +1,33 @@ + + +# TemplateParameters + +Array containing the content of the message. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | [**TypeEnum**](#TypeEnum) | Describes the parameter type. | | +|**text** | **String** | | [optional] | +|**currency** | [**Currency**](Currency.md) | | [optional] | +|**dateTime** | [**DateTimeObject**](DateTimeObject.md) | | [optional] | +|**image** | [**Image**](Image.md) | | [optional] | +|**document** | [**Document**](Document.md) | | [optional] | +|**video** | [**Video**](Video.md) | | [optional] | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| TEXT | "text" | +| CURRENCY | "currency" | +| DATE_TIME | "date_time" | +| IMAGE | "image" | +| DOCUMENT | "document" | +| VIDEO | "video" | + + + diff --git a/docs/TexmlApplication.md b/docs/TexmlApplication.md index 3292d5c6..fec18dc7 100644 --- a/docs/TexmlApplication.md +++ b/docs/TexmlApplication.md @@ -5,43 +5,43 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Uniquely identifies the resource. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**friendlyName** | **String** | A user-assigned name to help manage the application. | [optional] -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**dtmfType** | **DtmfType** | | [optional] -**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] -**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] -**voiceUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks. | [optional] -**voiceFallbackUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. | [optional] -**voiceMethod** | [**VoiceMethodEnum**](#VoiceMethodEnum) | HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. | [optional] -**statusCallback** | **String** | URL for Telnyx to send requests to containing information about call progress events. | [optional] -**statusCallbackMethod** | [**StatusCallbackMethodEnum**](#StatusCallbackMethodEnum) | HTTP request method Telnyx should use when requesting the status_callback URL. | [optional] -**inbound** | [**CreateTexmlApplicationRequestInbound**](CreateTexmlApplicationRequestInbound.md) | | [optional] -**outbound** | [**CreateTexmlApplicationRequestOutbound**](CreateTexmlApplicationRequestOutbound.md) | | [optional] -**createdAt** | **String** | ISO 8601 formatted date indicating when the resource was created. | [optional] -**updatedAt** | **String** | ISO 8601 formatted date indicating when the resource was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Uniquely identifies the resource. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**friendlyName** | **String** | A user-assigned name to help manage the application. | [optional] | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] | +|**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] | +|**voiceUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks. | [optional] | +|**voiceFallbackUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. | [optional] | +|**voiceMethod** | [**VoiceMethodEnum**](#VoiceMethodEnum) | HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. | [optional] | +|**statusCallback** | **String** | URL for Telnyx to send requests to containing information about call progress events. | [optional] | +|**statusCallbackMethod** | [**StatusCallbackMethodEnum**](#StatusCallbackMethodEnum) | HTTP request method Telnyx should use when requesting the status_callback URL. | [optional] | +|**inbound** | [**CreateTexmlApplicationRequestInbound**](CreateTexmlApplicationRequestInbound.md) | | [optional] | +|**outbound** | [**CreateTexmlApplicationRequestOutbound**](CreateTexmlApplicationRequestOutbound.md) | | [optional] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | ## Enum: VoiceMethodEnum -Name | Value ----- | ----- -GET | "get" -POST | "post" +| Name | Value | +|---- | -----| +| GET | "get" | +| POST | "post" | ## Enum: StatusCallbackMethodEnum -Name | Value ----- | ----- -GET | "get" -POST | "post" +| Name | Value | +|---- | -----| +| GET | "get" | +| POST | "post" | diff --git a/docs/TexmlApplicationResponse.md b/docs/TexmlApplicationResponse.md index 3b5a48f5..94a99090 100644 --- a/docs/TexmlApplicationResponse.md +++ b/docs/TexmlApplicationResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**TexmlApplication**](TexmlApplication.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**TexmlApplication**](TexmlApplication.md) | | [optional] | diff --git a/docs/Text.md b/docs/Text.md index 234d7fc4..dccb6e08 100644 --- a/docs/Text.md +++ b/docs/Text.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**body** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**body** | **String** | | | diff --git a/docs/Transcription.md b/docs/Transcription.md index 5909e42e..fd2a387b 100644 --- a/docs/Transcription.md +++ b/docs/Transcription.md @@ -5,29 +5,29 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | [**TranscriptionPayload**](TranscriptionPayload.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | [**TranscriptionPayload**](TranscriptionPayload.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -CALL_TRANSCRIPTION | "call.transcription" +| Name | Value | +|---- | -----| +| CALL_TRANSCRIPTION | "call.transcription" | diff --git a/docs/TranscriptionEvent.md b/docs/TranscriptionEvent.md index 87aabd7c..60b84e8d 100644 --- a/docs/TranscriptionEvent.md +++ b/docs/TranscriptionEvent.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**Transcription**](Transcription.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**Transcription**](Transcription.md) | | [optional] | diff --git a/docs/TranscriptionPayload.md b/docs/TranscriptionPayload.md index 7fcd26b6..7061e217 100644 --- a/docs/TranscriptionPayload.md +++ b/docs/TranscriptionPayload.md @@ -5,14 +5,14 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique identifier and token for controlling the call. | [optional] -**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] -**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] -**transcriptionData** | [**TranscriptionPayloadTranscriptionData**](TranscriptionPayloadTranscriptionData.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique identifier and token for controlling the call. | [optional] | +|**callLegId** | **String** | ID that is unique to the call and can be used to correlate webhook events. | [optional] | +|**callSessionId** | **String** | ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**connectionId** | **String** | Telnyx connection ID used in the call. | [optional] | +|**transcriptionData** | [**TranscriptionPayloadTranscriptionData**](TranscriptionPayloadTranscriptionData.md) | | [optional] | diff --git a/docs/TranscriptionPayloadTranscriptionData.md b/docs/TranscriptionPayloadTranscriptionData.md index 701adb5d..82b89546 100644 --- a/docs/TranscriptionPayloadTranscriptionData.md +++ b/docs/TranscriptionPayloadTranscriptionData.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**confidence** | **Double** | Speech recognition confidence level. | [optional] -**isFinal** | **Boolean** | When false, it means that this is an interim result. | [optional] -**transcript** | **String** | Recognized text. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**confidence** | **Double** | Speech recognition confidence level. | [optional] | +|**isFinal** | **Boolean** | When false, it means that this is an interim result. | [optional] | +|**transcript** | **String** | Recognized text. | [optional] | diff --git a/docs/TranscriptionStartRequest.md b/docs/TranscriptionStartRequest.md index 9ea0849d..b2b04d05 100644 --- a/docs/TranscriptionStartRequest.md +++ b/docs/TranscriptionStartRequest.md @@ -5,25 +5,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**language** | [**LanguageEnum**](#LanguageEnum) | Language to use for speech recognition | [optional] -**interimResults** | **Boolean** | Whether to send also interim results. If set to false, only final results will be sent. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**language** | [**LanguageEnum**](#LanguageEnum) | Language to use for speech recognition | [optional] | +|**interimResults** | **Boolean** | Whether to send also interim results. If set to false, only final results will be sent. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**transcriptionTracks** | **String** | Indicates which leg of the call will be transcribed. Use `inbound` for the leg that requested the transcription, `outbound` for the other leg, and `both` for both legs of the call. Will default to `inbound`. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | ## Enum: LanguageEnum -Name | Value ----- | ----- -DE | "de" -EN | "en" -ES | "es" -FR | "fr" -IT | "it" -PL | "pl" +| Name | Value | +|---- | -----| +| DE | "de" | +| EN | "en" | +| ES | "es" | +| FR | "fr" | +| IT | "it" | +| PL | "pl" | diff --git a/docs/TranscriptionStopRequest.md b/docs/TranscriptionStopRequest.md index 0fbbc03d..fc4bdf41 100644 --- a/docs/TranscriptionStopRequest.md +++ b/docs/TranscriptionStopRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | diff --git a/docs/TransferCallRequest.md b/docs/TransferCallRequest.md index fd5c4e42..1836b525 100644 --- a/docs/TransferCallRequest.md +++ b/docs/TransferCallRequest.md @@ -5,47 +5,48 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**to** | **String** | The DID or SIP URI to dial out and bridge to the given call. | -**from** | **String** | The `from` number to be used as the caller id presented to the destination (`to` number). The number should be in +E164 format. This attribute will default to the `from` number of the original call if omitted. | [optional] -**fromDisplayName** | **String** | The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented to the destination (`to` number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be the same as the number in the `from` field. | [optional] -**audioUrl** | **String** | The URL of a file to be played back when the transfer destination answers before bridging the call. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] -**mediaName** | **String** | The media_name of a file to be played back when the transfer destination answers before bridging the call. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] -**timeoutSecs** | **Integer** | The number of seconds that Telnyx will wait for the call to be answered by the destination to which it is being transferred. If the timeout is reached before an answer is received, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent. Minimum value is 5 seconds. Maximum value is 120 seconds. | [optional] -**timeLimitSecs** | **Integer** | Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also the maximum allowed call length. | [optional] -**answeringMachineDetection** | [**AnsweringMachineDetectionEnum**](#AnsweringMachineDetectionEnum) | Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' webhook when the answering machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' if a beep is detected. | [optional] -**answeringMachineDetectionConfig** | [**CallRequestAnsweringMachineDetectionConfig**](CallRequestAnsweringMachineDetectionConfig.md) | | [optional] -**customHeaders** | [**List<CustomSipHeader>**](CustomSipHeader.md) | Custom headers to be added to the SIP INVITE. | [optional] -**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] -**targetLegClientState** | **String** | Use this field to add state to every subsequent webhook for the new leg. It must be a valid Base-64 encoded string. | [optional] -**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] -**sipAuthUsername** | **String** | SIP Authentication username used for SIP challenges. | [optional] -**sipAuthPassword** | **String** | SIP Authentication password used for SIP challenges. | [optional] -**sipHeaders** | [**List<SipHeader>**](SipHeader.md) | SIP headers to be added to the SIP INVITE. Currently only User-to-User header is supported. | [optional] -**webhookUrl** | **String** | Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call. | [optional] -**webhookUrlMethod** | [**WebhookUrlMethodEnum**](#WebhookUrlMethodEnum) | HTTP request type used for `webhook_url`. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**to** | **String** | The DID or SIP URI to dial out and bridge to the given call. | | +|**from** | **String** | The `from` number to be used as the caller id presented to the destination (`to` number). The number should be in +E164 format. This attribute will default to the `from` number of the original call if omitted. | [optional] | +|**fromDisplayName** | **String** | The `from_display_name` string to be used as the caller id name (SIP From Display Name) presented to the destination (`to` number). The string should have a maximum of 128 characters, containing only letters, numbers, spaces, and -_~!.+ special characters. If ommited, the display name will be the same as the number in the `from` field. | [optional] | +|**audioUrl** | **String** | The URL of a file to be played back when the transfer destination answers before bridging the call. The URL can point to either a WAV or MP3 file. media_name and audio_url cannot be used together in one request. | [optional] | +|**mediaName** | **String** | The media_name of a file to be played back when the transfer destination answers before bridging the call. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. The file must either be a WAV or MP3 file. | [optional] | +|**timeoutSecs** | **Integer** | The number of seconds that Telnyx will wait for the call to be answered by the destination to which it is being transferred. If the timeout is reached before an answer is received, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `timeout` will be sent. Minimum value is 5 seconds. Maximum value is 120 seconds. | [optional] | +|**timeLimitSecs** | **Integer** | Sets the maximum duration of a Call Control Leg in seconds. If the time limit is reached, the call will hangup and a `call.hangup` webhook with a `hangup_cause` of `time_limit` will be sent. For example, by setting a time limit of 120 seconds, a Call Leg will be automatically terminated two minutes after being answered. The default time limit is 14400 seconds or 4 hours and this is also the maximum allowed call length. | [optional] | +|**answeringMachineDetection** | [**AnsweringMachineDetectionEnum**](#AnsweringMachineDetectionEnum) | Enables Answering Machine Detection. When a call is answered, Telnyx runs real-time detection to determine if it was picked up by a human or a machine and sends an `call.machine.detection.ended` webhook with the analysis result. If 'greeting_end' or 'detect_words' is used and a 'machine' is detected, you will receive another 'call.machine.greeting.ended' webhook when the answering machine greeting ends with a beep or silence. If `detect_beep` is used, you will only receive 'call.machine.greeting.ended' if a beep is detected. | [optional] | +|**answeringMachineDetectionConfig** | [**CallRequestAnsweringMachineDetectionConfig**](CallRequestAnsweringMachineDetectionConfig.md) | | [optional] | +|**customHeaders** | [**List<CustomSipHeader>**](CustomSipHeader.md) | Custom headers to be added to the SIP INVITE. | [optional] | +|**clientState** | **String** | Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. | [optional] | +|**targetLegClientState** | **String** | Use this field to add state to every subsequent webhook for the new leg. It must be a valid Base-64 encoded string. | [optional] | +|**commandId** | **String** | Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. | [optional] | +|**sipAuthUsername** | **String** | SIP Authentication username used for SIP challenges. | [optional] | +|**sipAuthPassword** | **String** | SIP Authentication password used for SIP challenges. | [optional] | +|**sipHeaders** | [**List<SipHeader>**](SipHeader.md) | SIP headers to be added to the SIP INVITE. Currently only User-to-User header is supported. | [optional] | +|**soundModifications** | [**SoundModifications**](SoundModifications.md) | | [optional] | +|**webhookUrl** | **String** | Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call. | [optional] | +|**webhookUrlMethod** | [**WebhookUrlMethodEnum**](#WebhookUrlMethodEnum) | HTTP request type used for `webhook_url`. | [optional] | ## Enum: AnsweringMachineDetectionEnum -Name | Value ----- | ----- -DETECT | "detect" -DETECT_BEEP | "detect_beep" -DETECT_WORDS | "detect_words" -GREETING_END | "greeting_end" -DISABLED | "disabled" +| Name | Value | +|---- | -----| +| DETECT | "detect" | +| DETECT_BEEP | "detect_beep" | +| DETECT_WORDS | "detect_words" | +| GREETING_END | "greeting_end" | +| DISABLED | "disabled" | ## Enum: WebhookUrlMethodEnum -Name | Value ----- | ----- -POST | "POST" -GET | "GET" +| Name | Value | +|---- | -----| +| POST | "POST" | +| GET | "GET" | diff --git a/docs/UnauthorizedError.md b/docs/UnauthorizedError.md index 3ef7a113..153697ad 100644 --- a/docs/UnauthorizedError.md +++ b/docs/UnauthorizedError.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**source** | [**ErrorSource**](ErrorSource.md) | | [optional] -**meta** | [**UnauthorizedErrorAllOfMeta**](UnauthorizedErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**source** | [**UpdateOutboundChannelsDefaultResponseErrorsInnerSource**](UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md) | | [optional] | +|**meta** | [**UnauthorizedErrorAllOfMeta**](UnauthorizedErrorAllOfMeta.md) | | [optional] | diff --git a/docs/UnauthorizedErrorAllOf.md b/docs/UnauthorizedErrorAllOf.md index 77936ffb..542756f5 100644 --- a/docs/UnauthorizedErrorAllOf.md +++ b/docs/UnauthorizedErrorAllOf.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**meta** | [**UnauthorizedErrorAllOfMeta**](UnauthorizedErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**meta** | [**UnauthorizedErrorAllOfMeta**](UnauthorizedErrorAllOfMeta.md) | | [optional] | diff --git a/docs/UnauthorizedErrorAllOfMeta.md b/docs/UnauthorizedErrorAllOfMeta.md index 0d8fb847..3a390559 100644 --- a/docs/UnauthorizedErrorAllOfMeta.md +++ b/docs/UnauthorizedErrorAllOfMeta.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | | [optional] | diff --git a/docs/UnexpectedError.md b/docs/UnexpectedError.md index 7bdc2706..5a706ac5 100644 --- a/docs/UnexpectedError.md +++ b/docs/UnexpectedError.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**source** | [**ErrorSource**](ErrorSource.md) | | [optional] -**meta** | [**UnexpectedErrorAllOfMeta**](UnexpectedErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**source** | [**UpdateOutboundChannelsDefaultResponseErrorsInnerSource**](UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md) | | [optional] | +|**meta** | [**UnexpectedErrorAllOfMeta**](UnexpectedErrorAllOfMeta.md) | | [optional] | diff --git a/docs/UnexpectedErrorAllOf.md b/docs/UnexpectedErrorAllOf.md index ea1783f5..4bbeb6b9 100644 --- a/docs/UnexpectedErrorAllOf.md +++ b/docs/UnexpectedErrorAllOf.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**meta** | [**UnexpectedErrorAllOfMeta**](UnexpectedErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**meta** | [**UnexpectedErrorAllOfMeta**](UnexpectedErrorAllOfMeta.md) | | [optional] | diff --git a/docs/UnexpectedErrorAllOfMeta.md b/docs/UnexpectedErrorAllOfMeta.md index 3695f03c..623f8e61 100644 --- a/docs/UnexpectedErrorAllOfMeta.md +++ b/docs/UnexpectedErrorAllOfMeta.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | | [optional] | diff --git a/docs/UnprocessableEntityError.md b/docs/UnprocessableEntityError.md index 3d9ea619..18eba0c0 100644 --- a/docs/UnprocessableEntityError.md +++ b/docs/UnprocessableEntityError.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**source** | [**UnprocessableEntityErrorAllOfSource**](UnprocessableEntityErrorAllOfSource.md) | | [optional] -**meta** | [**UnprocessableEntityErrorAllOfMeta**](UnprocessableEntityErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**source** | [**UnprocessableEntityErrorAllOfSource**](UnprocessableEntityErrorAllOfSource.md) | | [optional] | +|**meta** | [**UnprocessableEntityErrorAllOfMeta**](UnprocessableEntityErrorAllOfMeta.md) | | [optional] | diff --git a/docs/UnprocessableEntityErrorAllOf.md b/docs/UnprocessableEntityErrorAllOf.md index 17b061a8..8823a80a 100644 --- a/docs/UnprocessableEntityErrorAllOf.md +++ b/docs/UnprocessableEntityErrorAllOf.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **Object** | | [optional] -**title** | **Object** | | [optional] -**detail** | **Object** | | [optional] -**source** | [**UnprocessableEntityErrorAllOfSource**](UnprocessableEntityErrorAllOfSource.md) | | [optional] -**meta** | [**UnprocessableEntityErrorAllOfMeta**](UnprocessableEntityErrorAllOfMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Object** | | [optional] | +|**title** | **Object** | | [optional] | +|**detail** | **Object** | | [optional] | +|**source** | [**UnprocessableEntityErrorAllOfSource**](UnprocessableEntityErrorAllOfSource.md) | | [optional] | +|**meta** | [**UnprocessableEntityErrorAllOfMeta**](UnprocessableEntityErrorAllOfMeta.md) | | [optional] | diff --git a/docs/UnprocessableEntityErrorAllOfMeta.md b/docs/UnprocessableEntityErrorAllOfMeta.md index 1c8924c5..42779b41 100644 --- a/docs/UnprocessableEntityErrorAllOfMeta.md +++ b/docs/UnprocessableEntityErrorAllOfMeta.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | | [optional] | diff --git a/docs/UnprocessableEntityErrorAllOfSource.md b/docs/UnprocessableEntityErrorAllOfSource.md index d40253aa..3ec66c10 100644 --- a/docs/UnprocessableEntityErrorAllOfSource.md +++ b/docs/UnprocessableEntityErrorAllOfSource.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**pointer** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pointer** | **String** | | [optional] | diff --git a/docs/UpdateAuthenticationProviderRequest.md b/docs/UpdateAuthenticationProviderRequest.md index 0ec6092a..e0a5a209 100644 --- a/docs/UpdateAuthenticationProviderRequest.md +++ b/docs/UpdateAuthenticationProviderRequest.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | The name associated with the authentication provider. | [optional] -**shortName** | **String** | The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | [optional] -**active** | **Boolean** | The active status of the authentication provider | [optional] -**settings** | [**Settings**](Settings.md) | | [optional] -**settingsUrl** | **String** | The URL for the identity provider metadata file to populate the settings automatically. If the settings attribute is provided, that will be used instead. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The name associated with the authentication provider. | [optional] | +|**shortName** | **String** | The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL. | [optional] | +|**active** | **Boolean** | The active status of the authentication provider | [optional] | +|**settings** | [**Settings**](Settings.md) | | [optional] | +|**settingsUrl** | **String** | The URL for the identity provider metadata file to populate the settings automatically. If the settings attribute is provided, that will be used instead. | [optional] | diff --git a/docs/UpdateBillingGroup.md b/docs/UpdateBillingGroup.md index 760402a0..73a59b7a 100644 --- a/docs/UpdateBillingGroup.md +++ b/docs/UpdateBillingGroup.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A name for the billing group | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A name for the billing group | [optional] | diff --git a/docs/UpdateCallControlApplicationRequest.md b/docs/UpdateCallControlApplicationRequest.md index feef9ce2..d3bd6361 100644 --- a/docs/UpdateCallControlApplicationRequest.md +++ b/docs/UpdateCallControlApplicationRequest.md @@ -5,50 +5,50 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**applicationName** | **String** | A user-assigned name to help manage the application. | -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | [**AnchorsiteOverrideEnum**](#AnchorsiteOverrideEnum) | <code>Latency</code> directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. | [optional] -**dtmfType** | [**DtmfTypeEnum**](#DtmfTypeEnum) | Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. | [optional] -**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] -**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] -**inbound** | [**CallControlApplicationInbound**](CallControlApplicationInbound.md) | | [optional] -**outbound** | [**CallControlApplicationOutbound**](CallControlApplicationOutbound.md) | | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**applicationName** | **String** | A user-assigned name to help manage the application. | | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | [**AnchorsiteOverrideEnum**](#AnchorsiteOverrideEnum) | <code>Latency</code> directs Telnyx to route media through the site with the lowest round-trip time to the user's connection. Telnyx calculates this time using ICMP ping messages. This can be disabled by specifying a site to handle all media. | [optional] | +|**dtmfType** | [**DtmfTypeEnum**](#DtmfTypeEnum) | Sets the type of DTMF digits sent from Telnyx to this Connection. Note that DTMF digits sent to Telnyx will be accepted in all formats. | [optional] | +|**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] | +|**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] | +|**inbound** | [**CallControlApplicationInbound**](CallControlApplicationInbound.md) | | [optional] | +|**outbound** | [**CallControlApplicationOutbound**](CallControlApplicationOutbound.md) | | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | ## Enum: AnchorsiteOverrideEnum -Name | Value ----- | ----- -LATENCY_ | "\"Latency\"" -CHICAGO_IL_ | "\"Chicago, IL\"" -ASHBURN_VA_ | "\"Ashburn, VA\"" -SAN_JOSE_CA_ | "\"San Jose, CA\"" +| Name | Value | +|---- | -----| +| LATENCY_ | "\"Latency\"" | +| CHICAGO_IL_ | "\"Chicago, IL\"" | +| ASHBURN_VA_ | "\"Ashburn, VA\"" | +| SAN_JOSE_CA_ | "\"San Jose, CA\"" | ## Enum: DtmfTypeEnum -Name | Value ----- | ----- -RFC_2833 | "RFC 2833" -INBAND | "Inband" -SIP_INFO | "SIP INFO" +| Name | Value | +|---- | -----| +| RFC_2833 | "RFC 2833" | +| INBAND | "Inband" | +| SIP_INFO | "SIP INFO" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/UpdateCallRequest.md b/docs/UpdateCallRequest.md new file mode 100644 index 00000000..fe977dda --- /dev/null +++ b/docs/UpdateCallRequest.md @@ -0,0 +1,47 @@ + + +# UpdateCallRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**status** | **String** | The value to set the call status to. Setting the status to completed ends the call. | [optional] | +|**url** | **String** | The URL where TeXML will make a request to retrieve a new set of TeXML instructions to continue the call flow. | [optional] | +|**method** | [**MethodEnum**](#MethodEnum) | HTTP request type used for `Url`. | [optional] | +|**fallbackUrl** | **String** | A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not responding. | [optional] | +|**fallbackMethod** | [**FallbackMethodEnum**](#FallbackMethodEnum) | HTTP request type used for `FallbackUrl`. | [optional] | +|**statusCallback** | **String** | URL destination for Telnyx to send status callback events to for the call. | [optional] | +|**statusCallbackMethod** | [**StatusCallbackMethodEnum**](#StatusCallbackMethodEnum) | HTTP request type used for `StatusCallback`. | [optional] | +|**texml** | **String** | TeXml to replace the current one with. | [optional] | + + + +## Enum: MethodEnum + +| Name | Value | +|---- | -----| +| GET | "GET" | +| POST | "POST" | + + + +## Enum: FallbackMethodEnum + +| Name | Value | +|---- | -----| +| GET | "GET" | +| POST | "POST" | + + + +## Enum: StatusCallbackMethodEnum + +| Name | Value | +|---- | -----| +| GET | "GET" | +| POST | "POST" | + + + diff --git a/docs/UpdateCommandResult.md b/docs/UpdateCommandResult.md new file mode 100644 index 00000000..e39de4d7 --- /dev/null +++ b/docs/UpdateCommandResult.md @@ -0,0 +1,14 @@ + + +# UpdateCommandResult + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**sid** | **String** | | [optional] | +|**status** | **String** | | [optional] | + + + diff --git a/docs/UpdateConferenceRequest.md b/docs/UpdateConferenceRequest.md index f4f1c4b1..d253d69b 100644 --- a/docs/UpdateConferenceRequest.md +++ b/docs/UpdateConferenceRequest.md @@ -5,23 +5,23 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callControlId** | **String** | Unique identifier and token for controlling the call | -**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] -**supervisorRole** | [**SupervisorRoleEnum**](#SupervisorRoleEnum) | Sets the participant as a supervisor for the conference. A conference can have multiple supervisors. \"barge\" means the supervisor enters the conference as a normal participant. This is the same as \"none\". \"monitor\" means the supervisor is muted but can hear all participants. \"whisper\" means that only the specified \"whisper_call_control_ids\" can hear the supervisor. Defaults to \"none\". | -**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the supervisor can whisper to. If none provided, the supervisor will join the conference as a monitoring participant only. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callControlId** | **String** | Unique identifier and token for controlling the call | | +|**commandId** | **String** | Use this field to avoid execution of duplicate commands. Telnyx will ignore subsequent commands with the same `command_id` as one that has already been executed. | [optional] | +|**supervisorRole** | [**SupervisorRoleEnum**](#SupervisorRoleEnum) | Sets the participant as a supervisor for the conference. A conference can have multiple supervisors. \"barge\" means the supervisor enters the conference as a normal participant. This is the same as \"none\". \"monitor\" means the supervisor is muted but can hear all participants. \"whisper\" means that only the specified \"whisper_call_control_ids\" can hear the supervisor. Defaults to \"none\". | | +|**whisperCallControlIds** | **List<String>** | Array of unique call_control_ids the supervisor can whisper to. If none provided, the supervisor will join the conference as a monitoring participant only. | [optional] | ## Enum: SupervisorRoleEnum -Name | Value ----- | ----- -BARGE | "barge" -MONITOR | "monitor" -NONE | "none" -WHISPER | "whisper" +| Name | Value | +|---- | -----| +| BARGE | "barge" | +| MONITOR | "monitor" | +| NONE | "none" | +| WHISPER | "whisper" | diff --git a/docs/UpdateCredentialConnectionRequest.md b/docs/UpdateCredentialConnectionRequest.md index 188baf30..80d5f67d 100644 --- a/docs/UpdateCredentialConnectionRequest.md +++ b/docs/UpdateCredentialConnectionRequest.md @@ -5,45 +5,45 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Defaults to true | [optional] -**userName** | **String** | The user name to be used as part of the credentials. Must be 4-32 characters long and alphanumeric values only (no spaces or special characters). | [optional] -**password** | **String** | The password to be used as part of the credentials. Must be 8 to 128 characters long. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | [optional] -**sipUriCallingPreference** | [**SipUriCallingPreferenceEnum**](#SipUriCallingPreferenceEnum) | This feature enables inbound SIP URI calls to your Credential Auth Connection. If enabled for all (unrestricted) then anyone who calls the SIP URI <your-username>@telnyx.com will be connected to your Connection. You can also choose to allow only calls that are originated on any Connections under your account (internal). | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**inbound** | [**CredentialInbound**](CredentialInbound.md) | | [optional] -**outbound** | [**CredentialOutbound**](CredentialOutbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Defaults to true | [optional] | +|**userName** | **String** | The user name to be used as part of the credentials. Must be 4-32 characters long and alphanumeric values only (no spaces or special characters). | [optional] | +|**password** | **String** | The password to be used as part of the credentials. Must be 8 to 128 characters long. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | [optional] | +|**sipUriCallingPreference** | [**SipUriCallingPreferenceEnum**](#SipUriCallingPreferenceEnum) | This feature enables inbound SIP URI calls to your Credential Auth Connection. If enabled for all (unrestricted) then anyone who calls the SIP URI <your-username>@telnyx.com will be connected to your Connection. You can also choose to allow only calls that are originated on any Connections under your account (internal). | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**inbound** | [**CredentialInbound**](CredentialInbound.md) | | [optional] | +|**outbound** | [**CredentialOutbound**](CredentialOutbound.md) | | [optional] | ## Enum: SipUriCallingPreferenceEnum -Name | Value ----- | ----- -DISABLED | "disabled" -UNRESTRICTED | "unrestricted" -INTERNAL | "internal" +| Name | Value | +|---- | -----| +| DISABLED | "disabled" | +| UNRESTRICTED | "unrestricted" | +| INTERNAL | "internal" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/UpdateFaxApplicationRequest.md b/docs/UpdateFaxApplicationRequest.md index e1001dad..32eacead 100644 --- a/docs/UpdateFaxApplicationRequest.md +++ b/docs/UpdateFaxApplicationRequest.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**applicationName** | **String** | A user-assigned name to help manage the application. | -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**faxEmailRecipient** | **String** | Specifies an email address where faxes sent to this application will be forwarded to (as pdf or tiff attachments) | [optional] -**inbound** | [**CreateFaxApplicationRequestInbound**](CreateFaxApplicationRequestInbound.md) | | [optional] -**outbound** | [**CreateFaxApplicationRequestOutbound**](CreateFaxApplicationRequestOutbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**applicationName** | **String** | A user-assigned name to help manage the application. | | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**faxEmailRecipient** | **String** | Specifies an email address where faxes sent to this application will be forwarded to (as pdf or tiff attachments) | [optional] | +|**inbound** | [**CreateFaxApplicationRequestInbound**](CreateFaxApplicationRequestInbound.md) | | [optional] | +|**outbound** | [**CreateFaxApplicationRequestOutbound**](CreateFaxApplicationRequestOutbound.md) | | [optional] | diff --git a/docs/UpdateFqdnConnectionRequest.md b/docs/UpdateFqdnConnectionRequest.md index 09e681eb..19889d74 100644 --- a/docs/UpdateFqdnConnectionRequest.md +++ b/docs/UpdateFqdnConnectionRequest.md @@ -5,32 +5,32 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Defaults to true | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | [optional] -**transportProtocol** | **FqdnConnectionTransportProtocol** | | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer that the sender and receiver negotiate T38 directly when both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call according to each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**inbound** | [**InboundFqdn**](InboundFqdn.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Defaults to true | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | [optional] | +|**transportProtocol** | **FqdnConnectionTransportProtocol** | | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer that the sender and receiver negotiate T38 directly when both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call according to each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**inbound** | [**InboundFqdn**](InboundFqdn.md) | | [optional] | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/UpdateFqdnRequest.md b/docs/UpdateFqdnRequest.md index a5286ad7..e3735670 100644 --- a/docs/UpdateFqdnRequest.md +++ b/docs/UpdateFqdnRequest.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | ID of the FQDN connection to which this IP should be attached. | [optional] -**fqdn** | **String** | FQDN represented by this resource. | [optional] -**port** | **Integer** | Port to use when connecting to this FQDN. | [optional] -**dnsRecordType** | **String** | The DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | ID of the FQDN connection to which this IP should be attached. | [optional] | +|**fqdn** | **String** | FQDN represented by this resource. | [optional] | +|**port** | **Integer** | Port to use when connecting to this FQDN. | [optional] | +|**dnsRecordType** | **String** | The DNS record type for the FQDN. For cases where a port is not set, the DNS record type must be 'srv'. For cases where a port is set, the DNS record type must be 'a'. If the DNS record type is 'a' and a port is not specified, 5060 will be used. | [optional] | diff --git a/docs/UpdateIpConnectionRequest.md b/docs/UpdateIpConnectionRequest.md index 9a72f0a6..4a039919 100644 --- a/docs/UpdateIpConnectionRequest.md +++ b/docs/UpdateIpConnectionRequest.md @@ -5,43 +5,43 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**active** | **Boolean** | Defaults to true | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**connectionName** | **String** | | [optional] -**transportProtocol** | [**TransportProtocolEnum**](#TransportProtocolEnum) | One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication. | [optional] -**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] -**dtmfType** | **DtmfType** | | [optional] -**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] -**encryptedMedia** | **EncryptedMedia** | | [optional] -**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] -**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] -**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] -**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] -**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] -**inbound** | [**InboundIp**](InboundIp.md) | | [optional] -**outbound** | [**OutboundIp**](OutboundIp.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Defaults to true | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**connectionName** | **String** | | [optional] | +|**transportProtocol** | [**TransportProtocolEnum**](#TransportProtocolEnum) | One of UDP, TLS, or TCP. Applies only to connections with IP authentication or FQDN authentication. | [optional] | +|**defaultOnHoldComfortNoiseEnabled** | **Boolean** | When enabled, Telnyx will generate comfort noise when you place the call on hold. If disabled, you will need to generate comfort noise or on hold music to avoid RTP timeout. | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**encodeContactHeaderEnabled** | **Boolean** | Encode the SIP contact header sent by Telnyx to avoid issues for NAT or ALG scenarios. | [optional] | +|**encryptedMedia** | **EncryptedMedia** | | [optional] | +|**onnetT38PassthroughEnabled** | **Boolean** | Enable on-net T38 if you prefer the sender and receiver negotiating T38 directly if both are on the Telnyx network. If this is disabled, Telnyx will be able to use T38 on just one leg of the call depending on each leg's settings. | [optional] | +|**webhookEventUrl** | **String** | The URL where webhooks related to this connection will be sent. Must include a scheme, such as 'https'. | [optional] | +|**webhookEventFailoverUrl** | **String** | The failover URL where webhooks related to this connection will be sent if sending to the primary URL fails. Must include a scheme, such as 'https'. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1 or v2. | [optional] | +|**webhookTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a webhook. | [optional] | +|**rtcpSettings** | [**ConnectionRtcpSettings**](ConnectionRtcpSettings.md) | | [optional] | +|**inbound** | [**InboundIp**](InboundIp.md) | | [optional] | +|**outbound** | [**OutboundIp**](OutboundIp.md) | | [optional] | ## Enum: TransportProtocolEnum -Name | Value ----- | ----- -UDP | "UDP" -TCP | "TCP" -TLS | "TLS" +| Name | Value | +|---- | -----| +| UDP | "UDP" | +| TCP | "TCP" | +| TLS | "TLS" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | diff --git a/docs/UpdateIpRequest.md b/docs/UpdateIpRequest.md index d9d3e9ee..0fe121ff 100644 --- a/docs/UpdateIpRequest.md +++ b/docs/UpdateIpRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**connectionId** | **String** | ID of the IP Connection to which this IP should be attached. | [optional] -**ipAddress** | **String** | IP adddress represented by this resource. | -**port** | **Integer** | Port to use when connecting to this IP. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**connectionId** | **String** | ID of the IP Connection to which this IP should be attached. | [optional] | +|**ipAddress** | **String** | IP adddress represented by this resource. | | +|**port** | **Integer** | Port to use when connecting to this IP. | [optional] | diff --git a/docs/UpdateManagedAccountRequest.md b/docs/UpdateManagedAccountRequest.md index 4722a244..8aa216c1 100644 --- a/docs/UpdateManagedAccountRequest.md +++ b/docs/UpdateManagedAccountRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**managedAccountAllowCustomPricing** | **Boolean** | Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. This value may be changed, but there may be time lag between when the value is changed and pricing changes take effect. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**managedAccountAllowCustomPricing** | **Boolean** | Boolean value that indicates if the managed account is able to have custom pricing set for it or not. If false, uses the pricing of the manager account. Defaults to false. This value may be changed, but there may be time lag between when the value is changed and pricing changes take effect. | [optional] | diff --git a/docs/UpdateMediaRequest.md b/docs/UpdateMediaRequest.md index 8dfbadae..b86c00c3 100644 --- a/docs/UpdateMediaRequest.md +++ b/docs/UpdateMediaRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mediaUrl** | **String** | The URL where the media to be stored in Telnyx network is currently hosted. The maximum allowed size is 20 MB. | [optional] -**ttlSecs** | **Integer** | The number of seconds after which the media resource will be deleted, defaults to 2 days. The maximum allowed vale is 630720000, which translates to 20 years. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mediaUrl** | **String** | The URL where the media to be stored in Telnyx network is currently hosted. The maximum allowed size is 20 MB. | [optional] | +|**ttlSecs** | **Integer** | The number of seconds after which the media resource will be deleted, defaults to 2 days. The maximum allowed vale is 630720000, which translates to 20 years. | [optional] | diff --git a/docs/UpdateMessagingProfileRequest.md b/docs/UpdateMessagingProfileRequest.md index 4ea5a0d9..ad90c150 100644 --- a/docs/UpdateMessagingProfileRequest.md +++ b/docs/UpdateMessagingProfileRequest.md @@ -5,39 +5,39 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] -**name** | **String** | A user friendly name for the messaging profile. | [optional] -**enabled** | **Boolean** | Specifies whether the messaging profile is enabled or not. | [optional] -**webhookUrl** | **String** | The URL where webhooks related to this messaging profile will be sent. | [optional] -**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this messaging profile will be sent if sending to the primary URL fails. | [optional] -**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 2010-04-01 format. | [optional] -**whitelistedDestinations** | **List<String>** | Destinations to which the messaging profile is allowed to send. If set to `null`, all destinations will be allowed. Setting a value of `[\"*\"]` has the equivalent effect. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. | [optional] -**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] -**v1Secret** | **String** | Secret used to authenticate with v1 endpoints. | [optional] -**numberPoolSettings** | [**NumberPoolSettings**](NumberPoolSettings.md) | | [optional] -**urlShortenerSettings** | [**UrlShortenerSettings**](UrlShortenerSettings.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**id** | **UUID** | Identifies the type of resource. | [optional] [readonly] | +|**name** | **String** | A user friendly name for the messaging profile. | [optional] | +|**enabled** | **Boolean** | Specifies whether the messaging profile is enabled or not. | [optional] | +|**webhookUrl** | **String** | The URL where webhooks related to this messaging profile will be sent. | [optional] | +|**webhookFailoverUrl** | **String** | The failover URL where webhooks related to this messaging profile will be sent if sending to the primary URL fails. | [optional] | +|**webhookApiVersion** | [**WebhookApiVersionEnum**](#WebhookApiVersionEnum) | Determines which webhook format will be used, Telnyx API v1, v2, or a legacy 2010-04-01 format. | [optional] | +|**whitelistedDestinations** | **List<String>** | Destinations to which the messaging profile is allowed to send. If set to `null`, all destinations will be allowed. Setting a value of `[\"*\"]` has the equivalent effect. The elements in the list must be valid ISO 3166-1 alpha-2 country codes. | [optional] | +|**createdAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **OffsetDateTime** | ISO 8601 formatted date indicating when the resource was updated. | [optional] [readonly] | +|**v1Secret** | **String** | Secret used to authenticate with v1 endpoints. | [optional] | +|**numberPoolSettings** | [**NumberPoolSettings**](NumberPoolSettings.md) | | [optional] | +|**urlShortenerSettings** | [**UrlShortenerSettings**](UrlShortenerSettings.md) | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -MESSAGING_PROFILE | "messaging_profile" +| Name | Value | +|---- | -----| +| MESSAGING_PROFILE | "messaging_profile" | ## Enum: WebhookApiVersionEnum -Name | Value ----- | ----- -_1 | "1" -_2 | "2" -_2010_04_01 | "2010-04-01" +| Name | Value | +|---- | -----| +| _1 | "1" | +| _2 | "2" | +| _2010_04_01 | "2010-04-01" | diff --git a/docs/UpdateNumberOrderDocumentRequest.md b/docs/UpdateNumberOrderDocumentRequest.md index 0f72c7a1..afd20e6d 100644 --- a/docs/UpdateNumberOrderDocumentRequest.md +++ b/docs/UpdateNumberOrderDocumentRequest.md @@ -5,25 +5,25 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**fileId** | **String** | The id of the file to associate as a number order document. | [optional] -**requirementsId** | **String** | Unique id for a requirement. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**requirementType** | [**RequirementTypeEnum**](#RequirementTypeEnum) | | [optional] [readonly] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order document was uploaded. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**fileId** | **String** | The id of the file to associate as a number order document. | [optional] | +|**requirementsId** | **String** | Unique id for a requirement. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**requirementType** | [**RequirementTypeEnum**](#RequirementTypeEnum) | | [optional] [readonly] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order document was uploaded. | [optional] [readonly] | ## Enum: RequirementTypeEnum -Name | Value ----- | ----- -ADDRESS_PROOF | "address_proof" -IDENTIFICATION | "identification" -REG_FORM | "reg_form" +| Name | Value | +|---- | -----| +| ADDRESS_PROOF | "address_proof" | +| IDENTIFICATION | "identification" | +| REG_FORM | "reg_form" | diff --git a/docs/UpdateNumberOrderPhoneNumberRequest.md b/docs/UpdateNumberOrderPhoneNumberRequest.md index 30e7ffd3..1aa9880d 100644 --- a/docs/UpdateNumberOrderPhoneNumberRequest.md +++ b/docs/UpdateNumberOrderPhoneNumberRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**regulatoryRequirements** | [**List<UpdateRegulatoryRequirement>**](UpdateRegulatoryRequirement.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**regulatoryRequirements** | [**List<UpdateRegulatoryRequirement>**](UpdateRegulatoryRequirement.md) | | [optional] | diff --git a/docs/UpdateNumberOrderRequest.md b/docs/UpdateNumberOrderRequest.md index 1f5078b6..aebd33a1 100644 --- a/docs/UpdateNumberOrderRequest.md +++ b/docs/UpdateNumberOrderRequest.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] -**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] -**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] -**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] -**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**phoneNumbers** | [**List<PhoneNumber>**](PhoneNumber.md) | | [optional] | +|**phoneNumbersCount** | **Integer** | The count of phone numbers in the number order. | [optional] [readonly] | +|**status** | [**StatusEnum**](#StatusEnum) | The status of the order. | [optional] [readonly] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**createdAt** | **String** | An ISO 8901 datetime string denoting when the number order was created. | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8901 datetime string for when the number order was updated. | [optional] [readonly] | +|**requirementsMet** | **Boolean** | True if all requirements are met for every phone number, false otherwise. | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -SUCCESS | "success" -FAILURE | "failure" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| SUCCESS | "success" | +| FAILURE | "failure" | diff --git a/docs/UpdateOutboundChannels200Response.md b/docs/UpdateOutboundChannels200Response.md new file mode 100644 index 00000000..a6ea1597 --- /dev/null +++ b/docs/UpdateOutboundChannels200Response.md @@ -0,0 +1,13 @@ + + +# UpdateOutboundChannels200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**UpdateOutboundChannels200ResponseData**](UpdateOutboundChannels200ResponseData.md) | | [optional] | + + + diff --git a/docs/UpdateOutboundChannels200ResponseData.md b/docs/UpdateOutboundChannels200ResponseData.md new file mode 100644 index 00000000..e3b6bbc8 --- /dev/null +++ b/docs/UpdateOutboundChannels200ResponseData.md @@ -0,0 +1,14 @@ + + +# UpdateOutboundChannels200ResponseData + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channels** | **Integer** | The number of channels set for the account | [optional] | +|**recordType** | **String** | Identifies the type of the response | [optional] | + + + diff --git a/docs/UpdateOutboundChannelsDefaultResponse.md b/docs/UpdateOutboundChannelsDefaultResponse.md new file mode 100644 index 00000000..78d700db --- /dev/null +++ b/docs/UpdateOutboundChannelsDefaultResponse.md @@ -0,0 +1,13 @@ + + +# UpdateOutboundChannelsDefaultResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**errors** | [**List<UpdateOutboundChannelsDefaultResponseErrorsInner>**](UpdateOutboundChannelsDefaultResponseErrorsInner.md) | | [optional] | + + + diff --git a/docs/UpdateOutboundChannelsDefaultResponseErrorsInner.md b/docs/UpdateOutboundChannelsDefaultResponseErrorsInner.md new file mode 100644 index 00000000..d86a7bdd --- /dev/null +++ b/docs/UpdateOutboundChannelsDefaultResponseErrorsInner.md @@ -0,0 +1,17 @@ + + +# UpdateOutboundChannelsDefaultResponseErrorsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **Integer** | | | +|**title** | **String** | | | +|**detail** | **String** | | [optional] | +|**source** | [**UpdateOutboundChannelsDefaultResponseErrorsInnerSource**](UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md) | | [optional] | +|**meta** | **Object** | | [optional] | + + + diff --git a/docs/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md b/docs/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md new file mode 100644 index 00000000..b48ce574 --- /dev/null +++ b/docs/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.md @@ -0,0 +1,14 @@ + + +# UpdateOutboundChannelsDefaultResponseErrorsInnerSource + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**pointer** | **String** | JSON pointer (RFC6901) to the offending entity. | [optional] | +|**parameter** | **String** | Indicates which query parameter caused the error. | [optional] | + + + diff --git a/docs/UpdateOutboundChannelsRequest.md b/docs/UpdateOutboundChannelsRequest.md new file mode 100644 index 00000000..5dfd042f --- /dev/null +++ b/docs/UpdateOutboundChannelsRequest.md @@ -0,0 +1,13 @@ + + +# UpdateOutboundChannelsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**channels** | **Integer** | The new number of concurrent channels for the account | | + + + diff --git a/docs/UpdateOutboundVoiceProfileRequest.md b/docs/UpdateOutboundVoiceProfileRequest.md index aac35610..10d5bc09 100644 --- a/docs/UpdateOutboundVoiceProfileRequest.md +++ b/docs/UpdateOutboundVoiceProfileRequest.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | A user-supplied name to help with organization. | -**trafficType** | **TrafficType** | | [optional] -**servicePlan** | **ServicePlan** | | [optional] -**concurrentCallLimit** | **Integer** | Must be no more than your global concurrent call limit. Null means no limit. | [optional] -**enabled** | **Boolean** | Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections. | [optional] -**tags** | **List<String>** | | [optional] -**usagePaymentMethod** | **UsagePaymentMethod** | | [optional] -**whitelistedDestinations** | **List<String>** | The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2. | [optional] -**maxDestinationRate** | **BigDecimal** | Maximum rate (price per minute) for a Destination to be allowed when making outbound calls. | [optional] -**dailySpendLimit** | **String** | The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice profile in a day before disallowing new calls. | [optional] -**dailySpendLimitEnabled** | **Boolean** | Specifies whether to enforce the daily_spend_limit on this outbound voice profile. | [optional] -**callRecording** | [**OutboundCallRecording**](OutboundCallRecording.md) | | [optional] -**billingGroupId** | **UUID** | The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned). | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | A user-supplied name to help with organization. | | +|**trafficType** | **TrafficType** | | [optional] | +|**servicePlan** | **ServicePlan** | | [optional] | +|**concurrentCallLimit** | **Integer** | Must be no more than your global concurrent call limit. Null means no limit. | [optional] | +|**enabled** | **Boolean** | Specifies whether the outbound voice profile can be used. Disabled profiles will result in outbound calls being blocked for the associated Connections. | [optional] | +|**tags** | **List<String>** | | [optional] | +|**usagePaymentMethod** | **UsagePaymentMethod** | | [optional] | +|**whitelistedDestinations** | **List<String>** | The list of destinations you want to be able to call using this outbound voice profile formatted in alpha2. | [optional] | +|**maxDestinationRate** | **BigDecimal** | Maximum rate (price per minute) for a Destination to be allowed when making outbound calls. | [optional] | +|**dailySpendLimit** | **String** | The maximum amount of usage charges, in USD, you want Telnyx to allow on this outbound voice profile in a day before disallowing new calls. | [optional] | +|**dailySpendLimitEnabled** | **Boolean** | Specifies whether to enforce the daily_spend_limit on this outbound voice profile. | [optional] | +|**callRecording** | [**OutboundCallRecording**](OutboundCallRecording.md) | | [optional] | +|**billingGroupId** | **UUID** | The ID of the billing group associated with the outbound proflile. Defaults to null (for no group assigned). | [optional] | diff --git a/docs/UpdatePhoneNumberMessagingSettingsRequest.md b/docs/UpdatePhoneNumberMessagingSettingsRequest.md index 147fef2a..a80b3288 100644 --- a/docs/UpdatePhoneNumberMessagingSettingsRequest.md +++ b/docs/UpdatePhoneNumberMessagingSettingsRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] -**messagingProduct** | **String** | The requested messaging product the number should be on | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. | [optional] | +|**messagingProduct** | **String** | The requested messaging product the number should be on | [optional] | diff --git a/docs/UpdatePhoneNumberRequest.md b/docs/UpdatePhoneNumberRequest.md index 030bfe74..410e8fca 100644 --- a/docs/UpdatePhoneNumberRequest.md +++ b/docs/UpdatePhoneNumberRequest.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | Identifies the type of resource. | [optional] [readonly] -**tags** | **List<String>** | A list of user-assigned tags to help organize phone numbers. | [optional] -**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, we will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] -**customerReference** | **String** | A customer reference string for customer look ups. | [optional] -**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] -**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] -**numberLevelRouting** | [**NumberLevelRoutingEnum**](#NumberLevelRoutingEnum) | Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | Identifies the type of resource. | [optional] [readonly] | +|**tags** | **List<String>** | A list of user-assigned tags to help organize phone numbers. | [optional] | +|**externalPin** | **String** | If someone attempts to port your phone number away from Telnyx and your phone number has an external PIN set, we will attempt to verify that you provided the correct external PIN to the winning carrier. Note that not all carriers cooperate with this security mechanism. | [optional] | +|**customerReference** | **String** | A customer reference string for customer look ups. | [optional] | +|**connectionId** | **String** | Identifies the connection associated with the phone number. | [optional] | +|**billingGroupId** | **String** | Identifies the billing group associated with the phone number. | [optional] | +|**numberLevelRouting** | [**NumberLevelRoutingEnum**](#NumberLevelRoutingEnum) | Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. | [optional] | ## Enum: NumberLevelRoutingEnum -Name | Value ----- | ----- -ENABLED | "enabled" -DISABLED | "disabled" +| Name | Value | +|---- | -----| +| ENABLED | "enabled" | +| DISABLED | "disabled" | diff --git a/docs/UpdatePhoneNumberVoiceSettingsRequest.md b/docs/UpdatePhoneNumberVoiceSettingsRequest.md index 8080b7e9..11021f1f 100644 --- a/docs/UpdatePhoneNumberVoiceSettingsRequest.md +++ b/docs/UpdatePhoneNumberVoiceSettingsRequest.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**techPrefixEnabled** | **Boolean** | Controls whether a tech prefix is enabled for this phone number. | [optional] -**translatedNumber** | **String** | This field allows you to rewrite the destination number of an inbound call before the call is routed to you. The value of this field may be any alphanumeric value, and the value will replace the number originally dialed. | [optional] -**callForwarding** | [**CallForwarding**](CallForwarding.md) | | [optional] -**cnamListing** | [**CnamListing**](CnamListing.md) | | [optional] -**usagePaymentMethod** | [**UsagePaymentMethodEnum**](#UsagePaymentMethodEnum) | Controls whether a number is billed per minute or uses your concurrent channels. | [optional] -**mediaFeatures** | [**MediaFeatures**](MediaFeatures.md) | | [optional] -**callRecording** | [**CallRecording**](CallRecording.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**techPrefixEnabled** | **Boolean** | Controls whether a tech prefix is enabled for this phone number. | [optional] | +|**translatedNumber** | **String** | This field allows you to rewrite the destination number of an inbound call before the call is routed to you. The value of this field may be any alphanumeric value, and the value will replace the number originally dialed. | [optional] | +|**callForwarding** | [**CallForwarding**](CallForwarding.md) | | [optional] | +|**cnamListing** | [**CnamListing**](CnamListing.md) | | [optional] | +|**usagePaymentMethod** | [**UsagePaymentMethodEnum**](#UsagePaymentMethodEnum) | Controls whether a number is billed per minute or uses your concurrent channels. | [optional] | +|**mediaFeatures** | [**MediaFeatures**](MediaFeatures.md) | | [optional] | +|**callRecording** | [**CallRecording**](CallRecording.md) | | [optional] | ## Enum: UsagePaymentMethodEnum -Name | Value ----- | ----- -PAY_PER_MINUTE | "pay-per-minute" -CHANNEL | "channel" +| Name | Value | +|---- | -----| +| PAY_PER_MINUTE | "pay-per-minute" | +| CHANNEL | "channel" | diff --git a/docs/UpdatePortingOrder.md b/docs/UpdatePortingOrder.md index a8237774..d8b83cc8 100644 --- a/docs/UpdatePortingOrder.md +++ b/docs/UpdatePortingOrder.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**misc** | [**PortingOrderMisc**](PortingOrderMisc.md) | | [optional] -**endUser** | [**PortingOrderEndUser**](PortingOrderEndUser.md) | | [optional] -**documents** | [**PortingOrderDocuments**](PortingOrderDocuments.md) | | [optional] -**activationSettings** | [**UpdatePortingOrderActivationSettings**](UpdatePortingOrderActivationSettings.md) | | [optional] -**phoneNumberConfiguration** | [**PortingOrderPhoneNumberConfiguration**](PortingOrderPhoneNumberConfiguration.md) | | [optional] -**requirements** | [**List<UpdatePortingOrderRequirement>**](UpdatePortingOrderRequirement.md) | List of requirements for porting numbers. | [optional] -**userFeedback** | [**PortingOrderUserFeedback**](PortingOrderUserFeedback.md) | | [optional] -**webhookUrl** | **URI** | | [optional] -**customerReference** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**misc** | [**PortingOrderMisc**](PortingOrderMisc.md) | | [optional] | +|**endUser** | [**PortingOrderEndUser**](PortingOrderEndUser.md) | | [optional] | +|**documents** | [**PortingOrderDocuments**](PortingOrderDocuments.md) | | [optional] | +|**activationSettings** | [**UpdatePortingOrderActivationSettings**](UpdatePortingOrderActivationSettings.md) | | [optional] | +|**phoneNumberConfiguration** | [**PortingOrderPhoneNumberConfiguration**](PortingOrderPhoneNumberConfiguration.md) | | [optional] | +|**requirements** | [**List<UpdatePortingOrderRequirement>**](UpdatePortingOrderRequirement.md) | List of requirements for porting numbers. | [optional] | +|**userFeedback** | [**PortingOrderUserFeedback**](PortingOrderUserFeedback.md) | | [optional] | +|**webhookUrl** | **URI** | | [optional] | +|**customerReference** | **String** | | [optional] | diff --git a/docs/UpdatePortingOrder200Response.md b/docs/UpdatePortingOrder200Response.md new file mode 100644 index 00000000..39833443 --- /dev/null +++ b/docs/UpdatePortingOrder200Response.md @@ -0,0 +1,14 @@ + + +# UpdatePortingOrder200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**PortingOrder**](PortingOrder.md) | | [optional] | +|**meta** | [**UpdatePortingOrder200ResponseMeta**](UpdatePortingOrder200ResponseMeta.md) | | [optional] | + + + diff --git a/docs/UpdatePortingOrder200ResponseMeta.md b/docs/UpdatePortingOrder200ResponseMeta.md new file mode 100644 index 00000000..b7c576d6 --- /dev/null +++ b/docs/UpdatePortingOrder200ResponseMeta.md @@ -0,0 +1,13 @@ + + +# UpdatePortingOrder200ResponseMeta + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbersUrl** | **String** | Link to list all phone numbers | [optional] | + + + diff --git a/docs/UpdatePortingOrderActivationSettings.md b/docs/UpdatePortingOrderActivationSettings.md index 752669d5..6222e68f 100644 --- a/docs/UpdatePortingOrderActivationSettings.md +++ b/docs/UpdatePortingOrderActivationSettings.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**focDatetimeRequested** | **OffsetDateTime** | ISO 8601 formatted Date/Time requested for the FOC date | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**focDatetimeRequested** | **OffsetDateTime** | ISO 8601 formatted Date/Time requested for the FOC date | [optional] | diff --git a/docs/UpdatePortingOrderRequirement.md b/docs/UpdatePortingOrderRequirement.md index 7fa09767..242b2973 100644 --- a/docs/UpdatePortingOrderRequirement.md +++ b/docs/UpdatePortingOrderRequirement.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**fieldValue** | **String** | identifies the document that satisfies this requirement | -**requirementTypeId** | **String** | Identifies the requirement type that meets this requirement | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**fieldValue** | **String** | identifies the document that satisfies this requirement | | +|**requirementTypeId** | **String** | Identifies the requirement type that meets this requirement | | diff --git a/docs/UpdatePortoutRequestRequest.md b/docs/UpdatePortoutRequestRequest.md new file mode 100644 index 00000000..f7ff6d93 --- /dev/null +++ b/docs/UpdatePortoutRequestRequest.md @@ -0,0 +1,13 @@ + + +# UpdatePortoutRequestRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**reason** | **String** | Provide a reason if rejecting the port out request | [optional] | + + + diff --git a/docs/UpdateRegulatoryRequirement.md b/docs/UpdateRegulatoryRequirement.md index 5ea0e512..a83caf84 100644 --- a/docs/UpdateRegulatoryRequirement.md +++ b/docs/UpdateRegulatoryRequirement.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**requirementId** | **UUID** | Unique id for a requirement. | [optional] -**fieldValue** | **String** | The value of the requirement, this could be an id to a resource or a string value. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**requirementId** | **UUID** | Unique id for a requirement. | [optional] | +|**fieldValue** | **String** | The value of the requirement, this could be an id to a resource or a string value. | [optional] | diff --git a/docs/UpdateShortCodeRequest.md b/docs/UpdateShortCodeRequest.md index 35bdb519..78dfa1b4 100644 --- a/docs/UpdateShortCodeRequest.md +++ b/docs/UpdateShortCodeRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messagingProfileId** | **String** | Unique identifier for a messaging profile. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messagingProfileId** | **String** | Unique identifier for a messaging profile. | | diff --git a/docs/UpdateSubNumberOrderRequest.md b/docs/UpdateSubNumberOrderRequest.md index e86f3b2b..669bcfda 100644 --- a/docs/UpdateSubNumberOrderRequest.md +++ b/docs/UpdateSubNumberOrderRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**regulatoryRequirements** | [**List<UpdateRegulatoryRequirement>**](UpdateRegulatoryRequirement.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**regulatoryRequirements** | [**List<UpdateRegulatoryRequirement>**](UpdateRegulatoryRequirement.md) | | [optional] | diff --git a/docs/UpdateTexmlApplicationRequest.md b/docs/UpdateTexmlApplicationRequest.md index 0f5b740e..065c110d 100644 --- a/docs/UpdateTexmlApplicationRequest.md +++ b/docs/UpdateTexmlApplicationRequest.md @@ -5,39 +5,39 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**friendlyName** | **String** | A user-assigned name to help manage the application. | -**active** | **Boolean** | Specifies whether the connection can be used. | [optional] -**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] -**dtmfType** | **DtmfType** | | [optional] -**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] -**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] -**voiceUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks. | -**voiceFallbackUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. | [optional] -**voiceMethod** | [**VoiceMethodEnum**](#VoiceMethodEnum) | HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. | [optional] -**statusCallback** | **String** | URL for Telnyx to send requests to containing information about call progress events. | [optional] -**statusCallbackMethod** | [**StatusCallbackMethodEnum**](#StatusCallbackMethodEnum) | HTTP request method Telnyx should use when requesting the status_callback URL. | [optional] -**inbound** | [**CreateTexmlApplicationRequestInbound**](CreateTexmlApplicationRequestInbound.md) | | [optional] -**outbound** | [**CreateTexmlApplicationRequestOutbound**](CreateTexmlApplicationRequestOutbound.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**friendlyName** | **String** | A user-assigned name to help manage the application. | | +|**active** | **Boolean** | Specifies whether the connection can be used. | [optional] | +|**anchorsiteOverride** | **AnchorsiteOverride** | | [optional] | +|**dtmfType** | **DtmfType** | | [optional] | +|**firstCommandTimeout** | **Boolean** | Specifies whether calls to phone numbers associated with this connection should hangup after timing out. | [optional] | +|**firstCommandTimeoutSecs** | **Integer** | Specifies how many seconds to wait before timing out a dial command. | [optional] | +|**voiceUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks. | | +|**voiceFallbackUrl** | **String** | URL to which Telnyx will deliver your XML Translator webhooks if we get an error response from your voice_url. | [optional] | +|**voiceMethod** | [**VoiceMethodEnum**](#VoiceMethodEnum) | HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. | [optional] | +|**statusCallback** | **String** | URL for Telnyx to send requests to containing information about call progress events. | [optional] | +|**statusCallbackMethod** | [**StatusCallbackMethodEnum**](#StatusCallbackMethodEnum) | HTTP request method Telnyx should use when requesting the status_callback URL. | [optional] | +|**inbound** | [**CreateTexmlApplicationRequestInbound**](CreateTexmlApplicationRequestInbound.md) | | [optional] | +|**outbound** | [**CreateTexmlApplicationRequestOutbound**](CreateTexmlApplicationRequestOutbound.md) | | [optional] | ## Enum: VoiceMethodEnum -Name | Value ----- | ----- -GET | "get" -POST | "post" +| Name | Value | +|---- | -----| +| GET | "get" | +| POST | "post" | ## Enum: StatusCallbackMethodEnum -Name | Value ----- | ----- -GET | "get" -POST | "post" +| Name | Value | +|---- | -----| +| GET | "get" | +| POST | "post" | diff --git a/docs/UpdateVerifiedCallsDisplayProfileRequest.md b/docs/UpdateVerifiedCallsDisplayProfileRequest.md index 97b01955..9ce67cd8 100644 --- a/docs/UpdateVerifiedCallsDisplayProfileRequest.md +++ b/docs/UpdateVerifiedCallsDisplayProfileRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**callReasons** | **CallReasons** | | [optional] -**phoneNumbers** | **PhoneNumbers** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**callReasons** | **CallReasons** | | [optional] | +|**phoneNumbers** | **PhoneNumbers** | | [optional] | diff --git a/docs/UpdateVerifyProfileCallRequest.md b/docs/UpdateVerifyProfileCallRequest.md index 8b668e2b..941ca7b7 100644 --- a/docs/UpdateVerifyProfileCallRequest.md +++ b/docs/UpdateVerifyProfileCallRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**speechTemplate** | **String** | Optionally sets a speech text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**defaultCallTimeoutSecs** | **Integer** | Must be less than default_verification_timeout_secs | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**speechTemplate** | **String** | Optionally sets a speech text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] | +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**defaultCallTimeoutSecs** | **Integer** | Must be less than default_verification_timeout_secs | [optional] | diff --git a/docs/UpdateVerifyProfileFlashcallRequest.md b/docs/UpdateVerifyProfileFlashcallRequest.md index d7062a98..37a4d7ee 100644 --- a/docs/UpdateVerifyProfileFlashcallRequest.md +++ b/docs/UpdateVerifyProfileFlashcallRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | diff --git a/docs/UpdateVerifyProfilePSD2Request.md b/docs/UpdateVerifyProfilePSD2Request.md index aaad4685..4604231a 100644 --- a/docs/UpdateVerifyProfilePSD2Request.md +++ b/docs/UpdateVerifyProfilePSD2Request.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | diff --git a/docs/UpdateVerifyProfileRequest.md b/docs/UpdateVerifyProfileRequest.md index 62a12384..6a2ad183 100644 --- a/docs/UpdateVerifyProfileRequest.md +++ b/docs/UpdateVerifyProfileRequest.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**webhookUrl** | **String** | | [optional] -**webhookFailoverUrl** | **String** | | [optional] -**sms** | **UpdateVerifyProfileSMSRequest** | | [optional] -**psd2** | **UpdateVerifyProfilePSD2Request** | | [optional] -**whatsapp** | **UpdateVerifyProfileWhatsappRequest** | | [optional] -**call** | **UpdateVerifyProfileCallRequest** | | [optional] -**flashcall** | **UpdateVerifyProfileFlashcallRequest** | | [optional] -**language** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | | [optional] | +|**webhookUrl** | **String** | | [optional] | +|**webhookFailoverUrl** | **String** | | [optional] | +|**sms** | **UpdateVerifyProfileSMSRequest** | | [optional] | +|**psd2** | **UpdateVerifyProfilePSD2Request** | | [optional] | +|**whatsapp** | **UpdateVerifyProfileWhatsappRequest** | | [optional] | +|**call** | **UpdateVerifyProfileCallRequest** | | [optional] | +|**flashcall** | **UpdateVerifyProfileFlashcallRequest** | | [optional] | +|**language** | **String** | | [optional] | diff --git a/docs/UpdateVerifyProfileSMSRequest.md b/docs/UpdateVerifyProfileSMSRequest.md index 1efa697a..2cb4bef3 100644 --- a/docs/UpdateVerifyProfileSMSRequest.md +++ b/docs/UpdateVerifyProfileSMSRequest.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messagingEnabled** | **Boolean** | Enables SMS text messaging for the Verify profile. | [optional] -**rcsEnabled** | **Boolean** | Enables RCS messaging for the Verify profile. | [optional] -**messagingTemplate** | **String** | Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**vsmsEnabled** | **Boolean** | Enables VSMS for the Verify profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messagingEnabled** | **Boolean** | Enables SMS text messaging for the Verify profile. | [optional] | +|**rcsEnabled** | **Boolean** | Enables RCS messaging for the Verify profile. | [optional] | +|**messagingTemplate** | **String** | Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] | +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**vsmsEnabled** | **Boolean** | Enables VSMS for the Verify profile. | [optional] | diff --git a/docs/UpdateVerifyProfileWhatsappRequest.md b/docs/UpdateVerifyProfileWhatsappRequest.md index 55a8b7f2..67d026bf 100644 --- a/docs/UpdateVerifyProfileWhatsappRequest.md +++ b/docs/UpdateVerifyProfileWhatsappRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**appName** | **String** | The name that identifies the application requesting 2fa in the verification message. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**appName** | **String** | The name that identifies the application requesting 2fa in the verification message. | [optional] | diff --git a/docs/UpdateWhatsappPhoneNumberAboutRequest.md b/docs/UpdateWhatsappPhoneNumberAboutRequest.md index 75a6597b..f1cf626e 100644 --- a/docs/UpdateWhatsappPhoneNumberAboutRequest.md +++ b/docs/UpdateWhatsappPhoneNumberAboutRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**about** | **String** | The desired text to set for your WhatsApp about section. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**about** | **String** | The desired text to set for your WhatsApp about section. | | diff --git a/docs/UpdateWhatsappPhoneNumberRequest.md b/docs/UpdateWhatsappPhoneNumberRequest.md index 64ebb875..792e6af6 100644 --- a/docs/UpdateWhatsappPhoneNumberRequest.md +++ b/docs/UpdateWhatsappPhoneNumberRequest.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**webhookUrl** | **String** | The desired URL to set for your WhatsApp webhook endpoint. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**webhookUrl** | **String** | The desired URL to set for your WhatsApp webhook endpoint. | | diff --git a/docs/UplinkData.md b/docs/UplinkData.md index 163b13d0..4f56a767 100644 --- a/docs/UplinkData.md +++ b/docs/UplinkData.md @@ -5,20 +5,20 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **BigDecimal** | Uplink data | [optional] -**unit** | [**UnitEnum**](#UnitEnum) | Transmission unit | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | Uplink data | [optional] | +|**unit** | [**UnitEnum**](#UnitEnum) | Transmission unit | [optional] | ## Enum: UnitEnum -Name | Value ----- | ----- -B | "B" -KB | "KB" -MB | "MB" +| Name | Value | +|---- | -----| +| B | "B" | +| KB | "KB" | +| MB | "MB" | diff --git a/docs/UploadMedia.md b/docs/UploadMedia.md index 7fe0b9d7..4a32b0ee 100644 --- a/docs/UploadMedia.md +++ b/docs/UploadMedia.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<UploadMedia>**](UploadMedia.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<UploadMedia>**](UploadMedia.md) | | [optional] | diff --git a/docs/UploadMediaRequest.md b/docs/UploadMediaRequest.md index c6b506f4..e4125441 100644 --- a/docs/UploadMediaRequest.md +++ b/docs/UploadMediaRequest.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**mediaUrl** | **String** | The URL where the media to be stored in Telnyx network is currently hosted. The maximum allowed size is 20 MB. | -**ttlSecs** | **Integer** | The number of seconds after which the media resource will be deleted, defaults to 2 days. The maximum allowed vale is 630720000, which translates to 20 years. | [optional] -**mediaName** | **String** | The unique identifier of a file. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**mediaUrl** | **String** | The URL where the media to be stored in Telnyx network is currently hosted. The maximum allowed size is 20 MB. | | +|**ttlSecs** | **Integer** | The number of seconds after which the media resource will be deleted, defaults to 2 days. The maximum allowed vale is 630720000, which translates to 20 years. | [optional] | +|**mediaName** | **String** | The unique identifier of a file. | [optional] | diff --git a/docs/UploadPortingOrderDocuments201Response.md b/docs/UploadPortingOrderDocuments201Response.md new file mode 100644 index 00000000..75544ed3 --- /dev/null +++ b/docs/UploadPortingOrderDocuments201Response.md @@ -0,0 +1,13 @@ + + +# UploadPortingOrderDocuments201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<PortingOrderDocument>**](PortingOrderDocument.md) | | [optional] | + + + diff --git a/docs/UploadPortingOrderDocumentsRequest.md b/docs/UploadPortingOrderDocumentsRequest.md new file mode 100644 index 00000000..d533e8be --- /dev/null +++ b/docs/UploadPortingOrderDocumentsRequest.md @@ -0,0 +1,13 @@ + + +# UploadPortingOrderDocumentsRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**documents** | [**List<UploadPortingOrderDocumentsRequestDocumentsInner>**](UploadPortingOrderDocumentsRequestDocumentsInner.md) | A list of documents to be associated with a porting order. | | + + + diff --git a/docs/UploadPortingOrderDocumentsRequestDocumentsInner.md b/docs/UploadPortingOrderDocumentsRequestDocumentsInner.md new file mode 100644 index 00000000..d744d8a7 --- /dev/null +++ b/docs/UploadPortingOrderDocumentsRequestDocumentsInner.md @@ -0,0 +1,24 @@ + + +# UploadPortingOrderDocumentsRequestDocumentsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**documentType** | [**DocumentTypeEnum**](#DocumentTypeEnum) | The type of the document. | | +|**documentId** | **String** | Uniquely identifies a document uploaded via the <code><a href=\"https://developers.telnyx.com/docs/api/v2/documents/Documents#createDocument\">/v2/documents</a></code> endpoint. | | + + + +## Enum: DocumentTypeEnum + +| Name | Value | +|---- | -----| +| LOA | "loa" | +| INVOICE | "invoice" | +| OTHER | "other" | + + + diff --git a/docs/Url.md b/docs/Url.md index 17b71e42..763488ef 100644 --- a/docs/Url.md +++ b/docs/Url.md @@ -6,10 +6,10 @@ Standard Values: HOME, WORK ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**url** | **String** | URL | [optional] -**type** | **String** | Standard Values: HOME, WORK | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**url** | **String** | URL | [optional] | +|**type** | **String** | Standard Values: HOME, WORK | [optional] | diff --git a/docs/UrlShortenerSettings.md b/docs/UrlShortenerSettings.md index c41f0926..270c8b8b 100644 --- a/docs/UrlShortenerSettings.md +++ b/docs/UrlShortenerSettings.md @@ -6,12 +6,12 @@ The URL shortener feature allows automatic replacement of URLs that were generat ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**domain** | **String** | One of the domains provided by the Telnyx URL shortener service. | -**prefix** | **String** | Optional prefix that can be used to identify your brand, and will appear in the Telnyx generated URLs after the domain name. | [optional] -**replaceBlacklistOnly** | **Boolean** | Use the link replacement tool only for links that are specifically blacklisted by Telnyx. | [optional] -**sendWebhooks** | **Boolean** | Receive webhooks for when your replaced links are clicked. Webhooks are sent to the webhooks on the messaging profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**domain** | **String** | One of the domains provided by the Telnyx URL shortener service. | | +|**prefix** | **String** | Optional prefix that can be used to identify your brand, and will appear in the Telnyx generated URLs after the domain name. | [optional] | +|**replaceBlacklistOnly** | **Boolean** | Use the link replacement tool only for links that are specifically blacklisted by Telnyx. | [optional] | +|**sendWebhooks** | **Boolean** | Receive webhooks for when your replaced links are clicked. Webhooks are sent to the webhooks on the messaging profile. | [optional] | diff --git a/docs/UserBalance.md b/docs/UserBalance.md index feebfc5f..522826f4 100644 --- a/docs/UserBalance.md +++ b/docs/UserBalance.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**balance** | **BigDecimal** | The account's current balance. | [optional] -**creditLimit** | **BigDecimal** | The account's credit limit. | [optional] -**availableCredit** | **BigDecimal** | Available amount to spend (balance + credit limit) | [optional] -**currency** | **String** | The ISO 4217 currency identifier. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**balance** | **BigDecimal** | The account's current balance. | [optional] | +|**creditLimit** | **BigDecimal** | The account's credit limit. | [optional] | +|**availableCredit** | **BigDecimal** | Available amount to spend (balance + credit limit) | [optional] | +|**currency** | **String** | The ISO 4217 currency identifier. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -BALANCE | "balance" +| Name | Value | +|---- | -----| +| BALANCE | "balance" | diff --git a/docs/Verification.md b/docs/Verification.md index 10bf908d..b4a24b2e 100644 --- a/docs/Verification.md +++ b/docs/Verification.md @@ -5,18 +5,18 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] -**verificationType** | **VerificationType** | | [optional] -**recordType** | **VerificationRecordType** | | [optional] -**phoneNumber** | **String** | +E164 formatted phone number. | [optional] -**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | [optional] -**timeoutSecs** | **Integer** | This is the number of seconds before the code of the request is expired. Once this request has expired, the code will no longer verify the user. Note: this will override the `default_verification_timeout_secs` on the Verify profile. | [optional] -**callTimeoutSecs** | **Integer** | This is the number of seconds before the call ends, if the verification makes a call. Note: this will override the `default_call_timeout_secs` on the Verify profile. | [optional] -**status** | **VerificationStatus** | | [optional] -**createdAt** | **String** | | [optional] -**updatedAt** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] | +|**verificationType** | **VerificationType** | | [optional] | +|**recordType** | **VerificationRecordType** | | [optional] | +|**phoneNumber** | **String** | +E164 formatted phone number. | [optional] | +|**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | [optional] | +|**timeoutSecs** | **Integer** | This is the number of seconds before the code of the request is expired. Once this request has expired, the code will no longer verify the user. Note: this will override the `default_verification_timeout_secs` on the Verify profile. | [optional] | +|**callTimeoutSecs** | **Integer** | This is the number of seconds before the call ends, if the verification makes a call. Note: this will override the `default_call_timeout_secs` on the Verify profile. | [optional] | +|**status** | **VerificationStatus** | | [optional] | +|**createdAt** | **String** | | [optional] | +|**updatedAt** | **String** | | [optional] | diff --git a/docs/VerifiedCallsDisplayProfile.md b/docs/VerifiedCallsDisplayProfile.md index bef46cbb..f9b061dd 100644 --- a/docs/VerifiedCallsDisplayProfile.md +++ b/docs/VerifiedCallsDisplayProfile.md @@ -5,31 +5,31 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**id** | **UUID** | | [optional] [readonly] -**name** | **String** | The Verified Calls Display Profile's name | [optional] -**displayName** | **String** | The display name to be shown as the caller name in phones | [optional] -**logoUrl** | **String** | The URL pointing to a public image file that will be displayed during calls in phones | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The approval status of the Verified Calls Display Profile in Google | [optional] [readonly] -**businessIdentity** | [**VerifiedCallsDisplayProfileBusinessIdentity**](VerifiedCallsDisplayProfileBusinessIdentity.md) | | [optional] -**phoneNumbers** | [**List<VerifiedCallsDisplayProfilePhoneNumbers>**](VerifiedCallsDisplayProfilePhoneNumbers.md) | | [optional] -**callReasons** | [**List<VerifiedCallsDisplayProfileCallReasons>**](VerifiedCallsDisplayProfileCallReasons.md) | | [optional] -**createdAt** | **String** | An ISO 8601 datetime string for when the display profile was added to the Telnyx platform | [optional] [readonly] -**updatedAt** | **String** | An ISO 8601 datetime string for when the display profile was updated | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**id** | **UUID** | | [optional] [readonly] | +|**name** | **String** | The Verified Calls Display Profile's name | [optional] | +|**displayName** | **String** | The display name to be shown as the caller name in phones | [optional] | +|**logoUrl** | **String** | The URL pointing to a public image file that will be displayed during calls in phones | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The approval status of the Verified Calls Display Profile in Google | [optional] [readonly] | +|**businessIdentity** | [**VerifiedCallsDisplayProfileBusinessIdentity**](VerifiedCallsDisplayProfileBusinessIdentity.md) | | [optional] | +|**phoneNumbers** | [**List<VerifiedCallsDisplayProfilePhoneNumbersInner>**](VerifiedCallsDisplayProfilePhoneNumbersInner.md) | | [optional] | +|**callReasons** | [**List<VerifiedCallsDisplayProfileCallReasonsInner>**](VerifiedCallsDisplayProfileCallReasonsInner.md) | | [optional] | +|**createdAt** | **String** | An ISO 8601 datetime string for when the display profile was added to the Telnyx platform | [optional] [readonly] | +|**updatedAt** | **String** | An ISO 8601 datetime string for when the display profile was updated | [optional] [readonly] | ## Enum: StatusEnum -Name | Value ----- | ----- -UNSPECIFIED | "VERIFICATION_STATE_UNSPECIFIED" -UNVERIFIED | "VERIFICATION_STATE_UNVERIFIED" -PENDING | "VERIFICATION_STATE_PENDING" -VERIFIED | "VERIFICATION_STATE_VERIFIED" -SUSPENDED_IN_GMB | "VERIFICATION_STATE_SUSPENDED_IN_GMB" +| Name | Value | +|---- | -----| +| UNSPECIFIED | "VERIFICATION_STATE_UNSPECIFIED" | +| UNVERIFIED | "VERIFICATION_STATE_UNVERIFIED" | +| PENDING | "VERIFICATION_STATE_PENDING" | +| VERIFIED | "VERIFICATION_STATE_VERIFIED" | +| SUSPENDED_IN_GMB | "VERIFICATION_STATE_SUSPENDED_IN_GMB" | diff --git a/docs/VerifiedCallsDisplayProfileBusinessIdentity.md b/docs/VerifiedCallsDisplayProfileBusinessIdentity.md index 714969fc..61e7200d 100644 --- a/docs/VerifiedCallsDisplayProfileBusinessIdentity.md +++ b/docs/VerifiedCallsDisplayProfileBusinessIdentity.md @@ -6,10 +6,10 @@ The associated Business Identity ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] -**name** | **String** | The name of the business identity on the telnyx platform | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] | +|**name** | **String** | The name of the business identity on the telnyx platform | [optional] | diff --git a/docs/VerifiedCallsDisplayProfileCallReasonsInner.md b/docs/VerifiedCallsDisplayProfileCallReasonsInner.md new file mode 100644 index 00000000..bc52399d --- /dev/null +++ b/docs/VerifiedCallsDisplayProfileCallReasonsInner.md @@ -0,0 +1,32 @@ + + +# VerifiedCallsDisplayProfileCallReasonsInner + +The Call Reason to be displayed to the call recipient + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**id** | **UUID** | | [optional] [readonly] | +|**reason** | **String** | The Call Reason text to be displayed to the call recipient | [optional] | +|**googleVerificationStatus** | [**GoogleVerificationStatusEnum**](#GoogleVerificationStatusEnum) | The approval status of this individual call reason in Google | [optional] [readonly] | +|**googleApprovalInfo** | **String** | Additional information about the decision, if available. | [optional] [readonly] | +|**displayProfileId** | **UUID** | | [optional] [readonly] | +|**delete** | **Boolean** | Marks the Phone Number to be removed from the Display Profile | [optional] | + + + +## Enum: GoogleVerificationStatusEnum + +| Name | Value | +|---- | -----| +| STATE_UNSPECIFIED | "STATE_UNSPECIFIED" | +| PENDING_APPROVAL | "PENDING_APPROVAL" | +| APPROVED | "APPROVED" | +| DENIED | "DENIED" | +| PENDING_REMOVAL | "PENDING_REMOVAL" | + + + diff --git a/docs/VerifiedCallsDisplayProfilePhoneNumbersInner.md b/docs/VerifiedCallsDisplayProfilePhoneNumbersInner.md new file mode 100644 index 00000000..2737b3c3 --- /dev/null +++ b/docs/VerifiedCallsDisplayProfilePhoneNumbersInner.md @@ -0,0 +1,32 @@ + + +# VerifiedCallsDisplayProfilePhoneNumbersInner + +A Phone Number that can make phone calls displaying the configured brand information + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**id** | **UUID** | | [optional] [readonly] | +|**phoneNumber** | **String** | The phone number in e164 format | [optional] | +|**googleVerificationStatus** | [**GoogleVerificationStatusEnum**](#GoogleVerificationStatusEnum) | The approval status of this individual phone number in Google | [optional] [readonly] | +|**googleApprovalInfo** | **String** | Additional information about the decision, if available. | [optional] [readonly] | +|**displayProfileId** | **UUID** | | [optional] [readonly] | +|**delete** | **Boolean** | Marks the Phone Number to be removed from the Display Profile | [optional] | + + + +## Enum: GoogleVerificationStatusEnum + +| Name | Value | +|---- | -----| +| STATE_UNSPECIFIED | "STATE_UNSPECIFIED" | +| PENDING_APPROVAL | "PENDING_APPROVAL" | +| APPROVED | "APPROVED" | +| DENIED | "DENIED" | +| PENDING_REMOVAL | "PENDING_REMOVAL" | + + + diff --git a/docs/VerifyDetailRecord.md b/docs/VerifyDetailRecord.md index 05c9ad45..44bc7473 100644 --- a/docs/VerifyDetailRecord.md +++ b/docs/VerifyDetailRecord.md @@ -5,34 +5,34 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Unique ID of the verification | [optional] -**verifyProfileId** | **UUID** | | [optional] -**deliveryStatus** | **String** | | [optional] -**verificationStatus** | **String** | | [optional] -**destinationPhoneNumber** | **String** | E.164 formatted phone number | [optional] -**verifyChannelType** | [**VerifyChannelTypeEnum**](#VerifyChannelTypeEnum) | Depending on the type of verification, the `verify_channel_id` points to one of the following channel ids; --- verify_channel_type | verify_channel_id ------------------- | ----------------- sms, psd2 | messaging_id call, flashcall | call_control_id whatsapp | messaging_whatsapp_id --- | [optional] -**verifyChannelId** | **UUID** | | [optional] -**createdAt** | **String** | | [optional] -**updatedAt** | **String** | | [optional] -**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing costs | [optional] -**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing costs | [optional] -**verifyUsageFee** | **String** | Currency amount for Verify Usage Fee | [optional] -**currency** | **String** | Telnyx account currency used to describe monetary values, including billing costs | [optional] -**recordType** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Unique ID of the verification | [optional] | +|**verifyProfileId** | **UUID** | | [optional] | +|**deliveryStatus** | **String** | | [optional] | +|**verificationStatus** | **String** | | [optional] | +|**destinationPhoneNumber** | **String** | E.164 formatted phone number | [optional] | +|**verifyChannelType** | [**VerifyChannelTypeEnum**](#VerifyChannelTypeEnum) | Depending on the type of verification, the `verify_channel_id` points to one of the following channel ids; --- verify_channel_type | verify_channel_id ------------------- | ----------------- sms, psd2 | messaging_id call, flashcall | call_control_id whatsapp | messaging_whatsapp_id --- | [optional] | +|**verifyChannelId** | **UUID** | | [optional] | +|**createdAt** | **String** | | [optional] | +|**updatedAt** | **String** | | [optional] | +|**rate** | **String** | Currency amount per billing unit used to calculate the Telnyx billing costs | [optional] | +|**rateMeasuredIn** | **String** | Billing unit used to calculate the Telnyx billing costs | [optional] | +|**verifyUsageFee** | **String** | Currency amount for Verify Usage Fee | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing costs | [optional] | +|**recordType** | **String** | | | ## Enum: VerifyChannelTypeEnum -Name | Value ----- | ----- -SMS | "sms" -PSD2 | "psd2" -CALL | "call" -FLASHCALL | "flashcall" -WHATSAPP | "whatsapp" +| Name | Value | +|---- | -----| +| SMS | "sms" | +| PSD2 | "psd2" | +| CALL | "call" | +| FLASHCALL | "flashcall" | +| WHATSAPP | "whatsapp" | diff --git a/docs/VerifyPhoneNumberCoverage201Response.md b/docs/VerifyPhoneNumberCoverage201Response.md new file mode 100644 index 00000000..95191fbf --- /dev/null +++ b/docs/VerifyPhoneNumberCoverage201Response.md @@ -0,0 +1,13 @@ + + +# VerifyPhoneNumberCoverage201Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<CustomerServiceRequestPhoneNumberCoverage>**](CustomerServiceRequestPhoneNumberCoverage.md) | | [optional] | + + + diff --git a/docs/VerifyPhoneNumberCoverageRequest.md b/docs/VerifyPhoneNumberCoverageRequest.md new file mode 100644 index 00000000..68ea4154 --- /dev/null +++ b/docs/VerifyPhoneNumberCoverageRequest.md @@ -0,0 +1,13 @@ + + +# VerifyPhoneNumberCoverageRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumbers** | **List<String>** | The phone numbers list to be verified. | | + + + diff --git a/docs/VerifyProfileCallResponse.md b/docs/VerifyProfileCallResponse.md index 59add5fc..550cca08 100644 --- a/docs/VerifyProfileCallResponse.md +++ b/docs/VerifyProfileCallResponse.md @@ -5,11 +5,11 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**speechTemplate** | **String** | Optionally sets a speech text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**defaultCallTimeoutSecs** | **Integer** | Must be less than default_verification_timeout_secs | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**speechTemplate** | **String** | Optionally sets a speech text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] | +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**defaultCallTimeoutSecs** | **Integer** | Must be less than default_verification_timeout_secs | [optional] | diff --git a/docs/VerifyProfileFlashcallResponse.md b/docs/VerifyProfileFlashcallResponse.md index 11acbba8..e4faa3f7 100644 --- a/docs/VerifyProfileFlashcallResponse.md +++ b/docs/VerifyProfileFlashcallResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | diff --git a/docs/VerifyProfilePSD2Response.md b/docs/VerifyProfilePSD2Response.md index d69989d9..54c3c100 100644 --- a/docs/VerifyProfilePSD2Response.md +++ b/docs/VerifyProfilePSD2Response.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | diff --git a/docs/VerifyProfileResponse.md b/docs/VerifyProfileResponse.md index 6abdd947..c6d441ca 100644 --- a/docs/VerifyProfileResponse.md +++ b/docs/VerifyProfileResponse.md @@ -5,21 +5,21 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | | [optional] -**name** | **String** | | [optional] -**webhookUrl** | **String** | | [optional] -**webhookFailoverUrl** | **String** | | [optional] -**recordType** | **VerificationProfileRecordType** | | [optional] -**createdAt** | **String** | | [optional] -**updatedAt** | **String** | | [optional] -**sms** | **VerifyProfileSMSResponse** | | [optional] -**psd2** | **VerifyProfilePSD2Response** | | [optional] -**whatsapp** | **VerifyProfileWhatsappResponse** | | [optional] -**call** | **VerifyProfileCallResponse** | | [optional] -**flashcall** | **VerifyProfileFlashcallResponse** | | [optional] -**language** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | | [optional] | +|**name** | **String** | | [optional] | +|**webhookUrl** | **String** | | [optional] | +|**webhookFailoverUrl** | **String** | | [optional] | +|**recordType** | **VerificationProfileRecordType** | | [optional] | +|**createdAt** | **String** | | [optional] | +|**updatedAt** | **String** | | [optional] | +|**sms** | **VerifyProfileSMSResponse** | | [optional] | +|**psd2** | **VerifyProfilePSD2Response** | | [optional] | +|**whatsapp** | **VerifyProfileWhatsappResponse** | | [optional] | +|**call** | **VerifyProfileCallResponse** | | [optional] | +|**flashcall** | **VerifyProfileFlashcallResponse** | | [optional] | +|**language** | **String** | | [optional] | diff --git a/docs/VerifyProfileResponseDataWrapper.md b/docs/VerifyProfileResponseDataWrapper.md index 94b0b142..b34fdb8d 100644 --- a/docs/VerifyProfileResponseDataWrapper.md +++ b/docs/VerifyProfileResponseDataWrapper.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | **VerifyProfileResponse** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | **VerifyProfileResponse** | | [optional] | diff --git a/docs/VerifyProfileSMSResponse.md b/docs/VerifyProfileSMSResponse.md index 4584ebb6..841a981f 100644 --- a/docs/VerifyProfileSMSResponse.md +++ b/docs/VerifyProfileSMSResponse.md @@ -5,13 +5,13 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messagingEnabled** | **Boolean** | Enables SMS text messaging for the Verify profile. | [optional] -**rcsEnabled** | **Boolean** | Enables RCS messaging for the Verify profile. | [optional] -**messagingTemplate** | **String** | Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**vsmsEnabled** | **Boolean** | Enables VSMS for the Verify profile. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messagingEnabled** | **Boolean** | Enables SMS text messaging for the Verify profile. | [optional] | +|**rcsEnabled** | **Boolean** | Enables RCS messaging for the Verify profile. | [optional] | +|**messagingTemplate** | **String** | Optionally sets a messaging text template when sending the verification code. Uses `{code}` to template in the actual verification code. | [optional] | +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**vsmsEnabled** | **Boolean** | Enables VSMS for the Verify profile. | [optional] | diff --git a/docs/VerifyProfileWhatsappResponse.md b/docs/VerifyProfileWhatsappResponse.md index ba12b6ec..47c82d02 100644 --- a/docs/VerifyProfileWhatsappResponse.md +++ b/docs/VerifyProfileWhatsappResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] -**appName** | **String** | The name that identifies the application requesting 2fa in the verification message. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**defaultVerificationTimeoutSecs** | **Integer** | For every request that is initiated via this Verify profile, this sets the number of seconds before a verification request code expires. Once the verification request expires, the user cannot use the code to verify their identity. | [optional] | +|**appName** | **String** | The name that identifies the application requesting 2fa in the verification message. | [optional] | diff --git a/docs/VerifyVerificationCodeRequest.md b/docs/VerifyVerificationCodeRequest.md index 471e2d96..a255a1e2 100644 --- a/docs/VerifyVerificationCodeRequest.md +++ b/docs/VerifyVerificationCodeRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**code** | **String** | This is the code the user submits for verification. | -**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | This is the code the user submits for verification. | | +|**verifyProfileId** | **UUID** | The identifier of the associated Verify profile. | | diff --git a/docs/VerifyVerificationCodeResponse.md b/docs/VerifyVerificationCodeResponse.md index 085027e0..e832ea95 100644 --- a/docs/VerifyVerificationCodeResponse.md +++ b/docs/VerifyVerificationCodeResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**VerifyVerificationCodeResponseData**](VerifyVerificationCodeResponseData.md) | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**VerifyVerificationCodeResponseData**](VerifyVerificationCodeResponseData.md) | | | diff --git a/docs/VerifyVerificationCodeResponseData.md b/docs/VerifyVerificationCodeResponseData.md index 59ce1c63..9650ff37 100644 --- a/docs/VerifyVerificationCodeResponseData.md +++ b/docs/VerifyVerificationCodeResponseData.md @@ -5,19 +5,19 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**phoneNumber** | **String** | +E164 formatted phone number. | -**responseCode** | [**ResponseCodeEnum**](#ResponseCodeEnum) | Identifies if the verification code has been accepted or rejected. | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**phoneNumber** | **String** | +E164 formatted phone number. | | +|**responseCode** | [**ResponseCodeEnum**](#ResponseCodeEnum) | Identifies if the verification code has been accepted or rejected. | | ## Enum: ResponseCodeEnum -Name | Value ----- | ----- -ACCEPTED | "accepted" -REJECTED | "rejected" +| Name | Value | +|---- | -----| +| ACCEPTED | "accepted" | +| REJECTED | "rejected" | diff --git a/docs/Video.md b/docs/Video.md index 8506b843..15686939 100644 --- a/docs/Video.md +++ b/docs/Video.md @@ -6,11 +6,11 @@ The media object containing a video ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] -**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] -**caption** | **String** | Describes the specified media. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] | +|**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] | +|**caption** | **String** | Describes the specified media. | [optional] | diff --git a/docs/Video1.md b/docs/Video1.md new file mode 100644 index 00000000..8909bc36 --- /dev/null +++ b/docs/Video1.md @@ -0,0 +1,16 @@ + + +# Video1 + +Contains the media object for this video. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The media object ID returned when the media is successfully uploaded to the media endpoint. | [optional] | +|**link** | **String** | The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. | [optional] | +|**caption** | **String** | Describes the specified media. | [optional] | + + + diff --git a/docs/VideoRegion.md b/docs/VideoRegion.md index d2d3be0f..734d0e0f 100644 --- a/docs/VideoRegion.md +++ b/docs/VideoRegion.md @@ -5,16 +5,16 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**xPos** | **Integer** | X axis value (in pixels) of the region's upper left corner relative to the upper left corner of the whole room composition viewport. | [optional] -**yPos** | **Integer** | Y axis value (in pixels) of the region's upper left corner relative to the upper left corner of the whole room composition viewport. | [optional] -**zPos** | **Integer** | Regions with higher z_pos values are stacked on top of regions with lower z_pos values | [optional] -**height** | **Integer** | Height of the video region | [optional] -**width** | **Integer** | Width of the video region | [optional] -**maxColumns** | **Integer** | Maximum number of columns of the region's placement grid. By default, the region has as many columns as needed to layout all the specified video sources. | [optional] -**maxRows** | **Integer** | Maximum number of rows of the region's placement grid. By default, the region has as many rows as needed to layout all the specified video sources. | [optional] -**videoSources** | **List<UUID>** | Array of video recording ids to be composed in the region. Can be \"*\" to specify all video recordings in the session | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**xPos** | **Integer** | X axis value (in pixels) of the region's upper left corner relative to the upper left corner of the whole room composition viewport. | [optional] | +|**yPos** | **Integer** | Y axis value (in pixels) of the region's upper left corner relative to the upper left corner of the whole room composition viewport. | [optional] | +|**zPos** | **Integer** | Regions with higher z_pos values are stacked on top of regions with lower z_pos values | [optional] | +|**height** | **Integer** | Height of the video region | [optional] | +|**width** | **Integer** | Width of the video region | [optional] | +|**maxColumns** | **Integer** | Maximum number of columns of the region's placement grid. By default, the region has as many columns as needed to layout all the specified video sources. | [optional] | +|**maxRows** | **Integer** | Maximum number of rows of the region's placement grid. By default, the region has as many rows as needed to layout all the specified video sources. | [optional] | +|**videoSources** | **List<UUID>** | Array of video recording ids to be composed in the region. Can be \"*\" to specify all video recordings in the session | [optional] | diff --git a/docs/ViewRoomParticipant200Response.md b/docs/ViewRoomParticipant200Response.md new file mode 100644 index 00000000..585cdf42 --- /dev/null +++ b/docs/ViewRoomParticipant200Response.md @@ -0,0 +1,13 @@ + + +# ViewRoomParticipant200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RoomParticipant**](RoomParticipant.md) | | [optional] | + + + diff --git a/docs/ViewRoomRecording200Response.md b/docs/ViewRoomRecording200Response.md new file mode 100644 index 00000000..b6077ab8 --- /dev/null +++ b/docs/ViewRoomRecording200Response.md @@ -0,0 +1,13 @@ + + +# ViewRoomRecording200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RoomRecording**](RoomRecording.md) | | [optional] | + + + diff --git a/docs/ViewRoomSession200Response.md b/docs/ViewRoomSession200Response.md new file mode 100644 index 00000000..ebf74c00 --- /dev/null +++ b/docs/ViewRoomSession200Response.md @@ -0,0 +1,13 @@ + + +# ViewRoomSession200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**RoomSession**](RoomSession.md) | | [optional] | + + + diff --git a/docs/VirtaulCrossConnectList200Response.md b/docs/VirtaulCrossConnectList200Response.md new file mode 100644 index 00000000..71b229fe --- /dev/null +++ b/docs/VirtaulCrossConnectList200Response.md @@ -0,0 +1,14 @@ + + +# VirtaulCrossConnectList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<VirtualCrossConnectCombined>**](VirtualCrossConnectCombined.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/VirtaulCrossConnectRegionList200Response.md b/docs/VirtaulCrossConnectRegionList200Response.md new file mode 100644 index 00000000..df84fa79 --- /dev/null +++ b/docs/VirtaulCrossConnectRegionList200Response.md @@ -0,0 +1,14 @@ + + +# VirtaulCrossConnectRegionList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<VirtualCrossConnectRegion>**](VirtualCrossConnectRegion.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/VirtualCrossConnect.md b/docs/VirtualCrossConnect.md new file mode 100644 index 00000000..8bffb688 --- /dev/null +++ b/docs/VirtualCrossConnect.md @@ -0,0 +1,43 @@ + + +# VirtualCrossConnect + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | [optional] | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**cloudProvider** | [**CloudProviderEnum**](#CloudProviderEnum) | The Virtual Private Cloud with which you would like to establish a cross connect. | [optional] | +|**cloudRegion** | **String** | The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. | [optional] | +|**bgpAsn** | **BigDecimal** | The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. | [optional] | +|**bandwidthMbps** | **BigDecimal** | The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. | [optional] | +|**primaryEnabled** | **Boolean** | Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] [readonly] | +|**primaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. | [optional] | +|**primaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**primaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**primaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | +|**secondaryEnabled** | **Boolean** | Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] [readonly] | +|**secondaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. | [optional] | +|**secondaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**secondaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**secondaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | + + + +## Enum: CloudProviderEnum + +| Name | Value | +|---- | -----| +| AWS | "aws" | +| AZURE | "azure" | +| GCE | "gce" | + + + diff --git a/docs/VirtualCrossConnect1.md b/docs/VirtualCrossConnect1.md new file mode 100644 index 00000000..ed3af397 --- /dev/null +++ b/docs/VirtualCrossConnect1.md @@ -0,0 +1,37 @@ + + +# VirtualCrossConnect1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**cloudProvider** | [**CloudProviderEnum**](#CloudProviderEnum) | The Virtual Private Cloud with which you would like to establish a cross connect. | [optional] | +|**cloudRegion** | **String** | The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. | [optional] | +|**bgpAsn** | **BigDecimal** | The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. | [optional] | +|**bandwidthMbps** | **BigDecimal** | The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. | [optional] | +|**primaryEnabled** | **Boolean** | Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] [readonly] | +|**primaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. | [optional] | +|**primaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**primaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**primaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | +|**secondaryEnabled** | **Boolean** | Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] [readonly] | +|**secondaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. | [optional] | +|**secondaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**secondaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**secondaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | + + + +## Enum: CloudProviderEnum + +| Name | Value | +|---- | -----| +| AWS | "aws" | +| AZURE | "azure" | +| GCE | "gce" | + + + diff --git a/docs/VirtualCrossConnectCombined.md b/docs/VirtualCrossConnectCombined.md new file mode 100644 index 00000000..bd1599e3 --- /dev/null +++ b/docs/VirtualCrossConnectCombined.md @@ -0,0 +1,47 @@ + + +# VirtualCrossConnectCombined + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**cloudProvider** | [**CloudProviderEnum**](#CloudProviderEnum) | The Virtual Private Cloud with which you would like to establish a cross connect. | | +|**cloudRegion** | **String** | The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. | | +|**bgpAsn** | **BigDecimal** | The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. | | +|**bandwidthMbps** | **BigDecimal** | The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. | [optional] | +|**primaryEnabled** | **Boolean** | Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] | +|**primaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. | | +|**primaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**primaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. | [optional] | +|**primaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | +|**secondaryEnabled** | **Boolean** | Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] | +|**secondaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. | [optional] | +|**secondaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**secondaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. | [optional] | +|**secondaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | +|**regionCode** | **String** | The region interface is deployed to. | | +|**primaryRoutingAnnouncement** | **Boolean** | Whether the primary BGP route is being announced. | [optional] | +|**secondaryRoutingAnnouncement** | **Boolean** | Whether the secondary BGP route is being announced. | [optional] | +|**region** | [**RegionOutRegion**](RegionOutRegion.md) | | [optional] | + + + +## Enum: CloudProviderEnum + +| Name | Value | +|---- | -----| +| AWS | "aws" | +| AZURE | "azure" | +| GCE | "gce" | + + + diff --git a/docs/VirtualCrossConnectCreate.md b/docs/VirtualCrossConnectCreate.md new file mode 100644 index 00000000..689663d6 --- /dev/null +++ b/docs/VirtualCrossConnectCreate.md @@ -0,0 +1,44 @@ + + +# VirtualCrossConnectCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**cloudProvider** | [**CloudProviderEnum**](#CloudProviderEnum) | The Virtual Private Cloud with which you would like to establish a cross connect. | | +|**cloudRegion** | **String** | The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. | | +|**bgpAsn** | **BigDecimal** | The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. | | +|**bandwidthMbps** | **BigDecimal** | The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. | [optional] | +|**primaryEnabled** | **Boolean** | Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] [readonly] | +|**primaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. | | +|**primaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**primaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**primaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | +|**secondaryEnabled** | **Boolean** | Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] [readonly] | +|**secondaryCloudAccountId** | **String** | The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. | [optional] | +|**secondaryTelnyxIp** | **String** | The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**secondaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. | [optional] | +|**secondaryBgpKey** | **String** | The authentication key for BGP peer configuration. | [optional] | +|**regionCode** | **String** | The region the interface should be deployed to. | | + + + +## Enum: CloudProviderEnum + +| Name | Value | +|---- | -----| +| AWS | "aws" | +| AZURE | "azure" | +| GCE | "gce" | + + + diff --git a/docs/VirtualCrossConnectCreate200Response.md b/docs/VirtualCrossConnectCreate200Response.md new file mode 100644 index 00000000..d1a1f5b0 --- /dev/null +++ b/docs/VirtualCrossConnectCreate200Response.md @@ -0,0 +1,13 @@ + + +# VirtualCrossConnectCreate200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**VirtualCrossConnectCombined**](VirtualCrossConnectCombined.md) | | [optional] | + + + diff --git a/docs/VirtualCrossConnectPatch.md b/docs/VirtualCrossConnectPatch.md new file mode 100644 index 00000000..785b4ccf --- /dev/null +++ b/docs/VirtualCrossConnectPatch.md @@ -0,0 +1,18 @@ + + +# VirtualCrossConnectPatch + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**primaryEnabled** | **Boolean** | Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] | +|**primaryRoutingAnnouncement** | **Boolean** | Whether the primary BGP route is being announced. | [optional] | +|**primaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. | [optional] | +|**secondaryEnabled** | **Boolean** | Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] | +|**secondaryRoutingAnnouncement** | **Boolean** | Whether the secondary BGP route is being announced. | [optional] | +|**secondaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. | [optional] | + + + diff --git a/docs/VirtualCrossConnectPatch1.md b/docs/VirtualCrossConnectPatch1.md new file mode 100644 index 00000000..5264deb9 --- /dev/null +++ b/docs/VirtualCrossConnectPatch1.md @@ -0,0 +1,18 @@ + + +# VirtualCrossConnectPatch1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**primaryEnabled** | **Boolean** | Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] | +|**primaryRoutingAnnouncement** | **Boolean** | Whether the primary BGP route is being announced. | [optional] | +|**primaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. | [optional] | +|**secondaryEnabled** | **Boolean** | Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. | [optional] | +|**secondaryRoutingAnnouncement** | **Boolean** | Whether the secondary BGP route is being announced. | [optional] | +|**secondaryCloudIp** | **String** | The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. | [optional] | + + + diff --git a/docs/VirtualCrossConnectRegion.md b/docs/VirtualCrossConnectRegion.md new file mode 100644 index 00000000..17074e7b --- /dev/null +++ b/docs/VirtualCrossConnectRegion.md @@ -0,0 +1,30 @@ + + +# VirtualCrossConnectRegion + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**regionCode** | **String** | The region the interface is deployed to. | [optional] | +|**cloudProvider** | [**CloudProviderEnum**](#CloudProviderEnum) | The Virtual Private Cloud with which you would like to establish a cross connect. | [optional] | +|**cloudRegion** | **String** | The region where your Virtual Private Cloud hosts are located. | [optional] | +|**bandwidthMbps** | **List<BigDecimal>** | The available throughput in Megabits per Second (Mbps) for your Virtual Cross Connect. | [optional] | + + + +## Enum: CloudProviderEnum + +| Name | Value | +|---- | -----| +| AWS | "aws" | +| AZURE | "azure" | +| GCE | "gce" | + + + diff --git a/docs/VirtualCrossConnectRegion1.md b/docs/VirtualCrossConnectRegion1.md new file mode 100644 index 00000000..60977131 --- /dev/null +++ b/docs/VirtualCrossConnectRegion1.md @@ -0,0 +1,27 @@ + + +# VirtualCrossConnectRegion1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**regionCode** | **String** | The region the interface is deployed to. | [optional] | +|**cloudProvider** | [**CloudProviderEnum**](#CloudProviderEnum) | The Virtual Private Cloud with which you would like to establish a cross connect. | [optional] | +|**cloudRegion** | **String** | The region where your Virtual Private Cloud hosts are located. | [optional] | +|**bandwidthMbps** | **List<BigDecimal>** | The available throughput in Megabits per Second (Mbps) for your Virtual Cross Connect. | [optional] | + + + +## Enum: CloudProviderEnum + +| Name | Value | +|---- | -----| +| AWS | "aws" | +| AZURE | "azure" | +| GCE | "gce" | + + + diff --git a/docs/VirtualCrossConnectRegionGet200Response.md b/docs/VirtualCrossConnectRegionGet200Response.md new file mode 100644 index 00000000..4da06d47 --- /dev/null +++ b/docs/VirtualCrossConnectRegionGet200Response.md @@ -0,0 +1,13 @@ + + +# VirtualCrossConnectRegionGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**VirtualCrossConnectRegion**](VirtualCrossConnectRegion.md) | | [optional] | + + + diff --git a/docs/VirtualCrossConnectsApi.md b/docs/VirtualCrossConnectsApi.md new file mode 100644 index 00000000..9ce7a2c6 --- /dev/null +++ b/docs/VirtualCrossConnectsApi.md @@ -0,0 +1,603 @@ +# VirtualCrossConnectsApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**virtaulCrossConnectList**](VirtualCrossConnectsApi.md#virtaulCrossConnectList) | **GET** /virtual_cross_connects | List all Virtual Cross Connects +[**virtaulCrossConnectRegionList**](VirtualCrossConnectsApi.md#virtaulCrossConnectRegionList) | **GET** /virtual_cross_connect_regions | List all Virtual Cross Connect Cloud Regions +[**virtualCrossConnectCreate**](VirtualCrossConnectsApi.md#virtualCrossConnectCreate) | **POST** /virtual_cross_connects | Create a Virtual Cross Connect +[**virtualCrossConnectDelete**](VirtualCrossConnectsApi.md#virtualCrossConnectDelete) | **DELETE** /virtual_cross_connects/{id} | Delete a Virtual Cross Connect +[**virtualCrossConnectGet**](VirtualCrossConnectsApi.md#virtualCrossConnectGet) | **GET** /virtual_cross_connects/{id} | Retrieve a Virtual Cross Connect +[**virtualCrossConnectProvision**](VirtualCrossConnectsApi.md#virtualCrossConnectProvision) | **POST** /virtual_cross_connects/{id}/actions/provision | Provision a Virtual Cross Connect +[**virtualCrossConnectRegionGet**](VirtualCrossConnectsApi.md#virtualCrossConnectRegionGet) | **GET** /virtual_cross_connect_regions/{id} | Retrieve a Virtual Cross Connect Cloud Regions +[**virtualCrossConnectUpdate**](VirtualCrossConnectsApi.md#virtualCrossConnectUpdate) | **PATCH** /virtual_cross_connects/{id} | Update the Virtual Cross Connect + + + +## virtaulCrossConnectList + +> VirtaulCrossConnectList200Response virtaulCrossConnectList(pageNumber, pageSize, filterNetworkId) + +List all Virtual Cross Connects + +List all Virtual Cross Connects. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String filterNetworkId = "6a09cdc3-8948-47f0-aa62-74ac943d6c58"; // String | The associated network id to filter on. + try { + VirtaulCrossConnectList200Response result = apiInstance.virtaulCrossConnectList(pageNumber, pageSize, filterNetworkId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtaulCrossConnectList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterNetworkId** | **String**| The associated network id to filter on. | [optional] + +### Return type + +[**VirtaulCrossConnectList200Response**](VirtaulCrossConnectList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## virtaulCrossConnectRegionList + +> VirtaulCrossConnectRegionList200Response virtaulCrossConnectRegionList(pageNumber, pageSize, filterRegionCode, filterCloudProvider) + +List all Virtual Cross Connect Cloud Regions + +List all Virtual Cross Connects Cloud Regions.

This endpoint shows which cloud regions are available for the `region_code` your Virtual Cross Connect will be provisioned in. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String filterRegionCode = "ashburn-va"; // String | The Telnyx region code + String filterCloudProvider = "aws"; // String | The Telnyx region code + try { + VirtaulCrossConnectRegionList200Response result = apiInstance.virtaulCrossConnectRegionList(pageNumber, pageSize, filterRegionCode, filterCloudProvider); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtaulCrossConnectRegionList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterRegionCode** | **String**| The Telnyx region code | [optional] + **filterCloudProvider** | **String**| The Telnyx region code | [optional] [enum: aws, azure, gce] + +### Return type + +[**VirtaulCrossConnectRegionList200Response**](VirtaulCrossConnectRegionList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## virtualCrossConnectCreate + +> VirtualCrossConnectCreate200Response virtualCrossConnectCreate(virtualCrossConnectCreate) + +Create a Virtual Cross Connect + +Create a new Virtual Cross Connect.

For AWS and GCE, you have the option of creating the primary connection first and the secondary connection later. You also have the option of disabling the primary and/or secondary connections at any time and later re-enabling them. With Azure, you do not have this option. Azure requires both the primary and secondary connections to be created at the same time and they can not be independantly disabled. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + VirtualCrossConnectCreate virtualCrossConnectCreate = new VirtualCrossConnectCreate(); // VirtualCrossConnectCreate | + try { + VirtualCrossConnectCreate200Response result = apiInstance.virtualCrossConnectCreate(virtualCrossConnectCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtualCrossConnectCreate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **virtualCrossConnectCreate** | [**VirtualCrossConnectCreate**](VirtualCrossConnectCreate.md)| | + +### Return type + +[**VirtualCrossConnectCreate200Response**](VirtualCrossConnectCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + + +## virtualCrossConnectDelete + +> VirtualCrossConnectCreate200Response virtualCrossConnectDelete(id) + +Delete a Virtual Cross Connect + +Delete a Virtual Cross Connect. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + VirtualCrossConnectCreate200Response result = apiInstance.virtualCrossConnectDelete(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtualCrossConnectDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**VirtualCrossConnectCreate200Response**](VirtualCrossConnectCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## virtualCrossConnectGet + +> VirtualCrossConnectCreate200Response virtualCrossConnectGet(id) + +Retrieve a Virtual Cross Connect + +Retrieve a Virtual Cross Connect. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + VirtualCrossConnectCreate200Response result = apiInstance.virtualCrossConnectGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtualCrossConnectGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**VirtualCrossConnectCreate200Response**](VirtualCrossConnectCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## virtualCrossConnectProvision + +> VirtualCrossConnectCreate200Response virtualCrossConnectProvision(id) + +Provision a Virtual Cross Connect + +Provision a new Virtual Cross Connect.

This endpoint is only necessary for GCE cloud regions. Once you have patched your Cloud IPs, you must POST this request to trigger the provision. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + VirtualCrossConnectCreate200Response result = apiInstance.virtualCrossConnectProvision(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtualCrossConnectProvision"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**VirtualCrossConnectCreate200Response**](VirtualCrossConnectCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful response | - | +| **0** | Unexpected error | - | + + +## virtualCrossConnectRegionGet + +> VirtualCrossConnectRegionGet200Response virtualCrossConnectRegionGet(id) + +Retrieve a Virtual Cross Connect Cloud Regions + +Retrieve a Virtual Cross Connect Cloud Regions. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + VirtualCrossConnectRegionGet200Response result = apiInstance.virtualCrossConnectRegionGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtualCrossConnectRegionGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**VirtualCrossConnectRegionGet200Response**](VirtualCrossConnectRegionGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## virtualCrossConnectUpdate + +> VirtualCrossConnectCreate200Response virtualCrossConnectUpdate(id, virtualCrossConnectPatch) + +Update the Virtual Cross Connect + +Update the Virtual Cross Connect.

Cloud IPs can only be patched during the `created` state, as GCE will only inform you of your generated IP once the pending connection requested has been accepted. Once the Virtual Cross Connect has moved to `provisioning`, the IPs can no longer be patched.

Once the Virtual Cross Connect has moved to `provisioned` and you are ready to enable routing, you can toggle the routing announcements to `true`. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.VirtualCrossConnectsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + VirtualCrossConnectsApi apiInstance = new VirtualCrossConnectsApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + VirtualCrossConnectPatch virtualCrossConnectPatch = new VirtualCrossConnectPatch(); // VirtualCrossConnectPatch | + try { + VirtualCrossConnectCreate200Response result = apiInstance.virtualCrossConnectUpdate(id, virtualCrossConnectPatch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling VirtualCrossConnectsApi#virtualCrossConnectUpdate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **virtualCrossConnectPatch** | [**VirtualCrossConnectPatch**](VirtualCrossConnectPatch.md)| | + +### Return type + +[**VirtualCrossConnectCreate200Response**](VirtualCrossConnectCreate200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + diff --git a/docs/WdrDetailReportsApi.md b/docs/WdrDetailReportsApi.md new file mode 100644 index 00000000..fcebf75d --- /dev/null +++ b/docs/WdrDetailReportsApi.md @@ -0,0 +1,101 @@ +# WdrDetailReportsApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**getPaginatedWdrs**](WdrDetailReportsApi.md#getPaginatedWdrs) | **GET** /reports/wdrs | + + + +## getPaginatedWdrs + +> ExternalWdrGetDetailResponse getPaginatedWdrs(startDate, endDate, id, mcc, mnc, imsi, simGroupName, simGroupId, simCardId, phoneNumber, pageNumber, pageSize) + + + +Fetch all Wdr records + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WdrDetailReportsApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WdrDetailReportsApi apiInstance = new WdrDetailReportsApi(defaultClient); + String startDate = "2021-05-01T00:00:00Z"; // String | Start date + String endDate = "2021-06-01T00:00:00Z"; // String | End date + String id = "e093fbe0-5bde-11eb-ae93-0242ac130002"; // String | + String mcc = "204"; // String | + String mnc = "01"; // String | + String imsi = "123456"; // String | + String simGroupName = "sim name"; // String | + String simGroupId = "f05a189f-7c46-4531-ac56-1460dc465a42"; // String | + String simCardId = "877f80a6-e5b2-4687-9a04-88076265720f"; // String | + String phoneNumber = "+12345678910"; // String | + Integer pageNumber = 1; // Integer | Page number + Integer pageSize = 20; // Integer | Size of the page + try { + ExternalWdrGetDetailResponse result = apiInstance.getPaginatedWdrs(startDate, endDate, id, mcc, mnc, imsi, simGroupName, simGroupId, simCardId, phoneNumber, pageNumber, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WdrDetailReportsApi#getPaginatedWdrs"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **startDate** | **String**| Start date | [optional] + **endDate** | **String**| End date | [optional] + **id** | **String**| | [optional] + **mcc** | **String**| | [optional] + **mnc** | **String**| | [optional] + **imsi** | **String**| | [optional] + **simGroupName** | **String**| | [optional] + **simGroupId** | **String**| | [optional] + **simCardId** | **String**| | [optional] + **phoneNumber** | **String**| | [optional] + **pageNumber** | **Integer**| Page number | [optional] [default to 1] + **pageSize** | **Integer**| Size of the page | [optional] [default to 20] + +### Return type + +[**ExternalWdrGetDetailResponse**](ExternalWdrGetDetailResponse.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful | - | + diff --git a/docs/WdrReport.md b/docs/WdrReport.md index 145903ca..b9278bd5 100644 --- a/docs/WdrReport.md +++ b/docs/WdrReport.md @@ -5,27 +5,27 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Identifies the resource. | [optional] [readonly] -**recordType** | **String** | | [optional] [readonly] -**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] -**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] -**startTime** | **String** | ISO 8601 formatted date-time indicating the start time. | [optional] -**endTime** | **String** | ISO 8601 formatted date-time indicating the end time. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Indicates the status of the report, which is updated asynchronously. | [optional] -**reportUrl** | **String** | The URL where the report content, when generated, will be published to. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**startTime** | **String** | ISO 8601 formatted date-time indicating the start time. | [optional] | +|**endTime** | **String** | ISO 8601 formatted date-time indicating the end time. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Indicates the status of the report, which is updated asynchronously. | [optional] | +|**reportUrl** | **String** | The URL where the report content, when generated, will be published to. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -COMPLETE | "complete" -FAILED | "failed" -DELETED | "deleted" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| COMPLETE | "complete" | +| FAILED | "failed" | +| DELETED | "deleted" | diff --git a/docs/WdrReportRequest.md b/docs/WdrReportRequest.md index 6a56382c..166f08e3 100644 --- a/docs/WdrReportRequest.md +++ b/docs/WdrReportRequest.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startTime** | **String** | ISO 8601 formatted date-time indicating the start time. | [optional] -**endTime** | **String** | ISO 8601 formatted date-time indicating the end time. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startTime** | **String** | ISO 8601 formatted date-time indicating the start time. | [optional] | +|**endTime** | **String** | ISO 8601 formatted date-time indicating the end time. | [optional] | diff --git a/docs/WebhookDelivery.md b/docs/WebhookDelivery.md index 7abfa6ce..9b7e9ac8 100644 --- a/docs/WebhookDelivery.md +++ b/docs/WebhookDelivery.md @@ -6,25 +6,25 @@ Record of all attempts to deliver a webhook. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **UUID** | Uniquely identifies the webhook_delivery record. | [optional] -**userId** | **UUID** | Uniquely identifies the user that owns the webhook_delivery record. | [optional] -**recordType** | **String** | Identifies the type of the resource. | [optional] -**status** | [**StatusEnum**](#StatusEnum) | Delivery status: 'delivered' when successfuly delivered or 'failed' if all attempts have failed. | [optional] -**webhook** | [**WebhookDeliveryWebhook**](WebhookDeliveryWebhook.md) | | [optional] -**startedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the first request attempt was initiated. | [optional] -**finishedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the last webhook response has been received. | [optional] -**attempts** | [**List<Attempt>**](Attempt.md) | Detailed delivery attempts, ordered by most recent. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Uniquely identifies the webhook_delivery record. | [optional] | +|**userId** | **UUID** | Uniquely identifies the user that owns the webhook_delivery record. | [optional] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | Delivery status: 'delivered' when successfuly delivered or 'failed' if all attempts have failed. | [optional] | +|**webhook** | [**WebhookDeliveryWebhook**](WebhookDeliveryWebhook.md) | | [optional] | +|**startedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the first request attempt was initiated. | [optional] | +|**finishedAt** | **OffsetDateTime** | ISO 8601 timestamp indicating when the last webhook response has been received. | [optional] | +|**attempts** | [**List<Attempt>**](Attempt.md) | Detailed delivery attempts, ordered by most recent. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -DELIVERED | "delivered" -FAILED | "failed" +| Name | Value | +|---- | -----| +| DELIVERED | "delivered" | +| FAILED | "failed" | diff --git a/docs/WebhookDeliveryWebhook.md b/docs/WebhookDeliveryWebhook.md index 3babc355..1c7c3bb5 100644 --- a/docs/WebhookDeliveryWebhook.md +++ b/docs/WebhookDeliveryWebhook.md @@ -6,29 +6,29 @@ Original webhook JSON data. Payload fields vary according to event type. ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] -**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] -**id** | **UUID** | Identifies the type of resource. | [optional] -**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] -**payload** | **Object** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] | +|**eventType** | [**EventTypeEnum**](#EventTypeEnum) | The type of event being delivered. | [optional] | +|**id** | **UUID** | Identifies the type of resource. | [optional] | +|**occurredAt** | **OffsetDateTime** | ISO 8601 datetime of when the event occurred. | [optional] | +|**payload** | **Object** | | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -EVENT | "event" +| Name | Value | +|---- | -----| +| EVENT | "event" | ## Enum: EventTypeEnum -Name | Value ----- | ----- -WEBHOOK_COMMAND | "webhook.command" +| Name | Value | +|---- | -----| +| WEBHOOK_COMMAND | "webhook.command" | diff --git a/docs/WebhooksApi.md b/docs/WebhooksApi.md index 4e0b3e90..2b8d1c80 100644 --- a/docs/WebhooksApi.md +++ b/docs/WebhooksApi.md @@ -11,7 +11,7 @@ Method | HTTP request | Description ## getWebhookDeliveries -> ListWebhookDeliveriesResponse getWebhookDeliveries(filterStatusEq, filterWebhookContains, filterAttemptsContains, filterStartedAtGte, filterStartedAtLte, filterFinishedAtGte, filterFinishedAtLte, pageNumber, pageSize) +> GetWebhookDeliveries200Response getWebhookDeliveries(filterStatusEq, filterEventType, filterWebhookContains, filterAttemptsContains, filterStartedAtGte, filterStartedAtLte, filterFinishedAtGte, filterFinishedAtLte, pageNumber, pageSize) List webhook deliveries @@ -39,6 +39,7 @@ public class Example { WebhooksApi apiInstance = new WebhooksApi(defaultClient); String filterStatusEq = "delivered"; // String | Return only webhook_deliveries matching the given `status` + String filterEventType = "call_initiated,call.initiated"; // String | Return only webhook_deliveries matching the given value of `event_type`. Accepts multiple values separated by a `,`. String filterWebhookContains = "call.initiated"; // String | Return only webhook deliveries whose `webhook` component contains the given text String filterAttemptsContains = "https://fallback.example.com/webhooks"; // String | Return only webhook_deliveries whose `attempts` component contains the given text String filterStartedAtGte = "2019-03-29T11:10:00Z"; // String | Return only webhook_deliveries whose delivery started later than or at given ISO 8601 datetime @@ -48,7 +49,7 @@ public class Example { Integer pageNumber = 1; // Integer | The page number to load Integer pageSize = 20; // Integer | The size of the page try { - ListWebhookDeliveriesResponse result = apiInstance.getWebhookDeliveries(filterStatusEq, filterWebhookContains, filterAttemptsContains, filterStartedAtGte, filterStartedAtLte, filterFinishedAtGte, filterFinishedAtLte, pageNumber, pageSize); + GetWebhookDeliveries200Response result = apiInstance.getWebhookDeliveries(filterStatusEq, filterEventType, filterWebhookContains, filterAttemptsContains, filterStartedAtGte, filterStartedAtLte, filterFinishedAtGte, filterFinishedAtLte, pageNumber, pageSize); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhooksApi#getWebhookDeliveries"); @@ -67,6 +68,7 @@ public class Example { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **filterStatusEq** | **String**| Return only webhook_deliveries matching the given `status` | [optional] [enum: delivered, failed] + **filterEventType** | **String**| Return only webhook_deliveries matching the given value of `event_type`. Accepts multiple values separated by a `,`. | [optional] **filterWebhookContains** | **String**| Return only webhook deliveries whose `webhook` component contains the given text | [optional] **filterAttemptsContains** | **String**| Return only webhook_deliveries whose `attempts` component contains the given text | [optional] **filterStartedAtGte** | **String**| Return only webhook_deliveries whose delivery started later than or at given ISO 8601 datetime | [optional] @@ -78,7 +80,7 @@ Name | Type | Description | Notes ### Return type -[**ListWebhookDeliveriesResponse**](ListWebhookDeliveriesResponse.md) +[**GetWebhookDeliveries200Response**](GetWebhookDeliveries200Response.md) ### Authorization @@ -99,7 +101,7 @@ Name | Type | Description | Notes ## getWebhookDelivery -> RetrieveWebhookDelivery getWebhookDelivery(id) +> GetWebhookDelivery200Response getWebhookDelivery(id) Find webhook_delivery details by ID @@ -129,7 +131,7 @@ public class Example { WebhooksApi apiInstance = new WebhooksApi(defaultClient); UUID id = UUID.fromString("c9c0797e-901d-4349-a33c-c2c8f31a92c2"); // UUID | Uniquely identifies the webhook_delivery. try { - RetrieveWebhookDelivery result = apiInstance.getWebhookDelivery(id); + GetWebhookDelivery200Response result = apiInstance.getWebhookDelivery(id); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WebhooksApi#getWebhookDelivery"); @@ -151,7 +153,7 @@ Name | Type | Description | Notes ### Return type -[**RetrieveWebhookDelivery**](RetrieveWebhookDelivery.md) +[**GetWebhookDelivery200Response**](GetWebhookDelivery200Response.md) ### Authorization diff --git a/docs/WhatsAppBusinessAccountApi.md b/docs/WhatsAppBusinessAccountApi.md index 0f8485ff..bee7d802 100644 --- a/docs/WhatsAppBusinessAccountApi.md +++ b/docs/WhatsAppBusinessAccountApi.md @@ -86,7 +86,7 @@ Name | Type | Description | Notes ## retrieveWhatsappBusinessAccount -> RetrieveWhatsAppBusinessAccount retrieveWhatsappBusinessAccount(id).execute(); +> WhatsAppBusinessAccount retrieveWhatsappBusinessAccount(id).execute(); Retrieves a WhatsApp Business Account @@ -113,7 +113,7 @@ public class Example { WhatsAppBusinessAccountApi apiInstance = new WhatsAppBusinessAccountApi(defaultClient); String id = "id_example"; // String | Identifies the WhatsApp Business Account try { - RetrieveWhatsAppBusinessAccount result = api.retrieveWhatsappBusinessAccount(id) + WhatsAppBusinessAccount result = api.retrieveWhatsappBusinessAccount(id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -136,7 +136,7 @@ Name | Type | Description | Notes ### Return type -[**RetrieveWhatsAppBusinessAccount**](RetrieveWhatsAppBusinessAccount.md) +[**WhatsAppBusinessAccount**](WhatsAppBusinessAccount.md) ### Authorization diff --git a/docs/WhatsAppContactAddress.md b/docs/WhatsAppContactAddress.md index f4cf07f9..d863ced7 100644 --- a/docs/WhatsAppContactAddress.md +++ b/docs/WhatsAppContactAddress.md @@ -5,15 +5,15 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**city** | **String** | City name | -**country** | **String** | Full country name | -**countryCode** | **String** | Two-letter country abbreviation | -**state** | **String** | State abbreviation | -**street** | **String** | Street number and name | -**type** | **String** | Standard Values: HOME, WORK | -**zip** | **String** | ZIP code | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**city** | **String** | City name | | +|**country** | **String** | Full country name | | +|**countryCode** | **String** | Two-letter country abbreviation | | +|**state** | **String** | State abbreviation | | +|**street** | **String** | Street number and name | | +|**type** | **String** | Standard Values: HOME, WORK | | +|**zip** | **String** | ZIP code | | diff --git a/docs/WhatsAppConversationDetailRecord.md b/docs/WhatsAppConversationDetailRecord.md new file mode 100644 index 00000000..55d8c9e2 --- /dev/null +++ b/docs/WhatsAppConversationDetailRecord.md @@ -0,0 +1,30 @@ + + +# WhatsAppConversationDetailRecord + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recipientRegionCode** | **String** | CLDR two-letter region-code of recipient | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] | +|**createdAt** | **OffsetDateTime** | UTC time when the message was created | [optional] | +|**whatsappFee** | **String** | Currency amount for WhatsApp cost | [optional] | +|**conversationId** | **String** | Whatsapp Conversation ID | [optional] | +|**conversationOrigin** | [**ConversationOriginEnum**](#ConversationOriginEnum) | Whatsapp Conversation Origin | [optional] | +|**whatsappBusinessAccountId** | **String** | Whatsapp Business Account ID | [optional] | +|**recordType** | **String** | | | + + + +## Enum: ConversationOriginEnum + +| Name | Value | +|---- | -----| +| BUSINESS_INITIATED | "business_initiated" | +| USER_INITIATED | "user_initiated" | +| REFERRAL_CONVERSION | "referral_conversion" | + + + diff --git a/docs/WhatsAppDetailRecord.md b/docs/WhatsAppDetailRecord.md index c7d35c5f..8ae36961 100644 --- a/docs/WhatsAppDetailRecord.md +++ b/docs/WhatsAppDetailRecord.md @@ -5,54 +5,67 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | WhatsApp Message Id | [optional] -**version** | **String** | WhatsApp API Version | [optional] -**senderId** | **String** | WhatsApp Sender Id | [optional] -**recipientId** | **String** | WhatsApp Recipient Id | [optional] -**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | WhatsApp Message Type. Consult WhatsApp API documentation to see all available types | [optional] -**messageStatus** | [**MessageStatusEnum**](#MessageStatusEnum) | WhatsApp Message Status. Consult WhatsApp API documentation to see all available status | [optional] -**direction** | [**DirectionEnum**](#DirectionEnum) | Logical direction of the message from the Telnyx customer's perspective. It's inbound when the Telnyx customer receives the message, or outbound otherwise | [optional] -**recipientRegionCode** | **String** | CLDR two-letter region-code of recipient | [optional] -**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] -**whatsappErrorCode** | **String** | A string representing Whatsapp error code. Consult WhatsApp API documentation to see all available error codes | [optional] -**createdAt** | **OffsetDateTime** | UTC time when the message was created | [optional] -**webhookReceivedAt** | **OffsetDateTime** | UTC time when the webhook was received | [optional] -**webhookId** | **String** | UUID representation of the webhook unique identifier | [optional] -**telnyxFee** | **String** | Currency amount for Telnyx billing cost | [optional] -**whatsappFee** | **String** | Currency amount for WhatsApp cost | [optional] -**recordType** | **String** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | WhatsApp Message Id | [optional] | +|**version** | **String** | WhatsApp API Version | [optional] | +|**senderId** | **String** | WhatsApp Sender Id | [optional] | +|**recipientId** | **String** | WhatsApp Recipient Id | [optional] | +|**messageType** | [**MessageTypeEnum**](#MessageTypeEnum) | WhatsApp Message Type. Consult WhatsApp API documentation to see all available types | [optional] | +|**messageStatus** | [**MessageStatusEnum**](#MessageStatusEnum) | WhatsApp Message Status. Consult WhatsApp API documentation to see all available status | [optional] | +|**direction** | [**DirectionEnum**](#DirectionEnum) | Logical direction of the message from the Telnyx customer's perspective. It's inbound when the Telnyx customer receives the message, or outbound otherwise | [optional] | +|**recipientRegionCode** | **String** | CLDR two-letter region-code of recipient | [optional] | +|**currency** | **String** | Telnyx account currency used to describe monetary values, including billing cost | [optional] | +|**whatsappErrorCode** | **String** | A string representing Whatsapp error code. Consult WhatsApp API documentation to see all available error codes | [optional] | +|**createdAt** | **OffsetDateTime** | UTC time when the message was created | [optional] | +|**webhookReceivedAt** | **OffsetDateTime** | UTC time when the webhook was received | [optional] | +|**webhookId** | **String** | UUID representation of the webhook unique identifier | [optional] | +|**telnyxFee** | **String** | Currency amount for Telnyx billing cost | [optional] | +|**whatsappFee** | **String** | Currency amount for WhatsApp cost | [optional] | +|**conversationId** | **String** | Whatsapp Conversation ID | [optional] | +|**conversationOrigin** | [**ConversationOriginEnum**](#ConversationOriginEnum) | Whatsapp Conversation Origin | [optional] | +|**whatsappBusinessAccountId** | **String** | Whatsapp Business Account ID | [optional] | +|**recordType** | **String** | | | ## Enum: MessageTypeEnum -Name | Value ----- | ----- -SESSION | "session" -TEMPLATE | "template" +| Name | Value | +|---- | -----| +| SESSION | "session" | +| TEMPLATE | "template" | ## Enum: MessageStatusEnum -Name | Value ----- | ----- -SENT | "sent" -DELIVERED | "delivered" -READ | "read" -FAILED | "failed" -DELETED | "deleted" +| Name | Value | +|---- | -----| +| SENT | "sent" | +| DELIVERED | "delivered" | +| READ | "read" | +| FAILED | "failed" | +| DELETED | "deleted" | ## Enum: DirectionEnum -Name | Value ----- | ----- -INBOUND | "inbound" -OUTBOUND | "outbound" +| Name | Value | +|---- | -----| +| INBOUND | "inbound" | +| OUTBOUND | "outbound" | + + + +## Enum: ConversationOriginEnum + +| Name | Value | +|---- | -----| +| BUSINESS_INITIATED | "business_initiated" | +| USER_INITIATED | "user_initiated" | +| REFERRAL_CONVERSION | "referral_conversion" | diff --git a/docs/WhatsAppDetailRecordReport.md b/docs/WhatsAppDetailRecordReport.md index dfcc3631..b0be652f 100644 --- a/docs/WhatsAppDetailRecordReport.md +++ b/docs/WhatsAppDetailRecordReport.md @@ -5,26 +5,26 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | [optional] -**createdAt** | **OffsetDateTime** | | [optional] -**startDate** | **OffsetDateTime** | | [optional] -**endDate** | **OffsetDateTime** | | [optional] -**downloadLink** | **String** | | [optional] -**status** | [**StatusEnum**](#StatusEnum) | | [optional] -**recordType** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**createdAt** | **OffsetDateTime** | | [optional] | +|**startDate** | **OffsetDateTime** | | [optional] | +|**endDate** | **OffsetDateTime** | | [optional] | +|**downloadLink** | **String** | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | | [optional] | +|**recordType** | **String** | | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "PENDING" -COMPLETE | "COMPLETE" -FAILED | "FAILED" -EXPIRED | "EXPIRED" +| Name | Value | +|---- | -----| +| PENDING | "PENDING" | +| COMPLETE | "COMPLETE" | +| FAILED | "FAILED" | +| EXPIRED | "EXPIRED" | diff --git a/docs/WhatsAppDetailReportResponse.md b/docs/WhatsAppDetailReportResponse.md index ad5c15dc..0ca54ba9 100644 --- a/docs/WhatsAppDetailReportResponse.md +++ b/docs/WhatsAppDetailReportResponse.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**WhatsAppDetailRecordReport**](WhatsAppDetailRecordReport.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**WhatsAppDetailRecordReport**](WhatsAppDetailRecordReport.md) | | [optional] | diff --git a/docs/WhatsAppGetAllDetailReportResponse.md b/docs/WhatsAppGetAllDetailReportResponse.md index 2fd70ccd..4afe15a8 100644 --- a/docs/WhatsAppGetAllDetailReportResponse.md +++ b/docs/WhatsAppGetAllDetailReportResponse.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<WhatsAppDetailRecordReport>**](WhatsAppDetailRecordReport.md) | | [optional] -**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WhatsAppDetailRecordReport>**](WhatsAppDetailRecordReport.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | diff --git a/docs/WhatsAppMessageTemplate.md b/docs/WhatsAppMessageTemplate.md new file mode 100644 index 00000000..12f1c7fc --- /dev/null +++ b/docs/WhatsAppMessageTemplate.md @@ -0,0 +1,131 @@ + + +# WhatsappMessageTemplate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Telnyx record type | [optional] | +|**category** | [**CategoryEnum**](#CategoryEnum) | The category of the message template, The possible values are provided by WhatsApp and are subject to change. | [optional] | +|**components** | [**List<WhatsappMessageTemplateComponentsInner>**](WhatsappMessageTemplateComponentsInner.md) | The components of the message template | [optional] | +|**id** | **String** | The id of the template on WhatsApp | [optional] | +|**language** | [**LanguageEnum**](#LanguageEnum) | The language of the message template, The available languages are provided by WhatsApp and are subject to change. | [optional] | +|**name** | **String** | This name will act as an identifier grouping similar message templates together, the same name can be used to different languages. | [optional] | +|**qualityScore** | [**WhatsappMessageTemplateQualityScore**](WhatsappMessageTemplateQualityScore.md) | | [optional] | +|**rejectedReason** | **String** | | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The current status of the message template, The possible values are provided by WhatsApp and are subject to change. | [optional] | + + + +## Enum: CategoryEnum + +| Name | Value | +|---- | -----| +| ACCOUNT_UPDATE | "ACCOUNT_UPDATE" | +| PAYMENT_UPDATE | "PAYMENT_UPDATE" | +| PERSONAL_FINANCE_UPDATE | "PERSONAL_FINANCE_UPDATE" | +| SHIPPING_UPDATE | "SHIPPING_UPDATE" | +| RESERVATION_UPDATE | "RESERVATION_UPDATE" | +| ISSUE_RESOLUTION | "ISSUE_RESOLUTION" | +| APPOINTMENT_UPDATE | "APPOINTMENT_UPDATE" | +| TRANSPORTATION_UPDATE | "TRANSPORTATION_UPDATE" | +| TICKET_UPDATE | "TICKET_UPDATE" | +| ALERT_UPDATE | "ALERT_UPDATE" | +| AUTO_REPLY | "AUTO_REPLY" | + + + +## Enum: LanguageEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| SQ | "sq" | +| AR | "ar" | +| AZ | "az" | +| BN | "bn" | +| BG | "bg" | +| CA | "ca" | +| ZH_CN | "zh_CN" | +| ZH_HK | "zh_HK" | +| ZH_TW | "zh_TW" | +| HR | "hr" | +| CS | "cs" | +| DA | "da" | +| NL | "nl" | +| EN | "en" | +| EN_GB | "en_GB" | +| EN_US | "en_US" | +| ET | "et" | +| FIL | "fil" | +| FI | "fi" | +| FR | "fr" | +| KA | "ka" | +| DE | "de" | +| EL | "el" | +| GU | "gu" | +| HA | "ha" | +| HE | "he" | +| HI | "hi" | +| HU | "hu" | +| ID | "id" | +| GA | "ga" | +| IT | "it" | +| JA | "ja" | +| KN | "kn" | +| KK | "kk" | +| RW_RW | "rw_RW" | +| KO | "ko" | +| KY_KG | "ky_KG" | +| LO | "lo" | +| LV | "lv" | +| LT | "lt" | +| MK | "mk" | +| MS | "ms" | +| ML | "ml" | +| MR | "mr" | +| NB | "nb" | +| FA | "fa" | +| PL | "pl" | +| PT_BR | "pt_BR" | +| PT_PT | "pt_PT" | +| PA | "pa" | +| RO | "ro" | +| RU | "ru" | +| SR | "sr" | +| SK | "sk" | +| SL | "sl" | +| ES | "es" | +| ES_AR | "es_AR" | +| ES_ES | "es_ES" | +| ES_MX | "es_MX" | +| SW | "sw" | +| SV | "sv" | +| TA | "ta" | +| TE | "te" | +| TH | "th" | +| TR | "tr" | +| UK | "uk" | +| UR | "ur" | +| UZ | "uz" | +| VI | "vi" | +| ZU | "zu" | + + + +## Enum: StatusEnum + +| Name | Value | +|---- | -----| +| APPROVED | "APPROVED" | +| IN_APPEAL | "IN_APPEAL" | +| PENDING | "PENDING" | +| REJECTED | "REJECTED" | +| PENDING_DELETION | "PENDING_DELETION" | +| DELETED | "DELETED" | +| DISABLED | "DISABLED" | + + + diff --git a/docs/WhatsAppMessageTemplate1.md b/docs/WhatsAppMessageTemplate1.md new file mode 100644 index 00000000..bf1232ed --- /dev/null +++ b/docs/WhatsAppMessageTemplate1.md @@ -0,0 +1,14 @@ + + +# WhatsAppMessageTemplate1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | | [optional] | +|**recordType** | **String** | | [optional] | + + + diff --git a/docs/WhatsAppMessageTemplateApi.md b/docs/WhatsAppMessageTemplateApi.md new file mode 100644 index 00000000..4bd51952 --- /dev/null +++ b/docs/WhatsAppMessageTemplateApi.md @@ -0,0 +1,254 @@ +# WhatsAppMessageTemplateApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**createWhatsappMessageTemplates**](WhatsAppMessageTemplateApi.md#createWhatsappMessageTemplates) | **POST** /whatsapp_business_accounts/{id}/whatsapp_message_templates | Create WhatsApp Message Templates +[**deleteWhatsappMessageTemplates**](WhatsAppMessageTemplateApi.md#deleteWhatsappMessageTemplates) | **DELETE** /whatsapp_business_accounts/{id}/whatsapp_message_templates/{name} | Delete WhatsApp Message Templates +[**listWhatsappMessageTemplates**](WhatsAppMessageTemplateApi.md#listWhatsappMessageTemplates) | **GET** /whatsapp_business_accounts/{id}/whatsapp_message_templates | List WhatsApp Message Templates + + + +## createWhatsappMessageTemplates + +> WhatsAppMessageTemplate1 createWhatsappMessageTemplates(id, createWhatsappMessageTemplateRequestBody) + +Create WhatsApp Message Templates + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WhatsAppMessageTemplateApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WhatsAppMessageTemplateApi apiInstance = new WhatsAppMessageTemplateApi(defaultClient); + UUID id = UUID.fromString("12ade33a-21c0-473b-b055-b3c836e1c292"); // UUID | Identifies the WhatsApp Business Account + CreateWhatsappMessageTemplateRequestBody createWhatsappMessageTemplateRequestBody = new CreateWhatsappMessageTemplateRequestBody(); // CreateWhatsappMessageTemplateRequestBody | + try { + WhatsAppMessageTemplate1 result = apiInstance.createWhatsappMessageTemplates(id, createWhatsappMessageTemplateRequestBody); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WhatsAppMessageTemplateApi#createWhatsappMessageTemplates"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the WhatsApp Business Account | + **createWhatsappMessageTemplateRequestBody** | [**CreateWhatsappMessageTemplateRequestBody**](CreateWhatsappMessageTemplateRequestBody.md)| | [optional] + +### Return type + +[**WhatsAppMessageTemplate1**](WhatsAppMessageTemplate1.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | WhatsApp Message Template | - | +| **0** | Unexpected error | - | + + +## deleteWhatsappMessageTemplates + +> deleteWhatsappMessageTemplates(id, name) + +Delete WhatsApp Message Templates + +Deletes all of the message templates with the given name and business account + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WhatsAppMessageTemplateApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WhatsAppMessageTemplateApi apiInstance = new WhatsAppMessageTemplateApi(defaultClient); + UUID id = UUID.fromString("12ade33a-21c0-473b-b055-b3c836e1c292"); // UUID | Identifies the WhatsApp Business Account + String name = "my_test_template2"; // String | The name of the Whatsapp Message Template + try { + apiInstance.deleteWhatsappMessageTemplates(id, name); + } catch (ApiException e) { + System.err.println("Exception when calling WhatsAppMessageTemplateApi#deleteWhatsappMessageTemplates"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the WhatsApp Business Account | + **name** | **String**| The name of the Whatsapp Message Template | + +### Return type + +null (empty response body) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | All message templates with the given name have been deleted | - | +| **0** | Unexpected error | - | + + +## listWhatsappMessageTemplates + +> WhatsAppMessageTemplate listWhatsappMessageTemplates(id).category(category).language(language).name(name).qualityScore(qualityScore).rejectedReason(rejectedReason).limit(limit).before(before).after(after).status(status).execute(); + +List WhatsApp Message Templates + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WhatsAppMessageTemplateApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WhatsAppMessageTemplateApi apiInstance = new WhatsAppMessageTemplateApi(defaultClient); + UUID id = UUID.fromString("12ade33a-21c0-473b-b055-b3c836e1c292"); // UUID | Identifies the WhatsApp Business Account + String category = "ACCOUNT_UPDATE"; // String | The template category + String language = "af"; // String | The language of the whatsapp message template + String name = "name_example"; // String | A name identifying this whatsapp message template + String qualityScore = "qualityScore_example"; // String | The score of the whatsapp message template + String rejectedReason = "rejectedReason_example"; // String | The reason why a message template was rejected by Whatsapp + String limit = "10"; // String | The maximum number of message_templates to be returned on a query, we may return less than the limit number even if more pages are available. + String before = "QAVCEP"; // String | Indicates that this is a query for entries before the given cursor + String after = "QAVCEP"; // String | Indicates that this is a query for entries after the given cursor + String status = "APPROVED"; // String | Identifies the whatsApp Message Template status + try { + WhatsAppMessageTemplate result = api.listWhatsappMessageTemplates(id) + .category(category) + .language(language) + .name(name) + .qualityScore(qualityScore) + .rejectedReason(rejectedReason) + .limit(limit) + .before(before) + .after(after) + .status(status) + .execute(); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WhatsAppMessageTemplateApi#listWhatsappMessageTemplates"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the WhatsApp Business Account | + **category** | **String**| The template category | [optional] [enum: ACCOUNT_UPDATE, PAYMENT_UPDATE, PERSONAL_FINANCE_UPDATE, SHIPPING_UPDATE, RESERVATION_UPDATE, ISSUE_RESOLUTION, APPOINTMENT_UPDATE, TRANSPORTATION_UPDATE, TICKET_UPDATE, ALERT_UPDATE, AUTO_REPLY] + **language** | **String**| The language of the whatsapp message template | [optional] [enum: af, sq, ar, az, bn, bg, ca, zh_CN, zh_HK, zh_TW, hr, cs, da, nl, en, en_GB, en_US, et, fil, fi, fr, ka, de, el, gu, ha, he, hi, hu, id, ga, it, ja, kn, kk, rw_RW, ko, ky_KG, lo, lv, lt, mk, ms, ml, mr, nb, fa, pl, pt_BR, pt_PT, pa, ro, ru, sr, sk, sl, es, es_AR, es_ES, es_MX, sw, sv, ta, te, th, tr, uk, ur, uz, vi, zu] + **name** | **String**| A name identifying this whatsapp message template | [optional] + **qualityScore** | **String**| The score of the whatsapp message template | [optional] + **rejectedReason** | **String**| The reason why a message template was rejected by Whatsapp | [optional] + **limit** | **String**| The maximum number of message_templates to be returned on a query, we may return less than the limit number even if more pages are available. | [optional] + **before** | **String**| Indicates that this is a query for entries before the given cursor | [optional] + **after** | **String**| Indicates that this is a query for entries after the given cursor | [optional] + **status** | **String**| Identifies the whatsApp Message Template status | [optional] + +### Return type + +[**WhatsAppMessageTemplate**](WhatsAppMessageTemplate.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | WhatsApp Message Template | - | +| **0** | Unexpected error | - | + diff --git a/docs/WhatsAppMessagesApi.md b/docs/WhatsAppMessagesApi.md index 7d38ce93..bc5027a3 100644 --- a/docs/WhatsAppMessagesApi.md +++ b/docs/WhatsAppMessagesApi.md @@ -83,7 +83,7 @@ null (empty response body) ## sendMessage -> WhatsAppMessageResponse sendMessage(createWhatsAppMessageRequest) +> SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent sendMessage(createWhatsAppMessageRequest) Send Message @@ -112,7 +112,7 @@ public class Example { WhatsAppMessagesApi apiInstance = new WhatsAppMessagesApi(defaultClient); CreateWhatsAppMessageRequest createWhatsAppMessageRequest = new CreateWhatsAppMessageRequest(); // CreateWhatsAppMessageRequest | try { - WhatsAppMessageResponse result = apiInstance.sendMessage(createWhatsAppMessageRequest); + SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent result = apiInstance.sendMessage(createWhatsAppMessageRequest); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling WhatsAppMessagesApi#sendMessage"); @@ -134,7 +134,7 @@ Name | Type | Description | Notes ### Return type -[**WhatsAppMessageResponse**](WhatsAppMessageResponse.md) +[**SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent**](SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.md) ### Authorization diff --git a/docs/WhatsAppPhoneNumberApi.md b/docs/WhatsAppPhoneNumberApi.md index 7edf6388..fc823c14 100644 --- a/docs/WhatsAppPhoneNumberApi.md +++ b/docs/WhatsAppPhoneNumberApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## patchWhatsappPhoneNumber -> UpdateWhatsAppPhoneNumber patchWhatsappPhoneNumber(id).updateWhatsappPhoneNumberRequest(updateWhatsappPhoneNumberRequest).execute(); +> WhatsAppPhoneNumber patchWhatsappPhoneNumber(id).updateWhatsappPhoneNumberRequest(updateWhatsappPhoneNumberRequest).execute(); Update a WhatsApp Phone Number webhook @@ -42,7 +42,7 @@ public class Example { String id = "id_example"; // String | Identifies the WhatsApp Phone Number UpdateWhatsappPhoneNumberRequest updateWhatsappPhoneNumberRequest = new UpdateWhatsappPhoneNumberRequest(); // UpdateWhatsappPhoneNumberRequest | try { - UpdateWhatsAppPhoneNumber result = api.patchWhatsappPhoneNumber(id) + WhatsAppPhoneNumber result = api.patchWhatsappPhoneNumber(id) .updateWhatsappPhoneNumberRequest(updateWhatsappPhoneNumberRequest) .execute(); System.out.println(result); @@ -67,7 +67,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateWhatsAppPhoneNumber**](UpdateWhatsAppPhoneNumber.md) +[**WhatsAppPhoneNumber**](WhatsAppPhoneNumber.md) ### Authorization @@ -159,7 +159,7 @@ null (empty response body) ## patchWhatsappProfilePhoto -> UpdateWhatsAppProfilePhoto patchWhatsappProfilePhoto(id).photo(photo).execute(); +> WhatsAppProfilePhoto patchWhatsappProfilePhoto(id).photo(photo).execute(); Update the Whatsapp Profile Photo for a given Whatsapp Phone Number @@ -188,7 +188,7 @@ public class Example { String id = "id_example"; // String | Identifies the WhatsApp Phone Number File photo = new File("/path/to/file"); // File | Must be an image with exactly 640x640px dimensions. try { - UpdateWhatsAppProfilePhoto result = api.patchWhatsappProfilePhoto(id) + WhatsAppProfilePhoto result = api.patchWhatsappProfilePhoto(id) .photo(photo) .execute(); System.out.println(result); @@ -213,7 +213,7 @@ Name | Type | Description | Notes ### Return type -[**UpdateWhatsAppProfilePhoto**](UpdateWhatsAppProfilePhoto.md) +[**WhatsAppProfilePhoto**](WhatsAppProfilePhoto.md) ### Authorization @@ -233,7 +233,7 @@ Name | Type | Description | Notes ## retrieveWhatsappPhoneNumber -> RetrieveWhatsAppPhoneNumber retrieveWhatsappPhoneNumber(id).execute(); +> WhatsAppPhoneNumber retrieveWhatsappPhoneNumber(id).execute(); Retrieves a WhatsApp Phone Number @@ -260,7 +260,7 @@ public class Example { WhatsAppPhoneNumberApi apiInstance = new WhatsAppPhoneNumberApi(defaultClient); String id = "id_example"; // String | Identifies the WhatsApp Phone Number try { - RetrieveWhatsAppPhoneNumber result = api.retrieveWhatsappPhoneNumber(id) + WhatsAppPhoneNumber result = api.retrieveWhatsappPhoneNumber(id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -283,7 +283,7 @@ Name | Type | Description | Notes ### Return type -[**RetrieveWhatsAppPhoneNumber**](RetrieveWhatsAppPhoneNumber.md) +[**WhatsAppPhoneNumber**](WhatsAppPhoneNumber.md) ### Authorization @@ -303,7 +303,7 @@ Name | Type | Description | Notes ## retrieveWhatsappProfilePhoto -> RetrieveWhatsAppProfilePhoto retrieveWhatsappProfilePhoto(id).execute(); +> WhatsAppProfilePhoto retrieveWhatsappProfilePhoto(id).execute(); Retrieves a Whatsapp Profile Photo for a WhatsApp Phone Number @@ -330,7 +330,7 @@ public class Example { WhatsAppPhoneNumberApi apiInstance = new WhatsAppPhoneNumberApi(defaultClient); String id = "id_example"; // String | Identifies the WhatsApp Phone Number try { - RetrieveWhatsAppProfilePhoto result = api.retrieveWhatsappProfilePhoto(id) + WhatsAppProfilePhoto result = api.retrieveWhatsappProfilePhoto(id) .execute(); System.out.println(result); } catch (ApiException e) { @@ -353,7 +353,7 @@ Name | Type | Description | Notes ### Return type -[**RetrieveWhatsAppProfilePhoto**](RetrieveWhatsAppProfilePhoto.md) +[**WhatsAppProfilePhoto**](WhatsAppProfilePhoto.md) ### Authorization diff --git a/docs/WhatsAppReportsReq.md b/docs/WhatsAppReportsReq.md index 152e164b..ffac8f99 100644 --- a/docs/WhatsAppReportsReq.md +++ b/docs/WhatsAppReportsReq.md @@ -5,10 +5,10 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**startDate** | **OffsetDateTime** | | -**endDate** | **OffsetDateTime** | | +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**startDate** | **OffsetDateTime** | | | +|**endDate** | **OffsetDateTime** | | | diff --git a/docs/WhatsAppUsageAggregation.md b/docs/WhatsAppUsageAggregation.md index f4f09dad..c2cbd640 100644 --- a/docs/WhatsAppUsageAggregation.md +++ b/docs/WhatsAppUsageAggregation.md @@ -5,17 +5,17 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**messageType** | **String** | | [optional] -**direction** | **String** | | [optional] -**status** | **String** | | [optional] -**recipientCountryCode** | **String** | | [optional] -**whatsappFee** | [**Money**](Money.md) | | [optional] -**telnyxFee** | [**Money**](Money.md) | | [optional] -**cost** | [**Money**](Money.md) | | [optional] -**count** | **String** | | [optional] -**recordType** | **String** | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**messageType** | **String** | | [optional] | +|**direction** | **String** | | [optional] | +|**status** | **String** | | [optional] | +|**recipientCountryCode** | **String** | | [optional] | +|**whatsappFee** | [**Money**](Money.md) | | [optional] | +|**telnyxFee** | [**Money**](Money.md) | | [optional] | +|**cost** | [**Money**](Money.md) | | [optional] | +|**count** | **String** | | [optional] | +|**recordType** | **String** | | [optional] | diff --git a/docs/WhatsAppUsageAggregationsResponseContainer.md b/docs/WhatsAppUsageAggregationsResponseContainer.md index 4646971c..82c6b9c4 100644 --- a/docs/WhatsAppUsageAggregationsResponseContainer.md +++ b/docs/WhatsAppUsageAggregationsResponseContainer.md @@ -5,9 +5,9 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**data** | [**List<WhatsAppUsageAggregation>**](WhatsAppUsageAggregation.md) | | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WhatsAppUsageAggregation>**](WhatsAppUsageAggregation.md) | | [optional] | diff --git a/docs/WhatsAppUser.md b/docs/WhatsAppUser.md index 62a3432b..340177e2 100644 --- a/docs/WhatsAppUser.md +++ b/docs/WhatsAppUser.md @@ -6,19 +6,19 @@ The WhatsApp user object ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] -**id** | **String** | The WhatsApp User ID, usually a phone number. | [optional] -**webhookUrl** | **String** | The URL that WhatsApp webhooks are sent to. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | [**RecordTypeEnum**](#RecordTypeEnum) | Identifies the type of the resource. | [optional] [readonly] | +|**id** | **String** | The WhatsApp User ID, usually a phone number. | [optional] | +|**webhookUrl** | **String** | The URL that WhatsApp webhooks are sent to. | [optional] | ## Enum: RecordTypeEnum -Name | Value ----- | ----- -WHATSAPP_USER | "whatsapp_user" +| Name | Value | +|---- | -----| +| WHATSAPP_USER | "whatsapp_user" | diff --git a/docs/WhatsappBusinessAccount.md b/docs/WhatsappBusinessAccount.md index 8bddb7ca..cc29e69b 100644 --- a/docs/WhatsappBusinessAccount.md +++ b/docs/WhatsappBusinessAccount.md @@ -5,24 +5,24 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] -**id** | **UUID** | | [optional] -**organizationId** | **UUID** | The owning organization's ID | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The configuration status for the account in the Telnyx platform | [optional] -**whatsappSettings** | [**WhatsappBusinessAccountWhatsappSettings**](WhatsappBusinessAccountWhatsappSettings.md) | | [optional] -**createdAt** | **String** | An ISO 8601 datetime string denoting when the account was added to the Telnyx platform | [optional] -**updatedAt** | **String** | An ISO 8601 datetime string for when the number order was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] | +|**id** | **UUID** | | [optional] | +|**organizationId** | **UUID** | The owning organization's ID | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The configuration status for the account in the Telnyx platform | [optional] | +|**whatsappSettings** | [**WhatsappBusinessAccountWhatsappSettings**](WhatsappBusinessAccountWhatsappSettings.md) | | [optional] | +|**createdAt** | **String** | An ISO 8601 datetime string denoting when the account was added to the Telnyx platform | [optional] | +|**updatedAt** | **String** | An ISO 8601 datetime string for when the number order was updated. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -SETUP | "setup" -READY | "ready" +| Name | Value | +|---- | -----| +| SETUP | "setup" | +| READY | "ready" | diff --git a/docs/WhatsappBusinessAccountWhatsappSettings.md b/docs/WhatsappBusinessAccountWhatsappSettings.md index 59ce7fdb..c09b3f97 100644 --- a/docs/WhatsappBusinessAccountWhatsappSettings.md +++ b/docs/WhatsappBusinessAccountWhatsappSettings.md @@ -6,36 +6,36 @@ The Facebook settings associated with the business account ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | The unique ID of the business account in Facebook | [optional] -**name** | **String** | The name of the business account in Facebook | [optional] -**accountReviewStatus** | [**AccountReviewStatusEnum**](#AccountReviewStatusEnum) | The review status of the account in Facebook.</br><ul><li><code>PENDING</code>The account is waiting for review by the WhatsApp team. At this stage, the account is allowed only to send messages using the pre-approved messaging templates, from a single verified phone-number.</li><li><code>APPROVED</code>The WhatsApp team demeed the account as valid and now it has access to all capabilities that the WhatsApp integration offers.</li><li><code>REJECTED</code>The account was rejected by the WhatsApp team. It will need to re-submit its business information to resume the approval process.</li></ul> | [optional] -**ownerBusinessId** | **String** | The unique ID of the business that owns the account in Facebook | [optional] -**ownerBusinessName** | **String** | The name of the business that owns the account in Facebook | [optional] -**messageTemplateNamespace** | **String** | The account's message template namespace provideded by Facebook | [optional] -**banState** | [**BanStateEnum**](#BanStateEnum) | The ban state of the account in Facebook. | [optional] -**banDate** | **LocalDate** | The date the account was banned in Facebook. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The unique ID of the business account in Facebook | [optional] | +|**name** | **String** | The name of the business account in Facebook | [optional] | +|**accountReviewStatus** | [**AccountReviewStatusEnum**](#AccountReviewStatusEnum) | The review status of the account in Facebook.</br><ul><li><code>PENDING</code>The account is waiting for review by the WhatsApp team. At this stage, the account is allowed only to send messages using the pre-approved messaging templates, from a single verified phone-number.</li><li><code>APPROVED</code>The WhatsApp team demeed the account as valid and now it has access to all capabilities that the WhatsApp integration offers.</li><li><code>REJECTED</code>The account was rejected by the WhatsApp team. It will need to re-submit its business information to resume the approval process.</li></ul> | [optional] | +|**ownerBusinessId** | **String** | The unique ID of the business that owns the account in Facebook | [optional] | +|**ownerBusinessName** | **String** | The name of the business that owns the account in Facebook | [optional] | +|**messageTemplateNamespace** | **String** | The account's message template namespace provideded by Facebook | [optional] | +|**banState** | [**BanStateEnum**](#BanStateEnum) | The ban state of the account in Facebook. | [optional] | +|**banDate** | **LocalDate** | The date the account was banned in Facebook. | [optional] | ## Enum: AccountReviewStatusEnum -Name | Value ----- | ----- -PENDING | "PENDING" -APPROVED | "APPROVED" -REJECTED | "REJECTED" +| Name | Value | +|---- | -----| +| PENDING | "PENDING" | +| APPROVED | "APPROVED" | +| REJECTED | "REJECTED" | ## Enum: BanStateEnum -Name | Value ----- | ----- -SCHEDULE_FOR_DISABLE | "SCHEDULE_FOR_DISABLE" -DISABLE | "DISABLE" -REINSTATE | "REINSTATE" +| Name | Value | +|---- | -----| +| SCHEDULE_FOR_DISABLE | "SCHEDULE_FOR_DISABLE" | +| DISABLE | "DISABLE" | +| REINSTATE | "REINSTATE" | diff --git a/docs/WhatsappMessageTemplateComponentsInner.md b/docs/WhatsappMessageTemplateComponentsInner.md new file mode 100644 index 00000000..12bdc311 --- /dev/null +++ b/docs/WhatsappMessageTemplateComponentsInner.md @@ -0,0 +1,15 @@ + + +# WhatsappMessageTemplateComponentsInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**type** | **String** | | [optional] | +|**text** | **String** | | [optional] | +|**format** | **String** | | [optional] | + + + diff --git a/docs/WhatsappMessageTemplateQualityScore.md b/docs/WhatsappMessageTemplateQualityScore.md new file mode 100644 index 00000000..f74eb032 --- /dev/null +++ b/docs/WhatsappMessageTemplateQualityScore.md @@ -0,0 +1,25 @@ + + +# WhatsappMessageTemplateQualityScore + +The quality rating shows how messages from your template have been received by your customers in a rolling window of the past 24 hours. The possible values are provided by WhatsApp and are subject to change. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**score** | [**ScoreEnum**](#ScoreEnum) | | [optional] | + + + +## Enum: ScoreEnum + +| Name | Value | +|---- | -----| +| UNKNOWN | "UNKNOWN" | +| HIGH | "HIGH" | +| MEDIUM | "MEDIUM" | +| LOW | "LOW" | + + + diff --git a/docs/WhatsappPhoneNumber.md b/docs/WhatsappPhoneNumber.md index a4d48df8..74c197cb 100644 --- a/docs/WhatsappPhoneNumber.md +++ b/docs/WhatsappPhoneNumber.md @@ -5,29 +5,30 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] -**id** | **UUID** | | [optional] -**organizationId** | **UUID** | The owning organization's ID | [optional] -**whatsappBusinessAccountId** | **UUID** | The associated WhatsApp Business Account ID | [optional] -**status** | [**StatusEnum**](#StatusEnum) | The configuration status for the phone number in the Telnyx platform | [optional] -**webhookUrl** | **String** | The webhook url to be used by facebook | [optional] -**about** | **String** | The WhatsApp about section content | [optional] -**phoneNumber** | **String** | The phone number in E164 format | [optional] -**whatsappUserId** | **String** | The phone number's WhatsApp User ID, used in other Telnyx Whatsapp API endpoints | [optional] -**whatsappSettings** | [**Object**](Object.md) | The WhatsApp settings associated with the business account | [optional] -**createdAt** | **String** | An ISO 8601 datetime string denoting when the account was added to the Telnyx platform | [optional] -**updatedAt** | **String** | An ISO 8601 datetime string for when the number order was updated. | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] | +|**id** | **UUID** | | [optional] | +|**organizationId** | **UUID** | The owning organization's ID | [optional] | +|**whatsappBusinessAccountId** | **UUID** | The associated WhatsApp Business Account ID | [optional] | +|**status** | [**StatusEnum**](#StatusEnum) | The configuration status for the phone number in the Telnyx platform | [optional] | +|**webhookUrl** | **String** | The webhook url to be used by facebook | [optional] | +|**about** | **String** | The WhatsApp about section content | [optional] | +|**phoneNumber** | **String** | The phone number in E164 format | [optional] | +|**whatsappUserId** | **String** | The phone number's WhatsApp User ID, used in other Telnyx Whatsapp API endpoints | [optional] | +|**whatsappSettings** | [**WhatsappPhoneNumberWhatsappSettings**](WhatsappPhoneNumberWhatsappSettings.md) | | [optional] | +|**createdAt** | **String** | An ISO 8601 datetime string denoting when the account was added to the Telnyx platform | [optional] | +|**updatedAt** | **String** | An ISO 8601 datetime string for when the number order was updated. | [optional] | ## Enum: StatusEnum -Name | Value ----- | ----- -PENDING | "pending" -READY | "ready" +| Name | Value | +|---- | -----| +| PENDING | "pending" | +| READY | "ready" | +| DISCONNECTED | "disconnected" | diff --git a/docs/WhatsappPhoneNumberWhatsappSettings.md b/docs/WhatsappPhoneNumberWhatsappSettings.md new file mode 100644 index 00000000..67a4a88b --- /dev/null +++ b/docs/WhatsappPhoneNumberWhatsappSettings.md @@ -0,0 +1,29 @@ + + +# WhatsappPhoneNumberWhatsappSettings + +The WhatsApp settings associated with the business account + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **String** | The unique ID of the phone number in Facebook | [optional] | +|**displayName** | **String** | The display name of the phone number in the WhatsApp app | [optional] | +|**displayNameStatus** | [**DisplayNameStatusEnum**](#DisplayNameStatusEnum) | The Facebook approval status of the phone numbers display name | [optional] | +|**qualityRating** | **String** | The quality rating of the number in the WhatsApp app | [optional] | + + + +## Enum: DisplayNameStatusEnum + +| Name | Value | +|---- | -----| +| PENDING_REVIEW | "PENDING_REVIEW" | +| APPROVED | "APPROVED" | +| DECLINED | "DECLINED" | +| EXPIRED | "EXPIRED" | +| NONE | "NONE" | + + + diff --git a/docs/WhatsappProfilePhoto.md b/docs/WhatsappProfilePhoto.md index 96dc5164..97d75cbe 100644 --- a/docs/WhatsappProfilePhoto.md +++ b/docs/WhatsappProfilePhoto.md @@ -5,12 +5,12 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | the record type | [optional] -**thumbnailPhotoUrl** | **String** | An URL to the thumbnail photo | [optional] -**phoneNumberId** | **UUID** | The associated Whatsapp Phone Number ID | [optional] -**whatsappUserId** | **String** | The phone number's WhatsApp User ID, used in other Telnyx Whatsapp API endpoints | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | the record type | [optional] | +|**thumbnailPhotoUrl** | **String** | An URL to the thumbnail photo | [optional] | +|**phoneNumberId** | **UUID** | The associated Whatsapp Phone Number ID | [optional] | +|**whatsappUserId** | **String** | The phone number's WhatsApp User ID, used in other Telnyx Whatsapp API endpoints | [optional] | diff --git a/docs/WireGuardInterfacesApi.md b/docs/WireGuardInterfacesApi.md new file mode 100644 index 00000000..f4a29d21 --- /dev/null +++ b/docs/WireGuardInterfacesApi.md @@ -0,0 +1,905 @@ +# WireGuardInterfacesApi + +All URIs are relative to *https://api.telnyx.com/v2* + +Method | HTTP request | Description +------------- | ------------- | ------------- +[**wireguardInterfaceCreate**](WireGuardInterfacesApi.md#wireguardInterfaceCreate) | **POST** /wireguard_interfaces | Create a WireGuard Interface +[**wireguardInterfaceDelete**](WireGuardInterfacesApi.md#wireguardInterfaceDelete) | **DELETE** /wireguard_interfaces/{id} | Delete a WireGuard Interface +[**wireguardInterfaceGet**](WireGuardInterfacesApi.md#wireguardInterfaceGet) | **GET** /wireguard_interfaces/{id} | Retrieve a WireGuard Interfaces +[**wireguardInterfaceList**](WireGuardInterfacesApi.md#wireguardInterfaceList) | **GET** /wireguard_interfaces | List all WireGuard Interfaces +[**wireguardPeerAllowedIPGet**](WireGuardInterfacesApi.md#wireguardPeerAllowedIPGet) | **GET** /wireguard_peers/{id}/allowed_ips/{child_id} | Retrieve the Allowed IP +[**wireguardPeerAllowedIPList**](WireGuardInterfacesApi.md#wireguardPeerAllowedIPList) | **GET** /wireguard_peers/{id}/allowed_ips | List all Allowed IPs for a WireGuard Peer +[**wireguardPeerConfig**](WireGuardInterfacesApi.md#wireguardPeerConfig) | **GET** /wireguard_peers/{id}/config | Retrieve Wireguard config template for Peer +[**wireguardPeerCreate**](WireGuardInterfacesApi.md#wireguardPeerCreate) | **POST** /wireguard_peers | Create a WireGuard Peer +[**wireguardPeerDelete**](WireGuardInterfacesApi.md#wireguardPeerDelete) | **DELETE** /wireguard_peers/{id} | Delete the WireGuard Peer +[**wireguardPeerGet**](WireGuardInterfacesApi.md#wireguardPeerGet) | **GET** /wireguard_peers/{id} | Retrieve the WireGuard Peer +[**wireguardPeerList**](WireGuardInterfacesApi.md#wireguardPeerList) | **GET** /wireguard_peers | List all WireGuard Peers +[**wireguardPeerUpdate**](WireGuardInterfacesApi.md#wireguardPeerUpdate) | **PATCH** /wireguard_peers/{id} | Update the WireGuard Peer + + + +## wireguardInterfaceCreate + +> WireguardInterfaceCreate202Response wireguardInterfaceCreate(wireguardInterfaceCreate) + +Create a WireGuard Interface + +Create a new WireGuard Interface. Current limitation of 10 interfaces per user can be created. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + WireguardInterfaceCreate wireguardInterfaceCreate = new WireguardInterfaceCreate(); // WireguardInterfaceCreate | + try { + WireguardInterfaceCreate202Response result = apiInstance.wireguardInterfaceCreate(wireguardInterfaceCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardInterfaceCreate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **wireguardInterfaceCreate** | [**WireguardInterfaceCreate**](WireguardInterfaceCreate.md)| | + +### Return type + +[**WireguardInterfaceCreate202Response**](WireguardInterfaceCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + + +## wireguardInterfaceDelete + +> WireguardInterfaceCreate202Response wireguardInterfaceDelete(id) + +Delete a WireGuard Interface + +Delete a WireGuard Interface. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + WireguardInterfaceCreate202Response result = apiInstance.wireguardInterfaceDelete(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardInterfaceDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**WireguardInterfaceCreate202Response**](WireguardInterfaceCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardInterfaceGet + +> WireguardInterfaceCreate202Response wireguardInterfaceGet(id) + +Retrieve a WireGuard Interfaces + +Retrieve a WireGuard Interfaces. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + WireguardInterfaceCreate202Response result = apiInstance.wireguardInterfaceGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardInterfaceGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**WireguardInterfaceCreate202Response**](WireguardInterfaceCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardInterfaceList + +> WireguardInterfaceList200Response wireguardInterfaceList(pageNumber, pageSize, filterNetworkId) + +List all WireGuard Interfaces + +List all WireGuard Interfaces. + +### Example + +```java +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + String filterNetworkId = "6a09cdc3-8948-47f0-aa62-74ac943d6c58"; // String | The associated network id to filter on. + try { + WireguardInterfaceList200Response result = apiInstance.wireguardInterfaceList(pageNumber, pageSize, filterNetworkId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardInterfaceList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterNetworkId** | **String**| The associated network id to filter on. | [optional] + +### Return type + +[**WireguardInterfaceList200Response**](WireguardInterfaceList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardPeerAllowedIPGet + +> WireguardPeerAllowedIPGet200Response wireguardPeerAllowedIPGet(id, childId) + +Retrieve the Allowed IP + +Retrieve the Allowed IP. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + UUID childId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the child resource + try { + WireguardPeerAllowedIPGet200Response result = apiInstance.wireguardPeerAllowedIPGet(id, childId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerAllowedIPGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **childId** | **UUID**| Identifies the child resource | + +### Return type + +[**WireguardPeerAllowedIPGet200Response**](WireguardPeerAllowedIPGet200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardPeerAllowedIPList + +> WireguardPeerAllowedIPList200Response wireguardPeerAllowedIPList(id, pageNumber, pageSize) + +List all Allowed IPs for a WireGuard Peer + +List all Allowed IPs for a WireGuard peer. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + try { + WireguardPeerAllowedIPList200Response result = apiInstance.wireguardPeerAllowedIPList(id, pageNumber, pageSize); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerAllowedIPList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + +### Return type + +[**WireguardPeerAllowedIPList200Response**](WireguardPeerAllowedIPList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardPeerConfig + +> String wireguardPeerConfig(id) + +Retrieve Wireguard config template for Peer + +Retrieve Wireguard config template for Peer + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + String result = apiInstance.wireguardPeerConfig(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerConfig"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +**String** + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: text/plain; charset=utf-8, application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardPeerCreate + +> WireguardPeerCreate202Response wireguardPeerCreate(id, wireguardPeerCreate) + +Create a WireGuard Peer + +Create a new WireGuard Peer. Current limitation of 5 peers per interface can be created. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + WireguardPeerCreate wireguardPeerCreate = new WireguardPeerCreate(); // WireguardPeerCreate | + try { + WireguardPeerCreate202Response result = apiInstance.wireguardPeerCreate(id, wireguardPeerCreate); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerCreate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **wireguardPeerCreate** | [**WireguardPeerCreate**](WireguardPeerCreate.md)| | + +### Return type + +[**WireguardPeerCreate202Response**](WireguardPeerCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **202** | Successful response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + + +## wireguardPeerDelete + +> WireguardPeerCreate202Response wireguardPeerDelete(id) + +Delete the WireGuard Peer + +Delete the WireGuard peer. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + WireguardPeerCreate202Response result = apiInstance.wireguardPeerDelete(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerDelete"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**WireguardPeerCreate202Response**](WireguardPeerCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardPeerGet + +> WireguardPeerCreate202Response wireguardPeerGet(id) + +Retrieve the WireGuard Peer + +Retrieve the WireGuard peer. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + try { + WireguardPeerCreate202Response result = apiInstance.wireguardPeerGet(id); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + +### Return type + +[**WireguardPeerCreate202Response**](WireguardPeerCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardPeerList + +> WireguardPeerList200Response wireguardPeerList(id, pageNumber, pageSize, filterWireguardInterfaceId) + +List all WireGuard Peers + +List all WireGuard peers. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + Integer pageNumber = 1; // Integer | The page number to load + Integer pageSize = 20; // Integer | The size of the page + UUID filterWireguardInterfaceId = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | The id of the associated WireGuard interface to filter on. + try { + WireguardPeerList200Response result = apiInstance.wireguardPeerList(id, pageNumber, pageSize, filterWireguardInterfaceId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerList"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **pageNumber** | **Integer**| The page number to load | [optional] [default to 1] + **pageSize** | **Integer**| The size of the page | [optional] [default to 20] + **filterWireguardInterfaceId** | **UUID**| The id of the associated WireGuard interface to filter on. | [optional] + +### Return type + +[**WireguardPeerList200Response**](WireguardPeerList200Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **0** | Unexpected error | - | + + +## wireguardPeerUpdate + +> WireguardPeerCreate202Response wireguardPeerUpdate(id, wireguardPeerPatch) + +Update the WireGuard Peer + +Update the WireGuard peer. + +### Example + +```java +import java.util.UUID; +// Import classes: +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.*; +import com.telnyx.sdk.api.WireGuardInterfacesApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.telnyx.com/v2"); + + // Configure HTTP bearer authorization: bearerAuth + HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth"); + bearerAuth.setBearerToken("BEARER TOKEN"); + + WireGuardInterfacesApi apiInstance = new WireGuardInterfacesApi(defaultClient); + UUID id = UUID.fromString("6a09cdc3-8948-47f0-aa62-74ac943d6c58"); // UUID | Identifies the resource. + WireguardPeerPatch wireguardPeerPatch = new WireguardPeerPatch(); // WireguardPeerPatch | + try { + WireguardPeerCreate202Response result = apiInstance.wireguardPeerUpdate(id, wireguardPeerPatch); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling WireGuardInterfacesApi#wireguardPeerUpdate"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **UUID**| Identifies the resource. | + **wireguardPeerPatch** | [**WireguardPeerPatch**](WireguardPeerPatch.md)| | + +### Return type + +[**WireguardPeerCreate202Response**](WireguardPeerCreate202Response.md) + +### Authorization + +[bearerAuth](../README.md#bearerAuth) + +### HTTP request headers + +- **Content-Type**: application/json +- **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful response | - | +| **422** | Unprocessable entity. Check the 'detail' field in response for details. | - | +| **0** | Unexpected error | - | + diff --git a/docs/WireguardAllowedIP.md b/docs/WireguardAllowedIP.md new file mode 100644 index 00000000..b20332dc --- /dev/null +++ b/docs/WireguardAllowedIP.md @@ -0,0 +1,14 @@ + + +# WireguardAllowedIP + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**ipAddress** | **String** | The IP address to add to the Wireguard Interface's AllowedIP list. | [optional] | + + + diff --git a/docs/WireguardInterface.md b/docs/WireguardInterface.md new file mode 100644 index 00000000..a53d01d4 --- /dev/null +++ b/docs/WireguardInterface.md @@ -0,0 +1,21 @@ + + +# WireguardInterface + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | [optional] | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**endpoint** | **String** | The Telnyx WireGuard peers `Peer.endpoint` value. | [optional] [readonly] | +|**publicKey** | **String** | The Telnyx WireGuard peers `Peer.PublicKey`. | [optional] [readonly] | + + + diff --git a/docs/WireguardInterface1.md b/docs/WireguardInterface1.md new file mode 100644 index 00000000..709ed95d --- /dev/null +++ b/docs/WireguardInterface1.md @@ -0,0 +1,15 @@ + + +# WireguardInterface1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**endpoint** | **String** | The Telnyx WireGuard peers `Peer.endpoint` value. | [optional] [readonly] | +|**publicKey** | **String** | The Telnyx WireGuard peers `Peer.PublicKey`. | [optional] [readonly] | + + + diff --git a/docs/WireguardInterfaceCreate.md b/docs/WireguardInterfaceCreate.md new file mode 100644 index 00000000..7b039d4f --- /dev/null +++ b/docs/WireguardInterfaceCreate.md @@ -0,0 +1,22 @@ + + +# WireguardInterfaceCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**endpoint** | **String** | The Telnyx WireGuard peers `Peer.endpoint` value. | [optional] [readonly] | +|**publicKey** | **String** | The Telnyx WireGuard peers `Peer.PublicKey`. | [optional] [readonly] | +|**regionCode** | **String** | The region the interface should be deployed to. | | + + + diff --git a/docs/WireguardInterfaceCreate202Response.md b/docs/WireguardInterfaceCreate202Response.md new file mode 100644 index 00000000..a88c6354 --- /dev/null +++ b/docs/WireguardInterfaceCreate202Response.md @@ -0,0 +1,13 @@ + + +# WireguardInterfaceCreate202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**WireguardInterfaceRead**](WireguardInterfaceRead.md) | | [optional] | + + + diff --git a/docs/WireguardInterfaceList200Response.md b/docs/WireguardInterfaceList200Response.md new file mode 100644 index 00000000..e70300c7 --- /dev/null +++ b/docs/WireguardInterfaceList200Response.md @@ -0,0 +1,14 @@ + + +# WireguardInterfaceList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WireguardInterfaceRead>**](WireguardInterfaceRead.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/WireguardInterfaceRead.md b/docs/WireguardInterfaceRead.md new file mode 100644 index 00000000..e7fe5007 --- /dev/null +++ b/docs/WireguardInterfaceRead.md @@ -0,0 +1,23 @@ + + +# WireguardInterfaceRead + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**networkId** | **UUID** | The id of the network associated with the interface. | [optional] | +|**name** | **String** | A user specified name for the interface. | [optional] | +|**status** | **InterfaceStatus** | | [optional] | +|**endpoint** | **String** | The Telnyx WireGuard peers `Peer.endpoint` value. | [optional] [readonly] | +|**publicKey** | **String** | The Telnyx WireGuard peers `Peer.PublicKey`. | [optional] [readonly] | +|**regionCode** | **String** | The region interface is deployed to. | [optional] | +|**region** | [**RegionOutRegion**](RegionOutRegion.md) | | [optional] | + + + diff --git a/docs/WireguardPeer.md b/docs/WireguardPeer.md new file mode 100644 index 00000000..76c8dc3d --- /dev/null +++ b/docs/WireguardPeer.md @@ -0,0 +1,20 @@ + + +# WireguardPeer + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**publicKey** | **String** | The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new Public and Private key pair will be generated for you. | [optional] | +|**lastSeen** | **String** | ISO 8601 formatted date-time indicating when peer sent traffic last time. | [optional] [readonly] | +|**wireguardInterfaceId** | **UUID** | The id of the wireguard interface associated with the peer. | [optional] | +|**privateKey** | **String** | Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered. | [optional] [readonly] | + + + diff --git a/docs/WireguardPeer1.md b/docs/WireguardPeer1.md new file mode 100644 index 00000000..9330abbc --- /dev/null +++ b/docs/WireguardPeer1.md @@ -0,0 +1,16 @@ + + +# WireguardPeer1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**lastSeen** | **String** | ISO 8601 formatted date-time indicating when peer sent traffic last time. | [optional] [readonly] | +|**wireguardInterfaceId** | **UUID** | The id of the wireguard interface associated with the peer. | [optional] | +|**privateKey** | **String** | Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered. | [optional] [readonly] | + + + diff --git a/docs/WireguardPeerAllowedIP.md b/docs/WireguardPeerAllowedIP.md new file mode 100644 index 00000000..aa4d5875 --- /dev/null +++ b/docs/WireguardPeerAllowedIP.md @@ -0,0 +1,17 @@ + + +# WireguardPeerAllowedIP + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**ipAddress** | **String** | The IP address to add to the Wireguard Interface's AllowedIP list. | [optional] | + + + diff --git a/docs/WireguardPeerAllowedIPCreate.md b/docs/WireguardPeerAllowedIPCreate.md new file mode 100644 index 00000000..8e9d9a4d --- /dev/null +++ b/docs/WireguardPeerAllowedIPCreate.md @@ -0,0 +1,17 @@ + + +# WireguardPeerAllowedIPCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**ipAddress** | **String** | The IP address to add to the Wireguard Interface's AllowedIP list. | | + + + diff --git a/docs/WireguardPeerAllowedIPGet200Response.md b/docs/WireguardPeerAllowedIPGet200Response.md new file mode 100644 index 00000000..ab6e918b --- /dev/null +++ b/docs/WireguardPeerAllowedIPGet200Response.md @@ -0,0 +1,13 @@ + + +# WireguardPeerAllowedIPGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**WireguardPeerAllowedIP**](WireguardPeerAllowedIP.md) | | [optional] | + + + diff --git a/docs/WireguardPeerAllowedIPList200Response.md b/docs/WireguardPeerAllowedIPList200Response.md new file mode 100644 index 00000000..9b1a5cfd --- /dev/null +++ b/docs/WireguardPeerAllowedIPList200Response.md @@ -0,0 +1,14 @@ + + +# WireguardPeerAllowedIPList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WireguardPeerAllowedIP>**](WireguardPeerAllowedIP.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/WireguardPeerCreate.md b/docs/WireguardPeerCreate.md new file mode 100644 index 00000000..e0a6d2fd --- /dev/null +++ b/docs/WireguardPeerCreate.md @@ -0,0 +1,20 @@ + + +# WireguardPeerCreate + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**id** | **UUID** | Identifies the resource. | [optional] [readonly] | +|**recordType** | **String** | Identifies the type of the resource. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the resource was created. | [optional] [readonly] | +|**updatedAt** | **String** | ISO 8601 formatted date-time indicating when the resource was updated. | [optional] [readonly] | +|**publicKey** | **String** | The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new Public and Private key pair will be generated for you. | [optional] | +|**lastSeen** | **String** | ISO 8601 formatted date-time indicating when peer sent traffic last time. | [optional] [readonly] | +|**wireguardInterfaceId** | **UUID** | The id of the wireguard interface associated with the peer. | | +|**privateKey** | **String** | Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered. | [optional] [readonly] | + + + diff --git a/docs/WireguardPeerCreate202Response.md b/docs/WireguardPeerCreate202Response.md new file mode 100644 index 00000000..0f880f4d --- /dev/null +++ b/docs/WireguardPeerCreate202Response.md @@ -0,0 +1,13 @@ + + +# WireguardPeerCreate202Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**WireguardPeer**](WireguardPeer.md) | | [optional] | + + + diff --git a/docs/WireguardPeerList200Response.md b/docs/WireguardPeerList200Response.md new file mode 100644 index 00000000..20d38f3e --- /dev/null +++ b/docs/WireguardPeerList200Response.md @@ -0,0 +1,14 @@ + + +# WireguardPeerList200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WireguardPeer>**](WireguardPeer.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/WireguardPeerPatch.md b/docs/WireguardPeerPatch.md new file mode 100644 index 00000000..79a8ddbe --- /dev/null +++ b/docs/WireguardPeerPatch.md @@ -0,0 +1,13 @@ + + +# WireguardPeerPatch + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**publicKey** | **String** | The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new Public and Private key pair will be generated for you. | [optional] | + + + diff --git a/docs/WirelessConnectivityLog.md b/docs/WirelessConnectivityLog.md index 7a0a25e4..d185a09a 100644 --- a/docs/WirelessConnectivityLog.md +++ b/docs/WirelessConnectivityLog.md @@ -6,33 +6,35 @@ This object represents a wireless connectivity session log that happened through ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**recordType** | **String** | | [optional] [readonly] -**id** | **Integer** | Uniquely identifies the session. | [optional] [readonly] -**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] -**logType** | [**LogTypeEnum**](#LogTypeEnum) | The type of the session, 'registration' being the initial authentication session and 'data' the actual data transfer sessions. | [optional] [readonly] -**imsi** | **String** | SIM cards are identified on their individual operator networks by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR). | [optional] [readonly] -**imei** | **String** | The International Mobile Equipment Identity (or IMEI) is a number, usually unique, that identifies the device currently being used connect to the network. | [optional] [readonly] -**mobileCountryCode** | **String** | It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] -**mobileNetworkCode** | **String** | It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] -**startTime** | **String** | ISO 8601 formatted date-time indicating when the session started. | [optional] [readonly] -**stopTime** | **String** | ISO 8601 formatted date-time indicating when the session ended. | [optional] [readonly] -**apn** | **String** | The Access Point Name (APN) identifies the packet data network that a mobile data user wants to communicate with. | [optional] [readonly] -**ipv4** | **String** | The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] -**ipv6** | **String** | The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] -**radioAccessTechnology** | **String** | The radio technology the SIM card used during the session. | [optional] [readonly] -**state** | **String** | The state of the SIM card after when the session happened. | [optional] [readonly] -**cellId** | **String** | The cell ID to which the SIM connected. | [optional] [readonly] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**recordType** | **String** | | [optional] [readonly] | +|**id** | **Integer** | Uniquely identifies the session. | [optional] [readonly] | +|**simCardId** | **UUID** | The identification UUID of the related SIM card resource. | [optional] | +|**logType** | [**LogTypeEnum**](#LogTypeEnum) | The type of the session, 'registration' being the initial authentication session and 'data' the actual data transfer sessions. | [optional] [readonly] | +|**imsi** | **String** | SIM cards are identified on their individual operator networks by a unique International Mobile Subscriber Identity (IMSI). <br/> Mobile network operators connect mobile phone calls and communicate with their market SIM cards using their IMSIs. The IMSI is stored in the Subscriber Identity Module (SIM) inside the device and is sent by the device to the appropriate network. It is used to acquire the details of the device in the Home Location Register (HLR) or the Visitor Location Register (VLR). | [optional] [readonly] | +|**imei** | **String** | The International Mobile Equipment Identity (or IMEI) is a number, usually unique, that identifies the device currently being used connect to the network. | [optional] [readonly] | +|**mobileCountryCode** | **String** | It's a three decimal digit that identifies a country.<br/><br/> This code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] | +|**mobileNetworkCode** | **String** | It's a two to three decimal digits that identify a network.<br/><br/> This code is commonly seen joined with a Mobile Country Code (MCC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code. | [optional] [readonly] | +|**startTime** | **String** | ISO 8601 formatted date-time indicating when the session started. | [optional] [readonly] | +|**stopTime** | **String** | ISO 8601 formatted date-time indicating when the session ended. | [optional] [readonly] | +|**createdAt** | **String** | ISO 8601 formatted date-time indicating when the record was created. | [optional] [readonly] | +|**lastSeen** | **String** | ISO 8601 formatted date-time indicating when the last heartbeat to the device was successfully recorded. | [optional] [readonly] | +|**apn** | **String** | The Access Point Name (APN) identifies the packet data network that a mobile data user wants to communicate with. | [optional] [readonly] | +|**ipv4** | **String** | The SIM's address in the currently connected network. This IPv4 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] | +|**ipv6** | **String** | The SIM's address in the currently connected network. This IPv6 address is usually obtained dynamically, so it may vary according to the location or new connections. | [optional] [readonly] | +|**radioAccessTechnology** | **String** | The radio technology the SIM card used during the session. | [optional] [readonly] | +|**state** | **String** | The state of the SIM card after when the session happened. | [optional] [readonly] | +|**cellId** | **String** | The cell ID to which the SIM connected. | [optional] [readonly] | ## Enum: LogTypeEnum -Name | Value ----- | ----- -REGISTRATION | "registration" -DATA | "data" +| Name | Value | +|---- | -----| +| REGISTRATION | "registration" | +| DATA | "data" | diff --git a/docs/WirelessConnectivityLogsGet200Response.md b/docs/WirelessConnectivityLogsGet200Response.md new file mode 100644 index 00000000..49d4d917 --- /dev/null +++ b/docs/WirelessConnectivityLogsGet200Response.md @@ -0,0 +1,14 @@ + + +# WirelessConnectivityLogsGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**data** | [**List<WirelessConnectivityLog>**](WirelessConnectivityLog.md) | | [optional] | +|**meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] | + + + diff --git a/docs/WirelessCost.md b/docs/WirelessCost.md index e70100fb..72f22a9a 100644 --- a/docs/WirelessCost.md +++ b/docs/WirelessCost.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **String** | Final cost. Cost is calculated as rate * unit | [optional] -**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency of the rate and cost | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **String** | Final cost. Cost is calculated as rate * unit | [optional] | +|**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency of the rate and cost | [optional] | ## Enum: CurrencyEnum -Name | Value ----- | ----- -AUD | "AUD" -CAD | "CAD" -EUR | "EUR" -GBP | "GBP" -USD | "USD" +| Name | Value | +|---- | -----| +| AUD | "AUD" | +| CAD | "CAD" | +| EUR | "EUR" | +| GBP | "GBP" | +| USD | "USD" | diff --git a/docs/WirelessRate.md b/docs/WirelessRate.md index 6b7cb20f..141fd247 100644 --- a/docs/WirelessRate.md +++ b/docs/WirelessRate.md @@ -5,22 +5,22 @@ ## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **String** | Rate from which cost is calculated | [optional] -**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency of the rate and cost | [optional] +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **String** | Rate from which cost is calculated | [optional] | +|**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency of the rate and cost | [optional] | ## Enum: CurrencyEnum -Name | Value ----- | ----- -AUD | "AUD" -CAD | "CAD" -EUR | "EUR" -GBP | "GBP" -USD | "USD" +| Name | Value | +|---- | -----| +| AUD | "AUD" | +| CAD | "CAD" | +| EUR | "EUR" | +| GBP | "GBP" | +| USD | "USD" | diff --git a/gradle.properties b/gradle.properties index 05644f07..a3408578 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,2 +1,6 @@ -# Uncomment to build for Android -#target = android \ No newline at end of file +# This file is automatically generated by OpenAPI Generator (https://github.com/openAPITools/openapi-generator). +# To include other gradle properties as part of the code generation process, please use the `gradleProperties` option. +# +# Gradle properties reference: https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties +# For example, uncomment below to build for Android +#target = android diff --git a/gradlew.bat b/gradlew.bat index 9618d8d9..6a68175e 100644 --- a/gradlew.bat +++ b/gradlew.bat @@ -29,15 +29,18 @@ if "%DIRNAME%" == "" set DIRNAME=. set APP_BASE_NAME=%~n0 set APP_HOME=%DIRNAME% +@rem Resolve any "." and ".." in APP_HOME to make it shorter. +for %%i in ("%APP_HOME%") do set APP_HOME=%%~fi + @rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" +set DEFAULT_JVM_OPTS=-Dfile.encoding=UTF-8 "-Xmx64m" "-Xms64m" @rem Find java.exe if defined JAVA_HOME goto findJavaFromJavaHome set JAVA_EXE=java.exe %JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init +if "%ERRORLEVEL%" == "0" goto execute echo. echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. @@ -51,7 +54,7 @@ goto fail set JAVA_HOME=%JAVA_HOME:"=% set JAVA_EXE=%JAVA_HOME%/bin/java.exe -if exist "%JAVA_EXE%" goto init +if exist "%JAVA_EXE%" goto execute echo. echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% @@ -61,28 +64,14 @@ echo location of your Java installation. goto fail -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - :execute @rem Setup the command line set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar + @rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% +"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %* :end @rem End local scope for the variables with windows NT shell diff --git a/openapi-configuration/spec3.json b/openapi-configuration/spec3.json index 51191757..783de3e1 100644 --- a/openapi-configuration/spec3.json +++ b/openapi-configuration/spec3.json @@ -1,10 +1,13 @@ { - "openapi": "3.0.0", + "openapi": "3.0.1", "info": { "version": "2.0.0", - "x-endpoint-cost": "medium", + "x-endpoint-cost": "light", "title": "Telnyx API", "description": "SIP trunking, SMS, MMS, Call Control and Telephony Data Services.", + "license": { + "name": "MIT" + }, "contact": { "email": "support@telnyx.com" } @@ -21,18 +24,10 @@ } ], "tags": [ - { - "name": "Access Control IPs", - "description": "Access Control IP operations" - }, { "name": "Access Tokens", "description": "Access Tokens creation" }, - { - "name": "Addresses", - "description": "Address operations" - }, { "name": "Authentication Providers", "description": "Authentication Provider operations" @@ -101,6 +96,10 @@ "name": "Detail Records", "description": "Detail Records operations" }, + { + "name": "Dialogflow Integration", + "description": "Dialogflow Connection Operations." + }, { "name": "Documents", "description": "Documents" @@ -119,7 +118,7 @@ }, { "name": "FQDNs", - "description": "FQDN operations" + "description": "FQDN Operations" }, { "name": "IP Addresses", @@ -169,14 +168,14 @@ "name": "Messaging URL Domains", "description": "Messaging URL Domains" }, - { - "name": "Mobile Applications", - "description": "Mobile Application management" - }, { "name": "Mobile Operator Networks", "description": "Mobile operator networks operations" }, + { + "name": "Networks", + "description": "Network operations" + }, { "name": "Notifications", "description": "Notification settings operations" @@ -245,9 +244,13 @@ "name": "Programmable Fax Commands", "description": "Programmable fax command operations" }, + { + "name": "Public Internet Gateways", + "description": "Public Internet Gateway operations" + }, { "name": "Push Credentials", - "description": "Push credential management" + "description": "Mobile push credential management" }, { "name": "Queue Commands", @@ -257,6 +260,10 @@ "name": "Recordings Commands", "description": "Recordings commands operations" }, + { + "name": "Regions", + "description": "Regions" + }, { "name": "Register Call", "description": "Register Call commands" @@ -325,6 +332,10 @@ "name": "TeXML Applications", "description": "TeXML Applications operations" }, + { + "name": "TeXML REST Commands", + "description": "TeXML REST Commands" + }, { "name": "Verified Calls Display Profile", "description": "Verified Calls Display Profile related endpoints" @@ -333,6 +344,10 @@ "name": "Verify", "description": "Two factor authentication API" }, + { + "name": "Virtual Cross Connects", + "description": "Virtual Cross Connect operations" + }, { "name": "Webhooks", "description": "Webhooks operations" @@ -349,6 +364,10 @@ "name": "WhatsApp Media", "description": "WhatsApp media files" }, + { + "name": "WhatsApp Message Template", + "description": "WhatsApp message templates" + }, { "name": "WhatsApp Messages", "description": "WhatsApp messages" @@ -361,203 +380,249 @@ "name": "WhatsApp Users", "description": "WhatsApp user info" }, + { + "name": "WireGuard Interfaces", + "description": "WireGuard Interface operations" + }, { "name": "Wireless", "description": "Wireless operations" } ], "paths": { - "/access_control_ips": { + "/access_fqdns": { "get": { - "description": "This endpoint will be deprecated on 15th March 2022 and has been replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). We recommend that Customers already using this endpoint transition to using: [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).", - "summary": "List all access control IPs", - "operationId": "findAccessControlIps", + "summary": "List all Access FQDNs", + "operationId": "ListAllAccessFqdns", "tags": [ - "Access Control IPs" + "FQDNs" ], - "x-endpoint-cost": "medium", + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerFacingFQDNsListResponse" + } + } + } + } + }, "parameters": [ { - "$ref": "#/components/parameters/PageNumber" - }, - { - "$ref": "#/components/parameters/PageSize" + "required": false, + "in": "query", + "schema": { + "type": "integer", + "default": 1 + }, + "name": "page[number]" }, { - "$ref": "#/components/parameters/FilterIpAddressEquals" + "required": false, + "in": "query", + "schema": { + "maximum": 250, + "type": "integer", + "default": 20 + }, + "name": "page[size]" } ], - "responses": { - "200": { - "$ref": "#/components/responses/GetAllAccessControlIpResponse" - }, - "400": { - "description": "Bad request" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Resource not found" - } - }, "x-latency-category": "responsive" }, "post": { - "description": "This endpoint will be deprecated on 15th March 2022 and has been replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). We recommend that Customers already using this endpoint transition to using: [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).)", - "summary": "Adds an access control IP", - "operationId": "CreateAccessControlIp", + "summary": "Create new Access FQDN", + "operationId": "CreateAccessFqdn", "tags": [ - "Access Control IPs" + "FQDNs" ], - "x-endpoint-cost": "medium", - "parameters": [], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerFacingFQDNsResponseSchema" + } + } + } + } + }, "requestBody": { - "description": "Parameters that can be defined during access control IP creation", "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccessControlIpCreate" + "$ref": "#/components/schemas/CustomerFacingFQDNsPost" } } } }, - "responses": { - "200": { - "$ref": "#/components/responses/AccessControlIpResponse" - }, - "422": { - "description": "Bad request" - } - }, "x-latency-category": "responsive" } }, - "/access_control_ips/{id}": { + "/access_fqdns/{fqdn_id}": { "delete": { - "description": "This endpoint will be deprecated on 15th March 2022 and has been replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). We recommend that Customers already using this endpoint transition to using: [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).)", - "summary": "Deletes an access control IP", - "operationId": "DeleteAccessControlIp", + "summary": "Delete Access FQDN", + "operationId": "DeleteAccessFqdn", "tags": [ - "Access Control IPs" + "FQDNs" ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerFacingFQDNsResponseSchema" + } + } + } + } + }, "parameters": [ { - "name": "id", "in": "path", - "description": "access control IP ID", "required": true, + "name": "fqdn_id", "schema": { "type": "string" } } ], - "responses": { - "200": { - "$ref": "#/components/responses/AccessControlIpResponse" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Resource not found" - }, - "422": { - "description": "Bad request" - } - }, "x-latency-category": "responsive" }, "get": { - "description": "This endpoint will be deprecated on 15th March 2022 and has been replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). We recommend that Customers already using this endpoint transition to using: [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).", - "summary": "Retrieve an access control IP", - "operationId": "getAccessControlIp", + "summary": "List an Access FQDN", + "operationId": "ListAccessFqdnById", "tags": [ - "Access Control IPs" + "FQDNs" ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerFacingFQDNsResponseSchema" + } + } + } + } + }, "parameters": [ { - "name": "id", "in": "path", - "description": "access control IP ID", "required": true, + "name": "fqdn_id", "schema": { "type": "string" } } ], - "responses": { - "200": { - "$ref": "#/components/responses/AccessControlIpResponse" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" - }, - "404": { - "description": "Resource not found" - }, - "422": { - "description": "Bad request" - } - }, "x-latency-category": "responsive" }, "patch": { - "description": "This endpoint will be deprecated on 15th March 2022 and has been replaced by the following APIs, [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses) and [api.telnyx.com/v2/access_ip_ranges](https://developers.telnyx.com/docs/api/v2/account/IP-Ranges). We recommend that Customers already using this endpoint transition to using: [api.telnyx.com/v2/access_ip_address](https://developers.telnyx.com/docs/api/v2/account/IP-Addresses).)", - "summary": "Update an access control IP", - "operationId": "updateAccessControlIp", + "summary": "Update Access FQDN", + "operationId": "UpdateAccessFqdn", "tags": [ - "Access Control IPs" + "FQDNs" ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "access control IP ID", - "required": true, - "schema": { - "type": "string" + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerFacingFQDNsResponseSchema" + } + } } } - ], + }, "requestBody": { - "description": "Parameters to update on the access control IP record", "required": true, "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/AccessControlIpUpdate" + "title": "CustomerFacingFQDNsPatch", + "required": [ + "description" + ], + "type": "object", + "properties": { + "description": { + "title": "Description", + "type": "string" + } + } } } } }, + "parameters": [ + { + "in": "path", + "required": true, + "name": "fqdn_id", + "schema": { + "type": "string" + } + } + ], + "x-latency-category": "responsive" + } + }, + "/access_fqdns/{fqdn_id}/ips": { + "get": { + "summary": "List Access FQDN's IP Addresses", + "operationId": "ListAllIpsByFqdn", + "tags": [ + "FQDNs" + ], "responses": { "200": { - "$ref": "#/components/responses/AccessControlIpResponse" - }, - "401": { - "description": "Unauthorized" - }, - "403": { - "description": "Forbidden" + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CustomerFacingFQDNsGetIPResponse" + } + } + } + } + }, + "parameters": [ + { + "in": "path", + "required": true, + "name": "fqdn_id", + "schema": { + "type": "string" + } }, - "404": { - "description": "Resource not found" + { + "required": false, + "in": "query", + "schema": { + "type": "integer", + "default": 1 + }, + "name": "page[number]" }, - "422": { - "description": "Bad request" + { + "required": false, + "in": "query", + "schema": { + "maximum": 250, + "type": "integer", + "default": 20 + }, + "name": "page[size]" } - }, + ], "x-latency-category": "responsive" } }, @@ -699,6 +764,37 @@ "/access_ip_address/{access_ip_address_id}": { "delete": { "summary": "Delete access IP address", + "operationId": "AccessIPAddressDelete", + "tags": [ + "IP Addresses" + ], + "parameters": [ + { + "required": true, + "schema": { + "type": "string" + }, + "name": "access_ip_address_id", + "in": "path" + } + ], + "responses": { + "200": { + "description": "Successful Response", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/AccessIPAddressResponseSchema" + } + } + } + } + }, + "x-latency-category": "responsive" + }, + "get": { + "summary": "Retrieve an access IP address", + "operationId": "AccessIPAddressGet", "tags": [ "IP Addresses" ], @@ -1008,7 +1104,6 @@ "content": { "application/json": { "schema": { - "title": "Bulk Update Sim Network Preference", "type": "object", "properties": { "sim_card_ids": { @@ -1109,189 +1204,6 @@ "x-latency-category": "responsive" } }, - "/addresses": { - "get": { - "description": "Returns a list of your addresses.", - "summary": "List all addresses", - "operationId": "findAddresss", - "tags": [ - "Addresses" - ], - "x-endpoint-cost": "medium", - "parameters": [ - { - "$ref": "#/components/parameters/PageNumber" - }, - { - "$ref": "#/components/parameters/PageSize" - }, - { - "$ref": "#/components/parameters/FilterCustomerReferenceEquals" - }, - { - "$ref": "#/components/parameters/FilterCustomerReferenceContains" - }, - { - "$ref": "#/components/parameters/FilterUsedAsEmergency" - }, - { - "$ref": "#/components/parameters/FilterStreetAddress" - }, - { - "$ref": "#/components/parameters/FilterAddressBook" - }, - { - "$ref": "#/components/parameters/SortAddress" - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/GetAllAddressResponse" - }, - "400": { - "description": "Bad request" - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Resource not found" - } - }, - "x-latency-category": "responsive" - }, - "post": { - "description": "Creates an address.", - "summary": "Creates an address", - "operationId": "CreateAddress", - "tags": [ - "Addresses" - ], - "x-endpoint-cost": "medium", - "parameters": [], - "requestBody": { - "description": "Parameters that can be defined during address creation", - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/AddressCreate" - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/AddressResponse" - }, - "422": { - "description": "Bad request" - } - }, - "x-latency-category": "responsive" - } - }, - "/addresses/actions/validate": { - "post": { - "description": "Validates an address for emergency services.", - "summary": "Validate an address", - "operationId": "validateAddress", - "tags": [ - "Addresses" - ], - "parameters": [], - "requestBody": { - "description": "Parameters that can be defined during address validation", - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/ValidateAddressRequest" - } - } - } - }, - "responses": { - "200": { - "$ref": "#/components/responses/ValidateAddressResponse" - }, - "422": { - "description": "Bad request" - } - }, - "x-latency-category": "responsive" - } - }, - "/addresses/{id}": { - "delete": { - "description": "Deletes an existing address.", - "summary": "Deletes an address", - "operationId": "DeleteAddress", - "tags": [ - "Addresses" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "address ID", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/AddressResponse" - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Resource not found" - }, - "422": { - "description": "Bad request" - } - }, - "x-latency-category": "responsive" - }, - "get": { - "description": "Retrieves the details of an existing address.", - "summary": "Retrieve an address", - "operationId": "getAddress", - "tags": [ - "Addresses" - ], - "parameters": [ - { - "name": "id", - "in": "path", - "description": "address ID", - "required": true, - "schema": { - "type": "string" - } - } - ], - "responses": { - "200": { - "$ref": "#/components/responses/AddressResponse" - }, - "401": { - "description": "Unauthorized" - }, - "404": { - "description": "Resource not found" - }, - "422": { - "description": "Bad request" - } - }, - "x-latency-category": "responsive" - } - }, "/authentication_providers": { "get": { "description": "Returns a list of your SSO authentication providers.", @@ -1990,6 +1902,70 @@ "x-latency-category": "responsive" } }, + "/bulk_sim_card_actions": { + "get": { + "operationId": "ListBulkSIMCardActions", + "summary": "List bulk SIM card actions", + "description": "This API lists a paginated collection of bulk SIM card actions. A bulk SIM card action contains details about a collection of individual SIM card actions.", + "tags": [ + "SIM Card Actions" + ], + "parameters": [ + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[action_type]", + "description": "Filter by action type.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "bulk_set_public_ips" + ], + "example": "bulk_set_public_ips" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/BulkSIMCardActionCollectionResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/bulk_sim_card_actions/{id}": { + "get": { + "operationId": "BulkSimCardActionGet", + "summary": "Get bulk SIM card action details", + "description": "This API fetches information about a bulk SIM card action. A bulk SIM card action contains details about a collection of individual SIM card actions.", + "tags": [ + "SIM Card Actions" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/BulkSIMCardActionDetailedResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/business_identities": { "get": { "summary": "Lists the Business Identities owned by the current user/organization", @@ -2396,7 +2372,7 @@ "/calls": { "post": { "summary": "Dial", - "description": "Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks.\n\n**Expected Webhooks:**\n\n- `call.initiated`\n- `call.answered` or `call.hangup`\n- `call.machine.detection.ended` if `answering_machine_detection` was requested\n- `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words`\n- `streaming.started` and `streaming.stopped` if `stream_url` was set\n", + "description": "Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks.\n\n**Expected Webhooks:**\n\n- `call.initiated`\n- `call.answered` or `call.hangup`\n- `call.machine.detection.ended` if `answering_machine_detection` was requested\n- `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end of machine greeting\n- `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested\n- `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and a beep was detected\n- `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set\n", "operationId": "callDial", "tags": [ "Call Commands" @@ -2567,6 +2543,27 @@ } } } + }, + "streamingFailed": { + "{$request.body#/webhook_url}": { + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CallStreamingFailedEvent" + } + } + } + }, + "responses": { + "200": { + "description": "The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL." + } + } + } + } } }, "x-latency-category": "interactive" @@ -2630,7 +2627,7 @@ "/calls/{call_control_id}/actions/answer": { "post": { "summary": "Answer call", - "description": "Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call.\n\n**Expected Webhooks:**\n\n- `call.answered`\n- `streaming.started` and `streaming.stopped` if `stream_url` was set", + "description": "Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call.\n\n**Expected Webhooks:**\n\n- `call.answered`\n- `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set\n", "operationId": "callAnswer", "tags": [ "Call Commands" @@ -2722,6 +2719,27 @@ } } } + }, + "streamingFailed": { + "{$request.body#/webhook_url}": { + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CallStreamingFailedEvent" + } + } + } + }, + "responses": { + "200": { + "description": "The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL." + } + } + } + } } }, "x-latency-category": "interactive" @@ -3037,6 +3055,85 @@ "x-latency-category": "interactive" } }, + "/calls/{call_control_id}/actions/gather": { + "post": { + "summary": "Gather", + "description": "Gather DTMF signals to build interactive menus.\n\nYou can pass a list of valid digits. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer) command must be issued before the `gather` command.\n\n**Expected Webhooks:**\n\n- `call.dtmf.received` (you may receive many of these webhooks)\n- `call.gather.ended`\n", + "operationId": "callGather", + "tags": [ + "Call Commands" + ], + "parameters": [ + { + "$ref": "#/components/parameters/CallControlId" + } + ], + "requestBody": { + "description": "Gather", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/GatherRequest" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/CallControlCommandResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "callbacks": { + "callDtmfReceived": { + "{$request.body#/webhook_url}": { + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CallDtmfReceivedEvent" + } + } + } + }, + "responses": { + "200": { + "description": "The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL." + } + } + } + } + }, + "callGatherEnded": { + "{$request.body#/webhook_url}": { + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CallGatherEndedEvent" + } + } + } + }, + "responses": { + "200": { + "description": "The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL." + } + } + } + } + } + }, + "x-latency-category": "interactive" + } + }, "/calls/{call_control_id}/actions/gather_stop": { "post": { "summary": "Gather stop", @@ -3390,27 +3487,6 @@ } } } - }, - "callCost": { - "{$request.body#/webhook_url}": { - "post": { - "requestBody": { - "required": true, - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/CallCost" - } - } - } - }, - "responses": { - "200": { - "description": "The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL." - } - } - } - } } }, "x-latency-category": "interactive" @@ -4091,8 +4167,7 @@ "/calls/{call_control_id}/actions/streaming_start": { "post": { "summary": "Streaming start", - "description": "Start streaming the media from a call to a specific WebSocket address in near-realtime. \nAudio will be delivered as base64-encoded RTP packets, wrapped in JSON payloads. \n\n**Expected Webhooks:**\n\n- `streaming.started`\n- `streaming.stopped`\n\n**WebSocket events**\n\nWhen the WebSocket connection is established, the following event is being sent over it:\n```\n{\n \"event\": \"connected\",\n \"version\": \"1.0.0\"\n}\n```\nAnd when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream:\n```\n{\n \"event\": \"start\",\n \"sequence_number\": \"1\",\n \"start\": {\n \"user_id\": \"3E6F995F-85F7-4705-9741-53B116D28237\",\n \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\",\n \"media_format\": {\n \"encoding\": \"audio/x-mulaw\",\n \"sample_rate\": 8000,\n \"channels\": 1\n }\n },\n \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\"\n}\n```\nThe start event is followed by the following media events that contain base64-encoded RTP packets as their payloads:\n```\n{ \n \"event\": \"media\",\n \"sequence_number\": \"4\",\n \"media\": { \n \"track\": \"inbound/outbound\", \n \"chunk\": \"2\",\n \"timestamp\": \"5\",\n \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\" \n },\n \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" \n}\n```\nPlease note that the order of events is not guaranteed and the chunk number can be used to reorder the events.\n\nWhen the call ends, the stop event over WebSockets connection is sent:\n```\n{ \n \"event\": \"stop\",\n \"sequence_number\": \"5\",\n \"stop\": {\n \"user_id\": \"3E6F995F-85F7-4705-9741-53B116D28237\",\n \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\"\n },\n \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" \n }\n```\n", - "operationId": "callStreamingStart", + "description": "Start streaming the media from a call to a specific WebSocket address or Dialogflow connection in near-realtime. Audio will be delivered as base64-encoded RTP payload (raw audio), wrapped in JSON payloads. \n\n**Example: Starting a stream to a Websocket address**\n\n The `stream_url` param is mandatory.\n\n```\ncurl -X POST \\ \n --header \"Content-Type: application/json\" \\ \n --header \"Accept: application/json\" \\ \n --header \"Authorization: Bearer YOUR_API_KEY\" \\ \n --data '{\n \"stream_url\": \"wss://www.example.com/websocket\",\\ \n\"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\",\\ \n\"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\" \\ \n}' \\ \n https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start \n``` \n\n **Example: Starting a stream to a Dialogflow connection** \n\n Enable the Dialogflow integration by sending `\"enable_dialogflow\": true` in the request. You need to have a Dialogflow connection associated with your Call Control application first, [click here for instructions](https://developers.telnyx.com/docs/v2/call-control/tutorials/dialogflow-es).\n```\ncurl -X POST \\ \n --header \"Content-Type: application/json\" \\ \n --header \"Accept: application/json\" \\ \n --header \"Authorization: Bearer YOUR_API_KEY\" \\ \n --data '{\n \"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\", \\ \n\"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\", \\ \n\"enable_dialogflow\": true \\ \n}' \\ \n https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start \n```\n\n**Expected Webhooks:**\n\n- `streaming.started`\n- `streaming.stopped`\n- `streaming.failed`\n\n**WebSocket events**\n\nWhen the WebSocket connection is established, the following event is being sent over it:\n```\n{\n \"event\": \"connected\",\n \"version\": \"1.0.0\"\n}\n```\nAnd when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream:\n```\n{\n \"event\": \"start\",\n \"sequence_number\": \"1\",\n \"start\": {\n \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\",\n \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\", \n \"client_state\": \"aGF2ZSBhIG5pY2UgZGF5ID1d\",\n \"media_format\": {\n \"encoding\": \"audio/x-mulaw\",\n \"sample_rate\": 8000,\n \"channels\": 1\n }\n },\n \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\"\n}\n```\nThe start event is followed by the following media events that contain base64-encoded RTP payload (raw audio, no RTP headers) (:\n```\n{ \n \"event\": \"media\",\n \"sequence_number\": \"4\",\n \"media\": { \n \"track\": \"inbound/outbound\", \n \"chunk\": \"2\",\n \"timestamp\": \"5\",\n \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\" \n },\n \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" \n}\n```\nPlease note that the order of events is not guaranteed and the chunk number can be used to reorder the events.\n\nWhen the call ends, the stop event over WebSockets connection is sent:\n```\n{ \n \"event\": \"stop\",\n \"sequence_number\": \"5\",\n \"stop\": {\n \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\",\n \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\"\n },\n \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" \n }\n```\n", "tags": [ "Call Commands" ], @@ -4162,6 +4237,27 @@ } } } + }, + "callStreamingFailed": { + "{$request.body#/webhook_url}": { + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CallStreamingFailedEvent" + } + } + } + }, + "responses": { + "200": { + "description": "The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL." + } + } + } + } } }, "x-latency-category": "interactive" @@ -4498,7 +4594,6 @@ "content": { "application/json": { "schema": { - "title": "Update Channel Zone", "type": "object", "properties": { "channels": { @@ -4563,7 +4658,6 @@ "content": { "application/json": { "schema": { - "title": "List Channel Zones by Phone Number", "required": [ "phone_number" ], @@ -6344,6 +6438,130 @@ "x-latency-category": "responsive" } }, + "/customer_service_requests": { + "get": { + "tags": [ + "Customer Service Request" + ], + "summary": "List customer service requests", + "description": "List customer service requests.", + "operationId": "listCustomerServiceRequests", + "parameters": [ + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "sort[]", + "in": "query", + "description": "Specifies the sort order for results. If not given, results are sorted by created_at in descending order.", + "schema": { + "type": "string", + "enum": [ + "created_at", + "-created_at" + ], + "example": "created_at" + } + }, + { + "$ref": "#/components/parameters/PhoneNumberEqFilter" + }, + { + "$ref": "#/components/parameters/PhoneNumberInFilter" + }, + { + "$ref": "#/components/parameters/StatusEqFilter" + }, + { + "$ref": "#/components/parameters/StatusInFilter" + }, + { + "$ref": "#/components/parameters/CreatedAtLtFilter" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ListCustomerServiceRequests" + }, + "401": { + "$ref": "#/components/responses/UnauthorizedErrorResponse" + }, + "403": { + "$ref": "#/components/responses/ForbiddenErrorResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityErrorResponse" + }, + "500": { + "$ref": "#/components/responses/UnexpectedErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "tags": [ + "Customer Service Request" + ], + "summary": "Create a customer service request", + "description": "Create a new customer service request for the provided phone number.", + "operationId": "createCustomerServiceRequest", + "requestBody": { + "$ref": "#/components/requestBodies/CreateCustomerServiceRequest" + }, + "responses": { + "201": { + "$ref": "#/components/responses/ShowCustomerServiceRequest" + }, + "401": { + "$ref": "#/components/responses/UnauthorizedErrorResponse" + }, + "403": { + "$ref": "#/components/responses/ForbiddenErrorResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityErrorResponse" + }, + "500": { + "$ref": "#/components/responses/UnexpectedErrorResponse" + } + }, + "callbacks": { + "CustomerServiceRequestStatusChanged": { + "{$request.body#/webhook_url}": { + "post": { + "requestBody": { + "required": true, + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/CustomerServiceRequestStatusChangedEvent" + }, + "meta": { + "$ref": "#/components/schemas/CallbackWebhookMeta" + } + } + } + } + } + }, + "responses": { + "200": { + "description": "The server must return an HTTP 200, otherwise we will reattempt delivery at the failover webhook URL." + } + } + } + } + } + }, + "x-latency-category": "responsive" + } + }, "/customer_service_requests/phone_number_coverages": { "post": { "tags": [ @@ -6414,47 +6632,77 @@ "Detail Records" ], "summary": "Search detail records", - "description": "Search for any detail record across the Telnyx Platform", + "description": "Search for any detail record across the Telnyx Platform. Examples and additional information found [here](/docs/v2/debugging/detail-record-search).", "operationId": "DetailRecordsSearch", "parameters": [ { "name": "filter[record_type]", "in": "query", - "description": "Filter by the given record type", + "description": "Filter by the given record type.", "required": true, "schema": { - "type": "string" + "type": "string", + "enum": [ + "amd", + "conference", + "conference-participant", + "media_storage", + "messaging", + "verify", + "whatsapp", + "whatsapp-conversation", + "wireless" + ] }, "examples": { "filter[record_type]=messaging": { "value": "messaging", "summary": "Searches for messaging detail records" + }, + "filter[record_type]=verify": { + "value": "verify", + "summary": "Searches for verify detail records" } } }, { "name": "filter[date_range]", "in": "query", - "description": "Filter by the given user-friendly date range", + "description": "Filter by the given user-friendly date range. You can specify one of the following enum values, or a dynamic one using this format: last_N_days.", "required": false, "schema": { - "type": "string" + "type": "string", + "enum": [ + "yesterday", + "today", + "tomorrow", + "last_week", + "this_week", + "next_week", + "last_month", + "this_month", + "next_month" + ] }, "examples": { "filter[date_range]=today": { "value": "today", "summary": "Searches for records with timestamp starting at `00:00:00` of the current day" }, - "filter[date_range]=last_3_days": { - "value": "last_3_days", - "summary": "Searches for records with timestamp starting at `00:00:00` since 3 days ago" + "filter[date_range]=yesterday": { + "value": "yesterday", + "summary": "Searches for records with timestamp starting at `00:00:00` of yesterday" + }, + "filter[date_range]=last_month": { + "value": "last_month", + "summary": "Searches for records with timestamp starting at `00:00:00` on the first day of the month" } } }, { "name": "filter", "in": "query", - "description": "Filter records", + "description": "Filter records on a given record attribute and value.
Example: filter[status]=delivered", "required": false, "schema": { "type": "object", @@ -6512,7 +6760,7 @@ }, { "name": "sort", - "description": "Specifies the sort order for results", + "description": "Specifies the sort order for results.
Example: sort=-created_at", "in": "query", "schema": { "type": "array", @@ -6552,6 +6800,102 @@ "x-latency-category": "interactive" } }, + "/dialogflow_connections/{connection_id}": { + "delete": { + "summary": "Delete stored Dialogflow Connection", + "description": "Deletes a stored Dialogflow Connection.", + "operationId": "deleteDialogflowConnection", + "tags": [ + "Dialogflow Integration" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ConnectionId" + } + ], + "responses": { + "204": { + "description": "The Dialogflow Connection for connection_id was deleted successfully." + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "get": { + "summary": "Retrieve stored Dialogflow Connection", + "description": "Return details of the Dialogflow connection associated with the given CallControl connection.", + "operationId": "getDialogflowConnection", + "tags": [ + "Dialogflow Integration" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ConnectionId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/DialogflowConnectionResponseBody" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "summary": "Create a Dialogflow Connection", + "description": "Save Dialogflow Credentiails to Telnyx, so it can be used with other Telnyx services.", + "operationId": "createDialogflowConnection", + "tags": [ + "Dialogflow Integration" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ConnectionId" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/DialogflowConnectionRequest" + }, + "responses": { + "201": { + "$ref": "#/components/responses/DialogflowConnectionResponseBody" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "put": { + "summary": "Update stored Dialogflow Connection", + "description": "Updates a stored Dialogflow Connection.", + "operationId": "updateDialogflowConnection", + "tags": [ + "Dialogflow Integration" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ConnectionId" + } + ], + "requestBody": { + "$ref": "#/components/requestBodies/DialogflowConnectionRequest" + }, + "responses": { + "200": { + "$ref": "#/components/responses/DialogflowConnectionResponseBody" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/document_links": { "get": { "summary": "List all document links", @@ -7361,7 +7705,7 @@ "post": { "summary": "Send a fax", "operationId": "SendFax", - "description": "", + "description": "Send a fax. Files have size limits and page count limit validations. If a file is bigger than 50MB or has more than 350 pages it will fail with `file_size_limit_exceeded` and `page_count_limit_exceeded` respectively. \n\n**Expected Webhooks:**\n\n- `fax.queued`\n- `fax.media.processed`\n- `fax.sending.started`\n- `fax.delivered`\n- `fax.failed`\n", "tags": [ "Programmable Fax Commands" ], @@ -7557,6 +7901,43 @@ "x-latency-category": "responsive" } }, + "/faxes/{id}/actions/cancel": { + "post": { + "summary": "Cancel a fax", + "description": "Cancel the outbound fax that is in one of the following states: `queued`, `media.processed`, `originated` or `sending` ", + "operationId": "CancelFax", + "tags": [ + "Programmable Fax Commands" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "The unique identifier of a fax.", + "required": true, + "schema": { + "type": "string", + "format": "uuid" + } + } + ], + "responses": { + "202": { + "$ref": "#/components/responses/CancelFaxResponse" + }, + "404": { + "$ref": "#/components/responses/NotFoundResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntityResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/faxes/{id}/actions/refresh": { "post": { "summary": "Refresh a fax", @@ -8502,6 +8883,9 @@ }, { "$ref": "#/components/parameters/Sort" + }, + { + "$ref": "#/components/parameters/IncludeCancelledAccounts" } ], "responses": { @@ -9607,50 +9991,154 @@ "x-latency-category": "responsive" } }, - "/mobile_applications": { + "/mobile_operator_networks": { "get": { + "summary": "List mobile operator networks", + "description": "Telnyx has a set of GSM mobile operators partners that are available through our mobile network roaming. This resource is entirely managed by Telnyx and may change over time. That means that this resource won't allow any write operations for it. Still, it's available so it can be used as a support resource that can be related to other resources or become a configuration option.", + "operationId": "MobileOperatorNetworksGet", "tags": [ - "Mobile Applications" + "Mobile Operator Networks" + ], + "parameters": [ + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[name][starts_with]", + "description": "Filter by name starting with.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "AT" + } + }, + { + "name": "filter[name][contains]", + "description": "Filter by name containing match.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "T&T" + } + }, + { + "name": "filter[name][ends_with]", + "description": "Filter by name ending with.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "T" + } + }, + { + "name": "filter[country_code]", + "description": "Filter by exact country_code.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "US" + } + }, + { + "name": "filter[mcc]", + "description": "Filter by exact MCC.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "310" + } + }, + { + "name": "filter[mnc]", + "description": "Filter by exact MNC.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "410" + } + }, + { + "name": "filter[tadig]", + "description": "Filter by exact TADIG.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "USACG" + } + } ], - "summary": "Retrieves mobile applications", - "description": "Retrieves all mobile applications for a user", - "operationId": "getAllMobileApplications", "responses": { "200": { - "description": "Mobile application created", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/MobileApplicationResponse" - } - } - } + "$ref": "#/components/responses/SearchMobileOperatorNetworksResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/mobile_push_credentials": { + "get": { + "tags": [ + "Push Credentials" + ], + "summary": "List mobile push credentials", + "description": "List mobile push credentials", + "operationId": "listPushCredentials", + "parameters": [ + { + "name": "filter[type]", + "in": "query", + "description": "type of mobile push credentials", + "schema": { + "type": "string", + "enum": [ + "ios", + "android" + ], + "example": "ios" } }, - "401": { - "description": "Unauthorized request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } + { + "name": "filter[alias]", + "in": "query", + "description": "Unique mobile push credential alias", + "schema": { + "type": "string", + "example": "LucyCredential" } }, - "404": { - "description": "Resource not found", + { + "$ref": "#/components/parameters/PageSize" + }, + { + "$ref": "#/components/parameters/PageNumber" + } + ], + "responses": { + "200": { + "description": "Mobile mobile push credentials", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/Errors" + "$ref": "#/components/responses/ListPushCredentialsResponse" } } } }, - "422": { - "description": "Unable to process request", + "401": { + "description": "Unauthorized request", "content": { "application/json": { "schema": { @@ -9664,17 +10152,25 @@ }, "post": { "tags": [ - "Mobile Applications" + "Push Credentials" ], - "summary": "Adds a mobile application", - "description": "Creates a new mobile application which can be android or ios based on the `type` parameter", - "operationId": "addMobileApplication", + "summary": "Creates a new mobile push credential", + "description": "Creates a new mobile push credential", + "operationId": "createPushCredential", + "parameters": [], "requestBody": { - "description": "Mobile application parameters that need to be sent in the request", + "description": "Mobile push credential parameters that need to be sent in the request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateMobileApplicationRequest" + "oneOf": [ + { + "$ref": "#/components/schemas/CreateIosPushCredentialRequest" + }, + { + "$ref": "#/components/schemas/CreateAndroidPushCredentialRequest" + } + ] } } }, @@ -9682,11 +10178,11 @@ }, "responses": { "200": { - "description": "Mobile application created", + "description": "Mobile push credential created", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MobileApplicationResponse" + "$ref": "#/components/responses/PushCredentialResponse" } } } @@ -9715,30 +10211,30 @@ "x-latency-category": "responsive" } }, - "/mobile_applications/{mobile_application_id}": { + "/mobile_push_credentials/{push_credential_id}": { "delete": { "tags": [ - "Mobile Applications" + "Push Credentials" ], - "summary": "Deletes a mobile application", - "description": "Deletes a mobile application based on the given `id`", - "operationId": "deleteMobileApplicationById", + "summary": "Deletes a mobile push credential", + "description": "Deletes a mobile push credential based on the given `push_credential_id`", + "operationId": "deletePushCredentialById", "parameters": [ { - "name": "mobile_application_id", + "name": "push_credential_id", "in": "path", - "description": "The unique identifier of a mobile application", + "description": "The unique identifier of a mobile push credential", "required": true, "schema": { "type": "string", "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" + "example": "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0" } } ], "responses": { "204": { - "description": "The mobile application was deleted successfully" + "description": "The mobile push credential was deleted successfully" }, "401": { "description": "Unauthorized request", @@ -9775,31 +10271,31 @@ }, "get": { "tags": [ - "Mobile Applications" + "Push Credentials" ], - "summary": "Retrieves a given mobile application", - "description": "Retrieves a mobile application based on the given `id`", - "operationId": "getMobileApplicationById", + "summary": "Retrieves a mobile push credential", + "description": "Retrieves mobile push credential based on the given `push_credential_id`", + "operationId": "getPushCredentialById", "parameters": [ { - "name": "mobile_application_id", + "name": "push_credential_id", "in": "path", - "description": "The unique identifier of a mobile application", + "description": "The unique identifier of a mobile push credential", "required": true, "schema": { "type": "string", "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" + "example": "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0" } } ], "responses": { "200": { - "description": "Successful get mobile application response", + "description": "Successful get mobile push credential response", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/MobileApplicationResponse" + "$ref": "#/components/responses/PushCredentialResponse" } } } @@ -9836,33 +10332,56 @@ } }, "x-latency-category": "responsive" - }, - "patch": { + } + }, + "/networks": { + "get": { + "summary": "List all Networks", + "description": "List all Networks.", + "operationId": "NetworkList", "tags": [ - "Mobile Applications" + "Networks" ], - "summary": "Updates a mobile application", - "description": "Updates a mobile application based on the given `id`", - "operationId": "updateMobileApplicationById", "parameters": [ { - "name": "mobile_application_id", - "in": "path", - "description": "The unique identifier of a mobile application", - "required": true, + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[name]", + "description": "The network name to filter on.", + "in": "query", + "required": false, "schema": { "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" + "example": "test network" } } ], + "responses": { + "200": { + "$ref": "#/components/responses/NetworkListResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "summary": "Create a Network", + "description": "Create a new Network.", + "operationId": "NetworkCreate", + "tags": [ + "Networks" + ], "requestBody": { - "description": "Mobile application parameters that need to be sent in the request", "content": { "application/json": { "schema": { - "$ref": "#/components/schemas/CreateMobileApplicationRequest" + "$ref": "#/components/schemas/NetworkCreate" } } }, @@ -9870,179 +10389,80 @@ }, "responses": { "200": { - "description": "The modile application was updated successfully", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/MobileApplicationResponse" - } - } - } - }, - "401": { - "description": "Unauthorized request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "$ref": "#/components/responses/NetworkResponse" }, "422": { - "description": "Unable to process request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" } }, "x-latency-category": "responsive" } }, - "/mobile_applications/{mobile_application_id}/push_credentials": { - "get": { + "/networks/{id}": { + "delete": { + "summary": "Delete a Network", + "description": "Delete a Network.", + "operationId": "NetworkDelete", "tags": [ - "Push Credentials" + "Networks" ], - "summary": "Retrieves push credentials associated to a mobile application", - "description": "Retrieves push credentials for a given mobile application based on filters for a user", - "operationId": "getPushCredentials", "parameters": [ { - "name": "mobile_application_id", - "in": "path", - "description": "The unique identifier of a mobile application", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" - } - }, - { - "name": "filter[created_at][eq]", - "in": "query", - "description": "ISO 8601 date for filtering credentials created on that date", - "schema": { - "type": "string", - "format": "date", - "example": "2021-04-25" - } - }, - { - "name": "filter[created_at][gte]", - "in": "query", - "description": "ISO 8601 date for filtering credentials created after that date", - "schema": { - "type": "string", - "format": "date", - "example": "2021-04-25" - } - }, - { - "name": "filter[created_at][lte]", - "in": "query", - "description": "ISO 8601 date for filtering credentials created before that date", - "schema": { - "type": "string", - "format": "date", - "example": "2021-04-25" - } + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/NetworkResponse" }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "get": { + "summary": "Retrieve a Network", + "description": "Retrieve a Network.", + "operationId": "NetworkGet", + "tags": [ + "Networks" + ], + "parameters": [ { - "name": "filter[alias]", - "in": "query", - "description": "Unique push credential alias", - "schema": { - "type": "string", - "example": "LucyCredential" - } + "$ref": "#/components/parameters/ResourceId" } ], "responses": { "200": { - "description": "Mobile application created", - "content": { - "application/json": { - "schema": { - "type": "array", - "items": { - "$ref": "#/components/schemas/PushCredentialResponse" - } - } - } - } - }, - "401": { - "description": "Unauthorized request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "$ref": "#/components/responses/NetworkResponse" }, - "422": { - "description": "Unable to process request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "default": { + "$ref": "#/components/responses/GenericErrorResponse" } }, "x-latency-category": "responsive" }, - "post": { + "patch": { + "summary": "Update a Network", + "description": "Update a Network.", + "operationId": "NetworkUpdate", "tags": [ - "Mobile Applications" + "Networks" ], - "summary": "Adds push credential to a given mobile application", - "description": "Creates a new credential for a given mobile application", - "operationId": "addPushCredential", "parameters": [ { - "name": "mobile_application_id", - "in": "path", - "description": "The unique identifier of a mobile application", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" - } + "$ref": "#/components/parameters/ResourceId" } ], "requestBody": { - "description": "Push credential parameters that need to be sent in the request", "content": { "application/json": { "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/CreateIosPushCredentialRequest" - }, - { - "$ref": "#/components/schemas/CreateAndroidPushCredentialRequest" - } - ] + "$ref": "#/components/schemas/NetworkCreate" } } }, @@ -10050,128 +10470,66 @@ }, "responses": { "200": { - "description": "Push credential created", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PushCredentialResponse" - } - } - } + "$ref": "#/components/responses/NetworkResponse" }, - "401": { - "description": "Unauthorized request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } - }, - "422": { - "description": "Unable to process request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "default": { + "$ref": "#/components/responses/GenericErrorResponse" } }, "x-latency-category": "responsive" } }, - "/mobile_operator_networks": { + "/networks/{id}/network_interfaces": { "get": { - "summary": "List mobile operator networks", - "description": "Telnyx has a set of GSM mobile operators partners that are available through our mobile network roaming. This resource is entirely managed by Telnyx and may change over time. That means that this resource won't allow any write operations for it. Still, it's available so it can be used as a support resource that can be related to other resources or become a configuration option.", - "operationId": "MobileOperatorNetworksGet", + "summary": "List all Interfaces for a Network.", + "description": "List all Interfaces for a Network.", + "operationId": "NetworkInterfaceList", "tags": [ - "Mobile Operator Networks" + "Networks" ], "parameters": [ { - "$ref": "#/components/parameters/PageNumber" - }, - { - "$ref": "#/components/parameters/PageSize" - }, - { - "name": "filter[name][starts_with]", - "description": "Filter by name starting with.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "example": "AT" - } - }, - { - "name": "filter[name][contains]", - "description": "Filter by name containing match.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "example": "T&T" - } + "$ref": "#/components/parameters/ResourceId" }, { - "name": "filter[name][ends_with]", - "description": "Filter by name ending with.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "example": "T" - } + "$ref": "#/components/parameters/PageNumber" }, { - "name": "filter[country_code]", - "description": "Filter by exact country_code.", - "in": "query", - "required": false, - "schema": { - "type": "string", - "example": "US" - } + "$ref": "#/components/parameters/PageSize" }, { - "name": "filter[mcc]", - "description": "Filter by exact MCC.", + "name": "filter[name]", + "description": "The interface name to filter on.", "in": "query", "required": false, "schema": { "type": "string", - "example": "310" + "example": "test interface" } }, { - "name": "filter[mnc]", - "description": "Filter by exact MNC.", + "name": "filter[type]", + "description": "The interface type to filter on.", "in": "query", "required": false, "schema": { "type": "string", - "example": "410" + "example": "wireguard_interface" } }, { - "name": "filter[tadig]", - "description": "Filter by exact TADIG.", + "name": "filter[status]", + "description": "The interface status to filter on.", "in": "query", "required": false, "schema": { - "type": "string", - "example": "USACG" + "$ref": "#/components/schemas/InterfaceStatus" } } ], "responses": { "200": { - "$ref": "#/components/responses/SearchMobileOperatorNetworksResponse" + "$ref": "#/components/responses/NetworkInterfaceListResponse" }, "default": { "$ref": "#/components/responses/GenericErrorResponse" @@ -10206,7 +10564,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Notification Channels", "properties": { "data": { "type": "array", @@ -10252,7 +10609,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Notification Channel", "properties": { "data": { "$ref": "#/components/schemas/NotificationChannel" @@ -10289,7 +10645,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Notification Channel", "properties": { "data": { "$ref": "#/components/schemas/NotificationChannel" @@ -10324,7 +10679,6 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Notification Channel", "properties": { "data": { "$ref": "#/components/schemas/NotificationChannel" @@ -10370,7 +10724,6 @@ "application/json": { "schema": { "type": "object", - "title": "Update Notification Channel", "properties": { "data": { "$ref": "#/components/schemas/NotificationChannel" @@ -10413,7 +10766,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Notification Even Conditions", "properties": { "data": { "type": "array", @@ -10459,7 +10811,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Notification Events", "properties": { "data": { "type": "array", @@ -10505,7 +10856,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Notification Profiles", "properties": { "data": { "type": "array", @@ -10551,7 +10901,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Notification Profile", "properties": { "data": { "$ref": "#/components/schemas/NotificationProfile" @@ -10588,7 +10937,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Notification Profiles", "properties": { "data": { "$ref": "#/components/schemas/NotificationProfile" @@ -10623,7 +10971,6 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Notification Profile", "properties": { "data": { "$ref": "#/components/schemas/NotificationProfile" @@ -10669,7 +11016,6 @@ "application/json": { "schema": { "type": "object", - "title": "Update Notification Profile", "properties": { "data": { "$ref": "#/components/schemas/NotificationProfile" @@ -10724,7 +11070,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Notification Settings", "properties": { "data": { "type": "array", @@ -10769,7 +11114,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Notification Setting", "properties": { "data": { "$ref": "#/components/schemas/NotificationSetting" @@ -10785,7 +11129,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Notification Setting Async", "properties": { "data": { "$ref": "#/components/schemas/NotificationSetting" @@ -10821,7 +11164,6 @@ "content": { "application/json": { "schema": { - "title": "Delete Notification Setting", "type": "object", "properties": { "data": { @@ -10837,7 +11179,6 @@ "content": { "application/json": { "schema": { - "title": "Delete Notification Setting Async", "type": "object", "properties": { "data": { @@ -10873,7 +11214,6 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Notification Setting", "properties": { "data": { "$ref": "#/components/schemas/NotificationSetting" @@ -12030,7 +12370,7 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Phone Number Blocks Job", + "title": "Phone Number Blocks Job", "properties": { "data": { "$ref": "#/components/schemas/PhoneNumberBlocksJob" @@ -12315,7 +12655,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Inbound Channels", "properties": { "data": { "type": "object", @@ -12363,7 +12702,6 @@ "content": { "application/json": { "schema": { - "title": "Update Inbound Channels", "type": "object", "required": [ "channels" @@ -12386,7 +12724,6 @@ "application/json": { "schema": { "type": "object", - "title": "Update Inbounc Channels", "properties": { "data": { "type": "object", @@ -12544,7 +12881,7 @@ "application/json": { "schema": { "type": "object", - "title": "Create Phone Numbers Job Delete Phone Numbers", + "title": "Phone Numbers Job Delete Phone Numbers", "properties": { "data": { "$ref": "#/components/schemas/PhoneNumbersJob" @@ -12586,7 +12923,7 @@ "application/json": { "schema": { "type": "object", - "title": "Create Phone Numbers Enable Emergency", + "title": "Phone Numbers Enable Emergency", "properties": { "data": { "$ref": "#/components/schemas/PhoneNumbersJob" @@ -12671,7 +13008,7 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Phone Numbers Job", + "title": "Phone Numbers Job", "properties": { "data": { "$ref": "#/components/schemas/PhoneNumbersJob" @@ -12909,7 +13246,7 @@ "application/json": { "schema": { "type": "object", - "title": "Create Phone Number Emergency Enable", + "title": "Phone Number Enable Emergency", "properties": { "data": { "$ref": "#/components/schemas/PhoneNumberWithVoiceSettings" @@ -12925,7 +13262,7 @@ "application/json": { "schema": { "type": "object", - "title": "Create Phone Number Emergency Requested", + "title": "Phone Number Enable Emergency", "properties": { "data": { "$ref": "#/components/schemas/PhoneNumberWithVoiceSettings" @@ -13109,7 +13446,6 @@ "content": { "application/json": { "schema": { - "title": "Create Portability Check Request", "type": "object", "properties": { "phone_numbers": { @@ -13403,7 +13739,7 @@ }, "responses": { "200": { - "$ref": "#/components/responses/ShowPortingOrder" + "$ref": "#/components/responses/UpdatePortingOrderResponse" }, "401": { "description": "Unauthorized" @@ -13457,7 +13793,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/ShowPortingOrder" + "$ref": "#/components/responses/CancelPortingOrderResponse" }, "401": { "description": "Unauthorized" @@ -13484,7 +13820,7 @@ ], "responses": { "200": { - "$ref": "#/components/responses/ShowPortingOrder" + "$ref": "#/components/responses/ConfirmPortingOrderResponse" }, "401": { "description": "Unauthorized" @@ -13736,6 +14072,39 @@ "x-latency-category": "responsive" } }, + "/porting_orders/{id}/requirements": { + "get": { + "summary": "List all required documents for this porting order", + "tags": [ + "Porting Order" + ], + "description": "Returns a list of all requirements for this porting order.", + "operationId": "ListPortingOrderRequirements", + "parameters": [ + { + "$ref": "#/components/parameters/PathPortingOrderID" + }, + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ListPortingOrderRequirements" + }, + "401": { + "description": "Unauthorized" + }, + "422": { + "description": "Unprocessable entity. Check message field in response for details." + } + }, + "x-latency-category": "responsive" + } + }, "/porting_orders/{id}/sub_request": { "get": { "summary": "Retrieve the associated V1 sub_request_id and port_request_id", @@ -14001,7 +14370,6 @@ "content": { "application/json": { "schema": { - "title": "Create Comment Portout Request", "type": "object", "properties": { "body": { @@ -14087,7 +14455,6 @@ "content": { "application/json": { "schema": { - "title": "Create Porting Supporting Docs Request", "type": "object", "properties": { "documents": { @@ -14180,7 +14547,6 @@ "content": { "application/json": { "schema": { - "title": "Update Portout Status Request", "type": "object", "properties": { "reason": { @@ -14298,7 +14664,6 @@ "content": { "application/json": { "schema": { - "title": "Create Private Wireless Gatweway Request", "type": "object", "properties": { "network_id": { @@ -14387,205 +14752,114 @@ "x-latency-category": "responsive" } }, - "/push_credentials/{push_credential_id}": { - "delete": { + "/public_internet_gateways": { + "get": { + "summary": "List all Public Internet Gateways", + "description": "List all Public Internet Gateways.", + "operationId": "PublicInternetGatewayList", "tags": [ - "Push Credentials" + "Public Internet Gateways" ], - "summary": "Deletes a push credential", - "description": "Deletes a push credential based on the given `id`", - "operationId": "deletePushCredentialnById", "parameters": [ { - "name": "push_credential_id", - "in": "path", - "description": "The unique identifier of a push credential", - "required": true, + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[network_id]", + "description": "The associated network id to filter on.", + "in": "query", + "required": false, "schema": { "type": "string", - "format": "uuid", - "example": "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0" + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" } } ], "responses": { - "204": { - "description": "The push credential was deleted successfully" + "200": { + "$ref": "#/components/responses/PublicInternetGatewayListResponse" }, - "401": { - "description": "Unauthorized request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "summary": "Create a Public Internet Gateway", + "description": "Create a new Public Internet Gateway.", + "operationId": "PublicInternetGatewayCreate", + "tags": [ + "Public Internet Gateways" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/PublicInternetGatewayCreate" } } }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "required": true + }, + "responses": { + "202": { + "$ref": "#/components/responses/PublicInternetGatewayResponse" }, "422": { - "description": "Unable to process request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" } }, "x-latency-category": "responsive" - }, - "get": { + } + }, + "/public_internet_gateways/{id}": { + "delete": { + "summary": "Delete a Public Internet Gateway", + "description": "Delete a Public Internet Gateway.", + "operationId": "PublicInternetGatewayDelete", "tags": [ - "Push Credentials" + "Public Internet Gateways" ], - "summary": "Retrieves a push credential", - "description": "Retrieves push credential based on the given `id`", - "operationId": "getPushCredentialById", "parameters": [ { - "name": "push_credential_id", - "in": "path", - "description": "The unique identifier of a push credential", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "example": "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0" - } + "$ref": "#/components/parameters/ResourceId" } ], "responses": { "200": { - "description": "Successful get push credential response", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PushCredentialResponse" - } - } - } - }, - "401": { - "description": "Unauthorized request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "$ref": "#/components/responses/PublicInternetGatewayResponse" }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } - }, - "422": { - "description": "Unable to process request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "default": { + "$ref": "#/components/responses/GenericErrorResponse" } }, "x-latency-category": "responsive" }, - "patch": { + "get": { + "summary": "Retrieve a Public Internet Gateway", + "description": "Retrieve a Public Internet Gateway.", + "operationId": "PublicInternetGatewayGet", "tags": [ - "Push Credentials" + "Public Internet Gateways" ], - "summary": "Updates a push credential", - "description": "Updates a push credential based on the given `id`", - "operationId": "updatePushCredentialById", "parameters": [ { - "name": "push_credential_id", - "in": "path", - "description": "The unique identifier of a push credential", - "required": true, - "schema": { - "type": "string", - "format": "uuid", - "example": "0ccc7b76-4df3-4bca-a05a-3da1ecc389f0" - } + "$ref": "#/components/parameters/ResourceId" } ], - "requestBody": { - "description": "Push credential parameters that need to be sent in the request", - "content": { - "application/json": { - "schema": { - "oneOf": [ - { - "$ref": "#/components/schemas/CreateIosPushCredentialRequest" - }, - { - "$ref": "#/components/schemas/CreateAndroidPushCredentialRequest" - } - ] - } - } - } - }, "responses": { "200": { - "description": "The push credential was updated successfully", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/PushCredentialResponse" - } - } - } + "$ref": "#/components/responses/PublicInternetGatewayResponse" }, - "401": { - "description": "Unauthorized request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } - }, - "404": { - "description": "Resource not found", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } - }, - "422": { - "description": "Unable to process request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Errors" - } - } - } + "default": { + "$ref": "#/components/responses/GenericErrorResponse" } }, "x-latency-category": "responsive" @@ -14784,6 +15058,25 @@ "x-latency-category": "interactive" } }, + "/regions": { + "get": { + "summary": "List all Regions", + "description": "List all regions and the interfaces that region supports", + "operationId": "RegionList", + "tags": [ + "Regions" + ], + "responses": { + "200": { + "$ref": "#/components/responses/RegionListResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/reports/batch_mdr_reports": { "get": { "tags": [ @@ -15405,6 +15698,140 @@ "x-latency-category": "interactive" } }, + "/reports/wdrs": { + "get": { + "tags": [ + "WDR Detail Reports" + ], + "description": "Fetch all Wdr records ", + "operationId": "getPaginatedWdrs", + "parameters": [ + { + "name": "start_date", + "in": "query", + "description": "Start date", + "schema": { + "type": "string", + "example": "2021-05-01T00:00:00Z" + } + }, + { + "name": "end_date", + "in": "query", + "description": "End date", + "schema": { + "type": "string", + "example": "2021-06-01T00:00:00Z" + } + }, + { + "name": "id", + "in": "query", + "schema": { + "type": "string", + "description": "WDR uuid", + "example": "e093fbe0-5bde-11eb-ae93-0242ac130002" + } + }, + { + "name": "mcc", + "in": "query", + "schema": { + "type": "string", + "description": "Mobile country code", + "example": "204" + } + }, + { + "name": "mnc", + "in": "query", + "schema": { + "type": "string", + "description": "Mobile network code", + "example": "01" + } + }, + { + "name": "imsi", + "in": "query", + "schema": { + "type": "string", + "description": "International mobile subscriber identity", + "example": "123456" + } + }, + { + "name": "sim_group_name", + "in": "query", + "schema": { + "type": "string", + "description": "Sim group name", + "example": "sim name" + } + }, + { + "name": "sim_group_id", + "in": "query", + "schema": { + "type": "string", + "description": "Sim group unique identifier", + "example": "f05a189f-7c46-4531-ac56-1460dc465a42" + } + }, + { + "name": "sim_card_id", + "in": "query", + "schema": { + "type": "string", + "description": "Sim card unique identifier", + "example": "877f80a6-e5b2-4687-9a04-88076265720f" + } + }, + { + "name": "phone_number", + "in": "query", + "schema": { + "type": "string", + "description": "Phone number", + "example": "+12345678910" + } + }, + { + "name": "page[number]", + "in": "query", + "description": "Page number", + "schema": { + "type": "integer", + "format": "int32", + "default": 1 + } + }, + { + "name": "page[size]", + "in": "query", + "description": "Size of the page", + "schema": { + "type": "integer", + "format": "int32", + "default": 20 + } + } + ], + "responses": { + "200": { + "description": "Successful", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/ExternalWdrGetDetailResponse" + } + } + } + } + }, + "x-latency-category": "interactive" + } + }, "/requirement_types": { "get": { "summary": "List all requirement types", @@ -16422,6 +16849,37 @@ "x-latency-category": "responsive" } }, + "/room_sessions/{room_session_id}/actions/end": { + "post": { + "summary": "End a room session.", + "description": "Note: this will also kick all participants currently present in the room", + "operationId": "EndSession", + "x-endpoint-cost": "medium", + "tags": [ + "Room Sessions" + ], + "security": [], + "parameters": [ + { + "name": "room_session_id", + "in": "path", + "description": "The unique identifier of a room session.", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/ActionSuccessResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/room_sessions/{room_session_id}/actions/kick": { "post": { "summary": "Kick participants from a room session.", @@ -17280,6 +17738,9 @@ { "$ref": "#/components/parameters/FilterBasicStatusLifecycle" }, + { + "$ref": "#/components/parameters/FilterBulkSIMCardActionId" + }, { "name": "filter[action_type]", "description": "Filter by action type.", @@ -17375,7 +17836,6 @@ "content": { "application/json": { "schema": { - "title": "Create SIM Card Data Usage Notification Request", "type": "object", "properties": { "sim_card_id": { @@ -17596,6 +18056,16 @@ "example": "My Test Group" }, "in": "query" + }, + { + "name": "filter[private_wireless_gateway_id]", + "description": "A Private Wireless Gateway ID associated with the group.", + "schema": { + "format": "uuid", + "type": "string", + "example": "7606c6d3-ff7c-49c1-943d-68879e9d584d" + }, + "in": "query" } ], "responses": { @@ -17760,7 +18230,6 @@ "content": { "application/json": { "schema": { - "title": "Create Private Wireless Gatweway Request", "type": "object", "properties": { "private_wireless_gateway_id": { @@ -17799,7 +18268,6 @@ "content": { "application/json": { "schema": { - "title": "CreateSimCardOrderPreview", "type": "object", "required": [ "quantity", @@ -17998,6 +18466,25 @@ "type": "string", "example": "89310410106543789301" } + }, + { + "name": "filter[status]", + "description": "Filter by a SIM card's status.", + "in": "query", + "required": false, + "schema": { + "type": "array", + "items": { + "type": "string", + "enum": [ + "enabled", + "disabled", + "standby", + "data_limit_exceeded", + "unauthorized_imei" + ] + } + } } ], "responses": { @@ -18011,6 +18498,48 @@ "x-latency-category": "responsive" } }, + "/sim_cards/actions/bulk_set_public_ips": { + "post": { + "x-latency-category": "background", + "summary": "Request bulk setting SIM card public IPs.", + "description": "This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards.
\nFor each SIM Card a SIM Card Action will be generated. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API.\n", + "operationId": "BulkSetPublicIPs", + "tags": [ + "SIM Cards" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "type": "object", + "required": [ + "sim_card_ids" + ], + "properties": { + "sim_card_ids": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Id" + }, + "example": [ + "6b14e151-8493-4fa1-8664-1cc4e6d14158" + ] + } + } + } + } + } + }, + "responses": { + "202": { + "$ref": "#/components/responses/BulkSIMCardActionResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + } + } + } + }, "/sim_cards/actions/validate_registration_codes": { "post": { "summary": "Validate SIM cards registration codes", @@ -18024,7 +18553,6 @@ "content": { "application/json": { "schema": { - "title": "Create SIM Card Validate Request", "type": "object", "properties": { "registration_codes": { @@ -18144,6 +18672,33 @@ "x-latency-category": "responsive" } }, + "/sim_cards/{id}/actions/delete_network_preferences": { + "post": { + "x-latency-category": "background", + "summary": "Delete network preferences for a SIM card", + "description": "This API deletes network preferences for a SIM card.
\nThe API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API.\n", + "operationId": "DeleteNetworkPreference", + "tags": [ + "SIM Cards" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "202": { + "$ref": "#/components/responses/SIMCardActionResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + } + } + }, "/sim_cards/{id}/actions/disable": { "post": { "x-latency-category": "background", @@ -18219,6 +18774,33 @@ } } }, + "/sim_cards/{id}/actions/set_network_preferences": { + "post": { + "x-latency-category": "background", + "summary": "Create or update network preferences for a SIM card", + "description": "This API sets network preferences for a SIM card.
\nEvery SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.

\nThe SIM card needs to be attached to the network so this can connect and SMS must be available, otherwise, the operation will fail. This preference will only be respected if the network is available, otherwise the strongest signal will be used.

\nThe API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API.\n", + "operationId": "SetNetworkPreference", + "tags": [ + "SIM Cards" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "202": { + "$ref": "#/components/responses/SIMCardActionResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + } + } + }, "/sim_cards/{id}/actions/set_public_ip": { "post": { "x-latency-category": "background", @@ -18267,6 +18849,30 @@ } } }, + "/sim_cards/{sim_card_id}/device_details": { + "get": { + "summary": "Get SIM card device details", + "description": "It returns the device details where a SIM card is currently being used.\n", + "operationId": "SIMCardDeviceDetailsGet", + "tags": [ + "SIM Cards" + ], + "parameters": [ + { + "$ref": "#/components/parameters/SIMCardId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/SIMCardDeviceDetailsResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/sim_cards/{sim_card_id}/network_preferences": { "delete": { "summary": "DELETE network preferences", @@ -18331,7 +18937,6 @@ "content": { "application/json": { "schema": { - "title": "Put Network Preference Request", "type": "object", "properties": { "mobile_operator_networks_preferences": { @@ -18871,6 +19476,39 @@ "x-latency-category": "responsive" } }, + "/texml/{call_sid}/update": { + "post": { + "summary": "Update call", + "description": "Update TeXml call", + "x-latency-category": "responsive", + "x-group-parameters": "true", + "operationId": "UpdateTeXMLCall", + "tags": [ + "TeXML REST Commands" + ], + "parameters": [ + { + "$ref": "#/components/parameters/CallSid" + } + ], + "requestBody": { + "description": "Update Call request object", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/UpdateCallRequest" + } + } + } + }, + "responses": { + "200": { + "$ref": "#/components/responses/UpdateTeXMLCallResponse" + } + } + } + }, "/texml_applications": { "get": { "description": "Returns a list of your TeXML Applications.", @@ -19829,6 +20467,255 @@ "x-latency-category": "responsive" } }, + "/virtual_cross_connect_regions": { + "get": { + "summary": "List all Virtual Cross Connect Cloud Regions", + "description": "List all Virtual Cross Connects Cloud Regions.

This endpoint shows which cloud regions are available for the `region_code` your Virtual Cross Connect will be provisioned in.", + "operationId": "VirtaulCrossConnectRegionList", + "tags": [ + "Virtual Cross Connects" + ], + "parameters": [ + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[region_code]", + "description": "The Telnyx region code", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "ashburn-va" + } + }, + { + "name": "filter[cloud_provider]", + "description": "The Telnyx region code", + "in": "query", + "required": false, + "schema": { + "type": "string", + "enum": [ + "aws", + "azure", + "gce" + ], + "description": "The Virtual Private Cloud provider.", + "example": "aws" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/VirtualCrossConnectRegionListResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/virtual_cross_connect_regions/{id}": { + "get": { + "summary": "Retrieve a Virtual Cross Connect Cloud Regions", + "description": "Retrieve a Virtual Cross Connect Cloud Regions.", + "operationId": "VirtualCrossConnectRegionGet", + "tags": [ + "Virtual Cross Connects" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/VirtualCrossConnectRegionResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/virtual_cross_connects": { + "get": { + "summary": "List all Virtual Cross Connects", + "description": "List all Virtual Cross Connects.", + "operationId": "VirtaulCrossConnectList", + "tags": [ + "Virtual Cross Connects" + ], + "parameters": [ + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[network_id]", + "description": "The associated network id to filter on.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/VirtualCrossConnectListResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "summary": "Create a Virtual Cross Connect", + "description": "Create a new Virtual Cross Connect.

For AWS and GCE, you have the option of creating the primary connection first and the secondary connection later. You also have the option of disabling the primary and/or secondary connections at any time and later re-enabling them. With Azure, you do not have this option. Azure requires both the primary and secondary connections to be created at the same time and they can not be independantly disabled.", + "operationId": "VirtualCrossConnectCreate", + "tags": [ + "Virtual Cross Connects" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VirtualCrossConnectCreate" + } + } + }, + "required": true + }, + "responses": { + "200": { + "$ref": "#/components/responses/VirtualCrossConnectResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/virtual_cross_connects/{id}": { + "delete": { + "summary": "Delete a Virtual Cross Connect", + "description": "Delete a Virtual Cross Connect.", + "operationId": "VirtualCrossConnectDelete", + "tags": [ + "Virtual Cross Connects" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/VirtualCrossConnectResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "get": { + "summary": "Retrieve a Virtual Cross Connect", + "description": "Retrieve a Virtual Cross Connect.", + "operationId": "VirtualCrossConnectGet", + "tags": [ + "Virtual Cross Connects" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/VirtualCrossConnectResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "patch": { + "summary": "Update the Virtual Cross Connect", + "description": "Update the Virtual Cross Connect.

Cloud IPs can only be patched during the `created` state, as GCE will only inform you of your generated IP once the pending connection requested has been accepted. Once the Virtual Cross Connect has moved to `provisioning`, the IPs can no longer be patched.

Once the Virtual Cross Connect has moved to `provisioned` and you are ready to enable routing, you can toggle the routing announcements to `true`.", + "operationId": "VirtualCrossConnectUpdate", + "tags": [ + "Virtual Cross Connects" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/VirtualCrossConnectPatch" + } + } + }, + "required": true + }, + "responses": { + "200": { + "$ref": "#/components/responses/VirtualCrossConnectResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/virtual_cross_connects/{id}/actions/provision": { + "post": { + "summary": "Provision a Virtual Cross Connect", + "description": "Provision a new Virtual Cross Connect.

This endpoint is only necessary for GCE cloud regions. Once you have patched your Cloud IPs, you must POST this request to trigger the provision.", + "operationId": "VirtualCrossConnectProvision", + "tags": [ + "Virtual Cross Connects" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "202": { + "$ref": "#/components/responses/VirtualCrossConnectResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/webhook_deliveries": { "get": { "description": "Lists webhook_deliveries for the authenticated user", @@ -19852,6 +20739,16 @@ "example": "delivered" } }, + { + "name": "filter[event_type]", + "in": "query", + "description": "Return only webhook_deliveries matching the given value of `event_type`. Accepts multiple values separated by a `,`.", + "required": false, + "schema": { + "type": "string", + "example": "call_initiated,call.initiated" + } + }, { "name": "filter[webhook][contains]", "in": "query", @@ -19961,7 +20858,6 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Webhook Delivery", "properties": { "data": { "$ref": "#/components/schemas/webhook_delivery" @@ -20035,7 +20931,7 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve WhatsApp Business Account", + "title": "WhatsApp Business Account", "properties": { "data": { "$ref": "#/components/schemas/WhatsappBusinessAccount" @@ -20082,6 +20978,328 @@ "x-latency-category": "responsive" } }, + "/whatsapp_business_accounts/{id}/whatsapp_message_templates": { + "get": { + "summary": "List WhatsApp Message Templates", + "operationId": "listWhatsappMessageTemplates", + "tags": [ + "WhatsApp Message Template" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifies the WhatsApp Business Account", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "example": "12ade33a-21c0-473b-b055-b3c836e1c292" + } + }, + { + "name": "category", + "in": "query", + "description": "The template category", + "schema": { + "enum": [ + "ACCOUNT_UPDATE", + "PAYMENT_UPDATE", + "PERSONAL_FINANCE_UPDATE", + "SHIPPING_UPDATE", + "RESERVATION_UPDATE", + "ISSUE_RESOLUTION", + "APPOINTMENT_UPDATE", + "TRANSPORTATION_UPDATE", + "TICKET_UPDATE", + "ALERT_UPDATE", + "AUTO_REPLY" + ], + "type": "string" + } + }, + { + "name": "language", + "in": "query", + "description": "The language of the whatsapp message template", + "schema": { + "type": "string", + "enum": [ + "af", + "sq", + "ar", + "az", + "bn", + "bg", + "ca", + "zh_CN", + "zh_HK", + "zh_TW", + "hr", + "cs", + "da", + "nl", + "en", + "en_GB", + "en_US", + "et", + "fil", + "fi", + "fr", + "ka", + "de", + "el", + "gu", + "ha", + "he", + "hi", + "hu", + "id", + "ga", + "it", + "ja", + "kn", + "kk", + "rw_RW", + "ko", + "ky_KG", + "lo", + "lv", + "lt", + "mk", + "ms", + "ml", + "mr", + "nb", + "fa", + "pl", + "pt_BR", + "pt_PT", + "pa", + "ro", + "ru", + "sr", + "sk", + "sl", + "es", + "es_AR", + "es_ES", + "es_MX", + "sw", + "sv", + "ta", + "te", + "th", + "tr", + "uk", + "ur", + "uz", + "vi", + "zu" + ] + } + }, + { + "name": "name", + "in": "query", + "description": "A name identifying this whatsapp message template", + "schema": { + "type": "string" + } + }, + { + "name": "quality_score", + "in": "query", + "description": "The score of the whatsapp message template", + "schema": { + "type": "string" + } + }, + { + "name": "rejected_reason", + "in": "query", + "description": "The reason why a message template was rejected by Whatsapp", + "schema": { + "type": "string" + } + }, + { + "name": "limit", + "in": "query", + "description": "The maximum number of message_templates to be returned on a query, we may return less than the limit number even if more pages are available.", + "example": "10", + "schema": { + "type": "string" + } + }, + { + "name": "before", + "in": "query", + "description": "Indicates that this is a query for entries before the given cursor", + "example": "QAVCEP", + "schema": { + "type": "string" + } + }, + { + "name": "after", + "in": "query", + "description": "Indicates that this is a query for entries after the given cursor", + "example": "QAVCEP", + "schema": { + "type": "string" + } + }, + { + "name": "status", + "in": "query", + "description": "Identifies the whatsApp Message Template status", + "example": "APPROVED", + "schema": { + "type": "string" + } + } + ], + "x-group-parameters": "true", + "responses": { + "200": { + "description": "WhatsApp Message Template", + "content": { + "application/json": { + "schema": { + "title": "WhatsApp Message Template", + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WhatsappMessageTemplate" + } + }, + "meta": { + "$ref": "#/components/schemas/CursorPagination" + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "summary": "Create WhatsApp Message Templates", + "operationId": "createWhatsappMessageTemplates", + "tags": [ + "WhatsApp Message Template" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifies the WhatsApp Business Account", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "example": "12ade33a-21c0-473b-b055-b3c836e1c292" + } + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/CreateWhatsappMessageTemplateRequestBody" + } + }, + "multipart/form-data": { + "schema": { + "$ref": "#/components/schemas/CreateWhatsappMessageTemplateRequestBody" + }, + "example": { + "name": "my_test_template", + "category": "APPOINTMENT_UPDATE", + "language": "en_US", + "components": "[{\"type\":\"BODY\", \"text\":\"message-text\"}]" + } + } + } + }, + "responses": { + "200": { + "description": "WhatsApp Message Template", + "content": { + "application/json": { + "schema": { + "title": "WhatsApp Message Template", + "type": "object", + "properties": { + "id": { + "type": "string", + "example": "12ac836e1c292" + }, + "record_type": { + "type": "string", + "example": "whatsapp_message_template" + } + } + } + } + } + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/whatsapp_business_accounts/{id}/whatsapp_message_templates/{name}": { + "delete": { + "summary": "Delete WhatsApp Message Templates", + "description": "Deletes all of the message templates with the given name and business account", + "operationId": "deleteWhatsappMessageTemplates", + "tags": [ + "WhatsApp Message Template" + ], + "parameters": [ + { + "name": "id", + "in": "path", + "description": "Identifies the WhatsApp Business Account", + "required": true, + "schema": { + "type": "string", + "format": "uuid", + "example": "12ade33a-21c0-473b-b055-b3c836e1c292" + } + }, + { + "name": "name", + "in": "path", + "required": true, + "schema": { + "type": "string" + }, + "example": "my_test_template2", + "description": "The name of the Whatsapp Message Template" + } + ], + "responses": { + "202": { + "description": "All message templates with the given name have been deleted" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/whatsapp_contacts": { "post": { "description": "Verify that a phone number belongs to a valid WhatsApp account. You must ensure that the status is valid before you can message a user, and you'll get their WhatsApp ID to use for messaging.", @@ -20530,7 +21748,7 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve WhatsApp Phone Number", + "title": "WhatsApp Phone Number", "properties": { "data": { "$ref": "#/components/schemas/WhatsappPhoneNumber" @@ -20581,7 +21799,7 @@ "application/json": { "schema": { "type": "object", - "title": "Update WhatsApp Phone Number", + "title": "WhatsApp Phone Number", "properties": { "data": { "$ref": "#/components/schemas/WhatsappPhoneNumber" @@ -20664,7 +21882,7 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve WhatsApp Profile Photo", + "title": "WhatsApp Profile Photo", "properties": { "data": { "$ref": "#/components/schemas/WhatsappProfilePhoto" @@ -20720,7 +21938,7 @@ "application/json": { "schema": { "type": "object", - "title": "Update WhatsApp Profile Photo", + "title": "WhatsApp Profile Photo", "properties": { "data": { "$ref": "#/components/schemas/WhatsappProfilePhoto" @@ -20784,6 +22002,365 @@ "x-latency-category": "background" } }, + "/wireguard_interfaces": { + "get": { + "summary": "List all WireGuard Interfaces", + "description": "List all WireGuard Interfaces.", + "operationId": "WireguardInterfaceList", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[network_id]", + "description": "The associated network id to filter on.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardInterfaceListResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "summary": "Create a WireGuard Interface", + "description": "Create a new WireGuard Interface. Current limitation of 10 interfaces per user can be created.", + "operationId": "WireguardInterfaceCreate", + "tags": [ + "WireGuard Interfaces" + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WireguardInterfaceCreate" + } + } + }, + "required": true + }, + "responses": { + "202": { + "$ref": "#/components/responses/WireguardInterfaceResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/wireguard_interfaces/{id}": { + "delete": { + "summary": "Delete a WireGuard Interface", + "description": "Delete a WireGuard Interface.", + "operationId": "WireguardInterfaceDelete", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardInterfaceResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "get": { + "summary": "Retrieve a WireGuard Interfaces", + "description": "Retrieve a WireGuard Interfaces.", + "operationId": "WireguardInterfaceGet", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardInterfaceResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/wireguard_peers": { + "get": { + "summary": "List all WireGuard Peers", + "description": "List all WireGuard peers.", + "operationId": "WireguardPeerList", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + }, + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + }, + { + "name": "filter[wireguard_interface_id]", + "description": "The id of the associated WireGuard interface to filter on.", + "in": "query", + "required": false, + "schema": { + "type": "string", + "format": "uuid", + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + } + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardPeerListResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "post": { + "summary": "Create a WireGuard Peer", + "description": "Create a new WireGuard Peer. Current limitation of 5 peers per interface can be created.", + "operationId": "WireguardPeerCreate", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WireguardPeerCreate" + } + } + }, + "required": true + }, + "responses": { + "202": { + "$ref": "#/components/responses/WireguardPeerResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/wireguard_peers/{id}": { + "delete": { + "summary": "Delete the WireGuard Peer", + "description": "Delete the WireGuard peer.", + "operationId": "WireguardPeerDelete", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardPeerResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "get": { + "summary": "Retrieve the WireGuard Peer", + "description": "Retrieve the WireGuard peer.", + "operationId": "WireguardPeerGet", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardPeerResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + }, + "patch": { + "summary": "Update the WireGuard Peer", + "description": "Update the WireGuard peer.", + "operationId": "WireguardPeerUpdate", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "requestBody": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/WireguardPeerPatch" + } + } + }, + "required": true + }, + "responses": { + "200": { + "$ref": "#/components/responses/WireguardPeerResponse" + }, + "422": { + "$ref": "#/components/responses/UnprocessableEntity" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/wireguard_peers/{id}/allowed_ips": { + "get": { + "summary": "List all Allowed IPs for a WireGuard Peer", + "description": "List all Allowed IPs for a WireGuard peer.", + "operationId": "WireguardPeerAllowedIPList", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + }, + { + "$ref": "#/components/parameters/PageNumber" + }, + { + "$ref": "#/components/parameters/PageSize" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardPeerAllowedIPListResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/wireguard_peers/{id}/allowed_ips/{child_id}": { + "get": { + "summary": "Retrieve the Allowed IP", + "description": "Retrieve the Allowed IP.", + "operationId": "WireguardPeerAllowedIPGet", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + }, + { + "$ref": "#/components/parameters/ChildId" + } + ], + "responses": { + "200": { + "$ref": "#/components/responses/WireguardPeerAllowedIPResponse" + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, + "/wireguard_peers/{id}/config": { + "get": { + "summary": "Retrieve Wireguard config template for Peer", + "description": "Retrieve Wireguard config template for Peer", + "operationId": "WireguardPeerConfig", + "tags": [ + "WireGuard Interfaces" + ], + "parameters": [ + { + "$ref": "#/components/parameters/ResourceId" + } + ], + "responses": { + "200": { + "description": "Successful response", + "content": { + "text/plain; charset=utf-8": { + "schema": { + "type": "string", + "example": "[Interface]\nPrivateKey = \nAddress = 198.51.100.1/32\n\n[Peer]\nPublicKey = qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=\nAllowedIPs = 198.51.100.0/29\nEndpoint = 203.0.113.0:51871\nPersistentKeepalive = 25\n" + } + } + } + }, + "default": { + "$ref": "#/components/responses/GenericErrorResponse" + } + }, + "x-latency-category": "responsive" + } + }, "/wireless/detail_records_reports": { "get": { "summary": "Get all Wireless Detail Records (WDRs) Reports", @@ -20932,6 +22509,15 @@ "type": "string" } }, + "CallSid": { + "name": "call_sid", + "in": "path", + "required": true, + "description": "The CallSid that identifies the call to update.", + "schema": { + "type": "string" + } + }, "ChannelTypeId": { "name": "filter[channel_type_id][eq]", "in": "query", @@ -20947,9 +22533,20 @@ "example": "webhook" } }, + "ChildId": { + "name": "child_id", + "description": "Identifies the child resource", + "in": "path", + "required": true, + "schema": { + "format": "uuid", + "type": "string", + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + } + }, "ConnectionId": { "name": "connection_id", - "description": "Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource.", + "description": "Uniquely identifies a Telnyx application (Call Control).", "in": "path", "required": true, "schema": { @@ -21146,16 +22743,6 @@ "example": "filename" } }, - "FilterAddressBook": { - "name": "filter[address_book][eq]", - "in": "query", - "required": false, - "description": "If present, only returns results with the address_book flag set to the given value.", - "schema": { - "type": "string", - "default": "null" - } - }, "FilterAddressByAdministrativeArea": { "name": "filter[address.administrative_area]", "description": "Filter by state or province where the address is located.", @@ -21223,7 +22810,6 @@ "FilterApplicationName": { "name": "filter[application_name][contains]", "in": "query", - "required": false, "description": "If present, applications with application_name containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters.", "schema": { "type": "string", @@ -21245,6 +22831,17 @@ "example": "in-progress" } }, + "FilterBulkSIMCardActionId": { + "name": "filter[bulk_sim_card_action_id]", + "description": "Filter by a bulk SIM card action ID.", + "in": "query", + "required": false, + "schema": { + "format": "uuid", + "type": "string", + "example": "47a1c2b0-cc7b-4ab1-bb98-b33fb0fc61b9" + } + }, "FilterByPhoneNumber": { "name": "filter[phone_number]", "in": "query", @@ -21501,24 +23098,6 @@ }, "in": "query" }, - "FilterCustomerReferenceContains": { - "name": "filter[customer_reference][contains]", - "in": "query", - "required": false, - "description": "If present, addresses with customer_reference containing the given value will be returned. Matching is not case-sensitive.", - "schema": { - "type": "string" - } - }, - "FilterCustomerReferenceEquals": { - "name": "filter[customer_reference][eq]", - "in": "query", - "required": false, - "description": "Filter addresses via the customer reference set. Matching is not case-sensitive.", - "schema": { - "type": "string" - } - }, "FilterEmailContains": { "name": "filter[email][contains]", "in": "query", @@ -21549,15 +23128,6 @@ "example": "1293384261075731499" } }, - "FilterIpAddressEquals": { - "name": "filter[ip_address][eq]", - "in": "query", - "required": false, - "description": "Filter access control IPs via the ip_address sent.", - "schema": { - "type": "string" - } - }, "FilterName": { "name": "filter[name]", "in": "query", @@ -21567,9 +23137,8 @@ } }, "FilterOutboundVoiceProfileId": { - "name": "filter[outbound.outbound_voice_profile_id]", + "name": "filter[outbound_voice_profile_id]", "in": "query", - "required": false, "description": "Identifies the associated outbound voice profile.", "schema": { "type": "string", @@ -21639,16 +23208,6 @@ "type": "string" } }, - "FilterStreetAddress": { - "name": "filter[street_address][contains]", - "in": "query", - "required": false, - "description": "If present, addresses with street_address containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters.", - "schema": { - "type": "string", - "default": "null" - } - }, "FilterUpdatedAt": { "name": "filter[updated_at]", "description": "Filter by ISO 8601 formatted date-time string matching resource last update date-time.", @@ -21659,16 +23218,6 @@ }, "in": "query" }, - "FilterUsedAsEmergency": { - "name": "filter[used_as_emergency]", - "in": "query", - "required": false, - "description": "If set as 'true', only addresses used as the emergency address for at least one active phone-number will be returned. When set to 'false', the opposite happens: only addresses not used as the emergency address from phone-numbers will be returned.", - "schema": { - "type": "string", - "default": "null" - } - }, "FqdnId": { "name": "id", "description": "Identifies the resource.", @@ -21702,13 +23251,23 @@ }, "Id": { "name": "id", - "description": "Identifies the resource.", "in": "path", + "description": "The id of the resource.", "required": true, "schema": { - "format": "uuid", "type": "string", - "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + "format": "uuid" + } + }, + "IncludeCancelledAccounts": { + "name": "include_cancelled_accounts", + "in": "query", + "required": false, + "description": "Specifies if cancelled accounts should be included in the results.", + "schema": { + "type": "boolean", + "example": "true", + "default": "false" } }, "IncludeOTAUpdates": { @@ -22051,24 +23610,6 @@ "default": "created_at" } }, - "SortAddress": { - "name": "sort", - "in": "query", - "required": false, - "description": "Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

\nThat is:
    \n
  • \n street_address: sorts the result by the\n street_address field in ascending order.\n
  • \n\n
  • \n -street_address: sorts the result by the\n street_address field in descending order.\n
  • \n

If not given, results are sorted by created_at in descending order.", - "schema": { - "type": "string", - "enum": [ - "created_at", - "first_name", - "last_name", - "business_name", - "street_address" - ], - "example": "street_address", - "default": "created_at" - } - }, "SortAuthenticationProvider": { "name": "sort", "in": "query", @@ -22095,7 +23636,6 @@ "SortConnection": { "name": "sort", "in": "query", - "required": false, "description": "Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the - prefix.

\nThat is:
    \n
  • \n connection_name: sorts the result by the\n connection_name field in ascending order.\n
  • \n\n
  • \n -connection_name: sorts the result by the\n connection_name field in descending order.\n
  • \n

If not given, results are sorted by created_at in descending order.", "schema": { "type": "string", @@ -22212,7 +23752,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Customer Service Request", "required": [ "phone_number" ], @@ -22239,7 +23778,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Porting Order Documents", "required": [ "documents" ], @@ -22277,13 +23815,23 @@ } } }, + "DialogflowConnectionRequest": { + "description": "The params expected to create/update a Dialogflow Connection for given connection_id.", + "required": true, + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DialogflowConnection" + } + } + } + }, "VerifyCustomerServiceRequestPhoneNumberCoverage": { "required": true, "content": { "application/json": { "schema": { "type": "object", - "title": "Verify Customer Service Request Phone Number Coverage", "required": [ "phone_numbers" ], @@ -22305,29 +23853,12 @@ } }, "responses": { - "AccessControlIpResponse": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "title": "Access Control Ip Response", - "properties": { - "data": { - "$ref": "#/components/schemas/AccessControlIp" - } - } - } - } - } - }, "ActionSuccessResponse": { "description": "Success Action Response", "content": { "application/json": { "schema": { "type": "object", - "title": "Action Success Response", "properties": { "data": { "type": "object", @@ -22343,29 +23874,12 @@ } } }, - "AddressResponse": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "title": "Address Response", - "properties": { - "data": { - "$ref": "#/components/schemas/Address" - } - } - } - } - } - }, "AuthenticationProviderResponse": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", - "title": "Authentication Provider Response", "properties": { "data": { "$ref": "#/components/schemas/AuthenticationProvider" @@ -22421,13 +23935,63 @@ } } }, + "BulkSIMCardActionCollectionResponse": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/BulkSIMCardActionDetailed" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + }, + "description": "Successful response" + }, + "BulkSIMCardActionDetailedResponse": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/BulkSIMCardActionDetailed" + } + } + } + } + }, + "description": "Successful Response" + }, + "BulkSIMCardActionResponse": { + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/BulkSIMCardAction" + } + } + } + } + }, + "description": "Successful Response" + }, "BulkSIMCardNetworkPreferenceResponse": { "description": "", "content": { "application/json": { "schema": { "type": "object", - "title": "Bulk SIM Card Network Preference Response", "properties": { "data": { "description": "Multi requested SIM cards network preferences.", @@ -22453,7 +24017,6 @@ "application/json": { "schema": { "type": "object", - "title": "Bulk Upload Doc Service Documents Response", "properties": { "data": { "type": "array", @@ -22498,6 +24061,122 @@ } } }, + "CancelFaxResponse": { + "description": "Successful response upon accepting cancel fax command", + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "Successful response upon accepting cancel fax command", + "example": { + "data": { + "result": "ok" + } + }, + "properties": { + "result": { + "type": "string", + "example": "ok" + } + } + } + } + } + }, + "CancelPortingOrderResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PortingOrder" + }, + "meta": { + "type": "object", + "properties": { + "phone_numbers_url": { + "type": "string", + "description": "Link to list all phone numbers" + } + } + } + }, + "example": { + "data": { + "activation_settings": { + "activation_status": null, + "fast_port_eligible": true, + "foc_datetime_actual": null, + "foc_datetime_requested": "2022-04-08T15:00:00Z" + }, + "created_at": "2022-03-24T14:22:28Z", + "customer_reference": "Test1234", + "description": "FP Telnyx", + "documents": { + "loa": "3a5b98a0-5049-47c3-96e1-aa6c8d119117", + "invoice": "3a5b98a0-5049-47c3-96e1-aa6c8d119117" + }, + "end_user": { + "admin": { + "account_number": "123abc", + "auth_person_name": "Porter McPortersen II", + "billing_phone_number": "+13035551234", + "business_identifier": "abc123", + "entity_name": "Porter McPortersen", + "pin_passcode": "1234", + "tax_identifier": "1234abcd" + }, + "location": { + "administrative_area": "IL", + "country_code": "US", + "extended_address": "Suite 504", + "locality": "Chicago", + "postal_code": "60654", + "street_address": "311 W. Superior St" + } + }, + "id": "eef10fb8-f3df-4c67-97c5-e18179723222", + "misc": { + "new_billing_phone_number": null, + "remaining_numbers_action": null, + "type": "full" + }, + "old_service_provider_ocn": "Unreal Communications", + "parent_support_key": "pr_4bec1a", + "phone_number_configuration": { + "connection_id": "1752379429071357070", + "emergency_address_id": null, + "messaging_profile_id": null, + "tags": [] + }, + "phone_number_type": "local", + "porting_phone_numbers_count": 1, + "record_type": "porting_order", + "requirements": [], + "requirements_met": true, + "status": { + "details": [], + "value": "cancel-pending" + }, + "support_key": "sr_10b316", + "updated_at": "2022-03-24T16:43:35Z", + "user_feedback": { + "user_comment": null, + "user_rating": null + }, + "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75", + "webhook_url": "https://example.com/porting_webhooks" + }, + "meta": { + "phone_numbers_url": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" + } + } + } + } + } + }, "CheckContactResponse": { "description": "Successful response with details about WhatsApp contact(s).", "content": { @@ -22523,7 +24202,6 @@ "application/json": { "schema": { "type": "object", - "title": "Comment Response", "properties": { "data": { "allOf": [ @@ -22572,6 +24250,100 @@ } } }, + "ConfirmPortingOrderResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PortingOrder" + }, + "meta": { + "type": "object", + "properties": { + "phone_numbers_url": { + "type": "string", + "description": "Link to list all phone numbers" + } + } + } + }, + "example": { + "data": { + "activation_settings": { + "activation_status": null, + "fast_port_eligible": true, + "foc_datetime_actual": null, + "foc_datetime_requested": "2022-04-08T15:00:00Z" + }, + "created_at": "2022-03-24T14:22:28Z", + "customer_reference": "Test1234", + "description": "FP Telnyx", + "documents": { + "loa": "3a5b98a0-5049-47c3-96e1-aa6c8d119117", + "invoice": "3a5b98a0-5049-47c3-96e1-aa6c8d119117" + }, + "end_user": { + "admin": { + "account_number": "123abc", + "auth_person_name": "Porter McPortersen II", + "billing_phone_number": "+13035551234", + "business_identifier": "abc123", + "entity_name": "Porter McPortersen", + "pin_passcode": "1234", + "tax_identifier": "1234abcd" + }, + "location": { + "administrative_area": "IL", + "country_code": "US", + "extended_address": "Suite 504", + "locality": "Chicago", + "postal_code": "60654", + "street_address": "311 W. Superior St" + } + }, + "id": "eef10fb8-f3df-4c67-97c5-e18179723222", + "misc": { + "new_billing_phone_number": null, + "remaining_numbers_action": null, + "type": "full" + }, + "old_service_provider_ocn": "Unreal Communications", + "parent_support_key": "pr_4bec1a", + "phone_number_configuration": { + "connection_id": "1752379429071357070", + "emergency_address_id": null, + "messaging_profile_id": null, + "tags": [] + }, + "phone_number_type": "local", + "porting_phone_numbers_count": 1, + "record_type": "porting_order", + "requirements": [], + "requirements_met": true, + "status": { + "details": [], + "value": "in-process" + }, + "support_key": "sr_10b316", + "updated_at": "2022-03-24T16:42:43Z", + "user_feedback": { + "user_comment": null, + "user_rating": null + }, + "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75", + "webhook_url": "https://example.com/porting_webhooks" + }, + "meta": { + "phone_numbers_url": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" + } + } + } + } + } + }, "ConnectionResponse": { "description": "Successful response with details about a connection.", "content": { @@ -22594,7 +24366,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Billing Group Response", "properties": { "data": { "$ref": "#/components/schemas/BillingGroup" @@ -22610,7 +24381,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Ledger Billing Group Report Response", "properties": { "data": { "$ref": "#/components/schemas/LedgerBillingGroupReport" @@ -22626,7 +24396,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create PortOut Supporting Documents Response", "properties": { "data": { "type": "array", @@ -22645,7 +24414,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Private Wireless Gateway Response", "properties": { "data": { "$ref": "#/components/schemas/PrivateWirelessGateway" @@ -22661,7 +24429,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Room Client Token Response", "properties": { "data": { "type": "object", @@ -22707,7 +24474,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Room Composition Response", "properties": { "data": { "$ref": "#/components/schemas/RoomComposition" @@ -22723,7 +24489,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Room Response", "properties": { "data": { "$ref": "#/components/schemas/Room" @@ -22739,7 +24504,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Sim Card Data Usage Notification Response", "properties": { "data": { "$ref": "#/components/schemas/SimCardDataUsageNotification" @@ -22754,7 +24518,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Sim Card Group Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardGroup" @@ -22770,7 +24533,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Sim Card Order Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardOrder" @@ -22787,7 +24549,6 @@ "application/json": { "schema": { "type": "object", - "title": "Create Wdr Report Response", "properties": { "data": { "$ref": "#/components/schemas/WdrReport" @@ -22818,7 +24579,6 @@ "content": { "application/json": { "schema": { - "title": "Credentials Response Body", "$ref": "#/components/schemas/CredentialsResponse" } } @@ -22849,7 +24609,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete SIM Card Network Preference Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardNetworkPreferenceWithOTAUpdates" @@ -22865,7 +24624,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Billing Group Response", "properties": { "data": { "$ref": "#/components/schemas/BillingGroup" @@ -22897,7 +24655,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Private Wireless Gateway Response", "properties": { "data": { "$ref": "#/components/schemas/PrivateWirelessGateway" @@ -22913,7 +24670,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Sim Card Data Usage Notification Response", "properties": { "data": { "$ref": "#/components/schemas/SimCardDataUsageNotification" @@ -22928,7 +24684,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Sim Card Group Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardGroup" @@ -22945,7 +24700,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Sim Card Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCard" @@ -22961,7 +24715,6 @@ "application/json": { "schema": { "type": "object", - "title": "Delete Wdr Report Response", "properties": { "data": { "$ref": "#/components/schemas/WdrReport" @@ -22971,13 +24724,22 @@ } } }, + "DialogflowConnectionResponseBody": { + "description": "Return details of the Dialogflow connection associated with the given CallControl connection.", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/DialogflowConnectionResponse" + } + } + } + }, "DocReqsListRequirementTypesResponse": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", - "title": "Doc Reqs List Requirement Types Response", "properties": { "data": { "$ref": "#/components/schemas/DocReqsRequirementTypeList" @@ -22996,7 +24758,6 @@ "application/json": { "schema": { "type": "object", - "title": "Doc Reqs Requirement Response", "properties": { "data": { "$ref": "#/components/schemas/DocReqsRequirement" @@ -23012,7 +24773,6 @@ "application/json": { "schema": { "type": "object", - "title": "Doc Reqs Requirement Type Response", "properties": { "data": { "$ref": "#/components/schemas/DocReqsRequirementType" @@ -23028,7 +24788,6 @@ "application/json": { "schema": { "type": "object", - "title": "Doc Service Document Response", "properties": { "data": { "$ref": "#/components/schemas/DocServiceDocument" @@ -23043,7 +24802,6 @@ "content": { "*": { "schema": { - "title": "Download Doc Service Documents Response", "type": "string", "format": "binary" } @@ -23055,7 +24813,6 @@ "content": { "application/pdf": { "schema": { - "title": "Download LOA Tempalte", "type": "string", "format": "binary" } @@ -23068,7 +24825,6 @@ "application/json": { "schema": { "type": "object", - "title": "Dynamic Emergency Address Response", "properties": { "data": { "$ref": "#/components/schemas/DynamicEmergencyAddress" @@ -23084,7 +24840,6 @@ "application/json": { "schema": { "type": "object", - "title": "Dynamic Emergency Endpoint Response", "properties": { "data": { "$ref": "#/components/schemas/DynamicEmergencyEndpoint" @@ -23115,7 +24870,6 @@ "content": { "application/json": { "schema": { - "title": "Forbidden", "$ref": "#/components/schemas/Error" } } @@ -23126,7 +24880,6 @@ "content": { "application/json": { "schema": { - "title": "Forbidden Error Response", "properties": { "errors": { "type": "array", @@ -23176,63 +24929,17 @@ "content": { "application/json": { "schema": { - "title": "Generic Error Response", "$ref": "#/components/schemas/Errors" } } } }, - "GetAllAccessControlIpResponse": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "title": "Get All Access Control Ip Response", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/AccessControlIp" - } - }, - "meta": { - "$ref": "#/components/schemas/PaginationMeta" - } - } - } - } - } - }, - "GetAllAddressResponse": { - "description": "Successful response", - "content": { - "application/json": { - "schema": { - "type": "object", - "title": "Get All Address Response", - "properties": { - "data": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Address" - } - }, - "meta": { - "$ref": "#/components/schemas/PaginationMeta" - } - } - } - } - } - }, "GetAllAuthenticationProviderResponse": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", - "title": "Get All Authentication Providers Response", "properties": { "data": { "type": "array", @@ -23276,7 +24983,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get All Private Wireless Gateways Response", "properties": { "data": { "type": "array", @@ -23297,12 +25003,11 @@ "application/json": { "schema": { "type": "object", - "title": "Get All Sim Card Groups Response", "properties": { "data": { "type": "array", "items": { - "$ref": "#/components/schemas/SIMCardGroup" + "$ref": "#/components/schemas/SearchedSIMCardGroup" } }, "meta": { @@ -23319,7 +25024,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get All Sim Card Order Response", "properties": { "data": { "type": "array", @@ -23401,7 +25105,6 @@ "content": { "application/json": { "schema": { - "title": "Get Gcb Channel Zone Request Response", "$ref": "#/components/schemas/GcbChannelZone" } } @@ -23413,7 +25116,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Gcb Channel Zones Request Response", "properties": { "data": { "type": "array", @@ -23435,7 +25137,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Gcb Phone Numbers Request Response", "properties": { "data": { "type": "array", @@ -23457,7 +25158,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Private Wireless Gateway Response", "properties": { "data": { "$ref": "#/components/schemas/PrivateWirelessGateway" @@ -23473,7 +25173,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Room Composition Response", "properties": { "data": { "$ref": "#/components/schemas/RoomComposition" @@ -23489,7 +25188,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Room Participant Response", "properties": { "data": { "$ref": "#/components/schemas/RoomParticipant" @@ -23505,7 +25203,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Room Recording Response", "properties": { "data": { "$ref": "#/components/schemas/RoomRecording" @@ -23521,7 +25218,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Room Response", "properties": { "data": { "$ref": "#/components/schemas/Room" @@ -23537,7 +25233,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Room Session Response", "properties": { "data": { "$ref": "#/components/schemas/RoomSession" @@ -23553,7 +25248,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Sim Card Data Usage Notification Response", "properties": { "data": { "$ref": "#/components/schemas/SimCardDataUsageNotification" @@ -23568,7 +25262,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Sim Card Group Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardGroup" @@ -23584,7 +25277,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Sim Card Order Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardOrder" @@ -23601,7 +25293,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Sim Card Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCard" @@ -23617,7 +25308,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Wdr Report Response", "properties": { "data": { "$ref": "#/components/schemas/WdrReport" @@ -23633,7 +25323,6 @@ "application/json": { "schema": { "type": "object", - "title": "Get Wdr Reports Response", "properties": { "data": { "type": "array", @@ -23652,7 +25341,6 @@ "application/json": { "schema": { "type": "object", - "title": "Inventory Coverage Response", "properties": { "data": { "type": "array", @@ -23706,7 +25394,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Allowed Foc Window", "properties": { "data": { "type": "array", @@ -23772,7 +25459,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Billing Groups Response", "properties": { "data": { "type": "array", @@ -23948,7 +25634,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Customer Service Request PhoneNumber Coverage", "properties": { "data": { "type": "array", @@ -23967,7 +25652,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Customer Service Requests", "properties": { "data": { "type": "array", @@ -23989,7 +25673,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Doc Service Document Links Response", "properties": { "data": { "type": "array", @@ -24011,7 +25694,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Doc Service Documents Resposne", "properties": { "data": { "type": "array", @@ -24033,7 +25715,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Draft Porting Order Without Pagination", "properties": { "data": { "type": "array", @@ -24041,85 +25722,85 @@ "$ref": "#/components/schemas/PortingOrder" } } - } - }, - "example": { - "data": [ - { - "activation_settings": { - "activation_status": null, - "fast_port_eligible": true, - "foc_datetime_actual": null, - "foc_datetime_requested": null - }, - "created_at": "2022-03-17T18:01:01Z", - "customer_reference": null, - "description": "FP Telnyx", - "documents": { - "loa": null, - "invoice": null - }, - "end_user": { - "admin": { - "account_number": null, - "auth_person_name": null, - "billing_phone_number": null, - "business_identifier": null, - "entity_name": null, - "pin_passcode": null, - "tax_identifier": null - }, - "location": { - "administrative_area": null, - "country_code": null, - "extended_address": null, - "locality": null, - "postal_code": null, - "street_address": null - } - }, - "id": "b0ea6d6f-de31-4079-a536-992e0c98b037", - "misc": null, - "old_service_provider_ocn": "Unreal Communications", - "parent_support_key": null, - "phone_number_configuration": { - "connection_id": null, - "emergency_address_id": null, - "messaging_profile_id": null, - "tags": [] - }, - "phone_number_type": "local", - "phone_numbers": [ - { + }, + "example": { + "data": [ + { + "activation_settings": { "activation_status": null, - "phone_number": "{e.164 TN}", - "phone_number_type": "local", - "portability_status": "confirmed", - "porting_order_id": "b0ea6d6f-de31-4079-a536-992e0c98b037", - "porting_order_status": "draft", - "record_type": "porting_phone_number", - "requirements_status": "requirement-info-pending", - "support_key": null - } - ], - "porting_phone_numbers_count": 1, - "record_type": "porting_order", - "requirements": [], - "requirements_met": false, - "status": { - "details": [], - "value": "draft" - }, - "support_key": null, - "updated_at": "2022-03-17T18:01:01Z", - "user_feedback": { - "user_comment": null, - "user_rating": null - }, - "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75", - "webhook_url": null - } - ] + "fast_port_eligible": true, + "foc_datetime_actual": null, + "foc_datetime_requested": null + }, + "created_at": "2022-03-17T18:01:01Z", + "customer_reference": null, + "description": "FP Telnyx", + "documents": { + "loa": null, + "invoice": null + }, + "end_user": { + "admin": { + "account_number": null, + "auth_person_name": null, + "billing_phone_number": null, + "business_identifier": null, + "entity_name": null, + "pin_passcode": null, + "tax_identifier": null + }, + "location": { + "administrative_area": null, + "country_code": null, + "extended_address": null, + "locality": null, + "postal_code": null, + "street_address": null + } + }, + "id": "b0ea6d6f-de31-4079-a536-992e0c98b037", + "misc": null, + "old_service_provider_ocn": "Unreal Communications", + "parent_support_key": null, + "phone_number_configuration": { + "connection_id": null, + "emergency_address_id": null, + "messaging_profile_id": null, + "tags": [] + }, + "phone_number_type": "local", + "phone_numbers": [ + { + "activation_status": null, + "phone_number": "{e.164 TN}", + "phone_number_type": "local", + "portability_status": "confirmed", + "porting_order_id": "b0ea6d6f-de31-4079-a536-992e0c98b037", + "porting_order_status": "draft", + "record_type": "porting_phone_number", + "requirements_status": "requirement-info-pending", + "support_key": null + } + ], + "porting_phone_numbers_count": 1, + "record_type": "porting_order", + "requirements": [], + "requirements_met": false, + "status": { + "details": [], + "value": "draft" + }, + "support_key": null, + "updated_at": "2022-03-17T18:01:01Z", + "user_feedback": { + "user_comment": null, + "user_rating": null + }, + "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75", + "webhook_url": null + } + ] + } } } } @@ -24243,7 +25924,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Managed Accounts Response", "properties": { "data": { "type": "array", @@ -24683,7 +26363,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Porting Order", "properties": { "data": { "type": "array", @@ -24705,7 +26384,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Porting Order Documents", "properties": { "data": { "type": "array", @@ -24721,13 +26399,33 @@ } } }, + "ListPortingOrderRequirements": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PortingOrderRequirementDetail" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, "ListPortingOrdersActivationJobs": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", - "title": "List Porting Orders Activation Jobs", "properties": { "data": { "type": "array", @@ -24749,7 +26447,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Porting Orders Comments", "properties": { "data": { "type": "array", @@ -24771,7 +26468,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Porting Orders Exception Types", "properties": { "data": { "type": "array", @@ -24790,7 +26486,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Porting Phone Numbers", "properties": { "data": { "type": "array", @@ -24818,7 +26513,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Portout Comments", "properties": { "data": { "type": "array", @@ -24840,7 +26534,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Portout Response", "properties": { "data": { "type": "array", @@ -24856,6 +26549,28 @@ } } }, + "ListPushCredentialsResponse": { + "description": "Mobile mobile push credentials", + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "List Push Credentials Response", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PushCredential" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, "ListQueueCallsResponse": { "description": "Successful response with a list of calls in a queue.", "content": { @@ -24906,7 +26621,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Requirements Response", "properties": { "data": { "$ref": "#/components/schemas/DocReqsRequirementList" @@ -24925,7 +26639,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Room Compositions Response", "properties": { "data": { "type": "array", @@ -24947,7 +26660,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Room Participants Response", "properties": { "data": { "type": "array", @@ -24969,7 +26681,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Room Recordings Response", "properties": { "data": { "type": "array", @@ -24991,7 +26702,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Room Sessions Response", "properties": { "data": { "type": "array", @@ -25013,7 +26723,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Rooms Response", "properties": { "data": { "type": "array", @@ -25133,7 +26842,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Webhook Deliveries Response", "properties": { "data": { "type": "array", @@ -25199,7 +26907,6 @@ "application/json": { "schema": { "type": "object", - "title": "Managed Account Response", "properties": { "data": { "$ref": "#/components/schemas/ManagedAccount" @@ -25214,7 +26921,6 @@ "content": { "*/*": { "schema": { - "title": "Media Download Response", "type": "string", "format": "binary" } @@ -25301,8 +27007,65 @@ } } }, + "NetworkInterfaceListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/NetworkInterface" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "NetworkListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Network" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "NetworkResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/Network" + } + } + } + } + } + }, "NotFoundResponse": { - "description": "Conference does not exist" + "description": "Fax does not exist" }, "NumberBlockOrderResponse": { "description": "Successful response with details about a number block order.", @@ -25406,7 +27169,6 @@ "application/json": { "schema": { "type": "object", - "title": "OTA Update Response", "properties": { "data": { "$ref": "#/components/schemas/CompleteOTAUpdate" @@ -25438,7 +27200,6 @@ "application/json": { "schema": { "type": "object", - "title": "PUT SIM Card Network Preference Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardNetworkPreferenceWithOTAUpdates" @@ -25453,7 +27214,6 @@ "content": { "application/json": { "schema": { - "title": "Patch Gcb Channel Zone Request Response", "$ref": "#/components/schemas/GcbChannelZone" } } @@ -25465,7 +27225,6 @@ "application/json": { "schema": { "type": "object", - "title": "Patch Room Response", "properties": { "data": { "$ref": "#/components/schemas/Room" @@ -25529,7 +27288,6 @@ "application/json": { "schema": { "type": "object", - "title": "PortOut List Supporting Documents Response", "properties": { "data": { "type": "array", @@ -25548,7 +27306,6 @@ "application/json": { "schema": { "type": "object", - "title": "Portability Check Response", "properties": { "data": { "type": "array", @@ -25567,7 +27324,6 @@ "application/json": { "schema": { "type": "object", - "title": "Porting Order Documents Created", "properties": { "data": { "type": "array", @@ -25586,7 +27342,6 @@ "application/json": { "schema": { "type": "object", - "title": "Portout Comment Resposne", "properties": { "data": { "$ref": "#/components/schemas/PortoutComment" @@ -25602,7 +27357,6 @@ "application/json": { "schema": { "type": "object", - "title": "Portout Response", "properties": { "data": { "$ref": "#/components/schemas/PortoutDetails" @@ -25617,12 +27371,63 @@ "content": { "application/json": { "schema": { - "title": "Post Gcb Phone Number Request Response", "$ref": "#/components/schemas/GcbPhoneNumber" } } } }, + "PublicInternetGatewayListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/PublicInternetGatewayRead" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "PublicInternetGatewayResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PublicInternetGatewayRead" + } + } + } + } + } + }, + "PushCredentialResponse": { + "description": "Success response with details about a push credential", + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "Queue Call Response", + "properties": { + "data": { + "$ref": "#/components/schemas/QueueCall" + } + } + } + } + } + }, "QueueCallResponse": { "description": "Successful response with details about a call in a queue.", "content": { @@ -25661,7 +27466,6 @@ "application/json": { "schema": { "type": "object", - "title": "Read Comment Response", "properties": { "data": { "allOf": [ @@ -25722,7 +27526,6 @@ "application/json": { "schema": { "type": "object", - "title": "Refresh Room Client Token Response", "properties": { "data": { "type": "object", @@ -25749,6 +27552,24 @@ } } }, + "RegionListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/Region" + } + } + } + } + } + } + }, "RegisterCallResponse": { "description": "Successful response upon making a register call command.", "content": { @@ -25781,7 +27602,6 @@ "application/json": { "schema": { "type": "object", - "title": "Register SimCards Response", "properties": { "data": { "description": "Successfully registered SIM cards.", @@ -25834,7 +27654,6 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Billing Group Response", "properties": { "data": { "$ref": "#/components/schemas/BillingGroup" @@ -25866,7 +27685,6 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Ledger Billing Group Report Response", "properties": { "data": { "$ref": "#/components/schemas/LedgerBillingGroupReport" @@ -25898,7 +27716,6 @@ "application/json": { "schema": { "type": "object", - "title": "Retrieve Portout Response", "properties": { "data": { "$ref": "#/components/schemas/PortoutDetails" @@ -25913,7 +27730,6 @@ "application/json": { "schema": { "type": "object", - "title": "SIM Card Action Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardAction" @@ -25924,12 +27740,26 @@ }, "description": "Successful Response" }, + "SIMCardDeviceDetailsResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/SIMCardDeviceDetails" + } + } + } + } + } + }, "SIMCardGroupActionResponse": { "content": { "application/json": { "schema": { "type": "object", - "title": "SIM Card Group Action Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardGroupAction" @@ -25946,7 +27776,6 @@ "application/json": { "schema": { "type": "object", - "title": "SIM Card Network Preference Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardNetworkPreference" @@ -25962,7 +27791,6 @@ "application/json": { "schema": { "type": "object", - "title": "SIM Card Network Preference With OTA Updates Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardNetworkPreferenceWithOTAUpdates" @@ -25978,7 +27806,6 @@ "application/json": { "schema": { "type": "object", - "title": "SIMCard Orders Preview Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardOrderPreview" @@ -25994,7 +27821,6 @@ "application/json": { "schema": { "type": "object", - "title": "SIMCard Public IP Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardPublicIP" @@ -26010,7 +27836,6 @@ "application/json": { "schema": { "type": "object", - "title": "Search Mobile Operator Networks Response", "properties": { "data": { "type": "array", @@ -26032,7 +27857,6 @@ "application/json": { "schema": { "type": "object", - "title": "Search OTA Update Response", "properties": { "data": { "type": "array", @@ -26054,7 +27878,6 @@ "application/json": { "schema": { "type": "object", - "title": "Search SimCards Response", "properties": { "data": { "type": "array", @@ -26108,7 +27931,6 @@ "application/json": { "schema": { "type": "object", - "title": "Show Customer Service Request", "properties": { "data": { "$ref": "#/components/schemas/CustomerServiceRequest" @@ -26124,7 +27946,6 @@ "application/json": { "schema": { "type": "object", - "title": "Show Porting Order", "properties": { "data": { "$ref": "#/components/schemas/PortingOrder" @@ -26135,7 +27956,7 @@ "phone_numbers_url": { "type": "string", "description": "Link to list all phone numbers", - "example": "/porting_phone_numbers?filter[porting_order_id]=a700d03c-4062-4091-8189-1b75216cf7a2" + "example": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" } } } @@ -26150,7 +27971,6 @@ "application/json": { "schema": { "type": "object", - "title": "Show Porting Orders Activation Job", "properties": { "data": { "$ref": "#/components/schemas/PortingOrdersActivationJob" @@ -26166,7 +27986,6 @@ "application/json": { "schema": { "type": "object", - "title": "Show Porting Order Comment", "properties": { "data": { "$ref": "#/components/schemas/PortingOrdersComment" @@ -26182,7 +28001,6 @@ "application/json": { "schema": { "type": "object", - "title": "Show Porting Phone Number", "properties": { "data": { "$ref": "#/components/schemas/PortingPhoneNumber" @@ -26208,7 +28026,6 @@ "application/json": { "schema": { "type": "object", - "title": "SimCard Action Collection Response", "properties": { "data": { "type": "array", @@ -26230,7 +28047,6 @@ "application/json": { "schema": { "type": "object", - "title": "SimCard Data Usage Notification Collection", "properties": { "data": { "type": "array", @@ -26252,7 +28068,6 @@ "application/json": { "schema": { "type": "object", - "title": "SimCard Group Action Collection Response", "properties": { "data": { "type": "array", @@ -26275,7 +28090,6 @@ "application/json": { "schema": { "type": "object", - "title": "Simple SimCard Response", "properties": { "data": { "$ref": "#/components/schemas/SimpleSIMCard" @@ -26307,7 +28121,6 @@ "application/json": { "schema": { "type": "object", - "title": "Sub Request By Porting Order", "properties": { "data": { "$ref": "#/components/schemas/GetSubRequestByPortingOrder" @@ -26354,7 +28167,6 @@ "content": { "application/json": { "schema": { - "title": "Unauthorized Error Response", "properties": { "errors": { "type": "array", @@ -26368,14 +28180,13 @@ } }, "UnauthorizedResponse": { - "description": "Unauthorized" + "description": "Unauthorized response. Happens when the current user is not a manager account." }, "UnexpectedErrorResponse": { "description": "An unexpected error occurred.", "content": { "application/json": { "schema": { - "title": "Unexpected Error Response", "properties": { "errors": { "type": "array", @@ -26403,7 +28214,6 @@ "content": { "application/json": { "schema": { - "title": "Unprocessable Enttiy Error Response", "properties": { "errors": { "type": "array", @@ -26425,7 +28235,6 @@ "application/json": { "schema": { "type": "object", - "title": "Unprocessable Managed Account Entity", "properties": { "errors": { "type": "array", @@ -26444,7 +28253,6 @@ "application/json": { "schema": { "type": "object", - "title": "Update Billing Group Response", "properties": { "data": { "$ref": "#/components/schemas/BillingGroup" @@ -26454,13 +28262,106 @@ } } }, + "UpdatePortingOrderResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/PortingOrder" + }, + "meta": { + "type": "object", + "properties": { + "phone_numbers_url": { + "type": "string", + "description": "Link to list all phone numbers" + } + } + } + }, + "example": { + "data": { + "activation_settings": { + "activation_status": null, + "fast_port_eligible": true, + "foc_datetime_actual": null, + "foc_datetime_requested": "2022-04-08T15:00:00Z" + }, + "created_at": "2022-03-24T14:22:28Z", + "customer_reference": "Test1234", + "description": "FP Telnyx", + "documents": { + "loa": null, + "invoice": null + }, + "end_user": { + "admin": { + "account_number": "123abc", + "auth_person_name": "Porter McPortersen II", + "billing_phone_number": "+13035551234", + "business_identifier": "abc123", + "entity_name": "Porter McPortersen", + "pin_passcode": "1234", + "tax_identifier": "1234abcd" + }, + "location": { + "administrative_area": "IL", + "country_code": "US", + "extended_address": "Suite 504", + "locality": "Chicago", + "postal_code": "60654", + "street_address": "311 W. Superior St" + } + }, + "id": "eef10fb8-f3df-4c67-97c5-e18179723222", + "misc": { + "new_billing_phone_number": null, + "remaining_numbers_action": null, + "type": "full" + }, + "old_service_provider_ocn": "Unreal Communications", + "parent_support_key": null, + "phone_number_configuration": { + "connection_id": "1752379429071357070", + "emergency_address_id": null, + "messaging_profile_id": null, + "tags": [] + }, + "phone_number_type": "local", + "porting_phone_numbers_count": 1, + "record_type": "porting_order", + "requirements": [], + "requirements_met": false, + "status": { + "details": [], + "value": "draft" + }, + "support_key": null, + "updated_at": "2022-03-24T14:26:53Z", + "user_feedback": { + "user_comment": null, + "user_rating": null + }, + "user_id": "40d68ba2-0847-4df2-be9c-b0e0cb673e75", + "webhook_url": "https://example.com/porting_webhooks" + }, + "meta": { + "phone_numbers_url": "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222" + } + } + } + } + } + }, "UpdatePortoutResponse": { "description": "Expected portout response to a valid request", "content": { "application/json": { "schema": { "type": "object", - "title": "Update Portout Response", "properties": { "data": { "$ref": "#/components/schemas/PortoutDetails" @@ -26476,7 +28377,6 @@ "application/json": { "schema": { "type": "object", - "title": "Update Sim Card Data Usage Notification Response", "properties": { "data": { "$ref": "#/components/schemas/SimCardDataUsageNotification" @@ -26491,7 +28391,6 @@ "application/json": { "schema": { "type": "object", - "title": "Update SimCard Group Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCardGroup" @@ -26508,7 +28407,6 @@ "application/json": { "schema": { "type": "object", - "title": "Update SimCard Response", "properties": { "data": { "$ref": "#/components/schemas/SIMCard" @@ -26518,13 +28416,29 @@ } } }, + "UpdateTeXMLCallResponse": { + "description": "Successful response upon updating a TeXml call.", + "content": { + "application/json": { + "schema": { + "type": "object", + "title": "TeXml REST Command Response", + "properties": { + "data": { + "$ref": "#/components/schemas/UpdateCommandResult" + } + } + } + } + } + }, "UploadMediaResponse": { "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", - "title": "Upload Media", + "title": "Upload Media.", "properties": { "data": { "type": "array", @@ -26555,7 +28469,6 @@ "application/json": { "schema": { "type": "object", - "title": "User Balance Response", "properties": { "data": { "$ref": "#/components/schemas/UserBalance" @@ -26565,16 +28478,72 @@ } } }, - "ValidateAddressResponse": { - "description": "Action response", + "VirtualCrossConnectListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VirtualCrossConnectCombined" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "VirtualCrossConnectRegionListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/VirtualCrossConnectRegion" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "VirtualCrossConnectRegionResponse": { + "description": "Successful response", "content": { "application/json": { "schema": { "type": "object", - "title": "Validate Address Response", "properties": { "data": { - "$ref": "#/components/schemas/ValidateAddressResult" + "$ref": "#/components/schemas/VirtualCrossConnectRegion" + } + } + } + } + } + }, + "VirtualCrossConnectResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/VirtualCrossConnectCombined" } } } @@ -26587,7 +28556,7 @@ "application/json": { "schema": { "type": "object", - "title": "WhatsApp Message Response", + "title": "Successful response with details about the WhatsApp message sent.", "properties": { "data": { "$ref": "#/components/schemas/Message" @@ -26597,12 +28566,119 @@ } } }, + "WireguardInterfaceListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WireguardInterfaceRead" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "WireguardInterfaceResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/WireguardInterfaceRead" + } + } + } + } + } + }, + "WireguardPeerAllowedIPListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WireguardPeerAllowedIP" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "WireguardPeerAllowedIPResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/WireguardPeerAllowedIP" + } + } + } + } + } + }, + "WireguardPeerListResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "$ref": "#/components/schemas/WireguardPeer" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + } + } + } + }, + "WireguardPeerResponse": { + "description": "Successful response", + "content": { + "application/json": { + "schema": { + "type": "object", + "properties": { + "data": { + "$ref": "#/components/schemas/WireguardPeer" + } + } + } + } + } + }, "WirelessConnectivityLogCollectionResponse": { "content": { "application/json": { "schema": { "type": "object", - "title": "Wireless Connectivity Log Collection Response", "properties": { "data": { "type": "array", @@ -26657,7 +28733,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Comments Response", "properties": { "data": { "type": "array", @@ -26679,7 +28754,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Dynamic Emergency Addresses", "properties": { "data": { "type": "array", @@ -26701,7 +28775,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Dynamic Emergency Endpoints", "properties": { "data": { "type": "array", @@ -26723,7 +28796,6 @@ "application/json": { "schema": { "type": "object", - "title": "List Regulatory Requirements", "properties": { "data": { "type": "array", @@ -26741,73 +28813,6 @@ } }, "schemas": { - "AccessControlIp": { - "type": "object", - "title": "AccessControlIp", - "properties": { - "id": { - "type": "string", - "format": "uuid", - "description": "Uniquely identifies the access control IP.", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" - }, - "record_type": { - "type": "string", - "description": "Identifies the type of the resource.", - "example": "access_control_ip" - }, - "ip_address": { - "$ref": "#/components/schemas/access_control_ip_ip_address" - }, - "ip_address_type": { - "$ref": "#/components/schemas/access_control_ip_ip_address_type" - }, - "description": { - "$ref": "#/components/schemas/access_control_ip_description" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 formatted date indicating when the resource was created.", - "example": "2018-02-02T22:25:27.521Z" - }, - "updated_at": { - "type": "string", - "description": "ISO 8601 formatted date indicating when the resource was updated.", - "example": "2018-02-02T22:25:27.521Z" - } - } - }, - "AccessControlIpCreate": { - "type": "object", - "required": [ - "ip_address" - ], - "properties": { - "ip_address": { - "$ref": "#/components/schemas/access_control_ip_ip_address" - }, - "ip_address_type": { - "$ref": "#/components/schemas/access_control_ip_ip_address_type" - }, - "description": { - "$ref": "#/components/schemas/access_control_ip_description" - } - } - }, - "AccessControlIpUpdate": { - "type": "object", - "properties": { - "ip_address": { - "$ref": "#/components/schemas/access_control_ip_ip_address" - }, - "ip_address_type": { - "$ref": "#/components/schemas/access_control_ip_ip_address_type" - }, - "description": { - "$ref": "#/components/schemas/access_control_ip_description" - } - } - }, "AccessIPAddressListResponseSchema": { "title": "AccessIPAddressListResponseSchema", "required": [ @@ -27003,136 +29008,6 @@ } } }, - "Address": { - "type": "object", - "title": "Address", - "properties": { - "id": { - "type": "string", - "format": "int64", - "description": "Uniquely identifies the address.", - "example": "1293384261075731499" - }, - "record_type": { - "type": "string", - "description": "Identifies the type of the resource.", - "example": "address" - }, - "customer_reference": { - "$ref": "#/components/schemas/customer_reference" - }, - "first_name": { - "$ref": "#/components/schemas/first_name" - }, - "last_name": { - "$ref": "#/components/schemas/last_name" - }, - "business_name": { - "$ref": "#/components/schemas/business_name" - }, - "phone_number": { - "$ref": "#/components/schemas/phone_number" - }, - "street_address": { - "$ref": "#/components/schemas/street_address" - }, - "extended_address": { - "$ref": "#/components/schemas/extended_address" - }, - "locality": { - "$ref": "#/components/schemas/locality" - }, - "administrative_area": { - "$ref": "#/components/schemas/administrative_area" - }, - "neighborhood": { - "$ref": "#/components/schemas/neighborhood" - }, - "borough": { - "$ref": "#/components/schemas/borough" - }, - "postal_code": { - "$ref": "#/components/schemas/postal_code" - }, - "country_code": { - "$ref": "#/components/schemas/country_code" - }, - "address_book": { - "$ref": "#/components/schemas/address_book" - }, - "validate_address": { - "$ref": "#/components/schemas/validate_address" - }, - "created_at": { - "type": "string", - "description": "ISO 8601 formatted date indicating when the resource was created.", - "example": "2018-02-02T22:25:27.521Z" - }, - "updated_at": { - "type": "string", - "description": "ISO 8601 formatted date indicating when the resource was updated.", - "example": "2018-02-02T22:25:27.521Z" - } - } - }, - "AddressCreate": { - "type": "object", - "required": [ - "first_name", - "last_name", - "business_name", - "street_address", - "locality", - "country_code" - ], - "properties": { - "customer_reference": { - "$ref": "#/components/schemas/customer_reference" - }, - "first_name": { - "$ref": "#/components/schemas/first_name" - }, - "last_name": { - "$ref": "#/components/schemas/last_name" - }, - "business_name": { - "$ref": "#/components/schemas/business_name" - }, - "phone_number": { - "$ref": "#/components/schemas/phone_number" - }, - "street_address": { - "$ref": "#/components/schemas/street_address" - }, - "extended_address": { - "$ref": "#/components/schemas/extended_address" - }, - "locality": { - "$ref": "#/components/schemas/locality" - }, - "administrative_area": { - "$ref": "#/components/schemas/administrative_area" - }, - "neighborhood": { - "$ref": "#/components/schemas/neighborhood" - }, - "borough": { - "$ref": "#/components/schemas/borough" - }, - "postal_code": { - "$ref": "#/components/schemas/postal_code" - }, - "country_code": { - "$ref": "#/components/schemas/country_code" - }, - "address_book": { - "$ref": "#/components/schemas/address_book" - }, - "validate_address": { - "$ref": "#/components/schemas/validate_address" - } - } - }, "AmdDetailRecord": { "type": "object", "properties": { @@ -27269,10 +29144,6 @@ "example": "wss://www.example.com/websocket" }, "sound_modifications": { - "description": "Use this field to modify sound effects, for example adjust the pitch.", - "example": { - "pitch": 0.8 - }, "$ref": "#/components/schemas/SoundModifications" }, "stream_track": { @@ -27737,6 +29608,81 @@ "connection_id": "804252963366242252" } }, + "BulkSIMCardAction": { + "type": "object", + "description": "This object represents a bulk SIM card action. It groups SIM card actions created through a bulk endpoint under a single resource for further lookup.", + "properties": { + "id": { + "$ref": "#/components/schemas/Id" + }, + "record_type": { + "type": "string", + "example": "bulk_sim_card_action", + "readOnly": true + }, + "action_type": { + "type": "string", + "description": "The operation type. It can be one of the following:
\n
    \n
  • bulk_set_public_ips - set a public IP for each specified SIM card
  • \n
", + "enum": [ + "bulk_set_public_ips" + ], + "readOnly": true, + "example": "bulk_set_public_ips" + }, + "settings": { + "type": "object", + "description": "A JSON object representation of the bulk action payload.", + "example": {}, + "readOnly": true + }, + "created_at": { + "$ref": "#/components/schemas/CreatedAt" + }, + "updated_at": { + "$ref": "#/components/schemas/UpdatedAt" + } + } + }, + "BulkSIMCardActionDetailed": { + "type": "object", + "properties": { + "id": { + "$ref": "#/components/schemas/Id" + }, + "record_type": { + "type": "string", + "example": "bulk_sim_card_action", + "readOnly": true + }, + "action_type": { + "type": "string", + "description": "The operation type. It can be one of the following:
\n
    \n
  • bulk_set_public_ips - set a public IP for each specified SIM card
  • \n
", + "enum": [ + "bulk_set_public_ips" + ], + "readOnly": true, + "example": "bulk_set_public_ips" + }, + "settings": { + "type": "object", + "description": "A JSON object representation of the bulk action payload.", + "example": {}, + "readOnly": true + }, + "sim_card_actions_summary": { + "type": "array", + "items": { + "$ref": "#/components/schemas/SIMCardActionsSummary" + } + }, + "created_at": { + "$ref": "#/components/schemas/CreatedAt" + }, + "updated_at": { + "$ref": "#/components/schemas/UpdatedAt" + } + } + }, "BusinessIdentity": { "type": "object", "properties": { @@ -27934,6 +29880,79 @@ ] } }, + "Button": { + "title": "Button", + "type": "object", + "required": [ + "sub_type", + "index", + "parameters" + ], + "properties": { + "sub_type": { + "description": "Type of button being created." + }, + "index": { + "title": "Index", + "description": "Position index of the button. You can have up to 3 buttons using index values of 0-2.", + "type": "integer" + }, + "parameters": { + "title": "Parameters", + "description": "The parameters for the button, which are set at creation time in your Business Manager.", + "type": "array", + "items": { + "$ref": "#/components/schemas/ButtonParameter" + } + } + } + }, + "ButtonComponentType": { + "title": "ButtonComponentType", + "enum": [ + "button" + ], + "type": "string", + "description": "An enumeration." + }, + "ButtonParameter": { + "title": "ButtonParameter", + "type": "object", + "properties": { + "type": { + "description": "Indicates the type of parameter for the button." + }, + "payload": { + "title": "Payload", + "description": "Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button. Required for quick_reply buttons." + }, + "text": { + "title": "Text", + "description": "Developer provided suffix that will be appended to a previously created dynamic URL button. Required for url buttons." + } + }, + "required": [ + "type" + ] + }, + "ButtonParameterType": { + "title": "ButtonParameterType", + "enum": [ + "payload", + "text" + ], + "type": "string", + "description": "An enumeration." + }, + "ButtonSubtype": { + "title": "ButtonSubtype", + "enum": [ + "quick_reply", + "url" + ], + "type": "string", + "description": "An enumeration." + }, "Call": { "type": "object", "title": "Call", @@ -28841,6 +30860,11 @@ "example": "7267xxxxxxxxxxxxxx", "description": "Call Control App ID (formerly Telnyx connection ID) used in the call." }, + "call_control_id": { + "type": "string", + "example": "v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA", + "description": "Unique ID for controlling the call." + }, "call_leg_id": { "type": "string", "example": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1", @@ -28850,6 +30874,20 @@ "type": "string", "example": "428c31b6-abf3-3bc1-b7f4-5013ef9657c1", "description": "ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call." + }, + "client_state": { + "type": "string", + "example": "aGF2ZSBhIG5pY2UgZGF5ID1d", + "description": "State received from a command." + }, + "stream_type": { + "type": "string", + "example": "raw", + "enum": [ + "raw", + "decrypted" + ], + "description": "Type of media streamed. It can be either 'raw' or 'decrypted'." } } } @@ -28861,8 +30899,11 @@ "occurred_at": "2018-02-02T22:25:27.521992Z", "payload": { "connection_id": "7267xxxxxxxxxxxxxx", + "call_control_id": "v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA", "call_leg_id": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1", - "call_session_id": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1" + "call_session_id": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1", + "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", + "stream_type": "decrypted" } } }, @@ -28915,6 +30956,11 @@ "example": "7267xxxxxxxxxxxxxx", "description": "Call Control App ID (formerly Telnyx connection ID) used in the call." }, + "call_control_id": { + "type": "string", + "example": "v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA", + "description": "Unique ID for controlling the call." + }, "call_leg_id": { "type": "string", "example": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1", @@ -28924,6 +30970,20 @@ "type": "string", "example": "428c31b6-abf3-3bc1-b7f4-5013ef9657c1", "description": "ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call." + }, + "client_state": { + "type": "string", + "example": "aGF2ZSBhIG5pY2UgZGF5ID1d", + "description": "State received from a command." + }, + "stream_type": { + "type": "string", + "example": "raw", + "enum": [ + "raw", + "decrypted" + ], + "description": "Type of media streamed. It can be either 'raw' or 'decrypted'." } } } @@ -28935,8 +30995,11 @@ "occurred_at": "2018-02-02T22:25:27.521992Z", "payload": { "connection_id": "7267xxxxxxxxxxxxxx", + "call_control_id": "v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA", "call_leg_id": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1", - "call_session_id": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1" + "call_session_id": "428c31b6-7af4-4bcb-b7f5-5013ef9657c1", + "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", + "stream_type": "decrypted" } } }, @@ -29061,7 +31124,8 @@ "invalid", "call_hangup", "cancelled", - "cancelled_amd" + "cancelled_amd", + "timeout" ], "example": "valid", "description": "Reflects how command ended." @@ -30446,7 +32510,12 @@ "command_id": "891510ac-f3e4-11e8-af5b-de00688a4901", "link_to": "ilditnZK_eVysupV21KzmzN_sM29ygfauQojpm4BgFtfX5hXAcjotg==", "sip_auth_username": "username", - "sip_auth_password": "password" + "sip_auth_password": "password", + "enable_dialogflow": false, + "dialogflow_config": { + "analyze_sentiment": false, + "partial_automated_agent_reply": false + } }, "properties": { "to": { @@ -30643,10 +32712,6 @@ "type": "string" }, "sound_modifications": { - "description": "Use this field to modify sound effects, for example adjust the pitch.", - "example": { - "pitch": 0.8 - }, "$ref": "#/components/schemas/SoundModifications" }, "stream_url": { @@ -30679,6 +32744,57 @@ "GET" ], "example": "GET" + }, + "record": { + "description": "Start recording automatically after an event. Disabled by default.", + "type": "string", + "enum": [ + "record-from-answer" + ], + "example": "record-from-answer" + }, + "record_channels": { + "description": "Defines which channel should be recorded ('single' or 'dual') when `record` is specified.", + "type": "string", + "enum": [ + "single", + "dual" + ], + "default": "dual", + "example": "single" + }, + "record_format": { + "description": "Defines the format of the recording ('wav' or 'mp3') when `record` is specified.", + "type": "string", + "enum": [ + "wav", + "mp3" + ], + "default": "mp3", + "example": "wav" + }, + "record_max_length": { + "description": "Defines the maximum length for the recording in seconds when `record` is specified. The minimum value is 0. The maximum value is 43200. The default value is 0 (infinite).", + "type": "integer", + "format": "int32", + "default": 0, + "example": 1000 + }, + "record_timeout_secs": { + "description": "The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected when `record` is specified. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite).", + "type": "integer", + "format": "int32", + "default": 0, + "example": 100 + }, + "enable_dialogflow": { + "description": "Enables Dialogflow for the current call. The default value is false.", + "type": "boolean", + "default": false, + "example": true + }, + "dialogflow_config": { + "$ref": "#/components/schemas/DialogflowConfig" } } }, @@ -30865,6 +32981,141 @@ } } }, + "CallStreamingFailed": { + "type": "object", + "title": "Streaming Failed", + "properties": { + "record_type": { + "type": "string", + "example": "event", + "enum": [ + "event" + ], + "description": "Identifies the resource." + }, + "event_type": { + "type": "string", + "example": "streaming.failed", + "enum": [ + "streaming.failed" + ], + "description": "The type of event being delivered." + }, + "id": { + "type": "string", + "format": "uuid", + "example": "25dc3731-e51e-4927-a50d-a61cc25984b1", + "description": "Identifies the type of resource." + }, + "occurred_at": { + "type": "string", + "format": "date-time", + "example": "2021-12-15T14:11:24.613295Z", + "description": "ISO 8601 datetime of when the event occurred." + }, + "payload": { + "type": "object", + "properties": { + "call_control_id": { + "type": "string", + "example": "31f19208-5db0-11ec-9ea7-02420a0d3a69", + "description": "Call ID used to issue commands via Call Control API." + }, + "connection_id": { + "type": "string", + "example": "7267xxxxxxxxxxxxxx", + "description": "Call Control App ID (formerly Telnyx connection ID) used in the call." + }, + "call_leg_id": { + "type": "string", + "example": "31f19208-5db0-11ec-9ea7-02420a0d3a69", + "description": "ID that is unique to the call and can be used to correlate webhook events." + }, + "call_session_id": { + "type": "string", + "example": "31f19208-5db0-11ec-9ea7-02420a0d3a69", + "description": "ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call." + }, + "client_state": { + "type": "string", + "example": "aGF2ZSBhIG5pY2UgZGF5ID1d", + "description": "State received from a command." + }, + "failure_reason": { + "type": "string", + "example": "connection_failed", + "description": "A short description explaning why the media streaming failed." + }, + "stream_id": { + "type": "string", + "format": "uuid", + "example": "1edb94f9-7ef0-4150-b502-e0ebadfd9491", + "description": "Identifies the streaming." + }, + "stream_params": { + "type": "object", + "description": "Streaming parameters as they were originally given to the Call Control API.", + "properties": { + "stream_url": { + "type": "string", + "example": "wss://www.example.com/websocket", + "description": "The destination WebSocket address where the stream is going to be delivered." + }, + "track": { + "description": "Specifies which track should be streamed.", + "type": "string", + "enum": [ + "inbound_track", + "outbound_track", + "both_tracks" + ], + "default": "inbound_track", + "example": "inbound_track" + } + } + }, + "stream_type": { + "type": "string", + "example": "websocket", + "enum": [ + "websocket", + "dialogflow" + ], + "description": "The type of stream connection the stream is performing." + } + } + } + }, + "example": { + "record_type": "event", + "event_type": "streaming.failed", + "id": "25dc3731-e51e-4927-a50d-a61cc25984b1", + "occurred_at": "2021-12-15T14:11:24.613295Z", + "payload": { + "call_control_id": "31f19208-5db0-11ec-9ea7-02420a0d3a69", + "connection_id": "7267xxxxxxxxxxxxxx", + "call_leg_id": "31f19208-5db0-11ec-9ea7-02420a0d3a69", + "call_session_id": "31f19208-5db0-11ec-9ea7-02420a0d3a69", + "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", + "failure_reason": "connection_failed", + "stream_id": "1edb94f9-7ef0-4150-b502-e0ebadfd9491", + "stream_params": { + "stream_url": "wss://www.example.com/websocket", + "stream_track": "inbound_track" + }, + "stream_type": "websocket" + } + } + }, + "CallStreamingFailedEvent": { + "type": "object", + "title": "Streaming Failed Event", + "properties": { + "data": { + "$ref": "#/components/schemas/CallStreamingFailed" + } + } + }, "CallStreamingStarted": { "type": "object", "title": "Streaming Started", @@ -33682,6 +35933,11 @@ "default": true, "example": false }, + "ConnectionId": { + "description": "The ID of the connection used to send the fax.", + "type": "string", + "example": "234423" + }, "ConnectionName": { "title": "Connection Name", "type": "string", @@ -33847,6 +36103,11 @@ ] } }, + "Contents": { + "description": "The file you want to upload. The maximum allowed size is 20 MB. contents and media_name/media_url can't be submitted together.", + "type": "string", + "format": "binary" + }, "CostInformation": { "type": "object", "properties": { @@ -33874,14 +36135,22 @@ "type": "object", "title": "Create Android Push Credential Request", "required": [ + "type", "server_key", "alias" ], "properties": { + "type": { + "description": "Type of mobile push credential. Should be android here", + "type": "string", + "enum": [ + "android" + ] + }, "server_key": { "description": "Server key as received from Google firebase", "type": "string", - "example": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0" + "example": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja..." }, "alias": { "description": "Alias to uniquely identify the credential", @@ -34627,22 +36896,30 @@ }, "CreateIosPushCredentialRequest": { "type": "object", - "title": "Create IOS Push Credential Request", + "title": "Create iOS push credential request", "required": [ + "type", "certificate", "private_key", "alias" ], "properties": { + "type": { + "description": "Type of mobile push credential. Should be ios here", + "type": "string", + "enum": [ + "ios" + ] + }, "certificate": { "description": "Certificate as received from APNs", "type": "string", - "example": "Bag Attributes\n friendlyName: VoIP Services: com.telnyx.webrtcapp\n localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA\nsubject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US\nissuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority\n-----BEGIN CERTIFICATE-----\nMIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ\nDbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H\nFsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM\nUNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak\nqqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3\no6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt\nhRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ\ncakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk\nMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw\nPwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j\nb20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC\nDRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq\ndGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF\nMIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh\ndGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD\nIsit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P\n5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5\ndnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3\nrpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9\nvG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109\nCfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx\ncHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ\nY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0\nYXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk\nLLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj\n/xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d\nBPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg==\n-----END CERTIFICATE-----\n" + "example": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----" }, "private_key": { "description": "Corresponding private key to the certificate as received from APNs", "type": "string", - "example": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ\nDbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H\nFsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM\nUNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak\nqqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u\nIsit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P\n5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5\ndnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3\nrpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9\nvG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r\nB8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2\nZgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4\n3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG\nwfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k\nwsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0\ncE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC\n3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St\nmu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO\nIWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu\ny3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/\nzkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU\nhxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh\nRUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV\nQOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv\n8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4=\n-----END RSA PRIVATE KEY-----" + "example": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----" }, "alias": { "description": "Alias to uniquely identify the credential", @@ -35111,26 +37388,6 @@ } } }, - "CreateMobileApplicationRequest": { - "type": "object", - "title": "Create Mobile Application Request", - "required": [ - "application_name", - "type" - ], - "properties": { - "application_name": { - "description": "Name of the appplication to be created", - "type": "string", - "example": "FlashEmergency" - }, - "type": { - "description": "Type of application to be created (IOS or Android)", - "type": "string", - "example": "android" - } - } - }, "CreateMultiPartDocServiceDocumentRequest": { "type": "object", "properties": { @@ -36422,16 +38679,6 @@ "video": { "$ref": "#/components/schemas/Video" }, - "hsm": { - "$ref": "#/components/schemas/Hsm" - }, - "contacts": { - "description": "", - "type": "array", - "items": { - "$ref": "#/components/schemas/Contact" - } - }, "location": { "$ref": "#/components/schemas/Location" }, @@ -36452,11 +38699,120 @@ } } }, + "CreateWhatsappMessageTemplateRequestBody": { + "type": "object", + "title": "Create WhatsApp Message Template Request Body", + "properties": { + "category": { + "description": "The template category", + "enum": [ + "ACCOUNT_UPDATE", + "PAYMENT_UPDATE", + "PERSONAL_FINANCE_UPDATE", + "SHIPPING_UPDATE", + "RESERVATION_UPDATE", + "ISSUE_RESOLUTION", + "APPOINTMENT_UPDATE", + "TRANSPORTATION_UPDATE", + "TICKET_UPDATE", + "ALERT_UPDATE", + "AUTO_REPLY" + ], + "type": "string" + }, + "language": { + "description": "The language of the whatsapp message template", + "type": "string", + "enum": [ + "af", + "sq", + "ar", + "az", + "bn", + "bg", + "ca", + "zh_CN", + "zh_HK", + "zh_TW", + "hr", + "cs", + "da", + "nl", + "en", + "en_GB", + "en_US", + "et", + "fil", + "fi", + "fr", + "ka", + "de", + "el", + "gu", + "ha", + "he", + "hi", + "hu", + "id", + "ga", + "it", + "ja", + "kn", + "kk", + "rw_RW", + "ko", + "ky_KG", + "lo", + "lv", + "lt", + "mk", + "ms", + "ml", + "mr", + "nb", + "fa", + "pl", + "pt_BR", + "pt_PT", + "pa", + "ro", + "ru", + "sr", + "sk", + "sl", + "es", + "es_AR", + "es_ES", + "es_MX", + "sw", + "sv", + "ta", + "te", + "th", + "tr", + "uk", + "ur", + "uz", + "vi", + "zu" + ] + }, + "name": { + "description": "A name identifying this whatsapp message template", + "type": "string" + }, + "components": { + "description": "The JSON-formatted components for the this whatsapp message template, please refer to whatsapp documentation on the correct structure for this field", + "type": "string", + "format": "json" + } + } + }, "CreatedAt": { - "title": "Created At", "type": "string", - "description": "ISO 8601 formatted date indicating when the resource was created.", - "example": "2020-02-02T22:25:27.521Z" + "description": "ISO 8601 formatted date-time indicating when the resource was created.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" }, "CredentialConnection": { "type": "object", @@ -36908,6 +39264,40 @@ "amount_1000": 100990 } }, + "CursorPagination": { + "type": "object", + "properties": { + "cursors": { + "type": "object", + "properties": { + "before": { + "type": "string", + "description": "A cursor to use for paginating results." + }, + "after": { + "type": "string", + "description": "A cursor to use for paginating results." + } + } + }, + "next": { + "type": "string", + "description": "A URL to the next page of results." + }, + "previous": { + "type": "string", + "description": "A URL to the previous page of results." + } + }, + "example": { + "cursors": { + "after": "MQZDZD", + "before": "MQZDZD" + }, + "next": "/v2/whatsapp_business_accounts/4444451-4222-9222-3bd5555501c0/whatsapp_message_templates?page[after]=MQZDZD&page[limit]=1", + "previous": "/v2/whatsapp_business_accounts/4444451-4222-9222-3bd5555501c0/whatsapp_message_templates?page[before]=MQZDZD&page[limit]=1" + } + }, "CustomSipHeader": { "type": "object", "title": "Custom SIP Header", @@ -36932,6 +39322,83 @@ "value": "val_1" } }, + "CustomerFacingFQDNsGetIPResponse": { + "title": "CustomerFacingFQDNsGetIP", + "type": "object", + "properties": { + "data": { + "title": "Data", + "type": "array", + "items": { + "$ref": "#/components/schemas/IpItem" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + }, + "CustomerFacingFQDNsListResponse": { + "title": "CustomerFacingFQDNsListResponse", + "type": "object", + "properties": { + "data": { + "title": "Data", + "type": "array", + "items": { + "$ref": "#/components/schemas/CustomerFacingFQDNsResponseSchema" + } + }, + "meta": { + "$ref": "#/components/schemas/PaginationMeta" + } + } + }, + "CustomerFacingFQDNsPost": { + "title": "CustomerFacingFQDNsResponseSchema", + "type": "object", + "required": [ + "fqdn" + ], + "properties": { + "fqdn": { + "title": "Fully Qualified Domain Name (FQDN)", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + } + } + }, + "CustomerFacingFQDNsResponseSchema": { + "title": "CustomerFacingFQDNsResponseSchema", + "type": "object", + "properties": { + "id": { + "title": "Id", + "type": "string" + }, + "fqdn": { + "title": "Fully Qualified Domain Name (FQDN)", + "type": "string" + }, + "description": { + "title": "Description", + "type": "string" + }, + "created_at": { + "title": "Created At", + "type": "string", + "format": "date-time" + }, + "updated_at": { + "title": "Updated At", + "type": "string", + "format": "date-time" + } + } + }, "CustomerServiceRequest": { "type": "object", "properties": { @@ -37220,28 +39687,40 @@ "description": "An object following one of the schemas published in https://developers.telnyx.com/docs/api/v2/detail-records", "oneOf": [ { - "$ref": "#/components/schemas/MessageDetailRecord" + "$ref": "#/components/schemas/MessageDetailRecord", + "title": "Message" + }, + { + "$ref": "#/components/schemas/ConferenceDetailRecord", + "title": "Conference" }, { - "$ref": "#/components/schemas/ConferenceDetailRecord" + "$ref": "#/components/schemas/ConferenceParticipantDetailRecord", + "title": "Conference Participant" }, { - "$ref": "#/components/schemas/ConferenceParticipantDetailRecord" + "$ref": "#/components/schemas/WhatsAppDetailRecord", + "title": "WhatsApp Message" }, { - "$ref": "#/components/schemas/WhatsAppDetailRecord" + "$ref": "#/components/schemas/WhatsAppConversationDetailRecord", + "title": "WhatsApp Conversation" }, { - "$ref": "#/components/schemas/AmdDetailRecord" + "$ref": "#/components/schemas/AmdDetailRecord", + "title": "AMD" }, { - "$ref": "#/components/schemas/VerifyDetailRecord" + "$ref": "#/components/schemas/VerifyDetailRecord", + "title": "Verify 2FA" }, { - "$ref": "#/components/schemas/SimCardUsageDetailRecord" + "$ref": "#/components/schemas/SimCardUsageDetailRecord", + "title": "Sim Card Usage" }, { - "$ref": "#/components/schemas/MediaStorageDetailRecord" + "$ref": "#/components/schemas/MediaStorageDetailRecord", + "title": "Media Storage" } ], "required": [ @@ -37265,6 +39744,118 @@ } } }, + "DialogflowConfig": { + "type": "object", + "title": "Dialogflow Config", + "properties": { + "analyze_sentiment": { + "description": "Enable sentiment analysis from Dialogflow.", + "type": "boolean", + "example": "true", + "default": false + }, + "partial_automated_agent_reply": { + "description": "Enable partial automated agent reply from Dialogflow.", + "type": "boolean", + "example": true, + "default": false + } + } + }, + "DialogflowConnection": { + "type": "object", + "title": "Dialogflow Connection Params", + "required": [ + "service_account" + ], + "properties": { + "service_account": { + "description": "The JSON map to connect your Dialoglow account.", + "type": "object", + "example": "{\"service_account\":{\"type\":\"service_account\",\"project_id\":\"your-project-id\",\"private_key_id\":\"your-private-key\",\"private_key\":\"-----BEGIN PRIVATE KEY-----n-----END PRIVATE\",\"client_email\":\"example@example.com\",\"client_id\":\"your-client-id\",\"auth_uri\":\"http://example.com\",\"token_uri\":\"http://example.com\",\"auth_provider_x509_cert_url\":\"http://example.com\",\"client_x509_cert_url\":\"http://example.com\"}}" + }, + "dialogflow_api": { + "description": "Determin which Dialogflow will be used.", + "type": "string", + "enum": [ + "cx", + "es" + ], + "example": "cx", + "default": "es" + }, + "conversation_profile_id": { + "description": "The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required)", + "type": "string", + "example": "a-VMHLWzTmKjiJw5S6O0-w" + }, + "location": { + "description": "The region of your agent is. (If you use Dialogflow CX, this param is required)", + "type": "string", + "example": "global" + }, + "environment": { + "description": "Which Dialogflow environment will be used.", + "type": "string", + "example": "development" + } + }, + "example": { + "service_Account": "{\"type\":\"service_account\",\"project_id\":\"your-project-id\",\"private_key_id\":\"your-private-key\",\"private_key\":\"-----BEGIN PRIVATE KEY-----n-----END PRIVATE\",\"client_email\":\"example@example.com\",\"client_id\":\"your-client-id\",\"auth_uri\":\"http://example.com\",\"token_uri\":\"http://example.com\",\"auth_provider_x509_cert_url\":\"http://example.com\",\"client_x509_cert_url\":\"http://example.com\"}", + "dialogflow_api": "cx", + "conversation_profile_id": "a-VMHLWzTmKjiJw5S6O0-w", + "location": "global", + "environment": "development" + } + }, + "DialogflowConnectionResponse": { + "type": "object", + "title": "Dialogflow Connection Response", + "required": [ + "data" + ], + "properties": { + "data": { + "type": "object", + "title": "Dialogflow Connection", + "properties": { + "record_type": { + "type": "string", + "example": "dialogflow_connections" + }, + "connection_id": { + "type": "string", + "example": "1234541231", + "description": "Uniquely identifies a Telnyx application (Call Control)." + }, + "conversation_profile_id": { + "type": "string", + "description": "The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required)", + "example": "a-VMHLWzTmKjiJw5S6O0-w" + }, + "environment": { + "type": "string", + "description": "Which Dialogflow environment will be used.", + "example": "development" + }, + "service_account": { + "type": "string", + "description": "The JSON map to connect your Dialoglow account.", + "example": "****" + } + } + } + } + }, + "Direction": { + "description": "The direction of the fax.", + "type": "string", + "example": "outbound", + "enum": [ + "inbound", + "outbound" + ] + }, "DocReqsRequirement": { "type": "object", "properties": { @@ -37902,6 +40493,7 @@ "queue_name": { "description": "The name of the queue the call should be put in. If a queue with a given name doesn't exist yet it will be created.", "type": "string", + "required": ["true"], "example": "tier_1_support" }, "client_state": { @@ -37927,7 +40519,7 @@ } }, "example": { - "queue": "support", + "queue_name": "support", "max_wait_time_secs": 600, "max_size": 20, "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", @@ -37942,7 +40534,7 @@ "properties": { "code": { "type": "string", - "format": "int" + "format": "integer" }, "title": { "type": "string" @@ -38090,50 +40682,28 @@ ] }, "id": { - "description": "Identifies the fax.", - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" + "$ref": "#/components/schemas/Id" }, "connection_id": { - "description": "The connection ID to send the fax with.", - "type": "string", - "example": "234423" + "$ref": "#/components/schemas/ConnectionId" }, "direction": { - "description": "The direction of the fax.", - "type": "string", - "example": "outbound", - "enum": [ - "inbound", - "outbound" - ] + "$ref": "#/components/schemas/Direction" }, "media_url": { - "description": "The URL to the PDF used for the fax's media. If media_name was supplied, this is omitted.", - "type": "string", - "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + "$ref": "#/components/schemas/MediaUrl" }, "media_name": { - "description": "The media_name of a file used for the fax's media.", - "type": "string", - "example": "my_media_uploaded_to_media_storage_api" + "$ref": "#/components/schemas/MediaName" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "quality": { - "description": "The quality of the fax. Can be normal, high, very_high", - "type": "string", - "example": "high", - "default": "high" + "$ref": "#/components/schemas/Quality" }, "status": { "description": "Status of the fax", @@ -38142,6 +40712,7 @@ "enum": [ "queued", "media.processed", + "originated", "sending", "delivered", "failed", @@ -38160,7 +40731,7 @@ "type": "string" }, "store_media": { - "description": "Should fax media be stored on temporary URL.", + "description": "Should fax media be stored on temporary URL. It does not support media_name.", "type": "boolean" }, "stored_media_url": { @@ -38324,18 +40895,10 @@ }, "properties": { "record_type": { - "type": "string", - "example": "event", - "enum": [ - "event" - ], - "description": "Identifies the type of the resource." + "$ref": "#/components/schemas/RecordType" }, "id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the type of resource." + "$ref": "#/components/schemas/Id" }, "event_type": { "type": "string", @@ -38354,50 +40917,28 @@ "example": 25 }, "connection_id": { - "description": "The ID of the connection that was used to send the fax.", - "type": "string", - "example": "234423" + "$ref": "#/components/schemas/ConnectionId" }, "direction": { - "description": "The direction of the fax.", - "type": "string", - "example": "outbound", - "enum": [ - "inbound", - "outbound" - ] + "$ref": "#/components/schemas/Direction" }, "fax_id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the fax." + "$ref": "#/components/schemas/FaxId" }, "original_media_url": { - "description": "The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted", - "type": "string", - "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + "$ref": "#/components/schemas/OriginalMediaUrl" }, "media_name": { - "description": "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization", - "type": "string", - "example": "my_media_uploaded_to_media_storage_api" + "$ref": "#/components/schemas/MediaName" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "user_id": { - "description": "Identifier of the user to whom the fax belongs", - "type": "string", - "format": "uuid", - "example": "yfff7c54-4df3-4bca-a65a-3da1ecc777f0" + "$ref": "#/components/schemas/UserId" }, "page_count": { "description": "Number of transferred pages", @@ -38448,18 +40989,10 @@ }, "properties": { "record_type": { - "type": "string", - "example": "event", - "enum": [ - "event" - ], - "description": "Identifies the type of the resource." + "$ref": "#/components/schemas/RecordType" }, "id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the type of resource." + "$ref": "#/components/schemas/Id" }, "event_type": { "type": "string", @@ -38473,50 +41006,28 @@ "type": "object", "properties": { "connection_id": { - "description": "The ID of the connection that was used to send the fax.", - "type": "string", - "example": "234423" + "$ref": "#/components/schemas/ConnectionId" }, "direction": { - "description": "The direction of the fax.", - "type": "string", - "example": "outbound", - "enum": [ - "inbound", - "outbound" - ] + "$ref": "#/components/schemas/Direction" }, "fax_id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the fax." + "$ref": "#/components/schemas/FaxId" }, "original_media_url": { - "description": "The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted", - "type": "string", - "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + "$ref": "#/components/schemas/OriginalMediaUrl" }, "media_name": { - "description": "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization", - "type": "string", - "example": "my_media_uploaded_to_media_storage_api" + "$ref": "#/components/schemas/MediaName" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "user_id": { - "description": "Identifier of the user to whom the fax belongs", - "type": "string", - "format": "uuid", - "example": "yfff7c54-4df3-4bca-a65a-3da1ecc777f0" + "$ref": "#/components/schemas/UserId" }, "failure_reason": { "type": "string", @@ -38537,6 +41048,12 @@ } } }, + "FaxId": { + "type": "string", + "format": "uuid", + "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", + "description": "Identifies the fax." + }, "FaxMediaProcessed": { "type": "object", "example": { @@ -38559,18 +41076,10 @@ }, "properties": { "record_type": { - "type": "string", - "example": "event", - "enum": [ - "event" - ], - "description": "Identifies the type of the resource." + "$ref": "#/components/schemas/RecordType" }, "id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the type of resource." + "$ref": "#/components/schemas/Id" }, "event_type": { "type": "string", @@ -38584,50 +41093,28 @@ "type": "object", "properties": { "connection_id": { - "description": "The ID of the connection that was used to send the fax.", - "type": "string", - "example": "234423" + "$ref": "#/components/schemas/ConnectionId" }, "direction": { - "description": "The direction of the fax.", - "type": "string", - "example": "outbound", - "enum": [ - "inbound", - "outbound" - ] + "$ref": "#/components/schemas/Direction" }, "fax_id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the fax." + "$ref": "#/components/schemas/FaxId" }, "original_media_url": { - "description": "The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted", - "type": "string", - "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + "$ref": "#/components/schemas/OriginalMediaUrl" }, "media_name": { - "description": "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization", - "type": "string", - "example": "my_media_uploaded_to_media_storage_api" + "$ref": "#/components/schemas/MediaName" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "user_id": { - "description": "Identifier of the user to whom the fax belongs", - "type": "string", - "format": "uuid", - "example": "yfff7c54-4df3-4bca-a65a-3da1ecc777f0" + "$ref": "#/components/schemas/UserId" }, "status": { "type": "string", @@ -38663,18 +41150,10 @@ }, "properties": { "record_type": { - "type": "string", - "example": "event", - "enum": [ - "event" - ], - "description": "Identifies the type of the resource." + "$ref": "#/components/schemas/RecordType" }, "id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the type of resource." + "$ref": "#/components/schemas/Id" }, "event_type": { "type": "string", @@ -38688,50 +41167,28 @@ "type": "object", "properties": { "connection_id": { - "description": "The ID of the connection that was used to send the fax.", - "type": "string", - "example": "234423" + "$ref": "#/components/schemas/ConnectionId" }, "direction": { - "description": "The direction of the fax.", - "type": "string", - "example": "outbound", - "enum": [ - "inbound", - "outbound" - ] + "$ref": "#/components/schemas/Direction" }, "fax_id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the fax." + "$ref": "#/components/schemas/FaxId" }, "original_media_url": { - "description": "The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted", - "type": "string", - "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + "$ref": "#/components/schemas/OriginalMediaUrl" }, "media_name": { - "description": "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization", - "type": "string", - "example": "my_media_uploaded_to_media_storage_api" + "$ref": "#/components/schemas/MediaName" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "user_id": { - "description": "Identifier of the user to whom the fax belongs", - "type": "string", - "format": "uuid", - "example": "yfff7c54-4df3-4bca-a65a-3da1ecc777f0" + "$ref": "#/components/schemas/UserId" }, "status": { "type": "string", @@ -38767,18 +41224,10 @@ }, "properties": { "record_type": { - "type": "string", - "example": "event", - "enum": [ - "event" - ], - "description": "Identifies the type of the resource." + "$ref": "#/components/schemas/RecordType" }, "id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the type of resource." + "$ref": "#/components/schemas/Id" }, "event_type": { "type": "string", @@ -38792,50 +41241,28 @@ "type": "object", "properties": { "connection_id": { - "description": "The ID of the connection that was used to send the fax.", - "type": "string", - "example": "234423" + "$ref": "#/components/schemas/ConnectionId" }, "direction": { - "description": "The direction of the fax.", - "type": "string", - "example": "outbound", - "enum": [ - "inbound", - "outbound" - ] + "$ref": "#/components/schemas/Direction" }, "fax_id": { - "type": "string", - "format": "uuid", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "description": "Identifies the fax." + "$ref": "#/components/schemas/FaxId" }, "original_media_url": { - "description": "The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted", - "type": "string", - "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + "$ref": "#/components/schemas/OriginalMediaUrl" }, "media_name": { - "description": "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization", - "type": "string", - "example": "my_media_uploaded_to_media_storage_api" + "$ref": "#/components/schemas/MediaName" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "user_id": { - "description": "Identifier of the user to whom the fax belongs", - "type": "string", - "format": "uuid", - "example": "yfff7c54-4df3-4bca-a65a-3da1ecc777f0" + "$ref": "#/components/schemas/UserId" }, "status": { "type": "string", @@ -39160,6 +41587,11 @@ "TLS" ] }, + "From": { + "description": "The phone number, in E.164 format, the fax will be sent from.", + "type": "string", + "example": "+13125790015" + }, "GCSConfiguration": { "type": "object", "title": "Google Cloud Storage Configuration", @@ -39192,6 +41624,69 @@ } } }, + "GatherRequest": { + "type": "object", + "title": "Gather", + "properties": { + "minimum_digits": { + "description": "The minimum number of digits to fetch. This parameter has a minimum value of 1.", + "default": 1, + "type": "integer", + "example": 1, + "format": "int32" + }, + "maximum_digits": { + "description": "The maximum number of digits to fetch. This parameter has a maximum value of 128.", + "default": 128, + "type": "integer", + "example": 10, + "format": "int32" + }, + "timeout_millis": { + "description": "The number of milliseconds to wait to complete the request.", + "default": 60000, + "type": "integer", + "example": 60000, + "format": "int32" + }, + "inter_digit_timeout_millis": { + "description": "The number of milliseconds to wait for input between digits.", + "default": 5000, + "type": "integer", + "example": 10000, + "format": "int32" + }, + "initial_timeout_millis": { + "description": "The number of milliseconds to wait for the first DTMF.", + "default": 5000, + "type": "integer", + "example": 10000, + "format": "int32" + }, + "terminating_digit": { + "description": "The digit used to terminate input if fewer than `maximum_digits` digits have been gathered.", + "default": "#", + "type": "string", + "example": "#" + }, + "valid_digits": { + "description": "A list of all digits accepted as valid.", + "default": "0123456789#*", + "type": "string", + "example": "123" + }, + "client_state": { + "description": "Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.", + "type": "string", + "example": "aGF2ZSBhIG5pY2UgZGF5ID1d" + }, + "command_id": { + "description": "Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`.", + "type": "string", + "example": "891510ac-f3e4-11e8-af5b-de00688a4901" + } + } + }, "GatherUsingAudioRequest": { "type": "object", "title": "Gather Using Audio Request", @@ -39663,50 +42158,6 @@ } } }, - "Hsm": { - "title": "Hsm", - "description": "The containing element for the message content \u2014 Indicates that the message is highly structured. Parameters contained within provide the structure.", - "required": [ - "namespace", - "element_name", - "language", - "localizable_params" - ], - "type": "object", - "properties": { - "namespace": { - "description": "The namespace that will be used", - "type": "string" - }, - "element_name": { - "description": "The element name that indicates which template to use within the namespace", - "type": "string" - }, - "language": { - "$ref": "#/components/schemas/Language" - }, - "localizable_params": { - "description": "This field is an array of values to apply to variables in the template", - "type": "array", - "items": { - "$ref": "#/components/schemas/LocalizableParam" - } - } - }, - "example": { - "namespace": "business_a_namespace", - "element_name": "hello_world", - "language": { - "policy": "deterministic", - "code": "en" - }, - "localizable_params": [ - { - "default": "1234" - } - ] - } - }, "Id": { "type": "string", "format": "uuid", @@ -40432,6 +42883,334 @@ "description": "Uniquely identifies the resource.", "example": "1293384261075731499" }, + "Interactive": { + "title": "Interactive", + "required": [ + "type", + "action" + ], + "type": "object", + "properties": { + "type": { + "allOf": [ + { + "$ref": "#/components/schemas/InteractiveType" + } + ], + "description": "The type of interactive message you want to send." + }, + "header": { + "title": "Header", + "allOf": [ + { + "$ref": "#/components/schemas/InteractiveHeader" + } + ], + "description": "Header content displayed on top of a message. See header object for more information. You cannot set a header if your interactive object is of product type. Required for type product_list. Optional for other types." + }, + "body": { + "title": "Body", + "allOf": [ + { + "$ref": "#/components/schemas/InteractiveBody" + } + ], + "description": "The body of the message. Emojis and markdown are supported. Optional for type product. Required for other message types." + }, + "footer": { + "title": "Footer", + "allOf": [ + { + "$ref": "#/components/schemas/InteractiveFooter" + } + ], + "description": "The footer of the message. Emojis and markdown are supported." + }, + "action": { + "title": "Action", + "allOf": [ + { + "$ref": "#/components/schemas/InteractiveAction" + } + ], + "description": "Action you want the user to perform after reading the message." + } + } + }, + "InteractiveAction": { + "title": "InteractiveAction", + "type": "object", + "properties": { + "button": { + "title": "Button", + "type": "string", + "description": "Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Required for List Messages." + }, + "buttons": { + "title": "Buttons", + "type": "array", + "items": { + "$ref": "#/components/schemas/InteractiveButton" + }, + "description": "A list of buttons. Required for Reply Button Messages." + }, + "sections": { + "title": "Sections", + "type": "array", + "items": { + "$ref": "#/components/schemas/InteractiveSection" + }, + "description": "Array of section objects. Required for List Messages and Multi-Product Messages." + }, + "catalog_id": { + "title": "Catalog Id", + "type": "string", + "description": "Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. This ID can be retrieved via Commerce Manager. Required for Single Product Messages and Multi-Product Messages." + }, + "product_retailer_id": { + "title": "Product Retailer Id", + "type": "string", + "description": "Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name." + } + } + }, + "InteractiveBody": { + "title": "InteractiveBody", + "required": [ + "text" + ], + "type": "object", + "properties": { + "text": { + "title": "Text", + "type": "string", + "description": "The body content of the message. Emojis and markdown are supported. Links are supported." + } + } + }, + "InteractiveButton": { + "title": "InteractiveButton", + "required": [ + "reply" + ], + "type": "object", + "properties": { + "type": { + "allOf": [ + { + "$ref": "#/components/schemas/InteractiveButtonType" + } + ], + "description": "The only supported type is reply (for Reply Button Messages).", + "default": "reply" + }, + "reply": { + "title": "Reply", + "allOf": [ + { + "$ref": "#/components/schemas/InteractiveButtonReply" + } + ], + "description": "Reply button details." + } + } + }, + "InteractiveButtonReply": { + "title": "InteractiveButtonReply", + "required": [ + "title", + "id" + ], + "type": "object", + "properties": { + "title": { + "title": "Title", + "type": "string", + "description": "Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not." + }, + "id": { + "title": "Id", + "type": "string", + "description": "Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. You cannot have leading or trailing spaces when setting the ID." + } + } + }, + "InteractiveButtonType": { + "title": "InteractiveButtonType", + "enum": [ + "reply" + ], + "type": "string", + "description": "An enumeration." + }, + "InteractiveFooter": { + "title": "InteractiveFooter", + "required": [ + "text" + ], + "type": "object", + "properties": { + "text": { + "title": "Text", + "type": "string", + "description": "The footer content. Emojis and markdown are supported. Links are supported." + } + } + }, + "InteractiveHeader": { + "title": "InteractiveHeader", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "title": "Type", + "type": "string", + "description": "The header type you would like to use." + }, + "text": { + "title": "Text", + "type": "string", + "description": "Text for the header. Formatting allows emojis, but not markdown." + }, + "video": { + "title": "Video", + "allOf": [ + { + "$ref": "#/components/schemas/Video" + } + ], + "description": "Contains the media object for this video." + }, + "image": { + "title": "Image", + "allOf": [ + { + "$ref": "#/components/schemas/Image" + } + ], + "description": "Contains the media object for this image." + }, + "document": { + "title": "Document", + "allOf": [ + { + "$ref": "#/components/schemas/Document" + } + ], + "description": "Contains the media object for this document." + } + } + }, + "InteractiveProduct": { + "title": "InteractiveProduct", + "required": [ + "product_retailer_id" + ], + "type": "object", + "properties": { + "product_retailer_id": { + "title": "Product Retailer Id", + "type": "string", + "description": "Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name." + } + } + }, + "InteractiveSection": { + "title": "InteractiveSection", + "type": "object", + "properties": { + "title": { + "title": "Title", + "type": "string", + "description": "Title of the section. Required if the message has more than one section." + }, + "rows": { + "title": "Rows", + "type": "array", + "items": { + "$ref": "#/components/schemas/InteractiveSectionRow" + }, + "description": "Contains a list of rows. Limited to 10 rows across all sections. Required for List Messages." + }, + "product_items": { + "title": "Product Items", + "type": "array", + "items": { + "$ref": "#/components/schemas/InteractiveProduct" + }, + "description": "Array of product objects. There is a minimum of 1 product per section. There is a maximum of 30 products across all sections." + } + } + }, + "InteractiveSectionRow": { + "title": "InteractiveSectionRow", + "required": [ + "id", + "title" + ], + "type": "object", + "properties": { + "id": { + "title": "Id", + "type": "string", + "description": "Maximum length: 200 characters" + }, + "title": { + "title": "Title", + "type": "string", + "description": "Maximum length: 24 characters" + }, + "description": { + "title": "Description", + "type": "string", + "description": "Maximum length: 72 characters" + } + } + }, + "InteractiveType": { + "title": "InteractiveType", + "enum": [ + "list", + "button", + "product", + "product_list" + ], + "type": "string", + "description": "An enumeration." + }, + "Interface": { + "type": "object", + "properties": { + "network_id": { + "description": "The id of the network associated with the interface.", + "type": "string", + "format": "uuid", + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + }, + "name": { + "type": "string", + "description": "A user specified name for the interface.", + "example": "test interface" + }, + "status": { + "$ref": "#/components/schemas/InterfaceStatus" + } + } + }, + "InterfaceStatus": { + "type": "string", + "enum": [ + "created", + "provisioning", + "provisioned", + "deleting" + ], + "description": "The current status of the interface deployment.", + "readOnly": true, + "example": "provisioned" + }, "InventoryCoverage": { "type": "object", "properties": { @@ -40497,7 +43276,6 @@ }, "InventoryCoverageMetadata": { "type": "object", - "title": "InventoryCoverageMetadata", "example": { "total_results": 25 }, @@ -40735,6 +43513,31 @@ } } }, + "IpItem": { + "title": "IP Item", + "type": "object", + "properties": { + "ip_address": { + "title": "IP address", + "type": "string", + "format": "ipv4" + }, + "fqdn": { + "title": "Fully Qualified Domain Name (FQDN)", + "type": "string" + }, + "created_at": { + "title": "Created At", + "type": "string", + "format": "date-time" + }, + "updated_at": { + "title": "Updated At", + "type": "string", + "format": "date-time" + } + } + }, "JoinConferenceRequest": { "required": [ "call_control_id" @@ -41020,28 +43823,6 @@ } } }, - "LocalizableParam": { - "title": "LocalizableParam", - "required": [ - "default" - ], - "type": "object", - "properties": { - "default": { - "description": "Default text if localization fails", - "type": "string" - }, - "currency": { - "$ref": "#/components/schemas/Currency" - }, - "date_time": { - "$ref": "#/components/schemas/DateTimeObject" - } - }, - "example": { - "default": "" - } - }, "Location": { "title": "Location", "required": [ @@ -41780,6 +44561,11 @@ "t38_fax_gateway_enabled": true } }, + "MediaName": { + "description": "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.", + "type": "string", + "example": "my_media_uploaded_to_media_storage_api" + }, "MediaRequestBody": { "title": "Media Request Body", "description": "", @@ -41926,6 +44712,11 @@ "record_type" ] }, + "MediaUrl": { + "description": "The URL to the PDF used for the fax's media. media_url and media_name/contents can't be submitted together.", + "type": "string", + "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + }, "Message": { "title": "Message", "description": "", @@ -42145,7 +44936,6 @@ "audio", "contacts", "document", - "hsm", "image", "location", "template", @@ -42588,59 +45378,6 @@ } } }, - "MobileApplication": { - "type": "object", - "required": [ - "id", - "application_name", - "type", - "record_type", - "created_at", - "updated_at" - ], - "properties": { - "id": { - "description": "ID of the appplication that was created", - "type": "string", - "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" - }, - "application_name": { - "description": "Name of the appplication to be created", - "type": "string", - "example": "FlashEmergency" - }, - "type": { - "description": "Type of application to be created (IOS or Android)", - "type": "string", - "example": "android" - }, - "record_type": { - "type": "string", - "example": "mobile_application", - "readOnly": true - }, - "created_at": { - "description": "ISO 8601 timestamp when the room was created.", - "type": "string", - "format": "datetime", - "example": "2021-03-26T17:51:59.588408Z" - }, - "updated_at": { - "description": "ISO 8601 timestamp when the room was updated.", - "type": "string", - "format": "datetime", - "example": "2021-03-26T17:51:59.588408Z" - } - } - }, - "MobileApplicationResponse": { - "description": "Success response with details about a mobile application", - "properties": { - "data": { - "$ref": "#/components/schemas/MobileApplication" - } - } - }, "MobileOperatorNetwork": { "type": "object", "title": "MobileOperatorNetwork", @@ -42757,6 +45494,11 @@ } } }, + "Monochrome": { + "description": "The flag to enable monochrome, true black and white fax results.", + "type": "boolean", + "default": false + }, "Name": { "title": "Name", "description": "Full contact name", @@ -42792,6 +45534,75 @@ "last_name": "Smith" } }, + "Network": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "type": "object", + "title": "Network", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "network" + }, + "name": { + "type": "string", + "description": "A user specified name for the network.", + "example": "test network" + } + } + } + ] + }, + "NetworkCreate": { + "allOf": [ + { + "$ref": "#/components/schemas/Network" + }, + { + "type": "object", + "title": "NetworkCreate", + "required": [ + "name" + ] + } + ] + }, + "NetworkInterface": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "$ref": "#/components/schemas/Interface" + }, + { + "$ref": "#/components/schemas/RegionOut" + }, + { + "type": "object", + "title": "NetworkInterface", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "network_interface" + }, + "type": { + "type": "string", + "description": "Identifies the type of the interface.", + "readOnly": true, + "example": "wireguard_interface" + } + } + } + ] + }, "NewBillingGroup": { "properties": { "name": { @@ -43683,6 +46494,11 @@ "title": "Manager" } }, + "OriginalMediaUrl": { + "description": "The original URL to the PDF used for the fax's media. If media_name was supplied, this is omitted", + "type": "string", + "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + }, "OutboundCallRecording": { "type": "object", "example": { @@ -44357,6 +47173,24 @@ "format": "int64", "example": "1293384261075731499" }, + "PWGAssignedResourcesSummary": { + "type": "object", + "description": "The summary of the resource that have been assigned to the Private Wireless Gateway", + "properties": { + "record_type": { + "type": "string", + "description": "The type of the resource assigned to the Private Wireless Gateway", + "example": "sim_card_group", + "readOnly": true + }, + "count": { + "type": "integer", + "description": "The current count of a resource type assigned to the Private Wireless Gateway", + "example": 1, + "readOnly": true + } + } + }, "PaginationMeta": { "type": "object", "properties": { @@ -45166,12 +48000,12 @@ }, "number_level_routing": { "type": "string", - "description": "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level.", + "description": "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level.", "enum": [ "enabled", "disabled" ], - "default": "enabled" + "default": "disabled" }, "phone_number_type": { "type": "string", @@ -45337,12 +48171,12 @@ }, "number_level_routing": { "type": "string", - "description": "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level.", + "description": "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level.", "enum": [ "enabled", "disabled" ], - "default": "enabled" + "default": "disabled" }, "phone_number_type": { "type": "string", @@ -45999,6 +48833,11 @@ "default": true, "example": true }, + "playback_content": { + "description": "Allows a user to provide base64 encoded mp3. Note: when using this parameter, `media_url` and `media_name` in the `playback_started` and `playback_ended` webhooks will be empty", + "type": "string", + "example": "SUQzAwAAAAADf1..." + }, "client_state": { "description": "Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.", "type": "string", @@ -46249,6 +49088,11 @@ "example": "f1486bae-f067-460c-ad43-73a92848f902", "readOnly": true }, + "customer_reference": { + "type": "string", + "description": "A customer-specified reference number for customer bookkeeping purposes", + "example": "Acct 123abc" + }, "created_at": { "type": "string", "format": "date-time", @@ -46305,6 +49149,19 @@ "phone_number_configuration": { "$ref": "#/components/schemas/PortingOrderPhoneNumberConfiguration" }, + "phone_number_type": { + "type": "string", + "description": "The type of the phone number", + "example": "local", + "enum": [ + "landline", + "local", + "mobile", + "national", + "shared_cost", + "toll_free" + ] + }, "description": { "type": "string", "description": "A description of the porting order", @@ -46318,19 +49175,25 @@ "$ref": "#/components/schemas/PortingOrderRequirement" } }, + "requirements_met": { + "type": "boolean", + "description": "Is true when the required documentation is met", + "example": false + }, "user_feedback": { "$ref": "#/components/schemas/PortingOrderUserFeedback" }, + "user_id": { + "type": "string", + "format": "uuid", + "description": "Identifies the user (or organization) who requested the porting order", + "example": "40d68ba2-0847-4df2-be9c-b0e0cb673e75" + }, "webhook_url": { "type": "string", "format": "uri", "example": "https://example.com/porting_webhooks" }, - "user_reference": { - "type": "string", - "description": "A customer-specified reference number for customer bookkeeping purposes", - "example": "Acct 123abc" - }, "record_type": { "type": "string", "example": "porting_order", @@ -46606,6 +49469,73 @@ } } }, + "PortingOrderRequirementDetail": { + "type": "object", + "properties": { + "field_type": { + "type": "string", + "description": "Type of value expected on field_value field", + "enum": [ + "document", + "textual" + ], + "example": "document" + }, + "field_value": { + "type": "string", + "description": "Identifies the document that satisfies this requirement", + "example": "9787fb5f-cbe5-4de4-b765-3303774ee9fe" + }, + "requirement_type": { + "type": "object", + "description": "Identifies the requirement type that meets this requirement", + "properties": { + "acceptance_criteria": { + "type": "object", + "description": "The acceptance criteria for the requirement type", + "example": { + "acceptable_values": [] + } + }, + "description": { + "type": "string", + "description": "A description of the requirement type", + "example": "A copy of the latest phone bill from the current provider" + }, + "example": { + "type": "string", + "description": "An example of the requirement type", + "example": "Most recent phone bill" + }, + "id": { + "type": "string", + "description": "Identifies the requirement type", + "example": "53970723-fbff-4f46-a975-f62be6c1a585" + }, + "name": { + "type": "string", + "description": "The name of the requirement type", + "example": "Latest Invoice" + }, + "type": { + "type": "string", + "description": "The type of the requirement type", + "example": "document" + } + } + }, + "requirement_status": { + "type": "string", + "description": "Status of the requirement", + "example": "approved" + }, + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "example": "porting_requirement" + } + } + }, "PortingOrderStatus": { "type": "object", "description": "Porting order status", @@ -46951,11 +49881,68 @@ "+35312345678" ] }, + "authorized_name": { + "type": "string", + "description": "Name of person authorizing the porting order", + "example": "McPortersen" + }, "carrier_name": { "type": "string", "description": "Carrier the number will be ported out to", "example": "test" }, + "current_carrier": { + "type": "string", + "description": "The current carrier", + "example": "telnyx" + }, + "end_user_name": { + "type": "string", + "description": "Person name or company name requesting the port", + "example": "McPortersen" + }, + "city": { + "type": "string", + "description": "City or municipality of billing address", + "example": "Chicago" + }, + "state": { + "type": "string", + "description": "State, province, or similar of billing address", + "example": "IL" + }, + "zip": { + "type": "string", + "description": "Postal Code of billing address", + "example": "00000" + }, + "lsr": { + "type": "array", + "description": "The Local Service Request", + "items": { + "type": "string", + "format": "uri", + "description": "A link to the Local Service Request" + }, + "example": [ + "https://example.com/files/lsr.pdf" + ] + }, + "pon": { + "type": "string", + "description": "Port order number assigned by the carrier the number will be ported out to", + "example": "00000000" + }, + "reason": { + "type": "string", + "description": "The reason why the order is being rejected by the user. If the order is authorized, this field can be left null", + "example": null + }, + "service_address": { + "type": "string", + "description": "First line of billing address (street address)", + "example": "000 Example Street" + }, "foc_date": { "type": "string", "description": "ISO 8601 formatted Date/Time of the FOC date", @@ -46971,6 +49958,11 @@ "description": "New service provider spid", "example": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0" }, + "support_key": { + "type": "string", + "description": "A key to reference this port out request when contacting Telnyx customer support", + "example": "PO_764725" + }, "status": { "type": "string", "description": "Status of portout request", @@ -46984,30 +49976,38 @@ ], "example": "rejected" }, + "already_ported": { + "type": "boolean", + "description": "Is true when the number is already ported", + "example": false + }, + "user_id": { + "type": "string", + "format": "uuid", + "description": "Identifies the user (or organization) who requested the port out", + "example": "7865816a-ee85-4e50-b19e-52983dcc6d4a" + }, + "vendor": { + "type": "string", + "description": "Telnyx partner providing network coverage", + "format": "uuid", + "example": "0e66ed3b-37e6-4fed-93d6-a30ce2493661" + }, "created_at": { "type": "string", "description": "ISO 8601 formatted date of when the portout was created", "example": "2018-02-02T22:25:27.521Z" }, + "inserted_at": { + "type": "string", + "description": "ISO 8601 formatted date of when the portout was created", + "example": "2018-02-02T22:25:27.521Z" + }, "updated_at": { "type": "string", "description": "ISO 8601 formatted date of when the portout was last updated", "example": "2018-02-02T22:25:27.521Z" } - }, - "example": { - "id": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "record_type": "portout", - "phone_numbers": [ - "+35312345678" - ], - "carrier_name": "test", - "foc_date": "2018-02-02T22:25:27.521Z", - "requested_foc_date": "2018-02-02T22:25:27.521Z", - "spid": "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", - "status": "pending", - "created_at": "2018-02-02T22:25:27.521Z", - "updated_at": "2018-02-02T22:25:27.521Z" } }, "PrivateWirelessGateway": { @@ -47063,6 +50063,13 @@ "example": "100.64.1.0/24", "readOnly": true, "default": null + }, + "assigned_resources": { + "type": "array", + "description": "A list of the resources that have been assigned to the Private Wireless Gateway", + "items": { + "$ref": "#/components/schemas/PWGAssignedResourcesSummary" + } } } }, @@ -47119,6 +50126,62 @@ } } }, + "PublicInternetGateway": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "$ref": "#/components/schemas/Interface" + }, + { + "type": "object", + "title": "PublicInternetGateway", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "public_internet_gateway" + }, + "public_ip": { + "description": "The publically accessible ip for this interface.", + "type": "string", + "example": "127.0.0.1", + "readOnly": true + } + } + } + ] + }, + "PublicInternetGatewayCreate": { + "allOf": [ + { + "$ref": "#/components/schemas/PublicInternetGateway" + }, + { + "$ref": "#/components/schemas/RegionIn" + }, + { + "type": "object", + "title": "PublicInternetGatewayCreate", + "required": [ + "network_id", + "region" + ] + } + ] + }, + "PublicInternetGatewayRead": { + "allOf": [ + { + "$ref": "#/components/schemas/PublicInternetGateway" + }, + { + "$ref": "#/components/schemas/RegionOut" + } + ] + }, "PushCredential": { "type": "object", "title": "Successful response with details about a push credential", @@ -47128,6 +50191,7 @@ "private_key", "server_key", "alias", + "type", "record_type", "created_at", "updated_at" @@ -47139,25 +50203,30 @@ "example": "0ccc7b54-4df3-4bcb-a65a-3da1ecc997d7" }, "certificate": { - "description": "Apple certificate for sending push notifications", + "description": "Apple certificate for sending push notifications. For iOS only", "type": "string", - "example": "Bag Attributes\n friendlyName: VoIP Services: com.telnyx.webrtcapp\n localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA\nsubject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US\nissuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority\n-----BEGIN CERTIFICATE-----\nMIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ\nDbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H\nFsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM\nUNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak\nqqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3\no6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt\nhRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ\ncakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk\nMAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw\nPwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j\nb20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC\nDRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq\ndGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF\nMIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh\ndGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD\nIsit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P\n5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5\ndnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3\nrpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9\nvG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109\nCfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx\ncHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ\nY2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0\nYXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk\nLLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj\n/xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d\nBPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg==\n-----END CERTIFICATE-----\n" + "example": "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----" }, "private_key": { - "description": "Apple private key for a given certificate for sending push notifications", + "description": "Apple private key for a given certificate for sending push notifications. For iOS only", "type": "string", - "example": "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ\nDbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H\nFsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM\nUNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak\nqqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u\nIsit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P\n5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5\ndnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3\nrpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9\nvG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r\nB8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2\nZgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4\n3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG\nwfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k\nwsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0\ncE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC\n3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St\nmu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO\nIWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu\ny3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/\nzkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU\nhxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh\nRUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV\nQOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv\n8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4=\n-----END RSA PRIVATE KEY-----" + "example": "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----" }, "server_key": { - "description": "Google server key for sending push notifications", + "description": "Google server key for sending push notifications. For Android only", "type": "string", - "example": "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0" + "example": "" }, "alias": { "description": "Alias to uniquely identify a credential", "type": "string", "example": "LucyCredential" }, + "type": { + "description": "Type of mobile push credential. Either ios or android", + "type": "string", + "example": "ios" + }, "record_type": { "type": "string", "example": "push_credential", @@ -47177,13 +50246,11 @@ } } }, - "PushCredentialResponse": { - "description": "Success response with details about a push credential", - "properties": { - "data": { - "$ref": "#/components/schemas/PushCredential" - } - } + "Quality": { + "description": "The quality of the fax. Can be normal, high, very_high", + "type": "string", + "example": "high", + "default": "high" }, "Queue": { "type": "object", @@ -47362,6 +50429,36 @@ } ] }, + "Record": { + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Identifies the resource.", + "readOnly": true, + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + }, + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "sample_record_type" + }, + "created_at": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the resource was created.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + }, + "updated_at": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the resource was updated.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + } + } + }, "RecordType": { "type": "string", "description": "Identifies record type.", @@ -47783,6 +50880,58 @@ "refresh_token" ] }, + "Region": { + "type": "object", + "title": "Region", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "region" + }, + "code": { + "type": "string", + "description": "A code for the region.", + "example": "ashburn-va" + }, + "name": { + "type": "string", + "description": "A name for the region.", + "example": "Ashburn" + }, + "supported_interfaces": { + "type": "array", + "description": "List of interface types supported in this region.", + "items": { + "type": "string", + "example": "wireguard_interface" + } + }, + "created_at": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the resource was created.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + }, + "updated_at": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the resource was updated.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + } + } + }, + "RegionIn": { + "type": "object", + "properties": { + "region_code": { + "description": "The region the interface should be deployed to.", + "type": "string", + "example": "ashburn-va" + } + } + }, "RegionInformation": { "properties": { "region_type": { @@ -47805,6 +50954,37 @@ "region_name": "US" } }, + "RegionOut": { + "type": "object", + "properties": { + "region_code": { + "description": "The region interface is deployed to.", + "type": "string", + "example": "ashburn-va" + }, + "region": { + "type": "object", + "properties": { + "code": { + "description": "Region code of the interface.", + "type": "string", + "example": "ashburn-va" + }, + "name": { + "description": "Region name of the interface.", + "type": "string", + "example": "Ashburn" + }, + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "region" + } + } + } + } + }, "RegisterCallRequest": { "type": "object", "title": "RegisterCallRequest", @@ -48708,6 +51888,26 @@ } } }, + "authorized_imeis": { + "type": "array", + "description": "List of IMEIs authorized to use a given SIM card.", + "items": { + "type": "string", + "format": "int64" + }, + "example": [ + "106516771852751", + "534051870479563", + "508821468377961" + ] + }, + "current_imei": { + "type": "string", + "format": "int64", + "description": "IMEI of the device where a given SIM card is currently being used.", + "readOnly": true, + "example": "457032284023794" + }, "created_at": { "type": "string", "description": "ISO 8601 formatted date-time indicating when the resource was created.", @@ -48769,6 +51969,17 @@ "readOnly": true, "description": "Mobile Country Code of the current network to which the SIM card is connected. It's a three decimal digit that identifies a country.

\nThis code is commonly seen joined with a Mobile Network Code (MNC) in a tuple that allows identifying a carrier known as PLMN (Public Land Mobile Network) code.", "example": "410" + }, + "live_data_session": { + "type": "string", + "enum": [ + "connected", + "disconnected", + "unknown" + ], + "readOnly": true, + "description": "Indicates whether the device is actively connected to a network and able to run data.", + "example": "connected" } } }, @@ -48842,6 +52053,66 @@ } } }, + "SIMCardActionsSummary": { + "type": "object", + "properties": { + "status": { + "type": "string", + "enum": [ + "in-progress", + "completed", + "failed", + "interrupted" + ], + "example": "in-progress" + }, + "count": { + "type": "integer" + } + } + }, + "SIMCardDeviceDetails": { + "type": "object", + "title": "SIMCardDeviceDetails", + "properties": { + "record_type": { + "type": "string", + "example": "device_details", + "readOnly": true + }, + "imei": { + "type": "string", + "description": "IMEI of the device where the SIM card is being used in.", + "format": "int64", + "example": "457032284023794", + "readOnly": true + }, + "model_name": { + "type": "string", + "description": "Brand of the device where the SIM card is being used in.", + "example": "iPad Pro 11 2020 Cellular", + "readOnly": true + }, + "brand_name": { + "type": "string", + "description": "Brand of the device where the SIM card is being used in.", + "example": "Apple", + "readOnly": true + }, + "device_type": { + "type": "string", + "description": "Type of the device where the SIM card is being used in.", + "example": "Tablet", + "readOnly": true + }, + "operating_system": { + "type": "string", + "description": "Operating system of the device where the SIM card is being used in.", + "example": "iOS 12", + "readOnly": true + } + } + }, "SIMCardGroup": { "title": "SIMCardGroup", "type": "object", @@ -49449,6 +52720,79 @@ } } }, + "SearchedSIMCardGroup": { + "title": "SIMCardGroup", + "type": "object", + "properties": { + "id": { + "type": "string", + "format": "uuid", + "description": "Identifies the resource.", + "readOnly": true, + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + }, + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "sim_card_group" + }, + "default": { + "description": "Indicates whether the SIM card group is the users default group.
The default group is created for the user and can not be removed.", + "type": "boolean", + "example": true, + "readOnly": true + }, + "name": { + "description": "A user friendly name for the SIM card group.", + "type": "string", + "example": "My Test Group" + }, + "data_limit": { + "type": "object", + "description": "Upper limit on the amount of data the SIM cards, within the group, can use.", + "properties": { + "amount": { + "type": "string", + "format": "decimal", + "example": "2048.1" + }, + "unit": { + "type": "string", + "example": "MB" + } + } + }, + "consumed_data": { + "$ref": "#/components/schemas/ConsumedData" + }, + "sim_card_count": { + "description": "The number of SIM cards associated with the group.", + "type": "integer", + "example": 10, + "default": 0 + }, + "private_wireless_gateway_id": { + "description": "The identification of the related Private Wireless Gateway resource.", + "format": "uuid", + "type": "string", + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58", + "default": null + }, + "created_at": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the resource was created.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + }, + "updated_at": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the resource was updated.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + } + } + }, "SendDTMFRequest": { "type": "object", "title": "Send DTMF Request", @@ -49497,45 +52841,30 @@ ], "properties": { "connection_id": { - "description": "The connection ID to send the fax with.", - "type": "string", - "example": "234423" + "$ref": "#/components/schemas/ConnectionId" }, "contents": { - "description": "The file you want to upload. The maximum allowed size is 20 MB.", + "description": "The file you want to upload. The maximum allowed size is 20 MB. contents and media_name/media_url can't be submitted together.", "type": "string", "format": "binary" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI.", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "quality": { - "description": "The quality of the fax. Can be normal, high, very_high.", - "type": "string", - "example": "high", - "default": "high" + "$ref": "#/components/schemas/Quality" }, "t38_enabled": { - "description": "The flag to disable the T.38 protocol.", - "type": "boolean", - "default": true + "$ref": "#/components/schemas/T38Enabled" }, "monochrome": { - "description": "The flag to enable monochrome, true black and white fax results.", - "type": "boolean", - "default": false + "$ref": "#/components/schemas/Monochrome" }, "store_media": { - "description": "Should fax media be stored on temporary URL.", - "type": "boolean", - "default": false + "$ref": "#/components/schemas/StoreMedia" } } }, @@ -49554,30 +52883,19 @@ "example": "234423" }, "media_url": { - "description": "The URL to the PDF used for the fax's media. media_url and media_name can't be submitted together.", - "type": "string", - "example": "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf" + "$ref": "#/components/schemas/MediaUrl" }, "media_name": { - "description": "The media_name of a file to be used for the fax's media. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_url and media_name can't be submitted together.", - "type": "string", - "example": "my_media_uploaded_to_media_storage_api" + "$ref": "#/components/schemas/MediaName" }, "to": { - "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI.", - "type": "string", - "example": "+13127367276" + "$ref": "#/components/schemas/To" }, "from": { - "description": "The phone number, in E.164 format, the fax will be sent from.", - "type": "string", - "example": "+13125790015" + "$ref": "#/components/schemas/From" }, "quality": { - "description": "The quality of the fax. Can be normal, high, very_high.", - "type": "string", - "example": "high", - "default": "high" + "$ref": "#/components/schemas/Quality" }, "t38_enabled": { "description": "The flag to disable the T.38 protocol.", @@ -50204,6 +53522,7 @@ "SoundModifications": { "type": "object", "title": "Sound modifications", + "description": "Use this field to modify sound effects, for example adjust the pitch.", "properties": { "pitch": { "description": "Set the pitch directly, value should be > 0, default 1 (lower = lower tone)", @@ -50222,11 +53541,19 @@ "type": "number", "format": "double", "example": -0.5 + }, + "track": { + "description": "The track to which the sound modifications will be applied. Accepted values are `inbound`, `outbound`, or `both`", + "type": "string", + "example": "both", + "default": "outbound" } }, "example": { - "name": "user-to-user", - "value": "value" + "pitch": "0.8", + "semitone": -2, + "octaves": 0.1, + "track": "both" } }, "SpeakRequest": { @@ -50425,7 +53752,14 @@ "example": true }, "max_length": { - "description": "Defines the maximum length for the recording in seconds. Minimum value is 0. Maximum value is 14400. Default is 0 (infinite)", + "description": "Defines the maximum length for the recording in seconds. The minimum value is 0. The maximum value is 14400. The default value is 0 (infinite)", + "type": "integer", + "example": 100, + "default": 0, + "format": "int32" + }, + "timeout_secs": { + "description": "The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite)", "type": "integer", "example": 100, "default": 0, @@ -50438,7 +53772,8 @@ "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", "command_id": "891510ac-f3e4-11e8-af5b-de00688a4901", "play_beep": true, - "max_length": 0 + "max_length": 0, + "timeout_secs": 0 } }, "StartStreamingRequest": { @@ -50470,13 +53805,27 @@ "description": "Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`.", "type": "string", "example": "891510ac-f3e4-11e8-af5b-de00688a4901" + }, + "enable_dialogflow": { + "description": "Enables Dialogflow for the current call. The default value is false.", + "type": "boolean", + "default": false, + "example": true + }, + "dialogflow_config": { + "$ref": "#/components/schemas/DialogflowConfig" } }, "example": { "stream_url": "wss://www.example.com/websocket", "stream_track": "both_tracks", "client_state": "aGF2ZSBhIG5pY2UgZGF5ID1d", - "command_id": "891510ac-f3e4-11e8-af5b-de00688a4901" + "command_id": "891510ac-f3e4-11e8-af5b-de00688a4901", + "enable_dialogflow": false, + "dialogflow_config": { + "analyze_sentiment": false, + "partial_automated_agent_reply": false + } } }, "StopForkingRequest": { @@ -50569,6 +53918,16 @@ "command_id": "891510ac-f3e4-11e8-af5b-de00688a4901" } }, + "StoreMedia": { + "description": "Should fax media be stored on temporary URL. It does not support media_name, they can't be submitted together.", + "type": "boolean", + "default": false + }, + "StoredMedia": { + "description": "Should fax media be stored on temporary URL. It does not support media_name, they can't be submitted together.", + "type": "boolean", + "default": false + }, "SubNumberOrder": { "properties": { "id": { @@ -50670,6 +54029,11 @@ } } }, + "T38Enabled": { + "description": "The flag to disable the T.38 protocol.", + "type": "boolean", + "default": true + }, "TelephonyCredential": { "type": "object", "title": "On-demand Credential", @@ -50821,6 +54185,111 @@ } } }, + "TemplateButtonComponent": { + "title": "TemplateButtonComponent", + "required": [ + "type", + "sub_type", + "index", + "parameters" + ], + "type": "object", + "properties": { + "type": { + "allOf": [ + { + "$ref": "#/components/schemas/ButtonComponentType" + } + ], + "description": "Describes the component type." + }, + "sub_type": { + "allOf": [ + { + "$ref": "#/components/schemas/ButtonSubtype" + } + ], + "description": "Used when type is set to button." + }, + "index": { + "title": "Index", + "type": "integer", + "description": "Position index of the button. You can have up to 3 buttons using index values of 0-2." + }, + "parameters": { + "title": "Parameters", + "allOf": [ + { + "$ref": "#/components/schemas/TemplateButtonParameters" + } + ], + "description": "The parameters for the button, which are set at creation time in your Business Manager." + } + } + }, + "TemplateButtonParameter": { + "title": "TemplateButtonParameter", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "allOf": [ + { + "$ref": "#/components/schemas/ButtonParameterType" + } + ], + "description": "Indicates the type of parameter for the button." + }, + "payload": { + "title": "Payload", + "type": "string", + "description": "Required for quick_reply buttons. Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button." + }, + "text": { + "title": "Text", + "type": "string", + "description": "Required for url buttons. Developer provided suffix that will be appended to a previously created dynamic URL button." + } + } + }, + "TemplateButtonParameters": { + "title": "TemplateButtonParameters", + "type": "array", + "items": { + "$ref": "#/components/schemas/TemplateButtonParameter" + } + }, + "TemplateComponent": { + "title": "TemplateComponent", + "required": [ + "type" + ], + "type": "object", + "properties": { + "type": { + "allOf": [ + { + "$ref": "#/components/schemas/TemplateComponentType" + } + ], + "description": "Describes the component type." + }, + "parameters": { + "$ref": "#/components/schemas/TemplateParameters" + } + } + }, + "TemplateComponentType": { + "title": "TemplateComponentType", + "enum": [ + "header", + "body" + ], + "type": "string", + "description": "An enumeration." + }, "TemplateComponents": { "title": "Template Components", "type": "array", @@ -50829,6 +54298,14 @@ "required": [ "type" ], + "anyOf": [ + { + "$ref": "#/components/schemas/TemplateComponent" + }, + { + "$ref": "#/components/schemas/TemplateButtonComponent" + } + ], "description": "", "type": "object", "properties": { @@ -51051,6 +54528,11 @@ "body": "" } }, + "To": { + "description": "The phone number, in E.164 format, the fax will be sent to or SIP URI", + "type": "string", + "example": "+13127367276" + }, "ToNumber": { "type": "string", "format": "address", @@ -51208,6 +54690,12 @@ "type": "string", "example": "aGF2ZSBhIG5pY2UgZGF5ID1d" }, + "transcription_tracks": { + "description": "Indicates which leg of the call will be transcribed. Use `inbound` for the leg that requested the transcription, `outbound` for the other leg, and `both` for both legs of the call. Will default to `inbound`.", + "type": "string", + "example": "both", + "default": "inbound" + }, "command_id": { "description": "Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`.", "type": "string", @@ -51474,6 +54962,9 @@ "$ref": "#/components/schemas/SipHeader" } }, + "sound_modifications": { + "$ref": "#/components/schemas/SoundModifications" + }, "webhook_url": { "description": "Use this field to override the URL for which Telnyx will send subsequent webhooks to for this call.", "type": "string", @@ -51745,6 +55236,85 @@ "webhook_timeout_secs": 25 } }, + "UpdateCallRequest": { + "type": "object", + "title": "Update Call Request", + "properties": { + "Status": { + "description": "The value to set the call status to. Setting the status to completed ends the call.", + "example": "completed", + "type": "string" + }, + "Url": { + "description": "The URL where TeXML will make a request to retrieve a new set of TeXML instructions to continue the call flow.", + "example": "https://www.example.com/intruction-b.xml", + "type": "string" + }, + "Method": { + "description": "HTTP request type used for `Url`.", + "example": "GET", + "type": "string", + "enum": [ + "GET", + "POST" + ] + }, + "FallbackUrl": { + "description": "A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not responding.", + "example": "https://www.example.com/intruction-c.xml", + "type": "string" + }, + "FallbackMethod": { + "description": "HTTP request type used for `FallbackUrl`.", + "example": "GET", + "type": "string", + "enum": [ + "GET", + "POST" + ] + }, + "StatusCallback": { + "description": "URL destination for Telnyx to send status callback events to for the call.", + "example": "https://www.example.com/callback", + "type": "string" + }, + "StatusCallbackMethod": { + "description": "HTTP request type used for `StatusCallback`.", + "example": "GET", + "type": "string", + "enum": [ + "GET", + "POST" + ] + }, + "Texml": { + "description": "TeXml to replace the current one with.", + "example": "Hello", + "type": "string" + } + }, + "example": { + "Status": "completed" + } + }, + "UpdateCommandResult": { + "type": "object", + "title": "TeXml REST Update Command Result", + "example": { + "sid": "c46e06d7-b78f-4b13-96b6-c576af9640ff", + "status": "accepted" + }, + "properties": { + "sid": { + "type": "string", + "example": "c46e06d7-b78f-4b13-96b6-c576af9640ff" + }, + "status": { + "type": "string", + "example": "accepted" + } + } + }, "UpdateConferenceRequest": { "required": [ "call_control_id", @@ -53297,10 +56867,10 @@ } }, "UpdatedAt": { - "title": "Updated At", "type": "string", - "description": "ISO 8601 formatted date indicating when the resource was updated.", - "example": "2020-02-03T22:25:27.521Z" + "description": "ISO 8601 formatted date-time indicating when the resource was updated.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" }, "UplinkData": { "type": "object", @@ -53547,92 +57117,11 @@ "currency": "USD" } }, - "ValidateAddress": { - "type": "object", - "title": "ValidateAddress", - "properties": { - "street_address": { - "$ref": "#/components/schemas/street_address" - }, - "extended_address": { - "$ref": "#/components/schemas/extended_address" - }, - "locality": { - "$ref": "#/components/schemas/locality" - }, - "administrative_area": { - "$ref": "#/components/schemas/administrative_area" - }, - "postal_code": { - "$ref": "#/components/schemas/postal_code" - }, - "country_code": { - "$ref": "#/components/schemas/country_code" - } - } - }, - "ValidateAddressRequest": { - "type": "object", - "required": [ - "country_code", - "street_address", - "postal_code" - ], - "properties": { - "street_address": { - "$ref": "#/components/schemas/street_address" - }, - "extended_address": { - "$ref": "#/components/schemas/extended_address" - }, - "locality": { - "$ref": "#/components/schemas/locality" - }, - "administrative_area": { - "$ref": "#/components/schemas/administrative_area" - }, - "postal_code": { - "$ref": "#/components/schemas/postal_code" - }, - "country_code": { - "$ref": "#/components/schemas/country_code" - } - } - }, - "ValidateAddressResult": { - "type": "object", - "title": "Validate address action result", - "properties": { - "result": { - "type": "string", - "description": "Indicates whether an address is valid or invalid.", - "enum": [ - "valid", - "invalid" - ], - "example": "valid" - }, - "suggested": { - "type": "object", - "description": "Provides normalized address when available.", - "$ref": "#/components/schemas/ValidateAddress" - }, - "record_type": { - "type": "string", - "description": "Identifies the type of the resource.", - "example": "address_validation" - }, - "errors": { - "type": "array", - "items": { - "$ref": "#/components/schemas/Error" - } - } - }, - "required": [ - "result", - "suggested" - ] + "UserId": { + "description": "Identifier of the user to whom the fax belongs", + "type": "string", + "format": "uuid", + "example": "yfff7c54-4df3-4bca-a65a-3da1ecc777f0" }, "Verification": { "title": "Verification", @@ -54328,6 +57817,238 @@ } } }, + "VirtualCrossConnect": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "$ref": "#/components/schemas/Interface" + }, + { + "type": "object", + "title": "VirtualCrossConnect", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "virtual_cross_connect" + }, + "cloud_provider": { + "type": "string", + "enum": [ + "aws", + "azure", + "gce" + ], + "description": "The Virtual Private Cloud with which you would like to establish a cross connect.", + "example": "aws" + }, + "cloud_region": { + "type": "string", + "description": "The region where your Virtual Private Cloud hosts are located.

The available regions can be found using the /virtual_cross_connect_regions endpoint.", + "example": "us-east-1" + }, + "bgp_asn": { + "type": "number", + "description": "The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx.", + "example": 1234 + }, + "bandwidth_mbps": { + "type": "number", + "description": "The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.

The available bandwidths can be found using the /virtual_cross_connect_regions endpoint.", + "example": 50 + }, + "primary_enabled": { + "type": "boolean", + "description": "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.", + "example": true, + "readOnly": true + }, + "primary_cloud_account_id": { + "type": "string", + "description": "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.", + "example": "123456789012" + }, + "primary_telnyx_ip": { + "type": "string", + "format": "ipv4", + "description": "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.", + "example": "169.254.0.1" + }, + "primary_cloud_ip": { + "type": "string", + "format": "ipv4", + "description": "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.", + "example": "169.254.0.2" + }, + "primary_bgp_key": { + "type": "string", + "description": "The authentication key for BGP peer configuration.", + "example": "yFV4wEPtPVPfDUGLWiyQzwga" + }, + "secondary_enabled": { + "type": "boolean", + "description": "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.", + "example": true, + "readOnly": true + }, + "secondary_cloud_account_id": { + "type": "string", + "description": "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.

This attribute is only necessary for GCE.", + "example": "" + }, + "secondary_telnyx_ip": { + "type": "string", + "format": "ipv4", + "description": "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.", + "example": "169.254.0.3" + }, + "secondary_cloud_ip": { + "type": "string", + "format": "ipv4", + "description": "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.", + "example": "169.254.0.4" + }, + "secondary_bgp_key": { + "type": "string", + "description": "The authentication key for BGP peer configuration.", + "example": "ge1lONeK9RcA83uuWaw9DvZy" + } + } + } + ] + }, + "VirtualCrossConnectCombined": { + "allOf": [ + { + "$ref": "#/components/schemas/VirtualCrossConnectCreate" + }, + { + "$ref": "#/components/schemas/VirtualCrossConnectPatch" + }, + { + "$ref": "#/components/schemas/RegionOut" + } + ] + }, + "VirtualCrossConnectCreate": { + "allOf": [ + { + "$ref": "#/components/schemas/VirtualCrossConnect" + }, + { + "$ref": "#/components/schemas/RegionIn" + }, + { + "type": "object", + "title": "VirtualCrossConnectCreate", + "required": [ + "network_id", + "region_code", + "cloud_provider", + "cloud_region", + "bgp_asn", + "primary_cloud_account_id" + ] + } + ] + }, + "VirtualCrossConnectPatch": { + "allOf": [ + { + "type": "object", + "title": "VirtualCrossConnectPatch", + "properties": { + "primary_enabled": { + "type": "boolean", + "description": "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.", + "example": true + }, + "primary_routing_announcement": { + "description": "Whether the primary BGP route is being announced.", + "type": "boolean", + "example": false + }, + "primary_cloud_ip": { + "type": "string", + "format": "ipv4", + "description": "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.", + "example": "169.254.0.2" + }, + "secondary_enabled": { + "type": "boolean", + "description": "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.", + "example": true + }, + "secondary_routing_announcement": { + "description": "Whether the secondary BGP route is being announced.", + "type": "boolean", + "example": false + }, + "secondary_cloud_ip": { + "type": "string", + "format": "ipv4", + "description": "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.", + "example": "169.254.0.4" + } + } + } + ] + }, + "VirtualCrossConnectRegion": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "type": "object", + "title": "VirtualCrossConnectRegion", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "virtual_cross_connect_region" + }, + "region_code": { + "description": "The region the interface is deployed to.", + "type": "string", + "example": "ashburn-va" + }, + "cloud_provider": { + "type": "string", + "enum": [ + "aws", + "azure", + "gce" + ], + "description": "The Virtual Private Cloud with which you would like to establish a cross connect.", + "example": "aws" + }, + "cloud_region": { + "type": "string", + "description": "The region where your Virtual Private Cloud hosts are located.", + "example": "us-east-1" + }, + "bandwidth_mbps": { + "type": "array", + "description": "The available throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.", + "items": { + "type": "number" + }, + "example": [ + 50, + 100, + 200, + 500 + ] + } + } + } + ] + }, "WdrReport": { "type": "object", "properties": { @@ -54491,6 +58212,59 @@ "zip": "94025" } }, + "WhatsAppConversationDetailRecord": { + "type": "object", + "properties": { + "recipient_region_code": { + "type": "string", + "description": "CLDR two-letter region-code of recipient", + "example": "US" + }, + "currency": { + "type": "string", + "description": "Telnyx account currency used to describe monetary values, including billing cost", + "example": "USD" + }, + "created_at": { + "type": "string", + "description": "UTC time when the message was created", + "format": "date-time", + "example": "2021-08-06T03:32:01.125Z" + }, + "whatsapp_fee": { + "type": "string", + "description": "Currency amount for WhatsApp cost", + "example": 0.003 + }, + "conversation_id": { + "type": "string", + "description": "Whatsapp Conversation ID", + "example": "f44ae083-c800-4433-baac-b439e5270aa4" + }, + "conversation_origin": { + "type": "string", + "description": "Whatsapp Conversation Origin", + "enum": [ + "business_initiated", + "user_initiated", + "referral_conversion" + ] + }, + "whatsapp_business_account_id": { + "type": "string", + "description": "Whatsapp Business Account ID", + "example": "421452453" + }, + "record_type": { + "type": "string", + "example": "whatsapp-conversation_detail_record", + "default": "whatsapp-conversation_detail_record" + } + }, + "required": [ + "record_type" + ] + }, "WhatsAppDetailRecord": { "type": "object", "properties": { @@ -54586,6 +58360,25 @@ "description": "Currency amount for WhatsApp cost", "example": 0.003 }, + "conversation_id": { + "type": "string", + "description": "Whatsapp Conversation ID", + "example": "f44ae083-c800-4433-baac-b439e5270aa4" + }, + "conversation_origin": { + "type": "string", + "description": "Whatsapp Conversation Origin", + "enum": [ + "business_initiated", + "user_initiated", + "referral_conversion" + ] + }, + "whatsapp_business_account_id": { + "type": "string", + "description": "Whatsapp Business Account ID", + "example": "421452453" + }, "record_type": { "type": "string", "example": "whatsapp_detail_record", @@ -54865,6 +58658,178 @@ "updated_at": "2020-01-01T00:00:00.000000Z" } }, + "WhatsappMessageTemplate": { + "type": "object", + "properties": { + "record_type": { + "type": "string", + "description": "Telnyx record type", + "example": "whatsapp_message_template" + }, + "category": { + "type": "string", + "description": "The category of the message template, The possible values are provided by WhatsApp and are subject to change.", + "example": "APPOINTMENT_UPDATE", + "enum": [ + "ACCOUNT_UPDATE", + "PAYMENT_UPDATE", + "PERSONAL_FINANCE_UPDATE", + "SHIPPING_UPDATE", + "RESERVATION_UPDATE", + "ISSUE_RESOLUTION", + "APPOINTMENT_UPDATE", + "TRANSPORTATION_UPDATE", + "TICKET_UPDATE", + "ALERT_UPDATE", + "AUTO_REPLY" + ] + }, + "components": { + "description": "The components of the message template", + "type": "array", + "items": { + "type": "object", + "properties": { + "type": { + "type": "string", + "example": "text" + }, + "text": { + "type": "string", + "example": "Hello, {{1}}! Your appointment with {{2}} has been updated." + }, + "format": { + "type": "string", + "example": "VIDEO" + } + } + } + }, + "id": { + "type": "string", + "format": "bigint", + "description": "The id of the template on WhatsApp", + "example": "23492349423" + }, + "language": { + "type": "string", + "description": "The language of the message template, The available languages are provided by WhatsApp and are subject to change.", + "example": "en_US", + "enum": [ + "af", + "sq", + "ar", + "az", + "bn", + "bg", + "ca", + "zh_CN", + "zh_HK", + "zh_TW", + "hr", + "cs", + "da", + "nl", + "en", + "en_GB", + "en_US", + "et", + "fil", + "fi", + "fr", + "ka", + "de", + "el", + "gu", + "ha", + "he", + "hi", + "hu", + "id", + "ga", + "it", + "ja", + "kn", + "kk", + "rw_RW", + "ko", + "ky_KG", + "lo", + "lv", + "lt", + "mk", + "ms", + "ml", + "mr", + "nb", + "fa", + "pl", + "pt_BR", + "pt_PT", + "pa", + "ro", + "ru", + "sr", + "sk", + "sl", + "es", + "es_AR", + "es_ES", + "es_MX", + "sw", + "sv", + "ta", + "te", + "th", + "tr", + "uk", + "ur", + "uz", + "vi", + "zu" + ] + }, + "name": { + "example": "sample_happy_hour_announcement", + "description": "This name will act as an identifier grouping similar message templates together, the same name can be used to different languages.", + "type": "string" + }, + "quality_score": { + "type": "object", + "description": "The quality rating shows how messages from your template have been received by your customers in a rolling window of the past 24 hours. The possible values are provided by WhatsApp and are subject to change.", + "properties": { + "score": { + "type": "string", + "example": "UNKNOWN", + "enum": [ + "UNKNOWN", + "HIGH", + "MEDIUM", + "LOW" + ] + } + } + }, + "rejected_reason": { + "example": "NONE", + "type": "string" + }, + "status": { + "example": "APPROVED", + "description": "The current status of the message template, The possible values are provided by WhatsApp and are subject to change.", + "type": "string", + "enum": [ + "APPROVED", + "IN_APPEAL", + "PENDING", + "REJECTED", + "PENDING_DELETION", + "DELETED", + "DISABLED" + ] + } + } + }, "WhatsappPhoneNumber": { "type": "object", "properties": { @@ -54893,7 +58858,8 @@ "type": "string", "enum": [ "pending", - "ready" + "ready", + "disconnected" ], "description": "The configuration status for the phone number in the Telnyx platform" }, @@ -54978,7 +58944,6 @@ }, "WhatsappProfilePhoto": { "type": "object", - "title": "WhatsApp Profile Photo", "properties": { "record_type": { "description": "the record type", @@ -55003,6 +58968,171 @@ } } }, + "WireguardInterface": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "$ref": "#/components/schemas/Interface" + }, + { + "type": "object", + "title": "WireguardInterface", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "wireguard_interface" + }, + "endpoint": { + "type": "string", + "description": "The Telnyx WireGuard peers `Peer.endpoint` value.", + "example": "203.0.113.0:51871", + "readOnly": true + }, + "public_key": { + "type": "string", + "description": "The Telnyx WireGuard peers `Peer.PublicKey`.", + "readOnly": true, + "example": "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=" + } + } + } + ] + }, + "WireguardInterfaceCreate": { + "allOf": [ + { + "$ref": "#/components/schemas/WireguardInterface" + }, + { + "$ref": "#/components/schemas/RegionIn" + }, + { + "type": "object", + "title": "WireguardInterfaceCreate", + "required": [ + "network_id", + "region_code" + ] + } + ] + }, + "WireguardInterfaceRead": { + "allOf": [ + { + "$ref": "#/components/schemas/WireguardInterface" + }, + { + "$ref": "#/components/schemas/RegionOut" + } + ] + }, + "WireguardPeer": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "$ref": "#/components/schemas/WireguardPeerPatch" + }, + { + "type": "object", + "title": "WireguardPeer", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "wireguard_peer" + }, + "last_seen": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when peer sent traffic last time.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + }, + "wireguard_interface_id": { + "description": "The id of the wireguard interface associated with the peer.", + "type": "string", + "format": "uuid", + "example": "6a09cdc3-8948-47f0-aa62-74ac943d6c58" + }, + "private_key": { + "type": "string", + "description": "Your WireGuard `Interface.PrivateKey`.

This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered.", + "example": "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", + "readOnly": true + } + } + } + ] + }, + "WireguardPeerAllowedIP": { + "allOf": [ + { + "$ref": "#/components/schemas/Record" + }, + { + "type": "object", + "title": "WireguardAllowedIP", + "properties": { + "record_type": { + "type": "string", + "description": "Identifies the type of the resource.", + "readOnly": true, + "example": "wireguard_allowed_ip" + }, + "ip_address": { + "type": "string", + "description": "The IP address to add to the Wireguard Interface's AllowedIP list.", + "example": "198.51.100.1" + } + } + } + ] + }, + "WireguardPeerAllowedIPCreate": { + "allOf": [ + { + "$ref": "#/components/schemas/WireguardPeerAllowedIP" + }, + { + "type": "object", + "title": "WireguardPeerAllowedIPCreate", + "required": [ + "ip_address" + ] + } + ] + }, + "WireguardPeerCreate": { + "allOf": [ + { + "$ref": "#/components/schemas/WireguardPeer" + }, + { + "type": "object", + "title": "WireguardPeerCreate", + "required": [ + "wireguard_interface_id" + ] + } + ] + }, + "WireguardPeerPatch": { + "type": "object", + "title": "WireguardPeerPatch", + "properties": { + "public_key": { + "type": "string", + "description": "The WireGuard `PublicKey`.

If you do not provide a Public Key, a new Public and Private key pair will be generated for you.", + "example": "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=" + } + } + }, "WirelessConnectivityLog": { "type": "object", "title": "WirelessConnectivityLog", @@ -55071,6 +59201,18 @@ "readOnly": true, "example": "2018-02-02T22:25:27.521Z" }, + "created_at": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the record was created.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + }, + "last_seen": { + "type": "string", + "description": "ISO 8601 formatted date-time indicating when the last heartbeat to the device was successfully recorded.", + "readOnly": true, + "example": "2018-02-02T22:25:27.521Z" + }, "apn": { "type": "string", "description": "The Access Point Name (APN) identifies the packet data network that a mobile data user wants to communicate with.", @@ -55153,42 +59295,12 @@ } } }, - "access_control_ip_description": { - "type": "string", - "description": "User-supplied freeform textual description field. Maximum length of 150 characters is enforced.", - "example": "Signaling IP for system1" - }, - "access_control_ip_ip_address": { - "type": "string", - "description": "The IP address for which you are saving an access control IP record. Must be a single IPv4 address. Cannot be a range of IP addresses or use CIDR notation.", - "example": "100.101.102.103" - }, - "access_control_ip_ip_address_type": { - "type": "string", - "description": "Deprecated field. This field originally indicated the type of the access control IP. If a value is specified, it must be either `media` or `signaling`. Other values are not allowed. May be left blank.", - "enum": [ - "", - "media", - "signaling" - ] - }, "active": { "type": "boolean", "description": "The active status of the authentication provider", "example": true, "default": true }, - "address_book": { - "type": "boolean", - "description": "Indicates whether or not the address should be considered part of your list of addresses that appear for regular use.", - "example": false, - "default": true - }, - "administrative_area": { - "type": "string", - "description": "The locality of the address. For US addresses, this corresponds to the state of the address.", - "example": "IL" - }, "attempt": { "description": "Webhook delivery attempt details.", "properties": { @@ -55292,16 +59404,6 @@ } ] }, - "borough": { - "type": "string", - "description": "The borough of the address. This field is not used for addresses in the US but is used for some international addresses.", - "example": "Guadalajara" - }, - "business_name": { - "type": "string", - "description": "The business name associated with the address. An address must have either a first last name or a business name.", - "example": "Toy-O'Kon" - }, "callRecordingError": { "type": "object", "title": "Call Recording Error", @@ -55399,16 +59501,6 @@ } } }, - "country_code": { - "type": "string", - "description": "The two-character (ISO 3166-1 alpha-2) country code of the address.", - "example": "US" - }, - "customer_reference": { - "type": "string", - "description": "A customer reference string for customer look ups.", - "example": "MY REF 001" - }, "error": { "properties": { "code": { @@ -55423,16 +59515,6 @@ } } }, - "extended_address": { - "type": "string", - "description": "Additional street address information about the address such as, but not limited to, unit number or apartment number.", - "example": "#504" - }, - "first_name": { - "type": "string", - "description": "The first name associated with the address. An address must have either a first last name or a business name.", - "example": "Alfred" - }, "http": { "description": "HTTP request and response information.", "properties": { @@ -55475,42 +59557,17 @@ "example": "Header-Name: header value" } }, - "last_name": { - "type": "string", - "description": "The last name associated with the address. An address must have either a first last name or a business name.", - "example": "Foster" - }, - "locality": { - "type": "string", - "description": "The locality of the address. For US addresses, this corresponds to the city of the address.", - "example": "Chicago" - }, "name": { "type": "string", "description": "The name associated with the authentication provider.", "example": "Okta" }, - "neighborhood": { - "type": "string", - "description": "The neighborhood of the address. This field is not used for addresses in the US but is used for some international addresses.", - "example": "Ciudad de los deportes" - }, "organization_id": { "type": "string", "format": "uuid", "description": "The id from the Organization the authentication provider belongs to.", "example": "24b4a4bb-c4df-46ad-bbcb-23fc741c5ad7" }, - "phone_number": { - "type": "string", - "description": "The phone number associated with the address.", - "example": "+12125559000" - }, - "postal_code": { - "type": "string", - "description": "The postal code of the address.", - "example": "60654" - }, "settings": { "type": "object", "description": "The settings associated with the authentication provider.", @@ -55559,17 +59616,6 @@ "description": "The short name associated with the authentication provider. This must be unique and URL-friendly, as it's going to be part of the login URL.", "example": "myorg" }, - "street_address": { - "type": "string", - "description": "The primary street address information about the address.", - "example": "311 W Superior Street" - }, - "validate_address": { - "type": "boolean", - "description": "Indicates whether or not the address should be validated for emergency use upon creation or not. This should be left with the default value of `true` unless you have used the `/addresses/actions/validate` endpoint to validate the address separately prior to creation. If an address is not validated for emergency use upon creation and it is not valid, it will not be able to be used for emergency services.", - "example": true, - "default": true - }, "webhook_delivery": { "description": "Record of all attempts to deliver a webhook.", "properties": { diff --git a/pom.xml b/pom.xml index 9001c91e..224c7541 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ telnyx jar telnyx - 3.0.0 + 3.5.0 https://github.com/team-telnyx/telnyx-java/ Telnyx Java SDK @@ -341,13 +341,19 @@ ${junit-version} test + + org.junit.jupiter + junit-jupiter + RELEASE + test + UTF-8 1.6.3 2.35 2.13.0 - 2.14 + 2.13.0 0.2.2 1.3.5 4.13.2 diff --git a/src/main/java/com/telnyx/sdk/JSON.java b/src/main/java/com/telnyx/sdk/JSON.java index 0aad2af5..618fcaff 100644 --- a/src/main/java/com/telnyx/sdk/JSON.java +++ b/src/main/java/com/telnyx/sdk/JSON.java @@ -23,8 +23,8 @@ public JSON() { mapper = new ObjectMapper(); mapper.setSerializationInclusion(JsonInclude.Include.NON_NULL); JsonMapper.builder().configure(MapperFeature.ALLOW_COERCION_OF_SCALARS, false); - mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, true); - mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, true); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.configure(DeserializationFeature.FAIL_ON_INVALID_SUBTYPE, false); mapper.disable(SerializationFeature.WRITE_DATES_AS_TIMESTAMPS); mapper.enable(SerializationFeature.WRITE_ENUMS_USING_TO_STRING); mapper.enable(DeserializationFeature.READ_ENUMS_USING_TO_STRING); diff --git a/src/main/java/com/telnyx/sdk/Pair.java b/src/main/java/com/telnyx/sdk/Pair.java index 166daa21..000da9b2 100644 --- a/src/main/java/com/telnyx/sdk/Pair.java +++ b/src/main/java/com/telnyx/sdk/Pair.java @@ -52,10 +52,6 @@ private boolean isValidString(String arg) { return false; } - if (arg.trim().isEmpty()) { - return false; - } - return true; } } diff --git a/src/main/java/com/telnyx/sdk/RFC3339DateFormat.java b/src/main/java/com/telnyx/sdk/RFC3339DateFormat.java index d7c30a15..9ceae4ae 100644 --- a/src/main/java/com/telnyx/sdk/RFC3339DateFormat.java +++ b/src/main/java/com/telnyx/sdk/RFC3339DateFormat.java @@ -18,6 +18,7 @@ import java.text.FieldPosition; import java.text.ParsePosition; import java.util.Date; +import java.text.DecimalFormat; import java.util.GregorianCalendar; import java.util.TimeZone; @@ -31,6 +32,7 @@ public class RFC3339DateFormat extends DateFormat { public RFC3339DateFormat() { this.calendar = new GregorianCalendar(); + this.numberFormat = new DecimalFormat(); } @Override @@ -50,6 +52,6 @@ public StringBuffer format(Date date, StringBuffer toAppendTo, FieldPosition fie @Override public Object clone() { - return this; + return super.clone(); } } \ No newline at end of file diff --git a/src/main/java/com/telnyx/sdk/ServerConfiguration.java b/src/main/java/com/telnyx/sdk/ServerConfiguration.java index b98b7a12..9102b857 100644 --- a/src/main/java/com/telnyx/sdk/ServerConfiguration.java +++ b/src/main/java/com/telnyx/sdk/ServerConfiguration.java @@ -39,7 +39,7 @@ public String URL(Map variables) { if (variables != null && variables.containsKey(name)) { value = variables.get(name); if (serverVariable.enumValues.size() > 0 && !serverVariable.enumValues.contains(value)) { - throw new RuntimeException("The variable " + name + " in the server URL has invalid value " + value + "."); + throw new IllegalArgumentException("The variable " + name + " in the server URL has invalid value " + value + "."); } } url = url.replaceAll("\\{" + name + "\\}", value); diff --git a/src/main/java/com/telnyx/sdk/api/AuthenticationProvidersApi.java b/src/main/java/com/telnyx/sdk/api/AuthenticationProvidersApi.java index 3dfe2f96..21306159 100644 --- a/src/main/java/com/telnyx/sdk/api/AuthenticationProvidersApi.java +++ b/src/main/java/com/telnyx/sdk/api/AuthenticationProvidersApi.java @@ -9,8 +9,8 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.AuthenticationProviderCreate; -import com.telnyx.sdk.model.AuthenticationProviderResponse; -import com.telnyx.sdk.model.GetAllAuthenticationProvidersResponse; +import com.telnyx.sdk.model.CreateAuthenticationProvider200Response; +import com.telnyx.sdk.model.FindAuthenticationProviders200Response; import com.telnyx.sdk.model.UpdateAuthenticationProviderRequest; import java.util.ArrayList; @@ -52,7 +52,7 @@ public void setApiClient(ApiClient apiClient) { * Creates an authentication provider * Creates an authentication provider. * @param authenticationProviderCreate Parameters that can be defined during authentication provider creation (required) - * @return AuthenticationProviderResponse + * @return CreateAuthenticationProvider200Response * @throws ApiException if fails to make API call * @http.response.details @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) {
422 Bad request -
*/ - public AuthenticationProviderResponse createAuthenticationProvider(AuthenticationProviderCreate authenticationProviderCreate) throws ApiException { + public CreateAuthenticationProvider200Response createAuthenticationProvider(AuthenticationProviderCreate authenticationProviderCreate) throws ApiException { return createAuthenticationProviderWithHttpInfo(authenticationProviderCreate).getData(); } @@ -69,7 +69,7 @@ public AuthenticationProviderResponse createAuthenticationProvider(Authenticatio * Creates an authentication provider * Creates an authentication provider. * @param authenticationProviderCreate Parameters that can be defined during authentication provider creation (required) - * @return ApiResponse<AuthenticationProviderResponse> + * @return ApiResponse<CreateAuthenticationProvider200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -78,7 +78,7 @@ public AuthenticationProviderResponse createAuthenticationProvider(Authenticatio
422 Bad request -
*/ - public ApiResponse createAuthenticationProviderWithHttpInfo(AuthenticationProviderCreate authenticationProviderCreate) throws ApiException { + public ApiResponse createAuthenticationProviderWithHttpInfo(AuthenticationProviderCreate authenticationProviderCreate) throws ApiException { Object localVarPostBody = authenticationProviderCreate; // verify the required parameter 'authenticationProviderCreate' is set @@ -111,7 +111,7 @@ public ApiResponse createAuthenticationProviderW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AuthenticationProvidersApi.createAuthenticationProvider", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -121,7 +121,7 @@ public ApiResponse createAuthenticationProviderW * Deletes an authentication provider * Deletes an existing authentication provider. * @param id authentication provider ID (required) - * @return AuthenticationProviderResponse + * @return CreateAuthenticationProvider200Response * @throws ApiException if fails to make API call * @http.response.details @@ -132,7 +132,7 @@ public ApiResponse createAuthenticationProviderW
422 Bad request -
*/ - public AuthenticationProviderResponse deleteAuthenticationProvider(String id) throws ApiException { + public CreateAuthenticationProvider200Response deleteAuthenticationProvider(String id) throws ApiException { return deleteAuthenticationProviderWithHttpInfo(id).getData(); } @@ -140,7 +140,7 @@ public AuthenticationProviderResponse deleteAuthenticationProvider(String id) th * Deletes an authentication provider * Deletes an existing authentication provider. * @param id authentication provider ID (required) - * @return ApiResponse<AuthenticationProviderResponse> + * @return ApiResponse<CreateAuthenticationProvider200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -151,7 +151,7 @@ public AuthenticationProviderResponse deleteAuthenticationProvider(String id) th
422 Bad request -
*/ - public ApiResponse deleteAuthenticationProviderWithHttpInfo(String id) throws ApiException { + public ApiResponse deleteAuthenticationProviderWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -185,7 +185,7 @@ public ApiResponse deleteAuthenticationProviderW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AuthenticationProvidersApi.deleteAuthenticationProvider", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -197,7 +197,7 @@ public ApiResponse deleteAuthenticationProviderW * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>name</code>: sorts the result by the <code>name</code> field in ascending order. </li> <li> <code>-name</code>: sorts the result by the <code>name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to -created_at) - * @return GetAllAuthenticationProvidersResponse + * @return FindAuthenticationProviders200Response * @throws ApiException if fails to make API call * @http.response.details @@ -208,7 +208,7 @@ public ApiResponse deleteAuthenticationProviderW
404 Resource not found -
*/ - public GetAllAuthenticationProvidersResponse findAuthenticationProviders(Integer pageNumber, Integer pageSize, String sort) throws ApiException { + public FindAuthenticationProviders200Response findAuthenticationProviders(Integer pageNumber, Integer pageSize, String sort) throws ApiException { return findAuthenticationProvidersWithHttpInfo(pageNumber, pageSize, sort).getData(); } @@ -218,7 +218,7 @@ public GetAllAuthenticationProvidersResponse findAuthenticationProviders(Integer * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>name</code>: sorts the result by the <code>name</code> field in ascending order. </li> <li> <code>-name</code>: sorts the result by the <code>name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to -created_at) - * @return ApiResponse<GetAllAuthenticationProvidersResponse> + * @return ApiResponse<FindAuthenticationProviders200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -229,7 +229,7 @@ public GetAllAuthenticationProvidersResponse findAuthenticationProviders(Integer
404 Resource not found -
*/ - public ApiResponse findAuthenticationProvidersWithHttpInfo(Integer pageNumber, Integer pageSize, String sort) throws ApiException { + public ApiResponse findAuthenticationProvidersWithHttpInfo(Integer pageNumber, Integer pageSize, String sort) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -260,7 +260,7 @@ public ApiResponse findAuthenticationProv String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AuthenticationProvidersApi.findAuthenticationProviders", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -270,7 +270,7 @@ public ApiResponse findAuthenticationProv * Retrieve an authentication provider * Retrieves the details of an existing authentication provider. * @param id authentication provider ID (required) - * @return AuthenticationProviderResponse + * @return CreateAuthenticationProvider200Response * @throws ApiException if fails to make API call * @http.response.details @@ -281,7 +281,7 @@ public ApiResponse findAuthenticationProv
422 Bad request -
*/ - public AuthenticationProviderResponse getAuthenticationProvider(String id) throws ApiException { + public CreateAuthenticationProvider200Response getAuthenticationProvider(String id) throws ApiException { return getAuthenticationProviderWithHttpInfo(id).getData(); } @@ -289,7 +289,7 @@ public AuthenticationProviderResponse getAuthenticationProvider(String id) throw * Retrieve an authentication provider * Retrieves the details of an existing authentication provider. * @param id authentication provider ID (required) - * @return ApiResponse<AuthenticationProviderResponse> + * @return ApiResponse<CreateAuthenticationProvider200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -300,7 +300,7 @@ public AuthenticationProviderResponse getAuthenticationProvider(String id) throw
422 Bad request -
*/ - public ApiResponse getAuthenticationProviderWithHttpInfo(String id) throws ApiException { + public ApiResponse getAuthenticationProviderWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -334,7 +334,7 @@ public ApiResponse getAuthenticationProviderWith String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AuthenticationProvidersApi.getAuthenticationProvider", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -345,7 +345,7 @@ public ApiResponse getAuthenticationProviderWith * Updates settings of an existing authentication provider. * @param id Identifies the resource. (required) * @param updateAuthenticationProviderRequest Parameters that can be updated in a authentication provider (required) - * @return AuthenticationProviderResponse + * @return CreateAuthenticationProvider200Response * @throws ApiException if fails to make API call * @http.response.details @@ -356,7 +356,7 @@ public ApiResponse getAuthenticationProviderWith
422 Bad request -
*/ - public AuthenticationProviderResponse updateAuthenticationProvider(String id, UpdateAuthenticationProviderRequest updateAuthenticationProviderRequest) throws ApiException { + public CreateAuthenticationProvider200Response updateAuthenticationProvider(String id, UpdateAuthenticationProviderRequest updateAuthenticationProviderRequest) throws ApiException { return updateAuthenticationProviderWithHttpInfo(id, updateAuthenticationProviderRequest).getData(); } @@ -365,7 +365,7 @@ public AuthenticationProviderResponse updateAuthenticationProvider(String id, Up * Updates settings of an existing authentication provider. * @param id Identifies the resource. (required) * @param updateAuthenticationProviderRequest Parameters that can be updated in a authentication provider (required) - * @return ApiResponse<AuthenticationProviderResponse> + * @return ApiResponse<CreateAuthenticationProvider200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -376,7 +376,7 @@ public AuthenticationProviderResponse updateAuthenticationProvider(String id, Up
422 Bad request -
*/ - public ApiResponse updateAuthenticationProviderWithHttpInfo(String id, UpdateAuthenticationProviderRequest updateAuthenticationProviderRequest) throws ApiException { + public ApiResponse updateAuthenticationProviderWithHttpInfo(String id, UpdateAuthenticationProviderRequest updateAuthenticationProviderRequest) throws ApiException { Object localVarPostBody = updateAuthenticationProviderRequest; // verify the required parameter 'id' is set @@ -415,7 +415,7 @@ public ApiResponse updateAuthenticationProviderW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("AuthenticationProvidersApi.updateAuthenticationProvider", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/BillingApi.java b/src/main/java/com/telnyx/sdk/api/BillingApi.java index 444f92df..120e174a 100644 --- a/src/main/java/com/telnyx/sdk/api/BillingApi.java +++ b/src/main/java/com/telnyx/sdk/api/BillingApi.java @@ -9,7 +9,7 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.UserBalanceResponse; +import com.telnyx.sdk.model.GetUserBalance200Response; import java.util.ArrayList; import java.util.HashMap; @@ -49,7 +49,7 @@ public void setApiClient(ApiClient apiClient) { /** * Retrieve user balance details * - * @return UserBalanceResponse + * @return GetUserBalance200Response * @throws ApiException if fails to make API call * @http.response.details @@ -58,14 +58,14 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public UserBalanceResponse getUserBalance() throws ApiException { + public GetUserBalance200Response getUserBalance() throws ApiException { return getUserBalanceWithHttpInfo().getData(); } /** * Retrieve user balance details * - * @return ApiResponse<UserBalanceResponse> + * @return ApiResponse<GetUserBalance200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -74,7 +74,7 @@ public UserBalanceResponse getUserBalance() throws ApiException {
0 Unexpected error -
*/ - public ApiResponse getUserBalanceWithHttpInfo() throws ApiException { + public ApiResponse getUserBalanceWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -102,7 +102,7 @@ public ApiResponse getUserBalanceWithHttpInfo() throws ApiE String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("BillingApi.getUserBalance", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/BillingGroupsApi.java b/src/main/java/com/telnyx/sdk/api/BillingGroupsApi.java index 16787e62..328baa88 100644 --- a/src/main/java/com/telnyx/sdk/api/BillingGroupsApi.java +++ b/src/main/java/com/telnyx/sdk/api/BillingGroupsApi.java @@ -8,15 +8,12 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreateBillingGroupResponse; -import com.telnyx.sdk.model.DeleteBillingGroupResponse; +import com.telnyx.sdk.model.CreateBillingGroup200Response; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.ListBillingGroupsResponse; +import com.telnyx.sdk.model.ListBillingGroups200Response; import com.telnyx.sdk.model.NewBillingGroup; -import com.telnyx.sdk.model.RetrieveBillingGroupResponse; import java.util.UUID; import com.telnyx.sdk.model.UpdateBillingGroup; -import com.telnyx.sdk.model.UpdateBillingGroupResponse; import java.util.ArrayList; import java.util.HashMap; @@ -57,7 +54,7 @@ public void setApiClient(ApiClient apiClient) { * Create a billing group * * @param newBillingGroup New billing group object (required) - * @return CreateBillingGroupResponse + * @return CreateBillingGroup200Response * @throws ApiException if fails to make API call * @http.response.details @@ -66,7 +63,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public CreateBillingGroupResponse createBillingGroup(NewBillingGroup newBillingGroup) throws ApiException { + public CreateBillingGroup200Response createBillingGroup(NewBillingGroup newBillingGroup) throws ApiException { return createBillingGroupWithHttpInfo(newBillingGroup).getData(); } @@ -74,7 +71,7 @@ public CreateBillingGroupResponse createBillingGroup(NewBillingGroup newBillingG * Create a billing group * * @param newBillingGroup New billing group object (required) - * @return ApiResponse<CreateBillingGroupResponse> + * @return ApiResponse<CreateBillingGroup200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -83,7 +80,7 @@ public CreateBillingGroupResponse createBillingGroup(NewBillingGroup newBillingG
0 Unexpected error -
*/ - public ApiResponse createBillingGroupWithHttpInfo(NewBillingGroup newBillingGroup) throws ApiException { + public ApiResponse createBillingGroupWithHttpInfo(NewBillingGroup newBillingGroup) throws ApiException { Object localVarPostBody = newBillingGroup; // verify the required parameter 'newBillingGroup' is set @@ -116,7 +113,7 @@ public ApiResponse createBillingGroupWithHttpInfo(Ne String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("BillingGroupsApi.createBillingGroup", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -126,7 +123,7 @@ public ApiResponse createBillingGroupWithHttpInfo(Ne * Delete a billing group * * @param id The id of the billing group (required) - * @return DeleteBillingGroupResponse + * @return CreateBillingGroup200Response * @throws ApiException if fails to make API call * @http.response.details @@ -135,7 +132,7 @@ public ApiResponse createBillingGroupWithHttpInfo(Ne
0 Unexpected error -
*/ - public DeleteBillingGroupResponse deleteBillingGroup(UUID id) throws ApiException { + public CreateBillingGroup200Response deleteBillingGroup(UUID id) throws ApiException { return deleteBillingGroupWithHttpInfo(id).getData(); } @@ -143,7 +140,7 @@ public DeleteBillingGroupResponse deleteBillingGroup(UUID id) throws ApiExceptio * Delete a billing group * * @param id The id of the billing group (required) - * @return ApiResponse<DeleteBillingGroupResponse> + * @return ApiResponse<CreateBillingGroup200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -152,7 +149,7 @@ public DeleteBillingGroupResponse deleteBillingGroup(UUID id) throws ApiExceptio
0 Unexpected error -
*/ - public ApiResponse deleteBillingGroupWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteBillingGroupWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -186,7 +183,7 @@ public ApiResponse deleteBillingGroupWithHttpInfo(UU String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("BillingGroupsApi.deleteBillingGroup", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -197,7 +194,7 @@ public ApiResponse deleteBillingGroupWithHttpInfo(UU * * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListBillingGroupsResponse + * @return ListBillingGroups200Response * @throws ApiException if fails to make API call * @http.response.details @@ -206,7 +203,7 @@ public ApiResponse deleteBillingGroupWithHttpInfo(UU
0 Unexpected error -
*/ - public ListBillingGroupsResponse listBillingGroups(Integer pageNumber, Integer pageSize) throws ApiException { + public ListBillingGroups200Response listBillingGroups(Integer pageNumber, Integer pageSize) throws ApiException { return listBillingGroupsWithHttpInfo(pageNumber, pageSize).getData(); } @@ -215,7 +212,7 @@ public ListBillingGroupsResponse listBillingGroups(Integer pageNumber, Integer p * * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListBillingGroupsResponse> + * @return ApiResponse<ListBillingGroups200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -224,7 +221,7 @@ public ListBillingGroupsResponse listBillingGroups(Integer pageNumber, Integer p
0 Unexpected error -
*/ - public ApiResponse listBillingGroupsWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listBillingGroupsWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -254,7 +251,7 @@ public ApiResponse listBillingGroupsWithHttpInfo(Inte String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("BillingGroupsApi.listBillingGroups", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -264,7 +261,7 @@ public ApiResponse listBillingGroupsWithHttpInfo(Inte * Retrieve a billing group * * @param id The id of the billing group (required) - * @return RetrieveBillingGroupResponse + * @return CreateBillingGroup200Response * @throws ApiException if fails to make API call * @http.response.details @@ -273,7 +270,7 @@ public ApiResponse listBillingGroupsWithHttpInfo(Inte
0 Unexpected error -
*/ - public RetrieveBillingGroupResponse retrieveBillingGroup(UUID id) throws ApiException { + public CreateBillingGroup200Response retrieveBillingGroup(UUID id) throws ApiException { return retrieveBillingGroupWithHttpInfo(id).getData(); } @@ -281,7 +278,7 @@ public RetrieveBillingGroupResponse retrieveBillingGroup(UUID id) throws ApiExce * Retrieve a billing group * * @param id The id of the billing group (required) - * @return ApiResponse<RetrieveBillingGroupResponse> + * @return ApiResponse<CreateBillingGroup200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -290,7 +287,7 @@ public RetrieveBillingGroupResponse retrieveBillingGroup(UUID id) throws ApiExce
0 Unexpected error -
*/ - public ApiResponse retrieveBillingGroupWithHttpInfo(UUID id) throws ApiException { + public ApiResponse retrieveBillingGroupWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -324,7 +321,7 @@ public ApiResponse retrieveBillingGroupWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("BillingGroupsApi.retrieveBillingGroup", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -335,7 +332,7 @@ public ApiResponse retrieveBillingGroupWithHttpInf * * @param id The id of the billing group (required) * @param updateBillingGroup Update billing group object (required) - * @return UpdateBillingGroupResponse + * @return CreateBillingGroup200Response * @throws ApiException if fails to make API call * @http.response.details @@ -344,7 +341,7 @@ public ApiResponse retrieveBillingGroupWithHttpInf
0 Unexpected error -
*/ - public UpdateBillingGroupResponse updateBillingGroup(UUID id, UpdateBillingGroup updateBillingGroup) throws ApiException { + public CreateBillingGroup200Response updateBillingGroup(UUID id, UpdateBillingGroup updateBillingGroup) throws ApiException { return updateBillingGroupWithHttpInfo(id, updateBillingGroup).getData(); } @@ -353,7 +350,7 @@ public UpdateBillingGroupResponse updateBillingGroup(UUID id, UpdateBillingGroup * * @param id The id of the billing group (required) * @param updateBillingGroup Update billing group object (required) - * @return ApiResponse<UpdateBillingGroupResponse> + * @return ApiResponse<CreateBillingGroup200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -362,7 +359,7 @@ public UpdateBillingGroupResponse updateBillingGroup(UUID id, UpdateBillingGroup
0 Unexpected error -
*/ - public ApiResponse updateBillingGroupWithHttpInfo(UUID id, UpdateBillingGroup updateBillingGroup) throws ApiException { + public ApiResponse updateBillingGroupWithHttpInfo(UUID id, UpdateBillingGroup updateBillingGroup) throws ApiException { Object localVarPostBody = updateBillingGroup; // verify the required parameter 'id' is set @@ -401,7 +398,7 @@ public ApiResponse updateBillingGroupWithHttpInfo(UU String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("BillingGroupsApi.updateBillingGroup", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/CallCommandsApi.java b/src/main/java/com/telnyx/sdk/api/CallCommandsApi.java index 82115f0f..7cc1c084 100644 --- a/src/main/java/com/telnyx/sdk/api/CallCommandsApi.java +++ b/src/main/java/com/telnyx/sdk/api/CallCommandsApi.java @@ -15,6 +15,7 @@ import com.telnyx.sdk.model.ClientStateUpdateRequest; import com.telnyx.sdk.model.EnqueueRequest; import com.telnyx.sdk.model.Errors; +import com.telnyx.sdk.model.GatherRequest; import com.telnyx.sdk.model.GatherUsingAudioRequest; import com.telnyx.sdk.model.GatherUsingSpeakRequest; import com.telnyx.sdk.model.HangupRequest; @@ -76,7 +77,7 @@ public void setApiClient(ApiClient apiClient) { /** * Answer call - * Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call. **Expected Webhooks:** - `call.answered` - `streaming.started` and `streaming.stopped` if `stream_url` was set + * Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call. **Expected Webhooks:** - `call.answered` - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set * @param callControlId Unique identifier and token for controlling the call (required) * @param answerRequest Answer call request (required) * @return CallControlCommandResponse @@ -94,7 +95,7 @@ public CallControlCommandResponse callAnswer(String callControlId, AnswerRequest /** * Answer call - * Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call. **Expected Webhooks:** - `call.answered` - `streaming.started` and `streaming.stopped` if `stream_url` was set + * Answer an incoming call. You must issue this command before executing subsequent commands on an incoming call. **Expected Webhooks:** - `call.answered` - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set * @param callControlId Unique identifier and token for controlling the call (required) * @param answerRequest Answer call request (required) * @return ApiResponse<CallControlCommandResponse> @@ -230,7 +231,7 @@ public ApiResponse callBridgeWithHttpInfo(String cal } /** * Dial - * Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks. **Expected Webhooks:** - `call.initiated` - `call.answered` or `call.hangup` - `call.machine.detection.ended` if `answering_machine_detection` was requested - `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words` - `streaming.started` and `streaming.stopped` if `stream_url` was set + * Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks. **Expected Webhooks:** - `call.initiated` - `call.answered` or `call.hangup` - `call.machine.detection.ended` if `answering_machine_detection` was requested - `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end of machine greeting - `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and a beep was detected - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set * @param callRequest Call request (required) * @return RetrieveCallStatusResponse * @throws ApiException if fails to make API call @@ -247,7 +248,7 @@ public RetrieveCallStatusResponse callDial(CallRequest callRequest) throws ApiEx /** * Dial - * Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks. **Expected Webhooks:** - `call.initiated` - `call.answered` or `call.hangup` - `call.machine.detection.ended` if `answering_machine_detection` was requested - `call.machine.greeting.ended` if `answering_machine_detection` was set to `detect_beep`, `greeting_end` or `detect_words` - `streaming.started` and `streaming.stopped` if `stream_url` was set + * Dial a number or SIP URI from a given connection. A successful response will include a `call_leg_id` which can be used to correlate the command with subsequent webhooks. **Expected Webhooks:** - `call.initiated` - `call.answered` or `call.hangup` - `call.machine.detection.ended` if `answering_machine_detection` was requested - `call.machine.greeting.ended` if `answering_machine_detection` was requested to detect the end of machine greeting - `call.machine.premium.detection.ended` if `answering_machine_detection=premium` was requested - `call.machine.premium.greeting.ended` if `answering_machine_detection=premium` was requested and a beep was detected - `streaming.started`, `streaming.stopped` or `streaming.failed` if `stream_url` was set * @param callRequest Call request (required) * @return ApiResponse<RetrieveCallStatusResponse> * @throws ApiException if fails to make API call @@ -528,6 +529,83 @@ public ApiResponse callForkStopWithHttpInfo(String c localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * Gather + * Gather DTMF signals to build interactive menus. You can pass a list of valid digits. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer) command must be issued before the `gather` command. **Expected Webhooks:** - `call.dtmf.received` (you may receive many of these webhooks) - `call.gather.ended` + * @param callControlId Unique identifier and token for controlling the call (required) + * @param gatherRequest Gather (required) + * @return CallControlCommandResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response upon making a call control command. -
0 Unexpected error -
+ */ + public CallControlCommandResponse callGather(String callControlId, GatherRequest gatherRequest) throws ApiException { + return callGatherWithHttpInfo(callControlId, gatherRequest).getData(); + } + + /** + * Gather + * Gather DTMF signals to build interactive menus. You can pass a list of valid digits. The [Answer](/docs/api/v2/call-control/Call-Commands#CallControlAnswer) command must be issued before the `gather` command. **Expected Webhooks:** - `call.dtmf.received` (you may receive many of these webhooks) - `call.gather.ended` + * @param callControlId Unique identifier and token for controlling the call (required) + * @param gatherRequest Gather (required) + * @return ApiResponse<CallControlCommandResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response upon making a call control command. -
0 Unexpected error -
+ */ + public ApiResponse callGatherWithHttpInfo(String callControlId, GatherRequest gatherRequest) throws ApiException { + Object localVarPostBody = gatherRequest; + + // verify the required parameter 'callControlId' is set + if (callControlId == null) { + throw new ApiException(400, "Missing the required parameter 'callControlId' when calling callGather"); + } + + // verify the required parameter 'gatherRequest' is set + if (gatherRequest == null) { + throw new ApiException(400, "Missing the required parameter 'gatherRequest' when calling callGather"); + } + + // create path and map variables + String localVarPath = "/calls/{call_control_id}/actions/gather" + .replaceAll("\\{" + "call_control_id" + "\\}", apiClient.escapeString(callControlId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("CallCommandsApi.callGather", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Gather stop * Stop current gather. **Expected Webhooks:** - `call.gather.ended` @@ -1606,83 +1684,6 @@ public ApiResponse callSpeakWithHttpInfo(String call localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } - /** - * Streaming start - * Start streaming the media from a call to a specific WebSocket address in near-realtime. Audio will be delivered as base64-encoded RTP packets, wrapped in JSON payloads. **Expected Webhooks:** - `streaming.started` - `streaming.stopped` **WebSocket events** When the WebSocket connection is established, the following event is being sent over it: ``` { \"event\": \"connected\", \"version\": \"1.0.0\" } ``` And when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream: ``` { \"event\": \"start\", \"sequence_number\": \"1\", \"start\": { \"user_id\": \"3E6F995F-85F7-4705-9741-53B116D28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\", \"media_format\": { \"encoding\": \"audio/x-mulaw\", \"sample_rate\": 8000, \"channels\": 1 } }, \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" } ``` The start event is followed by the following media events that contain base64-encoded RTP packets as their payloads: ``` { \"event\": \"media\", \"sequence_number\": \"4\", \"media\": { \"track\": \"inbound/outbound\", \"chunk\": \"2\", \"timestamp\": \"5\", \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\" }, \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" } ``` Please note that the order of events is not guaranteed and the chunk number can be used to reorder the events. When the call ends, the stop event over WebSockets connection is sent: ``` { \"event\": \"stop\", \"sequence_number\": \"5\", \"stop\": { \"user_id\": \"3E6F995F-85F7-4705-9741-53B116D28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\" }, \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" } ``` - * @param callControlId Unique identifier and token for controlling the call (required) - * @param startStreamingRequest Start streaming media request (required) - * @return CallControlCommandResponse - * @throws ApiException if fails to make API call - * @http.response.details - - - - -
Status Code Description Response Headers
200 Successful response upon making a call control command. -
0 Unexpected error -
- */ - public CallControlCommandResponse callStreamingStart(String callControlId, StartStreamingRequest startStreamingRequest) throws ApiException { - return callStreamingStartWithHttpInfo(callControlId, startStreamingRequest).getData(); - } - - /** - * Streaming start - * Start streaming the media from a call to a specific WebSocket address in near-realtime. Audio will be delivered as base64-encoded RTP packets, wrapped in JSON payloads. **Expected Webhooks:** - `streaming.started` - `streaming.stopped` **WebSocket events** When the WebSocket connection is established, the following event is being sent over it: ``` { \"event\": \"connected\", \"version\": \"1.0.0\" } ``` And when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream: ``` { \"event\": \"start\", \"sequence_number\": \"1\", \"start\": { \"user_id\": \"3E6F995F-85F7-4705-9741-53B116D28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\", \"media_format\": { \"encoding\": \"audio/x-mulaw\", \"sample_rate\": 8000, \"channels\": 1 } }, \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" } ``` The start event is followed by the following media events that contain base64-encoded RTP packets as their payloads: ``` { \"event\": \"media\", \"sequence_number\": \"4\", \"media\": { \"track\": \"inbound/outbound\", \"chunk\": \"2\", \"timestamp\": \"5\", \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\" }, \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" } ``` Please note that the order of events is not guaranteed and the chunk number can be used to reorder the events. When the call ends, the stop event over WebSockets connection is sent: ``` { \"event\": \"stop\", \"sequence_number\": \"5\", \"stop\": { \"user_id\": \"3E6F995F-85F7-4705-9741-53B116D28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\" }, \"stream_id\": \"32DE0DEA-53CB-4B21-89A4-9E1819C043BC\" } ``` - * @param callControlId Unique identifier and token for controlling the call (required) - * @param startStreamingRequest Start streaming media request (required) - * @return ApiResponse<CallControlCommandResponse> - * @throws ApiException if fails to make API call - * @http.response.details - - - - -
Status Code Description Response Headers
200 Successful response upon making a call control command. -
0 Unexpected error -
- */ - public ApiResponse callStreamingStartWithHttpInfo(String callControlId, StartStreamingRequest startStreamingRequest) throws ApiException { - Object localVarPostBody = startStreamingRequest; - - // verify the required parameter 'callControlId' is set - if (callControlId == null) { - throw new ApiException(400, "Missing the required parameter 'callControlId' when calling callStreamingStart"); - } - - // verify the required parameter 'startStreamingRequest' is set - if (startStreamingRequest == null) { - throw new ApiException(400, "Missing the required parameter 'startStreamingRequest' when calling callStreamingStart"); - } - - // create path and map variables - String localVarPath = "/calls/{call_control_id}/actions/streaming_start" - .replaceAll("\\{" + "call_control_id" + "\\}", apiClient.escapeString(callControlId.toString())); - - // query params - List localVarQueryParams = new ArrayList(); - Map localVarHeaderParams = new HashMap(); - Map localVarCookieParams = new HashMap(); - Map localVarFormParams = new HashMap(); - - - - - - final String[] localVarAccepts = { - "application/json" - }; - final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); - - final String[] localVarContentTypes = { - "application/json" - }; - final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); - - String[] localVarAuthNames = new String[] { "bearerAuth" }; - - GenericType localVarReturnType = new GenericType() {}; - - return apiClient.invokeAPI("CallCommandsApi.callStreamingStart", localVarPath, "POST", localVarQueryParams, localVarPostBody, - localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, - localVarAuthNames, localVarReturnType, false); - } /** * Streaming stop * Stop streaming a call to a WebSocket. **Expected Webhooks:** - `streaming.stopped` @@ -1991,6 +1992,83 @@ public ApiResponse callTransferWithHttpInfo(String c localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * Streaming start + * Start streaming the media from a call to a specific WebSocket address or Dialogflow connection in near-realtime. Audio will be delivered as base64-encoded RTP payload (raw audio), wrapped in JSON payloads. **Example: Starting a stream to a Websocket address** The `stream_url` param is mandatory. ``` curl -X POST \\ --header \"Content-Type: application/json\" \\ --header \"Accept: application/json\" \\ --header \"Authorization: Bearer YOUR_API_KEY\" \\ --data '{ \"stream_url\": \"wss://www.example.com/websocket\",\\ \"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\",\\ \"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\" \\ }' \\ https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start ``` **Example: Starting a stream to a Dialogflow connection** Enable the Dialogflow integration by sending `\"enable_dialogflow\": true` in the request. You need to have a Dialogflow connection associated with your Call Control application first, [click here for instructions](https://developers.telnyx.com/docs/v2/call-control/tutorials/dialogflow-es). ``` curl -X POST \\ --header \"Content-Type: application/json\" \\ --header \"Accept: application/json\" \\ --header \"Authorization: Bearer YOUR_API_KEY\" \\ --data '{ \"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\", \\ \"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\", \\ \"enable_dialogflow\": true \\ }' \\ https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start ``` **Expected Webhooks:** - `streaming.started` - `streaming.stopped` - `streaming.failed` **WebSocket events** When the WebSocket connection is established, the following event is being sent over it: ``` { \"event\": \"connected\", \"version\": \"1.0.0\" } ``` And when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream: ``` { \"event\": \"start\", \"sequence_number\": \"1\", \"start\": { \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\", \"client_state\": \"aGF2ZSBhIG5pY2UgZGF5ID1d\", \"media_format\": { \"encoding\": \"audio/x-mulaw\", \"sample_rate\": 8000, \"channels\": 1 } }, \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" } ``` The start event is followed by the following media events that contain base64-encoded RTP payload (raw audio, no RTP headers) (: ``` { \"event\": \"media\", \"sequence_number\": \"4\", \"media\": { \"track\": \"inbound/outbound\", \"chunk\": \"2\", \"timestamp\": \"5\", \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\" }, \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" } ``` Please note that the order of events is not guaranteed and the chunk number can be used to reorder the events. When the call ends, the stop event over WebSockets connection is sent: ``` { \"event\": \"stop\", \"sequence_number\": \"5\", \"stop\": { \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\" }, \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" } ``` + * @param callControlId Unique identifier and token for controlling the call (required) + * @param startStreamingRequest Start streaming media request (required) + * @return CallControlCommandResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response upon making a call control command. -
0 Unexpected error -
+ */ + public CallControlCommandResponse callsCallControlIdActionsStreamingStartPost(String callControlId, StartStreamingRequest startStreamingRequest) throws ApiException { + return callsCallControlIdActionsStreamingStartPostWithHttpInfo(callControlId, startStreamingRequest).getData(); + } + + /** + * Streaming start + * Start streaming the media from a call to a specific WebSocket address or Dialogflow connection in near-realtime. Audio will be delivered as base64-encoded RTP payload (raw audio), wrapped in JSON payloads. **Example: Starting a stream to a Websocket address** The `stream_url` param is mandatory. ``` curl -X POST \\ --header \"Content-Type: application/json\" \\ --header \"Accept: application/json\" \\ --header \"Authorization: Bearer YOUR_API_KEY\" \\ --data '{ \"stream_url\": \"wss://www.example.com/websocket\",\\ \"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\",\\ \"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\" \\ }' \\ https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start ``` **Example: Starting a stream to a Dialogflow connection** Enable the Dialogflow integration by sending `\"enable_dialogflow\": true` in the request. You need to have a Dialogflow connection associated with your Call Control application first, [click here for instructions](https://developers.telnyx.com/docs/v2/call-control/tutorials/dialogflow-es). ``` curl -X POST \\ --header \"Content-Type: application/json\" \\ --header \"Accept: application/json\" \\ --header \"Authorization: Bearer YOUR_API_KEY\" \\ --data '{ \"client_state\":\"aGF2ZSBhIG5pY2UgZGF5ID1d\", \\ \"command_id\":\"891510ac-f3e4-11e8-af5b-de00688a4901\", \\ \"enable_dialogflow\": true \\ }' \\ https://api.telnyx.com/v2/calls/{call_control_id}/actions/streaming_start ``` **Expected Webhooks:** - `streaming.started` - `streaming.stopped` - `streaming.failed` **WebSocket events** When the WebSocket connection is established, the following event is being sent over it: ``` { \"event\": \"connected\", \"version\": \"1.0.0\" } ``` And when the call is started, an event which contains information about the encoding and `stream_id` that identifies a particular stream: ``` { \"event\": \"start\", \"sequence_number\": \"1\", \"start\": { \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\", \"client_state\": \"aGF2ZSBhIG5pY2UgZGF5ID1d\", \"media_format\": { \"encoding\": \"audio/x-mulaw\", \"sample_rate\": 8000, \"channels\": 1 } }, \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" } ``` The start event is followed by the following media events that contain base64-encoded RTP payload (raw audio, no RTP headers) (: ``` { \"event\": \"media\", \"sequence_number\": \"4\", \"media\": { \"track\": \"inbound/outbound\", \"chunk\": \"2\", \"timestamp\": \"5\", \"payload\": \"no+JhoaJjpzSHxAKBgYJD...IsSbjomGhoqQn1Ic\" }, \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" } ``` Please note that the order of events is not guaranteed and the chunk number can be used to reorder the events. When the call ends, the stop event over WebSockets connection is sent: ``` { \"event\": \"stop\", \"sequence_number\": \"5\", \"stop\": { \"user_id\": \"3e6f995f-85f7-4705-9741-53b116d28237\", \"call_control_id\": \"v2:T02llQxIyaRkhfRKxgAP8nY511EhFLizdvdUKJiSw8d6A9BborherQ\" }, \"stream_id\": \"32de0dea-53cb-4b21-89a4-9e1819c043bc\" } ``` + * @param callControlId Unique identifier and token for controlling the call (required) + * @param startStreamingRequest Start streaming media request (required) + * @return ApiResponse<CallControlCommandResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response upon making a call control command. -
0 Unexpected error -
+ */ + public ApiResponse callsCallControlIdActionsStreamingStartPostWithHttpInfo(String callControlId, StartStreamingRequest startStreamingRequest) throws ApiException { + Object localVarPostBody = startStreamingRequest; + + // verify the required parameter 'callControlId' is set + if (callControlId == null) { + throw new ApiException(400, "Missing the required parameter 'callControlId' when calling callsCallControlIdActionsStreamingStartPost"); + } + + // verify the required parameter 'startStreamingRequest' is set + if (startStreamingRequest == null) { + throw new ApiException(400, "Missing the required parameter 'startStreamingRequest' when calling callsCallControlIdActionsStreamingStartPost"); + } + + // create path and map variables + String localVarPath = "/calls/{call_control_id}/actions/streaming_start" + .replaceAll("\\{" + "call_control_id" + "\\}", apiClient.escapeString(callControlId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("CallCommandsApi.callsCallControlIdActionsStreamingStartPost", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Update client state * Updates client state diff --git a/src/main/java/com/telnyx/sdk/api/CallControlApplicationsApi.java b/src/main/java/com/telnyx/sdk/api/CallControlApplicationsApi.java index 7a64f0ab..e3e62a06 100644 --- a/src/main/java/com/telnyx/sdk/api/CallControlApplicationsApi.java +++ b/src/main/java/com/telnyx/sdk/api/CallControlApplicationsApi.java @@ -127,7 +127,7 @@ public ApiResponse createCallControlApplicationW - +
Status Code Description Response Headers
200 Successful response with details about a call control application. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
@@ -146,7 +146,7 @@ public CallControlApplicationResponse deleteCallControlApplication(String id) th - +
Status Code Description Response Headers
200 Successful response with details about a call control application. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
@@ -192,7 +192,7 @@ public ApiResponse deleteCallControlApplicationW localVarAuthNames, localVarReturnType, false); } -private ApiResponse listCallControlApplicationsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterApplicationNameContains, String filterOutboundOutboundVoiceProfileId, String sort) throws ApiException { +private ApiResponse listCallControlApplicationsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterApplicationNameContains, String filterOutboundVoiceProfileId, String sort) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -207,7 +207,7 @@ private ApiResponse listCallControlApplicat localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[application_name][contains]", filterApplicationNameContains)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound.outbound_voice_profile_id]", filterOutboundOutboundVoiceProfileId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound_voice_profile_id]", filterOutboundVoiceProfileId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); @@ -236,7 +236,7 @@ public class APIlistCallControlApplicationsRequest { private Integer pageNumber; private Integer pageSize; private String filterApplicationNameContains; - private String filterOutboundOutboundVoiceProfileId; + private String filterOutboundVoiceProfileId; private String sort; private APIlistCallControlApplicationsRequest() { @@ -273,12 +273,12 @@ public APIlistCallControlApplicationsRequest filterApplicationNameContains(Strin } /** - * Set filterOutboundOutboundVoiceProfileId - * @param filterOutboundOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) + * Set filterOutboundVoiceProfileId + * @param filterOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) * @return APIlistCallControlApplicationsRequest */ - public APIlistCallControlApplicationsRequest filterOutboundOutboundVoiceProfileId(String filterOutboundOutboundVoiceProfileId) { - this.filterOutboundOutboundVoiceProfileId = filterOutboundOutboundVoiceProfileId; + public APIlistCallControlApplicationsRequest filterOutboundVoiceProfileId(String filterOutboundVoiceProfileId) { + this.filterOutboundVoiceProfileId = filterOutboundVoiceProfileId; return this; } @@ -301,7 +301,7 @@ public APIlistCallControlApplicationsRequest sort(String sort) { Status Code Description Response Headers 200 Successful response with a list of call control applications. - 400 Bad request - - 401 Unauthorized - + 401 Unauthorized response. Happens when the current user is not a manager account. - 404 Resource not found - @@ -320,13 +320,13 @@ public ListCallControlApplicationsResponse execute() throws ApiException { Status Code Description Response Headers 200 Successful response with a list of call control applications. - 400 Bad request - - 401 Unauthorized - + 401 Unauthorized response. Happens when the current user is not a manager account. - 404 Resource not found - */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listCallControlApplicationsWithHttpInfo(pageNumber, pageSize, filterApplicationNameContains, filterOutboundOutboundVoiceProfileId, sort); + return listCallControlApplicationsWithHttpInfo(pageNumber, pageSize, filterApplicationNameContains, filterOutboundVoiceProfileId, sort); } } @@ -351,7 +351,7 @@ public APIlistCallControlApplicationsRequest listCallControlApplications() throw - +
Status Code Description Response Headers
200 Successful response with details about a call control application. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
@@ -370,7 +370,7 @@ public CallControlApplicationResponse retrieveCallControlApplication(String id) - +
Status Code Description Response Headers
200 Successful response with details about a call control application. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
@@ -426,7 +426,7 @@ public ApiResponse retrieveCallControlApplicatio - +
Status Code Description Response Headers
200 Successful response with details about a call control application. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
@@ -446,7 +446,7 @@ public CallControlApplicationResponse updateCallControlApplication(String id, Up - +
Status Code Description Response Headers
200 Successful response with details about a call control application. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
diff --git a/src/main/java/com/telnyx/sdk/api/CallRecordingsApi.java b/src/main/java/com/telnyx/sdk/api/CallRecordingsApi.java index 82a06a0c..4a4624b0 100644 --- a/src/main/java/com/telnyx/sdk/api/CallRecordingsApi.java +++ b/src/main/java/com/telnyx/sdk/api/CallRecordingsApi.java @@ -50,7 +50,7 @@ public void setApiClient(ApiClient apiClient) { /** * Create custom storage credentials * Creates custom storage credentials configuration. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @param gcSConfiguration Creates new credentials resource for given connection_id. (required) * @return CredentialsResponse * @throws ApiException if fails to make API call @@ -68,7 +68,7 @@ public CredentialsResponse createCustomStorageCredentials(String connectionId, G /** * Create custom storage credentials * Creates custom storage credentials configuration. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @param gcSConfiguration Creates new credentials resource for given connection_id. (required) * @return ApiResponse<CredentialsResponse> * @throws ApiException if fails to make API call @@ -127,7 +127,7 @@ public ApiResponse createCustomStorageCredentialsWithHttpIn /** * Delete stored credentials * Deletes a stored custom credentials configuration. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @throws ApiException if fails to make API call * @http.response.details @@ -143,7 +143,7 @@ public void deleteCustomStorageCredentials(String connectionId) throws ApiExcept /** * Delete stored credentials * Deletes a stored custom credentials configuration. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details @@ -194,7 +194,7 @@ public ApiResponse deleteCustomStorageCredentialsWithHttpInfo(String conne /** * Retrieve stored credentials * Returns the information about custom storage credentials. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @return CredentialsResponse * @throws ApiException if fails to make API call * @http.response.details @@ -211,7 +211,7 @@ public CredentialsResponse getCustomStorageCredentials(String connectionId) thro /** * Retrieve stored credentials * Returns the information about custom storage credentials. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @return ApiResponse<CredentialsResponse> * @throws ApiException if fails to make API call * @http.response.details @@ -264,7 +264,7 @@ public ApiResponse getCustomStorageCredentialsWithHttpInfo( /** * Update stored credentials * Updates a stored custom credentials configuration. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @param gcSConfiguration Creates new credentials resource for given connection_id. (required) * @return CredentialsResponse * @throws ApiException if fails to make API call @@ -282,7 +282,7 @@ public CredentialsResponse updateCustomStorageCredentials(String connectionId, G /** * Update stored credentials * Updates a stored custom credentials configuration. - * @param connectionId Uniquely identifies a Telnyx application (Call Control, TeXML) or Sip connection resource. (required) + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) * @param gcSConfiguration Creates new credentials resource for given connection_id. (required) * @return ApiResponse<CredentialsResponse> * @throws ApiException if fails to make API call diff --git a/src/main/java/com/telnyx/sdk/api/ChannelZonesApi.java b/src/main/java/com/telnyx/sdk/api/ChannelZonesApi.java index 5ed89f94..d82fff5e 100644 --- a/src/main/java/com/telnyx/sdk/api/ChannelZonesApi.java +++ b/src/main/java/com/telnyx/sdk/api/ChannelZonesApi.java @@ -8,13 +8,13 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.AssignPhoneNumberRequest; import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.GcbChannelZone; import com.telnyx.sdk.model.GcbPhoneNumber; -import com.telnyx.sdk.model.GetGcbChannelZonesRequestResponse; -import com.telnyx.sdk.model.GetGcbPhoneNumbersRequestResponse; -import com.telnyx.sdk.model.ListChannelZonesByPhoneNumber; -import com.telnyx.sdk.model.UpdateChannelZone; +import com.telnyx.sdk.model.GetChannelZones200Response; +import com.telnyx.sdk.model.GetPhoneNumbers200Response; +import com.telnyx.sdk.model.PatchGroupRequest; import java.util.ArrayList; import java.util.HashMap; @@ -55,7 +55,7 @@ public void setApiClient(ApiClient apiClient) { * Assign a phone number to a channel zone * You should own the phone number being assigned to the channel zone. Remember that you should reserve channels in this channel zone, otherwise you won't be able to receive incoming calls. * @param channelZoneId Channel zone identifier (required) - * @param body (required) + * @param body Phone number to assign to the channel zone. The phone number should be in E.164 format. (required) * @return GcbPhoneNumber * @throws ApiException if fails to make API call * @http.response.details @@ -65,7 +65,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public GcbPhoneNumber assignPhoneNumber(String channelZoneId, ListChannelZonesByPhoneNumber body) throws ApiException { + public GcbPhoneNumber assignPhoneNumber(String channelZoneId, AssignPhoneNumberRequest body) throws ApiException { return assignPhoneNumberWithHttpInfo(channelZoneId, body).getData(); } @@ -73,7 +73,7 @@ public GcbPhoneNumber assignPhoneNumber(String channelZoneId, ListChannelZonesBy * Assign a phone number to a channel zone * You should own the phone number being assigned to the channel zone. Remember that you should reserve channels in this channel zone, otherwise you won't be able to receive incoming calls. * @param channelZoneId Channel zone identifier (required) - * @param body (required) + * @param body Phone number to assign to the channel zone. The phone number should be in E.164 format. (required) * @return ApiResponse<GcbPhoneNumber> * @throws ApiException if fails to make API call * @http.response.details @@ -83,7 +83,7 @@ public GcbPhoneNumber assignPhoneNumber(String channelZoneId, ListChannelZonesBy 0 Unexpected error - */ - public ApiResponse assignPhoneNumberWithHttpInfo(String channelZoneId, ListChannelZonesByPhoneNumber body) throws ApiException { + public ApiResponse assignPhoneNumberWithHttpInfo(String channelZoneId, AssignPhoneNumberRequest body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'channelZoneId' is set @@ -203,7 +203,7 @@ public ApiResponse getChannelZoneWithHttpInfo(String channelZone * List of channel zones with their countries * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return GetGcbChannelZonesRequestResponse + * @return GetChannelZones200Response * @throws ApiException if fails to make API call * @http.response.details @@ -211,7 +211,7 @@ public ApiResponse getChannelZoneWithHttpInfo(String channelZone
200 A list of channel zones -
*/ - public GetGcbChannelZonesRequestResponse getChannelZones(Integer pageNumber, Integer pageSize) throws ApiException { + public GetChannelZones200Response getChannelZones(Integer pageNumber, Integer pageSize) throws ApiException { return getChannelZonesWithHttpInfo(pageNumber, pageSize).getData(); } @@ -220,7 +220,7 @@ public GetGcbChannelZonesRequestResponse getChannelZones(Integer pageNumber, Int * List of channel zones with their countries * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<GetGcbChannelZonesRequestResponse> + * @return ApiResponse<GetChannelZones200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -228,7 +228,7 @@ public GetGcbChannelZonesRequestResponse getChannelZones(Integer pageNumber, Int
200 A list of channel zones -
*/ - public ApiResponse getChannelZonesWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse getChannelZonesWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -258,7 +258,7 @@ public ApiResponse getChannelZonesWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ChannelZonesApi.getChannelZones", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -270,7 +270,7 @@ public ApiResponse getChannelZonesWithHttpInf * @param channelZoneId Channel zone identifier (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return GetGcbPhoneNumbersRequestResponse + * @return GetPhoneNumbers200Response * @throws ApiException if fails to make API call * @http.response.details @@ -278,7 +278,7 @@ public ApiResponse getChannelZonesWithHttpInf
200 A list of phone numbers -
*/ - public GetGcbPhoneNumbersRequestResponse getPhoneNumbers(String channelZoneId, Integer pageNumber, Integer pageSize) throws ApiException { + public GetPhoneNumbers200Response getPhoneNumbers(String channelZoneId, Integer pageNumber, Integer pageSize) throws ApiException { return getPhoneNumbersWithHttpInfo(channelZoneId, pageNumber, pageSize).getData(); } @@ -288,7 +288,7 @@ public GetGcbPhoneNumbersRequestResponse getPhoneNumbers(String channelZoneId, I * @param channelZoneId Channel zone identifier (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<GetGcbPhoneNumbersRequestResponse> + * @return ApiResponse<GetPhoneNumbers200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -296,7 +296,7 @@ public GetGcbPhoneNumbersRequestResponse getPhoneNumbers(String channelZoneId, I
200 A list of phone numbers -
*/ - public ApiResponse getPhoneNumbersWithHttpInfo(String channelZoneId, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse getPhoneNumbersWithHttpInfo(String channelZoneId, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'channelZoneId' is set @@ -332,7 +332,7 @@ public ApiResponse getPhoneNumbersWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ChannelZonesApi.getPhoneNumbers", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -342,7 +342,7 @@ public ApiResponse getPhoneNumbersWithHttpInf * Patch a channel zone * Change the amount of reserved channels at a given channel zone * @param channelZoneId Channel zone identifier (required) - * @param body (required) + * @param body Quantity of reserved channels (required) * @return GcbChannelZone * @throws ApiException if fails to make API call * @http.response.details @@ -352,7 +352,7 @@ public ApiResponse getPhoneNumbersWithHttpInf 0 Unexpected error - */ - public GcbChannelZone patchGroup(String channelZoneId, UpdateChannelZone body) throws ApiException { + public GcbChannelZone patchGroup(String channelZoneId, PatchGroupRequest body) throws ApiException { return patchGroupWithHttpInfo(channelZoneId, body).getData(); } @@ -360,7 +360,7 @@ public GcbChannelZone patchGroup(String channelZoneId, UpdateChannelZone body) t * Patch a channel zone * Change the amount of reserved channels at a given channel zone * @param channelZoneId Channel zone identifier (required) - * @param body (required) + * @param body Quantity of reserved channels (required) * @return ApiResponse<GcbChannelZone> * @throws ApiException if fails to make API call * @http.response.details @@ -370,7 +370,7 @@ public GcbChannelZone patchGroup(String channelZoneId, UpdateChannelZone body) t 0 Unexpected error - */ - public ApiResponse patchGroupWithHttpInfo(String channelZoneId, UpdateChannelZone body) throws ApiException { + public ApiResponse patchGroupWithHttpInfo(String channelZoneId, PatchGroupRequest body) throws ApiException { Object localVarPostBody = body; // verify the required parameter 'channelZoneId' is set diff --git a/src/main/java/com/telnyx/sdk/api/ConferenceCommandsApi.java b/src/main/java/com/telnyx/sdk/api/ConferenceCommandsApi.java index debf6677..f49a62ee 100644 --- a/src/main/java/com/telnyx/sdk/api/ConferenceCommandsApi.java +++ b/src/main/java/com/telnyx/sdk/api/ConferenceCommandsApi.java @@ -73,8 +73,8 @@ public void setApiClient(ApiClient apiClient) { - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -93,8 +93,8 @@ public ConferenceCommandResponse conferenceDialParticipantIn(String id, Conferen - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -154,8 +154,8 @@ public ApiResponse conferenceDialParticipantInWithHtt - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -174,8 +174,8 @@ public ConferenceCommandResponse conferenceHoldParticipants(String id, Conferenc - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -235,7 +235,7 @@ public ApiResponse conferenceHoldParticipantsWithHttp - +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -254,7 +254,7 @@ public ConferenceCommandResponse conferenceJoin(String id, JoinConferenceRequest - +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -314,7 +314,7 @@ public ApiResponse conferenceJoinWithHttpInfo(String - +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -333,7 +333,7 @@ public ConferenceCommandResponse conferenceLeave(String id, LeaveConferenceReque - +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -393,8 +393,8 @@ public ApiResponse conferenceLeaveWithHttpInfo(String - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -413,8 +413,8 @@ public ConferenceCommandResponse conferenceMuteParticipants(String id, Conferenc - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -474,8 +474,8 @@ public ApiResponse conferenceMuteParticipantsWithHttp - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -494,8 +494,8 @@ public ConferenceCommandResponse conferencePlayAudio(String id, ConferencePlayRe - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -555,8 +555,8 @@ public ApiResponse conferencePlayAudioWithHttpInfo(St - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -575,8 +575,8 @@ public ConferenceCommandResponse conferenceSpeakText(String id, ConferenceSpeakR - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -636,8 +636,8 @@ public ApiResponse conferenceSpeakTextWithHttpInfo(St - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -656,8 +656,8 @@ public ConferenceCommandResponse conferenceStartRecording(String id, StartRecord - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -717,8 +717,8 @@ public ApiResponse conferenceStartRecordingWithHttpIn - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -737,8 +737,8 @@ public ConferenceCommandResponse conferenceStopAudio(String id, ConferenceStopRe - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -798,8 +798,8 @@ public ApiResponse conferenceStopAudioWithHttpInfo(St - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -818,8 +818,8 @@ public ConferenceCommandResponse conferenceStopRecording(String id, StopRecordin - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -879,8 +879,8 @@ public ApiResponse conferenceStopRecordingWithHttpInf - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -899,8 +899,8 @@ public ConferenceCommandResponse conferenceUnholdParticipants(String id, Confere - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -960,8 +960,8 @@ public ApiResponse conferenceUnholdParticipantsWithHt - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -980,8 +980,8 @@ public ConferenceCommandResponse conferenceUnmuteParticipants(String id, Confere - - + +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
*/ @@ -1041,7 +1041,7 @@ public ApiResponse conferenceUnmuteParticipantsWithHt - +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -1060,7 +1060,7 @@ public ConferenceCommandResponse conferenceUpdate(String id, UpdateConferenceReq - +
Status Code Description Response Headers
200 Successful response upon making a conference command. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -1119,7 +1119,7 @@ public ApiResponse conferenceUpdateWithHttpInfo(Strin - +
Status Code Description Response Headers
200 Successful response with details about a conference. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -1137,7 +1137,7 @@ public ConferenceResponse createConference(CreateConferenceRequest createConfere - +
Status Code Description Response Headers
200 Successful response with details about a conference. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
*/ @@ -1297,8 +1297,8 @@ public APIlistConferenceParticipantsRequest pageSize(Integer pageSize) { - - + +
Status Code Description Response Headers
200 Successful response with a list of conference participants. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
@@ -1316,8 +1316,8 @@ public ListParticipantsResponse execute() throws ApiException { - - + +
Status Code Description Response Headers
200 Successful response with a list of conference participants. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
422 Unprocessable entity -
@@ -1436,7 +1436,7 @@ public APIlistConferencesRequest pageSize(Integer pageSize) { - +
Status Code Description Response Headers
200 Successful response with a list of conferences. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
@@ -1454,7 +1454,7 @@ public ListConferencesResponse execute() throws ApiException { - +
Status Code Description Response Headers
200 Successful response with a list of conferences. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
@@ -1485,7 +1485,7 @@ public APIlistConferencesRequest listConferences() throws ApiException { - +
Status Code Description Response Headers
200 Successful response with details about a conference. -
404 Conference does not exist -
404 Fax does not exist -
*/ public ConferenceResponse retrieveConference(String id) throws ApiException { @@ -1502,7 +1502,7 @@ public ConferenceResponse retrieveConference(String id) throws ApiException { - +
Status Code Description Response Headers
200 Successful response with details about a conference. -
404 Conference does not exist -
404 Fax does not exist -
*/ public ApiResponse retrieveConferenceWithHttpInfo(String id) throws ApiException { diff --git a/src/main/java/com/telnyx/sdk/api/ConnectionsApi.java b/src/main/java/com/telnyx/sdk/api/ConnectionsApi.java index d953d5fc..b31684bd 100644 --- a/src/main/java/com/telnyx/sdk/api/ConnectionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/ConnectionsApi.java @@ -47,7 +47,7 @@ public void setApiClient(ApiClient apiClient) { } -private ApiResponse listConnectionsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterConnectionNameContains, String filterOutboundOutboundVoiceProfileId, String sort) throws ApiException { +private ApiResponse listConnectionsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterConnectionNameContains, String filterOutboundVoiceProfileId, String sort) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -62,7 +62,7 @@ private ApiResponse listConnectionsWithHttpInfo(Integer localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[connection_name][contains]", filterConnectionNameContains)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound.outbound_voice_profile_id]", filterOutboundOutboundVoiceProfileId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound_voice_profile_id]", filterOutboundVoiceProfileId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); @@ -91,7 +91,7 @@ public class APIlistConnectionsRequest { private Integer pageNumber; private Integer pageSize; private String filterConnectionNameContains; - private String filterOutboundOutboundVoiceProfileId; + private String filterOutboundVoiceProfileId; private String sort; private APIlistConnectionsRequest() { @@ -119,7 +119,7 @@ public APIlistConnectionsRequest pageSize(Integer pageSize) { /** * Set filterConnectionNameContains - * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) + * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional) * @return APIlistConnectionsRequest */ public APIlistConnectionsRequest filterConnectionNameContains(String filterConnectionNameContains) { @@ -128,12 +128,12 @@ public APIlistConnectionsRequest filterConnectionNameContains(String filterConne } /** - * Set filterOutboundOutboundVoiceProfileId - * @param filterOutboundOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) + * Set filterOutboundVoiceProfileId + * @param filterOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) * @return APIlistConnectionsRequest */ - public APIlistConnectionsRequest filterOutboundOutboundVoiceProfileId(String filterOutboundOutboundVoiceProfileId) { - this.filterOutboundOutboundVoiceProfileId = filterOutboundOutboundVoiceProfileId; + public APIlistConnectionsRequest filterOutboundVoiceProfileId(String filterOutboundVoiceProfileId) { + this.filterOutboundVoiceProfileId = filterOutboundVoiceProfileId; return this; } @@ -181,7 +181,7 @@ public ListConnectionsResponse execute() throws ApiException { */ public ApiResponse executeWithHttpInfo() throws ApiException { - return listConnectionsWithHttpInfo(pageNumber, pageSize, filterConnectionNameContains, filterOutboundOutboundVoiceProfileId, sort); + return listConnectionsWithHttpInfo(pageNumber, pageSize, filterConnectionNameContains, filterOutboundVoiceProfileId, sort); } } diff --git a/src/main/java/com/telnyx/sdk/api/CredentialConnectionsApi.java b/src/main/java/com/telnyx/sdk/api/CredentialConnectionsApi.java index 775cb16c..6ae7b63e 100644 --- a/src/main/java/com/telnyx/sdk/api/CredentialConnectionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/CredentialConnectionsApi.java @@ -264,7 +264,7 @@ public APIlistCredentialConnectionsRequest pageSize(Integer pageSize) { /** * Set filterConnectionNameContains - * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) + * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional) * @return APIlistCredentialConnectionsRequest */ public APIlistCredentialConnectionsRequest filterConnectionNameContains(String filterConnectionNameContains) { diff --git a/src/main/java/com/telnyx/sdk/api/CustomerServiceRequestApi.java b/src/main/java/com/telnyx/sdk/api/CustomerServiceRequestApi.java index ea28ce77..219a01cc 100644 --- a/src/main/java/com/telnyx/sdk/api/CustomerServiceRequestApi.java +++ b/src/main/java/com/telnyx/sdk/api/CustomerServiceRequestApi.java @@ -8,9 +8,17 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.ListCustomerServiceRequestPhoneNumberCoverage; -import com.telnyx.sdk.model.ShowCustomerServiceRequest; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; +import com.telnyx.sdk.model.CreateCustomerServiceRequest201Response; +import com.telnyx.sdk.model.CreateCustomerServiceRequestRequest; +import com.telnyx.sdk.model.GetCustomerServiceRequest404Response; +import com.telnyx.sdk.model.ListCustomerServiceRequests200Response; +import com.telnyx.sdk.model.ListCustomerServiceRequests401Response; +import com.telnyx.sdk.model.ListCustomerServiceRequests403Response; +import com.telnyx.sdk.model.ListCustomerServiceRequests422Response; +import com.telnyx.sdk.model.ListCustomerServiceRequests500Response; +import java.time.OffsetDateTime; +import com.telnyx.sdk.model.VerifyPhoneNumberCoverage201Response; +import com.telnyx.sdk.model.VerifyPhoneNumberCoverageRequest; import java.util.ArrayList; import java.util.HashMap; @@ -47,11 +55,86 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * Create a customer service request + * Create a new customer service request for the provided phone number. + * @param createCustomerServiceRequestRequest (required) + * @return CreateCustomerServiceRequest201Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + +
Status Code Description Response Headers
201 Successful Response -
401 The required authentication headers were either invalid or not included in the request. -
403 You do not have permission to perform the requested action on the specified resource or resources. -
422 Unprocessable entity. Check the 'detail' field in response for details. -
500 An unexpected error occurred. -
+ */ + public CreateCustomerServiceRequest201Response createCustomerServiceRequest(CreateCustomerServiceRequestRequest createCustomerServiceRequestRequest) throws ApiException { + return createCustomerServiceRequestWithHttpInfo(createCustomerServiceRequestRequest).getData(); + } + + /** + * Create a customer service request + * Create a new customer service request for the provided phone number. + * @param createCustomerServiceRequestRequest (required) + * @return ApiResponse<CreateCustomerServiceRequest201Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + +
Status Code Description Response Headers
201 Successful Response -
401 The required authentication headers were either invalid or not included in the request. -
403 You do not have permission to perform the requested action on the specified resource or resources. -
422 Unprocessable entity. Check the 'detail' field in response for details. -
500 An unexpected error occurred. -
+ */ + public ApiResponse createCustomerServiceRequestWithHttpInfo(CreateCustomerServiceRequestRequest createCustomerServiceRequestRequest) throws ApiException { + Object localVarPostBody = createCustomerServiceRequestRequest; + + // verify the required parameter 'createCustomerServiceRequestRequest' is set + if (createCustomerServiceRequestRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createCustomerServiceRequestRequest' when calling createCustomerServiceRequest"); + } + + // create path and map variables + String localVarPath = "/customer_service_requests"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("CustomerServiceRequestApi.createCustomerServiceRequest", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Get a customer service request * Get a specific customer service request. * @param customerServiceRequestId The ID of the customer service request (required) - * @return ShowCustomerServiceRequest + * @return CreateCustomerServiceRequest201Response * @throws ApiException if fails to make API call * @http.response.details @@ -63,7 +146,7 @@ public void setApiClient(ApiClient apiClient) {
500 An unexpected error occurred. -
*/ - public ShowCustomerServiceRequest getCustomerServiceRequest(String customerServiceRequestId) throws ApiException { + public CreateCustomerServiceRequest201Response getCustomerServiceRequest(String customerServiceRequestId) throws ApiException { return getCustomerServiceRequestWithHttpInfo(customerServiceRequestId).getData(); } @@ -71,7 +154,7 @@ public ShowCustomerServiceRequest getCustomerServiceRequest(String customerServi * Get a customer service request * Get a specific customer service request. * @param customerServiceRequestId The ID of the customer service request (required) - * @return ApiResponse<ShowCustomerServiceRequest> + * @return ApiResponse<CreateCustomerServiceRequest201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -83,7 +166,7 @@ public ShowCustomerServiceRequest getCustomerServiceRequest(String customerServi
500 An unexpected error occurred. -
*/ - public ApiResponse getCustomerServiceRequestWithHttpInfo(String customerServiceRequestId) throws ApiException { + public ApiResponse getCustomerServiceRequestWithHttpInfo(String customerServiceRequestId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'customerServiceRequestId' is set @@ -117,17 +200,109 @@ public ApiResponse getCustomerServiceRequestWithHttp String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("CustomerServiceRequestApi.getCustomerServiceRequest", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * List customer service requests + * List customer service requests. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param sort Specifies the sort order for results. If not given, results are sorted by created_at in descending order. (optional) + * @param filterPhoneNumberEq Filters records to those with a specified number. (optional) + * @param filterPhoneNumberIn Filters records to those with at least one number in the list. (optional) + * @param filterStatusEq Filters records to those with a specific status. (optional) + * @param filterStatusIn Filters records to those with a least one status in the list. (optional) + * @param filterCreatedAtLt Filters records to those created before a specific date. (optional) + * @return ListCustomerServiceRequests200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 Successful Response -
401 The required authentication headers were either invalid or not included in the request. -
403 You do not have permission to perform the requested action on the specified resource or resources. -
422 Unprocessable entity. Check the 'detail' field in response for details. -
500 An unexpected error occurred. -
+ */ + public ListCustomerServiceRequests200Response listCustomerServiceRequests(Integer pageNumber, Integer pageSize, String sort, String filterPhoneNumberEq, List filterPhoneNumberIn, String filterStatusEq, List filterStatusIn, OffsetDateTime filterCreatedAtLt) throws ApiException { + return listCustomerServiceRequestsWithHttpInfo(pageNumber, pageSize, sort, filterPhoneNumberEq, filterPhoneNumberIn, filterStatusEq, filterStatusIn, filterCreatedAtLt).getData(); + } + + /** + * List customer service requests + * List customer service requests. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param sort Specifies the sort order for results. If not given, results are sorted by created_at in descending order. (optional) + * @param filterPhoneNumberEq Filters records to those with a specified number. (optional) + * @param filterPhoneNumberIn Filters records to those with at least one number in the list. (optional) + * @param filterStatusEq Filters records to those with a specific status. (optional) + * @param filterStatusIn Filters records to those with a least one status in the list. (optional) + * @param filterCreatedAtLt Filters records to those created before a specific date. (optional) + * @return ApiResponse<ListCustomerServiceRequests200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + + +
Status Code Description Response Headers
200 Successful Response -
401 The required authentication headers were either invalid or not included in the request. -
403 You do not have permission to perform the requested action on the specified resource or resources. -
422 Unprocessable entity. Check the 'detail' field in response for details. -
500 An unexpected error occurred. -
+ */ + public ApiResponse listCustomerServiceRequestsWithHttpInfo(Integer pageNumber, Integer pageSize, String sort, String filterPhoneNumberEq, List filterPhoneNumberIn, String filterStatusEq, List filterStatusIn, OffsetDateTime filterCreatedAtLt) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/customer_service_requests"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort[]", sort)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[phone_number][eq]", filterPhoneNumberEq)); + localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "filter[phone_number][in][]", filterPhoneNumberIn)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status][eq]", filterStatusEq)); + localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "filter[status][in][]", filterStatusIn)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][lt]", filterCreatedAtLt)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("CustomerServiceRequestApi.listCustomerServiceRequests", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Verify CSR phone number coverage * Verify the coverage for a list of phone numbers. - * @param UNKNOWN_BASE_TYPE (required) - * @return ListCustomerServiceRequestPhoneNumberCoverage + * @param verifyPhoneNumberCoverageRequest (required) + * @return VerifyPhoneNumberCoverage201Response * @throws ApiException if fails to make API call * @http.response.details @@ -139,15 +314,15 @@ public ApiResponse getCustomerServiceRequestWithHttp
500 An unexpected error occurred. -
*/ - public ListCustomerServiceRequestPhoneNumberCoverage verifyPhoneNumberCoverage(UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { - return verifyPhoneNumberCoverageWithHttpInfo(UNKNOWN_BASE_TYPE).getData(); + public VerifyPhoneNumberCoverage201Response verifyPhoneNumberCoverage(VerifyPhoneNumberCoverageRequest verifyPhoneNumberCoverageRequest) throws ApiException { + return verifyPhoneNumberCoverageWithHttpInfo(verifyPhoneNumberCoverageRequest).getData(); } /** * Verify CSR phone number coverage * Verify the coverage for a list of phone numbers. - * @param UNKNOWN_BASE_TYPE (required) - * @return ApiResponse<ListCustomerServiceRequestPhoneNumberCoverage> + * @param verifyPhoneNumberCoverageRequest (required) + * @return ApiResponse<VerifyPhoneNumberCoverage201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -159,12 +334,12 @@ public ListCustomerServiceRequestPhoneNumberCoverage verifyPhoneNumberCoverage(U
500 An unexpected error occurred. -
*/ - public ApiResponse verifyPhoneNumberCoverageWithHttpInfo(UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { - Object localVarPostBody = UNKNOWN_BASE_TYPE; + public ApiResponse verifyPhoneNumberCoverageWithHttpInfo(VerifyPhoneNumberCoverageRequest verifyPhoneNumberCoverageRequest) throws ApiException { + Object localVarPostBody = verifyPhoneNumberCoverageRequest; - // verify the required parameter 'UNKNOWN_BASE_TYPE' is set - if (UNKNOWN_BASE_TYPE == null) { - throw new ApiException(400, "Missing the required parameter 'UNKNOWN_BASE_TYPE' when calling verifyPhoneNumberCoverage"); + // verify the required parameter 'verifyPhoneNumberCoverageRequest' is set + if (verifyPhoneNumberCoverageRequest == null) { + throw new ApiException(400, "Missing the required parameter 'verifyPhoneNumberCoverageRequest' when calling verifyPhoneNumberCoverage"); } // create path and map variables @@ -192,7 +367,7 @@ public ApiResponse verifyPhoneNum String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("CustomerServiceRequestApi.verifyPhoneNumberCoverage", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/DetailRecordsApi.java b/src/main/java/com/telnyx/sdk/api/DetailRecordsApi.java index 852a13bd..3715525f 100644 --- a/src/main/java/com/telnyx/sdk/api/DetailRecordsApi.java +++ b/src/main/java/com/telnyx/sdk/api/DetailRecordsApi.java @@ -47,13 +47,13 @@ public void setApiClient(ApiClient apiClient) { /** * Search detail records - * Search for any detail record across the Telnyx Platform - * @param filterRecordType Filter by the given record type (required) - * @param filterDateRange Filter by the given user-friendly date range (optional) - * @param filter Filter records (optional) + * Search for any detail record across the Telnyx Platform. Examples and additional information found [here](/docs/v2/debugging/detail-record-search). + * @param filterRecordType Filter by the given record type. (required) + * @param filterDateRange Filter by the given user-friendly date range. You can specify one of the following enum values, or a dynamic one using this format: last_N_days. (optional) + * @param filter Filter records on a given record attribute and value. <br/>Example: filter[status]=delivered (optional) * @param pageNumber Page number (optional, default to 1) * @param pageSize Page size (optional, default to 20) - * @param sort Specifies the sort order for results (optional) + * @param sort Specifies the sort order for results. <br/>Example: sort=-created_at (optional) * @return DetailRecordsSearchResponse * @throws ApiException if fails to make API call * @http.response.details @@ -68,13 +68,13 @@ public DetailRecordsSearchResponse detailRecordsSearch(String filterRecordType, /** * Search detail records - * Search for any detail record across the Telnyx Platform - * @param filterRecordType Filter by the given record type (required) - * @param filterDateRange Filter by the given user-friendly date range (optional) - * @param filter Filter records (optional) + * Search for any detail record across the Telnyx Platform. Examples and additional information found [here](/docs/v2/debugging/detail-record-search). + * @param filterRecordType Filter by the given record type. (required) + * @param filterDateRange Filter by the given user-friendly date range. You can specify one of the following enum values, or a dynamic one using this format: last_N_days. (optional) + * @param filter Filter records on a given record attribute and value. <br/>Example: filter[status]=delivered (optional) * @param pageNumber Page number (optional, default to 1) * @param pageSize Page size (optional, default to 20) - * @param sort Specifies the sort order for results (optional) + * @param sort Specifies the sort order for results. <br/>Example: sort=-created_at (optional) * @return ApiResponse<DetailRecordsSearchResponse> * @throws ApiException if fails to make API call * @http.response.details diff --git a/src/main/java/com/telnyx/sdk/api/DialogflowIntegrationApi.java b/src/main/java/com/telnyx/sdk/api/DialogflowIntegrationApi.java new file mode 100644 index 00000000..f175361b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/DialogflowIntegrationApi.java @@ -0,0 +1,341 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.DialogflowConnection; +import com.telnyx.sdk.model.DialogflowConnectionResponse; +import com.telnyx.sdk.model.Errors; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DialogflowIntegrationApi { + private ApiClient apiClient; + + public DialogflowIntegrationApi() { + this(Configuration.getDefaultApiClient()); + } + + public DialogflowIntegrationApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create a Dialogflow Connection + * Save Dialogflow Credentiails to Telnyx, so it can be used with other Telnyx services. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @param dialogflowConnection The params expected to create/update a Dialogflow Connection for given connection_id. (required) + * @return DialogflowConnectionResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
201 Return details of the Dialogflow connection associated with the given CallControl connection. -
0 Unexpected error -
+ */ + public DialogflowConnectionResponse createDialogflowConnection(String connectionId, DialogflowConnection dialogflowConnection) throws ApiException { + return createDialogflowConnectionWithHttpInfo(connectionId, dialogflowConnection).getData(); + } + + /** + * Create a Dialogflow Connection + * Save Dialogflow Credentiails to Telnyx, so it can be used with other Telnyx services. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @param dialogflowConnection The params expected to create/update a Dialogflow Connection for given connection_id. (required) + * @return ApiResponse<DialogflowConnectionResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
201 Return details of the Dialogflow connection associated with the given CallControl connection. -
0 Unexpected error -
+ */ + public ApiResponse createDialogflowConnectionWithHttpInfo(String connectionId, DialogflowConnection dialogflowConnection) throws ApiException { + Object localVarPostBody = dialogflowConnection; + + // verify the required parameter 'connectionId' is set + if (connectionId == null) { + throw new ApiException(400, "Missing the required parameter 'connectionId' when calling createDialogflowConnection"); + } + + // verify the required parameter 'dialogflowConnection' is set + if (dialogflowConnection == null) { + throw new ApiException(400, "Missing the required parameter 'dialogflowConnection' when calling createDialogflowConnection"); + } + + // create path and map variables + String localVarPath = "/dialogflow_connections/{connection_id}" + .replaceAll("\\{" + "connection_id" + "\\}", apiClient.escapeString(connectionId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("DialogflowIntegrationApi.createDialogflowConnection", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete stored Dialogflow Connection + * Deletes a stored Dialogflow Connection. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
204 The Dialogflow Connection for connection_id was deleted successfully. -
0 Unexpected error -
+ */ + public void deleteDialogflowConnection(String connectionId) throws ApiException { + deleteDialogflowConnectionWithHttpInfo(connectionId); + } + + /** + * Delete stored Dialogflow Connection + * Deletes a stored Dialogflow Connection. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
204 The Dialogflow Connection for connection_id was deleted successfully. -
0 Unexpected error -
+ */ + public ApiResponse deleteDialogflowConnectionWithHttpInfo(String connectionId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'connectionId' is set + if (connectionId == null) { + throw new ApiException(400, "Missing the required parameter 'connectionId' when calling deleteDialogflowConnection"); + } + + // create path and map variables + String localVarPath = "/dialogflow_connections/{connection_id}" + .replaceAll("\\{" + "connection_id" + "\\}", apiClient.escapeString(connectionId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + return apiClient.invokeAPI("DialogflowIntegrationApi.deleteDialogflowConnection", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, null, false); + } + /** + * Retrieve stored Dialogflow Connection + * Return details of the Dialogflow connection associated with the given CallControl connection. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @return DialogflowConnectionResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Return details of the Dialogflow connection associated with the given CallControl connection. -
0 Unexpected error -
+ */ + public DialogflowConnectionResponse getDialogflowConnection(String connectionId) throws ApiException { + return getDialogflowConnectionWithHttpInfo(connectionId).getData(); + } + + /** + * Retrieve stored Dialogflow Connection + * Return details of the Dialogflow connection associated with the given CallControl connection. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @return ApiResponse<DialogflowConnectionResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Return details of the Dialogflow connection associated with the given CallControl connection. -
0 Unexpected error -
+ */ + public ApiResponse getDialogflowConnectionWithHttpInfo(String connectionId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'connectionId' is set + if (connectionId == null) { + throw new ApiException(400, "Missing the required parameter 'connectionId' when calling getDialogflowConnection"); + } + + // create path and map variables + String localVarPath = "/dialogflow_connections/{connection_id}" + .replaceAll("\\{" + "connection_id" + "\\}", apiClient.escapeString(connectionId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("DialogflowIntegrationApi.getDialogflowConnection", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Update stored Dialogflow Connection + * Updates a stored Dialogflow Connection. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @param dialogflowConnection The params expected to create/update a Dialogflow Connection for given connection_id. (required) + * @return DialogflowConnectionResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Return details of the Dialogflow connection associated with the given CallControl connection. -
0 Unexpected error -
+ */ + public DialogflowConnectionResponse updateDialogflowConnection(String connectionId, DialogflowConnection dialogflowConnection) throws ApiException { + return updateDialogflowConnectionWithHttpInfo(connectionId, dialogflowConnection).getData(); + } + + /** + * Update stored Dialogflow Connection + * Updates a stored Dialogflow Connection. + * @param connectionId Uniquely identifies a Telnyx application (Call Control). (required) + * @param dialogflowConnection The params expected to create/update a Dialogflow Connection for given connection_id. (required) + * @return ApiResponse<DialogflowConnectionResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Return details of the Dialogflow connection associated with the given CallControl connection. -
0 Unexpected error -
+ */ + public ApiResponse updateDialogflowConnectionWithHttpInfo(String connectionId, DialogflowConnection dialogflowConnection) throws ApiException { + Object localVarPostBody = dialogflowConnection; + + // verify the required parameter 'connectionId' is set + if (connectionId == null) { + throw new ApiException(400, "Missing the required parameter 'connectionId' when calling updateDialogflowConnection"); + } + + // verify the required parameter 'dialogflowConnection' is set + if (dialogflowConnection == null) { + throw new ApiException(400, "Missing the required parameter 'dialogflowConnection' when calling updateDialogflowConnection"); + } + + // create path and map variables + String localVarPath = "/dialogflow_connections/{connection_id}" + .replaceAll("\\{" + "connection_id" + "\\}", apiClient.escapeString(connectionId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("DialogflowIntegrationApi.updateDialogflowConnection", localVarPath, "PUT", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/DocumentsApi.java b/src/main/java/com/telnyx/sdk/api/DocumentsApi.java index d8f0f1f4..b253b687 100644 --- a/src/main/java/com/telnyx/sdk/api/DocumentsApi.java +++ b/src/main/java/com/telnyx/sdk/api/DocumentsApi.java @@ -9,12 +9,12 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.CreateDocServiceDocumentRequest; +import com.telnyx.sdk.model.CreateDocument200Response; import com.telnyx.sdk.model.DocServiceDocument; -import com.telnyx.sdk.model.DocServiceDocumentResponse; import com.telnyx.sdk.model.Errors; import java.io.File; -import com.telnyx.sdk.model.ListDocServiceDocumentLinksResponse; -import com.telnyx.sdk.model.ListDocServiceDocumentsResposne; +import com.telnyx.sdk.model.ListDocumentLinks200Response; +import com.telnyx.sdk.model.ListDocuments200Response; import java.util.UUID; import java.util.ArrayList; @@ -56,7 +56,7 @@ public void setApiClient(ApiClient apiClient) { * Upload a document * Upload a document.<br /><br />Uploaded files must be linked to a service within 30 minutes or they will be automatically deleted. * @param createDocServiceDocumentRequest (required) - * @return DocServiceDocumentResponse + * @return CreateDocument200Response * @throws ApiException if fails to make API call * @http.response.details @@ -66,7 +66,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public DocServiceDocumentResponse createDocument(CreateDocServiceDocumentRequest createDocServiceDocumentRequest) throws ApiException { + public CreateDocument200Response createDocument(CreateDocServiceDocumentRequest createDocServiceDocumentRequest) throws ApiException { return createDocumentWithHttpInfo(createDocServiceDocumentRequest).getData(); } @@ -74,7 +74,7 @@ public DocServiceDocumentResponse createDocument(CreateDocServiceDocumentRequest * Upload a document * Upload a document.<br /><br />Uploaded files must be linked to a service within 30 minutes or they will be automatically deleted. * @param createDocServiceDocumentRequest (required) - * @return ApiResponse<DocServiceDocumentResponse> + * @return ApiResponse<CreateDocument200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -84,7 +84,7 @@ public DocServiceDocumentResponse createDocument(CreateDocServiceDocumentRequest
0 Unexpected error -
*/ - public ApiResponse createDocumentWithHttpInfo(CreateDocServiceDocumentRequest createDocServiceDocumentRequest) throws ApiException { + public ApiResponse createDocumentWithHttpInfo(CreateDocServiceDocumentRequest createDocServiceDocumentRequest) throws ApiException { Object localVarPostBody = createDocServiceDocumentRequest; // verify the required parameter 'createDocServiceDocumentRequest' is set @@ -117,7 +117,7 @@ public ApiResponse createDocumentWithHttpInfo(Create String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DocumentsApi.createDocument", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -126,8 +126,8 @@ public ApiResponse createDocumentWithHttpInfo(Create /** * Delete a document * Delete a document.<br /><br />A document can only be deleted if it's not linked to a service. If it is linked to a service, it must be unlinked prior to deleting. - * @param id Identifies the resource. (required) - * @return DocServiceDocumentResponse + * @param id The id of the resource. (required) + * @return CreateDocument200Response * @throws ApiException if fails to make API call * @http.response.details @@ -136,15 +136,15 @@ public ApiResponse createDocumentWithHttpInfo(Create
0 Unexpected error -
*/ - public DocServiceDocumentResponse deleteDocument(UUID id) throws ApiException { + public CreateDocument200Response deleteDocument(UUID id) throws ApiException { return deleteDocumentWithHttpInfo(id).getData(); } /** * Delete a document * Delete a document.<br /><br />A document can only be deleted if it's not linked to a service. If it is linked to a service, it must be unlinked prior to deleting. - * @param id Identifies the resource. (required) - * @return ApiResponse<DocServiceDocumentResponse> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateDocument200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -153,7 +153,7 @@ public DocServiceDocumentResponse deleteDocument(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse deleteDocumentWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteDocumentWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -187,7 +187,7 @@ public ApiResponse deleteDocumentWithHttpInfo(UUID i String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DocumentsApi.deleteDocument", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -196,7 +196,7 @@ public ApiResponse deleteDocumentWithHttpInfo(UUID i /** * Download a document * Download a document. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @return File * @throws ApiException if fails to make API call * @http.response.details @@ -213,7 +213,7 @@ public File downloadDocServiceDocument(UUID id) throws ApiException { /** * Download a document * Download a document. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @return ApiResponse<File> * @throws ApiException if fails to make API call * @http.response.details @@ -271,7 +271,7 @@ public ApiResponse downloadDocServiceDocumentWithHttpInfo(UUID id) throws * @param filterDocumentId Identifies the associated document to filter on. (optional) * @param filterLinkedRecordType The `linked_record_type` of the document to filter on. (optional) * @param filterLinkedResourceId The `linked_resource_id` of the document to filter on. (optional) - * @return ListDocServiceDocumentLinksResponse + * @return ListDocumentLinks200Response * @throws ApiException if fails to make API call * @http.response.details @@ -280,7 +280,7 @@ public ApiResponse downloadDocServiceDocumentWithHttpInfo(UUID id) throws
0 Unexpected error -
*/ - public ListDocServiceDocumentLinksResponse listDocumentLinks(Integer pageNumber, Integer pageSize, UUID filterDocumentId, String filterLinkedRecordType, UUID filterLinkedResourceId) throws ApiException { + public ListDocumentLinks200Response listDocumentLinks(Integer pageNumber, Integer pageSize, UUID filterDocumentId, String filterLinkedRecordType, UUID filterLinkedResourceId) throws ApiException { return listDocumentLinksWithHttpInfo(pageNumber, pageSize, filterDocumentId, filterLinkedRecordType, filterLinkedResourceId).getData(); } @@ -292,7 +292,7 @@ public ListDocServiceDocumentLinksResponse listDocumentLinks(Integer pageNumber, * @param filterDocumentId Identifies the associated document to filter on. (optional) * @param filterLinkedRecordType The `linked_record_type` of the document to filter on. (optional) * @param filterLinkedResourceId The `linked_resource_id` of the document to filter on. (optional) - * @return ApiResponse<ListDocServiceDocumentLinksResponse> + * @return ApiResponse<ListDocumentLinks200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -301,7 +301,7 @@ public ListDocServiceDocumentLinksResponse listDocumentLinks(Integer pageNumber,
0 Unexpected error -
*/ - public ApiResponse listDocumentLinksWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterDocumentId, String filterLinkedRecordType, UUID filterLinkedResourceId) throws ApiException { + public ApiResponse listDocumentLinksWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterDocumentId, String filterLinkedRecordType, UUID filterLinkedResourceId) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -334,7 +334,7 @@ public ApiResponse listDocumentLinksWithHtt String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DocumentsApi.listDocumentLinks", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -351,7 +351,7 @@ public ApiResponse listDocumentLinksWithHtt * @param sort Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the field name. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListDocServiceDocumentsResposne + * @return ListDocuments200Response * @throws ApiException if fails to make API call * @http.response.details @@ -360,7 +360,7 @@ public ApiResponse listDocumentLinksWithHtt
0 Unexpected error -
*/ - public ListDocServiceDocumentsResposne listDocuments(String filterFilenameContains, String filterCustomerReferenceEq, String filterCustomerReferenceIn, String filterCreatedAtGt, String filterCreatedAtLt, String sort, Integer pageNumber, Integer pageSize) throws ApiException { + public ListDocuments200Response listDocuments(String filterFilenameContains, String filterCustomerReferenceEq, String filterCustomerReferenceIn, String filterCreatedAtGt, String filterCreatedAtLt, String sort, Integer pageNumber, Integer pageSize) throws ApiException { return listDocumentsWithHttpInfo(filterFilenameContains, filterCustomerReferenceEq, filterCustomerReferenceIn, filterCreatedAtGt, filterCreatedAtLt, sort, pageNumber, pageSize).getData(); } @@ -375,7 +375,7 @@ public ListDocServiceDocumentsResposne listDocuments(String filterFilenameContai * @param sort Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the field name. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListDocServiceDocumentsResposne> + * @return ApiResponse<ListDocuments200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -384,7 +384,7 @@ public ListDocServiceDocumentsResposne listDocuments(String filterFilenameContai
0 Unexpected error -
*/ - public ApiResponse listDocumentsWithHttpInfo(String filterFilenameContains, String filterCustomerReferenceEq, String filterCustomerReferenceIn, String filterCreatedAtGt, String filterCreatedAtLt, String sort, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listDocumentsWithHttpInfo(String filterFilenameContains, String filterCustomerReferenceEq, String filterCustomerReferenceIn, String filterCreatedAtGt, String filterCreatedAtLt, String sort, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -420,7 +420,7 @@ public ApiResponse listDocumentsWithHttpInfo(St String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DocumentsApi.listDocuments", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -429,8 +429,8 @@ public ApiResponse listDocumentsWithHttpInfo(St /** * Retrieve a document * Retrieve a document. - * @param id Identifies the resource. (required) - * @return DocServiceDocumentResponse + * @param id The id of the resource. (required) + * @return CreateDocument200Response * @throws ApiException if fails to make API call * @http.response.details @@ -439,15 +439,15 @@ public ApiResponse listDocumentsWithHttpInfo(St
0 Unexpected error -
*/ - public DocServiceDocumentResponse retrieveDocument(UUID id) throws ApiException { + public CreateDocument200Response retrieveDocument(UUID id) throws ApiException { return retrieveDocumentWithHttpInfo(id).getData(); } /** * Retrieve a document * Retrieve a document. - * @param id Identifies the resource. (required) - * @return ApiResponse<DocServiceDocumentResponse> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateDocument200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -456,7 +456,7 @@ public DocServiceDocumentResponse retrieveDocument(UUID id) throws ApiException
0 Unexpected error -
*/ - public ApiResponse retrieveDocumentWithHttpInfo(UUID id) throws ApiException { + public ApiResponse retrieveDocumentWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -490,7 +490,7 @@ public ApiResponse retrieveDocumentWithHttpInfo(UUID String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DocumentsApi.retrieveDocument", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -499,9 +499,9 @@ public ApiResponse retrieveDocumentWithHttpInfo(UUID /** * Update a document * Update a document. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @param docServiceDocument (required) - * @return DocServiceDocumentResponse + * @return CreateDocument200Response * @throws ApiException if fails to make API call * @http.response.details @@ -510,16 +510,16 @@ public ApiResponse retrieveDocumentWithHttpInfo(UUID
0 Unexpected error -
*/ - public DocServiceDocumentResponse updateDocument(UUID id, DocServiceDocument docServiceDocument) throws ApiException { + public CreateDocument200Response updateDocument(UUID id, DocServiceDocument docServiceDocument) throws ApiException { return updateDocumentWithHttpInfo(id, docServiceDocument).getData(); } /** * Update a document * Update a document. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @param docServiceDocument (required) - * @return ApiResponse<DocServiceDocumentResponse> + * @return ApiResponse<CreateDocument200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -528,7 +528,7 @@ public DocServiceDocumentResponse updateDocument(UUID id, DocServiceDocument doc
0 Unexpected error -
*/ - public ApiResponse updateDocumentWithHttpInfo(UUID id, DocServiceDocument docServiceDocument) throws ApiException { + public ApiResponse updateDocumentWithHttpInfo(UUID id, DocServiceDocument docServiceDocument) throws ApiException { Object localVarPostBody = docServiceDocument; // verify the required parameter 'id' is set @@ -567,7 +567,7 @@ public ApiResponse updateDocumentWithHttpInfo(UUID i String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DocumentsApi.updateDocument", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/DynamicEmergencyAddressesApi.java b/src/main/java/com/telnyx/sdk/api/DynamicEmergencyAddressesApi.java index 7e3b4eb3..2c0e29f4 100644 --- a/src/main/java/com/telnyx/sdk/api/DynamicEmergencyAddressesApi.java +++ b/src/main/java/com/telnyx/sdk/api/DynamicEmergencyAddressesApi.java @@ -8,9 +8,9 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreateDyanmicEmergencyAddress201Response; import com.telnyx.sdk.model.DynamicEmergencyAddress; -import com.telnyx.sdk.model.DynamicEmergencyAddressResponse; -import com.telnyx.sdk.model.ListDynamicEmergencyAddresses; +import com.telnyx.sdk.model.ListDyanmicEmergencyAddresses200Response; import java.util.UUID; import java.util.ArrayList; @@ -52,7 +52,7 @@ public void setApiClient(ApiClient apiClient) { * Create a dynamic emergency address. * Creates a dynamic emergency address. * @param dynamicEmergencyAddress (required) - * @return DynamicEmergencyAddressResponse + * @return CreateDyanmicEmergencyAddress201Response * @throws ApiException if fails to make API call * @http.response.details @@ -63,7 +63,7 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check message field in response for details. -
*/ - public DynamicEmergencyAddressResponse createDyanmicEmergencyAddress(DynamicEmergencyAddress dynamicEmergencyAddress) throws ApiException { + public CreateDyanmicEmergencyAddress201Response createDyanmicEmergencyAddress(DynamicEmergencyAddress dynamicEmergencyAddress) throws ApiException { return createDyanmicEmergencyAddressWithHttpInfo(dynamicEmergencyAddress).getData(); } @@ -71,7 +71,7 @@ public DynamicEmergencyAddressResponse createDyanmicEmergencyAddress(DynamicEmer * Create a dynamic emergency address. * Creates a dynamic emergency address. * @param dynamicEmergencyAddress (required) - * @return ApiResponse<DynamicEmergencyAddressResponse> + * @return ApiResponse<CreateDyanmicEmergencyAddress201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -82,7 +82,7 @@ public DynamicEmergencyAddressResponse createDyanmicEmergencyAddress(DynamicEmer
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse createDyanmicEmergencyAddressWithHttpInfo(DynamicEmergencyAddress dynamicEmergencyAddress) throws ApiException { + public ApiResponse createDyanmicEmergencyAddressWithHttpInfo(DynamicEmergencyAddress dynamicEmergencyAddress) throws ApiException { Object localVarPostBody = dynamicEmergencyAddress; // verify the required parameter 'dynamicEmergencyAddress' is set @@ -115,7 +115,7 @@ public ApiResponse createDyanmicEmergencyAddres String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyAddressesApi.createDyanmicEmergencyAddress", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -125,7 +125,7 @@ public ApiResponse createDyanmicEmergencyAddres * Delete a dynamic emergency address * Deletes the dynamic emergency address based on the ID provided * @param id Dynamic Emergency Address id (required) - * @return DynamicEmergencyAddressResponse + * @return CreateDyanmicEmergencyAddress201Response * @throws ApiException if fails to make API call * @http.response.details @@ -136,7 +136,7 @@ public ApiResponse createDyanmicEmergencyAddres
422 Unprocessable entity. Check message field in response for details. -
*/ - public DynamicEmergencyAddressResponse deleteDynamicEmergencyAddress(UUID id) throws ApiException { + public CreateDyanmicEmergencyAddress201Response deleteDynamicEmergencyAddress(UUID id) throws ApiException { return deleteDynamicEmergencyAddressWithHttpInfo(id).getData(); } @@ -144,7 +144,7 @@ public DynamicEmergencyAddressResponse deleteDynamicEmergencyAddress(UUID id) th * Delete a dynamic emergency address * Deletes the dynamic emergency address based on the ID provided * @param id Dynamic Emergency Address id (required) - * @return ApiResponse<DynamicEmergencyAddressResponse> + * @return ApiResponse<CreateDyanmicEmergencyAddress201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -155,7 +155,7 @@ public DynamicEmergencyAddressResponse deleteDynamicEmergencyAddress(UUID id) th
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse deleteDynamicEmergencyAddressWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteDynamicEmergencyAddressWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -189,7 +189,7 @@ public ApiResponse deleteDynamicEmergencyAddres String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyAddressesApi.deleteDynamicEmergencyAddress", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -199,7 +199,7 @@ public ApiResponse deleteDynamicEmergencyAddres * Get a dynamic emergency address * Returns the dynamic emergency address based on the ID provided * @param id Dynamic Emergency Address id (required) - * @return DynamicEmergencyAddressResponse + * @return CreateDyanmicEmergencyAddress201Response * @throws ApiException if fails to make API call * @http.response.details @@ -210,7 +210,7 @@ public ApiResponse deleteDynamicEmergencyAddres
422 Unprocessable entity. Check message field in response for details. -
*/ - public DynamicEmergencyAddressResponse getDynamicEmergencyAddress(UUID id) throws ApiException { + public CreateDyanmicEmergencyAddress201Response getDynamicEmergencyAddress(UUID id) throws ApiException { return getDynamicEmergencyAddressWithHttpInfo(id).getData(); } @@ -218,7 +218,7 @@ public DynamicEmergencyAddressResponse getDynamicEmergencyAddress(UUID id) throw * Get a dynamic emergency address * Returns the dynamic emergency address based on the ID provided * @param id Dynamic Emergency Address id (required) - * @return ApiResponse<DynamicEmergencyAddressResponse> + * @return ApiResponse<CreateDyanmicEmergencyAddress201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -229,7 +229,7 @@ public DynamicEmergencyAddressResponse getDynamicEmergencyAddress(UUID id) throw
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse getDynamicEmergencyAddressWithHttpInfo(UUID id) throws ApiException { + public ApiResponse getDynamicEmergencyAddressWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -263,7 +263,7 @@ public ApiResponse getDynamicEmergencyAddressWi String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyAddressesApi.getDynamicEmergencyAddress", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -276,7 +276,7 @@ public ApiResponse getDynamicEmergencyAddressWi * @param filterCountryCode Filter by country code. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListDynamicEmergencyAddresses + * @return ListDyanmicEmergencyAddresses200Response * @throws ApiException if fails to make API call * @http.response.details @@ -287,7 +287,7 @@ public ApiResponse getDynamicEmergencyAddressWi
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListDynamicEmergencyAddresses listDyanmicEmergencyAddresses(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { + public ListDyanmicEmergencyAddresses200Response listDyanmicEmergencyAddresses(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { return listDyanmicEmergencyAddressesWithHttpInfo(filterStatus, filterCountryCode, pageNumber, pageSize).getData(); } @@ -298,7 +298,7 @@ public ListDynamicEmergencyAddresses listDyanmicEmergencyAddresses(String filter * @param filterCountryCode Filter by country code. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListDynamicEmergencyAddresses> + * @return ApiResponse<ListDyanmicEmergencyAddresses200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -309,7 +309,7 @@ public ListDynamicEmergencyAddresses listDyanmicEmergencyAddresses(String filter
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listDyanmicEmergencyAddressesWithHttpInfo(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listDyanmicEmergencyAddressesWithHttpInfo(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -341,7 +341,7 @@ public ApiResponse listDyanmicEmergencyAddressesW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyAddressesApi.listDyanmicEmergencyAddresses", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/DynamicEmergencyEndpointsApi.java b/src/main/java/com/telnyx/sdk/api/DynamicEmergencyEndpointsApi.java index d99d5f8c..5121fb37 100644 --- a/src/main/java/com/telnyx/sdk/api/DynamicEmergencyEndpointsApi.java +++ b/src/main/java/com/telnyx/sdk/api/DynamicEmergencyEndpointsApi.java @@ -8,9 +8,9 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreateDyanmicEmergencyEndpoint201Response; import com.telnyx.sdk.model.DynamicEmergencyEndpoint; -import com.telnyx.sdk.model.DynamicEmergencyEndpointResponse; -import com.telnyx.sdk.model.ListDynamicEmergencyEndpoints; +import com.telnyx.sdk.model.ListDyanmicEmergencyEndpoints200Response; import java.util.UUID; import java.util.ArrayList; @@ -52,7 +52,7 @@ public void setApiClient(ApiClient apiClient) { * Create a dynamic emergency endpoint. * Creates a dynamic emergency endpoints. * @param dynamicEmergencyEndpoint (required) - * @return DynamicEmergencyEndpointResponse + * @return CreateDyanmicEmergencyEndpoint201Response * @throws ApiException if fails to make API call * @http.response.details @@ -63,7 +63,7 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check message field in response for details. -
*/ - public DynamicEmergencyEndpointResponse createDyanmicEmergencyEndpoint(DynamicEmergencyEndpoint dynamicEmergencyEndpoint) throws ApiException { + public CreateDyanmicEmergencyEndpoint201Response createDyanmicEmergencyEndpoint(DynamicEmergencyEndpoint dynamicEmergencyEndpoint) throws ApiException { return createDyanmicEmergencyEndpointWithHttpInfo(dynamicEmergencyEndpoint).getData(); } @@ -71,7 +71,7 @@ public DynamicEmergencyEndpointResponse createDyanmicEmergencyEndpoint(DynamicEm * Create a dynamic emergency endpoint. * Creates a dynamic emergency endpoints. * @param dynamicEmergencyEndpoint (required) - * @return ApiResponse<DynamicEmergencyEndpointResponse> + * @return ApiResponse<CreateDyanmicEmergencyEndpoint201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -82,7 +82,7 @@ public DynamicEmergencyEndpointResponse createDyanmicEmergencyEndpoint(DynamicEm
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse createDyanmicEmergencyEndpointWithHttpInfo(DynamicEmergencyEndpoint dynamicEmergencyEndpoint) throws ApiException { + public ApiResponse createDyanmicEmergencyEndpointWithHttpInfo(DynamicEmergencyEndpoint dynamicEmergencyEndpoint) throws ApiException { Object localVarPostBody = dynamicEmergencyEndpoint; // verify the required parameter 'dynamicEmergencyEndpoint' is set @@ -115,7 +115,7 @@ public ApiResponse createDyanmicEmergencyEndpo String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyEndpointsApi.createDyanmicEmergencyEndpoint", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -125,7 +125,7 @@ public ApiResponse createDyanmicEmergencyEndpo * Delete a dynamic emergency endpoint * Deletes the dynamic emergency endpoint based on the ID provided * @param id Dynamic Emergency Endpoint id (required) - * @return DynamicEmergencyEndpointResponse + * @return CreateDyanmicEmergencyEndpoint201Response * @throws ApiException if fails to make API call * @http.response.details @@ -136,7 +136,7 @@ public ApiResponse createDyanmicEmergencyEndpo
422 Unprocessable entity. Check message field in response for details. -
*/ - public DynamicEmergencyEndpointResponse deleteDynamicEmergencyEndpoint(UUID id) throws ApiException { + public CreateDyanmicEmergencyEndpoint201Response deleteDynamicEmergencyEndpoint(UUID id) throws ApiException { return deleteDynamicEmergencyEndpointWithHttpInfo(id).getData(); } @@ -144,7 +144,7 @@ public DynamicEmergencyEndpointResponse deleteDynamicEmergencyEndpoint(UUID id) * Delete a dynamic emergency endpoint * Deletes the dynamic emergency endpoint based on the ID provided * @param id Dynamic Emergency Endpoint id (required) - * @return ApiResponse<DynamicEmergencyEndpointResponse> + * @return ApiResponse<CreateDyanmicEmergencyEndpoint201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -155,7 +155,7 @@ public DynamicEmergencyEndpointResponse deleteDynamicEmergencyEndpoint(UUID id)
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse deleteDynamicEmergencyEndpointWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteDynamicEmergencyEndpointWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -189,7 +189,7 @@ public ApiResponse deleteDynamicEmergencyEndpo String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyEndpointsApi.deleteDynamicEmergencyEndpoint", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -199,7 +199,7 @@ public ApiResponse deleteDynamicEmergencyEndpo * Get a dynamic emergency endpoint * Returns the dynamic emergency endpoint based on the ID provided * @param id Dynamic Emergency Endpoint id (required) - * @return DynamicEmergencyEndpointResponse + * @return CreateDyanmicEmergencyEndpoint201Response * @throws ApiException if fails to make API call * @http.response.details @@ -210,7 +210,7 @@ public ApiResponse deleteDynamicEmergencyEndpo
422 Unprocessable entity. Check message field in response for details. -
*/ - public DynamicEmergencyEndpointResponse getDynamicEmergencyEndpoint(UUID id) throws ApiException { + public CreateDyanmicEmergencyEndpoint201Response getDynamicEmergencyEndpoint(UUID id) throws ApiException { return getDynamicEmergencyEndpointWithHttpInfo(id).getData(); } @@ -218,7 +218,7 @@ public DynamicEmergencyEndpointResponse getDynamicEmergencyEndpoint(UUID id) thr * Get a dynamic emergency endpoint * Returns the dynamic emergency endpoint based on the ID provided * @param id Dynamic Emergency Endpoint id (required) - * @return ApiResponse<DynamicEmergencyEndpointResponse> + * @return ApiResponse<CreateDyanmicEmergencyEndpoint201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -229,7 +229,7 @@ public DynamicEmergencyEndpointResponse getDynamicEmergencyEndpoint(UUID id) thr
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse getDynamicEmergencyEndpointWithHttpInfo(UUID id) throws ApiException { + public ApiResponse getDynamicEmergencyEndpointWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -263,7 +263,7 @@ public ApiResponse getDynamicEmergencyEndpoint String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyEndpointsApi.getDynamicEmergencyEndpoint", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -276,7 +276,7 @@ public ApiResponse getDynamicEmergencyEndpoint * @param filterCountryCode Filter by country code. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListDynamicEmergencyEndpoints + * @return ListDyanmicEmergencyEndpoints200Response * @throws ApiException if fails to make API call * @http.response.details @@ -287,7 +287,7 @@ public ApiResponse getDynamicEmergencyEndpoint
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListDynamicEmergencyEndpoints listDyanmicEmergencyEndpoints(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { + public ListDyanmicEmergencyEndpoints200Response listDyanmicEmergencyEndpoints(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { return listDyanmicEmergencyEndpointsWithHttpInfo(filterStatus, filterCountryCode, pageNumber, pageSize).getData(); } @@ -298,7 +298,7 @@ public ListDynamicEmergencyEndpoints listDyanmicEmergencyEndpoints(String filter * @param filterCountryCode Filter by country code. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListDynamicEmergencyEndpoints> + * @return ApiResponse<ListDyanmicEmergencyEndpoints200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -309,7 +309,7 @@ public ListDynamicEmergencyEndpoints listDyanmicEmergencyEndpoints(String filter
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listDyanmicEmergencyEndpointsWithHttpInfo(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listDyanmicEmergencyEndpointsWithHttpInfo(String filterStatus, String filterCountryCode, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -341,7 +341,7 @@ public ApiResponse listDyanmicEmergencyEndpointsW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("DynamicEmergencyEndpointsApi.listDyanmicEmergencyEndpoints", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/FqdnConnectionsApi.java b/src/main/java/com/telnyx/sdk/api/FqdnConnectionsApi.java index c7a7adaa..b8ff7ed9 100644 --- a/src/main/java/com/telnyx/sdk/api/FqdnConnectionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/FqdnConnectionsApi.java @@ -262,7 +262,7 @@ public APIlistFqdnConnectionsRequest pageSize(Integer pageSize) { /** * Set filterConnectionNameContains - * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) + * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional) * @return APIlistFqdnConnectionsRequest */ public APIlistFqdnConnectionsRequest filterConnectionNameContains(String filterConnectionNameContains) { diff --git a/src/main/java/com/telnyx/sdk/api/FqdNsApi.java b/src/main/java/com/telnyx/sdk/api/FqdnsApi.java similarity index 51% rename from src/main/java/com/telnyx/sdk/api/FqdNsApi.java rename to src/main/java/com/telnyx/sdk/api/FqdnsApi.java index ac1d2f7c..346d0b16 100644 --- a/src/main/java/com/telnyx/sdk/api/FqdNsApi.java +++ b/src/main/java/com/telnyx/sdk/api/FqdnsApi.java @@ -9,6 +9,11 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.CreateFqdnRequest; +import com.telnyx.sdk.model.CustomerFacingFQDNsGetIPResponse; +import com.telnyx.sdk.model.CustomerFacingFQDNsListResponse; +import com.telnyx.sdk.model.CustomerFacingFQDNsPatch; +import com.telnyx.sdk.model.CustomerFacingFQDNsPost; +import com.telnyx.sdk.model.CustomerFacingFQDNsResponseSchema; import com.telnyx.sdk.model.FQDNResponse; import com.telnyx.sdk.model.ListFQDNsResponse; import com.telnyx.sdk.model.UpdateFqdnRequest; @@ -48,6 +53,73 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * Create new Access FQDN + * + * @param customerFacingFQDNsPost (required) + * @return CustomerFacingFQDNsResponseSchema + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public CustomerFacingFQDNsResponseSchema createAccessFqdn(CustomerFacingFQDNsPost customerFacingFQDNsPost) throws ApiException { + return createAccessFqdnWithHttpInfo(customerFacingFQDNsPost).getData(); + } + + /** + * Create new Access FQDN + * + * @param customerFacingFQDNsPost (required) + * @return ApiResponse<CustomerFacingFQDNsResponseSchema> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public ApiResponse createAccessFqdnWithHttpInfo(CustomerFacingFQDNsPost customerFacingFQDNsPost) throws ApiException { + Object localVarPostBody = customerFacingFQDNsPost; + + // verify the required parameter 'customerFacingFQDNsPost' is set + if (customerFacingFQDNsPost == null) { + throw new ApiException(400, "Missing the required parameter 'customerFacingFQDNsPost' when calling createAccessFqdn"); + } + + // create path and map variables + String localVarPath = "/access_fqdns"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("FqdnsApi.createAccessFqdn", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Create an FQDN * Create a new FQDN object. @@ -114,6 +186,74 @@ public ApiResponse createFqdnWithHttpInfo(CreateFqdnRequest create localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * Delete Access FQDN + * + * @param fqdnId (required) + * @return CustomerFacingFQDNsResponseSchema + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public CustomerFacingFQDNsResponseSchema deleteAccessFqdn(String fqdnId) throws ApiException { + return deleteAccessFqdnWithHttpInfo(fqdnId).getData(); + } + + /** + * Delete Access FQDN + * + * @param fqdnId (required) + * @return ApiResponse<CustomerFacingFQDNsResponseSchema> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public ApiResponse deleteAccessFqdnWithHttpInfo(String fqdnId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'fqdnId' is set + if (fqdnId == null) { + throw new ApiException(400, "Missing the required parameter 'fqdnId' when calling deleteAccessFqdn"); + } + + // create path and map variables + String localVarPath = "/access_fqdns/{fqdn_id}" + .replaceAll("\\{" + "fqdn_id" + "\\}", apiClient.escapeString(fqdnId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("FqdnsApi.deleteAccessFqdn", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Delete an FQDN * Delete an FQDN. @@ -186,6 +326,214 @@ public ApiResponse deleteFqdnWithHttpInfo(String id) throws ApiExc localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * List an Access FQDN + * + * @param fqdnId (required) + * @return CustomerFacingFQDNsResponseSchema + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public CustomerFacingFQDNsResponseSchema listAccessFqdnById(String fqdnId) throws ApiException { + return listAccessFqdnByIdWithHttpInfo(fqdnId).getData(); + } + + /** + * List an Access FQDN + * + * @param fqdnId (required) + * @return ApiResponse<CustomerFacingFQDNsResponseSchema> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public ApiResponse listAccessFqdnByIdWithHttpInfo(String fqdnId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'fqdnId' is set + if (fqdnId == null) { + throw new ApiException(400, "Missing the required parameter 'fqdnId' when calling listAccessFqdnById"); + } + + // create path and map variables + String localVarPath = "/access_fqdns/{fqdn_id}" + .replaceAll("\\{" + "fqdn_id" + "\\}", apiClient.escapeString(fqdnId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("FqdnsApi.listAccessFqdnById", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all Access FQDNs + * + * @param pageNumber (optional, default to 1) + * @param pageSize (optional, default to 20) + * @return CustomerFacingFQDNsListResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public CustomerFacingFQDNsListResponse listAllAccessFqdns(Integer pageNumber, Integer pageSize) throws ApiException { + return listAllAccessFqdnsWithHttpInfo(pageNumber, pageSize).getData(); + } + + /** + * List all Access FQDNs + * + * @param pageNumber (optional, default to 1) + * @param pageSize (optional, default to 20) + * @return ApiResponse<CustomerFacingFQDNsListResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public ApiResponse listAllAccessFqdnsWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/access_fqdns"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("FqdnsApi.listAllAccessFqdns", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List Access FQDN's IP Addresses + * + * @param fqdnId (required) + * @param pageNumber (optional, default to 1) + * @param pageSize (optional, default to 20) + * @return CustomerFacingFQDNsGetIPResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public CustomerFacingFQDNsGetIPResponse listAllIpsByFqdn(String fqdnId, Integer pageNumber, Integer pageSize) throws ApiException { + return listAllIpsByFqdnWithHttpInfo(fqdnId, pageNumber, pageSize).getData(); + } + + /** + * List Access FQDN's IP Addresses + * + * @param fqdnId (required) + * @param pageNumber (optional, default to 1) + * @param pageSize (optional, default to 20) + * @return ApiResponse<CustomerFacingFQDNsGetIPResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public ApiResponse listAllIpsByFqdnWithHttpInfo(String fqdnId, Integer pageNumber, Integer pageSize) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'fqdnId' is set + if (fqdnId == null) { + throw new ApiException(400, "Missing the required parameter 'fqdnId' when calling listAllIpsByFqdn"); + } + + // create path and map variables + String localVarPath = "/access_fqdns/{fqdn_id}/ips" + .replaceAll("\\{" + "fqdn_id" + "\\}", apiClient.escapeString(fqdnId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("FqdnsApi.listAllIpsByFqdn", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } private ApiResponse listFqdnsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterConnectionId, String filterFqdn, Integer filterPort, String filterDnsRecordType) throws ApiException { Object localVarPostBody = null; @@ -418,6 +766,81 @@ public ApiResponse retrieveFqdnWithHttpInfo(String id) throws ApiE localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * Update Access FQDN + * + * @param fqdnId (required) + * @param customerFacingFQDNsPatch (required) + * @return CustomerFacingFQDNsResponseSchema + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public CustomerFacingFQDNsResponseSchema updateAccessFqdn(String fqdnId, CustomerFacingFQDNsPatch customerFacingFQDNsPatch) throws ApiException { + return updateAccessFqdnWithHttpInfo(fqdnId, customerFacingFQDNsPatch).getData(); + } + + /** + * Update Access FQDN + * + * @param fqdnId (required) + * @param customerFacingFQDNsPatch (required) + * @return ApiResponse<CustomerFacingFQDNsResponseSchema> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful Response -
+ */ + public ApiResponse updateAccessFqdnWithHttpInfo(String fqdnId, CustomerFacingFQDNsPatch customerFacingFQDNsPatch) throws ApiException { + Object localVarPostBody = customerFacingFQDNsPatch; + + // verify the required parameter 'fqdnId' is set + if (fqdnId == null) { + throw new ApiException(400, "Missing the required parameter 'fqdnId' when calling updateAccessFqdn"); + } + + // verify the required parameter 'customerFacingFQDNsPatch' is set + if (customerFacingFQDNsPatch == null) { + throw new ApiException(400, "Missing the required parameter 'customerFacingFQDNsPatch' when calling updateAccessFqdn"); + } + + // create path and map variables + String localVarPath = "/access_fqdns/{fqdn_id}" + .replaceAll("\\{" + "fqdn_id" + "\\}", apiClient.escapeString(fqdnId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("FqdnsApi.updateAccessFqdn", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Update an FQDN * Update the details of a specific FQDN. diff --git a/src/main/java/com/telnyx/sdk/api/InboundChannelsApi.java b/src/main/java/com/telnyx/sdk/api/InboundChannelsApi.java index 569cc8d4..749b3714 100644 --- a/src/main/java/com/telnyx/sdk/api/InboundChannelsApi.java +++ b/src/main/java/com/telnyx/sdk/api/InboundChannelsApi.java @@ -8,9 +8,10 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.ListInboundChannels; -import com.telnyx.sdk.model.UpdateInbouncChannels; -import com.telnyx.sdk.model.UpdateInboundChannels; +import com.telnyx.sdk.model.ListOutboundChannels200Response; +import com.telnyx.sdk.model.UpdateOutboundChannels200Response; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponse; +import com.telnyx.sdk.model.UpdateOutboundChannelsRequest; import java.util.ArrayList; import java.util.HashMap; @@ -50,7 +51,7 @@ public void setApiClient(ApiClient apiClient) { /** * Retrieve your inbound channels * Returns the inbound channels for your account. Inbound channels allows you to use Channel Billing for calls to your Telnyx phone numbers. Please check the Telnyx Support Articles section for full information and examples of how to utilize Channel Billing. - * @return ListInboundChannels + * @return ListOutboundChannels200Response * @throws ApiException if fails to make API call * @http.response.details @@ -61,14 +62,14 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListInboundChannels listOutboundChannels() throws ApiException { + public ListOutboundChannels200Response listOutboundChannels() throws ApiException { return listOutboundChannelsWithHttpInfo().getData(); } /** * Retrieve your inbound channels * Returns the inbound channels for your account. Inbound channels allows you to use Channel Billing for calls to your Telnyx phone numbers. Please check the Telnyx Support Articles section for full information and examples of how to utilize Channel Billing. - * @return ApiResponse<ListInboundChannels> + * @return ApiResponse<ListOutboundChannels200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -79,7 +80,7 @@ public ListInboundChannels listOutboundChannels() throws ApiException {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listOutboundChannelsWithHttpInfo() throws ApiException { + public ApiResponse listOutboundChannelsWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -107,7 +108,7 @@ public ApiResponse listOutboundChannelsWithHttpInfo() throw String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("InboundChannelsApi.listOutboundChannels", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -116,8 +117,8 @@ public ApiResponse listOutboundChannelsWithHttpInfo() throw /** * Update inbound channels * Update the inbound channels for the account - * @param updateInboundChannels (required) - * @return UpdateInbouncChannels + * @param updateOutboundChannelsRequest Inbound channels update (required) + * @return UpdateOutboundChannels200Response * @throws ApiException if fails to make API call * @http.response.details @@ -126,15 +127,15 @@ public ApiResponse listOutboundChannelsWithHttpInfo() throw
0 Unexpected error -
*/ - public UpdateInbouncChannels updateOutboundChannels(UpdateInboundChannels updateInboundChannels) throws ApiException { - return updateOutboundChannelsWithHttpInfo(updateInboundChannels).getData(); + public UpdateOutboundChannels200Response updateOutboundChannels(UpdateOutboundChannelsRequest updateOutboundChannelsRequest) throws ApiException { + return updateOutboundChannelsWithHttpInfo(updateOutboundChannelsRequest).getData(); } /** * Update inbound channels * Update the inbound channels for the account - * @param updateInboundChannels (required) - * @return ApiResponse<UpdateInbouncChannels> + * @param updateOutboundChannelsRequest Inbound channels update (required) + * @return ApiResponse<UpdateOutboundChannels200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -143,12 +144,12 @@ public UpdateInbouncChannels updateOutboundChannels(UpdateInboundChannels update
0 Unexpected error -
*/ - public ApiResponse updateOutboundChannelsWithHttpInfo(UpdateInboundChannels updateInboundChannels) throws ApiException { - Object localVarPostBody = updateInboundChannels; + public ApiResponse updateOutboundChannelsWithHttpInfo(UpdateOutboundChannelsRequest updateOutboundChannelsRequest) throws ApiException { + Object localVarPostBody = updateOutboundChannelsRequest; - // verify the required parameter 'updateInboundChannels' is set - if (updateInboundChannels == null) { - throw new ApiException(400, "Missing the required parameter 'updateInboundChannels' when calling updateOutboundChannels"); + // verify the required parameter 'updateOutboundChannelsRequest' is set + if (updateOutboundChannelsRequest == null) { + throw new ApiException(400, "Missing the required parameter 'updateOutboundChannelsRequest' when calling updateOutboundChannels"); } // create path and map variables @@ -176,7 +177,7 @@ public ApiResponse updateOutboundChannelsWithHttpInfo(Upd String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("InboundChannelsApi.updateOutboundChannels", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/InventoryLevelApi.java b/src/main/java/com/telnyx/sdk/api/InventoryLevelApi.java index 6312347a..601530b6 100644 --- a/src/main/java/com/telnyx/sdk/api/InventoryLevelApi.java +++ b/src/main/java/com/telnyx/sdk/api/InventoryLevelApi.java @@ -8,8 +8,8 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreateInventoryCoverageRequest200Response; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.InventoryCoverageResponse; import java.util.ArrayList; import java.util.HashMap; @@ -56,7 +56,7 @@ public void setApiClient(ApiClient apiClient) { * @param filterPhoneNumberType (optional) * @param filterCountryCode (optional) * @param filterCount (optional) - * @return InventoryCoverageResponse + * @return CreateInventoryCoverageRequest200Response * @throws ApiException if fails to make API call * @http.response.details @@ -65,7 +65,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public InventoryCoverageResponse createInventoryCoverageRequest(String filterGroupBy, Integer filterNpa, Integer filterNxx, String filterAdministrativeArea, String filterPhoneNumberType, String filterCountryCode, Boolean filterCount) throws ApiException { + public CreateInventoryCoverageRequest200Response createInventoryCoverageRequest(String filterGroupBy, Integer filterNpa, Integer filterNxx, String filterAdministrativeArea, String filterPhoneNumberType, String filterCountryCode, Boolean filterCount) throws ApiException { return createInventoryCoverageRequestWithHttpInfo(filterGroupBy, filterNpa, filterNxx, filterAdministrativeArea, filterPhoneNumberType, filterCountryCode, filterCount).getData(); } @@ -79,7 +79,7 @@ public InventoryCoverageResponse createInventoryCoverageRequest(String filterGro * @param filterPhoneNumberType (optional) * @param filterCountryCode (optional) * @param filterCount (optional) - * @return ApiResponse<InventoryCoverageResponse> + * @return ApiResponse<CreateInventoryCoverageRequest200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -88,7 +88,7 @@ public InventoryCoverageResponse createInventoryCoverageRequest(String filterGro
0 Unexpected error -
*/ - public ApiResponse createInventoryCoverageRequestWithHttpInfo(String filterGroupBy, Integer filterNpa, Integer filterNxx, String filterAdministrativeArea, String filterPhoneNumberType, String filterCountryCode, Boolean filterCount) throws ApiException { + public ApiResponse createInventoryCoverageRequestWithHttpInfo(String filterGroupBy, Integer filterNpa, Integer filterNxx, String filterAdministrativeArea, String filterPhoneNumberType, String filterCountryCode, Boolean filterCount) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'filterGroupBy' is set @@ -128,7 +128,7 @@ public ApiResponse createInventoryCoverageRequestWith String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("InventoryLevelApi.createInventoryCoverageRequest", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/IpAddressesApi.java b/src/main/java/com/telnyx/sdk/api/IpAddressesApi.java index 923e4ffe..dc9a30db 100644 --- a/src/main/java/com/telnyx/sdk/api/IpAddressesApi.java +++ b/src/main/java/com/telnyx/sdk/api/IpAddressesApi.java @@ -120,52 +120,44 @@ public ApiResponse accessIPAddressCreateWithHttpI localVarAuthNames, localVarReturnType, false); } /** - * List all Access IP Addresses + * Delete access IP address * - * @param filterIpSource (optional) - * @param filterIpAddress (optional) - * @param filterStatus (optional) - * @param filterCreatedAtGt (optional) - * @param filterCreatedAtLt (optional) - * @param pageNumber (optional, default to 1) - * @param pageSize (optional, default to 20) - * @return AccessIPAddressListResponseSchema + * @param accessIpAddressId (required) + * @return AccessIPAddressResponseSchema * @throws ApiException if fails to make API call * @http.response.details -
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
*/ - public AccessIPAddressListResponseSchema accessIPAddressList(String filterIpSource, String filterIpAddress, CloudflareSyncStatus filterStatus, OffsetDateTime filterCreatedAtGt, OffsetDateTime filterCreatedAtLt, Integer pageNumber, Integer pageSize) throws ApiException { - return accessIPAddressListWithHttpInfo(filterIpSource, filterIpAddress, filterStatus, filterCreatedAtGt, filterCreatedAtLt, pageNumber, pageSize).getData(); + public AccessIPAddressResponseSchema accessIPAddressDelete(String accessIpAddressId) throws ApiException { + return accessIPAddressDeleteWithHttpInfo(accessIpAddressId).getData(); } /** - * List all Access IP Addresses + * Delete access IP address * - * @param filterIpSource (optional) - * @param filterIpAddress (optional) - * @param filterStatus (optional) - * @param filterCreatedAtGt (optional) - * @param filterCreatedAtLt (optional) - * @param pageNumber (optional, default to 1) - * @param pageSize (optional, default to 20) - * @return ApiResponse<AccessIPAddressListResponseSchema> + * @param accessIpAddressId (required) + * @return ApiResponse<AccessIPAddressResponseSchema> * @throws ApiException if fails to make API call * @http.response.details -
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
*/ - public ApiResponse accessIPAddressListWithHttpInfo(String filterIpSource, String filterIpAddress, CloudflareSyncStatus filterStatus, OffsetDateTime filterCreatedAtGt, OffsetDateTime filterCreatedAtLt, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse accessIPAddressDeleteWithHttpInfo(String accessIpAddressId) throws ApiException { Object localVarPostBody = null; + // verify the required parameter 'accessIpAddressId' is set + if (accessIpAddressId == null) { + throw new ApiException(400, "Missing the required parameter 'accessIpAddressId' when calling accessIPAddressDelete"); + } + // create path and map variables - String localVarPath = "/access_ip_address"; + String localVarPath = "/access_ip_address/{access_ip_address_id}" + .replaceAll("\\{" + "access_ip_address_id" + "\\}", apiClient.escapeString(accessIpAddressId.toString())); // query params List localVarQueryParams = new ArrayList(); @@ -173,13 +165,6 @@ public ApiResponse accessIPAddressListWithHtt Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[ip_source]", filterIpSource)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[ip_address]", filterIpAddress)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][gt]", filterCreatedAtGt)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][lt]", filterCreatedAtLt)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); @@ -196,14 +181,14 @@ public ApiResponse accessIPAddressListWithHtt String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI("IpAddressesApi.accessIPAddressList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + return apiClient.invokeAPI("IpAddressesApi.accessIPAddressDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** - * Delete access IP address + * Retrieve an access IP address * * @param accessIpAddressId (required) * @return AccessIPAddressResponseSchema @@ -214,12 +199,12 @@ public ApiResponse accessIPAddressListWithHtt 200 Successful Response - */ - public AccessIPAddressResponseSchema accessIpAddressAccessIpAddressIdDelete(String accessIpAddressId) throws ApiException { - return accessIpAddressAccessIpAddressIdDeleteWithHttpInfo(accessIpAddressId).getData(); + public AccessIPAddressResponseSchema accessIPAddressGet(String accessIpAddressId) throws ApiException { + return accessIPAddressGetWithHttpInfo(accessIpAddressId).getData(); } /** - * Delete access IP address + * Retrieve an access IP address * * @param accessIpAddressId (required) * @return ApiResponse<AccessIPAddressResponseSchema> @@ -230,12 +215,12 @@ public AccessIPAddressResponseSchema accessIpAddressAccessIpAddressIdDelete(Stri 200 Successful Response - */ - public ApiResponse accessIpAddressAccessIpAddressIdDeleteWithHttpInfo(String accessIpAddressId) throws ApiException { + public ApiResponse accessIPAddressGetWithHttpInfo(String accessIpAddressId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'accessIpAddressId' is set if (accessIpAddressId == null) { - throw new ApiException(400, "Missing the required parameter 'accessIpAddressId' when calling accessIpAddressAccessIpAddressIdDelete"); + throw new ApiException(400, "Missing the required parameter 'accessIpAddressId' when calling accessIPAddressGet"); } // create path and map variables @@ -266,7 +251,90 @@ public ApiResponse accessIpAddressAccessIpAddress GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI("IpAddressesApi.accessIpAddressAccessIpAddressIdDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + return apiClient.invokeAPI("IpAddressesApi.accessIPAddressGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all Access IP Addresses + * + * @param filterIpSource (optional) + * @param filterIpAddress (optional) + * @param filterStatus (optional) + * @param filterCreatedAtGt (optional) + * @param filterCreatedAtLt (optional) + * @param pageNumber (optional, default to 1) + * @param pageSize (optional, default to 20) + * @return AccessIPAddressListResponseSchema + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public AccessIPAddressListResponseSchema accessIPAddressList(String filterIpSource, String filterIpAddress, CloudflareSyncStatus filterStatus, OffsetDateTime filterCreatedAtGt, OffsetDateTime filterCreatedAtLt, Integer pageNumber, Integer pageSize) throws ApiException { + return accessIPAddressListWithHttpInfo(filterIpSource, filterIpAddress, filterStatus, filterCreatedAtGt, filterCreatedAtLt, pageNumber, pageSize).getData(); + } + + /** + * List all Access IP Addresses + * + * @param filterIpSource (optional) + * @param filterIpAddress (optional) + * @param filterStatus (optional) + * @param filterCreatedAtGt (optional) + * @param filterCreatedAtLt (optional) + * @param pageNumber (optional, default to 1) + * @param pageSize (optional, default to 20) + * @return ApiResponse<AccessIPAddressListResponseSchema> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful Response -
422 Validation Error -
+ */ + public ApiResponse accessIPAddressListWithHttpInfo(String filterIpSource, String filterIpAddress, CloudflareSyncStatus filterStatus, OffsetDateTime filterCreatedAtGt, OffsetDateTime filterCreatedAtLt, Integer pageNumber, Integer pageSize) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/access_ip_address"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[ip_source]", filterIpSource)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[ip_address]", filterIpAddress)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][gt]", filterCreatedAtGt)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][lt]", filterCreatedAtLt)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("IpAddressesApi.accessIPAddressList", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } diff --git a/src/main/java/com/telnyx/sdk/api/IpConnectionsApi.java b/src/main/java/com/telnyx/sdk/api/IpConnectionsApi.java index 0cac0bdc..4c421f8e 100644 --- a/src/main/java/com/telnyx/sdk/api/IpConnectionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/IpConnectionsApi.java @@ -264,7 +264,7 @@ public APIlistIpConnectionsRequest pageSize(Integer pageSize) { /** * Set filterConnectionNameContains - * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) + * @param filterConnectionNameContains If present, connections with <code>connection_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional) * @return APIlistIpConnectionsRequest */ public APIlistIpConnectionsRequest filterConnectionNameContains(String filterConnectionNameContains) { diff --git a/src/main/java/com/telnyx/sdk/api/IPsApi.java b/src/main/java/com/telnyx/sdk/api/IpsApi.java similarity index 100% rename from src/main/java/com/telnyx/sdk/api/IPsApi.java rename to src/main/java/com/telnyx/sdk/api/IpsApi.java diff --git a/src/main/java/com/telnyx/sdk/api/ManagedAccountsApi.java b/src/main/java/com/telnyx/sdk/api/ManagedAccountsApi.java index 027e1e1f..ea14a879 100644 --- a/src/main/java/com/telnyx/sdk/api/ManagedAccountsApi.java +++ b/src/main/java/com/telnyx/sdk/api/ManagedAccountsApi.java @@ -8,10 +8,10 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreateManagedAccount200Response; +import com.telnyx.sdk.model.CreateManagedAccount422Response; import com.telnyx.sdk.model.CreateManagedAccountRequest; -import com.telnyx.sdk.model.ListManagedAccountsResponse; -import com.telnyx.sdk.model.ManagedAccountResponse; -import com.telnyx.sdk.model.UnprocessableManagedAccountEntity; +import com.telnyx.sdk.model.ListManagedAccounts200Response; import com.telnyx.sdk.model.UpdateManagedAccountRequest; import java.util.ArrayList; @@ -53,17 +53,17 @@ public void setApiClient(ApiClient apiClient) { * Create a new managed account. * Create a new managed account owned by the authenticated user. You need to be explictly approved by Telnyx in order to become a manager account. * @param createManagedAccountRequest Parameters that define the managed account to be created (required) - * @return ManagedAccountResponse + * @return CreateManagedAccount200Response * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ManagedAccountResponse createManagedAccount(CreateManagedAccountRequest createManagedAccountRequest) throws ApiException { + public CreateManagedAccount200Response createManagedAccount(CreateManagedAccountRequest createManagedAccountRequest) throws ApiException { return createManagedAccountWithHttpInfo(createManagedAccountRequest).getData(); } @@ -71,17 +71,17 @@ public ManagedAccountResponse createManagedAccount(CreateManagedAccountRequest c * Create a new managed account. * Create a new managed account owned by the authenticated user. You need to be explictly approved by Telnyx in order to become a manager account. * @param createManagedAccountRequest Parameters that define the managed account to be created (required) - * @return ApiResponse<ManagedAccountResponse> + * @return ApiResponse<CreateManagedAccount200Response> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse createManagedAccountWithHttpInfo(CreateManagedAccountRequest createManagedAccountRequest) throws ApiException { + public ApiResponse createManagedAccountWithHttpInfo(CreateManagedAccountRequest createManagedAccountRequest) throws ApiException { Object localVarPostBody = createManagedAccountRequest; // verify the required parameter 'createManagedAccountRequest' is set @@ -114,7 +114,7 @@ public ApiResponse createManagedAccountWithHttpInfo(Crea String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ManagedAccountsApi.createManagedAccount", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -124,18 +124,18 @@ public ApiResponse createManagedAccountWithHttpInfo(Crea * Disables a managed account * Disables a managed account, forbidding it to use Telnyx services, including sending or receiving phone calls and SMS messages. Ongoing phone calls will not be affected. The managed account and its sub-users will still be able to log in via the mission control portal. * @param id Managed Account User ID (required) - * @return ManagedAccountResponse + * @return CreateManagedAccount200Response * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ManagedAccountResponse disableManagedAccount(String id) throws ApiException { + public CreateManagedAccount200Response disableManagedAccount(String id) throws ApiException { return disableManagedAccountWithHttpInfo(id).getData(); } @@ -143,18 +143,18 @@ public ManagedAccountResponse disableManagedAccount(String id) throws ApiExcepti * Disables a managed account * Disables a managed account, forbidding it to use Telnyx services, including sending or receiving phone calls and SMS messages. Ongoing phone calls will not be affected. The managed account and its sub-users will still be able to log in via the mission control portal. * @param id Managed Account User ID (required) - * @return ApiResponse<ManagedAccountResponse> + * @return ApiResponse<CreateManagedAccount200Response> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse disableManagedAccountWithHttpInfo(String id) throws ApiException { + public ApiResponse disableManagedAccountWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -188,7 +188,7 @@ public ApiResponse disableManagedAccountWithHttpInfo(Str String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ManagedAccountsApi.disableManagedAccount", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -198,18 +198,18 @@ public ApiResponse disableManagedAccountWithHttpInfo(Str * Enables a managed account * Enables a managed account and its sub-users to use Telnyx services. * @param id Managed Account User ID (required) - * @return ManagedAccountResponse + * @return CreateManagedAccount200Response * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ManagedAccountResponse enableManagedAccount(String id) throws ApiException { + public CreateManagedAccount200Response enableManagedAccount(String id) throws ApiException { return enableManagedAccountWithHttpInfo(id).getData(); } @@ -217,18 +217,18 @@ public ManagedAccountResponse enableManagedAccount(String id) throws ApiExceptio * Enables a managed account * Enables a managed account and its sub-users to use Telnyx services. * @param id Managed Account User ID (required) - * @return ApiResponse<ManagedAccountResponse> + * @return ApiResponse<CreateManagedAccount200Response> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse enableManagedAccountWithHttpInfo(String id) throws ApiException { + public ApiResponse enableManagedAccountWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -262,7 +262,7 @@ public ApiResponse enableManagedAccountWithHttpInfo(Stri String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ManagedAccountsApi.enableManagedAccount", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -276,17 +276,18 @@ public ApiResponse enableManagedAccountWithHttpInfo(Stri * @param filterEmailContains If present, email containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) * @param filterEmailEq If present, only returns results with the <code>email</code> matching exactly the value given. (optional, default to null) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>email</code>: sorts the result by the <code>email</code> field in ascending order. </li> <li> <code>-email</code>: sorts the result by the <code>email</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to created_at) - * @return ListManagedAccountsResponse + * @param includeCancelledAccounts Specifies if cancelled accounts should be included in the results. (optional, default to false) + * @return ListManagedAccounts200Response * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with a list of managed accounts. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
*/ - public ListManagedAccountsResponse listManagedAccounts(Integer pageNumber, Integer pageSize, String filterEmailContains, String filterEmailEq, String sort) throws ApiException { - return listManagedAccountsWithHttpInfo(pageNumber, pageSize, filterEmailContains, filterEmailEq, sort).getData(); + public ListManagedAccounts200Response listManagedAccounts(Integer pageNumber, Integer pageSize, String filterEmailContains, String filterEmailEq, String sort, Boolean includeCancelledAccounts) throws ApiException { + return listManagedAccountsWithHttpInfo(pageNumber, pageSize, filterEmailContains, filterEmailEq, sort, includeCancelledAccounts).getData(); } /** @@ -297,16 +298,17 @@ public ListManagedAccountsResponse listManagedAccounts(Integer pageNumber, Integ * @param filterEmailContains If present, email containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) * @param filterEmailEq If present, only returns results with the <code>email</code> matching exactly the value given. (optional, default to null) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>email</code>: sorts the result by the <code>email</code> field in ascending order. </li> <li> <code>-email</code>: sorts the result by the <code>email</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to created_at) - * @return ApiResponse<ListManagedAccountsResponse> + * @param includeCancelledAccounts Specifies if cancelled accounts should be included in the results. (optional, default to false) + * @return ApiResponse<ListManagedAccounts200Response> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with a list of managed accounts. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
*/ - public ApiResponse listManagedAccountsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterEmailContains, String filterEmailEq, String sort) throws ApiException { + public ApiResponse listManagedAccountsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterEmailContains, String filterEmailEq, String sort, Boolean includeCancelledAccounts) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -323,6 +325,7 @@ public ApiResponse listManagedAccountsWithHttpInfo( localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[email][contains]", filterEmailContains)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[email][eq]", filterEmailEq)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "include_cancelled_accounts", includeCancelledAccounts)); @@ -339,7 +342,7 @@ public ApiResponse listManagedAccountsWithHttpInfo( String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ManagedAccountsApi.listManagedAccounts", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -349,17 +352,17 @@ public ApiResponse listManagedAccountsWithHttpInfo( * Retrieve a managed account * Retrieves the details of a single managed account. * @param id Managed Account User ID (required) - * @return ManagedAccountResponse + * @return CreateManagedAccount200Response * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
*/ - public ManagedAccountResponse retrieveManagedAccount(String id) throws ApiException { + public CreateManagedAccount200Response retrieveManagedAccount(String id) throws ApiException { return retrieveManagedAccountWithHttpInfo(id).getData(); } @@ -367,17 +370,17 @@ public ManagedAccountResponse retrieveManagedAccount(String id) throws ApiExcept * Retrieve a managed account * Retrieves the details of a single managed account. * @param id Managed Account User ID (required) - * @return ApiResponse<ManagedAccountResponse> + * @return ApiResponse<CreateManagedAccount200Response> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
*/ - public ApiResponse retrieveManagedAccountWithHttpInfo(String id) throws ApiException { + public ApiResponse retrieveManagedAccountWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -411,7 +414,7 @@ public ApiResponse retrieveManagedAccountWithHttpInfo(St String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ManagedAccountsApi.retrieveManagedAccount", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -422,18 +425,18 @@ public ApiResponse retrieveManagedAccountWithHttpInfo(St * Update a single managed account. * @param id Managed Account User ID (required) * @param updateManagedAccountRequest Parameters that define the updates to the managed account (required) - * @return ManagedAccountResponse + * @return CreateManagedAccount200Response * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ManagedAccountResponse updateManagedAccount(String id, UpdateManagedAccountRequest updateManagedAccountRequest) throws ApiException { + public CreateManagedAccount200Response updateManagedAccount(String id, UpdateManagedAccountRequest updateManagedAccountRequest) throws ApiException { return updateManagedAccountWithHttpInfo(id, updateManagedAccountRequest).getData(); } @@ -442,18 +445,18 @@ public ManagedAccountResponse updateManagedAccount(String id, UpdateManagedAccou * Update a single managed account. * @param id Managed Account User ID (required) * @param updateManagedAccountRequest Parameters that define the updates to the managed account (required) - * @return ApiResponse<ManagedAccountResponse> + * @return ApiResponse<CreateManagedAccount200Response> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful response with information about a single managed account. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse updateManagedAccountWithHttpInfo(String id, UpdateManagedAccountRequest updateManagedAccountRequest) throws ApiException { + public ApiResponse updateManagedAccountWithHttpInfo(String id, UpdateManagedAccountRequest updateManagedAccountRequest) throws ApiException { Object localVarPostBody = updateManagedAccountRequest; // verify the required parameter 'id' is set @@ -492,7 +495,7 @@ public ApiResponse updateManagedAccountWithHttpInfo(Stri String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ManagedAccountsApi.updateManagedAccount", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/MobileApplicationsApi.java b/src/main/java/com/telnyx/sdk/api/MobileApplicationsApi.java index 741273b3..e26d6c93 100644 --- a/src/main/java/com/telnyx/sdk/api/MobileApplicationsApi.java +++ b/src/main/java/com/telnyx/sdk/api/MobileApplicationsApi.java @@ -11,9 +11,7 @@ import com.telnyx.sdk.model.CreateMobileApplicationRequest; import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.MobileApplicationResponse; -import com.telnyx.sdk.model.OneOfCreateIosPushCredentialRequestCreateAndroidPushCredentialRequest; import com.telnyx.sdk.model.PushCredentialResponse; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; import java.util.UUID; import java.util.ArrayList; @@ -137,7 +135,7 @@ public ApiResponse addMobileApplicationWithHttpInfo(C 422 Unable to process request - */ - public PushCredentialResponse addPushCredential(UUID mobileApplicationId, UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { + public PushCredentialResponse addPushCredential(UUID mobileApplicationId, String UNKNOWN_BASE_TYPE) throws ApiException { return addPushCredentialWithHttpInfo(mobileApplicationId, UNKNOWN_BASE_TYPE).getData(); } @@ -156,7 +154,7 @@ public PushCredentialResponse addPushCredential(UUID mobileApplicationId, UNKNOW 422 Unable to process request - */ - public ApiResponse addPushCredentialWithHttpInfo(UUID mobileApplicationId, UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { + public ApiResponse addPushCredentialWithHttpInfo(UUID mobileApplicationId, String UNKNOWN_BASE_TYPE) throws ApiException { Object localVarPostBody = UNKNOWN_BASE_TYPE; // verify the required parameter 'mobileApplicationId' is set diff --git a/src/main/java/com/telnyx/sdk/api/MobileOperatorNetworksApi.java b/src/main/java/com/telnyx/sdk/api/MobileOperatorNetworksApi.java index 4b943fad..aefbfb86 100644 --- a/src/main/java/com/telnyx/sdk/api/MobileOperatorNetworksApi.java +++ b/src/main/java/com/telnyx/sdk/api/MobileOperatorNetworksApi.java @@ -9,7 +9,7 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.SearchMobileOperatorNetworksResponse; +import com.telnyx.sdk.model.MobileOperatorNetworksGet200Response; import java.util.ArrayList; import java.util.HashMap; @@ -58,7 +58,7 @@ public void setApiClient(ApiClient apiClient) { * @param filterMcc Filter by exact MCC. (optional) * @param filterMnc Filter by exact MNC. (optional) * @param filterTadig Filter by exact TADIG. (optional) - * @return SearchMobileOperatorNetworksResponse + * @return MobileOperatorNetworksGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -67,7 +67,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public SearchMobileOperatorNetworksResponse mobileOperatorNetworksGet(Integer pageNumber, Integer pageSize, String filterNameStartsWith, String filterNameContains, String filterNameEndsWith, String filterCountryCode, String filterMcc, String filterMnc, String filterTadig) throws ApiException { + public MobileOperatorNetworksGet200Response mobileOperatorNetworksGet(Integer pageNumber, Integer pageSize, String filterNameStartsWith, String filterNameContains, String filterNameEndsWith, String filterCountryCode, String filterMcc, String filterMnc, String filterTadig) throws ApiException { return mobileOperatorNetworksGetWithHttpInfo(pageNumber, pageSize, filterNameStartsWith, filterNameContains, filterNameEndsWith, filterCountryCode, filterMcc, filterMnc, filterTadig).getData(); } @@ -83,7 +83,7 @@ public SearchMobileOperatorNetworksResponse mobileOperatorNetworksGet(Integer pa * @param filterMcc Filter by exact MCC. (optional) * @param filterMnc Filter by exact MNC. (optional) * @param filterTadig Filter by exact TADIG. (optional) - * @return ApiResponse<SearchMobileOperatorNetworksResponse> + * @return ApiResponse<MobileOperatorNetworksGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -92,7 +92,7 @@ public SearchMobileOperatorNetworksResponse mobileOperatorNetworksGet(Integer pa
0 Unexpected error -
*/ - public ApiResponse mobileOperatorNetworksGetWithHttpInfo(Integer pageNumber, Integer pageSize, String filterNameStartsWith, String filterNameContains, String filterNameEndsWith, String filterCountryCode, String filterMcc, String filterMnc, String filterTadig) throws ApiException { + public ApiResponse mobileOperatorNetworksGetWithHttpInfo(Integer pageNumber, Integer pageSize, String filterNameStartsWith, String filterNameContains, String filterNameEndsWith, String filterCountryCode, String filterMcc, String filterMnc, String filterTadig) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -129,7 +129,7 @@ public ApiResponse mobileOperatorNetworksG String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("MobileOperatorNetworksApi.mobileOperatorNetworksGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/NetworksApi.java b/src/main/java/com/telnyx/sdk/api/NetworksApi.java new file mode 100644 index 00000000..4a529f50 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/NetworksApi.java @@ -0,0 +1,498 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.Errors; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.NetworkCreate; +import com.telnyx.sdk.model.NetworkCreate200Response; +import com.telnyx.sdk.model.NetworkInterfaceList200Response; +import com.telnyx.sdk.model.NetworkList200Response; +import java.util.UUID; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NetworksApi { + private ApiClient apiClient; + + public NetworksApi() { + this(Configuration.getDefaultApiClient()); + } + + public NetworksApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create a Network + * Create a new Network. + * @param networkCreate (required) + * @return NetworkCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public NetworkCreate200Response networkCreate(NetworkCreate networkCreate) throws ApiException { + return networkCreateWithHttpInfo(networkCreate).getData(); + } + + /** + * Create a Network + * Create a new Network. + * @param networkCreate (required) + * @return ApiResponse<NetworkCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse networkCreateWithHttpInfo(NetworkCreate networkCreate) throws ApiException { + Object localVarPostBody = networkCreate; + + // verify the required parameter 'networkCreate' is set + if (networkCreate == null) { + throw new ApiException(400, "Missing the required parameter 'networkCreate' when calling networkCreate"); + } + + // create path and map variables + String localVarPath = "/networks"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("NetworksApi.networkCreate", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete a Network + * Delete a Network. + * @param id Identifies the resource. (required) + * @return NetworkCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public NetworkCreate200Response networkDelete(UUID id) throws ApiException { + return networkDeleteWithHttpInfo(id).getData(); + } + + /** + * Delete a Network + * Delete a Network. + * @param id Identifies the resource. (required) + * @return ApiResponse<NetworkCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse networkDeleteWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling networkDelete"); + } + + // create path and map variables + String localVarPath = "/networks/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("NetworksApi.networkDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve a Network + * Retrieve a Network. + * @param id Identifies the resource. (required) + * @return NetworkCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public NetworkCreate200Response networkGet(UUID id) throws ApiException { + return networkGetWithHttpInfo(id).getData(); + } + + /** + * Retrieve a Network + * Retrieve a Network. + * @param id Identifies the resource. (required) + * @return ApiResponse<NetworkCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse networkGetWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling networkGet"); + } + + // create path and map variables + String localVarPath = "/networks/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("NetworksApi.networkGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all Interfaces for a Network. + * List all Interfaces for a Network. + * @param id Identifies the resource. (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterName The interface name to filter on. (optional) + * @param filterType The interface type to filter on. (optional) + * @param filterStatus The interface status to filter on. (optional) + * @return NetworkInterfaceList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public NetworkInterfaceList200Response networkInterfaceList(UUID id, Integer pageNumber, Integer pageSize, String filterName, String filterType, InterfaceStatus filterStatus) throws ApiException { + return networkInterfaceListWithHttpInfo(id, pageNumber, pageSize, filterName, filterType, filterStatus).getData(); + } + + /** + * List all Interfaces for a Network. + * List all Interfaces for a Network. + * @param id Identifies the resource. (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterName The interface name to filter on. (optional) + * @param filterType The interface type to filter on. (optional) + * @param filterStatus The interface status to filter on. (optional) + * @return ApiResponse<NetworkInterfaceList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse networkInterfaceListWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize, String filterName, String filterType, InterfaceStatus filterStatus) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling networkInterfaceList"); + } + + // create path and map variables + String localVarPath = "/networks/{id}/network_interfaces" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[name]", filterName)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[type]", filterType)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("NetworksApi.networkInterfaceList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all Networks + * List all Networks. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterName The network name to filter on. (optional) + * @return NetworkList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public NetworkList200Response networkList(Integer pageNumber, Integer pageSize, String filterName) throws ApiException { + return networkListWithHttpInfo(pageNumber, pageSize, filterName).getData(); + } + + /** + * List all Networks + * List all Networks. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterName The network name to filter on. (optional) + * @return ApiResponse<NetworkList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse networkListWithHttpInfo(Integer pageNumber, Integer pageSize, String filterName) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/networks"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[name]", filterName)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("NetworksApi.networkList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Update a Network + * Update a Network. + * @param id Identifies the resource. (required) + * @param networkCreate (required) + * @return NetworkCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public NetworkCreate200Response networkUpdate(UUID id, NetworkCreate networkCreate) throws ApiException { + return networkUpdateWithHttpInfo(id, networkCreate).getData(); + } + + /** + * Update a Network + * Update a Network. + * @param id Identifies the resource. (required) + * @param networkCreate (required) + * @return ApiResponse<NetworkCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse networkUpdateWithHttpInfo(UUID id, NetworkCreate networkCreate) throws ApiException { + Object localVarPostBody = networkCreate; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling networkUpdate"); + } + + // verify the required parameter 'networkCreate' is set + if (networkCreate == null) { + throw new ApiException(400, "Missing the required parameter 'networkCreate' when calling networkUpdate"); + } + + // create path and map variables + String localVarPath = "/networks/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("NetworksApi.networkUpdate", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/NotificationsApi.java b/src/main/java/com/telnyx/sdk/api/NotificationsApi.java index f54e55f6..613588e9 100644 --- a/src/main/java/com/telnyx/sdk/api/NotificationsApi.java +++ b/src/main/java/com/telnyx/sdk/api/NotificationsApi.java @@ -8,29 +8,19 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreateNotificationChannel; -import com.telnyx.sdk.model.CreateNotificationProfile; -import com.telnyx.sdk.model.CreateNotificationSetting; -import com.telnyx.sdk.model.CreateNotificationSettingAsync; -import com.telnyx.sdk.model.DeleteNotificationChannel; -import com.telnyx.sdk.model.DeleteNotificationProfiles; -import com.telnyx.sdk.model.DeleteNotificationSetting; -import com.telnyx.sdk.model.DeleteNotificationSettingAsync; +import com.telnyx.sdk.model.CreateNotificationChannels200Response; +import com.telnyx.sdk.model.CreateNotificationProfile200Response; +import com.telnyx.sdk.model.CreateNotificationSetting200Response; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.ListNotificationChannels; -import com.telnyx.sdk.model.ListNotificationEvenConditions; -import com.telnyx.sdk.model.ListNotificationEvents; -import com.telnyx.sdk.model.ListNotificationProfiles; -import com.telnyx.sdk.model.ListNotificationSettings; +import com.telnyx.sdk.model.FindNotificationsEvents200Response; +import com.telnyx.sdk.model.FindNotificationsEventsConditions200Response; +import com.telnyx.sdk.model.FindNotificationsProfiles200Response; +import com.telnyx.sdk.model.ListNotificationChannels200Response; +import com.telnyx.sdk.model.ListNotificationSettings200Response; import com.telnyx.sdk.model.NotificationChannel; import com.telnyx.sdk.model.NotificationProfile; import com.telnyx.sdk.model.NotificationSetting; -import com.telnyx.sdk.model.RetrieveNotificationChannel; -import com.telnyx.sdk.model.RetrieveNotificationProfile; -import com.telnyx.sdk.model.RetrieveNotificationSetting; import java.util.UUID; -import com.telnyx.sdk.model.UpdateNotificationChannel; -import com.telnyx.sdk.model.UpdateNotificationProfile; import java.util.ArrayList; import java.util.HashMap; @@ -71,7 +61,7 @@ public void setApiClient(ApiClient apiClient) { * Create a notification channel * Create a notification channel. * @param notificationChannel Add a Notification Channel (optional) - * @return CreateNotificationChannel + * @return CreateNotificationChannels200Response * @throws ApiException if fails to make API call * @http.response.details @@ -80,7 +70,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public CreateNotificationChannel createNotificationChannels(NotificationChannel notificationChannel) throws ApiException { + public CreateNotificationChannels200Response createNotificationChannels(NotificationChannel notificationChannel) throws ApiException { return createNotificationChannelsWithHttpInfo(notificationChannel).getData(); } @@ -88,7 +78,7 @@ public CreateNotificationChannel createNotificationChannels(NotificationChannel * Create a notification channel * Create a notification channel. * @param notificationChannel Add a Notification Channel (optional) - * @return ApiResponse<CreateNotificationChannel> + * @return ApiResponse<CreateNotificationChannels200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -97,7 +87,7 @@ public CreateNotificationChannel createNotificationChannels(NotificationChannel
0 Unexpected error -
*/ - public ApiResponse createNotificationChannelsWithHttpInfo(NotificationChannel notificationChannel) throws ApiException { + public ApiResponse createNotificationChannelsWithHttpInfo(NotificationChannel notificationChannel) throws ApiException { Object localVarPostBody = notificationChannel; // create path and map variables @@ -125,7 +115,7 @@ public ApiResponse createNotificationChannelsWithHttp String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.createNotificationChannels", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -135,7 +125,7 @@ public ApiResponse createNotificationChannelsWithHttp * Create a notification profile * Create a notification profile. * @param notificationProfile Add a Notification Profile (optional) - * @return CreateNotificationProfile + * @return CreateNotificationProfile200Response * @throws ApiException if fails to make API call * @http.response.details @@ -144,7 +134,7 @@ public ApiResponse createNotificationChannelsWithHttp
0 Unexpected error -
*/ - public CreateNotificationProfile createNotificationProfile(NotificationProfile notificationProfile) throws ApiException { + public CreateNotificationProfile200Response createNotificationProfile(NotificationProfile notificationProfile) throws ApiException { return createNotificationProfileWithHttpInfo(notificationProfile).getData(); } @@ -152,7 +142,7 @@ public CreateNotificationProfile createNotificationProfile(NotificationProfile n * Create a notification profile * Create a notification profile. * @param notificationProfile Add a Notification Profile (optional) - * @return ApiResponse<CreateNotificationProfile> + * @return ApiResponse<CreateNotificationProfile200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -161,7 +151,7 @@ public CreateNotificationProfile createNotificationProfile(NotificationProfile n
0 Unexpected error -
*/ - public ApiResponse createNotificationProfileWithHttpInfo(NotificationProfile notificationProfile) throws ApiException { + public ApiResponse createNotificationProfileWithHttpInfo(NotificationProfile notificationProfile) throws ApiException { Object localVarPostBody = notificationProfile; // create path and map variables @@ -189,7 +179,7 @@ public ApiResponse createNotificationProfileWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.createNotificationProfile", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -199,7 +189,7 @@ public ApiResponse createNotificationProfileWithHttpI * Add a Notification Setting * Add a notification setting. * @param notificationSetting (optional) - * @return CreateNotificationSetting + * @return CreateNotificationSetting200Response * @throws ApiException if fails to make API call * @http.response.details @@ -209,7 +199,7 @@ public ApiResponse createNotificationProfileWithHttpI
0 Unexpected error -
*/ - public CreateNotificationSetting createNotificationSetting(NotificationSetting notificationSetting) throws ApiException { + public CreateNotificationSetting200Response createNotificationSetting(NotificationSetting notificationSetting) throws ApiException { return createNotificationSettingWithHttpInfo(notificationSetting).getData(); } @@ -217,7 +207,7 @@ public CreateNotificationSetting createNotificationSetting(NotificationSetting n * Add a Notification Setting * Add a notification setting. * @param notificationSetting (optional) - * @return ApiResponse<CreateNotificationSetting> + * @return ApiResponse<CreateNotificationSetting200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -227,7 +217,7 @@ public CreateNotificationSetting createNotificationSetting(NotificationSetting n
0 Unexpected error -
*/ - public ApiResponse createNotificationSettingWithHttpInfo(NotificationSetting notificationSetting) throws ApiException { + public ApiResponse createNotificationSettingWithHttpInfo(NotificationSetting notificationSetting) throws ApiException { Object localVarPostBody = notificationSetting; // create path and map variables @@ -255,7 +245,7 @@ public ApiResponse createNotificationSettingWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.createNotificationSetting", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -264,8 +254,8 @@ public ApiResponse createNotificationSettingWithHttpI /** * Delete a notification channel * Delete a notification channel. - * @param id Identifies the resource. (required) - * @return DeleteNotificationChannel + * @param id The id of the resource. (required) + * @return CreateNotificationChannels200Response * @throws ApiException if fails to make API call * @http.response.details @@ -274,15 +264,15 @@ public ApiResponse createNotificationSettingWithHttpI
0 Unexpected error -
*/ - public DeleteNotificationChannel deleteNotificationChannel(UUID id) throws ApiException { + public CreateNotificationChannels200Response deleteNotificationChannel(UUID id) throws ApiException { return deleteNotificationChannelWithHttpInfo(id).getData(); } /** * Delete a notification channel * Delete a notification channel. - * @param id Identifies the resource. (required) - * @return ApiResponse<DeleteNotificationChannel> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateNotificationChannels200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -291,7 +281,7 @@ public DeleteNotificationChannel deleteNotificationChannel(UUID id) throws ApiEx
0 Unexpected error -
*/ - public ApiResponse deleteNotificationChannelWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteNotificationChannelWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -325,7 +315,7 @@ public ApiResponse deleteNotificationChannelWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.deleteNotificationChannel", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -334,8 +324,8 @@ public ApiResponse deleteNotificationChannelWithHttpI /** * Delete a notification profile * Delete a notification profile. - * @param id Identifies the resource. (required) - * @return DeleteNotificationProfiles + * @param id The id of the resource. (required) + * @return CreateNotificationProfile200Response * @throws ApiException if fails to make API call * @http.response.details @@ -344,15 +334,15 @@ public ApiResponse deleteNotificationChannelWithHttpI
0 Unexpected error -
*/ - public DeleteNotificationProfiles deleteNotificationProfile(UUID id) throws ApiException { + public CreateNotificationProfile200Response deleteNotificationProfile(UUID id) throws ApiException { return deleteNotificationProfileWithHttpInfo(id).getData(); } /** * Delete a notification profile * Delete a notification profile. - * @param id Identifies the resource. (required) - * @return ApiResponse<DeleteNotificationProfiles> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateNotificationProfile200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -361,7 +351,7 @@ public DeleteNotificationProfiles deleteNotificationProfile(UUID id) throws ApiE
0 Unexpected error -
*/ - public ApiResponse deleteNotificationProfileWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteNotificationProfileWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -395,7 +385,7 @@ public ApiResponse deleteNotificationProfileWithHttp String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.deleteNotificationProfile", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -404,8 +394,8 @@ public ApiResponse deleteNotificationProfileWithHttp /** * Delete a notification setting * Delete a notification setting. - * @param id Identifies the resource. (required) - * @return DeleteNotificationSetting + * @param id The id of the resource. (required) + * @return CreateNotificationSetting200Response * @throws ApiException if fails to make API call * @http.response.details @@ -415,15 +405,15 @@ public ApiResponse deleteNotificationProfileWithHttp
0 Unexpected error -
*/ - public DeleteNotificationSetting deleteNotificationSetting(UUID id) throws ApiException { + public CreateNotificationSetting200Response deleteNotificationSetting(UUID id) throws ApiException { return deleteNotificationSettingWithHttpInfo(id).getData(); } /** * Delete a notification setting * Delete a notification setting. - * @param id Identifies the resource. (required) - * @return ApiResponse<DeleteNotificationSetting> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateNotificationSetting200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -433,7 +423,7 @@ public DeleteNotificationSetting deleteNotificationSetting(UUID id) throws ApiEx
0 Unexpected error -
*/ - public ApiResponse deleteNotificationSettingWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteNotificationSettingWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -467,7 +457,7 @@ public ApiResponse deleteNotificationSettingWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.deleteNotificationSetting", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -478,7 +468,7 @@ public ApiResponse deleteNotificationSettingWithHttpI * Returns a list of your notifications events. * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListNotificationEvents + * @return FindNotificationsEvents200Response * @throws ApiException if fails to make API call * @http.response.details @@ -487,7 +477,7 @@ public ApiResponse deleteNotificationSettingWithHttpI
0 Unexpected error -
*/ - public ListNotificationEvents findNotificationsEvents(Integer pageNumber, Integer pageSize) throws ApiException { + public FindNotificationsEvents200Response findNotificationsEvents(Integer pageNumber, Integer pageSize) throws ApiException { return findNotificationsEventsWithHttpInfo(pageNumber, pageSize).getData(); } @@ -496,7 +486,7 @@ public ListNotificationEvents findNotificationsEvents(Integer pageNumber, Intege * Returns a list of your notifications events. * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListNotificationEvents> + * @return ApiResponse<FindNotificationsEvents200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -505,7 +495,7 @@ public ListNotificationEvents findNotificationsEvents(Integer pageNumber, Intege
0 Unexpected error -
*/ - public ApiResponse findNotificationsEventsWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse findNotificationsEventsWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -535,7 +525,7 @@ public ApiResponse findNotificationsEventsWithHttpInfo(I String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.findNotificationsEvents", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -547,7 +537,7 @@ public ApiResponse findNotificationsEventsWithHttpInfo(I * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterAssociatedRecordTypeEq Filter by the associated record type (optional) - * @return ListNotificationEvenConditions + * @return FindNotificationsEventsConditions200Response * @throws ApiException if fails to make API call * @http.response.details @@ -556,7 +546,7 @@ public ApiResponse findNotificationsEventsWithHttpInfo(I
0 Unexpected error -
*/ - public ListNotificationEvenConditions findNotificationsEventsConditions(Integer pageNumber, Integer pageSize, String filterAssociatedRecordTypeEq) throws ApiException { + public FindNotificationsEventsConditions200Response findNotificationsEventsConditions(Integer pageNumber, Integer pageSize, String filterAssociatedRecordTypeEq) throws ApiException { return findNotificationsEventsConditionsWithHttpInfo(pageNumber, pageSize, filterAssociatedRecordTypeEq).getData(); } @@ -566,7 +556,7 @@ public ListNotificationEvenConditions findNotificationsEventsConditions(Integer * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterAssociatedRecordTypeEq Filter by the associated record type (optional) - * @return ApiResponse<ListNotificationEvenConditions> + * @return ApiResponse<FindNotificationsEventsConditions200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -575,7 +565,7 @@ public ListNotificationEvenConditions findNotificationsEventsConditions(Integer
0 Unexpected error -
*/ - public ApiResponse findNotificationsEventsConditionsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterAssociatedRecordTypeEq) throws ApiException { + public ApiResponse findNotificationsEventsConditionsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterAssociatedRecordTypeEq) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -606,7 +596,7 @@ public ApiResponse findNotificationsEventsCondit String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.findNotificationsEventsConditions", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -617,7 +607,7 @@ public ApiResponse findNotificationsEventsCondit * Returns a list of your notifications profiles. * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListNotificationProfiles + * @return FindNotificationsProfiles200Response * @throws ApiException if fails to make API call * @http.response.details @@ -626,7 +616,7 @@ public ApiResponse findNotificationsEventsCondit
0 Unexpected error -
*/ - public ListNotificationProfiles findNotificationsProfiles(Integer pageNumber, Integer pageSize) throws ApiException { + public FindNotificationsProfiles200Response findNotificationsProfiles(Integer pageNumber, Integer pageSize) throws ApiException { return findNotificationsProfilesWithHttpInfo(pageNumber, pageSize).getData(); } @@ -635,7 +625,7 @@ public ListNotificationProfiles findNotificationsProfiles(Integer pageNumber, In * Returns a list of your notifications profiles. * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListNotificationProfiles> + * @return ApiResponse<FindNotificationsProfiles200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -644,7 +634,7 @@ public ListNotificationProfiles findNotificationsProfiles(Integer pageNumber, In
0 Unexpected error -
*/ - public ApiResponse findNotificationsProfilesWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse findNotificationsProfilesWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -674,7 +664,7 @@ public ApiResponse findNotificationsProfilesWithHttpIn String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.findNotificationsProfiles", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -686,7 +676,7 @@ public ApiResponse findNotificationsProfilesWithHttpIn * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterChannelTypeIdEq Filter by the id of a channel type (optional) - * @return ListNotificationChannels + * @return ListNotificationChannels200Response * @throws ApiException if fails to make API call * @http.response.details @@ -695,7 +685,7 @@ public ApiResponse findNotificationsProfilesWithHttpIn
0 Unexpected error -
*/ - public ListNotificationChannels listNotificationChannels(Integer pageNumber, Integer pageSize, String filterChannelTypeIdEq) throws ApiException { + public ListNotificationChannels200Response listNotificationChannels(Integer pageNumber, Integer pageSize, String filterChannelTypeIdEq) throws ApiException { return listNotificationChannelsWithHttpInfo(pageNumber, pageSize, filterChannelTypeIdEq).getData(); } @@ -705,7 +695,7 @@ public ListNotificationChannels listNotificationChannels(Integer pageNumber, Int * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterChannelTypeIdEq Filter by the id of a channel type (optional) - * @return ApiResponse<ListNotificationChannels> + * @return ApiResponse<ListNotificationChannels200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -714,7 +704,7 @@ public ListNotificationChannels listNotificationChannels(Integer pageNumber, Int
0 Unexpected error -
*/ - public ApiResponse listNotificationChannelsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterChannelTypeIdEq) throws ApiException { + public ApiResponse listNotificationChannelsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterChannelTypeIdEq) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -745,7 +735,7 @@ public ApiResponse listNotificationChannelsWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.listNotificationChannels", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -761,7 +751,7 @@ public ApiResponse listNotificationChannelsWithHttpInf * @param filterNotificationEventConditionIdEq Filter by the id of a notification channel (optional) * @param filterAssociatedRecordTypeEq Filter by the associated record type (optional) * @param filterStatusEq The status of a notification setting (optional) - * @return ListNotificationSettings + * @return ListNotificationSettings200Response * @throws ApiException if fails to make API call * @http.response.details @@ -770,7 +760,7 @@ public ApiResponse listNotificationChannelsWithHttpInf
0 Unexpected error -
*/ - public ListNotificationSettings listNotificationSettings(Integer pageNumber, Integer pageSize, String filterNotificationProfileIdEq, String filterNotificationChannelEq, String filterNotificationEventConditionIdEq, String filterAssociatedRecordTypeEq, String filterStatusEq) throws ApiException { + public ListNotificationSettings200Response listNotificationSettings(Integer pageNumber, Integer pageSize, String filterNotificationProfileIdEq, String filterNotificationChannelEq, String filterNotificationEventConditionIdEq, String filterAssociatedRecordTypeEq, String filterStatusEq) throws ApiException { return listNotificationSettingsWithHttpInfo(pageNumber, pageSize, filterNotificationProfileIdEq, filterNotificationChannelEq, filterNotificationEventConditionIdEq, filterAssociatedRecordTypeEq, filterStatusEq).getData(); } @@ -784,7 +774,7 @@ public ListNotificationSettings listNotificationSettings(Integer pageNumber, Int * @param filterNotificationEventConditionIdEq Filter by the id of a notification channel (optional) * @param filterAssociatedRecordTypeEq Filter by the associated record type (optional) * @param filterStatusEq The status of a notification setting (optional) - * @return ApiResponse<ListNotificationSettings> + * @return ApiResponse<ListNotificationSettings200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -793,7 +783,7 @@ public ListNotificationSettings listNotificationSettings(Integer pageNumber, Int
0 Unexpected error -
*/ - public ApiResponse listNotificationSettingsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterNotificationProfileIdEq, String filterNotificationChannelEq, String filterNotificationEventConditionIdEq, String filterAssociatedRecordTypeEq, String filterStatusEq) throws ApiException { + public ApiResponse listNotificationSettingsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterNotificationProfileIdEq, String filterNotificationChannelEq, String filterNotificationEventConditionIdEq, String filterAssociatedRecordTypeEq, String filterStatusEq) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -828,7 +818,7 @@ public ApiResponse listNotificationSettingsWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.listNotificationSettings", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -837,8 +827,8 @@ public ApiResponse listNotificationSettingsWithHttpInf /** * Retrieve a notification channel * Retrieve a notification channel. - * @param id Identifies the resource. (required) - * @return RetrieveNotificationChannel + * @param id The id of the resource. (required) + * @return CreateNotificationChannels200Response * @throws ApiException if fails to make API call * @http.response.details @@ -847,15 +837,15 @@ public ApiResponse listNotificationSettingsWithHttpInf
0 Unexpected error -
*/ - public RetrieveNotificationChannel retrieveNotificationChannel(UUID id) throws ApiException { + public CreateNotificationChannels200Response retrieveNotificationChannel(UUID id) throws ApiException { return retrieveNotificationChannelWithHttpInfo(id).getData(); } /** * Retrieve a notification channel * Retrieve a notification channel. - * @param id Identifies the resource. (required) - * @return ApiResponse<RetrieveNotificationChannel> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateNotificationChannels200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -864,7 +854,7 @@ public RetrieveNotificationChannel retrieveNotificationChannel(UUID id) throws A
0 Unexpected error -
*/ - public ApiResponse retrieveNotificationChannelWithHttpInfo(UUID id) throws ApiException { + public ApiResponse retrieveNotificationChannelWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -898,7 +888,7 @@ public ApiResponse retrieveNotificationChannelWithH String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.retrieveNotificationChannel", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -907,8 +897,8 @@ public ApiResponse retrieveNotificationChannelWithH /** * Retrieve a notification profile * Retrieve a notification profile. - * @param id Identifies the resource. (required) - * @return RetrieveNotificationProfile + * @param id The id of the resource. (required) + * @return CreateNotificationProfile200Response * @throws ApiException if fails to make API call * @http.response.details @@ -917,15 +907,15 @@ public ApiResponse retrieveNotificationChannelWithH
0 Unexpected error -
*/ - public RetrieveNotificationProfile retrieveNotificationProfile(UUID id) throws ApiException { + public CreateNotificationProfile200Response retrieveNotificationProfile(UUID id) throws ApiException { return retrieveNotificationProfileWithHttpInfo(id).getData(); } /** * Retrieve a notification profile * Retrieve a notification profile. - * @param id Identifies the resource. (required) - * @return ApiResponse<RetrieveNotificationProfile> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateNotificationProfile200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -934,7 +924,7 @@ public RetrieveNotificationProfile retrieveNotificationProfile(UUID id) throws A
0 Unexpected error -
*/ - public ApiResponse retrieveNotificationProfileWithHttpInfo(UUID id) throws ApiException { + public ApiResponse retrieveNotificationProfileWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -968,7 +958,7 @@ public ApiResponse retrieveNotificationProfileWithH String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.retrieveNotificationProfile", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -977,8 +967,8 @@ public ApiResponse retrieveNotificationProfileWithH /** * Retrieve a notification setting * Retrieve a notification setting. - * @param id Identifies the resource. (required) - * @return RetrieveNotificationSetting + * @param id The id of the resource. (required) + * @return CreateNotificationSetting200Response * @throws ApiException if fails to make API call * @http.response.details @@ -987,15 +977,15 @@ public ApiResponse retrieveNotificationProfileWithH
0 Unexpected error -
*/ - public RetrieveNotificationSetting retrieveNotificationSetting(UUID id) throws ApiException { + public CreateNotificationSetting200Response retrieveNotificationSetting(UUID id) throws ApiException { return retrieveNotificationSettingWithHttpInfo(id).getData(); } /** * Retrieve a notification setting * Retrieve a notification setting. - * @param id Identifies the resource. (required) - * @return ApiResponse<RetrieveNotificationSetting> + * @param id The id of the resource. (required) + * @return ApiResponse<CreateNotificationSetting200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1004,7 +994,7 @@ public RetrieveNotificationSetting retrieveNotificationSetting(UUID id) throws A
0 Unexpected error -
*/ - public ApiResponse retrieveNotificationSettingWithHttpInfo(UUID id) throws ApiException { + public ApiResponse retrieveNotificationSettingWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1038,7 +1028,7 @@ public ApiResponse retrieveNotificationSettingWithH String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.retrieveNotificationSetting", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1047,9 +1037,9 @@ public ApiResponse retrieveNotificationSettingWithH /** * Update a notification channel * Update a notification channel. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @param notificationChannel Update notification channel object (required) - * @return UpdateNotificationChannel + * @return CreateNotificationChannels200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1058,16 +1048,16 @@ public ApiResponse retrieveNotificationSettingWithH
0 Unexpected error -
*/ - public UpdateNotificationChannel updateNotificationChannel(UUID id, NotificationChannel notificationChannel) throws ApiException { + public CreateNotificationChannels200Response updateNotificationChannel(UUID id, NotificationChannel notificationChannel) throws ApiException { return updateNotificationChannelWithHttpInfo(id, notificationChannel).getData(); } /** * Update a notification channel * Update a notification channel. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @param notificationChannel Update notification channel object (required) - * @return ApiResponse<UpdateNotificationChannel> + * @return ApiResponse<CreateNotificationChannels200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1076,7 +1066,7 @@ public UpdateNotificationChannel updateNotificationChannel(UUID id, Notification
0 Unexpected error -
*/ - public ApiResponse updateNotificationChannelWithHttpInfo(UUID id, NotificationChannel notificationChannel) throws ApiException { + public ApiResponse updateNotificationChannelWithHttpInfo(UUID id, NotificationChannel notificationChannel) throws ApiException { Object localVarPostBody = notificationChannel; // verify the required parameter 'id' is set @@ -1115,7 +1105,7 @@ public ApiResponse updateNotificationChannelWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.updateNotificationChannel", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1124,9 +1114,9 @@ public ApiResponse updateNotificationChannelWithHttpI /** * Update a notification profile * Update a notification profile. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @param notificationProfile Update notification profile object (required) - * @return UpdateNotificationProfile + * @return CreateNotificationProfile200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1135,16 +1125,16 @@ public ApiResponse updateNotificationChannelWithHttpI
0 Unexpected error -
*/ - public UpdateNotificationProfile updateNotificationProfile(UUID id, NotificationProfile notificationProfile) throws ApiException { + public CreateNotificationProfile200Response updateNotificationProfile(UUID id, NotificationProfile notificationProfile) throws ApiException { return updateNotificationProfileWithHttpInfo(id, notificationProfile).getData(); } /** * Update a notification profile * Update a notification profile. - * @param id Identifies the resource. (required) + * @param id The id of the resource. (required) * @param notificationProfile Update notification profile object (required) - * @return ApiResponse<UpdateNotificationProfile> + * @return ApiResponse<CreateNotificationProfile200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1153,7 +1143,7 @@ public UpdateNotificationProfile updateNotificationProfile(UUID id, Notification
0 Unexpected error -
*/ - public ApiResponse updateNotificationProfileWithHttpInfo(UUID id, NotificationProfile notificationProfile) throws ApiException { + public ApiResponse updateNotificationProfileWithHttpInfo(UUID id, NotificationProfile notificationProfile) throws ApiException { Object localVarPostBody = notificationProfile; // verify the required parameter 'id' is set @@ -1192,7 +1182,7 @@ public ApiResponse updateNotificationProfileWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NotificationsApi.updateNotificationProfile", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/NumberBackgroundJobsApi.java b/src/main/java/com/telnyx/sdk/api/NumberBackgroundJobsApi.java index 1d8b26bf..47738fdf 100644 --- a/src/main/java/com/telnyx/sdk/api/NumberBackgroundJobsApi.java +++ b/src/main/java/com/telnyx/sdk/api/NumberBackgroundJobsApi.java @@ -8,15 +8,15 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreatePhoneNumbersEnableEmergency; -import com.telnyx.sdk.model.CreatePhoneNumbersJobDeletePhoneNumbers; import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.ListPhoneNumbersBackgroundJobsResponse; +import com.telnyx.sdk.model.PhoneNumbersEnableEmergency; +import com.telnyx.sdk.model.PhoneNumbersJob; +import com.telnyx.sdk.model.PhoneNumbersJobDeletePhoneNumbers; import com.telnyx.sdk.model.PhoneNumbersJobDeletePhoneNumbersRequest; import com.telnyx.sdk.model.PhoneNumbersJobUpdateEmergencySettingsRequest; import com.telnyx.sdk.model.PhoneNumbersJobUpdatePhoneNumbers; import com.telnyx.sdk.model.PhoneNumbersJobUpdatePhoneNumbersRequest; -import com.telnyx.sdk.model.RetrievePhoneNumbersJob; import java.util.ArrayList; import java.util.HashMap; @@ -54,7 +54,7 @@ public void setApiClient(ApiClient apiClient) { } -private ApiResponse createPhoneNumbersJobDeletePhoneNumbersWithHttpInfo(PhoneNumbersJobDeletePhoneNumbersRequest phoneNumbersJobDeletePhoneNumbersRequest) throws ApiException { +private ApiResponse createPhoneNumbersJobDeletePhoneNumbersWithHttpInfo(PhoneNumbersJobDeletePhoneNumbersRequest phoneNumbersJobDeletePhoneNumbersRequest) throws ApiException { Object localVarPostBody = phoneNumbersJobDeletePhoneNumbersRequest; // verify the required parameter 'phoneNumbersJobDeletePhoneNumbersRequest' is set @@ -87,7 +87,7 @@ private ApiResponse createPhoneNumbersJ String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberBackgroundJobsApi.createPhoneNumbersJobDeletePhoneNumbers", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -112,7 +112,7 @@ public APIcreatePhoneNumbersJobDeletePhoneNumbersRequest phoneNumbersJobDeletePh /** * Execute createPhoneNumbersJobDeletePhoneNumbers request - * @return CreatePhoneNumbersJobDeletePhoneNumbers + * @return PhoneNumbersJobDeletePhoneNumbers * @throws ApiException if fails to make API call * @http.response.details @@ -123,13 +123,13 @@ public APIcreatePhoneNumbersJobDeletePhoneNumbersRequest phoneNumbersJobDeletePh */ - public CreatePhoneNumbersJobDeletePhoneNumbers execute() throws ApiException { + public PhoneNumbersJobDeletePhoneNumbers execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute createPhoneNumbersJobDeletePhoneNumbers request with HTTP info returned - * @return ApiResponse<CreatePhoneNumbersJobDeletePhoneNumbers> + * @return ApiResponse<PhoneNumbersJobDeletePhoneNumbers> * @throws ApiException if fails to make API call * @http.response.details
@@ -139,7 +139,7 @@ public CreatePhoneNumbersJobDeletePhoneNumbers execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return createPhoneNumbersJobDeletePhoneNumbersWithHttpInfo(phoneNumbersJobDeletePhoneNumbersRequest); } } @@ -159,7 +159,7 @@ public APIcreatePhoneNumbersJobDeletePhoneNumbersRequest createPhoneNumbersJobDe * Update the emergency settings from a batch of numbers * Creates a background job to update the emergency settings of a collection of phone numbers. At most one thousand numbers can be updated per API call. * @param phoneNumbersJobUpdateEmergencySettingsRequest (required) - * @return CreatePhoneNumbersEnableEmergency + * @return PhoneNumbersEnableEmergency * @throws ApiException if fails to make API call * @http.response.details @@ -168,7 +168,7 @@ public APIcreatePhoneNumbersJobDeletePhoneNumbersRequest createPhoneNumbersJobDe
0 Unexpected error -
*/ - public CreatePhoneNumbersEnableEmergency createPhoneNumbersJobUpdateEmergencySettings(PhoneNumbersJobUpdateEmergencySettingsRequest phoneNumbersJobUpdateEmergencySettingsRequest) throws ApiException { + public PhoneNumbersEnableEmergency createPhoneNumbersJobUpdateEmergencySettings(PhoneNumbersJobUpdateEmergencySettingsRequest phoneNumbersJobUpdateEmergencySettingsRequest) throws ApiException { return createPhoneNumbersJobUpdateEmergencySettingsWithHttpInfo(phoneNumbersJobUpdateEmergencySettingsRequest).getData(); } @@ -176,7 +176,7 @@ public CreatePhoneNumbersEnableEmergency createPhoneNumbersJobUpdateEmergencySet * Update the emergency settings from a batch of numbers * Creates a background job to update the emergency settings of a collection of phone numbers. At most one thousand numbers can be updated per API call. * @param phoneNumbersJobUpdateEmergencySettingsRequest (required) - * @return ApiResponse<CreatePhoneNumbersEnableEmergency> + * @return ApiResponse<PhoneNumbersEnableEmergency> * @throws ApiException if fails to make API call * @http.response.details @@ -185,7 +185,7 @@ public CreatePhoneNumbersEnableEmergency createPhoneNumbersJobUpdateEmergencySet
0 Unexpected error -
*/ - public ApiResponse createPhoneNumbersJobUpdateEmergencySettingsWithHttpInfo(PhoneNumbersJobUpdateEmergencySettingsRequest phoneNumbersJobUpdateEmergencySettingsRequest) throws ApiException { + public ApiResponse createPhoneNumbersJobUpdateEmergencySettingsWithHttpInfo(PhoneNumbersJobUpdateEmergencySettingsRequest phoneNumbersJobUpdateEmergencySettingsRequest) throws ApiException { Object localVarPostBody = phoneNumbersJobUpdateEmergencySettingsRequest; // verify the required parameter 'phoneNumbersJobUpdateEmergencySettingsRequest' is set @@ -218,7 +218,7 @@ public ApiResponse createPhoneNumbersJobUpdat String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberBackgroundJobsApi.createPhoneNumbersJobUpdateEmergencySettings", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -461,7 +461,7 @@ public APIlistPhoneNumbersJobsRequest listPhoneNumbersJobs() throws ApiException return new APIlistPhoneNumbersJobsRequest(); } -private ApiResponse retrievePhoneNumbersJobWithHttpInfo(String id) throws ApiException { +private ApiResponse retrievePhoneNumbersJobWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -495,7 +495,7 @@ private ApiResponse retrievePhoneNumbersJobWithHttpInfo String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberBackgroundJobsApi.retrievePhoneNumbersJob", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -511,7 +511,7 @@ private APIretrievePhoneNumbersJobRequest(String id) { /** * Execute retrievePhoneNumbersJob request - * @return RetrievePhoneNumbersJob + * @return PhoneNumbersJob * @throws ApiException if fails to make API call * @http.response.details @@ -522,13 +522,13 @@ private APIretrievePhoneNumbersJobRequest(String id) { */ - public RetrievePhoneNumbersJob execute() throws ApiException { + public PhoneNumbersJob execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute retrievePhoneNumbersJob request with HTTP info returned - * @return ApiResponse<RetrievePhoneNumbersJob> + * @return ApiResponse<PhoneNumbersJob> * @throws ApiException if fails to make API call * @http.response.details
@@ -538,7 +538,7 @@ public RetrievePhoneNumbersJob execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return retrievePhoneNumbersJobWithHttpInfo(id); } } diff --git a/src/main/java/com/telnyx/sdk/api/NumberBlocksBackgroundJobsApi.java b/src/main/java/com/telnyx/sdk/api/NumberBlocksBackgroundJobsApi.java index be0ce993..64e75288 100644 --- a/src/main/java/com/telnyx/sdk/api/NumberBlocksBackgroundJobsApi.java +++ b/src/main/java/com/telnyx/sdk/api/NumberBlocksBackgroundJobsApi.java @@ -10,9 +10,9 @@ import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.ListPhoneNumberBlocksBackgroundJobsResponse; +import com.telnyx.sdk.model.PhoneNumberBlocksJob; import com.telnyx.sdk.model.PhoneNumberBlocksJobDeletePhoneNumberBlock; import com.telnyx.sdk.model.PhoneNumberBlocksJobDeletePhoneNumberBlockRequest; -import com.telnyx.sdk.model.RetrievePhoneNumberBlocksJob; import java.util.ArrayList; import java.util.HashMap; @@ -298,7 +298,7 @@ public APIlistPhoneNumberBlocksJobsRequest listPhoneNumberBlocksJobs() throws Ap return new APIlistPhoneNumberBlocksJobsRequest(); } -private ApiResponse retrievePhoneNumberBlocksJobWithHttpInfo(String id) throws ApiException { +private ApiResponse retrievePhoneNumberBlocksJobWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -332,7 +332,7 @@ private ApiResponse retrievePhoneNumberBlocksJobWi String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberBlocksBackgroundJobsApi.retrievePhoneNumberBlocksJob", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -348,7 +348,7 @@ private APIretrievePhoneNumberBlocksJobRequest(String id) { /** * Execute retrievePhoneNumberBlocksJob request - * @return RetrievePhoneNumberBlocksJob + * @return PhoneNumberBlocksJob * @throws ApiException if fails to make API call * @http.response.details @@ -359,13 +359,13 @@ private APIretrievePhoneNumberBlocksJobRequest(String id) { */ - public RetrievePhoneNumberBlocksJob execute() throws ApiException { + public PhoneNumberBlocksJob execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute retrievePhoneNumberBlocksJob request with HTTP info returned - * @return ApiResponse<RetrievePhoneNumberBlocksJob> + * @return ApiResponse<PhoneNumberBlocksJob> * @throws ApiException if fails to make API call * @http.response.details
@@ -375,7 +375,7 @@ public RetrievePhoneNumberBlocksJob execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return retrievePhoneNumberBlocksJobWithHttpInfo(id); } } diff --git a/src/main/java/com/telnyx/sdk/api/NumberConfigurationsApi.java b/src/main/java/com/telnyx/sdk/api/NumberConfigurationsApi.java index 9b2eaa0a..481b6098 100644 --- a/src/main/java/com/telnyx/sdk/api/NumberConfigurationsApi.java +++ b/src/main/java/com/telnyx/sdk/api/NumberConfigurationsApi.java @@ -8,12 +8,11 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreatePhoneNumberEmergencyEnable; -import com.telnyx.sdk.model.CreatePhoneNumberEmergencyRequested; import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.ListMessagingSettingsResponse; import com.telnyx.sdk.model.ListPhoneNumbersResponse; import com.telnyx.sdk.model.ListPhoneNumbersWithVoiceSettingsResponse; +import com.telnyx.sdk.model.PhoneNumberEnableEmergency; import com.telnyx.sdk.model.PhoneNumberEnableEmergencyRequest; import com.telnyx.sdk.model.PhoneNumberResponse; import com.telnyx.sdk.model.PhoneNumberResponse1; @@ -133,7 +132,7 @@ public ApiResponse deletePhoneNumberWithHttpInfo(String id * * @param id Identifies the resource. (required) * @param phoneNumberEnableEmergencyRequest (required) - * @return CreatePhoneNumberEmergencyEnable + * @return PhoneNumberEnableEmergency * @throws ApiException if fails to make API call * @http.response.details @@ -143,7 +142,7 @@ public ApiResponse deletePhoneNumberWithHttpInfo(String id
0 Unexpected error -
*/ - public CreatePhoneNumberEmergencyEnable enableEmergencyPhoneNumber(String id, PhoneNumberEnableEmergencyRequest phoneNumberEnableEmergencyRequest) throws ApiException { + public PhoneNumberEnableEmergency enableEmergencyPhoneNumber(String id, PhoneNumberEnableEmergencyRequest phoneNumberEnableEmergencyRequest) throws ApiException { return enableEmergencyPhoneNumberWithHttpInfo(id, phoneNumberEnableEmergencyRequest).getData(); } @@ -152,7 +151,7 @@ public CreatePhoneNumberEmergencyEnable enableEmergencyPhoneNumber(String id, Ph * * @param id Identifies the resource. (required) * @param phoneNumberEnableEmergencyRequest (required) - * @return ApiResponse<CreatePhoneNumberEmergencyEnable> + * @return ApiResponse<PhoneNumberEnableEmergency> * @throws ApiException if fails to make API call * @http.response.details @@ -162,7 +161,7 @@ public CreatePhoneNumberEmergencyEnable enableEmergencyPhoneNumber(String id, Ph
0 Unexpected error -
*/ - public ApiResponse enableEmergencyPhoneNumberWithHttpInfo(String id, PhoneNumberEnableEmergencyRequest phoneNumberEnableEmergencyRequest) throws ApiException { + public ApiResponse enableEmergencyPhoneNumberWithHttpInfo(String id, PhoneNumberEnableEmergencyRequest phoneNumberEnableEmergencyRequest) throws ApiException { Object localVarPostBody = phoneNumberEnableEmergencyRequest; // verify the required parameter 'id' is set @@ -201,7 +200,7 @@ public ApiResponse enableEmergencyPhoneNumberW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberConfigurationsApi.enableEmergencyPhoneNumber", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/NumberOrdersApi.java b/src/main/java/com/telnyx/sdk/api/NumberOrdersApi.java index eca5b8b7..cad94794 100644 --- a/src/main/java/com/telnyx/sdk/api/NumberOrdersApi.java +++ b/src/main/java/com/telnyx/sdk/api/NumberOrdersApi.java @@ -9,17 +9,17 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.Comment; -import com.telnyx.sdk.model.CommentResponse; +import com.telnyx.sdk.model.CreateComment200Response; import com.telnyx.sdk.model.CreateNumberOrderRequest; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.ListCommentsResponse; +import com.telnyx.sdk.model.ListComments200Response; import com.telnyx.sdk.model.ListNumberOrderPhoneNumbersResponse; import com.telnyx.sdk.model.ListNumberOrdersResponse; -import com.telnyx.sdk.model.ListRegulatoryRequirements; +import com.telnyx.sdk.model.ListRegulartoryRequirements200Response; import com.telnyx.sdk.model.ListSubNumberOrdersResponse; +import com.telnyx.sdk.model.MarkCommentRead200Response; import com.telnyx.sdk.model.NumberOrderPhoneNumberResponse; import com.telnyx.sdk.model.NumberOrderResponse; -import com.telnyx.sdk.model.ReadCommentResponse; import com.telnyx.sdk.model.SubNumberOrderResponse; import java.util.UUID; import com.telnyx.sdk.model.UpdateNumberOrderPhoneNumberRequest; @@ -65,7 +65,7 @@ public void setApiClient(ApiClient apiClient) { * Create a comment * * @param comment (required) - * @return CommentResponse + * @return CreateComment200Response * @throws ApiException if fails to make API call * @http.response.details @@ -74,7 +74,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public CommentResponse createComment(Comment comment) throws ApiException { + public CreateComment200Response createComment(Comment comment) throws ApiException { return createCommentWithHttpInfo(comment).getData(); } @@ -82,7 +82,7 @@ public CommentResponse createComment(Comment comment) throws ApiException { * Create a comment * * @param comment (required) - * @return ApiResponse<CommentResponse> + * @return ApiResponse<CreateComment200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -91,7 +91,7 @@ public CommentResponse createComment(Comment comment) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse createCommentWithHttpInfo(Comment comment) throws ApiException { + public ApiResponse createCommentWithHttpInfo(Comment comment) throws ApiException { Object localVarPostBody = comment; // verify the required parameter 'comment' is set @@ -124,7 +124,7 @@ public ApiResponse createCommentWithHttpInfo(Comment comment) t String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberOrdersApi.createComment", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -204,7 +204,7 @@ public ApiResponse createNumberOrderWithHttpInfo(CreateNumb * * @param filterCommentRecordType Record type that the comment relates to i.e number_order, sub_number_order or number_order_phone_number (required) * @param filterCommentRecordId ID of the record the comments relate to (required) - * @return ListCommentsResponse + * @return ListComments200Response * @throws ApiException if fails to make API call * @http.response.details @@ -213,7 +213,7 @@ public ApiResponse createNumberOrderWithHttpInfo(CreateNumb
0 Unexpected error -
*/ - public ListCommentsResponse listComments(String filterCommentRecordType, String filterCommentRecordId) throws ApiException { + public ListComments200Response listComments(String filterCommentRecordType, String filterCommentRecordId) throws ApiException { return listCommentsWithHttpInfo(filterCommentRecordType, filterCommentRecordId).getData(); } @@ -222,7 +222,7 @@ public ListCommentsResponse listComments(String filterCommentRecordType, String * * @param filterCommentRecordType Record type that the comment relates to i.e number_order, sub_number_order or number_order_phone_number (required) * @param filterCommentRecordId ID of the record the comments relate to (required) - * @return ApiResponse<ListCommentsResponse> + * @return ApiResponse<ListComments200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -231,7 +231,7 @@ public ListCommentsResponse listComments(String filterCommentRecordType, String
0 Unexpected error -
*/ - public ApiResponse listCommentsWithHttpInfo(String filterCommentRecordType, String filterCommentRecordId) throws ApiException { + public ApiResponse listCommentsWithHttpInfo(String filterCommentRecordType, String filterCommentRecordId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'filterCommentRecordType' is set @@ -271,7 +271,7 @@ public ApiResponse listCommentsWithHttpInfo(String filterC String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberOrdersApi.listComments", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -463,7 +463,7 @@ public APIlistNumberOrdersRequest listNumberOrders() throws ApiException { * Retrieve regulartory requirements * * @param filterPhoneNumber Record type phone number/ phone numbers (required) - * @return ListRegulatoryRequirements + * @return ListRegulartoryRequirements200Response * @throws ApiException if fails to make API call * @http.response.details @@ -472,7 +472,7 @@ public APIlistNumberOrdersRequest listNumberOrders() throws ApiException {
0 Unexpected error -
*/ - public ListRegulatoryRequirements listRegulartoryRequirements(String filterPhoneNumber) throws ApiException { + public ListRegulartoryRequirements200Response listRegulartoryRequirements(String filterPhoneNumber) throws ApiException { return listRegulartoryRequirementsWithHttpInfo(filterPhoneNumber).getData(); } @@ -480,7 +480,7 @@ public ListRegulatoryRequirements listRegulartoryRequirements(String filterPhone * Retrieve regulartory requirements * * @param filterPhoneNumber Record type phone number/ phone numbers (required) - * @return ApiResponse<ListRegulatoryRequirements> + * @return ApiResponse<ListRegulartoryRequirements200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -489,7 +489,7 @@ public ListRegulatoryRequirements listRegulartoryRequirements(String filterPhone
0 Unexpected error -
*/ - public ApiResponse listRegulartoryRequirementsWithHttpInfo(String filterPhoneNumber) throws ApiException { + public ApiResponse listRegulartoryRequirementsWithHttpInfo(String filterPhoneNumber) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'filterPhoneNumber' is set @@ -523,7 +523,7 @@ public ApiResponse listRegulartoryRequirementsWithHt String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberOrdersApi.listRegulartoryRequirements", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -679,7 +679,7 @@ public APIlistSubNumberOrdersRequest listSubNumberOrders() throws ApiException { * Mark a comment as read * * @param id The comment ID. (required) - * @return ReadCommentResponse + * @return MarkCommentRead200Response * @throws ApiException if fails to make API call * @http.response.details @@ -688,7 +688,7 @@ public APIlistSubNumberOrdersRequest listSubNumberOrders() throws ApiException {
0 Unexpected error -
*/ - public ReadCommentResponse markCommentRead(String id) throws ApiException { + public MarkCommentRead200Response markCommentRead(String id) throws ApiException { return markCommentReadWithHttpInfo(id).getData(); } @@ -696,7 +696,7 @@ public ReadCommentResponse markCommentRead(String id) throws ApiException { * Mark a comment as read * * @param id The comment ID. (required) - * @return ApiResponse<ReadCommentResponse> + * @return ApiResponse<MarkCommentRead200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -705,7 +705,7 @@ public ReadCommentResponse markCommentRead(String id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse markCommentReadWithHttpInfo(String id) throws ApiException { + public ApiResponse markCommentReadWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -739,7 +739,7 @@ public ApiResponse markCommentReadWithHttpInfo(String id) t String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberOrdersApi.markCommentRead", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -749,7 +749,7 @@ public ApiResponse markCommentReadWithHttpInfo(String id) t * Retrieve a comment * * @param id The comment ID. (required) - * @return CommentResponse + * @return CreateComment200Response * @throws ApiException if fails to make API call * @http.response.details @@ -758,7 +758,7 @@ public ApiResponse markCommentReadWithHttpInfo(String id) t
0 Unexpected error -
*/ - public CommentResponse retrieveComment(String id) throws ApiException { + public CreateComment200Response retrieveComment(String id) throws ApiException { return retrieveCommentWithHttpInfo(id).getData(); } @@ -766,7 +766,7 @@ public CommentResponse retrieveComment(String id) throws ApiException { * Retrieve a comment * * @param id The comment ID. (required) - * @return ApiResponse<CommentResponse> + * @return ApiResponse<CreateComment200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -775,7 +775,7 @@ public CommentResponse retrieveComment(String id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse retrieveCommentWithHttpInfo(String id) throws ApiException { + public ApiResponse retrieveCommentWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -809,7 +809,7 @@ public ApiResponse retrieveCommentWithHttpInfo(String id) throw String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberOrdersApi.retrieveComment", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/NumberPortoutApi.java b/src/main/java/com/telnyx/sdk/api/NumberPortoutApi.java index 4902c094..d9d72205 100644 --- a/src/main/java/com/telnyx/sdk/api/NumberPortoutApi.java +++ b/src/main/java/com/telnyx/sdk/api/NumberPortoutApi.java @@ -8,16 +8,15 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreateCommentPortoutRequest; -import com.telnyx.sdk.model.CreatePortOutSupportingDocumentsResponse; -import com.telnyx.sdk.model.CreatePortingSupportingDocsRequest; -import com.telnyx.sdk.model.ListPortoutComments; -import com.telnyx.sdk.model.ListPortoutResponse; -import com.telnyx.sdk.model.PortOutListSupportingDocumentsResponse; -import com.telnyx.sdk.model.PortoutCommentResposne; -import com.telnyx.sdk.model.PortoutResponse; +import com.telnyx.sdk.model.FindPortoutComments200Response; +import com.telnyx.sdk.model.FindPortoutRequest200Response; +import com.telnyx.sdk.model.GetPortRequestSupportingDocuments201Response; +import com.telnyx.sdk.model.ListPortoutRequest200Response; +import com.telnyx.sdk.model.PostPortRequestComment201Response; +import com.telnyx.sdk.model.PostPortRequestCommentRequest; +import com.telnyx.sdk.model.PostPortRequestSupportingDocumentsRequest; import java.util.UUID; -import com.telnyx.sdk.model.UpdatePortoutStatusRequest; +import com.telnyx.sdk.model.UpdatePortoutRequestRequest; import java.util.ArrayList; import java.util.HashMap; @@ -58,7 +57,7 @@ public void setApiClient(ApiClient apiClient) { * List all comments for a portout request * Returns a list of comments for a portout request. * @param id Portout id (required) - * @return ListPortoutComments + * @return FindPortoutComments200Response * @throws ApiException if fails to make API call * @http.response.details @@ -69,7 +68,7 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortoutComments findPortoutComments(UUID id) throws ApiException { + public FindPortoutComments200Response findPortoutComments(UUID id) throws ApiException { return findPortoutCommentsWithHttpInfo(id).getData(); } @@ -77,7 +76,7 @@ public ListPortoutComments findPortoutComments(UUID id) throws ApiException { * List all comments for a portout request * Returns a list of comments for a portout request. * @param id Portout id (required) - * @return ApiResponse<ListPortoutComments> + * @return ApiResponse<FindPortoutComments200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -88,7 +87,7 @@ public ListPortoutComments findPortoutComments(UUID id) throws ApiException {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse findPortoutCommentsWithHttpInfo(UUID id) throws ApiException { + public ApiResponse findPortoutCommentsWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -122,7 +121,7 @@ public ApiResponse findPortoutCommentsWithHttpInfo(UUID id) String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberPortoutApi.findPortoutComments", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -132,7 +131,7 @@ public ApiResponse findPortoutCommentsWithHttpInfo(UUID id) * Get a portout request * Returns the portout request based on the ID provided * @param id Portout id (required) - * @return PortoutResponse + * @return FindPortoutRequest200Response * @throws ApiException if fails to make API call * @http.response.details @@ -143,7 +142,7 @@ public ApiResponse findPortoutCommentsWithHttpInfo(UUID id)
422 Unprocessable entity. Check message field in response for details. -
*/ - public PortoutResponse findPortoutRequest(UUID id) throws ApiException { + public FindPortoutRequest200Response findPortoutRequest(UUID id) throws ApiException { return findPortoutRequestWithHttpInfo(id).getData(); } @@ -151,7 +150,7 @@ public PortoutResponse findPortoutRequest(UUID id) throws ApiException { * Get a portout request * Returns the portout request based on the ID provided * @param id Portout id (required) - * @return ApiResponse<PortoutResponse> + * @return ApiResponse<FindPortoutRequest200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -162,7 +161,7 @@ public PortoutResponse findPortoutRequest(UUID id) throws ApiException {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse findPortoutRequestWithHttpInfo(UUID id) throws ApiException { + public ApiResponse findPortoutRequestWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -196,7 +195,7 @@ public ApiResponse findPortoutRequestWithHttpInfo(UUID id) thro String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberPortoutApi.findPortoutRequest", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -206,7 +205,7 @@ public ApiResponse findPortoutRequestWithHttpInfo(UUID id) thro * List supporting documents on a portout request * List every supporting documents for a portout request. * @param id Portout id (required) - * @return PortOutListSupportingDocumentsResponse + * @return GetPortRequestSupportingDocuments201Response * @throws ApiException if fails to make API call * @http.response.details @@ -216,7 +215,7 @@ public ApiResponse findPortoutRequestWithHttpInfo(UUID id) thro
404 Resource not found -
*/ - public PortOutListSupportingDocumentsResponse getPortRequestSupportingDocuments(UUID id) throws ApiException { + public GetPortRequestSupportingDocuments201Response getPortRequestSupportingDocuments(UUID id) throws ApiException { return getPortRequestSupportingDocumentsWithHttpInfo(id).getData(); } @@ -224,7 +223,7 @@ public PortOutListSupportingDocumentsResponse getPortRequestSupportingDocuments( * List supporting documents on a portout request * List every supporting documents for a portout request. * @param id Portout id (required) - * @return ApiResponse<PortOutListSupportingDocumentsResponse> + * @return ApiResponse<GetPortRequestSupportingDocuments201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -234,7 +233,7 @@ public PortOutListSupportingDocumentsResponse getPortRequestSupportingDocuments(
404 Resource not found -
*/ - public ApiResponse getPortRequestSupportingDocumentsWithHttpInfo(UUID id) throws ApiException { + public ApiResponse getPortRequestSupportingDocumentsWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -268,7 +267,7 @@ public ApiResponse getPortRequestSupport String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberPortoutApi.getPortRequestSupportingDocuments", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -282,7 +281,7 @@ public ApiResponse getPortRequestSupport * @param filterStatus Filter by portout status. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListPortoutResponse + * @return ListPortoutRequest200Response * @throws ApiException if fails to make API call * @http.response.details @@ -293,7 +292,7 @@ public ApiResponse getPortRequestSupport
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortoutResponse listPortoutRequest(String filterCarrierName, String filterSpid, String filterStatus, Integer pageNumber, Integer pageSize) throws ApiException { + public ListPortoutRequest200Response listPortoutRequest(String filterCarrierName, String filterSpid, String filterStatus, Integer pageNumber, Integer pageSize) throws ApiException { return listPortoutRequestWithHttpInfo(filterCarrierName, filterSpid, filterStatus, pageNumber, pageSize).getData(); } @@ -305,7 +304,7 @@ public ListPortoutResponse listPortoutRequest(String filterCarrierName, String f * @param filterStatus Filter by portout status. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListPortoutResponse> + * @return ApiResponse<ListPortoutRequest200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -316,7 +315,7 @@ public ListPortoutResponse listPortoutRequest(String filterCarrierName, String f
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listPortoutRequestWithHttpInfo(String filterCarrierName, String filterSpid, String filterStatus, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listPortoutRequestWithHttpInfo(String filterCarrierName, String filterSpid, String filterStatus, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -349,7 +348,7 @@ public ApiResponse listPortoutRequestWithHttpInfo(String fi String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberPortoutApi.listPortoutRequest", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -359,8 +358,8 @@ public ApiResponse listPortoutRequestWithHttpInfo(String fi * Create a comment on a portout request * Creates a comment on a portout request. * @param id Portout id (required) - * @param createCommentPortoutRequest (required) - * @return PortoutCommentResposne + * @param postPortRequestCommentRequest (required) + * @return PostPortRequestComment201Response * @throws ApiException if fails to make API call * @http.response.details @@ -371,16 +370,16 @@ public ApiResponse listPortoutRequestWithHttpInfo(String fi
422 Unprocessable entity. Check message field in response for details. -
*/ - public PortoutCommentResposne postPortRequestComment(UUID id, CreateCommentPortoutRequest createCommentPortoutRequest) throws ApiException { - return postPortRequestCommentWithHttpInfo(id, createCommentPortoutRequest).getData(); + public PostPortRequestComment201Response postPortRequestComment(UUID id, PostPortRequestCommentRequest postPortRequestCommentRequest) throws ApiException { + return postPortRequestCommentWithHttpInfo(id, postPortRequestCommentRequest).getData(); } /** * Create a comment on a portout request * Creates a comment on a portout request. * @param id Portout id (required) - * @param createCommentPortoutRequest (required) - * @return ApiResponse<PortoutCommentResposne> + * @param postPortRequestCommentRequest (required) + * @return ApiResponse<PostPortRequestComment201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -391,17 +390,17 @@ public PortoutCommentResposne postPortRequestComment(UUID id, CreateCommentPorto
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse postPortRequestCommentWithHttpInfo(UUID id, CreateCommentPortoutRequest createCommentPortoutRequest) throws ApiException { - Object localVarPostBody = createCommentPortoutRequest; + public ApiResponse postPortRequestCommentWithHttpInfo(UUID id, PostPortRequestCommentRequest postPortRequestCommentRequest) throws ApiException { + Object localVarPostBody = postPortRequestCommentRequest; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling postPortRequestComment"); } - // verify the required parameter 'createCommentPortoutRequest' is set - if (createCommentPortoutRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createCommentPortoutRequest' when calling postPortRequestComment"); + // verify the required parameter 'postPortRequestCommentRequest' is set + if (postPortRequestCommentRequest == null) { + throw new ApiException(400, "Missing the required parameter 'postPortRequestCommentRequest' when calling postPortRequestComment"); } // create path and map variables @@ -430,7 +429,7 @@ public ApiResponse postPortRequestCommentWithHttpInfo(UU String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberPortoutApi.postPortRequestComment", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -440,8 +439,8 @@ public ApiResponse postPortRequestCommentWithHttpInfo(UU * Create a list of supporting documents on a portout request * Creates a list of supporting documents on a portout request. * @param id Portout id (required) - * @param createPortingSupportingDocsRequest (required) - * @return CreatePortOutSupportingDocumentsResponse + * @param postPortRequestSupportingDocumentsRequest (required) + * @return GetPortRequestSupportingDocuments201Response * @throws ApiException if fails to make API call * @http.response.details @@ -452,16 +451,16 @@ public ApiResponse postPortRequestCommentWithHttpInfo(UU
422 Unprocessable entity. Check message field in response for details. -
*/ - public CreatePortOutSupportingDocumentsResponse postPortRequestSupportingDocuments(UUID id, CreatePortingSupportingDocsRequest createPortingSupportingDocsRequest) throws ApiException { - return postPortRequestSupportingDocumentsWithHttpInfo(id, createPortingSupportingDocsRequest).getData(); + public GetPortRequestSupportingDocuments201Response postPortRequestSupportingDocuments(UUID id, PostPortRequestSupportingDocumentsRequest postPortRequestSupportingDocumentsRequest) throws ApiException { + return postPortRequestSupportingDocumentsWithHttpInfo(id, postPortRequestSupportingDocumentsRequest).getData(); } /** * Create a list of supporting documents on a portout request * Creates a list of supporting documents on a portout request. * @param id Portout id (required) - * @param createPortingSupportingDocsRequest (required) - * @return ApiResponse<CreatePortOutSupportingDocumentsResponse> + * @param postPortRequestSupportingDocumentsRequest (required) + * @return ApiResponse<GetPortRequestSupportingDocuments201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -472,17 +471,17 @@ public CreatePortOutSupportingDocumentsResponse postPortRequestSupportingDocumen
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse postPortRequestSupportingDocumentsWithHttpInfo(UUID id, CreatePortingSupportingDocsRequest createPortingSupportingDocsRequest) throws ApiException { - Object localVarPostBody = createPortingSupportingDocsRequest; + public ApiResponse postPortRequestSupportingDocumentsWithHttpInfo(UUID id, PostPortRequestSupportingDocumentsRequest postPortRequestSupportingDocumentsRequest) throws ApiException { + Object localVarPostBody = postPortRequestSupportingDocumentsRequest; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling postPortRequestSupportingDocuments"); } - // verify the required parameter 'createPortingSupportingDocsRequest' is set - if (createPortingSupportingDocsRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createPortingSupportingDocsRequest' when calling postPortRequestSupportingDocuments"); + // verify the required parameter 'postPortRequestSupportingDocumentsRequest' is set + if (postPortRequestSupportingDocumentsRequest == null) { + throw new ApiException(400, "Missing the required parameter 'postPortRequestSupportingDocumentsRequest' when calling postPortRequestSupportingDocuments"); } // create path and map variables @@ -511,7 +510,7 @@ public ApiResponse postPortRequestSupp String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberPortoutApi.postPortRequestSupportingDocuments", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -522,8 +521,8 @@ public ApiResponse postPortRequestSupp * Authorize or reject portout request * @param id Portout id (required) * @param status Updated portout status (required) - * @param updatePortoutStatusRequest (required) - * @return PortoutResponse + * @param updatePortoutRequestRequest (required) + * @return FindPortoutRequest200Response * @throws ApiException if fails to make API call * @http.response.details @@ -534,8 +533,8 @@ public ApiResponse postPortRequestSupp
422 Unprocessable entity. Check message field in response for details. -
*/ - public PortoutResponse updatePortoutRequest(UUID id, String status, UpdatePortoutStatusRequest updatePortoutStatusRequest) throws ApiException { - return updatePortoutRequestWithHttpInfo(id, status, updatePortoutStatusRequest).getData(); + public FindPortoutRequest200Response updatePortoutRequest(UUID id, String status, UpdatePortoutRequestRequest updatePortoutRequestRequest) throws ApiException { + return updatePortoutRequestWithHttpInfo(id, status, updatePortoutRequestRequest).getData(); } /** @@ -543,8 +542,8 @@ public PortoutResponse updatePortoutRequest(UUID id, String status, UpdatePortou * Authorize or reject portout request * @param id Portout id (required) * @param status Updated portout status (required) - * @param updatePortoutStatusRequest (required) - * @return ApiResponse<PortoutResponse> + * @param updatePortoutRequestRequest (required) + * @return ApiResponse<FindPortoutRequest200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -555,8 +554,8 @@ public PortoutResponse updatePortoutRequest(UUID id, String status, UpdatePortou
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse updatePortoutRequestWithHttpInfo(UUID id, String status, UpdatePortoutStatusRequest updatePortoutStatusRequest) throws ApiException { - Object localVarPostBody = updatePortoutStatusRequest; + public ApiResponse updatePortoutRequestWithHttpInfo(UUID id, String status, UpdatePortoutRequestRequest updatePortoutRequestRequest) throws ApiException { + Object localVarPostBody = updatePortoutRequestRequest; // verify the required parameter 'id' is set if (id == null) { @@ -568,9 +567,9 @@ public ApiResponse updatePortoutRequestWithHttpInfo(UUID id, St throw new ApiException(400, "Missing the required parameter 'status' when calling updatePortoutRequest"); } - // verify the required parameter 'updatePortoutStatusRequest' is set - if (updatePortoutStatusRequest == null) { - throw new ApiException(400, "Missing the required parameter 'updatePortoutStatusRequest' when calling updatePortoutRequest"); + // verify the required parameter 'updatePortoutRequestRequest' is set + if (updatePortoutRequestRequest == null) { + throw new ApiException(400, "Missing the required parameter 'updatePortoutRequestRequest' when calling updatePortoutRequest"); } // create path and map variables @@ -600,7 +599,7 @@ public ApiResponse updatePortoutRequestWithHttpInfo(UUID id, St String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("NumberPortoutApi.updatePortoutRequest", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/OtaUpdatesApi.java b/src/main/java/com/telnyx/sdk/api/OtaUpdatesApi.java index d36f84bd..eec90281 100644 --- a/src/main/java/com/telnyx/sdk/api/OtaUpdatesApi.java +++ b/src/main/java/com/telnyx/sdk/api/OtaUpdatesApi.java @@ -9,8 +9,8 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.OTAUpdateResponse; -import com.telnyx.sdk.model.SearchOTAUpdateResponse; +import com.telnyx.sdk.model.OTAUpdateGET200Response; +import com.telnyx.sdk.model.OTAUpdatesList200Response; import java.util.UUID; import java.util.ArrayList; @@ -52,7 +52,7 @@ public void setApiClient(ApiClient apiClient) { * Get OTA update * This API returns the details of an Over the Air (OTA) update. * @param id Identifies the resource. (required) - * @return OTAUpdateResponse + * @return OTAUpdateGET200Response * @throws ApiException if fails to make API call * @http.response.details @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public OTAUpdateResponse oTAUpdateGET(UUID id) throws ApiException { + public OTAUpdateGET200Response oTAUpdateGET(UUID id) throws ApiException { return oTAUpdateGETWithHttpInfo(id).getData(); } @@ -69,7 +69,7 @@ public OTAUpdateResponse oTAUpdateGET(UUID id) throws ApiException { * Get OTA update * This API returns the details of an Over the Air (OTA) update. * @param id Identifies the resource. (required) - * @return ApiResponse<OTAUpdateResponse> + * @return ApiResponse<OTAUpdateGET200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -78,7 +78,7 @@ public OTAUpdateResponse oTAUpdateGET(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse oTAUpdateGETWithHttpInfo(UUID id) throws ApiException { + public ApiResponse oTAUpdateGETWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -112,7 +112,7 @@ public ApiResponse oTAUpdateGETWithHttpInfo(UUID id) throws A String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("OtaUpdatesApi.oTAUpdateGET", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -126,7 +126,7 @@ public ApiResponse oTAUpdateGETWithHttpInfo(UUID id) throws A * @param filterStatus Filter by a specific status of the resource's lifecycle. (optional) * @param filterSimCardId The SIM card identification UUID. (optional) * @param filterType Filter by type. (optional) - * @return SearchOTAUpdateResponse + * @return OTAUpdatesList200Response * @throws ApiException if fails to make API call * @http.response.details @@ -135,7 +135,7 @@ public ApiResponse oTAUpdateGETWithHttpInfo(UUID id) throws A
0 Unexpected error -
*/ - public SearchOTAUpdateResponse oTAUpdatesList(Integer pageNumber, Integer pageSize, String filterStatus, String filterSimCardId, String filterType) throws ApiException { + public OTAUpdatesList200Response oTAUpdatesList(Integer pageNumber, Integer pageSize, String filterStatus, String filterSimCardId, String filterType) throws ApiException { return oTAUpdatesListWithHttpInfo(pageNumber, pageSize, filterStatus, filterSimCardId, filterType).getData(); } @@ -147,7 +147,7 @@ public SearchOTAUpdateResponse oTAUpdatesList(Integer pageNumber, Integer pageSi * @param filterStatus Filter by a specific status of the resource's lifecycle. (optional) * @param filterSimCardId The SIM card identification UUID. (optional) * @param filterType Filter by type. (optional) - * @return ApiResponse<SearchOTAUpdateResponse> + * @return ApiResponse<OTAUpdatesList200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -156,7 +156,7 @@ public SearchOTAUpdateResponse oTAUpdatesList(Integer pageNumber, Integer pageSi
0 Unexpected error -
*/ - public ApiResponse oTAUpdatesListWithHttpInfo(Integer pageNumber, Integer pageSize, String filterStatus, String filterSimCardId, String filterType) throws ApiException { + public ApiResponse oTAUpdatesListWithHttpInfo(Integer pageNumber, Integer pageSize, String filterStatus, String filterSimCardId, String filterType) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -189,7 +189,7 @@ public ApiResponse oTAUpdatesListWithHttpInfo(Integer p String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("OtaUpdatesApi.oTAUpdatesList", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/PhoneNumberPortingApi.java b/src/main/java/com/telnyx/sdk/api/PhoneNumberPortingApi.java index 17d7a487..a7ad4639 100644 --- a/src/main/java/com/telnyx/sdk/api/PhoneNumberPortingApi.java +++ b/src/main/java/com/telnyx/sdk/api/PhoneNumberPortingApi.java @@ -8,8 +8,8 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreatePortabilityCheckRequest; -import com.telnyx.sdk.model.PortabilityCheckResponse; +import com.telnyx.sdk.model.PostPortabilityCheck201Response; +import com.telnyx.sdk.model.PostPortabilityCheckRequest; import java.util.ArrayList; import java.util.HashMap; @@ -49,8 +49,8 @@ public void setApiClient(ApiClient apiClient) { /** * Run a portability check * Runs a portability check, returning the results immediately. - * @param createPortabilityCheckRequest (required) - * @return PortabilityCheckResponse + * @param postPortabilityCheckRequest (required) + * @return PostPortabilityCheck201Response * @throws ApiException if fails to make API call * @http.response.details @@ -60,15 +60,15 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check message field in response for details. -
*/ - public PortabilityCheckResponse postPortabilityCheck(CreatePortabilityCheckRequest createPortabilityCheckRequest) throws ApiException { - return postPortabilityCheckWithHttpInfo(createPortabilityCheckRequest).getData(); + public PostPortabilityCheck201Response postPortabilityCheck(PostPortabilityCheckRequest postPortabilityCheckRequest) throws ApiException { + return postPortabilityCheckWithHttpInfo(postPortabilityCheckRequest).getData(); } /** * Run a portability check * Runs a portability check, returning the results immediately. - * @param createPortabilityCheckRequest (required) - * @return ApiResponse<PortabilityCheckResponse> + * @param postPortabilityCheckRequest (required) + * @return ApiResponse<PostPortabilityCheck201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -78,12 +78,12 @@ public PortabilityCheckResponse postPortabilityCheck(CreatePortabilityCheckReque
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse postPortabilityCheckWithHttpInfo(CreatePortabilityCheckRequest createPortabilityCheckRequest) throws ApiException { - Object localVarPostBody = createPortabilityCheckRequest; + public ApiResponse postPortabilityCheckWithHttpInfo(PostPortabilityCheckRequest postPortabilityCheckRequest) throws ApiException { + Object localVarPostBody = postPortabilityCheckRequest; - // verify the required parameter 'createPortabilityCheckRequest' is set - if (createPortabilityCheckRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createPortabilityCheckRequest' when calling postPortabilityCheck"); + // verify the required parameter 'postPortabilityCheckRequest' is set + if (postPortabilityCheckRequest == null) { + throw new ApiException(400, "Missing the required parameter 'postPortabilityCheckRequest' when calling postPortabilityCheck"); } // create path and map variables @@ -111,7 +111,7 @@ public ApiResponse postPortabilityCheckWithHttpInfo(Cr String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PhoneNumberPortingApi.postPortabilityCheck", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/PortingOrderApi.java b/src/main/java/com/telnyx/sdk/api/PortingOrderApi.java index fdf3f32d..b7ff00b4 100644 --- a/src/main/java/com/telnyx/sdk/api/PortingOrderApi.java +++ b/src/main/java/com/telnyx/sdk/api/PortingOrderApi.java @@ -8,28 +8,32 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.ActivatePortingOrder202Response; +import com.telnyx.sdk.model.CancelPortingOrder200Response; +import com.telnyx.sdk.model.ConfirmPortingOrder200Response; import com.telnyx.sdk.model.CreatePortingOrder; +import com.telnyx.sdk.model.CreatePortingOrder201Response; import com.telnyx.sdk.model.CreatePortingOrderComment; +import com.telnyx.sdk.model.CreatePortingOrderComment201Response; import java.io.File; -import com.telnyx.sdk.model.ListAllowedFocWindow; -import com.telnyx.sdk.model.ListDraftPortingOrderWithoutPagination; -import com.telnyx.sdk.model.ListPortingOrder; -import com.telnyx.sdk.model.ListPortingOrderDocuments; -import com.telnyx.sdk.model.ListPortingOrdersActivationJobs; -import com.telnyx.sdk.model.ListPortingOrdersComments; -import com.telnyx.sdk.model.ListPortingOrdersExceptionTypes; -import com.telnyx.sdk.model.ListPortingPhoneNumbers; +import com.telnyx.sdk.model.GetPortingOrder200Response; +import com.telnyx.sdk.model.GetPortingOrderSubRequest200Response; +import com.telnyx.sdk.model.ListAllowedFocWindows200Response; +import com.telnyx.sdk.model.ListPortingOrderDocuments200Response; +import com.telnyx.sdk.model.ListPortingOrderRequirements200Response; +import com.telnyx.sdk.model.ListPortingOrders200Response; +import com.telnyx.sdk.model.ListPortingOrdersActivationJobs200Response; +import com.telnyx.sdk.model.ListPortingOrdersComments200Response; +import com.telnyx.sdk.model.ListPortingOrdersExceptionTypes200Response; +import com.telnyx.sdk.model.ListPortingPhoneNumbers200Response; import com.telnyx.sdk.model.PortabilityStatus; import com.telnyx.sdk.model.PortingOrderActivationStatus; -import com.telnyx.sdk.model.PortingOrderDocumentsCreated; import com.telnyx.sdk.model.PortingOrderType; -import com.telnyx.sdk.model.ShowPortingOrder; -import com.telnyx.sdk.model.ShowPortingOrderComment; -import com.telnyx.sdk.model.ShowPortingOrdersActivationJob; -import com.telnyx.sdk.model.SubRequestByPortingOrder; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; import java.util.UUID; import com.telnyx.sdk.model.UpdatePortingOrder; +import com.telnyx.sdk.model.UpdatePortingOrder200Response; +import com.telnyx.sdk.model.UploadPortingOrderDocuments201Response; +import com.telnyx.sdk.model.UploadPortingOrderDocumentsRequest; import java.util.ArrayList; import java.util.HashMap; @@ -70,7 +74,7 @@ public void setApiClient(ApiClient apiClient) { * Activates every number on a porting order. * Activate every numbers of a porting order asynchronously. * @param id Porting Order id (required) - * @return ShowPortingOrdersActivationJob + * @return ActivatePortingOrder202Response * @throws ApiException if fails to make API call * @http.response.details @@ -80,7 +84,7 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ShowPortingOrdersActivationJob activatePortingOrder(UUID id) throws ApiException { + public ActivatePortingOrder202Response activatePortingOrder(UUID id) throws ApiException { return activatePortingOrderWithHttpInfo(id).getData(); } @@ -88,7 +92,7 @@ public ShowPortingOrdersActivationJob activatePortingOrder(UUID id) throws ApiEx * Activates every number on a porting order. * Activate every numbers of a porting order asynchronously. * @param id Porting Order id (required) - * @return ApiResponse<ShowPortingOrdersActivationJob> + * @return ApiResponse<ActivatePortingOrder202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -98,7 +102,7 @@ public ShowPortingOrdersActivationJob activatePortingOrder(UUID id) throws ApiEx
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse activatePortingOrderWithHttpInfo(UUID id) throws ApiException { + public ApiResponse activatePortingOrderWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -132,7 +136,7 @@ public ApiResponse activatePortingOrderWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.activatePortingOrder", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -142,7 +146,7 @@ public ApiResponse activatePortingOrderWithHttpI * Cancel a porting order * Cancel a porting order * @param id Porting Order id (required) - * @return ShowPortingOrder + * @return CancelPortingOrder200Response * @throws ApiException if fails to make API call * @http.response.details @@ -152,7 +156,7 @@ public ApiResponse activatePortingOrderWithHttpI
422 Unprocessable entity. Check message field in response for details. -
*/ - public ShowPortingOrder cancelPortingOrder(UUID id) throws ApiException { + public CancelPortingOrder200Response cancelPortingOrder(UUID id) throws ApiException { return cancelPortingOrderWithHttpInfo(id).getData(); } @@ -160,7 +164,7 @@ public ShowPortingOrder cancelPortingOrder(UUID id) throws ApiException { * Cancel a porting order * Cancel a porting order * @param id Porting Order id (required) - * @return ApiResponse<ShowPortingOrder> + * @return ApiResponse<CancelPortingOrder200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -170,7 +174,7 @@ public ShowPortingOrder cancelPortingOrder(UUID id) throws ApiException {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse cancelPortingOrderWithHttpInfo(UUID id) throws ApiException { + public ApiResponse cancelPortingOrderWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -204,7 +208,7 @@ public ApiResponse cancelPortingOrderWithHttpInfo(UUID id) thr String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.cancelPortingOrder", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -214,7 +218,7 @@ public ApiResponse cancelPortingOrderWithHttpInfo(UUID id) thr * Submit a porting order. * Confirm and submit your porting order. * @param id Porting Order id (required) - * @return ShowPortingOrder + * @return ConfirmPortingOrder200Response * @throws ApiException if fails to make API call * @http.response.details @@ -224,7 +228,7 @@ public ApiResponse cancelPortingOrderWithHttpInfo(UUID id) thr
422 Unprocessable entity. Check message field in response for details. -
*/ - public ShowPortingOrder confirmPortingOrder(UUID id) throws ApiException { + public ConfirmPortingOrder200Response confirmPortingOrder(UUID id) throws ApiException { return confirmPortingOrderWithHttpInfo(id).getData(); } @@ -232,7 +236,7 @@ public ShowPortingOrder confirmPortingOrder(UUID id) throws ApiException { * Submit a porting order. * Confirm and submit your porting order. * @param id Porting Order id (required) - * @return ApiResponse<ShowPortingOrder> + * @return ApiResponse<ConfirmPortingOrder200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -242,7 +246,7 @@ public ShowPortingOrder confirmPortingOrder(UUID id) throws ApiException {
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse confirmPortingOrderWithHttpInfo(UUID id) throws ApiException { + public ApiResponse confirmPortingOrderWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -276,7 +280,7 @@ public ApiResponse confirmPortingOrderWithHttpInfo(UUID id) th String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.confirmPortingOrder", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -286,7 +290,7 @@ public ApiResponse confirmPortingOrderWithHttpInfo(UUID id) th * Create a porting order * Creates a new porting order object. * @param createPortingOrder (required) - * @return ListDraftPortingOrderWithoutPagination + * @return CreatePortingOrder201Response * @throws ApiException if fails to make API call * @http.response.details @@ -296,7 +300,7 @@ public ApiResponse confirmPortingOrderWithHttpInfo(UUID id) th
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListDraftPortingOrderWithoutPagination createPortingOrder(CreatePortingOrder createPortingOrder) throws ApiException { + public CreatePortingOrder201Response createPortingOrder(CreatePortingOrder createPortingOrder) throws ApiException { return createPortingOrderWithHttpInfo(createPortingOrder).getData(); } @@ -304,7 +308,7 @@ public ListDraftPortingOrderWithoutPagination createPortingOrder(CreatePortingOr * Create a porting order * Creates a new porting order object. * @param createPortingOrder (required) - * @return ApiResponse<ListDraftPortingOrderWithoutPagination> + * @return ApiResponse<CreatePortingOrder201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -314,7 +318,7 @@ public ListDraftPortingOrderWithoutPagination createPortingOrder(CreatePortingOr
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse createPortingOrderWithHttpInfo(CreatePortingOrder createPortingOrder) throws ApiException { + public ApiResponse createPortingOrderWithHttpInfo(CreatePortingOrder createPortingOrder) throws ApiException { Object localVarPostBody = createPortingOrder; // verify the required parameter 'createPortingOrder' is set @@ -347,7 +351,7 @@ public ApiResponse createPortingOrderWit String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.createPortingOrder", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -358,7 +362,7 @@ public ApiResponse createPortingOrderWit * Creates a new comment for a porting order. * @param id Porting Order id (required) * @param createPortingOrderComment (required) - * @return ShowPortingOrderComment + * @return CreatePortingOrderComment201Response * @throws ApiException if fails to make API call * @http.response.details @@ -368,7 +372,7 @@ public ApiResponse createPortingOrderWit
422 Unprocessable entity. Check message field in response for details. -
*/ - public ShowPortingOrderComment createPortingOrderComment(UUID id, CreatePortingOrderComment createPortingOrderComment) throws ApiException { + public CreatePortingOrderComment201Response createPortingOrderComment(UUID id, CreatePortingOrderComment createPortingOrderComment) throws ApiException { return createPortingOrderCommentWithHttpInfo(id, createPortingOrderComment).getData(); } @@ -377,7 +381,7 @@ public ShowPortingOrderComment createPortingOrderComment(UUID id, CreatePortingO * Creates a new comment for a porting order. * @param id Porting Order id (required) * @param createPortingOrderComment (required) - * @return ApiResponse<ShowPortingOrderComment> + * @return ApiResponse<CreatePortingOrderComment201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -387,7 +391,7 @@ public ShowPortingOrderComment createPortingOrderComment(UUID id, CreatePortingO
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse createPortingOrderCommentWithHttpInfo(UUID id, CreatePortingOrderComment createPortingOrderComment) throws ApiException { + public ApiResponse createPortingOrderCommentWithHttpInfo(UUID id, CreatePortingOrderComment createPortingOrderComment) throws ApiException { Object localVarPostBody = createPortingOrderComment; // verify the required parameter 'id' is set @@ -426,7 +430,7 @@ public ApiResponse createPortingOrderCommentWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.createPortingOrderComment", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -506,7 +510,7 @@ public ApiResponse deletePortingOrderWithHttpInfo(UUID id) throws ApiExcep * Retrieves the details of an existing porting order. * @param id Porting Order id (required) * @param includePhoneNumbers Include the first 50 phone number objects in the results (optional, default to true) - * @return ShowPortingOrder + * @return GetPortingOrder200Response * @throws ApiException if fails to make API call * @http.response.details @@ -515,7 +519,7 @@ public ApiResponse deletePortingOrderWithHttpInfo(UUID id) throws ApiExcep
401 Unauthorized -
*/ - public ShowPortingOrder getPortingOrder(UUID id, Boolean includePhoneNumbers) throws ApiException { + public GetPortingOrder200Response getPortingOrder(UUID id, Boolean includePhoneNumbers) throws ApiException { return getPortingOrderWithHttpInfo(id, includePhoneNumbers).getData(); } @@ -524,7 +528,7 @@ public ShowPortingOrder getPortingOrder(UUID id, Boolean includePhoneNumbers) th * Retrieves the details of an existing porting order. * @param id Porting Order id (required) * @param includePhoneNumbers Include the first 50 phone number objects in the results (optional, default to true) - * @return ApiResponse<ShowPortingOrder> + * @return ApiResponse<GetPortingOrder200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -533,7 +537,7 @@ public ShowPortingOrder getPortingOrder(UUID id, Boolean includePhoneNumbers) th
401 Unauthorized -
*/ - public ApiResponse getPortingOrderWithHttpInfo(UUID id, Boolean includePhoneNumbers) throws ApiException { + public ApiResponse getPortingOrderWithHttpInfo(UUID id, Boolean includePhoneNumbers) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -568,7 +572,7 @@ public ApiResponse getPortingOrderWithHttpInfo(UUID id, Boolea String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.getPortingOrder", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -648,7 +652,7 @@ public ApiResponse getPortingOrderLOATemplateWithHttpInfo(UUID id) throws * Retrieve the associated V1 sub_request_id and port_request_id * Retrieve the associated V1 sub_request_id and port_request_id * @param id Porting Order id (required) - * @return SubRequestByPortingOrder + * @return GetPortingOrderSubRequest200Response * @throws ApiException if fails to make API call * @http.response.details @@ -658,7 +662,7 @@ public ApiResponse getPortingOrderLOATemplateWithHttpInfo(UUID id) throws
404 Porting Order not found -
*/ - public SubRequestByPortingOrder getPortingOrderSubRequest(UUID id) throws ApiException { + public GetPortingOrderSubRequest200Response getPortingOrderSubRequest(UUID id) throws ApiException { return getPortingOrderSubRequestWithHttpInfo(id).getData(); } @@ -666,7 +670,7 @@ public SubRequestByPortingOrder getPortingOrderSubRequest(UUID id) throws ApiExc * Retrieve the associated V1 sub_request_id and port_request_id * Retrieve the associated V1 sub_request_id and port_request_id * @param id Porting Order id (required) - * @return ApiResponse<SubRequestByPortingOrder> + * @return ApiResponse<GetPortingOrderSubRequest200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -676,7 +680,7 @@ public SubRequestByPortingOrder getPortingOrderSubRequest(UUID id) throws ApiExc
404 Porting Order not found -
*/ - public ApiResponse getPortingOrderSubRequestWithHttpInfo(UUID id) throws ApiException { + public ApiResponse getPortingOrderSubRequestWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -710,7 +714,7 @@ public ApiResponse getPortingOrderSubRequestWithHttpIn String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.getPortingOrderSubRequest", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -721,7 +725,7 @@ public ApiResponse getPortingOrderSubRequestWithHttpIn * Returns a porting activation job. * @param id Porting Order id (required) * @param activationJobId Activation Job Identifier (required) - * @return ShowPortingOrdersActivationJob + * @return ActivatePortingOrder202Response * @throws ApiException if fails to make API call * @http.response.details @@ -731,7 +735,7 @@ public ApiResponse getPortingOrderSubRequestWithHttpIn
422 Unprocessable entity. Check message field in response for details. -
*/ - public ShowPortingOrdersActivationJob getPortingOrdersActivationJob(UUID id, UUID activationJobId) throws ApiException { + public ActivatePortingOrder202Response getPortingOrdersActivationJob(UUID id, UUID activationJobId) throws ApiException { return getPortingOrdersActivationJobWithHttpInfo(id, activationJobId).getData(); } @@ -740,7 +744,7 @@ public ShowPortingOrdersActivationJob getPortingOrdersActivationJob(UUID id, UUI * Returns a porting activation job. * @param id Porting Order id (required) * @param activationJobId Activation Job Identifier (required) - * @return ApiResponse<ShowPortingOrdersActivationJob> + * @return ApiResponse<ActivatePortingOrder202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -750,7 +754,7 @@ public ShowPortingOrdersActivationJob getPortingOrdersActivationJob(UUID id, UUI
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse getPortingOrdersActivationJobWithHttpInfo(UUID id, UUID activationJobId) throws ApiException { + public ApiResponse getPortingOrdersActivationJobWithHttpInfo(UUID id, UUID activationJobId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -790,7 +794,7 @@ public ApiResponse getPortingOrdersActivationJob String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.getPortingOrdersActivationJob", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -800,7 +804,7 @@ public ApiResponse getPortingOrdersActivationJob * List allowed FOC dates * Returns a list of allowed FOC dates for a porting order. * @param id Porting Order id (required) - * @return ListAllowedFocWindow + * @return ListAllowedFocWindows200Response * @throws ApiException if fails to make API call * @http.response.details @@ -809,7 +813,7 @@ public ApiResponse getPortingOrdersActivationJob
401 Unauthorized -
*/ - public ListAllowedFocWindow listAllowedFocWindows(UUID id) throws ApiException { + public ListAllowedFocWindows200Response listAllowedFocWindows(UUID id) throws ApiException { return listAllowedFocWindowsWithHttpInfo(id).getData(); } @@ -817,7 +821,7 @@ public ListAllowedFocWindow listAllowedFocWindows(UUID id) throws ApiException { * List allowed FOC dates * Returns a list of allowed FOC dates for a porting order. * @param id Porting Order id (required) - * @return ApiResponse<ListAllowedFocWindow> + * @return ApiResponse<ListAllowedFocWindows200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -826,7 +830,7 @@ public ListAllowedFocWindow listAllowedFocWindows(UUID id) throws ApiException {
401 Unauthorized -
*/ - public ApiResponse listAllowedFocWindowsWithHttpInfo(UUID id) throws ApiException { + public ApiResponse listAllowedFocWindowsWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -860,7 +864,7 @@ public ApiResponse listAllowedFocWindowsWithHttpInfo(UUID String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.listAllowedFocWindows", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -872,7 +876,7 @@ public ApiResponse listAllowedFocWindowsWithHttpInfo(UUID * @param id Porting Order id (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListPortingOrderDocuments + * @return ListPortingOrderDocuments200Response * @throws ApiException if fails to make API call * @http.response.details @@ -882,7 +886,7 @@ public ApiResponse listAllowedFocWindowsWithHttpInfo(UUID
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortingOrderDocuments listPortingOrderDocuments(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + public ListPortingOrderDocuments200Response listPortingOrderDocuments(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { return listPortingOrderDocumentsWithHttpInfo(id, pageNumber, pageSize).getData(); } @@ -892,7 +896,7 @@ public ListPortingOrderDocuments listPortingOrderDocuments(UUID id, Integer page * @param id Porting Order id (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListPortingOrderDocuments> + * @return ApiResponse<ListPortingOrderDocuments200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -902,7 +906,7 @@ public ListPortingOrderDocuments listPortingOrderDocuments(UUID id, Integer page
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listPortingOrderDocumentsWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listPortingOrderDocumentsWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -938,12 +942,90 @@ public ApiResponse listPortingOrderDocumentsWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.listPortingOrderDocuments", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * List all required documents for this porting order + * Returns a list of all requirements for this porting order. + * @param id Porting Order id (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @return ListPortingOrderRequirements200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -
+ */ + public ListPortingOrderRequirements200Response listPortingOrderRequirements(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + return listPortingOrderRequirementsWithHttpInfo(id, pageNumber, pageSize).getData(); + } + + /** + * List all required documents for this porting order + * Returns a list of all requirements for this porting order. + * @param id Porting Order id (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @return ApiResponse<ListPortingOrderRequirements200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
401 Unauthorized -
422 Unprocessable entity. Check message field in response for details. -
+ */ + public ApiResponse listPortingOrderRequirementsWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling listPortingOrderRequirements"); + } + + // create path and map variables + String localVarPath = "/porting_orders/{id}/requirements" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("PortingOrderApi.listPortingOrderRequirements", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * List all porting orders * Returns a list of your porting order. @@ -961,7 +1043,7 @@ public ApiResponse listPortingOrderDocumentsWithHttpI * @param filterActivationSettingsFocDatetimeRequestedGt Filter results by foc date later than this value (optional) * @param filterActivationSettingsFocDatetimeRequestedLt Filter results by foc date earlier than this value (optional) * @param sort Specifies the sort order for results. If not given, results are sorted by created_at in descending order. (optional) - * @return ListPortingOrder + * @return ListPortingOrders200Response * @throws ApiException if fails to make API call * @http.response.details @@ -971,7 +1053,7 @@ public ApiResponse listPortingOrderDocumentsWithHttpI
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortingOrder listPortingOrders(Integer pageNumber, Integer pageSize, Boolean includePhoneNumbers, String filterStatus, String filterCustomerReference, String filterPhoneNumbersCountryCode, String filterPhoneNumbersCarrierName, PortingOrderType filterMiscType, String filterEndUserAdminEntityName, String filterEndUserAdminAuthPersonName, Boolean filterActivationSettingsFastPortEligible, String filterActivationSettingsFocDatetimeRequestedGt, String filterActivationSettingsFocDatetimeRequestedLt, String sort) throws ApiException { + public ListPortingOrders200Response listPortingOrders(Integer pageNumber, Integer pageSize, Boolean includePhoneNumbers, String filterStatus, String filterCustomerReference, String filterPhoneNumbersCountryCode, String filterPhoneNumbersCarrierName, PortingOrderType filterMiscType, String filterEndUserAdminEntityName, String filterEndUserAdminAuthPersonName, Boolean filterActivationSettingsFastPortEligible, String filterActivationSettingsFocDatetimeRequestedGt, String filterActivationSettingsFocDatetimeRequestedLt, String sort) throws ApiException { return listPortingOrdersWithHttpInfo(pageNumber, pageSize, includePhoneNumbers, filterStatus, filterCustomerReference, filterPhoneNumbersCountryCode, filterPhoneNumbersCarrierName, filterMiscType, filterEndUserAdminEntityName, filterEndUserAdminAuthPersonName, filterActivationSettingsFastPortEligible, filterActivationSettingsFocDatetimeRequestedGt, filterActivationSettingsFocDatetimeRequestedLt, sort).getData(); } @@ -992,7 +1074,7 @@ public ListPortingOrder listPortingOrders(Integer pageNumber, Integer pageSize, * @param filterActivationSettingsFocDatetimeRequestedGt Filter results by foc date later than this value (optional) * @param filterActivationSettingsFocDatetimeRequestedLt Filter results by foc date earlier than this value (optional) * @param sort Specifies the sort order for results. If not given, results are sorted by created_at in descending order. (optional) - * @return ApiResponse<ListPortingOrder> + * @return ApiResponse<ListPortingOrders200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1002,7 +1084,7 @@ public ListPortingOrder listPortingOrders(Integer pageNumber, Integer pageSize,
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listPortingOrdersWithHttpInfo(Integer pageNumber, Integer pageSize, Boolean includePhoneNumbers, String filterStatus, String filterCustomerReference, String filterPhoneNumbersCountryCode, String filterPhoneNumbersCarrierName, PortingOrderType filterMiscType, String filterEndUserAdminEntityName, String filterEndUserAdminAuthPersonName, Boolean filterActivationSettingsFastPortEligible, String filterActivationSettingsFocDatetimeRequestedGt, String filterActivationSettingsFocDatetimeRequestedLt, String sort) throws ApiException { + public ApiResponse listPortingOrdersWithHttpInfo(Integer pageNumber, Integer pageSize, Boolean includePhoneNumbers, String filterStatus, String filterCustomerReference, String filterPhoneNumbersCountryCode, String filterPhoneNumbersCarrierName, PortingOrderType filterMiscType, String filterEndUserAdminEntityName, String filterEndUserAdminAuthPersonName, Boolean filterActivationSettingsFastPortEligible, String filterActivationSettingsFocDatetimeRequestedGt, String filterActivationSettingsFocDatetimeRequestedLt, String sort) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1044,7 +1126,7 @@ public ApiResponse listPortingOrdersWithHttpInfo(Integer pageN String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.listPortingOrders", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1056,7 +1138,7 @@ public ApiResponse listPortingOrdersWithHttpInfo(Integer pageN * @param id Porting Order id (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListPortingOrdersActivationJobs + * @return ListPortingOrdersActivationJobs200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1066,7 +1148,7 @@ public ApiResponse listPortingOrdersWithHttpInfo(Integer pageN
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortingOrdersActivationJobs listPortingOrdersActivationJobs(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + public ListPortingOrdersActivationJobs200Response listPortingOrdersActivationJobs(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { return listPortingOrdersActivationJobsWithHttpInfo(id, pageNumber, pageSize).getData(); } @@ -1076,7 +1158,7 @@ public ListPortingOrdersActivationJobs listPortingOrdersActivationJobs(UUID id, * @param id Porting Order id (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListPortingOrdersActivationJobs> + * @return ApiResponse<ListPortingOrdersActivationJobs200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1086,7 +1168,7 @@ public ListPortingOrdersActivationJobs listPortingOrdersActivationJobs(UUID id,
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listPortingOrdersActivationJobsWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listPortingOrdersActivationJobsWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1122,7 +1204,7 @@ public ApiResponse listPortingOrdersActivationJ String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.listPortingOrdersActivationJobs", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1134,7 +1216,7 @@ public ApiResponse listPortingOrdersActivationJ * @param id Porting Order id (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListPortingOrdersComments + * @return ListPortingOrdersComments200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1144,7 +1226,7 @@ public ApiResponse listPortingOrdersActivationJ
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortingOrdersComments listPortingOrdersComments(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + public ListPortingOrdersComments200Response listPortingOrdersComments(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { return listPortingOrdersCommentsWithHttpInfo(id, pageNumber, pageSize).getData(); } @@ -1154,7 +1236,7 @@ public ListPortingOrdersComments listPortingOrdersComments(UUID id, Integer page * @param id Porting Order id (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListPortingOrdersComments> + * @return ApiResponse<ListPortingOrdersComments200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1164,7 +1246,7 @@ public ListPortingOrdersComments listPortingOrdersComments(UUID id, Integer page
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listPortingOrdersCommentsWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listPortingOrdersCommentsWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1200,7 +1282,7 @@ public ApiResponse listPortingOrdersCommentsWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.listPortingOrdersComments", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1209,7 +1291,7 @@ public ApiResponse listPortingOrdersCommentsWithHttpI /** * List all exception types * Returns a list of all possible exception types for a porting order. - * @return ListPortingOrdersExceptionTypes + * @return ListPortingOrdersExceptionTypes200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1219,14 +1301,14 @@ public ApiResponse listPortingOrdersCommentsWithHttpI
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortingOrdersExceptionTypes listPortingOrdersExceptionTypes() throws ApiException { + public ListPortingOrdersExceptionTypes200Response listPortingOrdersExceptionTypes() throws ApiException { return listPortingOrdersExceptionTypesWithHttpInfo().getData(); } /** * List all exception types * Returns a list of all possible exception types for a porting order. - * @return ApiResponse<ListPortingOrdersExceptionTypes> + * @return ApiResponse<ListPortingOrdersExceptionTypes200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1236,7 +1318,7 @@ public ListPortingOrdersExceptionTypes listPortingOrdersExceptionTypes() throws
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listPortingOrdersExceptionTypesWithHttpInfo() throws ApiException { + public ApiResponse listPortingOrdersExceptionTypesWithHttpInfo() throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1264,7 +1346,7 @@ public ApiResponse listPortingOrdersExceptionTy String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.listPortingOrdersExceptionTypes", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1284,7 +1366,7 @@ public ApiResponse listPortingOrdersExceptionTy * @param filterPortingOrderStatus Filter results by porting order status (optional) * @param filterActivationStatus Filter results by activation status (optional) * @param filterPortabilityStatus Filter results by portability status (optional) - * @return ListPortingPhoneNumbers + * @return ListPortingPhoneNumbers200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1294,7 +1376,7 @@ public ApiResponse listPortingOrdersExceptionTy
422 Unprocessable entity. Check message field in response for details. -
*/ - public ListPortingPhoneNumbers listPortingPhoneNumbers(Integer pageNumber, Integer pageSize, UUID filterPortingOrderId, List filterPortingOrderIdIn, String filterSupportKeyEq, List filterSupportKeyIn, String filterPhoneNumber, List filterPhoneNumberIn, String filterPortingOrderStatus, PortingOrderActivationStatus filterActivationStatus, PortabilityStatus filterPortabilityStatus) throws ApiException { + public ListPortingPhoneNumbers200Response listPortingPhoneNumbers(Integer pageNumber, Integer pageSize, UUID filterPortingOrderId, List filterPortingOrderIdIn, String filterSupportKeyEq, List filterSupportKeyIn, String filterPhoneNumber, List filterPhoneNumberIn, String filterPortingOrderStatus, PortingOrderActivationStatus filterActivationStatus, PortabilityStatus filterPortabilityStatus) throws ApiException { return listPortingPhoneNumbersWithHttpInfo(pageNumber, pageSize, filterPortingOrderId, filterPortingOrderIdIn, filterSupportKeyEq, filterSupportKeyIn, filterPhoneNumber, filterPhoneNumberIn, filterPortingOrderStatus, filterActivationStatus, filterPortabilityStatus).getData(); } @@ -1312,7 +1394,7 @@ public ListPortingPhoneNumbers listPortingPhoneNumbers(Integer pageNumber, Integ * @param filterPortingOrderStatus Filter results by porting order status (optional) * @param filterActivationStatus Filter results by activation status (optional) * @param filterPortabilityStatus Filter results by portability status (optional) - * @return ApiResponse<ListPortingPhoneNumbers> + * @return ApiResponse<ListPortingPhoneNumbers200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1322,7 +1404,7 @@ public ListPortingPhoneNumbers listPortingPhoneNumbers(Integer pageNumber, Integ
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse listPortingPhoneNumbersWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterPortingOrderId, List filterPortingOrderIdIn, String filterSupportKeyEq, List filterSupportKeyIn, String filterPhoneNumber, List filterPhoneNumberIn, String filterPortingOrderStatus, PortingOrderActivationStatus filterActivationStatus, PortabilityStatus filterPortabilityStatus) throws ApiException { + public ApiResponse listPortingPhoneNumbersWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterPortingOrderId, List filterPortingOrderIdIn, String filterSupportKeyEq, List filterSupportKeyIn, String filterPhoneNumber, List filterPhoneNumberIn, String filterPortingOrderStatus, PortingOrderActivationStatus filterActivationStatus, PortabilityStatus filterPortabilityStatus) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1361,7 +1443,7 @@ public ApiResponse listPortingPhoneNumbersWithHttpInfo( String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.listPortingPhoneNumbers", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1372,7 +1454,7 @@ public ApiResponse listPortingPhoneNumbersWithHttpInfo( * Edits the details of an existing porting order. Any or all of a porting order’s attributes may be included in the resource object included in a PATCH request. If a request does not include all of the attributes for a resource, the system will interpret the missing attributes as if they were included with their current values. To explicitly set something to null, it must be included in the request with a null value. * @param id Porting Order id (required) * @param updatePortingOrder (required) - * @return ShowPortingOrder + * @return UpdatePortingOrder200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1382,7 +1464,7 @@ public ApiResponse listPortingPhoneNumbersWithHttpInfo(
422 Unprocessable entity. Check message field in response for details. -
*/ - public ShowPortingOrder updatePortingOrder(UUID id, UpdatePortingOrder updatePortingOrder) throws ApiException { + public UpdatePortingOrder200Response updatePortingOrder(UUID id, UpdatePortingOrder updatePortingOrder) throws ApiException { return updatePortingOrderWithHttpInfo(id, updatePortingOrder).getData(); } @@ -1391,7 +1473,7 @@ public ShowPortingOrder updatePortingOrder(UUID id, UpdatePortingOrder updatePor * Edits the details of an existing porting order. Any or all of a porting order’s attributes may be included in the resource object included in a PATCH request. If a request does not include all of the attributes for a resource, the system will interpret the missing attributes as if they were included with their current values. To explicitly set something to null, it must be included in the request with a null value. * @param id Porting Order id (required) * @param updatePortingOrder (required) - * @return ApiResponse<ShowPortingOrder> + * @return ApiResponse<UpdatePortingOrder200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1401,7 +1483,7 @@ public ShowPortingOrder updatePortingOrder(UUID id, UpdatePortingOrder updatePor
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse updatePortingOrderWithHttpInfo(UUID id, UpdatePortingOrder updatePortingOrder) throws ApiException { + public ApiResponse updatePortingOrderWithHttpInfo(UUID id, UpdatePortingOrder updatePortingOrder) throws ApiException { Object localVarPostBody = updatePortingOrder; // verify the required parameter 'id' is set @@ -1440,7 +1522,7 @@ public ApiResponse updatePortingOrderWithHttpInfo(UUID id, Upd String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.updatePortingOrder", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1450,8 +1532,8 @@ public ApiResponse updatePortingOrderWithHttpInfo(UUID id, Upd * Associate a list of documents with a porting order * Associate a list of documents with a porting order. * @param id Porting Order id (required) - * @param UNKNOWN_BASE_TYPE (required) - * @return PortingOrderDocumentsCreated + * @param uploadPortingOrderDocumentsRequest (required) + * @return UploadPortingOrderDocuments201Response * @throws ApiException if fails to make API call * @http.response.details @@ -1461,16 +1543,16 @@ public ApiResponse updatePortingOrderWithHttpInfo(UUID id, Upd
422 Unprocessable entity. Check message field in response for details. -
*/ - public PortingOrderDocumentsCreated uploadPortingOrderDocuments(UUID id, UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { - return uploadPortingOrderDocumentsWithHttpInfo(id, UNKNOWN_BASE_TYPE).getData(); + public UploadPortingOrderDocuments201Response uploadPortingOrderDocuments(UUID id, UploadPortingOrderDocumentsRequest uploadPortingOrderDocumentsRequest) throws ApiException { + return uploadPortingOrderDocumentsWithHttpInfo(id, uploadPortingOrderDocumentsRequest).getData(); } /** * Associate a list of documents with a porting order * Associate a list of documents with a porting order. * @param id Porting Order id (required) - * @param UNKNOWN_BASE_TYPE (required) - * @return ApiResponse<PortingOrderDocumentsCreated> + * @param uploadPortingOrderDocumentsRequest (required) + * @return ApiResponse<UploadPortingOrderDocuments201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1480,17 +1562,17 @@ public PortingOrderDocumentsCreated uploadPortingOrderDocuments(UUID id, UNKNOWN
422 Unprocessable entity. Check message field in response for details. -
*/ - public ApiResponse uploadPortingOrderDocumentsWithHttpInfo(UUID id, UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { - Object localVarPostBody = UNKNOWN_BASE_TYPE; + public ApiResponse uploadPortingOrderDocumentsWithHttpInfo(UUID id, UploadPortingOrderDocumentsRequest uploadPortingOrderDocumentsRequest) throws ApiException { + Object localVarPostBody = uploadPortingOrderDocumentsRequest; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling uploadPortingOrderDocuments"); } - // verify the required parameter 'UNKNOWN_BASE_TYPE' is set - if (UNKNOWN_BASE_TYPE == null) { - throw new ApiException(400, "Missing the required parameter 'UNKNOWN_BASE_TYPE' when calling uploadPortingOrderDocuments"); + // verify the required parameter 'uploadPortingOrderDocumentsRequest' is set + if (uploadPortingOrderDocumentsRequest == null) { + throw new ApiException(400, "Missing the required parameter 'uploadPortingOrderDocumentsRequest' when calling uploadPortingOrderDocuments"); } // create path and map variables @@ -1519,7 +1601,7 @@ public ApiResponse uploadPortingOrderDocumentsWith String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PortingOrderApi.uploadPortingOrderDocuments", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/PrivateWirelessGatewaysApi.java b/src/main/java/com/telnyx/sdk/api/PrivateWirelessGatewaysApi.java index c61e6f54..5ff02625 100644 --- a/src/main/java/com/telnyx/sdk/api/PrivateWirelessGatewaysApi.java +++ b/src/main/java/com/telnyx/sdk/api/PrivateWirelessGatewaysApi.java @@ -8,13 +8,11 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreatePrivateWirelessGatewayResponse; -import com.telnyx.sdk.model.CreatePrivateWirelessGatwewayRequest; -import com.telnyx.sdk.model.DeletePrivateWirelessGatewayResponse; +import com.telnyx.sdk.model.CreatePrivateWirelessGateway202Response; +import com.telnyx.sdk.model.CreatePrivateWirelessGatewayRequest; import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetAllPrivateWirelessGatewaysResponse; -import com.telnyx.sdk.model.GetPrivateWirelessGatewayResponse; +import com.telnyx.sdk.model.GetPrivateWirelessGateways200Response; import java.util.UUID; import java.util.ArrayList; @@ -55,8 +53,8 @@ public void setApiClient(ApiClient apiClient) { /** * Create a Private Wireless Gateway * Asynchronously create a Private Wireless Gateway for SIM cards for a previously created network. - * @param createPrivateWirelessGatwewayRequest (required) - * @return CreatePrivateWirelessGatewayResponse + * @param createPrivateWirelessGatewayRequest (required) + * @return CreatePrivateWirelessGateway202Response * @throws ApiException if fails to make API call * @http.response.details @@ -66,15 +64,15 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public CreatePrivateWirelessGatewayResponse createPrivateWirelessGateway(CreatePrivateWirelessGatwewayRequest createPrivateWirelessGatwewayRequest) throws ApiException { - return createPrivateWirelessGatewayWithHttpInfo(createPrivateWirelessGatwewayRequest).getData(); + public CreatePrivateWirelessGateway202Response createPrivateWirelessGateway(CreatePrivateWirelessGatewayRequest createPrivateWirelessGatewayRequest) throws ApiException { + return createPrivateWirelessGatewayWithHttpInfo(createPrivateWirelessGatewayRequest).getData(); } /** * Create a Private Wireless Gateway * Asynchronously create a Private Wireless Gateway for SIM cards for a previously created network. - * @param createPrivateWirelessGatwewayRequest (required) - * @return ApiResponse<CreatePrivateWirelessGatewayResponse> + * @param createPrivateWirelessGatewayRequest (required) + * @return ApiResponse<CreatePrivateWirelessGateway202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -84,12 +82,12 @@ public CreatePrivateWirelessGatewayResponse createPrivateWirelessGateway(CreateP
0 Unexpected error -
*/ - public ApiResponse createPrivateWirelessGatewayWithHttpInfo(CreatePrivateWirelessGatwewayRequest createPrivateWirelessGatwewayRequest) throws ApiException { - Object localVarPostBody = createPrivateWirelessGatwewayRequest; + public ApiResponse createPrivateWirelessGatewayWithHttpInfo(CreatePrivateWirelessGatewayRequest createPrivateWirelessGatewayRequest) throws ApiException { + Object localVarPostBody = createPrivateWirelessGatewayRequest; - // verify the required parameter 'createPrivateWirelessGatwewayRequest' is set - if (createPrivateWirelessGatwewayRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createPrivateWirelessGatwewayRequest' when calling createPrivateWirelessGateway"); + // verify the required parameter 'createPrivateWirelessGatewayRequest' is set + if (createPrivateWirelessGatewayRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createPrivateWirelessGatewayRequest' when calling createPrivateWirelessGateway"); } // create path and map variables @@ -117,7 +115,7 @@ public ApiResponse createPrivateWirelessGa String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PrivateWirelessGatewaysApi.createPrivateWirelessGateway", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -127,7 +125,7 @@ public ApiResponse createPrivateWirelessGa * Delete a Private Wireless Gateway * Deletes the Private Wireless Gateway. * @param id Identifies the resource. (required) - * @return DeletePrivateWirelessGatewayResponse + * @return CreatePrivateWirelessGateway202Response * @throws ApiException if fails to make API call * @http.response.details @@ -137,7 +135,7 @@ public ApiResponse createPrivateWirelessGa
0 Unexpected error -
*/ - public DeletePrivateWirelessGatewayResponse deletePrivateWirelessGateway(UUID id) throws ApiException { + public CreatePrivateWirelessGateway202Response deletePrivateWirelessGateway(UUID id) throws ApiException { return deletePrivateWirelessGatewayWithHttpInfo(id).getData(); } @@ -145,7 +143,7 @@ public DeletePrivateWirelessGatewayResponse deletePrivateWirelessGateway(UUID id * Delete a Private Wireless Gateway * Deletes the Private Wireless Gateway. * @param id Identifies the resource. (required) - * @return ApiResponse<DeletePrivateWirelessGatewayResponse> + * @return ApiResponse<CreatePrivateWirelessGateway202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -155,7 +153,7 @@ public DeletePrivateWirelessGatewayResponse deletePrivateWirelessGateway(UUID id
0 Unexpected error -
*/ - public ApiResponse deletePrivateWirelessGatewayWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deletePrivateWirelessGatewayWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -189,7 +187,7 @@ public ApiResponse deletePrivateWirelessGa String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PrivateWirelessGatewaysApi.deletePrivateWirelessGateway", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -199,7 +197,7 @@ public ApiResponse deletePrivateWirelessGa * Get a Private Wireless Gateway * Retrieve information about a Private Wireless Gateway. * @param id Identifies the resource. (required) - * @return GetPrivateWirelessGatewayResponse + * @return CreatePrivateWirelessGateway202Response * @throws ApiException if fails to make API call * @http.response.details @@ -209,7 +207,7 @@ public ApiResponse deletePrivateWirelessGa
0 Unexpected error -
*/ - public GetPrivateWirelessGatewayResponse getPrivateWirelessGateway(UUID id) throws ApiException { + public CreatePrivateWirelessGateway202Response getPrivateWirelessGateway(UUID id) throws ApiException { return getPrivateWirelessGatewayWithHttpInfo(id).getData(); } @@ -217,7 +215,7 @@ public GetPrivateWirelessGatewayResponse getPrivateWirelessGateway(UUID id) thro * Get a Private Wireless Gateway * Retrieve information about a Private Wireless Gateway. * @param id Identifies the resource. (required) - * @return ApiResponse<GetPrivateWirelessGatewayResponse> + * @return ApiResponse<CreatePrivateWirelessGateway202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -227,7 +225,7 @@ public GetPrivateWirelessGatewayResponse getPrivateWirelessGateway(UUID id) thro
0 Unexpected error -
*/ - public ApiResponse getPrivateWirelessGatewayWithHttpInfo(UUID id) throws ApiException { + public ApiResponse getPrivateWirelessGatewayWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -261,7 +259,7 @@ public ApiResponse getPrivateWirelessGatewayW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PrivateWirelessGatewaysApi.getPrivateWirelessGateway", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -277,7 +275,7 @@ public ApiResponse getPrivateWirelessGatewayW * @param filterRegionCode The name of the region where the Private Wireless Gateway is deployed. (optional) * @param filterCreatedAt Private Wireless Gateway resource creation date. (optional) * @param filterUpdatedAt When the Private Wireless Gateway was last updated. (optional) - * @return GetAllPrivateWirelessGatewaysResponse + * @return GetPrivateWirelessGateways200Response * @throws ApiException if fails to make API call * @http.response.details @@ -286,7 +284,7 @@ public ApiResponse getPrivateWirelessGatewayW
0 Unexpected error -
*/ - public GetAllPrivateWirelessGatewaysResponse getPrivateWirelessGateways(Integer pageNumber, Integer pageSize, String filterName, String filterIpRange, String filterRegionCode, String filterCreatedAt, String filterUpdatedAt) throws ApiException { + public GetPrivateWirelessGateways200Response getPrivateWirelessGateways(Integer pageNumber, Integer pageSize, String filterName, String filterIpRange, String filterRegionCode, String filterCreatedAt, String filterUpdatedAt) throws ApiException { return getPrivateWirelessGatewaysWithHttpInfo(pageNumber, pageSize, filterName, filterIpRange, filterRegionCode, filterCreatedAt, filterUpdatedAt).getData(); } @@ -300,7 +298,7 @@ public GetAllPrivateWirelessGatewaysResponse getPrivateWirelessGateways(Integer * @param filterRegionCode The name of the region where the Private Wireless Gateway is deployed. (optional) * @param filterCreatedAt Private Wireless Gateway resource creation date. (optional) * @param filterUpdatedAt When the Private Wireless Gateway was last updated. (optional) - * @return ApiResponse<GetAllPrivateWirelessGatewaysResponse> + * @return ApiResponse<GetPrivateWirelessGateways200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -309,7 +307,7 @@ public GetAllPrivateWirelessGatewaysResponse getPrivateWirelessGateways(Integer
0 Unexpected error -
*/ - public ApiResponse getPrivateWirelessGatewaysWithHttpInfo(Integer pageNumber, Integer pageSize, String filterName, String filterIpRange, String filterRegionCode, String filterCreatedAt, String filterUpdatedAt) throws ApiException { + public ApiResponse getPrivateWirelessGatewaysWithHttpInfo(Integer pageNumber, Integer pageSize, String filterName, String filterIpRange, String filterRegionCode, String filterCreatedAt, String filterUpdatedAt) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -344,7 +342,7 @@ public ApiResponse getPrivateWirelessGate String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("PrivateWirelessGatewaysApi.getPrivateWirelessGateways", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/ProgrammableFaxApplicationsApi.java b/src/main/java/com/telnyx/sdk/api/ProgrammableFaxApplicationsApi.java index 2e35fb08..30d3cfd0 100644 --- a/src/main/java/com/telnyx/sdk/api/ProgrammableFaxApplicationsApi.java +++ b/src/main/java/com/telnyx/sdk/api/ProgrammableFaxApplicationsApi.java @@ -271,7 +271,7 @@ public ApiResponse getFaxApplicationWithHttpInfo(String * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterApplicationNameContains If present, applications with <code>application_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) - * @param filterOutboundOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) + * @param filterOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to created_at) * @return GetAllFaxApplicationsResponse * @throws ApiException if fails to make API call @@ -284,8 +284,8 @@ public ApiResponse getFaxApplicationWithHttpInfo(String 404 Resource not found - */ - public GetAllFaxApplicationsResponse listFaxApplications(Integer pageNumber, Integer pageSize, String filterApplicationNameContains, String filterOutboundOutboundVoiceProfileId, String sort) throws ApiException { - return listFaxApplicationsWithHttpInfo(pageNumber, pageSize, filterApplicationNameContains, filterOutboundOutboundVoiceProfileId, sort).getData(); + public GetAllFaxApplicationsResponse listFaxApplications(Integer pageNumber, Integer pageSize, String filterApplicationNameContains, String filterOutboundVoiceProfileId, String sort) throws ApiException { + return listFaxApplicationsWithHttpInfo(pageNumber, pageSize, filterApplicationNameContains, filterOutboundVoiceProfileId, sort).getData(); } /** @@ -294,7 +294,7 @@ public GetAllFaxApplicationsResponse listFaxApplications(Integer pageNumber, Int * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterApplicationNameContains If present, applications with <code>application_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) - * @param filterOutboundOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) + * @param filterOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to created_at) * @return ApiResponse<GetAllFaxApplicationsResponse> * @throws ApiException if fails to make API call @@ -307,7 +307,7 @@ public GetAllFaxApplicationsResponse listFaxApplications(Integer pageNumber, Int 404 Resource not found - */ - public ApiResponse listFaxApplicationsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterApplicationNameContains, String filterOutboundOutboundVoiceProfileId, String sort) throws ApiException { + public ApiResponse listFaxApplicationsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterApplicationNameContains, String filterOutboundVoiceProfileId, String sort) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -322,7 +322,7 @@ public ApiResponse listFaxApplicationsWithHttpInf localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[application_name][contains]", filterApplicationNameContains)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound.outbound_voice_profile_id]", filterOutboundOutboundVoiceProfileId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound_voice_profile_id]", filterOutboundVoiceProfileId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); diff --git a/src/main/java/com/telnyx/sdk/api/ProgrammableFaxCommandsApi.java b/src/main/java/com/telnyx/sdk/api/ProgrammableFaxCommandsApi.java index 875b4c92..177eca8b 100644 --- a/src/main/java/com/telnyx/sdk/api/ProgrammableFaxCommandsApi.java +++ b/src/main/java/com/telnyx/sdk/api/ProgrammableFaxCommandsApi.java @@ -15,6 +15,7 @@ import com.telnyx.sdk.model.RefreshFaxResponse; import com.telnyx.sdk.model.SendFaxRequest; import com.telnyx.sdk.model.SendFaxResponse; +import com.telnyx.sdk.model.SuccessfulResponseUponAcceptingCancelFaxCommand; import java.util.UUID; import java.util.ArrayList; @@ -52,6 +53,80 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * Cancel a fax + * Cancel the outbound fax that is in one of the following states: `queued`, `media.processed`, `originated` or `sending` + * @param id The unique identifier of a fax. (required) + * @return SuccessfulResponseUponAcceptingCancelFaxCommand + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + +
Status Code Description Response Headers
202 Successful response upon accepting cancel fax command -
404 Fax does not exist -
422 Unprocessable entity -
0 Unexpected error -
+ */ + public SuccessfulResponseUponAcceptingCancelFaxCommand cancelFax(UUID id) throws ApiException { + return cancelFaxWithHttpInfo(id).getData(); + } + + /** + * Cancel a fax + * Cancel the outbound fax that is in one of the following states: `queued`, `media.processed`, `originated` or `sending` + * @param id The unique identifier of a fax. (required) + * @return ApiResponse<SuccessfulResponseUponAcceptingCancelFaxCommand> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + + +
Status Code Description Response Headers
202 Successful response upon accepting cancel fax command -
404 Fax does not exist -
422 Unprocessable entity -
0 Unexpected error -
+ */ + public ApiResponse cancelFaxWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling cancelFax"); + } + + // create path and map variables + String localVarPath = "/faxes/{id}/actions/cancel" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("ProgrammableFaxCommandsApi.cancelFax", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Delete a fax * @@ -215,7 +290,7 @@ public ApiResponse listFaxesWithHttpInfo(OffsetDateTime filte - +
Status Code Description Response Headers
200 Refresh fax response -
404 Conference does not exist -
404 Fax does not exist -
0 Unexpected error -
*/ @@ -233,7 +308,7 @@ public RefreshFaxResponse refreshFax(UUID id) throws ApiException { - +
Status Code Description Response Headers
200 Refresh fax response -
404 Conference does not exist -
404 Fax does not exist -
0 Unexpected error -
*/ @@ -279,7 +354,7 @@ public ApiResponse refreshFaxWithHttpInfo(UUID id) throws Ap } /** * Send a fax - * + * Send a fax. Files have size limits and page count limit validations. If a file is bigger than 50MB or has more than 350 pages it will fail with `file_size_limit_exceeded` and `page_count_limit_exceeded` respectively. **Expected Webhooks:** - `fax.queued` - `fax.media.processed` - `fax.sending.started` - `fax.delivered` - `fax.failed` * @param sendFaxRequest Send fax request (required) * @return SendFaxResponse * @throws ApiException if fails to make API call @@ -296,7 +371,7 @@ public SendFaxResponse sendFax(SendFaxRequest sendFaxRequest) throws ApiExceptio /** * Send a fax - * + * Send a fax. Files have size limits and page count limit validations. If a file is bigger than 50MB or has more than 350 pages it will fail with `file_size_limit_exceeded` and `page_count_limit_exceeded` respectively. **Expected Webhooks:** - `fax.queued` - `fax.media.processed` - `fax.sending.started` - `fax.delivered` - `fax.failed` * @param sendFaxRequest Send fax request (required) * @return ApiResponse<SendFaxResponse> * @throws ApiException if fails to make API call diff --git a/src/main/java/com/telnyx/sdk/api/PublicInternetGatewaysApi.java b/src/main/java/com/telnyx/sdk/api/PublicInternetGatewaysApi.java new file mode 100644 index 00000000..9872f52d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/PublicInternetGatewaysApi.java @@ -0,0 +1,334 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.Errors; +import com.telnyx.sdk.model.PublicInternetGatewayCreate; +import com.telnyx.sdk.model.PublicInternetGatewayCreate202Response; +import com.telnyx.sdk.model.PublicInternetGatewayList200Response; +import java.util.UUID; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PublicInternetGatewaysApi { + private ApiClient apiClient; + + public PublicInternetGatewaysApi() { + this(Configuration.getDefaultApiClient()); + } + + public PublicInternetGatewaysApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create a Public Internet Gateway + * Create a new Public Internet Gateway. + * @param publicInternetGatewayCreate (required) + * @return PublicInternetGatewayCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public PublicInternetGatewayCreate202Response publicInternetGatewayCreate(PublicInternetGatewayCreate publicInternetGatewayCreate) throws ApiException { + return publicInternetGatewayCreateWithHttpInfo(publicInternetGatewayCreate).getData(); + } + + /** + * Create a Public Internet Gateway + * Create a new Public Internet Gateway. + * @param publicInternetGatewayCreate (required) + * @return ApiResponse<PublicInternetGatewayCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse publicInternetGatewayCreateWithHttpInfo(PublicInternetGatewayCreate publicInternetGatewayCreate) throws ApiException { + Object localVarPostBody = publicInternetGatewayCreate; + + // verify the required parameter 'publicInternetGatewayCreate' is set + if (publicInternetGatewayCreate == null) { + throw new ApiException(400, "Missing the required parameter 'publicInternetGatewayCreate' when calling publicInternetGatewayCreate"); + } + + // create path and map variables + String localVarPath = "/public_internet_gateways"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("PublicInternetGatewaysApi.publicInternetGatewayCreate", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete a Public Internet Gateway + * Delete a Public Internet Gateway. + * @param id Identifies the resource. (required) + * @return PublicInternetGatewayCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public PublicInternetGatewayCreate202Response publicInternetGatewayDelete(UUID id) throws ApiException { + return publicInternetGatewayDeleteWithHttpInfo(id).getData(); + } + + /** + * Delete a Public Internet Gateway + * Delete a Public Internet Gateway. + * @param id Identifies the resource. (required) + * @return ApiResponse<PublicInternetGatewayCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse publicInternetGatewayDeleteWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling publicInternetGatewayDelete"); + } + + // create path and map variables + String localVarPath = "/public_internet_gateways/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("PublicInternetGatewaysApi.publicInternetGatewayDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve a Public Internet Gateway + * Retrieve a Public Internet Gateway. + * @param id Identifies the resource. (required) + * @return PublicInternetGatewayCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public PublicInternetGatewayCreate202Response publicInternetGatewayGet(UUID id) throws ApiException { + return publicInternetGatewayGetWithHttpInfo(id).getData(); + } + + /** + * Retrieve a Public Internet Gateway + * Retrieve a Public Internet Gateway. + * @param id Identifies the resource. (required) + * @return ApiResponse<PublicInternetGatewayCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse publicInternetGatewayGetWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling publicInternetGatewayGet"); + } + + // create path and map variables + String localVarPath = "/public_internet_gateways/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("PublicInternetGatewaysApi.publicInternetGatewayGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all Public Internet Gateways + * List all Public Internet Gateways. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterNetworkId The associated network id to filter on. (optional) + * @return PublicInternetGatewayList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public PublicInternetGatewayList200Response publicInternetGatewayList(Integer pageNumber, Integer pageSize, String filterNetworkId) throws ApiException { + return publicInternetGatewayListWithHttpInfo(pageNumber, pageSize, filterNetworkId).getData(); + } + + /** + * List all Public Internet Gateways + * List all Public Internet Gateways. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterNetworkId The associated network id to filter on. (optional) + * @return ApiResponse<PublicInternetGatewayList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse publicInternetGatewayListWithHttpInfo(Integer pageNumber, Integer pageSize, String filterNetworkId) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/public_internet_gateways"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[network_id]", filterNetworkId)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("PublicInternetGatewaysApi.publicInternetGatewayList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/PushCredentialsApi.java b/src/main/java/com/telnyx/sdk/api/PushCredentialsApi.java index 68d1fcce..4050b0f6 100644 --- a/src/main/java/com/telnyx/sdk/api/PushCredentialsApi.java +++ b/src/main/java/com/telnyx/sdk/api/PushCredentialsApi.java @@ -8,11 +8,9 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreatePushCredentialRequest; import com.telnyx.sdk.model.Errors; -import java.time.LocalDate; -import com.telnyx.sdk.model.OneOfCreateIosPushCredentialRequestCreateAndroidPushCredentialRequest; import com.telnyx.sdk.model.PushCredentialResponse; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; import java.util.UUID; import java.util.ArrayList; @@ -51,49 +49,47 @@ public void setApiClient(ApiClient apiClient) { } /** - * Deletes a push credential - * Deletes a push credential based on the given `id` - * @param pushCredentialId The unique identifier of a push credential (required) + * Creates a new mobile push credential + * Creates a new mobile push credential + * @param createPushCredentialRequest Mobile push credential parameters that need to be sent in the request (required) + * @return PushCredentialResponse * @throws ApiException if fails to make API call * @http.response.details - + -
Status Code Description Response Headers
204 The push credential was deleted successfully -
200 Mobile push credential created -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public void deletePushCredentialnById(UUID pushCredentialId) throws ApiException { - deletePushCredentialnByIdWithHttpInfo(pushCredentialId); + public PushCredentialResponse createPushCredential(CreatePushCredentialRequest createPushCredentialRequest) throws ApiException { + return createPushCredentialWithHttpInfo(createPushCredentialRequest).getData(); } /** - * Deletes a push credential - * Deletes a push credential based on the given `id` - * @param pushCredentialId The unique identifier of a push credential (required) - * @return ApiResponse<Void> + * Creates a new mobile push credential + * Creates a new mobile push credential + * @param createPushCredentialRequest Mobile push credential parameters that need to be sent in the request (required) + * @return ApiResponse<PushCredentialResponse> * @throws ApiException if fails to make API call * @http.response.details - + -
Status Code Description Response Headers
204 The push credential was deleted successfully -
200 Mobile push credential created -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public ApiResponse deletePushCredentialnByIdWithHttpInfo(UUID pushCredentialId) throws ApiException { - Object localVarPostBody = null; + public ApiResponse createPushCredentialWithHttpInfo(CreatePushCredentialRequest createPushCredentialRequest) throws ApiException { + Object localVarPostBody = createPushCredentialRequest; - // verify the required parameter 'pushCredentialId' is set - if (pushCredentialId == null) { - throw new ApiException(400, "Missing the required parameter 'pushCredentialId' when calling deletePushCredentialnById"); + // verify the required parameter 'createPushCredentialRequest' is set + if (createPushCredentialRequest == null) { + throw new ApiException(400, "Missing the required parameter 'createPushCredentialRequest' when calling createPushCredential"); } // create path and map variables - String localVarPath = "/push_credentials/{push_credential_id}" - .replaceAll("\\{" + "push_credential_id" + "\\}", apiClient.escapeString(pushCredentialId.toString())); + String localVarPath = "/mobile_push_credentials"; // query params List localVarQueryParams = new ArrayList(); @@ -111,60 +107,61 @@ public ApiResponse deletePushCredentialnByIdWithHttpInfo(UUID pushCredenti final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - + "application/json" }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "bearerAuth" }; - return apiClient.invokeAPI("PushCredentialsApi.deletePushCredentialnById", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("PushCredentialsApi.createPushCredential", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, - localVarAuthNames, null, false); + localVarAuthNames, localVarReturnType, false); } /** - * Retrieves a push credential - * Retrieves push credential based on the given `id` - * @param pushCredentialId The unique identifier of a push credential (required) - * @return PushCredentialResponse + * Deletes a mobile push credential + * Deletes a mobile push credential based on the given `push_credential_id` + * @param pushCredentialId The unique identifier of a mobile push credential (required) * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful get push credential response -
204 The mobile push credential was deleted successfully -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public PushCredentialResponse getPushCredentialById(UUID pushCredentialId) throws ApiException { - return getPushCredentialByIdWithHttpInfo(pushCredentialId).getData(); + public void deletePushCredentialById(UUID pushCredentialId) throws ApiException { + deletePushCredentialByIdWithHttpInfo(pushCredentialId); } /** - * Retrieves a push credential - * Retrieves push credential based on the given `id` - * @param pushCredentialId The unique identifier of a push credential (required) - * @return ApiResponse<PushCredentialResponse> + * Deletes a mobile push credential + * Deletes a mobile push credential based on the given `push_credential_id` + * @param pushCredentialId The unique identifier of a mobile push credential (required) + * @return ApiResponse<Void> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Successful get push credential response -
204 The mobile push credential was deleted successfully -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public ApiResponse getPushCredentialByIdWithHttpInfo(UUID pushCredentialId) throws ApiException { + public ApiResponse deletePushCredentialByIdWithHttpInfo(UUID pushCredentialId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'pushCredentialId' is set if (pushCredentialId == null) { - throw new ApiException(400, "Missing the required parameter 'pushCredentialId' when calling getPushCredentialById"); + throw new ApiException(400, "Missing the required parameter 'pushCredentialId' when calling deletePushCredentialById"); } // create path and map variables - String localVarPath = "/push_credentials/{push_credential_id}" + String localVarPath = "/mobile_push_credentials/{push_credential_id}" .replaceAll("\\{" + "push_credential_id" + "\\}", apiClient.escapeString(pushCredentialId.toString())); // query params @@ -189,63 +186,55 @@ public ApiResponse getPushCredentialByIdWithHttpInfo(UUI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; - - return apiClient.invokeAPI("PushCredentialsApi.getPushCredentialById", localVarPath, "GET", localVarQueryParams, localVarPostBody, + return apiClient.invokeAPI("PushCredentialsApi.deletePushCredentialById", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, - localVarAuthNames, localVarReturnType, false); + localVarAuthNames, null, false); } /** - * Retrieves push credentials associated to a mobile application - * Retrieves push credentials for a given mobile application based on filters for a user - * @param mobileApplicationId The unique identifier of a mobile application (required) - * @param filterCreatedAtEq ISO 8601 date for filtering credentials created on that date (optional) - * @param filterCreatedAtGte ISO 8601 date for filtering credentials created after that date (optional) - * @param filterCreatedAtLte ISO 8601 date for filtering credentials created before that date (optional) - * @param filterAlias Unique push credential alias (optional) - * @return List<PushCredentialResponse> + * Retrieves a mobile push credential + * Retrieves mobile push credential based on the given `push_credential_id` + * @param pushCredentialId The unique identifier of a mobile push credential (required) + * @return PushCredentialResponse * @throws ApiException if fails to make API call * @http.response.details - + +
Status Code Description Response Headers
200 Mobile application created -
200 Successful get mobile push credential response -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public List getPushCredentials(UUID mobileApplicationId, LocalDate filterCreatedAtEq, LocalDate filterCreatedAtGte, LocalDate filterCreatedAtLte, String filterAlias) throws ApiException { - return getPushCredentialsWithHttpInfo(mobileApplicationId, filterCreatedAtEq, filterCreatedAtGte, filterCreatedAtLte, filterAlias).getData(); + public PushCredentialResponse getPushCredentialById(UUID pushCredentialId) throws ApiException { + return getPushCredentialByIdWithHttpInfo(pushCredentialId).getData(); } /** - * Retrieves push credentials associated to a mobile application - * Retrieves push credentials for a given mobile application based on filters for a user - * @param mobileApplicationId The unique identifier of a mobile application (required) - * @param filterCreatedAtEq ISO 8601 date for filtering credentials created on that date (optional) - * @param filterCreatedAtGte ISO 8601 date for filtering credentials created after that date (optional) - * @param filterCreatedAtLte ISO 8601 date for filtering credentials created before that date (optional) - * @param filterAlias Unique push credential alias (optional) - * @return ApiResponse<List<PushCredentialResponse>> + * Retrieves a mobile push credential + * Retrieves mobile push credential based on the given `push_credential_id` + * @param pushCredentialId The unique identifier of a mobile push credential (required) + * @return ApiResponse<PushCredentialResponse> * @throws ApiException if fails to make API call * @http.response.details - + +
Status Code Description Response Headers
200 Mobile application created -
200 Successful get mobile push credential response -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public ApiResponse> getPushCredentialsWithHttpInfo(UUID mobileApplicationId, LocalDate filterCreatedAtEq, LocalDate filterCreatedAtGte, LocalDate filterCreatedAtLte, String filterAlias) throws ApiException { + public ApiResponse getPushCredentialByIdWithHttpInfo(UUID pushCredentialId) throws ApiException { Object localVarPostBody = null; - // verify the required parameter 'mobileApplicationId' is set - if (mobileApplicationId == null) { - throw new ApiException(400, "Missing the required parameter 'mobileApplicationId' when calling getPushCredentials"); + // verify the required parameter 'pushCredentialId' is set + if (pushCredentialId == null) { + throw new ApiException(400, "Missing the required parameter 'pushCredentialId' when calling getPushCredentialById"); } // create path and map variables - String localVarPath = "/mobile_applications/{mobile_application_id}/push_credentials" - .replaceAll("\\{" + "mobile_application_id" + "\\}", apiClient.escapeString(mobileApplicationId.toString())); + String localVarPath = "/mobile_push_credentials/{push_credential_id}" + .replaceAll("\\{" + "push_credential_id" + "\\}", apiClient.escapeString(pushCredentialId.toString())); // query params List localVarQueryParams = new ArrayList(); @@ -253,10 +242,6 @@ public ApiResponse> getPushCredentialsWithHttpInfo( Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][eq]", filterCreatedAtEq)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][gte]", filterCreatedAtGte)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[created_at][lte]", filterCreatedAtLte)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[alias]", filterAlias)); @@ -273,59 +258,53 @@ public ApiResponse> getPushCredentialsWithHttpInfo( String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType> localVarReturnType = new GenericType>() {}; + GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI("PushCredentialsApi.getPushCredentials", localVarPath, "GET", localVarQueryParams, localVarPostBody, + return apiClient.invokeAPI("PushCredentialsApi.getPushCredentialById", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } /** - * Updates a push credential - * Updates a push credential based on the given `id` - * @param pushCredentialId The unique identifier of a push credential (required) - * @param UNKNOWN_BASE_TYPE Push credential parameters that need to be sent in the request (optional) - * @return PushCredentialResponse + * List mobile push credentials + * List mobile push credentials + * @param filterType type of mobile push credentials (optional) + * @param filterAlias Unique mobile push credential alias (optional) + * @param pageSize The size of the page (optional, default to 20) + * @param pageNumber The page number to load (optional, default to 1) + * @return ListPushCredentialsResponse * @throws ApiException if fails to make API call * @http.response.details - + - -
Status Code Description Response Headers
200 The push credential was updated successfully -
200 Mobile mobile push credentials -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public PushCredentialResponse updatePushCredentialById(UUID pushCredentialId, UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { - return updatePushCredentialByIdWithHttpInfo(pushCredentialId, UNKNOWN_BASE_TYPE).getData(); + public String listPushCredentials(String filterType, String filterAlias, Integer pageSize, Integer pageNumber) throws ApiException { + return listPushCredentialsWithHttpInfo(filterType, filterAlias, pageSize, pageNumber).getData(); } /** - * Updates a push credential - * Updates a push credential based on the given `id` - * @param pushCredentialId The unique identifier of a push credential (required) - * @param UNKNOWN_BASE_TYPE Push credential parameters that need to be sent in the request (optional) - * @return ApiResponse<PushCredentialResponse> + * List mobile push credentials + * List mobile push credentials + * @param filterType type of mobile push credentials (optional) + * @param filterAlias Unique mobile push credential alias (optional) + * @param pageSize The size of the page (optional, default to 20) + * @param pageNumber The page number to load (optional, default to 1) + * @return ApiResponse<ListPushCredentialsResponse> * @throws ApiException if fails to make API call * @http.response.details - + - -
Status Code Description Response Headers
200 The push credential was updated successfully -
200 Mobile mobile push credentials -
401 Unauthorized request -
404 Resource not found -
422 Unable to process request -
*/ - public ApiResponse updatePushCredentialByIdWithHttpInfo(UUID pushCredentialId, UNKNOWN_BASE_TYPE UNKNOWN_BASE_TYPE) throws ApiException { - Object localVarPostBody = UNKNOWN_BASE_TYPE; - - // verify the required parameter 'pushCredentialId' is set - if (pushCredentialId == null) { - throw new ApiException(400, "Missing the required parameter 'pushCredentialId' when calling updatePushCredentialById"); - } + public ApiResponse listPushCredentialsWithHttpInfo(String filterType, String filterAlias, Integer pageSize, Integer pageNumber) throws ApiException { + Object localVarPostBody = null; // create path and map variables - String localVarPath = "/push_credentials/{push_credential_id}" - .replaceAll("\\{" + "push_credential_id" + "\\}", apiClient.escapeString(pushCredentialId.toString())); + String localVarPath = "/mobile_push_credentials"; // query params List localVarQueryParams = new ArrayList(); @@ -333,6 +312,10 @@ public ApiResponse updatePushCredentialByIdWithHttpInfo( Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[type]", filterType)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[alias]", filterAlias)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); @@ -343,16 +326,16 @@ public ApiResponse updatePushCredentialByIdWithHttpInfo( final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); final String[] localVarContentTypes = { - "application/json" + }; final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; - return apiClient.invokeAPI("PushCredentialsApi.updatePushCredentialById", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, + return apiClient.invokeAPI("PushCredentialsApi.listPushCredentials", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, - localVarAuthNames, localVarReturnType, true); + localVarAuthNames, localVarReturnType, false); } } diff --git a/src/main/java/com/telnyx/sdk/api/QueueCommandsApi.java b/src/main/java/com/telnyx/sdk/api/QueueCommandsApi.java index 365cb2c2..c9127964 100644 --- a/src/main/java/com/telnyx/sdk/api/QueueCommandsApi.java +++ b/src/main/java/com/telnyx/sdk/api/QueueCommandsApi.java @@ -59,7 +59,7 @@ public void setApiClient(ApiClient apiClient) { - +
Status Code Description Response Headers
200 Successful response with a list of calls in a queue. -
404 Conference does not exist -
404 Fax does not exist -
*/ public ListQueueCallsResponse listQueueCalls(String queueName, Integer pageNumber, Integer pageSize) throws ApiException { @@ -78,7 +78,7 @@ public ListQueueCallsResponse listQueueCalls(String queueName, Integer pageNumbe - +
Status Code Description Response Headers
200 Successful response with a list of calls in a queue. -
404 Conference does not exist -
404 Fax does not exist -
*/ public ApiResponse listQueueCallsWithHttpInfo(String queueName, Integer pageNumber, Integer pageSize) throws ApiException { @@ -134,7 +134,7 @@ public ApiResponse listQueueCallsWithHttpInfo(String que - +
Status Code Description Response Headers
200 Successful response with details about a call in a queue. -
404 Conference does not exist -
404 Fax does not exist -
*/ public QueueCallResponse retrieveCallFromQueue(String queueName, String callControlId) throws ApiException { @@ -152,7 +152,7 @@ public QueueCallResponse retrieveCallFromQueue(String queueName, String callCont - +
Status Code Description Response Headers
200 Successful response with details about a call in a queue. -
404 Conference does not exist -
404 Fax does not exist -
*/ public ApiResponse retrieveCallFromQueueWithHttpInfo(String queueName, String callControlId) throws ApiException { @@ -211,7 +211,7 @@ public ApiResponse retrieveCallFromQueueWithHttpInfo(String q - +
Status Code Description Response Headers
200 Successful response with details about a queue. -
404 Conference does not exist -
404 Fax does not exist -
*/ public QueueResponse retrieveCallQueue(String queueName) throws ApiException { @@ -228,7 +228,7 @@ public QueueResponse retrieveCallQueue(String queueName) throws ApiException { - +
Status Code Description Response Headers
200 Successful response with details about a queue. -
404 Conference does not exist -
404 Fax does not exist -
*/ public ApiResponse retrieveCallQueueWithHttpInfo(String queueName) throws ApiException { diff --git a/src/main/java/com/telnyx/sdk/api/RecordingsCommandsApi.java b/src/main/java/com/telnyx/sdk/api/RecordingsCommandsApi.java index b1da4634..65af53e4 100644 --- a/src/main/java/com/telnyx/sdk/api/RecordingsCommandsApi.java +++ b/src/main/java/com/telnyx/sdk/api/RecordingsCommandsApi.java @@ -155,7 +155,7 @@ public APIlistRecordingsRequest pageSize(Integer pageSize) { - +
Status Code Description Response Headers
200 Successful response with a list of recordings. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
@@ -173,7 +173,7 @@ public ListRecordingsResponse execute() throws ApiException { - +
Status Code Description Response Headers
200 Successful response with a list of recordings. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
422 Unprocessable entity -
@@ -204,8 +204,8 @@ public APIlistRecordingsRequest listRecordings() throws ApiException { - - + +
Status Code Description Response Headers
200 Successful response with details about a recording. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
*/ public GetRecordingResponse retrieveRecording(String id) throws ApiException { @@ -222,8 +222,8 @@ public GetRecordingResponse retrieveRecording(String id) throws ApiException { - - + +
Status Code Description Response Headers
200 Successful response with details about a recording. -
401 Unauthorized -
404 Conference does not exist -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Fax does not exist -
*/ public ApiResponse retrieveRecordingWithHttpInfo(String id) throws ApiException { diff --git a/src/main/java/com/telnyx/sdk/api/RegionsApi.java b/src/main/java/com/telnyx/sdk/api/RegionsApi.java new file mode 100644 index 00000000..ee2f1de9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/RegionsApi.java @@ -0,0 +1,111 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.Errors; +import com.telnyx.sdk.model.RegionList200Response; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegionsApi { + private ApiClient apiClient; + + public RegionsApi() { + this(Configuration.getDefaultApiClient()); + } + + public RegionsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * List all Regions + * List all regions and the interfaces that region supports + * @return RegionList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public RegionList200Response regionList() throws ApiException { + return regionListWithHttpInfo().getData(); + } + + /** + * List all Regions + * List all regions and the interfaces that region supports + * @return ApiResponse<RegionList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse regionListWithHttpInfo() throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/regions"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("RegionsApi.regionList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/ReportingApi.java b/src/main/java/com/telnyx/sdk/api/ReportingApi.java index 5449f805..98b24292 100644 --- a/src/main/java/com/telnyx/sdk/api/ReportingApi.java +++ b/src/main/java/com/telnyx/sdk/api/ReportingApi.java @@ -8,12 +8,10 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreateWdrReportResponse; -import com.telnyx.sdk.model.DeleteWdrReportResponse; +import com.telnyx.sdk.model.CreateWdrReport201Response; import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetWdrReportResponse; -import com.telnyx.sdk.model.GetWdrReportsResponse; +import com.telnyx.sdk.model.GetWdrReports200Response; import java.util.UUID; import com.telnyx.sdk.model.WdrReportRequest; @@ -56,7 +54,7 @@ public void setApiClient(ApiClient apiClient) { * Create a Wireless Detail Records (WDRs) Report * Asynchronously create a report containing Wireless Detail Records (WDRs) for the SIM cards that consumed wireless data in the given time period. * @param wdrReportRequest (required) - * @return CreateWdrReportResponse + * @return CreateWdrReport201Response * @throws ApiException if fails to make API call * @http.response.details @@ -66,7 +64,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public CreateWdrReportResponse createWdrReport(WdrReportRequest wdrReportRequest) throws ApiException { + public CreateWdrReport201Response createWdrReport(WdrReportRequest wdrReportRequest) throws ApiException { return createWdrReportWithHttpInfo(wdrReportRequest).getData(); } @@ -74,7 +72,7 @@ public CreateWdrReportResponse createWdrReport(WdrReportRequest wdrReportRequest * Create a Wireless Detail Records (WDRs) Report * Asynchronously create a report containing Wireless Detail Records (WDRs) for the SIM cards that consumed wireless data in the given time period. * @param wdrReportRequest (required) - * @return ApiResponse<CreateWdrReportResponse> + * @return ApiResponse<CreateWdrReport201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -84,7 +82,7 @@ public CreateWdrReportResponse createWdrReport(WdrReportRequest wdrReportRequest
0 Unexpected error -
*/ - public ApiResponse createWdrReportWithHttpInfo(WdrReportRequest wdrReportRequest) throws ApiException { + public ApiResponse createWdrReportWithHttpInfo(WdrReportRequest wdrReportRequest) throws ApiException { Object localVarPostBody = wdrReportRequest; // verify the required parameter 'wdrReportRequest' is set @@ -117,7 +115,7 @@ public ApiResponse createWdrReportWithHttpInfo(WdrRepor String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ReportingApi.createWdrReport", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -127,7 +125,7 @@ public ApiResponse createWdrReportWithHttpInfo(WdrRepor * Delete a Wireless Detail Record (WDR) Report * Deletes one specific WDR report * @param id Identifies the resource. (required) - * @return DeleteWdrReportResponse + * @return CreateWdrReport201Response * @throws ApiException if fails to make API call * @http.response.details @@ -137,7 +135,7 @@ public ApiResponse createWdrReportWithHttpInfo(WdrRepor
0 Unexpected error -
*/ - public DeleteWdrReportResponse deleteWdrReport(UUID id) throws ApiException { + public CreateWdrReport201Response deleteWdrReport(UUID id) throws ApiException { return deleteWdrReportWithHttpInfo(id).getData(); } @@ -145,7 +143,7 @@ public DeleteWdrReportResponse deleteWdrReport(UUID id) throws ApiException { * Delete a Wireless Detail Record (WDR) Report * Deletes one specific WDR report * @param id Identifies the resource. (required) - * @return ApiResponse<DeleteWdrReportResponse> + * @return ApiResponse<CreateWdrReport201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -155,7 +153,7 @@ public DeleteWdrReportResponse deleteWdrReport(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse deleteWdrReportWithHttpInfo(UUID id) throws ApiException { + public ApiResponse deleteWdrReportWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -189,7 +187,7 @@ public ApiResponse deleteWdrReportWithHttpInfo(UUID id) String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ReportingApi.deleteWdrReport", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -199,7 +197,7 @@ public ApiResponse deleteWdrReportWithHttpInfo(UUID id) * Get a Wireless Detail Record (WDR) Report * Returns one specific WDR report * @param id Identifies the resource. (required) - * @return GetWdrReportResponse + * @return CreateWdrReport201Response * @throws ApiException if fails to make API call * @http.response.details @@ -209,7 +207,7 @@ public ApiResponse deleteWdrReportWithHttpInfo(UUID id)
0 Unexpected error -
*/ - public GetWdrReportResponse getWdrReport(UUID id) throws ApiException { + public CreateWdrReport201Response getWdrReport(UUID id) throws ApiException { return getWdrReportWithHttpInfo(id).getData(); } @@ -217,7 +215,7 @@ public GetWdrReportResponse getWdrReport(UUID id) throws ApiException { * Get a Wireless Detail Record (WDR) Report * Returns one specific WDR report * @param id Identifies the resource. (required) - * @return ApiResponse<GetWdrReportResponse> + * @return ApiResponse<CreateWdrReport201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -227,7 +225,7 @@ public GetWdrReportResponse getWdrReport(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse getWdrReportWithHttpInfo(UUID id) throws ApiException { + public ApiResponse getWdrReportWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -261,7 +259,7 @@ public ApiResponse getWdrReportWithHttpInfo(UUID id) throw String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ReportingApi.getWdrReport", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -272,7 +270,7 @@ public ApiResponse getWdrReportWithHttpInfo(UUID id) throw * Returns the WDR Reports that match the given parameters. * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return GetWdrReportsResponse + * @return GetWdrReports200Response * @throws ApiException if fails to make API call * @http.response.details @@ -281,7 +279,7 @@ public ApiResponse getWdrReportWithHttpInfo(UUID id) throw
0 Unexpected error -
*/ - public GetWdrReportsResponse getWdrReports(Integer pageNumber, Integer pageSize) throws ApiException { + public GetWdrReports200Response getWdrReports(Integer pageNumber, Integer pageSize) throws ApiException { return getWdrReportsWithHttpInfo(pageNumber, pageSize).getData(); } @@ -290,7 +288,7 @@ public GetWdrReportsResponse getWdrReports(Integer pageNumber, Integer pageSize) * Returns the WDR Reports that match the given parameters. * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<GetWdrReportsResponse> + * @return ApiResponse<GetWdrReports200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -299,7 +297,7 @@ public GetWdrReportsResponse getWdrReports(Integer pageNumber, Integer pageSize)
0 Unexpected error -
*/ - public ApiResponse getWdrReportsWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse getWdrReportsWithHttpInfo(Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -329,7 +327,7 @@ public ApiResponse getWdrReportsWithHttpInfo(Integer page String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ReportingApi.getWdrReports", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/ReportsApi.java b/src/main/java/com/telnyx/sdk/api/ReportsApi.java index d1bda7bb..9f65c2c4 100644 --- a/src/main/java/com/telnyx/sdk/api/ReportsApi.java +++ b/src/main/java/com/telnyx/sdk/api/ReportsApi.java @@ -8,10 +8,9 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreateLedgerBillingGroupReportResponse; +import com.telnyx.sdk.model.CreateLedgerBillingGroupReport200Response; import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.NewLedgerBillingGroupReport; -import com.telnyx.sdk.model.RetrieveLedgerBillingGroupReportResponse; import java.util.UUID; import java.util.ArrayList; @@ -53,7 +52,7 @@ public void setApiClient(ApiClient apiClient) { * Create a ledger billing group report * * @param newLedgerBillingGroupReport New ledger billing group report parameters (required) - * @return CreateLedgerBillingGroupReportResponse + * @return CreateLedgerBillingGroupReport200Response * @throws ApiException if fails to make API call * @http.response.details @@ -62,7 +61,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public CreateLedgerBillingGroupReportResponse createLedgerBillingGroupReport(NewLedgerBillingGroupReport newLedgerBillingGroupReport) throws ApiException { + public CreateLedgerBillingGroupReport200Response createLedgerBillingGroupReport(NewLedgerBillingGroupReport newLedgerBillingGroupReport) throws ApiException { return createLedgerBillingGroupReportWithHttpInfo(newLedgerBillingGroupReport).getData(); } @@ -70,7 +69,7 @@ public CreateLedgerBillingGroupReportResponse createLedgerBillingGroupReport(New * Create a ledger billing group report * * @param newLedgerBillingGroupReport New ledger billing group report parameters (required) - * @return ApiResponse<CreateLedgerBillingGroupReportResponse> + * @return ApiResponse<CreateLedgerBillingGroupReport200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -79,7 +78,7 @@ public CreateLedgerBillingGroupReportResponse createLedgerBillingGroupReport(New
0 Unexpected error -
*/ - public ApiResponse createLedgerBillingGroupReportWithHttpInfo(NewLedgerBillingGroupReport newLedgerBillingGroupReport) throws ApiException { + public ApiResponse createLedgerBillingGroupReportWithHttpInfo(NewLedgerBillingGroupReport newLedgerBillingGroupReport) throws ApiException { Object localVarPostBody = newLedgerBillingGroupReport; // verify the required parameter 'newLedgerBillingGroupReport' is set @@ -112,7 +111,7 @@ public ApiResponse createLedgerBillingGr String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ReportsApi.createLedgerBillingGroupReport", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -122,7 +121,7 @@ public ApiResponse createLedgerBillingGr * Retrieve a ledger billing group report * * @param id The id of the ledger billing group report (required) - * @return RetrieveLedgerBillingGroupReportResponse + * @return CreateLedgerBillingGroupReport200Response * @throws ApiException if fails to make API call * @http.response.details @@ -131,7 +130,7 @@ public ApiResponse createLedgerBillingGr
0 Unexpected error -
*/ - public RetrieveLedgerBillingGroupReportResponse retrieveLedgerBillingGroupReport(UUID id) throws ApiException { + public CreateLedgerBillingGroupReport200Response retrieveLedgerBillingGroupReport(UUID id) throws ApiException { return retrieveLedgerBillingGroupReportWithHttpInfo(id).getData(); } @@ -139,7 +138,7 @@ public RetrieveLedgerBillingGroupReportResponse retrieveLedgerBillingGroupReport * Retrieve a ledger billing group report * * @param id The id of the ledger billing group report (required) - * @return ApiResponse<RetrieveLedgerBillingGroupReportResponse> + * @return ApiResponse<CreateLedgerBillingGroupReport200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -148,7 +147,7 @@ public RetrieveLedgerBillingGroupReportResponse retrieveLedgerBillingGroupReport
0 Unexpected error -
*/ - public ApiResponse retrieveLedgerBillingGroupReportWithHttpInfo(UUID id) throws ApiException { + public ApiResponse retrieveLedgerBillingGroupReportWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -182,7 +181,7 @@ public ApiResponse retrieveLedgerBilli String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("ReportsApi.retrieveLedgerBillingGroupReport", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RequirementTypesApi.java b/src/main/java/com/telnyx/sdk/api/RequirementTypesApi.java index 3a9d5b89..ab47f97a 100644 --- a/src/main/java/com/telnyx/sdk/api/RequirementTypesApi.java +++ b/src/main/java/com/telnyx/sdk/api/RequirementTypesApi.java @@ -8,8 +8,8 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.DocReqsListRequirementTypesResponse; -import com.telnyx.sdk.model.DocReqsRequirementTypeResponse; +import com.telnyx.sdk.model.DocReqsListRequirementTypes200Response; +import com.telnyx.sdk.model.DocReqsRetrieveRequirementType200Response; import com.telnyx.sdk.model.Errors; import java.util.UUID; @@ -53,7 +53,7 @@ public void setApiClient(ApiClient apiClient) { * List all requirement types ordered by created_at descending * @param filterNameContains Filters requirement types to those whose name contains a certain string. (optional) * @param sort Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the field name. (optional) - * @return DocReqsListRequirementTypesResponse + * @return DocReqsListRequirementTypes200Response * @throws ApiException if fails to make API call * @http.response.details @@ -62,7 +62,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public DocReqsListRequirementTypesResponse docReqsListRequirementTypes(String filterNameContains, String sort) throws ApiException { + public DocReqsListRequirementTypes200Response docReqsListRequirementTypes(String filterNameContains, String sort) throws ApiException { return docReqsListRequirementTypesWithHttpInfo(filterNameContains, sort).getData(); } @@ -71,7 +71,7 @@ public DocReqsListRequirementTypesResponse docReqsListRequirementTypes(String fi * List all requirement types ordered by created_at descending * @param filterNameContains Filters requirement types to those whose name contains a certain string. (optional) * @param sort Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the field name. (optional) - * @return ApiResponse<DocReqsListRequirementTypesResponse> + * @return ApiResponse<DocReqsListRequirementTypes200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -80,7 +80,7 @@ public DocReqsListRequirementTypesResponse docReqsListRequirementTypes(String fi
0 Unexpected error -
*/ - public ApiResponse docReqsListRequirementTypesWithHttpInfo(String filterNameContains, String sort) throws ApiException { + public ApiResponse docReqsListRequirementTypesWithHttpInfo(String filterNameContains, String sort) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -110,7 +110,7 @@ public ApiResponse docReqsListRequirementTy String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RequirementTypesApi.docReqsListRequirementTypes", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -120,7 +120,7 @@ public ApiResponse docReqsListRequirementTy * Retrieve a requirement types * Retrieve a requirement type by id * @param id Uniquely identifies the requirement_type record (required) - * @return DocReqsRequirementTypeResponse + * @return DocReqsRetrieveRequirementType200Response * @throws ApiException if fails to make API call * @http.response.details @@ -129,7 +129,7 @@ public ApiResponse docReqsListRequirementTy
0 Unexpected error -
*/ - public DocReqsRequirementTypeResponse docReqsRetrieveRequirementType(UUID id) throws ApiException { + public DocReqsRetrieveRequirementType200Response docReqsRetrieveRequirementType(UUID id) throws ApiException { return docReqsRetrieveRequirementTypeWithHttpInfo(id).getData(); } @@ -137,7 +137,7 @@ public DocReqsRequirementTypeResponse docReqsRetrieveRequirementType(UUID id) th * Retrieve a requirement types * Retrieve a requirement type by id * @param id Uniquely identifies the requirement_type record (required) - * @return ApiResponse<DocReqsRequirementTypeResponse> + * @return ApiResponse<DocReqsRetrieveRequirementType200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -146,7 +146,7 @@ public DocReqsRequirementTypeResponse docReqsRetrieveRequirementType(UUID id) th
0 Unexpected error -
*/ - public ApiResponse docReqsRetrieveRequirementTypeWithHttpInfo(UUID id) throws ApiException { + public ApiResponse docReqsRetrieveRequirementTypeWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -180,7 +180,7 @@ public ApiResponse docReqsRetrieveRequirementTyp String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RequirementTypesApi.docReqsRetrieveRequirementType", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RequirementsApi.java b/src/main/java/com/telnyx/sdk/api/RequirementsApi.java index d1c1ee35..94c6987b 100644 --- a/src/main/java/com/telnyx/sdk/api/RequirementsApi.java +++ b/src/main/java/com/telnyx/sdk/api/RequirementsApi.java @@ -8,9 +8,9 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.DocReqsRequirementResponse; +import com.telnyx.sdk.model.DocReqsRetrieveDocumentRequirements200Response; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.ListRequirementsResponse; +import com.telnyx.sdk.model.ListRequirements200Response; import java.util.UUID; import java.util.ArrayList; @@ -52,7 +52,7 @@ public void setApiClient(ApiClient apiClient) { * Retrieve a document requirement * Retrieve a document requirement record * @param id Uniquely identifies the requirement_type record (required) - * @return DocReqsRequirementResponse + * @return DocReqsRetrieveDocumentRequirements200Response * @throws ApiException if fails to make API call * @http.response.details @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public DocReqsRequirementResponse docReqsRetrieveDocumentRequirements(UUID id) throws ApiException { + public DocReqsRetrieveDocumentRequirements200Response docReqsRetrieveDocumentRequirements(UUID id) throws ApiException { return docReqsRetrieveDocumentRequirementsWithHttpInfo(id).getData(); } @@ -69,7 +69,7 @@ public DocReqsRequirementResponse docReqsRetrieveDocumentRequirements(UUID id) t * Retrieve a document requirement * Retrieve a document requirement record * @param id Uniquely identifies the requirement_type record (required) - * @return ApiResponse<DocReqsRequirementResponse> + * @return ApiResponse<DocReqsRetrieveDocumentRequirements200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -78,7 +78,7 @@ public DocReqsRequirementResponse docReqsRetrieveDocumentRequirements(UUID id) t
0 Unexpected error -
*/ - public ApiResponse docReqsRetrieveDocumentRequirementsWithHttpInfo(UUID id) throws ApiException { + public ApiResponse docReqsRetrieveDocumentRequirementsWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -112,7 +112,7 @@ public ApiResponse docReqsRetrieveDocumentRequiremen String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RequirementsApi.docReqsRetrieveDocumentRequirements", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -127,7 +127,7 @@ public ApiResponse docReqsRetrieveDocumentRequiremen * @param sort Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the field name. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListRequirementsResponse + * @return ListRequirements200Response * @throws ApiException if fails to make API call * @http.response.details @@ -136,7 +136,7 @@ public ApiResponse docReqsRetrieveDocumentRequiremen
0 Unexpected error -
*/ - public ListRequirementsResponse listRequirements(String filterCountryCode, String filterPhoneNumberType, String filterAction, String sort, Integer pageNumber, Integer pageSize) throws ApiException { + public ListRequirements200Response listRequirements(String filterCountryCode, String filterPhoneNumberType, String filterAction, String sort, Integer pageNumber, Integer pageSize) throws ApiException { return listRequirementsWithHttpInfo(filterCountryCode, filterPhoneNumberType, filterAction, sort, pageNumber, pageSize).getData(); } @@ -149,7 +149,7 @@ public ListRequirementsResponse listRequirements(String filterCountryCode, Strin * @param sort Specifies the sort order for results. If you want to sort by a field in ascending order, include it as a sort parameter. If you want to sort in descending order, prepend a `-` in front of the field name. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListRequirementsResponse> + * @return ApiResponse<ListRequirements200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -158,7 +158,7 @@ public ListRequirementsResponse listRequirements(String filterCountryCode, Strin
0 Unexpected error -
*/ - public ApiResponse listRequirementsWithHttpInfo(String filterCountryCode, String filterPhoneNumberType, String filterAction, String sort, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse listRequirementsWithHttpInfo(String filterCountryCode, String filterPhoneNumberType, String filterAction, String sort, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -192,7 +192,7 @@ public ApiResponse listRequirementsWithHttpInfo(String String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RequirementsApi.listRequirements", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RoomCompositionsApi.java b/src/main/java/com/telnyx/sdk/api/RoomCompositionsApi.java index 200102be..61d9ca4a 100644 --- a/src/main/java/com/telnyx/sdk/api/RoomCompositionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/RoomCompositionsApi.java @@ -8,12 +8,11 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreateRoomComposition202Response; import com.telnyx.sdk.model.CreateRoomCompositionRequest; -import com.telnyx.sdk.model.CreateRoomCompositionResponse; import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetRoomCompositionResponse; -import com.telnyx.sdk.model.ListRoomCompositionsResponse; +import com.telnyx.sdk.model.ListRoomCompositions200Response; import java.time.LocalDate; import java.util.UUID; @@ -56,7 +55,7 @@ public void setApiClient(ApiClient apiClient) { * Create a room composition. * Asynchronously create a room composition. * @param createRoomCompositionRequest Parameters that can be defined during room composition creation. (required) - * @return CreateRoomCompositionResponse + * @return CreateRoomComposition202Response * @throws ApiException if fails to make API call * @http.response.details @@ -65,7 +64,7 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public CreateRoomCompositionResponse createRoomComposition(CreateRoomCompositionRequest createRoomCompositionRequest) throws ApiException { + public CreateRoomComposition202Response createRoomComposition(CreateRoomCompositionRequest createRoomCompositionRequest) throws ApiException { return createRoomCompositionWithHttpInfo(createRoomCompositionRequest).getData(); } @@ -73,7 +72,7 @@ public CreateRoomCompositionResponse createRoomComposition(CreateRoomComposition * Create a room composition. * Asynchronously create a room composition. * @param createRoomCompositionRequest Parameters that can be defined during room composition creation. (required) - * @return ApiResponse<CreateRoomCompositionResponse> + * @return ApiResponse<CreateRoomComposition202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -82,7 +81,7 @@ public CreateRoomCompositionResponse createRoomComposition(CreateRoomComposition
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse createRoomCompositionWithHttpInfo(CreateRoomCompositionRequest createRoomCompositionRequest) throws ApiException { + public ApiResponse createRoomCompositionWithHttpInfo(CreateRoomCompositionRequest createRoomCompositionRequest) throws ApiException { Object localVarPostBody = createRoomCompositionRequest; // verify the required parameter 'createRoomCompositionRequest' is set @@ -115,7 +114,7 @@ public ApiResponse createRoomCompositionWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomCompositionsApi.createRoomComposition", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -198,7 +197,7 @@ public ApiResponse deleteRoomCompositionWithHttpInfo(UUID roomCompositionI * @param filterStatus The status for filtering room compositions. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ListRoomCompositionsResponse + * @return ListRoomCompositions200Response * @throws ApiException if fails to make API call * @http.response.details @@ -206,7 +205,7 @@ public ApiResponse deleteRoomCompositionWithHttpInfo(UUID roomCompositionI
200 List room compositions response. -
*/ - public ListRoomCompositionsResponse listRoomCompositions(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, UUID filterSessionId, String filterStatus, Integer pageSize, Integer pageNumber) throws ApiException { + public ListRoomCompositions200Response listRoomCompositions(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, UUID filterSessionId, String filterStatus, Integer pageSize, Integer pageNumber) throws ApiException { return listRoomCompositionsWithHttpInfo(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterSessionId, filterStatus, pageSize, pageNumber).getData(); } @@ -220,7 +219,7 @@ public ListRoomCompositionsResponse listRoomCompositions(LocalDate filterDateCre * @param filterStatus The status for filtering room compositions. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ApiResponse<ListRoomCompositionsResponse> + * @return ApiResponse<ListRoomCompositions200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -228,7 +227,7 @@ public ListRoomCompositionsResponse listRoomCompositions(LocalDate filterDateCre
200 List room compositions response. -
*/ - public ApiResponse listRoomCompositionsWithHttpInfo(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, UUID filterSessionId, String filterStatus, Integer pageSize, Integer pageNumber) throws ApiException { + public ApiResponse listRoomCompositionsWithHttpInfo(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, UUID filterSessionId, String filterStatus, Integer pageSize, Integer pageNumber) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -263,7 +262,7 @@ public ApiResponse listRoomCompositionsWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomCompositionsApi.listRoomCompositions", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -273,7 +272,7 @@ public ApiResponse listRoomCompositionsWithHttpInf * View a room composition. * * @param roomCompositionId The unique identifier of a room composition. (required) - * @return GetRoomCompositionResponse + * @return CreateRoomComposition202Response * @throws ApiException if fails to make API call * @http.response.details @@ -282,7 +281,7 @@ public ApiResponse listRoomCompositionsWithHttpInf
404 Resource not found -
*/ - public GetRoomCompositionResponse viewRoomComposition(UUID roomCompositionId) throws ApiException { + public CreateRoomComposition202Response viewRoomComposition(UUID roomCompositionId) throws ApiException { return viewRoomCompositionWithHttpInfo(roomCompositionId).getData(); } @@ -290,7 +289,7 @@ public GetRoomCompositionResponse viewRoomComposition(UUID roomCompositionId) th * View a room composition. * * @param roomCompositionId The unique identifier of a room composition. (required) - * @return ApiResponse<GetRoomCompositionResponse> + * @return ApiResponse<CreateRoomComposition202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -299,7 +298,7 @@ public GetRoomCompositionResponse viewRoomComposition(UUID roomCompositionId) th
404 Resource not found -
*/ - public ApiResponse viewRoomCompositionWithHttpInfo(UUID roomCompositionId) throws ApiException { + public ApiResponse viewRoomCompositionWithHttpInfo(UUID roomCompositionId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roomCompositionId' is set @@ -333,7 +332,7 @@ public ApiResponse viewRoomCompositionWithHttpInfo(U String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomCompositionsApi.viewRoomComposition", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RoomParticipantsApi.java b/src/main/java/com/telnyx/sdk/api/RoomParticipantsApi.java index d3d5fac2..00823ed7 100644 --- a/src/main/java/com/telnyx/sdk/api/RoomParticipantsApi.java +++ b/src/main/java/com/telnyx/sdk/api/RoomParticipantsApi.java @@ -9,10 +9,10 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.Error; -import com.telnyx.sdk.model.GetRoomParticipantResponse; -import com.telnyx.sdk.model.ListRoomParticipantsResponse; +import com.telnyx.sdk.model.ListRoomParticipants200Response; import java.time.LocalDate; import java.util.UUID; +import com.telnyx.sdk.model.ViewRoomParticipant200Response; import java.util.ArrayList; import java.util.HashMap; @@ -65,7 +65,7 @@ public void setApiClient(ApiClient apiClient) { * @param filterSessionId Session_id for filtering room participants. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ListRoomParticipantsResponse + * @return ListRoomParticipants200Response * @throws ApiException if fails to make API call * @http.response.details @@ -73,7 +73,7 @@ public void setApiClient(ApiClient apiClient) {
200 List room participants response. -
*/ - public ListRoomParticipantsResponse listRoomParticipants(LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, String filterSessionId, Integer pageSize, Integer pageNumber) throws ApiException { + public ListRoomParticipants200Response listRoomParticipants(LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, String filterSessionId, Integer pageSize, Integer pageNumber) throws ApiException { return listRoomParticipantsWithHttpInfo(filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, filterSessionId, pageSize, pageNumber).getData(); } @@ -93,7 +93,7 @@ public ListRoomParticipantsResponse listRoomParticipants(LocalDate filterDateJoi * @param filterSessionId Session_id for filtering room participants. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ApiResponse<ListRoomParticipantsResponse> + * @return ApiResponse<ListRoomParticipants200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -101,7 +101,7 @@ public ListRoomParticipantsResponse listRoomParticipants(LocalDate filterDateJoi
200 List room participants response. -
*/ - public ApiResponse listRoomParticipantsWithHttpInfo(LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, String filterSessionId, Integer pageSize, Integer pageNumber) throws ApiException { + public ApiResponse listRoomParticipantsWithHttpInfo(LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, String filterSessionId, Integer pageSize, Integer pageNumber) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -142,7 +142,7 @@ public ApiResponse listRoomParticipantsWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomParticipantsApi.listRoomParticipants", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -152,7 +152,7 @@ public ApiResponse listRoomParticipantsWithHttpInf * View a room participant. * * @param roomParticipantId The unique identifier of a room participant. (required) - * @return GetRoomParticipantResponse + * @return ViewRoomParticipant200Response * @throws ApiException if fails to make API call * @http.response.details @@ -161,7 +161,7 @@ public ApiResponse listRoomParticipantsWithHttpInf
404 Resource not found -
*/ - public GetRoomParticipantResponse viewRoomParticipant(UUID roomParticipantId) throws ApiException { + public ViewRoomParticipant200Response viewRoomParticipant(UUID roomParticipantId) throws ApiException { return viewRoomParticipantWithHttpInfo(roomParticipantId).getData(); } @@ -169,7 +169,7 @@ public GetRoomParticipantResponse viewRoomParticipant(UUID roomParticipantId) th * View a room participant. * * @param roomParticipantId The unique identifier of a room participant. (required) - * @return ApiResponse<GetRoomParticipantResponse> + * @return ApiResponse<ViewRoomParticipant200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -178,7 +178,7 @@ public GetRoomParticipantResponse viewRoomParticipant(UUID roomParticipantId) th
404 Resource not found -
*/ - public ApiResponse viewRoomParticipantWithHttpInfo(UUID roomParticipantId) throws ApiException { + public ApiResponse viewRoomParticipantWithHttpInfo(UUID roomParticipantId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roomParticipantId' is set @@ -212,7 +212,7 @@ public ApiResponse viewRoomParticipantWithHttpInfo(U String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomParticipantsApi.viewRoomParticipant", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RoomRecordingsApi.java b/src/main/java/com/telnyx/sdk/api/RoomRecordingsApi.java index f56b3266..2f708cdc 100644 --- a/src/main/java/com/telnyx/sdk/api/RoomRecordingsApi.java +++ b/src/main/java/com/telnyx/sdk/api/RoomRecordingsApi.java @@ -11,10 +11,10 @@ import com.telnyx.sdk.model.BulkRoomRecordingsDeleteResponse; import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetRoomRecordingResponse; -import com.telnyx.sdk.model.ListRoomRecordingsResponse; +import com.telnyx.sdk.model.ListRoomRecordings200Response; import java.time.LocalDate; import java.util.UUID; +import com.telnyx.sdk.model.ViewRoomRecording200Response; import java.util.ArrayList; import java.util.HashMap; @@ -247,7 +247,7 @@ public ApiResponse deleteRoomRecordingsWithHtt * @param filterDurationSecsGte duration_secs greater or equal for filtering room recordings. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ListRoomRecordingsResponse + * @return ListRoomRecordings200Response * @throws ApiException if fails to make API call * @http.response.details @@ -255,7 +255,7 @@ public ApiResponse deleteRoomRecordingsWithHtt
200 List room recordings response. -
*/ - public ListRoomRecordingsResponse listRoomRecordings(LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, LocalDate filterDateStartedAtEq, LocalDate filterDateStartedAtGte, LocalDate filterDateStartedAtLte, UUID filterRoomId, UUID filterParticipantId, UUID filterSessionId, String filterStatus, String filterType, Integer filterDurationSecsEq, Integer filterDurationSecsLte, Integer filterDurationSecsGte, Integer pageSize, Integer pageNumber) throws ApiException { + public ListRoomRecordings200Response listRoomRecordings(LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, LocalDate filterDateStartedAtEq, LocalDate filterDateStartedAtGte, LocalDate filterDateStartedAtLte, UUID filterRoomId, UUID filterParticipantId, UUID filterSessionId, String filterStatus, String filterType, Integer filterDurationSecsEq, Integer filterDurationSecsLte, Integer filterDurationSecsGte, Integer pageSize, Integer pageNumber) throws ApiException { return listRoomRecordingsWithHttpInfo(filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterDateStartedAtEq, filterDateStartedAtGte, filterDateStartedAtLte, filterRoomId, filterParticipantId, filterSessionId, filterStatus, filterType, filterDurationSecsEq, filterDurationSecsLte, filterDurationSecsGte, pageSize, pageNumber).getData(); } @@ -278,7 +278,7 @@ public ListRoomRecordingsResponse listRoomRecordings(LocalDate filterDateEndedAt * @param filterDurationSecsGte duration_secs greater or equal for filtering room recordings. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ApiResponse<ListRoomRecordingsResponse> + * @return ApiResponse<ListRoomRecordings200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -286,7 +286,7 @@ public ListRoomRecordingsResponse listRoomRecordings(LocalDate filterDateEndedAt
200 List room recordings response. -
*/ - public ApiResponse listRoomRecordingsWithHttpInfo(LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, LocalDate filterDateStartedAtEq, LocalDate filterDateStartedAtGte, LocalDate filterDateStartedAtLte, UUID filterRoomId, UUID filterParticipantId, UUID filterSessionId, String filterStatus, String filterType, Integer filterDurationSecsEq, Integer filterDurationSecsLte, Integer filterDurationSecsGte, Integer pageSize, Integer pageNumber) throws ApiException { + public ApiResponse listRoomRecordingsWithHttpInfo(LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, LocalDate filterDateStartedAtEq, LocalDate filterDateStartedAtGte, LocalDate filterDateStartedAtLte, UUID filterRoomId, UUID filterParticipantId, UUID filterSessionId, String filterStatus, String filterType, Integer filterDurationSecsEq, Integer filterDurationSecsLte, Integer filterDurationSecsGte, Integer pageSize, Integer pageNumber) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -330,7 +330,7 @@ public ApiResponse listRoomRecordingsWithHttpInfo(Lo String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomRecordingsApi.listRoomRecordings", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -340,7 +340,7 @@ public ApiResponse listRoomRecordingsWithHttpInfo(Lo * View a room recording. * * @param roomRecordingId The unique identifier of a room recording. (required) - * @return GetRoomRecordingResponse + * @return ViewRoomRecording200Response * @throws ApiException if fails to make API call * @http.response.details @@ -349,7 +349,7 @@ public ApiResponse listRoomRecordingsWithHttpInfo(Lo
404 Resource not found -
*/ - public GetRoomRecordingResponse viewRoomRecording(UUID roomRecordingId) throws ApiException { + public ViewRoomRecording200Response viewRoomRecording(UUID roomRecordingId) throws ApiException { return viewRoomRecordingWithHttpInfo(roomRecordingId).getData(); } @@ -357,7 +357,7 @@ public GetRoomRecordingResponse viewRoomRecording(UUID roomRecordingId) throws A * View a room recording. * * @param roomRecordingId The unique identifier of a room recording. (required) - * @return ApiResponse<GetRoomRecordingResponse> + * @return ApiResponse<ViewRoomRecording200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -366,7 +366,7 @@ public GetRoomRecordingResponse viewRoomRecording(UUID roomRecordingId) throws A
404 Resource not found -
*/ - public ApiResponse viewRoomRecordingWithHttpInfo(UUID roomRecordingId) throws ApiException { + public ApiResponse viewRoomRecordingWithHttpInfo(UUID roomRecordingId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roomRecordingId' is set @@ -400,7 +400,7 @@ public ApiResponse viewRoomRecordingWithHttpInfo(UUID String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomRecordingsApi.viewRoomRecording", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RoomSessionsApi.java b/src/main/java/com/telnyx/sdk/api/RoomSessionsApi.java index def32f13..032fb016 100644 --- a/src/main/java/com/telnyx/sdk/api/RoomSessionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/RoomSessionsApi.java @@ -8,14 +8,14 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.ActionSuccessResponse; import com.telnyx.sdk.model.ActionsParticipantsRequest; +import com.telnyx.sdk.model.EndSession200Response; import com.telnyx.sdk.model.Error; -import com.telnyx.sdk.model.GetRoomSessionResponse; -import com.telnyx.sdk.model.ListRoomParticipantsResponse; -import com.telnyx.sdk.model.ListRoomSessionsResponse; +import com.telnyx.sdk.model.ListRoomParticipants200Response; +import com.telnyx.sdk.model.ListRoomSessions200Response; import java.time.LocalDate; import java.util.UUID; +import com.telnyx.sdk.model.ViewRoomSession200Response; import java.util.ArrayList; import java.util.HashMap; @@ -52,12 +52,80 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * End a room session. + * Note: this will also kick all participants currently present in the room + * @param roomSessionId The unique identifier of a room session. (required) + * @return EndSession200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Success Action Response -
+ */ + public EndSession200Response endSession(UUID roomSessionId) throws ApiException { + return endSessionWithHttpInfo(roomSessionId).getData(); + } + + /** + * End a room session. + * Note: this will also kick all participants currently present in the room + * @param roomSessionId The unique identifier of a room session. (required) + * @return ApiResponse<EndSession200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Success Action Response -
+ */ + public ApiResponse endSessionWithHttpInfo(UUID roomSessionId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'roomSessionId' is set + if (roomSessionId == null) { + throw new ApiException(400, "Missing the required parameter 'roomSessionId' when calling endSession"); + } + + // create path and map variables + String localVarPath = "/room_sessions/{room_session_id}/actions/end" + .replaceAll("\\{" + "room_session_id" + "\\}", apiClient.escapeString(roomSessionId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("RoomSessionsApi.endSession", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Kick participants from a room session. * * @param roomSessionId The unique identifier of a room session. (required) * @param actionsParticipantsRequest Parameters that can be defined during Kick action. (required) - * @return ActionSuccessResponse + * @return EndSession200Response * @throws ApiException if fails to make API call * @http.response.details @@ -65,7 +133,7 @@ public void setApiClient(ApiClient apiClient) {
200 Success Action Response -
*/ - public ActionSuccessResponse kickParticipantInSession(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { + public EndSession200Response kickParticipantInSession(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { return kickParticipantInSessionWithHttpInfo(roomSessionId, actionsParticipantsRequest).getData(); } @@ -74,7 +142,7 @@ public ActionSuccessResponse kickParticipantInSession(UUID roomSessionId, Action * * @param roomSessionId The unique identifier of a room session. (required) * @param actionsParticipantsRequest Parameters that can be defined during Kick action. (required) - * @return ApiResponse<ActionSuccessResponse> + * @return ApiResponse<EndSession200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -82,7 +150,7 @@ public ActionSuccessResponse kickParticipantInSession(UUID roomSessionId, Action
200 Success Action Response -
*/ - public ApiResponse kickParticipantInSessionWithHttpInfo(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { + public ApiResponse kickParticipantInSessionWithHttpInfo(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { Object localVarPostBody = actionsParticipantsRequest; // verify the required parameter 'roomSessionId' is set @@ -121,7 +189,7 @@ public ApiResponse kickParticipantInSessionWithHttpInfo(U String[] localVarAuthNames = new String[] { }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomSessionsApi.kickParticipantInSession", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -144,7 +212,7 @@ public ApiResponse kickParticipantInSessionWithHttpInfo(U * @param includeParticipants To decide if room participants should be included in the response. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ListRoomSessionsResponse + * @return ListRoomSessions200Response * @throws ApiException if fails to make API call * @http.response.details @@ -152,7 +220,7 @@ public ApiResponse kickParticipantInSessionWithHttpInfo(U
200 List room sessions response. -
*/ - public ListRoomSessionsResponse listRoomSessions(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, String filterRoomId, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { + public ListRoomSessions200Response listRoomSessions(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, String filterRoomId, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { return listRoomSessionsWithHttpInfo(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterRoomId, filterActive, includeParticipants, pageSize, pageNumber).getData(); } @@ -173,7 +241,7 @@ public ListRoomSessionsResponse listRoomSessions(LocalDate filterDateCreatedAtEq * @param includeParticipants To decide if room participants should be included in the response. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ApiResponse<ListRoomSessionsResponse> + * @return ApiResponse<ListRoomSessions200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -181,7 +249,7 @@ public ListRoomSessionsResponse listRoomSessions(LocalDate filterDateCreatedAtEq
200 List room sessions response. -
*/ - public ApiResponse listRoomSessionsWithHttpInfo(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, String filterRoomId, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { + public ApiResponse listRoomSessionsWithHttpInfo(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, String filterRoomId, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -223,7 +291,7 @@ public ApiResponse listRoomSessionsWithHttpInfo(LocalD String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomSessionsApi.listRoomSessions", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -234,7 +302,7 @@ public ApiResponse listRoomSessionsWithHttpInfo(LocalD * * @param roomSessionId The unique identifier of a room session. (required) * @param actionsParticipantsRequest Parameters that can be defined during Mute action. (required) - * @return ActionSuccessResponse + * @return EndSession200Response * @throws ApiException if fails to make API call * @http.response.details @@ -242,7 +310,7 @@ public ApiResponse listRoomSessionsWithHttpInfo(LocalD
200 Success Action Response -
*/ - public ActionSuccessResponse muteParticipantInSession(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { + public EndSession200Response muteParticipantInSession(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { return muteParticipantInSessionWithHttpInfo(roomSessionId, actionsParticipantsRequest).getData(); } @@ -251,7 +319,7 @@ public ActionSuccessResponse muteParticipantInSession(UUID roomSessionId, Action * * @param roomSessionId The unique identifier of a room session. (required) * @param actionsParticipantsRequest Parameters that can be defined during Mute action. (required) - * @return ApiResponse<ActionSuccessResponse> + * @return ApiResponse<EndSession200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -259,7 +327,7 @@ public ActionSuccessResponse muteParticipantInSession(UUID roomSessionId, Action
200 Success Action Response -
*/ - public ApiResponse muteParticipantInSessionWithHttpInfo(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { + public ApiResponse muteParticipantInSessionWithHttpInfo(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { Object localVarPostBody = actionsParticipantsRequest; // verify the required parameter 'roomSessionId' is set @@ -298,7 +366,7 @@ public ApiResponse muteParticipantInSessionWithHttpInfo(U String[] localVarAuthNames = new String[] { }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomSessionsApi.muteParticipantInSession", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -320,7 +388,7 @@ public ApiResponse muteParticipantInSessionWithHttpInfo(U * @param filterContext Filter room participants based on the context. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ListRoomParticipantsResponse + * @return ListRoomParticipants200Response * @throws ApiException if fails to make API call * @http.response.details @@ -328,7 +396,7 @@ public ApiResponse muteParticipantInSessionWithHttpInfo(U
200 List room participants response. -
*/ - public ListRoomParticipantsResponse nestedListRoomParticipants(UUID roomSessionId, LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, Integer pageSize, Integer pageNumber) throws ApiException { + public ListRoomParticipants200Response nestedListRoomParticipants(UUID roomSessionId, LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, Integer pageSize, Integer pageNumber) throws ApiException { return nestedListRoomParticipantsWithHttpInfo(roomSessionId, filterDateJoinedAtEq, filterDateJoinedAtGte, filterDateJoinedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateLeftAtEq, filterDateLeftAtGte, filterDateLeftAtLte, filterContext, pageSize, pageNumber).getData(); } @@ -348,7 +416,7 @@ public ListRoomParticipantsResponse nestedListRoomParticipants(UUID roomSessionI * @param filterContext Filter room participants based on the context. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ApiResponse<ListRoomParticipantsResponse> + * @return ApiResponse<ListRoomParticipants200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -356,7 +424,7 @@ public ListRoomParticipantsResponse nestedListRoomParticipants(UUID roomSessionI
200 List room participants response. -
*/ - public ApiResponse nestedListRoomParticipantsWithHttpInfo(UUID roomSessionId, LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, Integer pageSize, Integer pageNumber) throws ApiException { + public ApiResponse nestedListRoomParticipantsWithHttpInfo(UUID roomSessionId, LocalDate filterDateJoinedAtEq, LocalDate filterDateJoinedAtGte, LocalDate filterDateJoinedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateLeftAtEq, LocalDate filterDateLeftAtGte, LocalDate filterDateLeftAtLte, String filterContext, Integer pageSize, Integer pageNumber) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roomSessionId' is set @@ -402,7 +470,7 @@ public ApiResponse nestedListRoomParticipantsWithH String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomSessionsApi.nestedListRoomParticipants", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -413,7 +481,7 @@ public ApiResponse nestedListRoomParticipantsWithH * * @param roomSessionId The unique identifier of a room session. (required) * @param actionsParticipantsRequest Parameters that can be defined during Unmute action. (required) - * @return ActionSuccessResponse + * @return EndSession200Response * @throws ApiException if fails to make API call * @http.response.details @@ -421,7 +489,7 @@ public ApiResponse nestedListRoomParticipantsWithH
200 Success Action Response -
*/ - public ActionSuccessResponse unmuteParticipantInSession(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { + public EndSession200Response unmuteParticipantInSession(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { return unmuteParticipantInSessionWithHttpInfo(roomSessionId, actionsParticipantsRequest).getData(); } @@ -430,7 +498,7 @@ public ActionSuccessResponse unmuteParticipantInSession(UUID roomSessionId, Acti * * @param roomSessionId The unique identifier of a room session. (required) * @param actionsParticipantsRequest Parameters that can be defined during Unmute action. (required) - * @return ApiResponse<ActionSuccessResponse> + * @return ApiResponse<EndSession200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -438,7 +506,7 @@ public ActionSuccessResponse unmuteParticipantInSession(UUID roomSessionId, Acti
200 Success Action Response -
*/ - public ApiResponse unmuteParticipantInSessionWithHttpInfo(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { + public ApiResponse unmuteParticipantInSessionWithHttpInfo(UUID roomSessionId, ActionsParticipantsRequest actionsParticipantsRequest) throws ApiException { Object localVarPostBody = actionsParticipantsRequest; // verify the required parameter 'roomSessionId' is set @@ -477,7 +545,7 @@ public ApiResponse unmuteParticipantInSessionWithHttpInfo String[] localVarAuthNames = new String[] { }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomSessionsApi.unmuteParticipantInSession", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -488,7 +556,7 @@ public ApiResponse unmuteParticipantInSessionWithHttpInfo * * @param roomSessionId The unique identifier of a room session. (required) * @param includeParticipants To decide if room participants should be included in the response. (optional) - * @return GetRoomSessionResponse + * @return ViewRoomSession200Response * @throws ApiException if fails to make API call * @http.response.details @@ -497,7 +565,7 @@ public ApiResponse unmuteParticipantInSessionWithHttpInfo
404 Resource not found -
*/ - public GetRoomSessionResponse viewRoomSession(UUID roomSessionId, Boolean includeParticipants) throws ApiException { + public ViewRoomSession200Response viewRoomSession(UUID roomSessionId, Boolean includeParticipants) throws ApiException { return viewRoomSessionWithHttpInfo(roomSessionId, includeParticipants).getData(); } @@ -506,7 +574,7 @@ public GetRoomSessionResponse viewRoomSession(UUID roomSessionId, Boolean includ * * @param roomSessionId The unique identifier of a room session. (required) * @param includeParticipants To decide if room participants should be included in the response. (optional) - * @return ApiResponse<GetRoomSessionResponse> + * @return ApiResponse<ViewRoomSession200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -515,7 +583,7 @@ public GetRoomSessionResponse viewRoomSession(UUID roomSessionId, Boolean includ
404 Resource not found -
*/ - public ApiResponse viewRoomSessionWithHttpInfo(UUID roomSessionId, Boolean includeParticipants) throws ApiException { + public ApiResponse viewRoomSessionWithHttpInfo(UUID roomSessionId, Boolean includeParticipants) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roomSessionId' is set @@ -550,7 +618,7 @@ public ApiResponse viewRoomSessionWithHttpInfo(UUID room String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomSessionsApi.viewRoomSession", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RoomsApi.java b/src/main/java/com/telnyx/sdk/api/RoomsApi.java index d404b47c..b7483c56 100644 --- a/src/main/java/com/telnyx/sdk/api/RoomsApi.java +++ b/src/main/java/com/telnyx/sdk/api/RoomsApi.java @@ -8,16 +8,14 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreateRoom201Response; import com.telnyx.sdk.model.CreateRoomRequest; -import com.telnyx.sdk.model.CreateRoomResponse; import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetRoomResponse; -import com.telnyx.sdk.model.ListRoomSessionsResponse; -import com.telnyx.sdk.model.ListRoomsResponse; +import com.telnyx.sdk.model.ListRoomSessions200Response; +import com.telnyx.sdk.model.ListRooms200Response; import java.time.LocalDate; import com.telnyx.sdk.model.PatchRoomRequest; -import com.telnyx.sdk.model.PatchRoomResponse; import java.util.UUID; import java.util.ArrayList; @@ -59,7 +57,7 @@ public void setApiClient(ApiClient apiClient) { * Create a room. * Synchronously create a Room. * @param createRoomRequest Parameters that can be defined during room creation. (required) - * @return CreateRoomResponse + * @return CreateRoom201Response * @throws ApiException if fails to make API call * @http.response.details @@ -68,7 +66,7 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public CreateRoomResponse createRoom(CreateRoomRequest createRoomRequest) throws ApiException { + public CreateRoom201Response createRoom(CreateRoomRequest createRoomRequest) throws ApiException { return createRoomWithHttpInfo(createRoomRequest).getData(); } @@ -76,7 +74,7 @@ public CreateRoomResponse createRoom(CreateRoomRequest createRoomRequest) throws * Create a room. * Synchronously create a Room. * @param createRoomRequest Parameters that can be defined during room creation. (required) - * @return ApiResponse<CreateRoomResponse> + * @return ApiResponse<CreateRoom201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -85,7 +83,7 @@ public CreateRoomResponse createRoom(CreateRoomRequest createRoomRequest) throws
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse createRoomWithHttpInfo(CreateRoomRequest createRoomRequest) throws ApiException { + public ApiResponse createRoomWithHttpInfo(CreateRoomRequest createRoomRequest) throws ApiException { Object localVarPostBody = createRoomRequest; // verify the required parameter 'createRoomRequest' is set @@ -118,7 +116,7 @@ public ApiResponse createRoomWithHttpInfo(CreateRoomRequest String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomsApi.createRoom", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -204,7 +202,7 @@ public ApiResponse deleteRoomWithHttpInfo(UUID roomId) throws ApiException * @param includeSessions To decide if room sessions should be included in the response. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ListRoomsResponse + * @return ListRooms200Response * @throws ApiException if fails to make API call * @http.response.details @@ -212,7 +210,7 @@ public ApiResponse deleteRoomWithHttpInfo(UUID roomId) throws ApiException
200 List rooms response. -
*/ - public ListRoomsResponse listRooms(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, String filterUniqueName, Boolean includeSessions, Integer pageSize, Integer pageNumber) throws ApiException { + public ListRooms200Response listRooms(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, String filterUniqueName, Boolean includeSessions, Integer pageSize, Integer pageNumber) throws ApiException { return listRoomsWithHttpInfo(filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterUniqueName, includeSessions, pageSize, pageNumber).getData(); } @@ -229,7 +227,7 @@ public ListRoomsResponse listRooms(LocalDate filterDateCreatedAtEq, LocalDate fi * @param includeSessions To decide if room sessions should be included in the response. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ApiResponse<ListRoomsResponse> + * @return ApiResponse<ListRooms200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -237,7 +235,7 @@ public ListRoomsResponse listRooms(LocalDate filterDateCreatedAtEq, LocalDate fi
200 List rooms response. -
*/ - public ApiResponse listRoomsWithHttpInfo(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, String filterUniqueName, Boolean includeSessions, Integer pageSize, Integer pageNumber) throws ApiException { + public ApiResponse listRoomsWithHttpInfo(LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, String filterUniqueName, Boolean includeSessions, Integer pageSize, Integer pageNumber) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -275,7 +273,7 @@ public ApiResponse listRoomsWithHttpInfo(LocalDate filterDate String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomsApi.listRooms", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -298,7 +296,7 @@ public ApiResponse listRoomsWithHttpInfo(LocalDate filterDate * @param includeParticipants To decide if room participants should be included in the response. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ListRoomSessionsResponse + * @return ListRoomSessions200Response * @throws ApiException if fails to make API call * @http.response.details @@ -306,7 +304,7 @@ public ApiResponse listRoomsWithHttpInfo(LocalDate filterDate
200 List room sessions response. -
*/ - public ListRoomSessionsResponse nestedListRoomSessions(UUID roomId, LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { + public ListRoomSessions200Response nestedListRoomSessions(UUID roomId, LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { return nestedListRoomSessionsWithHttpInfo(roomId, filterDateCreatedAtEq, filterDateCreatedAtGte, filterDateCreatedAtLte, filterDateUpdatedAtEq, filterDateUpdatedAtGte, filterDateUpdatedAtLte, filterDateEndedAtEq, filterDateEndedAtGte, filterDateEndedAtLte, filterActive, includeParticipants, pageSize, pageNumber).getData(); } @@ -327,7 +325,7 @@ public ListRoomSessionsResponse nestedListRoomSessions(UUID roomId, LocalDate fi * @param includeParticipants To decide if room participants should be included in the response. (optional) * @param pageSize The size of the page (optional, default to 20) * @param pageNumber The page number to load (optional, default to 1) - * @return ApiResponse<ListRoomSessionsResponse> + * @return ApiResponse<ListRoomSessions200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -335,7 +333,7 @@ public ListRoomSessionsResponse nestedListRoomSessions(UUID roomId, LocalDate fi
200 List room sessions response. -
*/ - public ApiResponse nestedListRoomSessionsWithHttpInfo(UUID roomId, LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { + public ApiResponse nestedListRoomSessionsWithHttpInfo(UUID roomId, LocalDate filterDateCreatedAtEq, LocalDate filterDateCreatedAtGte, LocalDate filterDateCreatedAtLte, LocalDate filterDateUpdatedAtEq, LocalDate filterDateUpdatedAtGte, LocalDate filterDateUpdatedAtLte, LocalDate filterDateEndedAtEq, LocalDate filterDateEndedAtGte, LocalDate filterDateEndedAtLte, Boolean filterActive, Boolean includeParticipants, Integer pageSize, Integer pageNumber) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roomId' is set @@ -382,7 +380,7 @@ public ApiResponse nestedListRoomSessionsWithHttpInfo( String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomsApi.nestedListRoomSessions", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -393,18 +391,18 @@ public ApiResponse nestedListRoomSessionsWithHttpInfo( * Synchronously update a Room. * @param roomId The unique identifier of a room. (required) * @param patchRoomRequest Parameters that can be defined during room update. (required) - * @return PatchRoomResponse + * @return CreateRoom201Response * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Update room response. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
*/ - public PatchRoomResponse patchRoom(UUID roomId, PatchRoomRequest patchRoomRequest) throws ApiException { + public CreateRoom201Response patchRoom(UUID roomId, PatchRoomRequest patchRoomRequest) throws ApiException { return patchRoomWithHttpInfo(roomId, patchRoomRequest).getData(); } @@ -413,18 +411,18 @@ public PatchRoomResponse patchRoom(UUID roomId, PatchRoomRequest patchRoomReques * Synchronously update a Room. * @param roomId The unique identifier of a room. (required) * @param patchRoomRequest Parameters that can be defined during room update. (required) - * @return ApiResponse<PatchRoomResponse> + * @return ApiResponse<CreateRoom201Response> * @throws ApiException if fails to make API call * @http.response.details - +
Status Code Description Response Headers
200 Update room response. -
401 Unauthorized -
401 Unauthorized response. Happens when the current user is not a manager account. -
404 Resource not found -
422 Bad request -
*/ - public ApiResponse patchRoomWithHttpInfo(UUID roomId, PatchRoomRequest patchRoomRequest) throws ApiException { + public ApiResponse patchRoomWithHttpInfo(UUID roomId, PatchRoomRequest patchRoomRequest) throws ApiException { Object localVarPostBody = patchRoomRequest; // verify the required parameter 'roomId' is set @@ -463,7 +461,7 @@ public ApiResponse patchRoomWithHttpInfo(UUID roomId, PatchRo String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomsApi.patchRoom", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -474,7 +472,7 @@ public ApiResponse patchRoomWithHttpInfo(UUID roomId, PatchRo * * @param roomId The unique identifier of a room. (required) * @param includeSessions To decide if room sessions should be included in the response. (optional) - * @return GetRoomResponse + * @return CreateRoom201Response * @throws ApiException if fails to make API call * @http.response.details @@ -483,7 +481,7 @@ public ApiResponse patchRoomWithHttpInfo(UUID roomId, PatchRo
404 Resource not found -
*/ - public GetRoomResponse viewRoom(UUID roomId, Boolean includeSessions) throws ApiException { + public CreateRoom201Response viewRoom(UUID roomId, Boolean includeSessions) throws ApiException { return viewRoomWithHttpInfo(roomId, includeSessions).getData(); } @@ -492,7 +490,7 @@ public GetRoomResponse viewRoom(UUID roomId, Boolean includeSessions) throws Api * * @param roomId The unique identifier of a room. (required) * @param includeSessions To decide if room sessions should be included in the response. (optional) - * @return ApiResponse<GetRoomResponse> + * @return ApiResponse<CreateRoom201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -501,7 +499,7 @@ public GetRoomResponse viewRoom(UUID roomId, Boolean includeSessions) throws Api
404 Resource not found -
*/ - public ApiResponse viewRoomWithHttpInfo(UUID roomId, Boolean includeSessions) throws ApiException { + public ApiResponse viewRoomWithHttpInfo(UUID roomId, Boolean includeSessions) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'roomId' is set @@ -536,7 +534,7 @@ public ApiResponse viewRoomWithHttpInfo(UUID roomId, Boolean in String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomsApi.viewRoom", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/RoomsClientTokensApi.java b/src/main/java/com/telnyx/sdk/api/RoomsClientTokensApi.java index 4fb31b76..c10cecbb 100644 --- a/src/main/java/com/telnyx/sdk/api/RoomsClientTokensApi.java +++ b/src/main/java/com/telnyx/sdk/api/RoomsClientTokensApi.java @@ -8,11 +8,11 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.CreateRoomClientToken201Response; import com.telnyx.sdk.model.CreateRoomClientTokenRequest; -import com.telnyx.sdk.model.CreateRoomClientTokenResponse; import com.telnyx.sdk.model.Error; +import com.telnyx.sdk.model.RefreshRoomClientToken201Response; import com.telnyx.sdk.model.RefreshRoomClientTokenRequest; -import com.telnyx.sdk.model.RefreshRoomClientTokenResponse; import java.util.UUID; import java.util.ArrayList; @@ -55,7 +55,7 @@ public void setApiClient(ApiClient apiClient) { * Synchronously create an Client Token to join a Room. Client Token is necessary to join a Telnyx Room. Client Token will expire after `token_ttl_secs`, a Refresh Token is also provided to refresh a Client Token, the Refresh Token expires after `refresh_token_ttl_secs`. * @param roomId The unique identifier of a room. (required) * @param createRoomClientTokenRequest Parameters that can be defined during Room Client Token creation. (required) - * @return CreateRoomClientTokenResponse + * @return CreateRoomClientToken201Response * @throws ApiException if fails to make API call * @http.response.details @@ -64,7 +64,7 @@ public void setApiClient(ApiClient apiClient) {
403 Forbidden -
*/ - public CreateRoomClientTokenResponse createRoomClientToken(UUID roomId, CreateRoomClientTokenRequest createRoomClientTokenRequest) throws ApiException { + public CreateRoomClientToken201Response createRoomClientToken(UUID roomId, CreateRoomClientTokenRequest createRoomClientTokenRequest) throws ApiException { return createRoomClientTokenWithHttpInfo(roomId, createRoomClientTokenRequest).getData(); } @@ -73,7 +73,7 @@ public CreateRoomClientTokenResponse createRoomClientToken(UUID roomId, CreateRo * Synchronously create an Client Token to join a Room. Client Token is necessary to join a Telnyx Room. Client Token will expire after `token_ttl_secs`, a Refresh Token is also provided to refresh a Client Token, the Refresh Token expires after `refresh_token_ttl_secs`. * @param roomId The unique identifier of a room. (required) * @param createRoomClientTokenRequest Parameters that can be defined during Room Client Token creation. (required) - * @return ApiResponse<CreateRoomClientTokenResponse> + * @return ApiResponse<CreateRoomClientToken201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -82,7 +82,7 @@ public CreateRoomClientTokenResponse createRoomClientToken(UUID roomId, CreateRo
403 Forbidden -
*/ - public ApiResponse createRoomClientTokenWithHttpInfo(UUID roomId, CreateRoomClientTokenRequest createRoomClientTokenRequest) throws ApiException { + public ApiResponse createRoomClientTokenWithHttpInfo(UUID roomId, CreateRoomClientTokenRequest createRoomClientTokenRequest) throws ApiException { Object localVarPostBody = createRoomClientTokenRequest; // verify the required parameter 'roomId' is set @@ -121,7 +121,7 @@ public ApiResponse createRoomClientTokenWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomsClientTokensApi.createRoomClientToken", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -132,7 +132,7 @@ public ApiResponse createRoomClientTokenWithHttpI * Synchronously refresh an Client Token to join a Room. Client Token is necessary to join a Telnyx Room. Client Token will expire after `token_ttl_secs`. * @param roomId The unique identifier of a room. (required) * @param refreshRoomClientTokenRequest Parameters that can be defined during Room Client Token refresh. (required) - * @return RefreshRoomClientTokenResponse + * @return RefreshRoomClientToken201Response * @throws ApiException if fails to make API call * @http.response.details @@ -141,7 +141,7 @@ public ApiResponse createRoomClientTokenWithHttpI
403 Forbidden -
*/ - public RefreshRoomClientTokenResponse refreshRoomClientToken(UUID roomId, RefreshRoomClientTokenRequest refreshRoomClientTokenRequest) throws ApiException { + public RefreshRoomClientToken201Response refreshRoomClientToken(UUID roomId, RefreshRoomClientTokenRequest refreshRoomClientTokenRequest) throws ApiException { return refreshRoomClientTokenWithHttpInfo(roomId, refreshRoomClientTokenRequest).getData(); } @@ -150,7 +150,7 @@ public RefreshRoomClientTokenResponse refreshRoomClientToken(UUID roomId, Refres * Synchronously refresh an Client Token to join a Room. Client Token is necessary to join a Telnyx Room. Client Token will expire after `token_ttl_secs`. * @param roomId The unique identifier of a room. (required) * @param refreshRoomClientTokenRequest Parameters that can be defined during Room Client Token refresh. (required) - * @return ApiResponse<RefreshRoomClientTokenResponse> + * @return ApiResponse<RefreshRoomClientToken201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -159,7 +159,7 @@ public RefreshRoomClientTokenResponse refreshRoomClientToken(UUID roomId, Refres
403 Forbidden -
*/ - public ApiResponse refreshRoomClientTokenWithHttpInfo(UUID roomId, RefreshRoomClientTokenRequest refreshRoomClientTokenRequest) throws ApiException { + public ApiResponse refreshRoomClientTokenWithHttpInfo(UUID roomId, RefreshRoomClientTokenRequest refreshRoomClientTokenRequest) throws ApiException { Object localVarPostBody = refreshRoomClientTokenRequest; // verify the required parameter 'roomId' is set @@ -198,7 +198,7 @@ public ApiResponse refreshRoomClientTokenWithHtt String[] localVarAuthNames = new String[] { }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("RoomsClientTokensApi.refreshRoomClientToken", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/SimCardActionsApi.java b/src/main/java/com/telnyx/sdk/api/SimCardActionsApi.java index 6c9c8235..46869666 100644 --- a/src/main/java/com/telnyx/sdk/api/SimCardActionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/SimCardActionsApi.java @@ -8,9 +8,11 @@ import javax.ws.rs.core.GenericType; +import com.telnyx.sdk.model.BulkSimCardActionGet200Response; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.SIMCardActionResponse; -import com.telnyx.sdk.model.SimCardActionCollectionResponse; +import com.telnyx.sdk.model.ListBulkSIMCardActions200Response; +import com.telnyx.sdk.model.ListSIMCardActions200Response; +import com.telnyx.sdk.model.SimCardActionGet200Response; import java.util.UUID; import java.util.ArrayList; @@ -48,6 +50,147 @@ public void setApiClient(ApiClient apiClient) { this.apiClient = apiClient; } + /** + * Get bulk SIM card action details + * This API fetches information about a bulk SIM card action. A bulk SIM card action contains details about a collection of individual SIM card actions. + * @param id Identifies the resource. (required) + * @return BulkSimCardActionGet200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful Response -
0 Unexpected error -
+ */ + public BulkSimCardActionGet200Response bulkSimCardActionGet(UUID id) throws ApiException { + return bulkSimCardActionGetWithHttpInfo(id).getData(); + } + + /** + * Get bulk SIM card action details + * This API fetches information about a bulk SIM card action. A bulk SIM card action contains details about a collection of individual SIM card actions. + * @param id Identifies the resource. (required) + * @return ApiResponse<BulkSimCardActionGet200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful Response -
0 Unexpected error -
+ */ + public ApiResponse bulkSimCardActionGetWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling bulkSimCardActionGet"); + } + + // create path and map variables + String localVarPath = "/bulk_sim_card_actions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("SimCardActionsApi.bulkSimCardActionGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List bulk SIM card actions + * This API lists a paginated collection of bulk SIM card actions. A bulk SIM card action contains details about a collection of individual SIM card actions. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterActionType Filter by action type. (optional) + * @return ListBulkSIMCardActions200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ListBulkSIMCardActions200Response listBulkSIMCardActions(Integer pageNumber, Integer pageSize, String filterActionType) throws ApiException { + return listBulkSIMCardActionsWithHttpInfo(pageNumber, pageSize, filterActionType).getData(); + } + + /** + * List bulk SIM card actions + * This API lists a paginated collection of bulk SIM card actions. A bulk SIM card action contains details about a collection of individual SIM card actions. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterActionType Filter by action type. (optional) + * @return ApiResponse<ListBulkSIMCardActions200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse listBulkSIMCardActionsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterActionType) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/bulk_sim_card_actions"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[action_type]", filterActionType)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("SimCardActionsApi.listBulkSIMCardActions", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * List SIM card actions * This API lists a paginated collection of SIM card actions. It enables exploring a collection of existing asynchronous operations using specific filters. @@ -55,8 +198,9 @@ public void setApiClient(ApiClient apiClient) { * @param pageSize The size of the page (optional, default to 20) * @param filterSimCardId A valid SIM card ID. (optional) * @param filterStatus Filter by a specific status of the resource's lifecycle. (optional) + * @param filterBulkSimCardActionId Filter by a bulk SIM card action ID. (optional) * @param filterActionType Filter by action type. (optional) - * @return SimCardActionCollectionResponse + * @return ListSIMCardActions200Response * @throws ApiException if fails to make API call * @http.response.details @@ -65,8 +209,8 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public SimCardActionCollectionResponse listSIMCardActions(Integer pageNumber, Integer pageSize, UUID filterSimCardId, String filterStatus, String filterActionType) throws ApiException { - return listSIMCardActionsWithHttpInfo(pageNumber, pageSize, filterSimCardId, filterStatus, filterActionType).getData(); + public ListSIMCardActions200Response listSIMCardActions(Integer pageNumber, Integer pageSize, UUID filterSimCardId, String filterStatus, UUID filterBulkSimCardActionId, String filterActionType) throws ApiException { + return listSIMCardActionsWithHttpInfo(pageNumber, pageSize, filterSimCardId, filterStatus, filterBulkSimCardActionId, filterActionType).getData(); } /** @@ -76,8 +220,9 @@ public SimCardActionCollectionResponse listSIMCardActions(Integer pageNumber, In * @param pageSize The size of the page (optional, default to 20) * @param filterSimCardId A valid SIM card ID. (optional) * @param filterStatus Filter by a specific status of the resource's lifecycle. (optional) + * @param filterBulkSimCardActionId Filter by a bulk SIM card action ID. (optional) * @param filterActionType Filter by action type. (optional) - * @return ApiResponse<SimCardActionCollectionResponse> + * @return ApiResponse<ListSIMCardActions200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -86,7 +231,7 @@ public SimCardActionCollectionResponse listSIMCardActions(Integer pageNumber, In
0 Unexpected error -
*/ - public ApiResponse listSIMCardActionsWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterSimCardId, String filterStatus, String filterActionType) throws ApiException { + public ApiResponse listSIMCardActionsWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterSimCardId, String filterStatus, UUID filterBulkSimCardActionId, String filterActionType) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -102,6 +247,7 @@ public ApiResponse listSIMCardActionsWithHttpIn localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[sim_card_id]", filterSimCardId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status]", filterStatus)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[bulk_sim_card_action_id]", filterBulkSimCardActionId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[action_type]", filterActionType)); @@ -119,7 +265,7 @@ public ApiResponse listSIMCardActionsWithHttpIn String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardActionsApi.listSIMCardActions", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -129,7 +275,7 @@ public ApiResponse listSIMCardActionsWithHttpIn * Get SIM card action details * This API fetches detailed information about a SIM card action to follow-up on an existing asynchronous operation. * @param id Identifies the resource. (required) - * @return SIMCardActionResponse + * @return SimCardActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -138,7 +284,7 @@ public ApiResponse listSIMCardActionsWithHttpIn
0 Unexpected error -
*/ - public SIMCardActionResponse simCardActionGet(UUID id) throws ApiException { + public SimCardActionGet200Response simCardActionGet(UUID id) throws ApiException { return simCardActionGetWithHttpInfo(id).getData(); } @@ -146,7 +292,7 @@ public SIMCardActionResponse simCardActionGet(UUID id) throws ApiException { * Get SIM card action details * This API fetches detailed information about a SIM card action to follow-up on an existing asynchronous operation. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardActionResponse> + * @return ApiResponse<SimCardActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -155,7 +301,7 @@ public SIMCardActionResponse simCardActionGet(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse simCardActionGetWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardActionGetWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -189,7 +335,7 @@ public ApiResponse simCardActionGetWithHttpInfo(UUID id) String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardActionsApi.simCardActionGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/SimCardGroupActionsApi.java b/src/main/java/com/telnyx/sdk/api/SimCardGroupActionsApi.java index 6723c95a..25242c61 100644 --- a/src/main/java/com/telnyx/sdk/api/SimCardGroupActionsApi.java +++ b/src/main/java/com/telnyx/sdk/api/SimCardGroupActionsApi.java @@ -9,8 +9,8 @@ import javax.ws.rs.core.GenericType; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.SIMCardGroupActionResponse; -import com.telnyx.sdk.model.SimCardGroupActionCollectionResponse; +import com.telnyx.sdk.model.SimCardGroupActionGet200Response; +import com.telnyx.sdk.model.SimCardGroupActionsGet200Response; import java.util.UUID; import java.util.ArrayList; @@ -52,7 +52,7 @@ public void setApiClient(ApiClient apiClient) { * Get SIM card group action details * This API allows fetching detailed information about a SIM card group action resource to make follow-ups in an existing asynchronous operation. * @param id Identifies the resource. (required) - * @return SIMCardGroupActionResponse + * @return SimCardGroupActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -61,7 +61,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public SIMCardGroupActionResponse simCardGroupActionGet(UUID id) throws ApiException { + public SimCardGroupActionGet200Response simCardGroupActionGet(UUID id) throws ApiException { return simCardGroupActionGetWithHttpInfo(id).getData(); } @@ -69,7 +69,7 @@ public SIMCardGroupActionResponse simCardGroupActionGet(UUID id) throws ApiExcep * Get SIM card group action details * This API allows fetching detailed information about a SIM card group action resource to make follow-ups in an existing asynchronous operation. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardGroupActionResponse> + * @return ApiResponse<SimCardGroupActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -78,7 +78,7 @@ public SIMCardGroupActionResponse simCardGroupActionGet(UUID id) throws ApiExcep
0 Unexpected error -
*/ - public ApiResponse simCardGroupActionGetWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardGroupActionGetWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -112,7 +112,7 @@ public ApiResponse simCardGroupActionGetWithHttpInfo String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupActionsApi.simCardGroupActionGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -126,7 +126,7 @@ public ApiResponse simCardGroupActionGetWithHttpInfo * @param filterSimCardGroupId A valid SIM card group ID. (optional) * @param filterStatus Filter by a specific status of the resource's lifecycle. (optional) * @param filterType Filter by action type. (optional) - * @return SimCardGroupActionCollectionResponse + * @return SimCardGroupActionsGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -135,7 +135,7 @@ public ApiResponse simCardGroupActionGetWithHttpInfo
0 Unexpected error -
*/ - public SimCardGroupActionCollectionResponse simCardGroupActionsGet(Integer pageNumber, Integer pageSize, UUID filterSimCardGroupId, String filterStatus, String filterType) throws ApiException { + public SimCardGroupActionsGet200Response simCardGroupActionsGet(Integer pageNumber, Integer pageSize, UUID filterSimCardGroupId, String filterStatus, String filterType) throws ApiException { return simCardGroupActionsGetWithHttpInfo(pageNumber, pageSize, filterSimCardGroupId, filterStatus, filterType).getData(); } @@ -147,7 +147,7 @@ public SimCardGroupActionCollectionResponse simCardGroupActionsGet(Integer pageN * @param filterSimCardGroupId A valid SIM card group ID. (optional) * @param filterStatus Filter by a specific status of the resource's lifecycle. (optional) * @param filterType Filter by action type. (optional) - * @return ApiResponse<SimCardGroupActionCollectionResponse> + * @return ApiResponse<SimCardGroupActionsGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -156,7 +156,7 @@ public SimCardGroupActionCollectionResponse simCardGroupActionsGet(Integer pageN
0 Unexpected error -
*/ - public ApiResponse simCardGroupActionsGetWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterSimCardGroupId, String filterStatus, String filterType) throws ApiException { + public ApiResponse simCardGroupActionsGetWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterSimCardGroupId, String filterStatus, String filterType) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -189,7 +189,7 @@ public ApiResponse simCardGroupActionsGetW String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupActionsApi.simCardGroupActionsGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/SimCardGroupsApi.java b/src/main/java/com/telnyx/sdk/api/SimCardGroupsApi.java index b398c964..07fd003b 100644 --- a/src/main/java/com/telnyx/sdk/api/SimCardGroupsApi.java +++ b/src/main/java/com/telnyx/sdk/api/SimCardGroupsApi.java @@ -8,17 +8,14 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreatePrivateWirelessGatwewayRequest1; -import com.telnyx.sdk.model.CreateSimCardGroupResponse; -import com.telnyx.sdk.model.DeleteSimCardGroupResponse; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetAllSimCardGroupsResponse; -import com.telnyx.sdk.model.GetSimCardGroupResponse; -import com.telnyx.sdk.model.SIMCardGroupActionResponse; import com.telnyx.sdk.model.SIMCardGroupCreate; import com.telnyx.sdk.model.SIMCardGroupPatch; +import com.telnyx.sdk.model.SetSIMCardGroupPrivateWirelessGatewayRequest; +import com.telnyx.sdk.model.SimCardGroupActionGet200Response; +import com.telnyx.sdk.model.SimCardGroupsGetAll200Response; +import com.telnyx.sdk.model.SimCardGroupsPost200Response; import java.util.UUID; -import com.telnyx.sdk.model.UpdateSimCardGroupResponse; import java.util.ArrayList; import java.util.HashMap; @@ -59,7 +56,7 @@ public void setApiClient(ApiClient apiClient) { * Request Private Wireless Gateway removal from SIM card group * This action will asynchronously remove an existing Private Wireless Gateway definition from a SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic handled by Telnyx's default mobile network configuration. * @param id Identifies the resource. (required) - * @return SIMCardGroupActionResponse + * @return SimCardGroupActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -68,7 +65,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public SIMCardGroupActionResponse removeSIMCardGroupPrivateWirelessGateway(UUID id) throws ApiException { + public SimCardGroupActionGet200Response removeSIMCardGroupPrivateWirelessGateway(UUID id) throws ApiException { return removeSIMCardGroupPrivateWirelessGatewayWithHttpInfo(id).getData(); } @@ -76,7 +73,7 @@ public SIMCardGroupActionResponse removeSIMCardGroupPrivateWirelessGateway(UUID * Request Private Wireless Gateway removal from SIM card group * This action will asynchronously remove an existing Private Wireless Gateway definition from a SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic handled by Telnyx's default mobile network configuration. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardGroupActionResponse> + * @return ApiResponse<SimCardGroupActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -85,7 +82,7 @@ public SIMCardGroupActionResponse removeSIMCardGroupPrivateWirelessGateway(UUID
0 Unexpected error -
*/ - public ApiResponse removeSIMCardGroupPrivateWirelessGatewayWithHttpInfo(UUID id) throws ApiException { + public ApiResponse removeSIMCardGroupPrivateWirelessGatewayWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -119,7 +116,7 @@ public ApiResponse removeSIMCardGroupPrivateWireless String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupsApi.removeSIMCardGroupPrivateWirelessGateway", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -129,8 +126,8 @@ public ApiResponse removeSIMCardGroupPrivateWireless * Request Private Wireless Gateway assignment for SIM card group * This action will asynchronously assign a provisioned Private Wireless Gateway to the SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic controlled by the associated Private Wireless Gateway. This operation will also imply that new SIM cards assigned to a group will inherit its network definitions. If it's moved to a different group that doesn't have a Private Wireless Gateway, it'll use Telnyx's default mobile network configuration. * @param id Identifies the resource. (required) - * @param createPrivateWirelessGatwewayRequest1 (required) - * @return SIMCardGroupActionResponse + * @param setSIMCardGroupPrivateWirelessGatewayRequest (required) + * @return SimCardGroupActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -139,16 +136,16 @@ public ApiResponse removeSIMCardGroupPrivateWireless
0 Unexpected error -
*/ - public SIMCardGroupActionResponse setSIMCardGroupPrivateWirelessGateway(UUID id, CreatePrivateWirelessGatwewayRequest1 createPrivateWirelessGatwewayRequest1) throws ApiException { - return setSIMCardGroupPrivateWirelessGatewayWithHttpInfo(id, createPrivateWirelessGatwewayRequest1).getData(); + public SimCardGroupActionGet200Response setSIMCardGroupPrivateWirelessGateway(UUID id, SetSIMCardGroupPrivateWirelessGatewayRequest setSIMCardGroupPrivateWirelessGatewayRequest) throws ApiException { + return setSIMCardGroupPrivateWirelessGatewayWithHttpInfo(id, setSIMCardGroupPrivateWirelessGatewayRequest).getData(); } /** * Request Private Wireless Gateway assignment for SIM card group * This action will asynchronously assign a provisioned Private Wireless Gateway to the SIM card group. Completing this operation defines that all SIM cards in the SIM card group will get their traffic controlled by the associated Private Wireless Gateway. This operation will also imply that new SIM cards assigned to a group will inherit its network definitions. If it's moved to a different group that doesn't have a Private Wireless Gateway, it'll use Telnyx's default mobile network configuration. * @param id Identifies the resource. (required) - * @param createPrivateWirelessGatwewayRequest1 (required) - * @return ApiResponse<SIMCardGroupActionResponse> + * @param setSIMCardGroupPrivateWirelessGatewayRequest (required) + * @return ApiResponse<SimCardGroupActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -157,17 +154,17 @@ public SIMCardGroupActionResponse setSIMCardGroupPrivateWirelessGateway(UUID id,
0 Unexpected error -
*/ - public ApiResponse setSIMCardGroupPrivateWirelessGatewayWithHttpInfo(UUID id, CreatePrivateWirelessGatwewayRequest1 createPrivateWirelessGatwewayRequest1) throws ApiException { - Object localVarPostBody = createPrivateWirelessGatwewayRequest1; + public ApiResponse setSIMCardGroupPrivateWirelessGatewayWithHttpInfo(UUID id, SetSIMCardGroupPrivateWirelessGatewayRequest setSIMCardGroupPrivateWirelessGatewayRequest) throws ApiException { + Object localVarPostBody = setSIMCardGroupPrivateWirelessGatewayRequest; // verify the required parameter 'id' is set if (id == null) { throw new ApiException(400, "Missing the required parameter 'id' when calling setSIMCardGroupPrivateWirelessGateway"); } - // verify the required parameter 'createPrivateWirelessGatwewayRequest1' is set - if (createPrivateWirelessGatwewayRequest1 == null) { - throw new ApiException(400, "Missing the required parameter 'createPrivateWirelessGatwewayRequest1' when calling setSIMCardGroupPrivateWirelessGateway"); + // verify the required parameter 'setSIMCardGroupPrivateWirelessGatewayRequest' is set + if (setSIMCardGroupPrivateWirelessGatewayRequest == null) { + throw new ApiException(400, "Missing the required parameter 'setSIMCardGroupPrivateWirelessGatewayRequest' when calling setSIMCardGroupPrivateWirelessGateway"); } // create path and map variables @@ -196,7 +193,7 @@ public ApiResponse setSIMCardGroupPrivateWirelessGat String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupsApi.setSIMCardGroupPrivateWirelessGateway", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -206,7 +203,7 @@ public ApiResponse setSIMCardGroupPrivateWirelessGat * Delete a SIM card group * Permanently deletes a SIM card group * @param id Identifies the resource. (required) - * @return DeleteSimCardGroupResponse + * @return SimCardGroupsPost200Response * @throws ApiException if fails to make API call * @http.response.details @@ -215,7 +212,7 @@ public ApiResponse setSIMCardGroupPrivateWirelessGat
0 Unexpected error -
*/ - public DeleteSimCardGroupResponse simCardGroupDelete(UUID id) throws ApiException { + public SimCardGroupsPost200Response simCardGroupDelete(UUID id) throws ApiException { return simCardGroupDeleteWithHttpInfo(id).getData(); } @@ -223,7 +220,7 @@ public DeleteSimCardGroupResponse simCardGroupDelete(UUID id) throws ApiExceptio * Delete a SIM card group * Permanently deletes a SIM card group * @param id Identifies the resource. (required) - * @return ApiResponse<DeleteSimCardGroupResponse> + * @return ApiResponse<SimCardGroupsPost200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -232,7 +229,7 @@ public DeleteSimCardGroupResponse simCardGroupDelete(UUID id) throws ApiExceptio
0 Unexpected error -
*/ - public ApiResponse simCardGroupDeleteWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardGroupDeleteWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -266,7 +263,7 @@ public ApiResponse simCardGroupDeleteWithHttpInfo(UU String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupsApi.simCardGroupDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -277,7 +274,7 @@ public ApiResponse simCardGroupDeleteWithHttpInfo(UU * Updates a SIM card group * @param id Identifies the resource. (required) * @param siMCardGroupPatch (required) - * @return UpdateSimCardGroupResponse + * @return SimCardGroupsPost200Response * @throws ApiException if fails to make API call * @http.response.details @@ -286,7 +283,7 @@ public ApiResponse simCardGroupDeleteWithHttpInfo(UU
0 Unexpected error -
*/ - public UpdateSimCardGroupResponse simCardGroupUpdate(UUID id, SIMCardGroupPatch siMCardGroupPatch) throws ApiException { + public SimCardGroupsPost200Response simCardGroupUpdate(UUID id, SIMCardGroupPatch siMCardGroupPatch) throws ApiException { return simCardGroupUpdateWithHttpInfo(id, siMCardGroupPatch).getData(); } @@ -295,7 +292,7 @@ public UpdateSimCardGroupResponse simCardGroupUpdate(UUID id, SIMCardGroupPatch * Updates a SIM card group * @param id Identifies the resource. (required) * @param siMCardGroupPatch (required) - * @return ApiResponse<UpdateSimCardGroupResponse> + * @return ApiResponse<SimCardGroupsPost200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -304,7 +301,7 @@ public UpdateSimCardGroupResponse simCardGroupUpdate(UUID id, SIMCardGroupPatch
0 Unexpected error -
*/ - public ApiResponse simCardGroupUpdateWithHttpInfo(UUID id, SIMCardGroupPatch siMCardGroupPatch) throws ApiException { + public ApiResponse simCardGroupUpdateWithHttpInfo(UUID id, SIMCardGroupPatch siMCardGroupPatch) throws ApiException { Object localVarPostBody = siMCardGroupPatch; // verify the required parameter 'id' is set @@ -343,7 +340,7 @@ public ApiResponse simCardGroupUpdateWithHttpInfo(UU String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupsApi.simCardGroupUpdate", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -353,7 +350,7 @@ public ApiResponse simCardGroupUpdateWithHttpInfo(UU * Get SIM card group * Returns the details regarding a specific SIM card group * @param id Identifies the resource. (required) - * @return GetSimCardGroupResponse + * @return SimCardGroupsPost200Response * @throws ApiException if fails to make API call * @http.response.details @@ -362,7 +359,7 @@ public ApiResponse simCardGroupUpdateWithHttpInfo(UU
0 Unexpected error -
*/ - public GetSimCardGroupResponse simCardGroupsGet(UUID id) throws ApiException { + public SimCardGroupsPost200Response simCardGroupsGet(UUID id) throws ApiException { return simCardGroupsGetWithHttpInfo(id).getData(); } @@ -370,7 +367,7 @@ public GetSimCardGroupResponse simCardGroupsGet(UUID id) throws ApiException { * Get SIM card group * Returns the details regarding a specific SIM card group * @param id Identifies the resource. (required) - * @return ApiResponse<GetSimCardGroupResponse> + * @return ApiResponse<SimCardGroupsPost200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -379,7 +376,7 @@ public GetSimCardGroupResponse simCardGroupsGet(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse simCardGroupsGetWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardGroupsGetWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -413,7 +410,7 @@ public ApiResponse simCardGroupsGetWithHttpInfo(UUID id String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupsApi.simCardGroupsGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -425,7 +422,8 @@ public ApiResponse simCardGroupsGetWithHttpInfo(UUID id * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterName A valid SIM card group name. (optional) - * @return GetAllSimCardGroupsResponse + * @param filterPrivateWirelessGatewayId A Private Wireless Gateway ID associated with the group. (optional) + * @return SimCardGroupsGetAll200Response * @throws ApiException if fails to make API call * @http.response.details @@ -434,8 +432,8 @@ public ApiResponse simCardGroupsGetWithHttpInfo(UUID id
0 Unexpected error -
*/ - public GetAllSimCardGroupsResponse simCardGroupsGetAll(Integer pageNumber, Integer pageSize, UUID filterName) throws ApiException { - return simCardGroupsGetAllWithHttpInfo(pageNumber, pageSize, filterName).getData(); + public SimCardGroupsGetAll200Response simCardGroupsGetAll(Integer pageNumber, Integer pageSize, UUID filterName, UUID filterPrivateWirelessGatewayId) throws ApiException { + return simCardGroupsGetAllWithHttpInfo(pageNumber, pageSize, filterName, filterPrivateWirelessGatewayId).getData(); } /** @@ -444,7 +442,8 @@ public GetAllSimCardGroupsResponse simCardGroupsGetAll(Integer pageNumber, Integ * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterName A valid SIM card group name. (optional) - * @return ApiResponse<GetAllSimCardGroupsResponse> + * @param filterPrivateWirelessGatewayId A Private Wireless Gateway ID associated with the group. (optional) + * @return ApiResponse<SimCardGroupsGetAll200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -453,7 +452,7 @@ public GetAllSimCardGroupsResponse simCardGroupsGetAll(Integer pageNumber, Integ
0 Unexpected error -
*/ - public ApiResponse simCardGroupsGetAllWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterName) throws ApiException { + public ApiResponse simCardGroupsGetAllWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterName, UUID filterPrivateWirelessGatewayId) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -468,6 +467,7 @@ public ApiResponse simCardGroupsGetAllWithHttpInfo( localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[name]", filterName)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[private_wireless_gateway_id]", filterPrivateWirelessGatewayId)); @@ -484,7 +484,7 @@ public ApiResponse simCardGroupsGetAllWithHttpInfo( String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupsApi.simCardGroupsGetAll", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -494,7 +494,7 @@ public ApiResponse simCardGroupsGetAllWithHttpInfo( * Create a SIM card group * Creates a new SIM card group object * @param siMCardGroupCreate (required) - * @return CreateSimCardGroupResponse + * @return SimCardGroupsPost200Response * @throws ApiException if fails to make API call * @http.response.details @@ -503,7 +503,7 @@ public ApiResponse simCardGroupsGetAllWithHttpInfo(
0 Unexpected error -
*/ - public CreateSimCardGroupResponse simCardGroupsPost(SIMCardGroupCreate siMCardGroupCreate) throws ApiException { + public SimCardGroupsPost200Response simCardGroupsPost(SIMCardGroupCreate siMCardGroupCreate) throws ApiException { return simCardGroupsPostWithHttpInfo(siMCardGroupCreate).getData(); } @@ -511,7 +511,7 @@ public CreateSimCardGroupResponse simCardGroupsPost(SIMCardGroupCreate siMCardGr * Create a SIM card group * Creates a new SIM card group object * @param siMCardGroupCreate (required) - * @return ApiResponse<CreateSimCardGroupResponse> + * @return ApiResponse<SimCardGroupsPost200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -520,7 +520,7 @@ public CreateSimCardGroupResponse simCardGroupsPost(SIMCardGroupCreate siMCardGr
0 Unexpected error -
*/ - public ApiResponse simCardGroupsPostWithHttpInfo(SIMCardGroupCreate siMCardGroupCreate) throws ApiException { + public ApiResponse simCardGroupsPostWithHttpInfo(SIMCardGroupCreate siMCardGroupCreate) throws ApiException { Object localVarPostBody = siMCardGroupCreate; // verify the required parameter 'siMCardGroupCreate' is set @@ -553,7 +553,7 @@ public ApiResponse simCardGroupsPostWithHttpInfo(SIM String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardGroupsApi.simCardGroupsPost", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/SimCardOrdersApi.java b/src/main/java/com/telnyx/sdk/api/SimCardOrdersApi.java index d77e1aa7..ac54686b 100644 --- a/src/main/java/com/telnyx/sdk/api/SimCardOrdersApi.java +++ b/src/main/java/com/telnyx/sdk/api/SimCardOrdersApi.java @@ -8,14 +8,13 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.CreateSimCardOrderPreview; -import com.telnyx.sdk.model.CreateSimCardOrderResponse; import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetAllSimCardOrderResponse; -import com.telnyx.sdk.model.GetSimCardOrderResponse; -import com.telnyx.sdk.model.SIMCardOrdersPreviewResponse; import com.telnyx.sdk.model.SimCardOrderCreate; +import com.telnyx.sdk.model.SimCardOrdersGet200Response; +import com.telnyx.sdk.model.SimCardOrdersPost200Response; +import com.telnyx.sdk.model.SimCardOrdersPreview202Response; +import com.telnyx.sdk.model.SimCardOrdersPreviewRequest; import java.util.UUID; import java.util.ArrayList; @@ -57,7 +56,7 @@ public void setApiClient(ApiClient apiClient) { * Get a single SIM card order * Get a single SIM card order by its ID. * @param id Identifies the resource. (required) - * @return GetSimCardOrderResponse + * @return SimCardOrdersPost200Response * @throws ApiException if fails to make API call * @http.response.details @@ -67,7 +66,7 @@ public void setApiClient(ApiClient apiClient) {
0 Unexpected error -
*/ - public GetSimCardOrderResponse simCardOrderGet(UUID id) throws ApiException { + public SimCardOrdersPost200Response simCardOrderGet(UUID id) throws ApiException { return simCardOrderGetWithHttpInfo(id).getData(); } @@ -75,7 +74,7 @@ public GetSimCardOrderResponse simCardOrderGet(UUID id) throws ApiException { * Get a single SIM card order * Get a single SIM card order by its ID. * @param id Identifies the resource. (required) - * @return ApiResponse<GetSimCardOrderResponse> + * @return ApiResponse<SimCardOrdersPost200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -85,7 +84,7 @@ public GetSimCardOrderResponse simCardOrderGet(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse simCardOrderGetWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardOrderGetWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -119,7 +118,7 @@ public ApiResponse simCardOrderGetWithHttpInfo(UUID id) String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardOrdersApi.simCardOrderGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -142,7 +141,7 @@ public ApiResponse simCardOrderGetWithHttpInfo(UUID id) * @param filterAddressPostalCode Filter by postal code for the address. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return GetAllSimCardOrderResponse + * @return SimCardOrdersGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -151,7 +150,7 @@ public ApiResponse simCardOrderGetWithHttpInfo(UUID id)
0 Unexpected error -
*/ - public GetAllSimCardOrderResponse simCardOrdersGet(String filterCreatedAt, String filterUpdatedAt, Integer filterQuantity, String filterCostAmount, String filterCostCurrency, String filterAddressId, String filterAddressStreetAddress, String filterAddressExtendedAddress, String filterAddressLocality, String filterAddressAdministrativeArea, String filterAddressCountryCode, String filterAddressPostalCode, Integer pageNumber, Integer pageSize) throws ApiException { + public SimCardOrdersGet200Response simCardOrdersGet(String filterCreatedAt, String filterUpdatedAt, Integer filterQuantity, String filterCostAmount, String filterCostCurrency, String filterAddressId, String filterAddressStreetAddress, String filterAddressExtendedAddress, String filterAddressLocality, String filterAddressAdministrativeArea, String filterAddressCountryCode, String filterAddressPostalCode, Integer pageNumber, Integer pageSize) throws ApiException { return simCardOrdersGetWithHttpInfo(filterCreatedAt, filterUpdatedAt, filterQuantity, filterCostAmount, filterCostCurrency, filterAddressId, filterAddressStreetAddress, filterAddressExtendedAddress, filterAddressLocality, filterAddressAdministrativeArea, filterAddressCountryCode, filterAddressPostalCode, pageNumber, pageSize).getData(); } @@ -172,7 +171,7 @@ public GetAllSimCardOrderResponse simCardOrdersGet(String filterCreatedAt, Strin * @param filterAddressPostalCode Filter by postal code for the address. (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<GetAllSimCardOrderResponse> + * @return ApiResponse<SimCardOrdersGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -181,7 +180,7 @@ public GetAllSimCardOrderResponse simCardOrdersGet(String filterCreatedAt, Strin
0 Unexpected error -
*/ - public ApiResponse simCardOrdersGetWithHttpInfo(String filterCreatedAt, String filterUpdatedAt, Integer filterQuantity, String filterCostAmount, String filterCostCurrency, String filterAddressId, String filterAddressStreetAddress, String filterAddressExtendedAddress, String filterAddressLocality, String filterAddressAdministrativeArea, String filterAddressCountryCode, String filterAddressPostalCode, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse simCardOrdersGetWithHttpInfo(String filterCreatedAt, String filterUpdatedAt, Integer filterQuantity, String filterCostAmount, String filterCostCurrency, String filterAddressId, String filterAddressStreetAddress, String filterAddressExtendedAddress, String filterAddressLocality, String filterAddressAdministrativeArea, String filterAddressCountryCode, String filterAddressPostalCode, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -223,7 +222,7 @@ public ApiResponse simCardOrdersGetWithHttpInfo(Stri String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardOrdersApi.simCardOrdersGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -233,7 +232,7 @@ public ApiResponse simCardOrdersGetWithHttpInfo(Stri * Create a SIM card order * Creates a new order for SIM cards. * @param simCardOrderCreate (required) - * @return CreateSimCardOrderResponse + * @return SimCardOrdersPost200Response * @throws ApiException if fails to make API call * @http.response.details @@ -242,7 +241,7 @@ public ApiResponse simCardOrdersGetWithHttpInfo(Stri
0 Unexpected error -
*/ - public CreateSimCardOrderResponse simCardOrdersPost(SimCardOrderCreate simCardOrderCreate) throws ApiException { + public SimCardOrdersPost200Response simCardOrdersPost(SimCardOrderCreate simCardOrderCreate) throws ApiException { return simCardOrdersPostWithHttpInfo(simCardOrderCreate).getData(); } @@ -250,7 +249,7 @@ public CreateSimCardOrderResponse simCardOrdersPost(SimCardOrderCreate simCardOr * Create a SIM card order * Creates a new order for SIM cards. * @param simCardOrderCreate (required) - * @return ApiResponse<CreateSimCardOrderResponse> + * @return ApiResponse<SimCardOrdersPost200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -259,7 +258,7 @@ public CreateSimCardOrderResponse simCardOrdersPost(SimCardOrderCreate simCardOr
0 Unexpected error -
*/ - public ApiResponse simCardOrdersPostWithHttpInfo(SimCardOrderCreate simCardOrderCreate) throws ApiException { + public ApiResponse simCardOrdersPostWithHttpInfo(SimCardOrderCreate simCardOrderCreate) throws ApiException { Object localVarPostBody = simCardOrderCreate; // verify the required parameter 'simCardOrderCreate' is set @@ -292,7 +291,7 @@ public ApiResponse simCardOrdersPostWithHttpInfo(Sim String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardOrdersApi.simCardOrdersPost", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -301,8 +300,8 @@ public ApiResponse simCardOrdersPostWithHttpInfo(Sim /** * Preview SIM card orders * Preview SIM card order purchases. - * @param createSimCardOrderPreview (optional) - * @return SIMCardOrdersPreviewResponse + * @param simCardOrdersPreviewRequest (optional) + * @return SimCardOrdersPreview202Response * @throws ApiException if fails to make API call * @http.response.details @@ -311,15 +310,15 @@ public ApiResponse simCardOrdersPostWithHttpInfo(Sim
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public SIMCardOrdersPreviewResponse simCardOrdersPreview(CreateSimCardOrderPreview createSimCardOrderPreview) throws ApiException { - return simCardOrdersPreviewWithHttpInfo(createSimCardOrderPreview).getData(); + public SimCardOrdersPreview202Response simCardOrdersPreview(SimCardOrdersPreviewRequest simCardOrdersPreviewRequest) throws ApiException { + return simCardOrdersPreviewWithHttpInfo(simCardOrdersPreviewRequest).getData(); } /** * Preview SIM card orders * Preview SIM card order purchases. - * @param createSimCardOrderPreview (optional) - * @return ApiResponse<SIMCardOrdersPreviewResponse> + * @param simCardOrdersPreviewRequest (optional) + * @return ApiResponse<SimCardOrdersPreview202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -328,8 +327,8 @@ public SIMCardOrdersPreviewResponse simCardOrdersPreview(CreateSimCardOrderPrevi
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse simCardOrdersPreviewWithHttpInfo(CreateSimCardOrderPreview createSimCardOrderPreview) throws ApiException { - Object localVarPostBody = createSimCardOrderPreview; + public ApiResponse simCardOrdersPreviewWithHttpInfo(SimCardOrdersPreviewRequest simCardOrdersPreviewRequest) throws ApiException { + Object localVarPostBody = simCardOrdersPreviewRequest; // create path and map variables String localVarPath = "/sim_card_order_preview"; @@ -356,7 +355,7 @@ public ApiResponse simCardOrdersPreviewWithHttpInf String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardOrdersApi.simCardOrdersPreview", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/SimCardsApi.java b/src/main/java/com/telnyx/sdk/api/SimCardsApi.java index beac1301..fa8febcb 100644 --- a/src/main/java/com/telnyx/sdk/api/SimCardsApi.java +++ b/src/main/java/com/telnyx/sdk/api/SimCardsApi.java @@ -8,34 +8,30 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.BulkSIMCardNetworkPreferenceResponse; -import com.telnyx.sdk.model.BulkUpdateSimNetworkPreference; -import com.telnyx.sdk.model.CreateSIMCardDataUsageNotificationRequest; -import com.telnyx.sdk.model.CreateSIMCardValidateRequest; -import com.telnyx.sdk.model.CreateSimCardDataUsageNotificationResponse; -import com.telnyx.sdk.model.DeleteSIMCardNetworkPreferenceResponse; -import com.telnyx.sdk.model.DeleteSimCardDataUsageNotificationResponse; -import com.telnyx.sdk.model.DeleteSimCardResponse; +import com.telnyx.sdk.model.BulkSIMCardNetworkPreferences202Response; +import com.telnyx.sdk.model.BulkSIMCardNetworkPreferencesRequest; +import com.telnyx.sdk.model.BulkSetPublicIPs202Response; +import com.telnyx.sdk.model.BulkSetPublicIPsRequest; import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.Errors; -import com.telnyx.sdk.model.GetSimCardDataUsageNotificationResponse; -import com.telnyx.sdk.model.GetSimCardResponse; -import com.telnyx.sdk.model.PUTSIMCardNetworkPreferenceResponse; -import com.telnyx.sdk.model.PutNetworkPreferenceRequest; -import com.telnyx.sdk.model.RegisterSimCardsResponse; +import com.telnyx.sdk.model.ListSimCardDataUsageNotifications200Response; +import com.telnyx.sdk.model.PostValidateRegistrationCodesRequest; import com.telnyx.sdk.model.SIMCard; -import com.telnyx.sdk.model.SIMCardActionResponse; -import com.telnyx.sdk.model.SIMCardNetworkPreferenceWithOTAUpdatesResponse; -import com.telnyx.sdk.model.SIMCardPublicIPResponse; +import com.telnyx.sdk.model.SIMCardDeviceDetailsGet200Response; +import com.telnyx.sdk.model.SIMCardNetworkPreferencesGet200Response; +import com.telnyx.sdk.model.SIMCardNetworkPreferencesPutRequest; +import com.telnyx.sdk.model.SIMCardPublicIPGet200Response; import com.telnyx.sdk.model.SIMCardRegistration; import com.telnyx.sdk.model.SIMCardRegistrationCodeValidations; -import com.telnyx.sdk.model.SearchSimCardsResponse; +import com.telnyx.sdk.model.SimCardActionGet200Response; import com.telnyx.sdk.model.SimCardDataUsageNotification; -import com.telnyx.sdk.model.SimCardDataUsageNotificationCollection; +import com.telnyx.sdk.model.SimCardDataUsageNotificationsPost201Response; +import com.telnyx.sdk.model.SimCardDataUsageNotificationsPostRequest; +import com.telnyx.sdk.model.SimCardGet200Response; +import com.telnyx.sdk.model.SimCardRegister202Response; +import com.telnyx.sdk.model.SimCardsGet200Response; import java.util.UUID; -import com.telnyx.sdk.model.UpdateSimCardDataUsageNotificationResponse; -import com.telnyx.sdk.model.UpdateSimCardResponse; -import com.telnyx.sdk.model.WirelessConnectivityLogCollectionResponse; +import com.telnyx.sdk.model.WirelessConnectivityLogsGet200Response; import java.util.ArrayList; import java.util.HashMap; @@ -75,8 +71,8 @@ public void setApiClient(ApiClient apiClient) { /** * Bulk Network Preferences for SIM cards * This API allows dispatching the same operation described for the PUT sim_cards/:sim_card_id/network_preferences API for multiple SIM cards at once.<br/><br/> Although, a SIM card network preference may fail individually under any validation triggered as a consequence of its state. For example, a SIM can't have an in-progress OTA update for applying a Network Preference, so they'll fail when requested in this API. In that scenario, the specific error will be present in the response along with the successful definitions in the \"errors\" response node. - * @param bulkUpdateSimNetworkPreference (optional) - * @return BulkSIMCardNetworkPreferenceResponse + * @param bulkSIMCardNetworkPreferencesRequest (optional) + * @return BulkSIMCardNetworkPreferences202Response * @throws ApiException if fails to make API call * @http.response.details @@ -85,15 +81,15 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public BulkSIMCardNetworkPreferenceResponse bulkSIMCardNetworkPreferences(BulkUpdateSimNetworkPreference bulkUpdateSimNetworkPreference) throws ApiException { - return bulkSIMCardNetworkPreferencesWithHttpInfo(bulkUpdateSimNetworkPreference).getData(); + public BulkSIMCardNetworkPreferences202Response bulkSIMCardNetworkPreferences(BulkSIMCardNetworkPreferencesRequest bulkSIMCardNetworkPreferencesRequest) throws ApiException { + return bulkSIMCardNetworkPreferencesWithHttpInfo(bulkSIMCardNetworkPreferencesRequest).getData(); } /** * Bulk Network Preferences for SIM cards * This API allows dispatching the same operation described for the PUT sim_cards/:sim_card_id/network_preferences API for multiple SIM cards at once.<br/><br/> Although, a SIM card network preference may fail individually under any validation triggered as a consequence of its state. For example, a SIM can't have an in-progress OTA update for applying a Network Preference, so they'll fail when requested in this API. In that scenario, the specific error will be present in the response along with the successful definitions in the \"errors\" response node. - * @param bulkUpdateSimNetworkPreference (optional) - * @return ApiResponse<BulkSIMCardNetworkPreferenceResponse> + * @param bulkSIMCardNetworkPreferencesRequest (optional) + * @return ApiResponse<BulkSIMCardNetworkPreferences202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -102,8 +98,8 @@ public BulkSIMCardNetworkPreferenceResponse bulkSIMCardNetworkPreferences(BulkUp
422 Unprocessable entity. Check the 'detail' field in response for details. -
*/ - public ApiResponse bulkSIMCardNetworkPreferencesWithHttpInfo(BulkUpdateSimNetworkPreference bulkUpdateSimNetworkPreference) throws ApiException { - Object localVarPostBody = bulkUpdateSimNetworkPreference; + public ApiResponse bulkSIMCardNetworkPreferencesWithHttpInfo(BulkSIMCardNetworkPreferencesRequest bulkSIMCardNetworkPreferencesRequest) throws ApiException { + Object localVarPostBody = bulkSIMCardNetworkPreferencesRequest; // create path and map variables String localVarPath = "/actions/network_preferences/sim_cards"; @@ -130,19 +126,155 @@ public ApiResponse bulkSIMCardNetworkPrefe String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.bulkSIMCardNetworkPreferences", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * Request bulk setting SIM card public IPs. + * This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards.<br/> For each SIM Card a SIM Card Action will be generated. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + * @param bulkSetPublicIPsRequest (optional) + * @return BulkSetPublicIPs202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
202 Successful Response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
+ */ + public BulkSetPublicIPs202Response bulkSetPublicIPs(BulkSetPublicIPsRequest bulkSetPublicIPsRequest) throws ApiException { + return bulkSetPublicIPsWithHttpInfo(bulkSetPublicIPsRequest).getData(); + } + + /** + * Request bulk setting SIM card public IPs. + * This API triggers an asynchronous operation to set a public IP for each of the specified SIM cards.<br/> For each SIM Card a SIM Card Action will be generated. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + * @param bulkSetPublicIPsRequest (optional) + * @return ApiResponse<BulkSetPublicIPs202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
202 Successful Response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
+ */ + public ApiResponse bulkSetPublicIPsWithHttpInfo(BulkSetPublicIPsRequest bulkSetPublicIPsRequest) throws ApiException { + Object localVarPostBody = bulkSetPublicIPsRequest; + + // create path and map variables + String localVarPath = "/sim_cards/actions/bulk_set_public_ips"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("SimCardsApi.bulkSetPublicIPs", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete network preferences for a SIM card + * This API deletes network preferences for a SIM card.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + * @param id Identifies the resource. (required) + * @return SimCardActionGet200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful Response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public SimCardActionGet200Response deleteNetworkPreference(UUID id) throws ApiException { + return deleteNetworkPreferenceWithHttpInfo(id).getData(); + } + + /** + * Delete network preferences for a SIM card + * This API deletes network preferences for a SIM card.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + * @param id Identifies the resource. (required) + * @return ApiResponse<SimCardActionGet200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful Response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse deleteNetworkPreferenceWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling deleteNetworkPreference"); + } + + // create path and map variables + String localVarPath = "/sim_cards/{id}/actions/delete_network_preferences" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("SimCardsApi.deleteNetworkPreference", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * List SIM card data usage notifications * Lists a paginated collection of SIM card data usage notifications. It enables exploring the collection using specific filters. * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterSimCardId A valid SIM card ID. (optional) - * @return SimCardDataUsageNotificationCollection + * @return ListSimCardDataUsageNotifications200Response * @throws ApiException if fails to make API call * @http.response.details @@ -151,7 +283,7 @@ public ApiResponse bulkSIMCardNetworkPrefe
0 Unexpected error -
*/ - public SimCardDataUsageNotificationCollection listSimCardDataUsageNotifications(Integer pageNumber, Integer pageSize, UUID filterSimCardId) throws ApiException { + public ListSimCardDataUsageNotifications200Response listSimCardDataUsageNotifications(Integer pageNumber, Integer pageSize, UUID filterSimCardId) throws ApiException { return listSimCardDataUsageNotificationsWithHttpInfo(pageNumber, pageSize, filterSimCardId).getData(); } @@ -161,7 +293,7 @@ public SimCardDataUsageNotificationCollection listSimCardDataUsageNotifications( * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterSimCardId A valid SIM card ID. (optional) - * @return ApiResponse<SimCardDataUsageNotificationCollection> + * @return ApiResponse<ListSimCardDataUsageNotifications200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -170,7 +302,7 @@ public SimCardDataUsageNotificationCollection listSimCardDataUsageNotifications(
0 Unexpected error -
*/ - public ApiResponse listSimCardDataUsageNotificationsWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterSimCardId) throws ApiException { + public ApiResponse listSimCardDataUsageNotificationsWithHttpInfo(Integer pageNumber, Integer pageSize, UUID filterSimCardId) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -201,7 +333,7 @@ public ApiResponse listSimCardDataUsageN String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.listSimCardDataUsageNotifications", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -210,7 +342,7 @@ public ApiResponse listSimCardDataUsageN /** * Validate SIM cards registration codes * It validates whether SIM card registration codes are valid or not. - * @param createSIMCardValidateRequest (required) + * @param postValidateRegistrationCodesRequest (required) * @return SIMCardRegistrationCodeValidations * @throws ApiException if fails to make API call * @http.response.details @@ -220,14 +352,14 @@ public ApiResponse listSimCardDataUsageN 0 Unexpected error - */ - public SIMCardRegistrationCodeValidations postValidateRegistrationCodes(CreateSIMCardValidateRequest createSIMCardValidateRequest) throws ApiException { - return postValidateRegistrationCodesWithHttpInfo(createSIMCardValidateRequest).getData(); + public SIMCardRegistrationCodeValidations postValidateRegistrationCodes(PostValidateRegistrationCodesRequest postValidateRegistrationCodesRequest) throws ApiException { + return postValidateRegistrationCodesWithHttpInfo(postValidateRegistrationCodesRequest).getData(); } /** * Validate SIM cards registration codes * It validates whether SIM card registration codes are valid or not. - * @param createSIMCardValidateRequest (required) + * @param postValidateRegistrationCodesRequest (required) * @return ApiResponse<SIMCardRegistrationCodeValidations> * @throws ApiException if fails to make API call * @http.response.details @@ -237,12 +369,12 @@ public SIMCardRegistrationCodeValidations postValidateRegistrationCodes(CreateSI 0 Unexpected error - */ - public ApiResponse postValidateRegistrationCodesWithHttpInfo(CreateSIMCardValidateRequest createSIMCardValidateRequest) throws ApiException { - Object localVarPostBody = createSIMCardValidateRequest; + public ApiResponse postValidateRegistrationCodesWithHttpInfo(PostValidateRegistrationCodesRequest postValidateRegistrationCodesRequest) throws ApiException { + Object localVarPostBody = postValidateRegistrationCodesRequest; - // verify the required parameter 'createSIMCardValidateRequest' is set - if (createSIMCardValidateRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createSIMCardValidateRequest' when calling postValidateRegistrationCodes"); + // verify the required parameter 'postValidateRegistrationCodesRequest' is set + if (postValidateRegistrationCodesRequest == null) { + throw new ApiException(400, "Missing the required parameter 'postValidateRegistrationCodesRequest' when calling postValidateRegistrationCodes"); } // create path and map variables @@ -280,7 +412,7 @@ public ApiResponse postValidateRegistrationC * Request removing a SIM card public IP * This API removes an existing public IP from a SIM card. <br/><br/> The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return SIMCardActionResponse + * @return SimCardActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -289,7 +421,7 @@ public ApiResponse postValidateRegistrationC
0 Unexpected error -
*/ - public SIMCardActionResponse removeSIMCardPublicIP(UUID id) throws ApiException { + public SimCardActionGet200Response removeSIMCardPublicIP(UUID id) throws ApiException { return removeSIMCardPublicIPWithHttpInfo(id).getData(); } @@ -297,7 +429,7 @@ public SIMCardActionResponse removeSIMCardPublicIP(UUID id) throws ApiException * Request removing a SIM card public IP * This API removes an existing public IP from a SIM card. <br/><br/> The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardActionResponse> + * @return ApiResponse<SimCardActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -306,7 +438,7 @@ public SIMCardActionResponse removeSIMCardPublicIP(UUID id) throws ApiException
0 Unexpected error -
*/ - public ApiResponse removeSIMCardPublicIPWithHttpInfo(UUID id) throws ApiException { + public ApiResponse removeSIMCardPublicIPWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -340,17 +472,87 @@ public ApiResponse removeSIMCardPublicIPWithHttpInfo(UUID String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.removeSIMCardPublicIP", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * Get SIM card device details + * It returns the device details where a SIM card is currently being used. + * @param simCardId Identifies a SIM card. (required) + * @return SIMCardDeviceDetailsGet200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public SIMCardDeviceDetailsGet200Response sIMCardDeviceDetailsGet(UUID simCardId) throws ApiException { + return sIMCardDeviceDetailsGetWithHttpInfo(simCardId).getData(); + } + + /** + * Get SIM card device details + * It returns the device details where a SIM card is currently being used. + * @param simCardId Identifies a SIM card. (required) + * @return ApiResponse<SIMCardDeviceDetailsGet200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse sIMCardDeviceDetailsGetWithHttpInfo(UUID simCardId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'simCardId' is set + if (simCardId == null) { + throw new ApiException(400, "Missing the required parameter 'simCardId' when calling sIMCardDeviceDetailsGet"); + } + + // create path and map variables + String localVarPath = "/sim_cards/{sim_card_id}/device_details" + .replaceAll("\\{" + "sim_card_id" + "\\}", apiClient.escapeString(simCardId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("SimCardsApi.sIMCardDeviceDetailsGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * DELETE network preferences * This API asynchronously removes the custom-defined network preferences settings. After this operation is done the Telnyx default settings, the same applied for an unaltered SIM card, will be in place. * @param simCardId Identifies a SIM card. (required) - * @return DeleteSIMCardNetworkPreferenceResponse + * @return SIMCardNetworkPreferencesGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -359,7 +561,7 @@ public ApiResponse removeSIMCardPublicIPWithHttpInfo(UUID
0 Unexpected error -
*/ - public DeleteSIMCardNetworkPreferenceResponse sIMCardNetworkPreferencesDelete(UUID simCardId) throws ApiException { + public SIMCardNetworkPreferencesGet200Response sIMCardNetworkPreferencesDelete(UUID simCardId) throws ApiException { return sIMCardNetworkPreferencesDeleteWithHttpInfo(simCardId).getData(); } @@ -367,7 +569,7 @@ public DeleteSIMCardNetworkPreferenceResponse sIMCardNetworkPreferencesDelete(UU * DELETE network preferences * This API asynchronously removes the custom-defined network preferences settings. After this operation is done the Telnyx default settings, the same applied for an unaltered SIM card, will be in place. * @param simCardId Identifies a SIM card. (required) - * @return ApiResponse<DeleteSIMCardNetworkPreferenceResponse> + * @return ApiResponse<SIMCardNetworkPreferencesGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -376,7 +578,7 @@ public DeleteSIMCardNetworkPreferenceResponse sIMCardNetworkPreferencesDelete(UU
0 Unexpected error -
*/ - public ApiResponse sIMCardNetworkPreferencesDeleteWithHttpInfo(UUID simCardId) throws ApiException { + public ApiResponse sIMCardNetworkPreferencesDeleteWithHttpInfo(UUID simCardId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'simCardId' is set @@ -410,7 +612,7 @@ public ApiResponse sIMCardNetworkPrefere String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.sIMCardNetworkPreferencesDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -421,7 +623,7 @@ public ApiResponse sIMCardNetworkPrefere * It returns the network preferences currently applied in the SIM card. * @param simCardId Identifies a SIM card. (required) * @param includeOtaUpdates It includes the associated OTA update objects in the response when present. (optional, default to false) - * @return SIMCardNetworkPreferenceWithOTAUpdatesResponse + * @return SIMCardNetworkPreferencesGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -430,7 +632,7 @@ public ApiResponse sIMCardNetworkPrefere
0 Unexpected error -
*/ - public SIMCardNetworkPreferenceWithOTAUpdatesResponse sIMCardNetworkPreferencesGet(UUID simCardId, Boolean includeOtaUpdates) throws ApiException { + public SIMCardNetworkPreferencesGet200Response sIMCardNetworkPreferencesGet(UUID simCardId, Boolean includeOtaUpdates) throws ApiException { return sIMCardNetworkPreferencesGetWithHttpInfo(simCardId, includeOtaUpdates).getData(); } @@ -439,7 +641,7 @@ public SIMCardNetworkPreferenceWithOTAUpdatesResponse sIMCardNetworkPreferencesG * It returns the network preferences currently applied in the SIM card. * @param simCardId Identifies a SIM card. (required) * @param includeOtaUpdates It includes the associated OTA update objects in the response when present. (optional, default to false) - * @return ApiResponse<SIMCardNetworkPreferenceWithOTAUpdatesResponse> + * @return ApiResponse<SIMCardNetworkPreferencesGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -448,7 +650,7 @@ public SIMCardNetworkPreferenceWithOTAUpdatesResponse sIMCardNetworkPreferencesG
0 Unexpected error -
*/ - public ApiResponse sIMCardNetworkPreferencesGetWithHttpInfo(UUID simCardId, Boolean includeOtaUpdates) throws ApiException { + public ApiResponse sIMCardNetworkPreferencesGetWithHttpInfo(UUID simCardId, Boolean includeOtaUpdates) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'simCardId' is set @@ -483,7 +685,7 @@ public ApiResponse sIMCardNetwor String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.sIMCardNetworkPreferencesGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -493,8 +695,8 @@ public ApiResponse sIMCardNetwor * Set network preferences * This API allows setting or updating a SIM card network preference. <br/><br/> Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.<br/><br/> There can be multiple scenarios where an operator can be preferred over another, for example, when a specific mobile operator can provide better network latency or better pricing. * @param simCardId Identifies a SIM card. (required) - * @param putNetworkPreferenceRequest (optional) - * @return PUTSIMCardNetworkPreferenceResponse + * @param siMCardNetworkPreferencesPutRequest (optional) + * @return SIMCardNetworkPreferencesGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -503,16 +705,16 @@ public ApiResponse sIMCardNetwor
0 Unexpected error -
*/ - public PUTSIMCardNetworkPreferenceResponse sIMCardNetworkPreferencesPut(UUID simCardId, PutNetworkPreferenceRequest putNetworkPreferenceRequest) throws ApiException { - return sIMCardNetworkPreferencesPutWithHttpInfo(simCardId, putNetworkPreferenceRequest).getData(); + public SIMCardNetworkPreferencesGet200Response sIMCardNetworkPreferencesPut(UUID simCardId, SIMCardNetworkPreferencesPutRequest siMCardNetworkPreferencesPutRequest) throws ApiException { + return sIMCardNetworkPreferencesPutWithHttpInfo(simCardId, siMCardNetworkPreferencesPutRequest).getData(); } /** * Set network preferences * This API allows setting or updating a SIM card network preference. <br/><br/> Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.<br/><br/> There can be multiple scenarios where an operator can be preferred over another, for example, when a specific mobile operator can provide better network latency or better pricing. * @param simCardId Identifies a SIM card. (required) - * @param putNetworkPreferenceRequest (optional) - * @return ApiResponse<PUTSIMCardNetworkPreferenceResponse> + * @param siMCardNetworkPreferencesPutRequest (optional) + * @return ApiResponse<SIMCardNetworkPreferencesGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -521,8 +723,8 @@ public PUTSIMCardNetworkPreferenceResponse sIMCardNetworkPreferencesPut(UUID sim
0 Unexpected error -
*/ - public ApiResponse sIMCardNetworkPreferencesPutWithHttpInfo(UUID simCardId, PutNetworkPreferenceRequest putNetworkPreferenceRequest) throws ApiException { - Object localVarPostBody = putNetworkPreferenceRequest; + public ApiResponse sIMCardNetworkPreferencesPutWithHttpInfo(UUID simCardId, SIMCardNetworkPreferencesPutRequest siMCardNetworkPreferencesPutRequest) throws ApiException { + Object localVarPostBody = siMCardNetworkPreferencesPutRequest; // verify the required parameter 'simCardId' is set if (simCardId == null) { @@ -555,7 +757,7 @@ public ApiResponse sIMCardNetworkPreference String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.sIMCardNetworkPreferencesPut", localVarPath, "PUT", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -565,7 +767,7 @@ public ApiResponse sIMCardNetworkPreference * Get SIM card public IP definition * It returns the public IP requested for a SIM card. * @param simCardId Identifies a SIM card. (required) - * @return SIMCardPublicIPResponse + * @return SIMCardPublicIPGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -574,7 +776,7 @@ public ApiResponse sIMCardNetworkPreference
0 Unexpected error -
*/ - public SIMCardPublicIPResponse sIMCardPublicIPGet(UUID simCardId) throws ApiException { + public SIMCardPublicIPGet200Response sIMCardPublicIPGet(UUID simCardId) throws ApiException { return sIMCardPublicIPGetWithHttpInfo(simCardId).getData(); } @@ -582,7 +784,7 @@ public SIMCardPublicIPResponse sIMCardPublicIPGet(UUID simCardId) throws ApiExce * Get SIM card public IP definition * It returns the public IP requested for a SIM card. * @param simCardId Identifies a SIM card. (required) - * @return ApiResponse<SIMCardPublicIPResponse> + * @return ApiResponse<SIMCardPublicIPGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -591,7 +793,7 @@ public SIMCardPublicIPResponse sIMCardPublicIPGet(UUID simCardId) throws ApiExce
0 Unexpected error -
*/ - public ApiResponse sIMCardPublicIPGetWithHttpInfo(UUID simCardId) throws ApiException { + public ApiResponse sIMCardPublicIPGetWithHttpInfo(UUID simCardId) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'simCardId' is set @@ -625,17 +827,89 @@ public ApiResponse sIMCardPublicIPGetWithHttpInfo(UUID String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.sIMCardPublicIPGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, localVarAuthNames, localVarReturnType, false); } + /** + * Create or update network preferences for a SIM card + * This API sets network preferences for a SIM card.<br/> Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.<br/><br/> The SIM card needs to be attached to the network so this can connect and SMS must be available, otherwise, the operation will fail. This preference will only be respected if the network is available, otherwise the strongest signal will be used. <br/><br/> The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + * @param id Identifies the resource. (required) + * @return SimCardActionGet200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful Response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public SimCardActionGet200Response setNetworkPreference(UUID id) throws ApiException { + return setNetworkPreferenceWithHttpInfo(id).getData(); + } + + /** + * Create or update network preferences for a SIM card + * This API sets network preferences for a SIM card.<br/> Every SIM card has default network preferences defined on Telnyx. These preferences will determine how a SIMCard will connect to the network by considering a list of preferable operators.<br/><br/> The SIM card needs to be attached to the network so this can connect and SMS must be available, otherwise, the operation will fail. This preference will only be respected if the network is available, otherwise the strongest signal will be used. <br/><br/> The API will trigger an asynchronous operation called a SIM Card Action. Creating network preferences may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developersdev.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. + * @param id Identifies the resource. (required) + * @return ApiResponse<SimCardActionGet200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful Response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse setNetworkPreferenceWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling setNetworkPreference"); + } + + // create path and map variables + String localVarPath = "/sim_cards/{id}/actions/set_network_preferences" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("SimCardsApi.setNetworkPreference", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } /** * Request setting a SIM card public IP * This API makes a SIM card reachable on the public internet by mapping a random public IP to the SIM card. <br/><br/> The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. <br/><br/> Setting a Public IP to a SIM Card incurs a charge and will only succeed if the account has sufficient funds. * @param id Identifies the resource. (required) - * @return SIMCardActionResponse + * @return SimCardActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -644,7 +918,7 @@ public ApiResponse sIMCardPublicIPGetWithHttpInfo(UUID
0 Unexpected error -
*/ - public SIMCardActionResponse setSIMCardPublicIP(UUID id) throws ApiException { + public SimCardActionGet200Response setSIMCardPublicIP(UUID id) throws ApiException { return setSIMCardPublicIPWithHttpInfo(id).getData(); } @@ -652,7 +926,7 @@ public SIMCardActionResponse setSIMCardPublicIP(UUID id) throws ApiException { * Request setting a SIM card public IP * This API makes a SIM card reachable on the public internet by mapping a random public IP to the SIM card. <br/><br/> The API will trigger an asynchronous operation called a SIM Card Action. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. <br/><br/> Setting a Public IP to a SIM Card incurs a charge and will only succeed if the account has sufficient funds. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardActionResponse> + * @return ApiResponse<SimCardActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -661,7 +935,7 @@ public SIMCardActionResponse setSIMCardPublicIP(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse setSIMCardPublicIPWithHttpInfo(UUID id) throws ApiException { + public ApiResponse setSIMCardPublicIPWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -695,7 +969,7 @@ public ApiResponse setSIMCardPublicIPWithHttpInfo(UUID id String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.setSIMCardPublicIP", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -705,7 +979,7 @@ public ApiResponse setSIMCardPublicIPWithHttpInfo(UUID id * Delete SIM card data usage notifications * Delete the SIM Card Data Usage Notification. * @param id Identifies the resource. (required) - * @return DeleteSimCardDataUsageNotificationResponse + * @return SimCardDataUsageNotificationsPost201Response * @throws ApiException if fails to make API call * @http.response.details @@ -714,7 +988,7 @@ public ApiResponse setSIMCardPublicIPWithHttpInfo(UUID id
0 Unexpected error -
*/ - public DeleteSimCardDataUsageNotificationResponse simCardDataUsageNotificationsDelete(UUID id) throws ApiException { + public SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsDelete(UUID id) throws ApiException { return simCardDataUsageNotificationsDeleteWithHttpInfo(id).getData(); } @@ -722,7 +996,7 @@ public DeleteSimCardDataUsageNotificationResponse simCardDataUsageNotificationsD * Delete SIM card data usage notifications * Delete the SIM Card Data Usage Notification. * @param id Identifies the resource. (required) - * @return ApiResponse<DeleteSimCardDataUsageNotificationResponse> + * @return ApiResponse<SimCardDataUsageNotificationsPost201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -731,7 +1005,7 @@ public DeleteSimCardDataUsageNotificationResponse simCardDataUsageNotificationsD
0 Unexpected error -
*/ - public ApiResponse simCardDataUsageNotificationsDeleteWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardDataUsageNotificationsDeleteWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -765,7 +1039,7 @@ public ApiResponse simCardDataUsageN String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardDataUsageNotificationsDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -775,7 +1049,7 @@ public ApiResponse simCardDataUsageN * Get a single SIM card data usage notification * Get a single SIM Card Data Usage Notification. * @param id Identifies the resource. (required) - * @return GetSimCardDataUsageNotificationResponse + * @return SimCardDataUsageNotificationsPost201Response * @throws ApiException if fails to make API call * @http.response.details @@ -785,7 +1059,7 @@ public ApiResponse simCardDataUsageN
0 Unexpected error -
*/ - public GetSimCardDataUsageNotificationResponse simCardDataUsageNotificationsGet(UUID id) throws ApiException { + public SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsGet(UUID id) throws ApiException { return simCardDataUsageNotificationsGetWithHttpInfo(id).getData(); } @@ -793,7 +1067,7 @@ public GetSimCardDataUsageNotificationResponse simCardDataUsageNotificationsGet( * Get a single SIM card data usage notification * Get a single SIM Card Data Usage Notification. * @param id Identifies the resource. (required) - * @return ApiResponse<GetSimCardDataUsageNotificationResponse> + * @return ApiResponse<SimCardDataUsageNotificationsPost201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -803,7 +1077,7 @@ public GetSimCardDataUsageNotificationResponse simCardDataUsageNotificationsGet(
0 Unexpected error -
*/ - public ApiResponse simCardDataUsageNotificationsGetWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardDataUsageNotificationsGetWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -837,7 +1111,7 @@ public ApiResponse simCardDataUsageNoti String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardDataUsageNotificationsGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -848,7 +1122,7 @@ public ApiResponse simCardDataUsageNoti * Updates information for a SIM Card Data Usage Notification. * @param id Identifies the resource. (required) * @param simCardDataUsageNotification (required) - * @return UpdateSimCardDataUsageNotificationResponse + * @return SimCardDataUsageNotificationsPost201Response * @throws ApiException if fails to make API call * @http.response.details @@ -857,7 +1131,7 @@ public ApiResponse simCardDataUsageNoti
0 Unexpected error -
*/ - public UpdateSimCardDataUsageNotificationResponse simCardDataUsageNotificationsPatch(UUID id, SimCardDataUsageNotification simCardDataUsageNotification) throws ApiException { + public SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsPatch(UUID id, SimCardDataUsageNotification simCardDataUsageNotification) throws ApiException { return simCardDataUsageNotificationsPatchWithHttpInfo(id, simCardDataUsageNotification).getData(); } @@ -866,7 +1140,7 @@ public UpdateSimCardDataUsageNotificationResponse simCardDataUsageNotificationsP * Updates information for a SIM Card Data Usage Notification. * @param id Identifies the resource. (required) * @param simCardDataUsageNotification (required) - * @return ApiResponse<UpdateSimCardDataUsageNotificationResponse> + * @return ApiResponse<SimCardDataUsageNotificationsPost201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -875,7 +1149,7 @@ public UpdateSimCardDataUsageNotificationResponse simCardDataUsageNotificationsP
0 Unexpected error -
*/ - public ApiResponse simCardDataUsageNotificationsPatchWithHttpInfo(UUID id, SimCardDataUsageNotification simCardDataUsageNotification) throws ApiException { + public ApiResponse simCardDataUsageNotificationsPatchWithHttpInfo(UUID id, SimCardDataUsageNotification simCardDataUsageNotification) throws ApiException { Object localVarPostBody = simCardDataUsageNotification; // verify the required parameter 'id' is set @@ -914,7 +1188,7 @@ public ApiResponse simCardDataUsageN String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardDataUsageNotificationsPatch", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -923,8 +1197,8 @@ public ApiResponse simCardDataUsageN /** * Create a new SIM card data usage notification * Creates a new SIM card data usage notification. - * @param createSIMCardDataUsageNotificationRequest (required) - * @return CreateSimCardDataUsageNotificationResponse + * @param simCardDataUsageNotificationsPostRequest (required) + * @return SimCardDataUsageNotificationsPost201Response * @throws ApiException if fails to make API call * @http.response.details @@ -933,15 +1207,15 @@ public ApiResponse simCardDataUsageN
0 Unexpected error -
*/ - public CreateSimCardDataUsageNotificationResponse simCardDataUsageNotificationsPost(CreateSIMCardDataUsageNotificationRequest createSIMCardDataUsageNotificationRequest) throws ApiException { - return simCardDataUsageNotificationsPostWithHttpInfo(createSIMCardDataUsageNotificationRequest).getData(); + public SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsPost(SimCardDataUsageNotificationsPostRequest simCardDataUsageNotificationsPostRequest) throws ApiException { + return simCardDataUsageNotificationsPostWithHttpInfo(simCardDataUsageNotificationsPostRequest).getData(); } /** * Create a new SIM card data usage notification * Creates a new SIM card data usage notification. - * @param createSIMCardDataUsageNotificationRequest (required) - * @return ApiResponse<CreateSimCardDataUsageNotificationResponse> + * @param simCardDataUsageNotificationsPostRequest (required) + * @return ApiResponse<SimCardDataUsageNotificationsPost201Response> * @throws ApiException if fails to make API call * @http.response.details @@ -950,12 +1224,12 @@ public CreateSimCardDataUsageNotificationResponse simCardDataUsageNotificationsP
0 Unexpected error -
*/ - public ApiResponse simCardDataUsageNotificationsPostWithHttpInfo(CreateSIMCardDataUsageNotificationRequest createSIMCardDataUsageNotificationRequest) throws ApiException { - Object localVarPostBody = createSIMCardDataUsageNotificationRequest; + public ApiResponse simCardDataUsageNotificationsPostWithHttpInfo(SimCardDataUsageNotificationsPostRequest simCardDataUsageNotificationsPostRequest) throws ApiException { + Object localVarPostBody = simCardDataUsageNotificationsPostRequest; - // verify the required parameter 'createSIMCardDataUsageNotificationRequest' is set - if (createSIMCardDataUsageNotificationRequest == null) { - throw new ApiException(400, "Missing the required parameter 'createSIMCardDataUsageNotificationRequest' when calling simCardDataUsageNotificationsPost"); + // verify the required parameter 'simCardDataUsageNotificationsPostRequest' is set + if (simCardDataUsageNotificationsPostRequest == null) { + throw new ApiException(400, "Missing the required parameter 'simCardDataUsageNotificationsPostRequest' when calling simCardDataUsageNotificationsPost"); } // create path and map variables @@ -983,7 +1257,7 @@ public ApiResponse simCardDataUsageN String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardDataUsageNotificationsPost", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -993,7 +1267,7 @@ public ApiResponse simCardDataUsageN * Deletes a SIM card * The SIM card will be decommissioned, removed from your account and you will stop being charged.<br />The SIM card won't be able to connect to the network after the deletion is completed, thus making it impossible to consume data.<br/> Transitioning to the disabled state may take a period of time.</br> Until the transition is completed, the SIM card status will be disabling <code>disabling</code>.<br />In order to re-enable the SIM card, you will need to re-register it. * @param id Identifies the resource. (required) - * @return DeleteSimCardResponse + * @return SimCardGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1002,7 +1276,7 @@ public ApiResponse simCardDataUsageN
0 Unexpected error -
*/ - public DeleteSimCardResponse simCardDelete(UUID id) throws ApiException { + public SimCardGet200Response simCardDelete(UUID id) throws ApiException { return simCardDeleteWithHttpInfo(id).getData(); } @@ -1010,7 +1284,7 @@ public DeleteSimCardResponse simCardDelete(UUID id) throws ApiException { * Deletes a SIM card * The SIM card will be decommissioned, removed from your account and you will stop being charged.<br />The SIM card won't be able to connect to the network after the deletion is completed, thus making it impossible to consume data.<br/> Transitioning to the disabled state may take a period of time.</br> Until the transition is completed, the SIM card status will be disabling <code>disabling</code>.<br />In order to re-enable the SIM card, you will need to re-register it. * @param id Identifies the resource. (required) - * @return ApiResponse<DeleteSimCardResponse> + * @return ApiResponse<SimCardGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1019,7 +1293,7 @@ public DeleteSimCardResponse simCardDelete(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse simCardDeleteWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardDeleteWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1053,7 +1327,7 @@ public ApiResponse simCardDeleteWithHttpInfo(UUID id) thr String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1063,7 +1337,7 @@ public ApiResponse simCardDeleteWithHttpInfo(UUID id) thr * Request a SIM card disable * This API disables a SIM card, disconnecting it from the network and making it impossible to consume data.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the disabled state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return SIMCardActionResponse + * @return SimCardActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1072,7 +1346,7 @@ public ApiResponse simCardDeleteWithHttpInfo(UUID id) thr
0 Unexpected error -
*/ - public SIMCardActionResponse simCardDisable(UUID id) throws ApiException { + public SimCardActionGet200Response simCardDisable(UUID id) throws ApiException { return simCardDisableWithHttpInfo(id).getData(); } @@ -1080,7 +1354,7 @@ public SIMCardActionResponse simCardDisable(UUID id) throws ApiException { * Request a SIM card disable * This API disables a SIM card, disconnecting it from the network and making it impossible to consume data.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the disabled state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardActionResponse> + * @return ApiResponse<SimCardActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1089,7 +1363,7 @@ public SIMCardActionResponse simCardDisable(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse simCardDisableWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardDisableWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1123,7 +1397,7 @@ public ApiResponse simCardDisableWithHttpInfo(UUID id) th String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardDisable", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1133,7 +1407,7 @@ public ApiResponse simCardDisableWithHttpInfo(UUID id) th * Request a SIM card enable * This API enables a SIM card, connecting it to the network and making it possible to consume data.<br/> To enable a SIM card, it must be associated with a SIM card group.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the enabled state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return SIMCardActionResponse + * @return SimCardActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1143,7 +1417,7 @@ public ApiResponse simCardDisableWithHttpInfo(UUID id) th
0 Unexpected error -
*/ - public SIMCardActionResponse simCardEnable(UUID id) throws ApiException { + public SimCardActionGet200Response simCardEnable(UUID id) throws ApiException { return simCardEnableWithHttpInfo(id).getData(); } @@ -1151,7 +1425,7 @@ public SIMCardActionResponse simCardEnable(UUID id) throws ApiException { * Request a SIM card enable * This API enables a SIM card, connecting it to the network and making it possible to consume data.<br/> To enable a SIM card, it must be associated with a SIM card group.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the enabled state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardActionResponse> + * @return ApiResponse<SimCardActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1161,7 +1435,7 @@ public SIMCardActionResponse simCardEnable(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse simCardEnableWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardEnableWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1195,7 +1469,7 @@ public ApiResponse simCardEnableWithHttpInfo(UUID id) thr String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardEnable", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1206,7 +1480,7 @@ public ApiResponse simCardEnableWithHttpInfo(UUID id) thr * Returns the details regarding a specific SIM card. * @param id Identifies the resource. (required) * @param includeSimCardGroup It includes the associated SIM card group object in the response when present. (optional, default to false) - * @return GetSimCardResponse + * @return SimCardGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1215,7 +1489,7 @@ public ApiResponse simCardEnableWithHttpInfo(UUID id) thr
0 Unexpected error -
*/ - public GetSimCardResponse simCardGet(UUID id, Boolean includeSimCardGroup) throws ApiException { + public SimCardGet200Response simCardGet(UUID id, Boolean includeSimCardGroup) throws ApiException { return simCardGetWithHttpInfo(id, includeSimCardGroup).getData(); } @@ -1224,7 +1498,7 @@ public GetSimCardResponse simCardGet(UUID id, Boolean includeSimCardGroup) throw * Returns the details regarding a specific SIM card. * @param id Identifies the resource. (required) * @param includeSimCardGroup It includes the associated SIM card group object in the response when present. (optional, default to false) - * @return ApiResponse<GetSimCardResponse> + * @return ApiResponse<SimCardGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1233,7 +1507,7 @@ public GetSimCardResponse simCardGet(UUID id, Boolean includeSimCardGroup) throw
0 Unexpected error -
*/ - public ApiResponse simCardGetWithHttpInfo(UUID id, Boolean includeSimCardGroup) throws ApiException { + public ApiResponse simCardGetWithHttpInfo(UUID id, Boolean includeSimCardGroup) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1268,7 +1542,7 @@ public ApiResponse simCardGetWithHttpInfo(UUID id, Boolean i String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1278,7 +1552,7 @@ public ApiResponse simCardGetWithHttpInfo(UUID id, Boolean i * Register SIM cards * Register the SIM cards associated with the provided registration codes to the current user's account.<br/><br/> If <code>sim_card_group_id</code> is provided, the SIM cards will be associated with that group. Otherwise, the default group for the current user will be used.<br/><br/> * @param siMCardRegistration (required) - * @return RegisterSimCardsResponse + * @return SimCardRegister202Response * @throws ApiException if fails to make API call * @http.response.details @@ -1286,7 +1560,7 @@ public ApiResponse simCardGetWithHttpInfo(UUID id, Boolean i
202 Successful response -
*/ - public RegisterSimCardsResponse simCardRegister(SIMCardRegistration siMCardRegistration) throws ApiException { + public SimCardRegister202Response simCardRegister(SIMCardRegistration siMCardRegistration) throws ApiException { return simCardRegisterWithHttpInfo(siMCardRegistration).getData(); } @@ -1294,7 +1568,7 @@ public RegisterSimCardsResponse simCardRegister(SIMCardRegistration siMCardRegis * Register SIM cards * Register the SIM cards associated with the provided registration codes to the current user's account.<br/><br/> If <code>sim_card_group_id</code> is provided, the SIM cards will be associated with that group. Otherwise, the default group for the current user will be used.<br/><br/> * @param siMCardRegistration (required) - * @return ApiResponse<RegisterSimCardsResponse> + * @return ApiResponse<SimCardRegister202Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1302,7 +1576,7 @@ public RegisterSimCardsResponse simCardRegister(SIMCardRegistration siMCardRegis
202 Successful response -
*/ - public ApiResponse simCardRegisterWithHttpInfo(SIMCardRegistration siMCardRegistration) throws ApiException { + public ApiResponse simCardRegisterWithHttpInfo(SIMCardRegistration siMCardRegistration) throws ApiException { Object localVarPostBody = siMCardRegistration; // verify the required parameter 'siMCardRegistration' is set @@ -1335,7 +1609,7 @@ public ApiResponse simCardRegisterWithHttpInfo(SIMCard String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardRegister", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1345,7 +1619,7 @@ public ApiResponse simCardRegisterWithHttpInfo(SIMCard * Request setting a SIM card to standby * The SIM card will be able to connect to the network once the process to set it to standby has been completed, thus making it possible to consume data.<br/> To set a SIM card to standby, it must be associated with SIM card group.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the standby state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return SIMCardActionResponse + * @return SimCardActionGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1354,7 +1628,7 @@ public ApiResponse simCardRegisterWithHttpInfo(SIMCard
0 Unexpected error -
*/ - public SIMCardActionResponse simCardSetStandby(UUID id) throws ApiException { + public SimCardActionGet200Response simCardSetStandby(UUID id) throws ApiException { return simCardSetStandbyWithHttpInfo(id).getData(); } @@ -1362,7 +1636,7 @@ public SIMCardActionResponse simCardSetStandby(UUID id) throws ApiException { * Request setting a SIM card to standby * The SIM card will be able to connect to the network once the process to set it to standby has been completed, thus making it possible to consume data.<br/> To set a SIM card to standby, it must be associated with SIM card group.<br/> The API will trigger an asynchronous operation called a SIM Card Action. Transitioning to the standby state may take a period of time. The status of the SIM Card Action can be followed through the [List SIM Card Action](https://developers.telnyx.com/docs/api/v2/wireless/SIM-Card-Actions#ListSIMCardActions) API. * @param id Identifies the resource. (required) - * @return ApiResponse<SIMCardActionResponse> + * @return ApiResponse<SimCardActionGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1371,7 +1645,7 @@ public SIMCardActionResponse simCardSetStandby(UUID id) throws ApiException {
0 Unexpected error -
*/ - public ApiResponse simCardSetStandbyWithHttpInfo(UUID id) throws ApiException { + public ApiResponse simCardSetStandbyWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -1405,7 +1679,7 @@ public ApiResponse simCardSetStandbyWithHttpInfo(UUID id) String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardSetStandby", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1416,7 +1690,7 @@ public ApiResponse simCardSetStandbyWithHttpInfo(UUID id) * Updates SIM card data * @param id Identifies the resource. (required) * @param siMCard (required) - * @return UpdateSimCardResponse + * @return SimCardGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1425,7 +1699,7 @@ public ApiResponse simCardSetStandbyWithHttpInfo(UUID id)
0 Unexpected error -
*/ - public UpdateSimCardResponse simCardUpdate(UUID id, SIMCard siMCard) throws ApiException { + public SimCardGet200Response simCardUpdate(UUID id, SIMCard siMCard) throws ApiException { return simCardUpdateWithHttpInfo(id, siMCard).getData(); } @@ -1434,7 +1708,7 @@ public UpdateSimCardResponse simCardUpdate(UUID id, SIMCard siMCard) throws ApiE * Updates SIM card data * @param id Identifies the resource. (required) * @param siMCard (required) - * @return ApiResponse<UpdateSimCardResponse> + * @return ApiResponse<SimCardGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1443,7 +1717,7 @@ public UpdateSimCardResponse simCardUpdate(UUID id, SIMCard siMCard) throws ApiE
0 Unexpected error -
*/ - public ApiResponse simCardUpdateWithHttpInfo(UUID id, SIMCard siMCard) throws ApiException { + public ApiResponse simCardUpdateWithHttpInfo(UUID id, SIMCard siMCard) throws ApiException { Object localVarPostBody = siMCard; // verify the required parameter 'id' is set @@ -1482,7 +1756,7 @@ public ApiResponse simCardUpdateWithHttpInfo(UUID id, SIM String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardUpdate", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1497,7 +1771,8 @@ public ApiResponse simCardUpdateWithHttpInfo(UUID id, SIM * @param filterSimCardGroupId A valid SIM card group ID. (optional) * @param filterTags A list of SIM card tags to filter on.<br/><br/> If the SIM card contains <b><i>all</i></b> of the given <code>tags</code> they will be found.<br/><br/> For example, if the SIM cards have the following tags: <ul> <li><code>['customers', 'staff', 'test']</code> <li><code>['test']</code></li> <li><code>['customers']</code></li> </ul> Searching for <code>['customers', 'test']</code> returns only the first because it's the only one with both tags.<br/> Searching for <code>test</code> returns the first two SIMs, because both of them have such tag.<br/> Searching for <code>customers</code> returns the first and last SIMs.<br/> (optional) * @param filterIccid A search string to partially match for the SIM card's ICCID. (optional) - * @return SearchSimCardsResponse + * @param filterStatus Filter by a SIM card's status. (optional) + * @return SimCardsGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1506,8 +1781,8 @@ public ApiResponse simCardUpdateWithHttpInfo(UUID id, SIM
0 Unexpected error -
*/ - public SearchSimCardsResponse simCardsGet(Integer pageNumber, Integer pageSize, Boolean includeSimCardGroup, UUID filterSimCardGroupId, List filterTags, String filterIccid) throws ApiException { - return simCardsGetWithHttpInfo(pageNumber, pageSize, includeSimCardGroup, filterSimCardGroupId, filterTags, filterIccid).getData(); + public SimCardsGet200Response simCardsGet(Integer pageNumber, Integer pageSize, Boolean includeSimCardGroup, UUID filterSimCardGroupId, List filterTags, String filterIccid, List filterStatus) throws ApiException { + return simCardsGetWithHttpInfo(pageNumber, pageSize, includeSimCardGroup, filterSimCardGroupId, filterTags, filterIccid, filterStatus).getData(); } /** @@ -1519,7 +1794,8 @@ public SearchSimCardsResponse simCardsGet(Integer pageNumber, Integer pageSize, * @param filterSimCardGroupId A valid SIM card group ID. (optional) * @param filterTags A list of SIM card tags to filter on.<br/><br/> If the SIM card contains <b><i>all</i></b> of the given <code>tags</code> they will be found.<br/><br/> For example, if the SIM cards have the following tags: <ul> <li><code>['customers', 'staff', 'test']</code> <li><code>['test']</code></li> <li><code>['customers']</code></li> </ul> Searching for <code>['customers', 'test']</code> returns only the first because it's the only one with both tags.<br/> Searching for <code>test</code> returns the first two SIMs, because both of them have such tag.<br/> Searching for <code>customers</code> returns the first and last SIMs.<br/> (optional) * @param filterIccid A search string to partially match for the SIM card's ICCID. (optional) - * @return ApiResponse<SearchSimCardsResponse> + * @param filterStatus Filter by a SIM card's status. (optional) + * @return ApiResponse<SimCardsGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1528,7 +1804,7 @@ public SearchSimCardsResponse simCardsGet(Integer pageNumber, Integer pageSize,
0 Unexpected error -
*/ - public ApiResponse simCardsGetWithHttpInfo(Integer pageNumber, Integer pageSize, Boolean includeSimCardGroup, UUID filterSimCardGroupId, List filterTags, String filterIccid) throws ApiException { + public ApiResponse simCardsGetWithHttpInfo(Integer pageNumber, Integer pageSize, Boolean includeSimCardGroup, UUID filterSimCardGroupId, List filterTags, String filterIccid, List filterStatus) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -1546,6 +1822,7 @@ public ApiResponse simCardsGetWithHttpInfo(Integer pageN localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[sim_card_group_id]", filterSimCardGroupId)); localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "filter[tags]", filterTags)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[iccid]", filterIccid)); + localVarQueryParams.addAll(apiClient.parameterToPairs("multi", "filter[status]", filterStatus)); @@ -1562,7 +1839,7 @@ public ApiResponse simCardsGetWithHttpInfo(Integer pageN String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.simCardsGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -1574,7 +1851,7 @@ public ApiResponse simCardsGetWithHttpInfo(Integer pageN * @param simCardId Identifies a SIM card. (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return WirelessConnectivityLogCollectionResponse + * @return WirelessConnectivityLogsGet200Response * @throws ApiException if fails to make API call * @http.response.details @@ -1583,7 +1860,7 @@ public ApiResponse simCardsGetWithHttpInfo(Integer pageN
0 Unexpected error -
*/ - public WirelessConnectivityLogCollectionResponse wirelessConnectivityLogsGet(UUID simCardId, Integer pageNumber, Integer pageSize) throws ApiException { + public WirelessConnectivityLogsGet200Response wirelessConnectivityLogsGet(UUID simCardId, Integer pageNumber, Integer pageSize) throws ApiException { return wirelessConnectivityLogsGetWithHttpInfo(simCardId, pageNumber, pageSize).getData(); } @@ -1593,7 +1870,7 @@ public WirelessConnectivityLogCollectionResponse wirelessConnectivityLogsGet(UUI * @param simCardId Identifies a SIM card. (required) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<WirelessConnectivityLogCollectionResponse> + * @return ApiResponse<WirelessConnectivityLogsGet200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -1602,7 +1879,7 @@ public WirelessConnectivityLogCollectionResponse wirelessConnectivityLogsGet(UUI
0 Unexpected error -
*/ - public ApiResponse wirelessConnectivityLogsGetWithHttpInfo(UUID simCardId, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse wirelessConnectivityLogsGetWithHttpInfo(UUID simCardId, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'simCardId' is set @@ -1638,7 +1915,7 @@ public ApiResponse wirelessConnectivi String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("SimCardsApi.wirelessConnectivityLogsGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/TeXmlApplicationsApi.java b/src/main/java/com/telnyx/sdk/api/TeXmlApplicationsApi.java index 5ddd2010..c63139c2 100644 --- a/src/main/java/com/telnyx/sdk/api/TeXmlApplicationsApi.java +++ b/src/main/java/com/telnyx/sdk/api/TeXmlApplicationsApi.java @@ -197,7 +197,7 @@ public ApiResponse deleteTexmlApplicationWithHttpInfo( * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterFriendlyNameContains If present, applications with <code>friendly_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) - * @param filterOutboundOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) + * @param filterOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to created_at) * @return GetAllTexmlApplicationsResponse * @throws ApiException if fails to make API call @@ -210,8 +210,8 @@ public ApiResponse deleteTexmlApplicationWithHttpInfo( 404 Resource not found - */ - public GetAllTexmlApplicationsResponse findTexmlApplications(Integer pageNumber, Integer pageSize, String filterFriendlyNameContains, String filterOutboundOutboundVoiceProfileId, String sort) throws ApiException { - return findTexmlApplicationsWithHttpInfo(pageNumber, pageSize, filterFriendlyNameContains, filterOutboundOutboundVoiceProfileId, sort).getData(); + public GetAllTexmlApplicationsResponse findTexmlApplications(Integer pageNumber, Integer pageSize, String filterFriendlyNameContains, String filterOutboundVoiceProfileId, String sort) throws ApiException { + return findTexmlApplicationsWithHttpInfo(pageNumber, pageSize, filterFriendlyNameContains, filterOutboundVoiceProfileId, sort).getData(); } /** @@ -220,7 +220,7 @@ public GetAllTexmlApplicationsResponse findTexmlApplications(Integer pageNumber, * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) * @param filterFriendlyNameContains If present, applications with <code>friendly_name</code> containing the given value will be returned. Matching is not case-sensitive. Requires at least three characters. (optional, default to null) - * @param filterOutboundOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) + * @param filterOutboundVoiceProfileId Identifies the associated outbound voice profile. (optional) * @param sort Specifies the sort order for results. By default sorting direction is ascending. To have the results sorted in descending order add the <code> -</code> prefix.<br/><br/> That is: <ul> <li> <code>connection_name</code>: sorts the result by the <code>connection_name</code> field in ascending order. </li> <li> <code>-connection_name</code>: sorts the result by the <code>connection_name</code> field in descending order. </li> </ul> <br/> If not given, results are sorted by <code>created_at</code> in descending order. (optional, default to created_at) * @return ApiResponse<GetAllTexmlApplicationsResponse> * @throws ApiException if fails to make API call @@ -233,7 +233,7 @@ public GetAllTexmlApplicationsResponse findTexmlApplications(Integer pageNumber, 404 Resource not found - */ - public ApiResponse findTexmlApplicationsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterFriendlyNameContains, String filterOutboundOutboundVoiceProfileId, String sort) throws ApiException { + public ApiResponse findTexmlApplicationsWithHttpInfo(Integer pageNumber, Integer pageSize, String filterFriendlyNameContains, String filterOutboundVoiceProfileId, String sort) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -248,7 +248,7 @@ public ApiResponse findTexmlApplicationsWithHtt localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[friendly_name][contains]", filterFriendlyNameContains)); - localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound.outbound_voice_profile_id]", filterOutboundOutboundVoiceProfileId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[outbound_voice_profile_id]", filterOutboundVoiceProfileId)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "sort", sort)); diff --git a/src/main/java/com/telnyx/sdk/api/TeXmlRestCommandsApi.java b/src/main/java/com/telnyx/sdk/api/TeXmlRestCommandsApi.java new file mode 100644 index 00000000..62d9a50b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/TeXmlRestCommandsApi.java @@ -0,0 +1,158 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.TeXmlRESTCommandResponse; +import com.telnyx.sdk.model.UpdateCallRequest; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TeXmlRestCommandsApi { + private ApiClient apiClient; + + public TeXmlRestCommandsApi() { + this(Configuration.getDefaultApiClient()); + } + + public TeXmlRestCommandsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + +private ApiResponse updateTeXMLCallWithHttpInfo(String callSid, UpdateCallRequest updateCallRequest) throws ApiException { + Object localVarPostBody = updateCallRequest; + + // verify the required parameter 'callSid' is set + if (callSid == null) { + throw new ApiException(400, "Missing the required parameter 'callSid' when calling updateTeXMLCall"); + } + + // verify the required parameter 'updateCallRequest' is set + if (updateCallRequest == null) { + throw new ApiException(400, "Missing the required parameter 'updateCallRequest' when calling updateTeXMLCall"); + } + + // create path and map variables + String localVarPath = "/texml/{call_sid}/update" + .replaceAll("\\{" + "call_sid" + "\\}", apiClient.escapeString(callSid.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("TeXmlRestCommandsApi.updateTeXMLCall", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + + public class APIupdateTeXMLCallRequest { + private String callSid; + private UpdateCallRequest updateCallRequest; + + private APIupdateTeXMLCallRequest(String callSid) { + this.callSid = callSid; + } + + /** + * Set updateCallRequest + * @param updateCallRequest Update Call request object (required) + * @return APIupdateTeXMLCallRequest + */ + public APIupdateTeXMLCallRequest updateCallRequest(UpdateCallRequest updateCallRequest) { + this.updateCallRequest = updateCallRequest; + return this; + } + + /** + * Execute updateTeXMLCall request + * @return TeXmlRESTCommandResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response upon updating a TeXml call. -
+ + */ + + public TeXmlRESTCommandResponse execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute updateTeXMLCall request with HTTP info returned + * @return ApiResponse<TeXmlRESTCommandResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful response upon updating a TeXml call. -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return updateTeXMLCallWithHttpInfo(callSid, updateCallRequest); + } + } + + /** + * Update call + * Update TeXml call + * @param callSid The CallSid that identifies the call to update. (required) + * @return updateTeXMLCallRequest + * @throws ApiException if fails to make API call + + + */ + public APIupdateTeXMLCallRequest updateTeXMLCall(String callSid) throws ApiException { + return new APIupdateTeXMLCallRequest(callSid); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/VirtualCrossConnectsApi.java b/src/main/java/com/telnyx/sdk/api/VirtualCrossConnectsApi.java new file mode 100644 index 00000000..2a9326d6 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/VirtualCrossConnectsApi.java @@ -0,0 +1,630 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.Errors; +import java.util.UUID; +import com.telnyx.sdk.model.VirtaulCrossConnectList200Response; +import com.telnyx.sdk.model.VirtaulCrossConnectRegionList200Response; +import com.telnyx.sdk.model.VirtualCrossConnectCreate; +import com.telnyx.sdk.model.VirtualCrossConnectCreate200Response; +import com.telnyx.sdk.model.VirtualCrossConnectPatch; +import com.telnyx.sdk.model.VirtualCrossConnectRegionGet200Response; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectsApi { + private ApiClient apiClient; + + public VirtualCrossConnectsApi() { + this(Configuration.getDefaultApiClient()); + } + + public VirtualCrossConnectsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * List all Virtual Cross Connects + * List all Virtual Cross Connects. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterNetworkId The associated network id to filter on. (optional) + * @return VirtaulCrossConnectList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public VirtaulCrossConnectList200Response virtaulCrossConnectList(Integer pageNumber, Integer pageSize, String filterNetworkId) throws ApiException { + return virtaulCrossConnectListWithHttpInfo(pageNumber, pageSize, filterNetworkId).getData(); + } + + /** + * List all Virtual Cross Connects + * List all Virtual Cross Connects. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterNetworkId The associated network id to filter on. (optional) + * @return ApiResponse<VirtaulCrossConnectList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse virtaulCrossConnectListWithHttpInfo(Integer pageNumber, Integer pageSize, String filterNetworkId) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/virtual_cross_connects"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[network_id]", filterNetworkId)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtaulCrossConnectList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all Virtual Cross Connect Cloud Regions + * List all Virtual Cross Connects Cloud Regions.<br /><br />This endpoint shows which cloud regions are available for the `region_code` your Virtual Cross Connect will be provisioned in. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterRegionCode The Telnyx region code (optional) + * @param filterCloudProvider The Telnyx region code (optional) + * @return VirtaulCrossConnectRegionList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public VirtaulCrossConnectRegionList200Response virtaulCrossConnectRegionList(Integer pageNumber, Integer pageSize, String filterRegionCode, String filterCloudProvider) throws ApiException { + return virtaulCrossConnectRegionListWithHttpInfo(pageNumber, pageSize, filterRegionCode, filterCloudProvider).getData(); + } + + /** + * List all Virtual Cross Connect Cloud Regions + * List all Virtual Cross Connects Cloud Regions.<br /><br />This endpoint shows which cloud regions are available for the `region_code` your Virtual Cross Connect will be provisioned in. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterRegionCode The Telnyx region code (optional) + * @param filterCloudProvider The Telnyx region code (optional) + * @return ApiResponse<VirtaulCrossConnectRegionList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse virtaulCrossConnectRegionListWithHttpInfo(Integer pageNumber, Integer pageSize, String filterRegionCode, String filterCloudProvider) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/virtual_cross_connect_regions"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[region_code]", filterRegionCode)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[cloud_provider]", filterCloudProvider)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtaulCrossConnectRegionList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Create a Virtual Cross Connect + * Create a new Virtual Cross Connect.<br /><br />For AWS and GCE, you have the option of creating the primary connection first and the secondary connection later. You also have the option of disabling the primary and/or secondary connections at any time and later re-enabling them. With Azure, you do not have this option. Azure requires both the primary and secondary connections to be created at the same time and they can not be independantly disabled. + * @param virtualCrossConnectCreate (required) + * @return VirtualCrossConnectCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public VirtualCrossConnectCreate200Response virtualCrossConnectCreate(VirtualCrossConnectCreate virtualCrossConnectCreate) throws ApiException { + return virtualCrossConnectCreateWithHttpInfo(virtualCrossConnectCreate).getData(); + } + + /** + * Create a Virtual Cross Connect + * Create a new Virtual Cross Connect.<br /><br />For AWS and GCE, you have the option of creating the primary connection first and the secondary connection later. You also have the option of disabling the primary and/or secondary connections at any time and later re-enabling them. With Azure, you do not have this option. Azure requires both the primary and secondary connections to be created at the same time and they can not be independantly disabled. + * @param virtualCrossConnectCreate (required) + * @return ApiResponse<VirtualCrossConnectCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse virtualCrossConnectCreateWithHttpInfo(VirtualCrossConnectCreate virtualCrossConnectCreate) throws ApiException { + Object localVarPostBody = virtualCrossConnectCreate; + + // verify the required parameter 'virtualCrossConnectCreate' is set + if (virtualCrossConnectCreate == null) { + throw new ApiException(400, "Missing the required parameter 'virtualCrossConnectCreate' when calling virtualCrossConnectCreate"); + } + + // create path and map variables + String localVarPath = "/virtual_cross_connects"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtualCrossConnectCreate", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete a Virtual Cross Connect + * Delete a Virtual Cross Connect. + * @param id Identifies the resource. (required) + * @return VirtualCrossConnectCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public VirtualCrossConnectCreate200Response virtualCrossConnectDelete(UUID id) throws ApiException { + return virtualCrossConnectDeleteWithHttpInfo(id).getData(); + } + + /** + * Delete a Virtual Cross Connect + * Delete a Virtual Cross Connect. + * @param id Identifies the resource. (required) + * @return ApiResponse<VirtualCrossConnectCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse virtualCrossConnectDeleteWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling virtualCrossConnectDelete"); + } + + // create path and map variables + String localVarPath = "/virtual_cross_connects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtualCrossConnectDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve a Virtual Cross Connect + * Retrieve a Virtual Cross Connect. + * @param id Identifies the resource. (required) + * @return VirtualCrossConnectCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public VirtualCrossConnectCreate200Response virtualCrossConnectGet(UUID id) throws ApiException { + return virtualCrossConnectGetWithHttpInfo(id).getData(); + } + + /** + * Retrieve a Virtual Cross Connect + * Retrieve a Virtual Cross Connect. + * @param id Identifies the resource. (required) + * @return ApiResponse<VirtualCrossConnectCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse virtualCrossConnectGetWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling virtualCrossConnectGet"); + } + + // create path and map variables + String localVarPath = "/virtual_cross_connects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtualCrossConnectGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Provision a Virtual Cross Connect + * Provision a new Virtual Cross Connect.<br /><br />This endpoint is only necessary for GCE cloud regions. Once you have patched your Cloud IPs, you must POST this request to trigger the provision. + * @param id Identifies the resource. (required) + * @return VirtualCrossConnectCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
202 Successful response -
0 Unexpected error -
+ */ + public VirtualCrossConnectCreate200Response virtualCrossConnectProvision(UUID id) throws ApiException { + return virtualCrossConnectProvisionWithHttpInfo(id).getData(); + } + + /** + * Provision a Virtual Cross Connect + * Provision a new Virtual Cross Connect.<br /><br />This endpoint is only necessary for GCE cloud regions. Once you have patched your Cloud IPs, you must POST this request to trigger the provision. + * @param id Identifies the resource. (required) + * @return ApiResponse<VirtualCrossConnectCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
202 Successful response -
0 Unexpected error -
+ */ + public ApiResponse virtualCrossConnectProvisionWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling virtualCrossConnectProvision"); + } + + // create path and map variables + String localVarPath = "/virtual_cross_connects/{id}/actions/provision" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtualCrossConnectProvision", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve a Virtual Cross Connect Cloud Regions + * Retrieve a Virtual Cross Connect Cloud Regions. + * @param id Identifies the resource. (required) + * @return VirtualCrossConnectRegionGet200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public VirtualCrossConnectRegionGet200Response virtualCrossConnectRegionGet(UUID id) throws ApiException { + return virtualCrossConnectRegionGetWithHttpInfo(id).getData(); + } + + /** + * Retrieve a Virtual Cross Connect Cloud Regions + * Retrieve a Virtual Cross Connect Cloud Regions. + * @param id Identifies the resource. (required) + * @return ApiResponse<VirtualCrossConnectRegionGet200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse virtualCrossConnectRegionGetWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling virtualCrossConnectRegionGet"); + } + + // create path and map variables + String localVarPath = "/virtual_cross_connect_regions/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtualCrossConnectRegionGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Update the Virtual Cross Connect + * Update the Virtual Cross Connect.<br /><br />Cloud IPs can only be patched during the `created` state, as GCE will only inform you of your generated IP once the pending connection requested has been accepted. Once the Virtual Cross Connect has moved to `provisioning`, the IPs can no longer be patched.<br /><br />Once the Virtual Cross Connect has moved to `provisioned` and you are ready to enable routing, you can toggle the routing announcements to `true`. + * @param id Identifies the resource. (required) + * @param virtualCrossConnectPatch (required) + * @return VirtualCrossConnectCreate200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public VirtualCrossConnectCreate200Response virtualCrossConnectUpdate(UUID id, VirtualCrossConnectPatch virtualCrossConnectPatch) throws ApiException { + return virtualCrossConnectUpdateWithHttpInfo(id, virtualCrossConnectPatch).getData(); + } + + /** + * Update the Virtual Cross Connect + * Update the Virtual Cross Connect.<br /><br />Cloud IPs can only be patched during the `created` state, as GCE will only inform you of your generated IP once the pending connection requested has been accepted. Once the Virtual Cross Connect has moved to `provisioning`, the IPs can no longer be patched.<br /><br />Once the Virtual Cross Connect has moved to `provisioned` and you are ready to enable routing, you can toggle the routing announcements to `true`. + * @param id Identifies the resource. (required) + * @param virtualCrossConnectPatch (required) + * @return ApiResponse<VirtualCrossConnectCreate200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse virtualCrossConnectUpdateWithHttpInfo(UUID id, VirtualCrossConnectPatch virtualCrossConnectPatch) throws ApiException { + Object localVarPostBody = virtualCrossConnectPatch; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling virtualCrossConnectUpdate"); + } + + // verify the required parameter 'virtualCrossConnectPatch' is set + if (virtualCrossConnectPatch == null) { + throw new ApiException(400, "Missing the required parameter 'virtualCrossConnectPatch' when calling virtualCrossConnectUpdate"); + } + + // create path and map variables + String localVarPath = "/virtual_cross_connects/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("VirtualCrossConnectsApi.virtualCrossConnectUpdate", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/WdrDetailReportsApi.java b/src/main/java/com/telnyx/sdk/api/WdrDetailReportsApi.java new file mode 100644 index 00000000..67dbdfb7 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/WdrDetailReportsApi.java @@ -0,0 +1,144 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.ExternalWdrGetDetailResponse; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WdrDetailReportsApi { + private ApiClient apiClient; + + public WdrDetailReportsApi() { + this(Configuration.getDefaultApiClient()); + } + + public WdrDetailReportsApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * + * Fetch all Wdr records + * @param startDate Start date (optional) + * @param endDate End date (optional) + * @param id (optional) + * @param mcc (optional) + * @param mnc (optional) + * @param imsi (optional) + * @param simGroupName (optional) + * @param simGroupId (optional) + * @param simCardId (optional) + * @param phoneNumber (optional) + * @param pageNumber Page number (optional, default to 1) + * @param pageSize Size of the page (optional, default to 20) + * @return ExternalWdrGetDetailResponse + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful -
+ */ + public ExternalWdrGetDetailResponse getPaginatedWdrs(String startDate, String endDate, String id, String mcc, String mnc, String imsi, String simGroupName, String simGroupId, String simCardId, String phoneNumber, Integer pageNumber, Integer pageSize) throws ApiException { + return getPaginatedWdrsWithHttpInfo(startDate, endDate, id, mcc, mnc, imsi, simGroupName, simGroupId, simCardId, phoneNumber, pageNumber, pageSize).getData(); + } + + /** + * + * Fetch all Wdr records + * @param startDate Start date (optional) + * @param endDate End date (optional) + * @param id (optional) + * @param mcc (optional) + * @param mnc (optional) + * @param imsi (optional) + * @param simGroupName (optional) + * @param simGroupId (optional) + * @param simCardId (optional) + * @param phoneNumber (optional) + * @param pageNumber Page number (optional, default to 1) + * @param pageSize Size of the page (optional, default to 20) + * @return ApiResponse<ExternalWdrGetDetailResponse> + * @throws ApiException if fails to make API call + * @http.response.details + + + +
Status Code Description Response Headers
200 Successful -
+ */ + public ApiResponse getPaginatedWdrsWithHttpInfo(String startDate, String endDate, String id, String mcc, String mnc, String imsi, String simGroupName, String simGroupId, String simCardId, String phoneNumber, Integer pageNumber, Integer pageSize) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/reports/wdrs"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "start_date", startDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "end_date", endDate)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "id", id)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "mcc", mcc)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "mnc", mnc)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "imsi", imsi)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sim_group_name", simGroupName)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sim_group_id", simGroupId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "sim_card_id", simCardId)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "phone_number", phoneNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WdrDetailReportsApi.getPaginatedWdrs", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/WebhooksApi.java b/src/main/java/com/telnyx/sdk/api/WebhooksApi.java index ef89e80a..b4513fa7 100644 --- a/src/main/java/com/telnyx/sdk/api/WebhooksApi.java +++ b/src/main/java/com/telnyx/sdk/api/WebhooksApi.java @@ -8,8 +8,8 @@ import javax.ws.rs.core.GenericType; -import com.telnyx.sdk.model.ListWebhookDeliveriesResponse; -import com.telnyx.sdk.model.RetrieveWebhookDelivery; +import com.telnyx.sdk.model.GetWebhookDeliveries200Response; +import com.telnyx.sdk.model.GetWebhookDelivery200Response; import java.util.UUID; import java.util.ArrayList; @@ -51,6 +51,7 @@ public void setApiClient(ApiClient apiClient) { * List webhook deliveries * Lists webhook_deliveries for the authenticated user * @param filterStatusEq Return only webhook_deliveries matching the given `status` (optional) + * @param filterEventType Return only webhook_deliveries matching the given value of `event_type`. Accepts multiple values separated by a `,`. (optional) * @param filterWebhookContains Return only webhook deliveries whose `webhook` component contains the given text (optional) * @param filterAttemptsContains Return only webhook_deliveries whose `attempts` component contains the given text (optional) * @param filterStartedAtGte Return only webhook_deliveries whose delivery started later than or at given ISO 8601 datetime (optional) @@ -59,7 +60,7 @@ public void setApiClient(ApiClient apiClient) { * @param filterFinishedAtLte Return only webhook_deliveries whose delivery finished earlier than or at given ISO 8601 datetime (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ListWebhookDeliveriesResponse + * @return GetWebhookDeliveries200Response * @throws ApiException if fails to make API call * @http.response.details @@ -69,14 +70,15 @@ public void setApiClient(ApiClient apiClient) {
422 Unprocessable entity -
*/ - public ListWebhookDeliveriesResponse getWebhookDeliveries(String filterStatusEq, String filterWebhookContains, String filterAttemptsContains, String filterStartedAtGte, String filterStartedAtLte, String filterFinishedAtGte, String filterFinishedAtLte, Integer pageNumber, Integer pageSize) throws ApiException { - return getWebhookDeliveriesWithHttpInfo(filterStatusEq, filterWebhookContains, filterAttemptsContains, filterStartedAtGte, filterStartedAtLte, filterFinishedAtGte, filterFinishedAtLte, pageNumber, pageSize).getData(); + public GetWebhookDeliveries200Response getWebhookDeliveries(String filterStatusEq, String filterEventType, String filterWebhookContains, String filterAttemptsContains, String filterStartedAtGte, String filterStartedAtLte, String filterFinishedAtGte, String filterFinishedAtLte, Integer pageNumber, Integer pageSize) throws ApiException { + return getWebhookDeliveriesWithHttpInfo(filterStatusEq, filterEventType, filterWebhookContains, filterAttemptsContains, filterStartedAtGte, filterStartedAtLte, filterFinishedAtGte, filterFinishedAtLte, pageNumber, pageSize).getData(); } /** * List webhook deliveries * Lists webhook_deliveries for the authenticated user * @param filterStatusEq Return only webhook_deliveries matching the given `status` (optional) + * @param filterEventType Return only webhook_deliveries matching the given value of `event_type`. Accepts multiple values separated by a `,`. (optional) * @param filterWebhookContains Return only webhook deliveries whose `webhook` component contains the given text (optional) * @param filterAttemptsContains Return only webhook_deliveries whose `attempts` component contains the given text (optional) * @param filterStartedAtGte Return only webhook_deliveries whose delivery started later than or at given ISO 8601 datetime (optional) @@ -85,7 +87,7 @@ public ListWebhookDeliveriesResponse getWebhookDeliveries(String filterStatusEq, * @param filterFinishedAtLte Return only webhook_deliveries whose delivery finished earlier than or at given ISO 8601 datetime (optional) * @param pageNumber The page number to load (optional, default to 1) * @param pageSize The size of the page (optional, default to 20) - * @return ApiResponse<ListWebhookDeliveriesResponse> + * @return ApiResponse<GetWebhookDeliveries200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -95,7 +97,7 @@ public ListWebhookDeliveriesResponse getWebhookDeliveries(String filterStatusEq,
422 Unprocessable entity -
*/ - public ApiResponse getWebhookDeliveriesWithHttpInfo(String filterStatusEq, String filterWebhookContains, String filterAttemptsContains, String filterStartedAtGte, String filterStartedAtLte, String filterFinishedAtGte, String filterFinishedAtLte, Integer pageNumber, Integer pageSize) throws ApiException { + public ApiResponse getWebhookDeliveriesWithHttpInfo(String filterStatusEq, String filterEventType, String filterWebhookContains, String filterAttemptsContains, String filterStartedAtGte, String filterStartedAtLte, String filterFinishedAtGte, String filterFinishedAtLte, Integer pageNumber, Integer pageSize) throws ApiException { Object localVarPostBody = null; // create path and map variables @@ -108,6 +110,7 @@ public ApiResponse getWebhookDeliveriesWithHttpIn Map localVarFormParams = new HashMap(); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[status][eq]", filterStatusEq)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[event_type]", filterEventType)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[webhook][contains]", filterWebhookContains)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[attempts][contains]", filterAttemptsContains)); localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[started_at][gte]", filterStartedAtGte)); @@ -132,7 +135,7 @@ public ApiResponse getWebhookDeliveriesWithHttpIn String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WebhooksApi.getWebhookDeliveries", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -142,7 +145,7 @@ public ApiResponse getWebhookDeliveriesWithHttpIn * Find webhook_delivery details by ID * Provides webhook_delivery debug data, such as timestamps, delivery status and attempts. * @param id Uniquely identifies the webhook_delivery. (required) - * @return RetrieveWebhookDelivery + * @return GetWebhookDelivery200Response * @throws ApiException if fails to make API call * @http.response.details @@ -152,7 +155,7 @@ public ApiResponse getWebhookDeliveriesWithHttpIn
404 WebhookDelivery not found -
*/ - public RetrieveWebhookDelivery getWebhookDelivery(UUID id) throws ApiException { + public GetWebhookDelivery200Response getWebhookDelivery(UUID id) throws ApiException { return getWebhookDeliveryWithHttpInfo(id).getData(); } @@ -160,7 +163,7 @@ public RetrieveWebhookDelivery getWebhookDelivery(UUID id) throws ApiException { * Find webhook_delivery details by ID * Provides webhook_delivery debug data, such as timestamps, delivery status and attempts. * @param id Uniquely identifies the webhook_delivery. (required) - * @return ApiResponse<RetrieveWebhookDelivery> + * @return ApiResponse<GetWebhookDelivery200Response> * @throws ApiException if fails to make API call * @http.response.details @@ -170,7 +173,7 @@ public RetrieveWebhookDelivery getWebhookDelivery(UUID id) throws ApiException {
404 WebhookDelivery not found -
*/ - public ApiResponse getWebhookDeliveryWithHttpInfo(UUID id) throws ApiException { + public ApiResponse getWebhookDeliveryWithHttpInfo(UUID id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -204,7 +207,7 @@ public ApiResponse getWebhookDeliveryWithHttpInfo(UUID String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WebhooksApi.getWebhookDelivery", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/WhatsAppBusinessAccountApi.java b/src/main/java/com/telnyx/sdk/api/WhatsAppBusinessAccountApi.java index b443e2e2..d44cbf8a 100644 --- a/src/main/java/com/telnyx/sdk/api/WhatsAppBusinessAccountApi.java +++ b/src/main/java/com/telnyx/sdk/api/WhatsAppBusinessAccountApi.java @@ -11,7 +11,6 @@ import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.ListWhatsAppBusinessAccountsResponse; import com.telnyx.sdk.model.ListWhatsAppPhoneNumbersResponse; -import com.telnyx.sdk.model.RetrieveWhatsAppBusinessAccount; import java.util.ArrayList; import java.util.HashMap; @@ -159,7 +158,7 @@ public APIlistWhatsappBusinessAccountsRequest listWhatsappBusinessAccounts() thr return new APIlistWhatsappBusinessAccountsRequest(); } -private ApiResponse retrieveWhatsappBusinessAccountWithHttpInfo(String id) throws ApiException { +private ApiResponse retrieveWhatsappBusinessAccountWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -193,7 +192,7 @@ private ApiResponse retrieveWhatsappBusinessAcc String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WhatsAppBusinessAccountApi.retrieveWhatsappBusinessAccount", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -209,7 +208,7 @@ private APIretrieveWhatsappBusinessAccountRequest(String id) { /** * Execute retrieveWhatsappBusinessAccount request - * @return RetrieveWhatsAppBusinessAccount + * @return WhatsAppBusinessAccount * @throws ApiException if fails to make API call * @http.response.details @@ -220,13 +219,13 @@ private APIretrieveWhatsappBusinessAccountRequest(String id) { */ - public RetrieveWhatsAppBusinessAccount execute() throws ApiException { + public String execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute retrieveWhatsappBusinessAccount request with HTTP info returned - * @return ApiResponse<RetrieveWhatsAppBusinessAccount> + * @return ApiResponse<WhatsAppBusinessAccount> * @throws ApiException if fails to make API call * @http.response.details
@@ -236,7 +235,7 @@ public RetrieveWhatsAppBusinessAccount execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return retrieveWhatsappBusinessAccountWithHttpInfo(id); } } diff --git a/src/main/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApi.java b/src/main/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApi.java new file mode 100644 index 00000000..ad276e84 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApi.java @@ -0,0 +1,401 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.CreateWhatsappMessageTemplateRequestBody; +import com.telnyx.sdk.model.Errors; +import java.util.UUID; +import com.telnyx.sdk.model.WhatsAppMessageTemplate1; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WhatsAppMessageTemplateApi { + private ApiClient apiClient; + + public WhatsAppMessageTemplateApi() { + this(Configuration.getDefaultApiClient()); + } + + public WhatsAppMessageTemplateApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create WhatsApp Message Templates + * + * @param id Identifies the WhatsApp Business Account (required) + * @param createWhatsappMessageTemplateRequestBody (optional) + * @return WhatsAppMessageTemplate1 + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 WhatsApp Message Template -
0 Unexpected error -
+ */ + public WhatsAppMessageTemplate1 createWhatsappMessageTemplates(UUID id, CreateWhatsappMessageTemplateRequestBody createWhatsappMessageTemplateRequestBody) throws ApiException { + return createWhatsappMessageTemplatesWithHttpInfo(id, createWhatsappMessageTemplateRequestBody).getData(); + } + + /** + * Create WhatsApp Message Templates + * + * @param id Identifies the WhatsApp Business Account (required) + * @param createWhatsappMessageTemplateRequestBody (optional) + * @return ApiResponse<WhatsAppMessageTemplate1> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 WhatsApp Message Template -
0 Unexpected error -
+ */ + public ApiResponse createWhatsappMessageTemplatesWithHttpInfo(UUID id, CreateWhatsappMessageTemplateRequestBody createWhatsappMessageTemplateRequestBody) throws ApiException { + Object localVarPostBody = createWhatsappMessageTemplateRequestBody; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling createWhatsappMessageTemplates"); + } + + // create path and map variables + String localVarPath = "/whatsapp_business_accounts/{id}/whatsapp_message_templates" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json", "multipart/form-data" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WhatsAppMessageTemplateApi.createWhatsappMessageTemplates", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete WhatsApp Message Templates + * Deletes all of the message templates with the given name and business account + * @param id Identifies the WhatsApp Business Account (required) + * @param name The name of the Whatsapp Message Template (required) + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
202 All message templates with the given name have been deleted -
0 Unexpected error -
+ */ + public void deleteWhatsappMessageTemplates(UUID id, String name) throws ApiException { + deleteWhatsappMessageTemplatesWithHttpInfo(id, name); + } + + /** + * Delete WhatsApp Message Templates + * Deletes all of the message templates with the given name and business account + * @param id Identifies the WhatsApp Business Account (required) + * @param name The name of the Whatsapp Message Template (required) + * @return ApiResponse<Void> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
202 All message templates with the given name have been deleted -
0 Unexpected error -
+ */ + public ApiResponse deleteWhatsappMessageTemplatesWithHttpInfo(UUID id, String name) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling deleteWhatsappMessageTemplates"); + } + + // verify the required parameter 'name' is set + if (name == null) { + throw new ApiException(400, "Missing the required parameter 'name' when calling deleteWhatsappMessageTemplates"); + } + + // create path and map variables + String localVarPath = "/whatsapp_business_accounts/{id}/whatsapp_message_templates/{name}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "name" + "\\}", apiClient.escapeString(name.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + return apiClient.invokeAPI("WhatsAppMessageTemplateApi.deleteWhatsappMessageTemplates", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, null, false); + } + +private ApiResponse listWhatsappMessageTemplatesWithHttpInfo(UUID id, String category, String language, String name, String qualityScore, String rejectedReason, String limit, String before, String after, String status) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling listWhatsappMessageTemplates"); + } + + // create path and map variables + String localVarPath = "/whatsapp_business_accounts/{id}/whatsapp_message_templates" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "category", category)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "language", language)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "name", name)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "quality_score", qualityScore)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "rejected_reason", rejectedReason)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "limit", limit)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "before", before)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "after", after)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "status", status)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WhatsAppMessageTemplateApi.listWhatsappMessageTemplates", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + + public class APIlistWhatsappMessageTemplatesRequest { + private UUID id; + private String category; + private String language; + private String name; + private String qualityScore; + private String rejectedReason; + private String limit; + private String before; + private String after; + private String status; + + private APIlistWhatsappMessageTemplatesRequest(UUID id) { + this.id = id; + } + + /** + * Set category + * @param category The template category (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest category(String category) { + this.category = category; + return this; + } + + /** + * Set language + * @param language The language of the whatsapp message template (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest language(String language) { + this.language = language; + return this; + } + + /** + * Set name + * @param name A name identifying this whatsapp message template (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest name(String name) { + this.name = name; + return this; + } + + /** + * Set qualityScore + * @param qualityScore The score of the whatsapp message template (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest qualityScore(String qualityScore) { + this.qualityScore = qualityScore; + return this; + } + + /** + * Set rejectedReason + * @param rejectedReason The reason why a message template was rejected by Whatsapp (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest rejectedReason(String rejectedReason) { + this.rejectedReason = rejectedReason; + return this; + } + + /** + * Set limit + * @param limit The maximum number of message_templates to be returned on a query, we may return less than the limit number even if more pages are available. (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest limit(String limit) { + this.limit = limit; + return this; + } + + /** + * Set before + * @param before Indicates that this is a query for entries before the given cursor (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest before(String before) { + this.before = before; + return this; + } + + /** + * Set after + * @param after Indicates that this is a query for entries after the given cursor (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest after(String after) { + this.after = after; + return this; + } + + /** + * Set status + * @param status Identifies the whatsApp Message Template status (optional) + * @return APIlistWhatsappMessageTemplatesRequest + */ + public APIlistWhatsappMessageTemplatesRequest status(String status) { + this.status = status; + return this; + } + + /** + * Execute listWhatsappMessageTemplates request + * @return WhatsAppMessageTemplate + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 WhatsApp Message Template -
0 Unexpected error -
+ + */ + + public String execute() throws ApiException { + return this.executeWithHttpInfo().getData(); + } + + /** + * Execute listWhatsappMessageTemplates request with HTTP info returned + * @return ApiResponse<WhatsAppMessageTemplate> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 WhatsApp Message Template -
0 Unexpected error -
+ + */ + public ApiResponse executeWithHttpInfo() throws ApiException { + return listWhatsappMessageTemplatesWithHttpInfo(id, category, language, name, qualityScore, rejectedReason, limit, before, after, status); + } + } + + /** + * List WhatsApp Message Templates + * + * @param id Identifies the WhatsApp Business Account (required) + * @return listWhatsappMessageTemplatesRequest + * @throws ApiException if fails to make API call + + + */ + public APIlistWhatsappMessageTemplatesRequest listWhatsappMessageTemplates(UUID id) throws ApiException { + return new APIlistWhatsappMessageTemplatesRequest(id); + } +} diff --git a/src/main/java/com/telnyx/sdk/api/WhatsAppMessagesApi.java b/src/main/java/com/telnyx/sdk/api/WhatsAppMessagesApi.java index aba4ddbf..6d654e46 100644 --- a/src/main/java/com/telnyx/sdk/api/WhatsAppMessagesApi.java +++ b/src/main/java/com/telnyx/sdk/api/WhatsAppMessagesApi.java @@ -11,7 +11,7 @@ import com.telnyx.sdk.model.CreateWhatsAppMessageRequest; import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.MarkMessageAsReadRequestBody; -import com.telnyx.sdk.model.WhatsAppMessageResponse; +import com.telnyx.sdk.model.SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent; import java.util.ArrayList; import java.util.HashMap; @@ -126,7 +126,7 @@ public ApiResponse markMessageAsReadWithHttpInfo(String messageId, MarkMes * Send Message * Send text messages, media/documents, and message templates to your customers. * @param createWhatsAppMessageRequest (required) - * @return WhatsAppMessageResponse + * @return SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent * @throws ApiException if fails to make API call * @http.response.details @@ -135,7 +135,7 @@ public ApiResponse markMessageAsReadWithHttpInfo(String messageId, MarkMes
0 Unexpected error -
*/ - public WhatsAppMessageResponse sendMessage(CreateWhatsAppMessageRequest createWhatsAppMessageRequest) throws ApiException { + public SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent sendMessage(CreateWhatsAppMessageRequest createWhatsAppMessageRequest) throws ApiException { return sendMessageWithHttpInfo(createWhatsAppMessageRequest).getData(); } @@ -143,7 +143,7 @@ public WhatsAppMessageResponse sendMessage(CreateWhatsAppMessageRequest createWh * Send Message * Send text messages, media/documents, and message templates to your customers. * @param createWhatsAppMessageRequest (required) - * @return ApiResponse<WhatsAppMessageResponse> + * @return ApiResponse<SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent> * @throws ApiException if fails to make API call * @http.response.details @@ -152,7 +152,7 @@ public WhatsAppMessageResponse sendMessage(CreateWhatsAppMessageRequest createWh
0 Unexpected error -
*/ - public ApiResponse sendMessageWithHttpInfo(CreateWhatsAppMessageRequest createWhatsAppMessageRequest) throws ApiException { + public ApiResponse sendMessageWithHttpInfo(CreateWhatsAppMessageRequest createWhatsAppMessageRequest) throws ApiException { Object localVarPostBody = createWhatsAppMessageRequest; // verify the required parameter 'createWhatsAppMessageRequest' is set @@ -185,7 +185,7 @@ public ApiResponse sendMessageWithHttpInfo(CreateWhatsA String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WhatsAppMessagesApi.sendMessage", localVarPath, "POST", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, diff --git a/src/main/java/com/telnyx/sdk/api/WhatsAppPhoneNumberApi.java b/src/main/java/com/telnyx/sdk/api/WhatsAppPhoneNumberApi.java index f54c9876..a4a5bcfa 100644 --- a/src/main/java/com/telnyx/sdk/api/WhatsAppPhoneNumberApi.java +++ b/src/main/java/com/telnyx/sdk/api/WhatsAppPhoneNumberApi.java @@ -10,10 +10,6 @@ import com.telnyx.sdk.model.Errors; import java.io.File; -import com.telnyx.sdk.model.RetrieveWhatsAppPhoneNumber; -import com.telnyx.sdk.model.RetrieveWhatsAppProfilePhoto; -import com.telnyx.sdk.model.UpdateWhatsAppPhoneNumber; -import com.telnyx.sdk.model.UpdateWhatsAppProfilePhoto; import com.telnyx.sdk.model.UpdateWhatsappPhoneNumberAboutRequest; import com.telnyx.sdk.model.UpdateWhatsappPhoneNumberRequest; @@ -53,7 +49,7 @@ public void setApiClient(ApiClient apiClient) { } -private ApiResponse patchWhatsappPhoneNumberWithHttpInfo(String id, UpdateWhatsappPhoneNumberRequest updateWhatsappPhoneNumberRequest) throws ApiException { +private ApiResponse patchWhatsappPhoneNumberWithHttpInfo(String id, UpdateWhatsappPhoneNumberRequest updateWhatsappPhoneNumberRequest) throws ApiException { Object localVarPostBody = updateWhatsappPhoneNumberRequest; // verify the required parameter 'id' is set @@ -92,7 +88,7 @@ private ApiResponse patchWhatsappPhoneNumberWithHttpI String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WhatsAppPhoneNumberApi.patchWhatsappPhoneNumber", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -119,7 +115,7 @@ public APIpatchWhatsappPhoneNumberRequest updateWhatsappPhoneNumberRequest(Updat /** * Execute patchWhatsappPhoneNumber request - * @return UpdateWhatsAppPhoneNumber + * @return WhatsAppPhoneNumber * @throws ApiException if fails to make API call * @http.response.details @@ -130,13 +126,13 @@ public APIpatchWhatsappPhoneNumberRequest updateWhatsappPhoneNumberRequest(Updat */ - public UpdateWhatsAppPhoneNumber execute() throws ApiException { + public String execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute patchWhatsappPhoneNumber request with HTTP info returned - * @return ApiResponse<UpdateWhatsAppPhoneNumber> + * @return ApiResponse<WhatsAppPhoneNumber> * @throws ApiException if fails to make API call * @http.response.details
@@ -146,7 +142,7 @@ public UpdateWhatsAppPhoneNumber execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return patchWhatsappPhoneNumberWithHttpInfo(id, updateWhatsappPhoneNumberRequest); } } @@ -273,7 +269,7 @@ public APIpatchWhatsappPhoneNumberAboutRequest patchWhatsappPhoneNumberAbout(Str return new APIpatchWhatsappPhoneNumberAboutRequest(id); } -private ApiResponse patchWhatsappProfilePhotoWithHttpInfo(String id, File photo) throws ApiException { +private ApiResponse patchWhatsappProfilePhotoWithHttpInfo(String id, File photo) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -314,7 +310,7 @@ private ApiResponse patchWhatsappProfilePhotoWithHtt String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WhatsAppPhoneNumberApi.patchWhatsappProfilePhoto", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -341,7 +337,7 @@ public APIpatchWhatsappProfilePhotoRequest photo(File photo) { /** * Execute patchWhatsappProfilePhoto request - * @return UpdateWhatsAppProfilePhoto + * @return WhatsAppProfilePhoto * @throws ApiException if fails to make API call * @http.response.details @@ -352,13 +348,13 @@ public APIpatchWhatsappProfilePhotoRequest photo(File photo) { */ - public UpdateWhatsAppProfilePhoto execute() throws ApiException { + public String execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute patchWhatsappProfilePhoto request with HTTP info returned - * @return ApiResponse<UpdateWhatsAppProfilePhoto> + * @return ApiResponse<WhatsAppProfilePhoto> * @throws ApiException if fails to make API call * @http.response.details
@@ -368,7 +364,7 @@ public UpdateWhatsAppProfilePhoto execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return patchWhatsappProfilePhotoWithHttpInfo(id, photo); } } @@ -386,7 +382,7 @@ public APIpatchWhatsappProfilePhotoRequest patchWhatsappProfilePhoto(String id) return new APIpatchWhatsappProfilePhotoRequest(id); } -private ApiResponse retrieveWhatsappPhoneNumberWithHttpInfo(String id) throws ApiException { +private ApiResponse retrieveWhatsappPhoneNumberWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -420,7 +416,7 @@ private ApiResponse retrieveWhatsappPhoneNumberWith String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WhatsAppPhoneNumberApi.retrieveWhatsappPhoneNumber", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -436,7 +432,7 @@ private APIretrieveWhatsappPhoneNumberRequest(String id) { /** * Execute retrieveWhatsappPhoneNumber request - * @return RetrieveWhatsAppPhoneNumber + * @return WhatsAppPhoneNumber * @throws ApiException if fails to make API call * @http.response.details @@ -447,13 +443,13 @@ private APIretrieveWhatsappPhoneNumberRequest(String id) { */ - public RetrieveWhatsAppPhoneNumber execute() throws ApiException { + public String execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute retrieveWhatsappPhoneNumber request with HTTP info returned - * @return ApiResponse<RetrieveWhatsAppPhoneNumber> + * @return ApiResponse<WhatsAppPhoneNumber> * @throws ApiException if fails to make API call * @http.response.details
@@ -463,7 +459,7 @@ public RetrieveWhatsAppPhoneNumber execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return retrieveWhatsappPhoneNumberWithHttpInfo(id); } } @@ -481,7 +477,7 @@ public APIretrieveWhatsappPhoneNumberRequest retrieveWhatsappPhoneNumber(String return new APIretrieveWhatsappPhoneNumberRequest(id); } -private ApiResponse retrieveWhatsappProfilePhotoWithHttpInfo(String id) throws ApiException { +private ApiResponse retrieveWhatsappProfilePhotoWithHttpInfo(String id) throws ApiException { Object localVarPostBody = null; // verify the required parameter 'id' is set @@ -515,7 +511,7 @@ private ApiResponse retrieveWhatsappProfilePhotoWi String[] localVarAuthNames = new String[] { "bearerAuth" }; - GenericType localVarReturnType = new GenericType() {}; + GenericType localVarReturnType = new GenericType() {}; return apiClient.invokeAPI("WhatsAppPhoneNumberApi.retrieveWhatsappProfilePhoto", localVarPath, "GET", localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, @@ -531,7 +527,7 @@ private APIretrieveWhatsappProfilePhotoRequest(String id) { /** * Execute retrieveWhatsappProfilePhoto request - * @return RetrieveWhatsAppProfilePhoto + * @return WhatsAppProfilePhoto * @throws ApiException if fails to make API call * @http.response.details @@ -542,13 +538,13 @@ private APIretrieveWhatsappProfilePhotoRequest(String id) { */ - public RetrieveWhatsAppProfilePhoto execute() throws ApiException { + public String execute() throws ApiException { return this.executeWithHttpInfo().getData(); } /** * Execute retrieveWhatsappProfilePhoto request with HTTP info returned - * @return ApiResponse<RetrieveWhatsAppProfilePhoto> + * @return ApiResponse<WhatsAppProfilePhoto> * @throws ApiException if fails to make API call * @http.response.details
@@ -558,7 +554,7 @@ public RetrieveWhatsAppProfilePhoto execute() throws ApiException {
*/ - public ApiResponse executeWithHttpInfo() throws ApiException { + public ApiResponse executeWithHttpInfo() throws ApiException { return retrieveWhatsappProfilePhotoWithHttpInfo(id); } } diff --git a/src/main/java/com/telnyx/sdk/api/WireGuardInterfacesApi.java b/src/main/java/com/telnyx/sdk/api/WireGuardInterfacesApi.java new file mode 100644 index 00000000..705b3591 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/api/WireGuardInterfacesApi.java @@ -0,0 +1,941 @@ +package com.telnyx.sdk.api; + +import com.telnyx.sdk.ApiException; +import com.telnyx.sdk.ApiClient; +import com.telnyx.sdk.ApiResponse; +import com.telnyx.sdk.Configuration; +import com.telnyx.sdk.Pair; + +import javax.ws.rs.core.GenericType; + +import com.telnyx.sdk.model.Errors; +import java.util.UUID; +import com.telnyx.sdk.model.WireguardInterfaceCreate; +import com.telnyx.sdk.model.WireguardInterfaceCreate202Response; +import com.telnyx.sdk.model.WireguardInterfaceList200Response; +import com.telnyx.sdk.model.WireguardPeerAllowedIPGet200Response; +import com.telnyx.sdk.model.WireguardPeerAllowedIPList200Response; +import com.telnyx.sdk.model.WireguardPeerCreate; +import com.telnyx.sdk.model.WireguardPeerCreate202Response; +import com.telnyx.sdk.model.WireguardPeerList200Response; +import com.telnyx.sdk.model.WireguardPeerPatch; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireGuardInterfacesApi { + private ApiClient apiClient; + + public WireGuardInterfacesApi() { + this(Configuration.getDefaultApiClient()); + } + + public WireGuardInterfacesApi(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Get the API client + * + * @return API client + */ + public ApiClient getApiClient() { + return apiClient; + } + + /** + * Set the API client + * + * @param apiClient an instance of API client + */ + public void setApiClient(ApiClient apiClient) { + this.apiClient = apiClient; + } + + /** + * Create a WireGuard Interface + * Create a new WireGuard Interface. Current limitation of 10 interfaces per user can be created. + * @param wireguardInterfaceCreate (required) + * @return WireguardInterfaceCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public WireguardInterfaceCreate202Response wireguardInterfaceCreate(WireguardInterfaceCreate wireguardInterfaceCreate) throws ApiException { + return wireguardInterfaceCreateWithHttpInfo(wireguardInterfaceCreate).getData(); + } + + /** + * Create a WireGuard Interface + * Create a new WireGuard Interface. Current limitation of 10 interfaces per user can be created. + * @param wireguardInterfaceCreate (required) + * @return ApiResponse<WireguardInterfaceCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse wireguardInterfaceCreateWithHttpInfo(WireguardInterfaceCreate wireguardInterfaceCreate) throws ApiException { + Object localVarPostBody = wireguardInterfaceCreate; + + // verify the required parameter 'wireguardInterfaceCreate' is set + if (wireguardInterfaceCreate == null) { + throw new ApiException(400, "Missing the required parameter 'wireguardInterfaceCreate' when calling wireguardInterfaceCreate"); + } + + // create path and map variables + String localVarPath = "/wireguard_interfaces"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardInterfaceCreate", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete a WireGuard Interface + * Delete a WireGuard Interface. + * @param id Identifies the resource. (required) + * @return WireguardInterfaceCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardInterfaceCreate202Response wireguardInterfaceDelete(UUID id) throws ApiException { + return wireguardInterfaceDeleteWithHttpInfo(id).getData(); + } + + /** + * Delete a WireGuard Interface + * Delete a WireGuard Interface. + * @param id Identifies the resource. (required) + * @return ApiResponse<WireguardInterfaceCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardInterfaceDeleteWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardInterfaceDelete"); + } + + // create path and map variables + String localVarPath = "/wireguard_interfaces/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardInterfaceDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve a WireGuard Interfaces + * Retrieve a WireGuard Interfaces. + * @param id Identifies the resource. (required) + * @return WireguardInterfaceCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardInterfaceCreate202Response wireguardInterfaceGet(UUID id) throws ApiException { + return wireguardInterfaceGetWithHttpInfo(id).getData(); + } + + /** + * Retrieve a WireGuard Interfaces + * Retrieve a WireGuard Interfaces. + * @param id Identifies the resource. (required) + * @return ApiResponse<WireguardInterfaceCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardInterfaceGetWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardInterfaceGet"); + } + + // create path and map variables + String localVarPath = "/wireguard_interfaces/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardInterfaceGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all WireGuard Interfaces + * List all WireGuard Interfaces. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterNetworkId The associated network id to filter on. (optional) + * @return WireguardInterfaceList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardInterfaceList200Response wireguardInterfaceList(Integer pageNumber, Integer pageSize, String filterNetworkId) throws ApiException { + return wireguardInterfaceListWithHttpInfo(pageNumber, pageSize, filterNetworkId).getData(); + } + + /** + * List all WireGuard Interfaces + * List all WireGuard Interfaces. + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterNetworkId The associated network id to filter on. (optional) + * @return ApiResponse<WireguardInterfaceList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardInterfaceListWithHttpInfo(Integer pageNumber, Integer pageSize, String filterNetworkId) throws ApiException { + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/wireguard_interfaces"; + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[network_id]", filterNetworkId)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardInterfaceList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve the Allowed IP + * Retrieve the Allowed IP. + * @param id Identifies the resource. (required) + * @param childId Identifies the child resource (required) + * @return WireguardPeerAllowedIPGet200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardPeerAllowedIPGet200Response wireguardPeerAllowedIPGet(UUID id, UUID childId) throws ApiException { + return wireguardPeerAllowedIPGetWithHttpInfo(id, childId).getData(); + } + + /** + * Retrieve the Allowed IP + * Retrieve the Allowed IP. + * @param id Identifies the resource. (required) + * @param childId Identifies the child resource (required) + * @return ApiResponse<WireguardPeerAllowedIPGet200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerAllowedIPGetWithHttpInfo(UUID id, UUID childId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerAllowedIPGet"); + } + + // verify the required parameter 'childId' is set + if (childId == null) { + throw new ApiException(400, "Missing the required parameter 'childId' when calling wireguardPeerAllowedIPGet"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers/{id}/allowed_ips/{child_id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())) + .replaceAll("\\{" + "child_id" + "\\}", apiClient.escapeString(childId.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerAllowedIPGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all Allowed IPs for a WireGuard Peer + * List all Allowed IPs for a WireGuard peer. + * @param id Identifies the resource. (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @return WireguardPeerAllowedIPList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardPeerAllowedIPList200Response wireguardPeerAllowedIPList(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + return wireguardPeerAllowedIPListWithHttpInfo(id, pageNumber, pageSize).getData(); + } + + /** + * List all Allowed IPs for a WireGuard Peer + * List all Allowed IPs for a WireGuard peer. + * @param id Identifies the resource. (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @return ApiResponse<WireguardPeerAllowedIPList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerAllowedIPListWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerAllowedIPList"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers/{id}/allowed_ips" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerAllowedIPList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve Wireguard config template for Peer + * Retrieve Wireguard config template for Peer + * @param id Identifies the resource. (required) + * @return String + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public String wireguardPeerConfig(UUID id) throws ApiException { + return wireguardPeerConfigWithHttpInfo(id).getData(); + } + + /** + * Retrieve Wireguard config template for Peer + * Retrieve Wireguard config template for Peer + * @param id Identifies the resource. (required) + * @return ApiResponse<String> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerConfigWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerConfig"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers/{id}/config" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "text/plain; charset=utf-8", "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerConfig", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Create a WireGuard Peer + * Create a new WireGuard Peer. Current limitation of 5 peers per interface can be created. + * @param id Identifies the resource. (required) + * @param wireguardPeerCreate (required) + * @return WireguardPeerCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public WireguardPeerCreate202Response wireguardPeerCreate(UUID id, WireguardPeerCreate wireguardPeerCreate) throws ApiException { + return wireguardPeerCreateWithHttpInfo(id, wireguardPeerCreate).getData(); + } + + /** + * Create a WireGuard Peer + * Create a new WireGuard Peer. Current limitation of 5 peers per interface can be created. + * @param id Identifies the resource. (required) + * @param wireguardPeerCreate (required) + * @return ApiResponse<WireguardPeerCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
202 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerCreateWithHttpInfo(UUID id, WireguardPeerCreate wireguardPeerCreate) throws ApiException { + Object localVarPostBody = wireguardPeerCreate; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerCreate"); + } + + // verify the required parameter 'wireguardPeerCreate' is set + if (wireguardPeerCreate == null) { + throw new ApiException(400, "Missing the required parameter 'wireguardPeerCreate' when calling wireguardPeerCreate"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerCreate", localVarPath, "POST", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Delete the WireGuard Peer + * Delete the WireGuard peer. + * @param id Identifies the resource. (required) + * @return WireguardPeerCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardPeerCreate202Response wireguardPeerDelete(UUID id) throws ApiException { + return wireguardPeerDeleteWithHttpInfo(id).getData(); + } + + /** + * Delete the WireGuard Peer + * Delete the WireGuard peer. + * @param id Identifies the resource. (required) + * @return ApiResponse<WireguardPeerCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerDeleteWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerDelete"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerDelete", localVarPath, "DELETE", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Retrieve the WireGuard Peer + * Retrieve the WireGuard peer. + * @param id Identifies the resource. (required) + * @return WireguardPeerCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardPeerCreate202Response wireguardPeerGet(UUID id) throws ApiException { + return wireguardPeerGetWithHttpInfo(id).getData(); + } + + /** + * Retrieve the WireGuard Peer + * Retrieve the WireGuard peer. + * @param id Identifies the resource. (required) + * @return ApiResponse<WireguardPeerCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerGetWithHttpInfo(UUID id) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerGet"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerGet", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * List all WireGuard Peers + * List all WireGuard peers. + * @param id Identifies the resource. (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterWireguardInterfaceId The id of the associated WireGuard interface to filter on. (optional) + * @return WireguardPeerList200Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public WireguardPeerList200Response wireguardPeerList(UUID id, Integer pageNumber, Integer pageSize, UUID filterWireguardInterfaceId) throws ApiException { + return wireguardPeerListWithHttpInfo(id, pageNumber, pageSize, filterWireguardInterfaceId).getData(); + } + + /** + * List all WireGuard Peers + * List all WireGuard peers. + * @param id Identifies the resource. (required) + * @param pageNumber The page number to load (optional, default to 1) + * @param pageSize The size of the page (optional, default to 20) + * @param filterWireguardInterfaceId The id of the associated WireGuard interface to filter on. (optional) + * @return ApiResponse<WireguardPeerList200Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + +
Status Code Description Response Headers
200 Successful response -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerListWithHttpInfo(UUID id, Integer pageNumber, Integer pageSize, UUID filterWireguardInterfaceId) throws ApiException { + Object localVarPostBody = null; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerList"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[number]", pageNumber)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "page[size]", pageSize)); + localVarQueryParams.addAll(apiClient.parameterToPairs("", "filter[wireguard_interface_id]", filterWireguardInterfaceId)); + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerList", localVarPath, "GET", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } + /** + * Update the WireGuard Peer + * Update the WireGuard peer. + * @param id Identifies the resource. (required) + * @param wireguardPeerPatch (required) + * @return WireguardPeerCreate202Response + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public WireguardPeerCreate202Response wireguardPeerUpdate(UUID id, WireguardPeerPatch wireguardPeerPatch) throws ApiException { + return wireguardPeerUpdateWithHttpInfo(id, wireguardPeerPatch).getData(); + } + + /** + * Update the WireGuard Peer + * Update the WireGuard peer. + * @param id Identifies the resource. (required) + * @param wireguardPeerPatch (required) + * @return ApiResponse<WireguardPeerCreate202Response> + * @throws ApiException if fails to make API call + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful response -
422 Unprocessable entity. Check the 'detail' field in response for details. -
0 Unexpected error -
+ */ + public ApiResponse wireguardPeerUpdateWithHttpInfo(UUID id, WireguardPeerPatch wireguardPeerPatch) throws ApiException { + Object localVarPostBody = wireguardPeerPatch; + + // verify the required parameter 'id' is set + if (id == null) { + throw new ApiException(400, "Missing the required parameter 'id' when calling wireguardPeerUpdate"); + } + + // verify the required parameter 'wireguardPeerPatch' is set + if (wireguardPeerPatch == null) { + throw new ApiException(400, "Missing the required parameter 'wireguardPeerPatch' when calling wireguardPeerUpdate"); + } + + // create path and map variables + String localVarPath = "/wireguard_peers/{id}" + .replaceAll("\\{" + "id" + "\\}", apiClient.escapeString(id.toString())); + + // query params + List localVarQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + + + + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = apiClient.selectHeaderAccept(localVarAccepts); + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = apiClient.selectHeaderContentType(localVarContentTypes); + + String[] localVarAuthNames = new String[] { "bearerAuth" }; + + GenericType localVarReturnType = new GenericType() {}; + + return apiClient.invokeAPI("WireGuardInterfacesApi.wireguardPeerUpdate", localVarPath, "PATCH", localVarQueryParams, localVarPostBody, + localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAccept, localVarContentType, + localVarAuthNames, localVarReturnType, false); + } +} diff --git a/src/main/java/com/telnyx/sdk/model/Action.java b/src/main/java/com/telnyx/sdk/model/Action.java new file mode 100644 index 00000000..853750c0 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Action.java @@ -0,0 +1,262 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveAction; +import com.telnyx.sdk.model.InteractiveButton; +import com.telnyx.sdk.model.InteractiveSection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Action you want the user to perform after reading the message. + */ +@ApiModel(description = "Action you want the user to perform after reading the message.") +@JsonPropertyOrder({ + Action.JSON_PROPERTY_BUTTON, + Action.JSON_PROPERTY_BUTTONS, + Action.JSON_PROPERTY_SECTIONS, + Action.JSON_PROPERTY_CATALOG_ID, + Action.JSON_PROPERTY_PRODUCT_RETAILER_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Action { + public static final String JSON_PROPERTY_BUTTON = "button"; + private String button; + + public static final String JSON_PROPERTY_BUTTONS = "buttons"; + private List buttons = null; + + public static final String JSON_PROPERTY_SECTIONS = "sections"; + private List sections = null; + + public static final String JSON_PROPERTY_CATALOG_ID = "catalog_id"; + private String catalogId; + + public static final String JSON_PROPERTY_PRODUCT_RETAILER_ID = "product_retailer_id"; + private String productRetailerId; + + public Action() { + } + + public Action button(String button) { + this.button = button; + return this; + } + + /** + * Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Required for List Messages. + * @return button + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Required for List Messages.") + @JsonProperty(JSON_PROPERTY_BUTTON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getButton() { + return button; + } + + + @JsonProperty(JSON_PROPERTY_BUTTON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setButton(String button) { + this.button = button; + } + + + public Action buttons(List buttons) { + this.buttons = buttons; + return this; + } + + public Action addButtonsItem(InteractiveButton buttonsItem) { + if (this.buttons == null) { + this.buttons = new ArrayList<>(); + } + this.buttons.add(buttonsItem); + return this; + } + + /** + * A list of buttons. Required for Reply Button Messages. + * @return buttons + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of buttons. Required for Reply Button Messages.") + @JsonProperty(JSON_PROPERTY_BUTTONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getButtons() { + return buttons; + } + + + @JsonProperty(JSON_PROPERTY_BUTTONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setButtons(List buttons) { + this.buttons = buttons; + } + + + public Action sections(List sections) { + this.sections = sections; + return this; + } + + public Action addSectionsItem(InteractiveSection sectionsItem) { + if (this.sections == null) { + this.sections = new ArrayList<>(); + } + this.sections.add(sectionsItem); + return this; + } + + /** + * Array of section objects. Required for List Messages and Multi-Product Messages. + * @return sections + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Array of section objects. Required for List Messages and Multi-Product Messages.") + @JsonProperty(JSON_PROPERTY_SECTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getSections() { + return sections; + } + + + @JsonProperty(JSON_PROPERTY_SECTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSections(List sections) { + this.sections = sections; + } + + + public Action catalogId(String catalogId) { + this.catalogId = catalogId; + return this; + } + + /** + * Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. This ID can be retrieved via Commerce Manager. Required for Single Product Messages and Multi-Product Messages. + * @return catalogId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. This ID can be retrieved via Commerce Manager. Required for Single Product Messages and Multi-Product Messages.") + @JsonProperty(JSON_PROPERTY_CATALOG_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCatalogId() { + return catalogId; + } + + + @JsonProperty(JSON_PROPERTY_CATALOG_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCatalogId(String catalogId) { + this.catalogId = catalogId; + } + + + public Action productRetailerId(String productRetailerId) { + this.productRetailerId = productRetailerId; + return this; + } + + /** + * Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name. + * @return productRetailerId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name.") + @JsonProperty(JSON_PROPERTY_PRODUCT_RETAILER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getProductRetailerId() { + return productRetailerId; + } + + + @JsonProperty(JSON_PROPERTY_PRODUCT_RETAILER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProductRetailerId(String productRetailerId) { + this.productRetailerId = productRetailerId; + } + + + /** + * Return true if this Action object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Action action = (Action) o; + return Objects.equals(this.button, action.button) && + Objects.equals(this.buttons, action.buttons) && + Objects.equals(this.sections, action.sections) && + Objects.equals(this.catalogId, action.catalogId) && + Objects.equals(this.productRetailerId, action.productRetailerId); + } + + @Override + public int hashCode() { + return Objects.hash(button, buttons, sections, catalogId, productRetailerId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Action {\n"); + sb.append(" button: ").append(toIndentedString(button)).append("\n"); + sb.append(" buttons: ").append(toIndentedString(buttons)).append("\n"); + sb.append(" sections: ").append(toIndentedString(sections)).append("\n"); + sb.append(" catalogId: ").append(toIndentedString(catalogId)).append("\n"); + sb.append(" productRetailerId: ").append(toIndentedString(productRetailerId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ActionsParticipantsRequest.java b/src/main/java/com/telnyx/sdk/model/ActionsParticipantsRequest.java index 84ab87f2..09c11266 100644 --- a/src/main/java/com/telnyx/sdk/model/ActionsParticipantsRequest.java +++ b/src/main/java/com/telnyx/sdk/model/ActionsParticipantsRequest.java @@ -22,16 +22,11 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.OneOfstringarray; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; import java.util.List; import java.util.UUID; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -46,7 +41,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ActionsParticipantsRequest { public static final String JSON_PROPERTY_PARTICIPANTS = "participants"; - private JsonNullable participants = JsonNullable.undefined(); + private String participants; public static final String JSON_PROPERTY_EXCLUDE = "exclude"; private List exclude = null; @@ -54,39 +49,31 @@ public class ActionsParticipantsRequest { public ActionsParticipantsRequest() { } - public ActionsParticipantsRequest participants(OneOfstringarray participants) { - this.participants = JsonNullable.of(participants); + public ActionsParticipantsRequest participants(String participants) { + this.participants = participants; return this; } /** - * Either a list of participant id to perform the action on, or the keyword \"all\" to perform the action on all participant. + * Get participants * @return participants **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Either a list of participant id to perform the action on, or the keyword \"all\" to perform the action on all participant.") - @JsonIgnore - - public OneOfstringarray getParticipants() { - return participants.orElse(null); - } - + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_PARTICIPANTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getParticipants_JsonNullable() { + public String getParticipants() { return participants; } - + + @JsonProperty(JSON_PROPERTY_PARTICIPANTS) - public void setParticipants_JsonNullable(JsonNullable participants) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setParticipants(String participants) { this.participants = participants; } - public void setParticipants(OneOfstringarray participants) { - this.participants = JsonNullable.of(participants); - } - public ActionsParticipantsRequest exclude(List exclude) { this.exclude = exclude; @@ -134,24 +121,13 @@ public boolean equals(Object o) { return false; } ActionsParticipantsRequest actionsParticipantsRequest = (ActionsParticipantsRequest) o; - return equalsNullable(this.participants, actionsParticipantsRequest.participants) && + return Objects.equals(this.participants, actionsParticipantsRequest.participants) && Objects.equals(this.exclude, actionsParticipantsRequest.exclude); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { - return Objects.hash(hashCodeNullable(participants), exclude); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(participants, exclude); } @Override diff --git a/src/main/java/com/telnyx/sdk/model/ActivatePortingOrder202Response.java b/src/main/java/com/telnyx/sdk/model/ActivatePortingOrder202Response.java new file mode 100644 index 00000000..b9246acf --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ActivatePortingOrder202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrdersActivationJob; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ActivatePortingOrder202Response + */ +@JsonPropertyOrder({ + ActivatePortingOrder202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ActivatePortingOrder202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortingOrdersActivationJob data; + + public ActivatePortingOrder202Response() { + } + + public ActivatePortingOrder202Response data(PortingOrdersActivationJob data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortingOrdersActivationJob getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortingOrdersActivationJob data) { + this.data = data; + } + + + /** + * Return true if this activatePortingOrder_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivatePortingOrder202Response activatePortingOrder202Response = (ActivatePortingOrder202Response) o; + return Objects.equals(this.data, activatePortingOrder202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActivatePortingOrder202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/AssignPhoneNumberRequest.java b/src/main/java/com/telnyx/sdk/model/AssignPhoneNumberRequest.java new file mode 100644 index 00000000..42306144 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/AssignPhoneNumberRequest.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * AssignPhoneNumberRequest + */ +@JsonPropertyOrder({ + AssignPhoneNumberRequest.JSON_PROPERTY_PHONE_NUMBER +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class AssignPhoneNumberRequest { + public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number"; + private String phoneNumber; + + public AssignPhoneNumberRequest() { + } + + public AssignPhoneNumberRequest phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Get phoneNumber + * @return phoneNumber + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "+15554441234", required = true, value = "") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPhoneNumber() { + return phoneNumber; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + /** + * Return true if this assignPhoneNumber_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AssignPhoneNumberRequest assignPhoneNumberRequest = (AssignPhoneNumberRequest) o; + return Objects.equals(this.phoneNumber, assignPhoneNumberRequest.phoneNumber); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AssignPhoneNumberRequest {\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Body.java b/src/main/java/com/telnyx/sdk/model/Body.java new file mode 100644 index 00000000..42cd32ee --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Body.java @@ -0,0 +1,114 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveBody; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * The body of the message. Emojis and markdown are supported. Optional for type product. Required for other message types. + */ +@ApiModel(description = "The body of the message. Emojis and markdown are supported. Optional for type product. Required for other message types.") +@JsonPropertyOrder({ + Body.JSON_PROPERTY_TEXT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Body { + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public Body() { + } + + public Body text(String text) { + this.text = text; + return this; + } + + /** + * The body content of the message. Emojis and markdown are supported. Links are supported. + * @return text + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The body content of the message. Emojis and markdown are supported. Links are supported.") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setText(String text) { + this.text = text; + } + + + /** + * Return true if this Body object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Body body = (Body) o; + return Objects.equals(this.text, body.text); + } + + @Override + public int hashCode() { + return Objects.hash(text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Body {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BulkSIMCardAction.java b/src/main/java/com/telnyx/sdk/model/BulkSIMCardAction.java new file mode 100644 index 00000000..58b03bbf --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BulkSIMCardAction.java @@ -0,0 +1,265 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * This object represents a bulk SIM card action. It groups SIM card actions created through a bulk endpoint under a single resource for further lookup. + */ +@ApiModel(description = "This object represents a bulk SIM card action. It groups SIM card actions created through a bulk endpoint under a single resource for further lookup.") +@JsonPropertyOrder({ + BulkSIMCardAction.JSON_PROPERTY_ID, + BulkSIMCardAction.JSON_PROPERTY_RECORD_TYPE, + BulkSIMCardAction.JSON_PROPERTY_ACTION_TYPE, + BulkSIMCardAction.JSON_PROPERTY_SETTINGS, + BulkSIMCardAction.JSON_PROPERTY_CREATED_AT, + BulkSIMCardAction.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkSIMCardAction { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + /** + * The operation type. It can be one of the following: <br/> <ul> <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM card</li> </ul> + */ + public enum ActionTypeEnum { + BULK_SET_PUBLIC_IPS("bulk_set_public_ips"); + + private String value; + + ActionTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionTypeEnum fromValue(String value) { + for (ActionTypeEnum b : ActionTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_ACTION_TYPE = "action_type"; + private ActionTypeEnum actionType; + + public static final String JSON_PROPERTY_SETTINGS = "settings"; + private Object settings; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public BulkSIMCardAction() { + } + + @JsonCreator + public BulkSIMCardAction( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ACTION_TYPE) ActionTypeEnum actionType, + @JsonProperty(JSON_PROPERTY_SETTINGS) Object settings, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.actionType = actionType; + this.settings = settings; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "bulk_sim_card_action", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * The operation type. It can be one of the following: <br/> <ul> <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM card</li> </ul> + * @return actionType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "bulk_set_public_ips", value = "The operation type. It can be one of the following:
  • bulk_set_public_ips - set a public IP for each specified SIM card
") + @JsonProperty(JSON_PROPERTY_ACTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ActionTypeEnum getActionType() { + return actionType; + } + + + + + /** + * A JSON object representation of the bulk action payload. + * @return settings + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "{}", value = "A JSON object representation of the bulk action payload.") + @JsonProperty(JSON_PROPERTY_SETTINGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getSettings() { + return settings; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + /** + * Return true if this BulkSIMCardAction object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkSIMCardAction bulkSIMCardAction = (BulkSIMCardAction) o; + return Objects.equals(this.id, bulkSIMCardAction.id) && + Objects.equals(this.recordType, bulkSIMCardAction.recordType) && + Objects.equals(this.actionType, bulkSIMCardAction.actionType) && + Objects.equals(this.settings, bulkSIMCardAction.settings) && + Objects.equals(this.createdAt, bulkSIMCardAction.createdAt) && + Objects.equals(this.updatedAt, bulkSIMCardAction.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, actionType, settings, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkSIMCardAction {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" actionType: ").append(toIndentedString(actionType)).append("\n"); + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BulkSIMCardActionDetailed.java b/src/main/java/com/telnyx/sdk/model/BulkSIMCardActionDetailed.java new file mode 100644 index 00000000..953e8f09 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BulkSIMCardActionDetailed.java @@ -0,0 +1,307 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardActionsSummary; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * BulkSIMCardActionDetailed + */ +@JsonPropertyOrder({ + BulkSIMCardActionDetailed.JSON_PROPERTY_ID, + BulkSIMCardActionDetailed.JSON_PROPERTY_RECORD_TYPE, + BulkSIMCardActionDetailed.JSON_PROPERTY_ACTION_TYPE, + BulkSIMCardActionDetailed.JSON_PROPERTY_SETTINGS, + BulkSIMCardActionDetailed.JSON_PROPERTY_SIM_CARD_ACTIONS_SUMMARY, + BulkSIMCardActionDetailed.JSON_PROPERTY_CREATED_AT, + BulkSIMCardActionDetailed.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkSIMCardActionDetailed { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + /** + * The operation type. It can be one of the following: <br/> <ul> <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM card</li> </ul> + */ + public enum ActionTypeEnum { + BULK_SET_PUBLIC_IPS("bulk_set_public_ips"); + + private String value; + + ActionTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ActionTypeEnum fromValue(String value) { + for (ActionTypeEnum b : ActionTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_ACTION_TYPE = "action_type"; + private ActionTypeEnum actionType; + + public static final String JSON_PROPERTY_SETTINGS = "settings"; + private Object settings; + + public static final String JSON_PROPERTY_SIM_CARD_ACTIONS_SUMMARY = "sim_card_actions_summary"; + private List simCardActionsSummary = null; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public BulkSIMCardActionDetailed() { + } + + @JsonCreator + public BulkSIMCardActionDetailed( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ACTION_TYPE) ActionTypeEnum actionType, + @JsonProperty(JSON_PROPERTY_SETTINGS) Object settings, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.actionType = actionType; + this.settings = settings; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "bulk_sim_card_action", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * The operation type. It can be one of the following: <br/> <ul> <li><code>bulk_set_public_ips</code> - set a public IP for each specified SIM card</li> </ul> + * @return actionType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "bulk_set_public_ips", value = "The operation type. It can be one of the following:
  • bulk_set_public_ips - set a public IP for each specified SIM card
") + @JsonProperty(JSON_PROPERTY_ACTION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ActionTypeEnum getActionType() { + return actionType; + } + + + + + /** + * A JSON object representation of the bulk action payload. + * @return settings + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "{}", value = "A JSON object representation of the bulk action payload.") + @JsonProperty(JSON_PROPERTY_SETTINGS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getSettings() { + return settings; + } + + + + + public BulkSIMCardActionDetailed simCardActionsSummary(List simCardActionsSummary) { + this.simCardActionsSummary = simCardActionsSummary; + return this; + } + + public BulkSIMCardActionDetailed addSimCardActionsSummaryItem(SIMCardActionsSummary simCardActionsSummaryItem) { + if (this.simCardActionsSummary == null) { + this.simCardActionsSummary = new ArrayList<>(); + } + this.simCardActionsSummary.add(simCardActionsSummaryItem); + return this; + } + + /** + * Get simCardActionsSummary + * @return simCardActionsSummary + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SIM_CARD_ACTIONS_SUMMARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getSimCardActionsSummary() { + return simCardActionsSummary; + } + + + @JsonProperty(JSON_PROPERTY_SIM_CARD_ACTIONS_SUMMARY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSimCardActionsSummary(List simCardActionsSummary) { + this.simCardActionsSummary = simCardActionsSummary; + } + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + /** + * Return true if this BulkSIMCardActionDetailed object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkSIMCardActionDetailed bulkSIMCardActionDetailed = (BulkSIMCardActionDetailed) o; + return Objects.equals(this.id, bulkSIMCardActionDetailed.id) && + Objects.equals(this.recordType, bulkSIMCardActionDetailed.recordType) && + Objects.equals(this.actionType, bulkSIMCardActionDetailed.actionType) && + Objects.equals(this.settings, bulkSIMCardActionDetailed.settings) && + Objects.equals(this.simCardActionsSummary, bulkSIMCardActionDetailed.simCardActionsSummary) && + Objects.equals(this.createdAt, bulkSIMCardActionDetailed.createdAt) && + Objects.equals(this.updatedAt, bulkSIMCardActionDetailed.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, actionType, settings, simCardActionsSummary, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkSIMCardActionDetailed {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" actionType: ").append(toIndentedString(actionType)).append("\n"); + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append(" simCardActionsSummary: ").append(toIndentedString(simCardActionsSummary)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202Response.java b/src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202Response.java new file mode 100644 index 00000000..e8413c5e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202Response.java @@ -0,0 +1,164 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Error; +import com.telnyx.sdk.model.SIMCardNetworkPreferenceWithOTAUpdates; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * BulkSIMCardNetworkPreferences202Response + */ +@JsonPropertyOrder({ + BulkSIMCardNetworkPreferences202Response.JSON_PROPERTY_DATA, + BulkSIMCardNetworkPreferences202Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkSIMCardNetworkPreferences202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public BulkSIMCardNetworkPreferences202Response() { + } + + public BulkSIMCardNetworkPreferences202Response data(List data) { + this.data = data; + return this; + } + + public BulkSIMCardNetworkPreferences202Response addDataItem(SIMCardNetworkPreferenceWithOTAUpdates dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Multi requested SIM cards network preferences. + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Multi requested SIM cards network preferences.") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public BulkSIMCardNetworkPreferences202Response errors(List errors) { + this.errors = errors; + return this; + } + + public BulkSIMCardNetworkPreferences202Response addErrorsItem(Error errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this BulkSIMCardNetworkPreferences_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkSIMCardNetworkPreferences202Response bulkSIMCardNetworkPreferences202Response = (BulkSIMCardNetworkPreferences202Response) o; + return Objects.equals(this.data, bulkSIMCardNetworkPreferences202Response.data) && + Objects.equals(this.errors, bulkSIMCardNetworkPreferences202Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(data, errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkSIMCardNetworkPreferences202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequest.java b/src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequest.java new file mode 100644 index 00000000..b0ddb7ae --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequest.java @@ -0,0 +1,164 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MobileOperatorNetworkPreferencesRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * BulkSIMCardNetworkPreferencesRequest + */ +@JsonPropertyOrder({ + BulkSIMCardNetworkPreferencesRequest.JSON_PROPERTY_SIM_CARD_IDS, + BulkSIMCardNetworkPreferencesRequest.JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkSIMCardNetworkPreferencesRequest { + public static final String JSON_PROPERTY_SIM_CARD_IDS = "sim_card_ids"; + private List simCardIds = null; + + public static final String JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES = "mobile_operator_networks_preferences"; + private List mobileOperatorNetworksPreferences = null; + + public BulkSIMCardNetworkPreferencesRequest() { + } + + public BulkSIMCardNetworkPreferencesRequest simCardIds(List simCardIds) { + this.simCardIds = simCardIds; + return this; + } + + public BulkSIMCardNetworkPreferencesRequest addSimCardIdsItem(UUID simCardIdsItem) { + if (this.simCardIds == null) { + this.simCardIds = new ArrayList<>(); + } + this.simCardIds.add(simCardIdsItem); + return this; + } + + /** + * Get simCardIds + * @return simCardIds + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[\"6b14e151-8493-4fa1-8664-1cc4e6d14158\",\"6b14e151-8493-4fa1-8664-1cc4e6d14158\"]", value = "") + @JsonProperty(JSON_PROPERTY_SIM_CARD_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getSimCardIds() { + return simCardIds; + } + + + @JsonProperty(JSON_PROPERTY_SIM_CARD_IDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSimCardIds(List simCardIds) { + this.simCardIds = simCardIds; + } + + + public BulkSIMCardNetworkPreferencesRequest mobileOperatorNetworksPreferences(List mobileOperatorNetworksPreferences) { + this.mobileOperatorNetworksPreferences = mobileOperatorNetworksPreferences; + return this; + } + + public BulkSIMCardNetworkPreferencesRequest addMobileOperatorNetworksPreferencesItem(MobileOperatorNetworkPreferencesRequest mobileOperatorNetworksPreferencesItem) { + if (this.mobileOperatorNetworksPreferences == null) { + this.mobileOperatorNetworksPreferences = new ArrayList<>(); + } + this.mobileOperatorNetworksPreferences.add(mobileOperatorNetworksPreferencesItem); + return this; + } + + /** + * A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. + * @return mobileOperatorNetworksPreferences + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network.") + @JsonProperty(JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getMobileOperatorNetworksPreferences() { + return mobileOperatorNetworksPreferences; + } + + + @JsonProperty(JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMobileOperatorNetworksPreferences(List mobileOperatorNetworksPreferences) { + this.mobileOperatorNetworksPreferences = mobileOperatorNetworksPreferences; + } + + + /** + * Return true if this BulkSIMCardNetworkPreferences_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkSIMCardNetworkPreferencesRequest bulkSIMCardNetworkPreferencesRequest = (BulkSIMCardNetworkPreferencesRequest) o; + return Objects.equals(this.simCardIds, bulkSIMCardNetworkPreferencesRequest.simCardIds) && + Objects.equals(this.mobileOperatorNetworksPreferences, bulkSIMCardNetworkPreferencesRequest.mobileOperatorNetworksPreferences); + } + + @Override + public int hashCode() { + return Objects.hash(simCardIds, mobileOperatorNetworksPreferences); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkSIMCardNetworkPreferencesRequest {\n"); + sb.append(" simCardIds: ").append(toIndentedString(simCardIds)).append("\n"); + sb.append(" mobileOperatorNetworksPreferences: ").append(toIndentedString(mobileOperatorNetworksPreferences)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BulkSetPublicIPs202Response.java b/src/main/java/com/telnyx/sdk/model/BulkSetPublicIPs202Response.java new file mode 100644 index 00000000..111beb79 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BulkSetPublicIPs202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BulkSIMCardAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * BulkSetPublicIPs202Response + */ +@JsonPropertyOrder({ + BulkSetPublicIPs202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkSetPublicIPs202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private BulkSIMCardAction data; + + public BulkSetPublicIPs202Response() { + } + + public BulkSetPublicIPs202Response data(BulkSIMCardAction data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BulkSIMCardAction getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(BulkSIMCardAction data) { + this.data = data; + } + + + /** + * Return true if this BulkSetPublicIPs_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkSetPublicIPs202Response bulkSetPublicIPs202Response = (BulkSetPublicIPs202Response) o; + return Objects.equals(this.data, bulkSetPublicIPs202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkSetPublicIPs202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BulkSetPublicIPsRequest.java b/src/main/java/com/telnyx/sdk/model/BulkSetPublicIPsRequest.java new file mode 100644 index 00000000..272ebbfe --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BulkSetPublicIPsRequest.java @@ -0,0 +1,120 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * BulkSetPublicIPsRequest + */ +@JsonPropertyOrder({ + BulkSetPublicIPsRequest.JSON_PROPERTY_SIM_CARD_IDS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkSetPublicIPsRequest { + public static final String JSON_PROPERTY_SIM_CARD_IDS = "sim_card_ids"; + private List simCardIds = new ArrayList<>(); + + public BulkSetPublicIPsRequest() { + } + + public BulkSetPublicIPsRequest simCardIds(List simCardIds) { + this.simCardIds = simCardIds; + return this; + } + + public BulkSetPublicIPsRequest addSimCardIdsItem(UUID simCardIdsItem) { + this.simCardIds.add(simCardIdsItem); + return this; + } + + /** + * Get simCardIds + * @return simCardIds + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[\"6b14e151-8493-4fa1-8664-1cc4e6d14158\"]", required = true, value = "") + @JsonProperty(JSON_PROPERTY_SIM_CARD_IDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getSimCardIds() { + return simCardIds; + } + + + @JsonProperty(JSON_PROPERTY_SIM_CARD_IDS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSimCardIds(List simCardIds) { + this.simCardIds = simCardIds; + } + + + /** + * Return true if this BulkSetPublicIPs_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkSetPublicIPsRequest bulkSetPublicIPsRequest = (BulkSetPublicIPsRequest) o; + return Objects.equals(this.simCardIds, bulkSetPublicIPsRequest.simCardIds); + } + + @Override + public int hashCode() { + return Objects.hash(simCardIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkSetPublicIPsRequest {\n"); + sb.append(" simCardIds: ").append(toIndentedString(simCardIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BulkSimCardActionGet200Response.java b/src/main/java/com/telnyx/sdk/model/BulkSimCardActionGet200Response.java new file mode 100644 index 00000000..53296442 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BulkSimCardActionGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BulkSIMCardActionDetailed; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * BulkSimCardActionGet200Response + */ +@JsonPropertyOrder({ + BulkSimCardActionGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BulkSimCardActionGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private BulkSIMCardActionDetailed data; + + public BulkSimCardActionGet200Response() { + } + + public BulkSimCardActionGet200Response data(BulkSIMCardActionDetailed data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BulkSIMCardActionDetailed getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(BulkSIMCardActionDetailed data) { + this.data = data; + } + + + /** + * Return true if this BulkSimCardActionGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BulkSimCardActionGet200Response bulkSimCardActionGet200Response = (BulkSimCardActionGet200Response) o; + return Objects.equals(this.data, bulkSimCardActionGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BulkSimCardActionGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/BusinessIdentity.java b/src/main/java/com/telnyx/sdk/model/BusinessIdentity.java index 0d8bceb6..2c142bbb 100644 --- a/src/main/java/com/telnyx/sdk/model/BusinessIdentity.java +++ b/src/main/java/com/telnyx/sdk/model/BusinessIdentity.java @@ -23,7 +23,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.BusinessIdentityAddress; -import com.telnyx.sdk.model.BusinessIdentityContacts; +import com.telnyx.sdk.model.BusinessIdentityContactsInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; @@ -88,7 +88,7 @@ public class BusinessIdentity { private BusinessIdentityAddress address; public static final String JSON_PROPERTY_CONTACTS = "contacts"; - private List contacts = null; + private List contacts = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private String createdAt; @@ -99,6 +99,22 @@ public class BusinessIdentity { public BusinessIdentity() { } + @JsonCreator + public BusinessIdentity( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_ORGANIZATION_ID) UUID organizationId, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.recordType = recordType; + this.id = id; + this.organizationId = organizationId; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get recordType * @return recordType @@ -363,12 +379,12 @@ public void setAddress(BusinessIdentityAddress address) { } - public BusinessIdentity contacts(List contacts) { + public BusinessIdentity contacts(List contacts) { this.contacts = contacts; return this; } - public BusinessIdentity addContactsItem(BusinessIdentityContacts contactsItem) { + public BusinessIdentity addContactsItem(BusinessIdentityContactsInner contactsItem) { if (this.contacts == null) { this.contacts = new ArrayList<>(); } @@ -385,14 +401,14 @@ public BusinessIdentity addContactsItem(BusinessIdentityContacts contactsItem) { @JsonProperty(JSON_PROPERTY_CONTACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getContacts() { + public List getContacts() { return contacts; } @JsonProperty(JSON_PROPERTY_CONTACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContacts(List contacts) { + public void setContacts(List contacts) { this.contacts = contacts; } diff --git a/src/main/java/com/telnyx/sdk/model/BusinessIdentityAddress.java b/src/main/java/com/telnyx/sdk/model/BusinessIdentityAddress.java index 359de78f..3304f855 100644 --- a/src/main/java/com/telnyx/sdk/model/BusinessIdentityAddress.java +++ b/src/main/java/com/telnyx/sdk/model/BusinessIdentityAddress.java @@ -72,6 +72,16 @@ public class BusinessIdentityAddress { public BusinessIdentityAddress() { } + @JsonCreator + public BusinessIdentityAddress( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.recordType = recordType; + this.id = id; + } + /** * Get recordType * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/BusinessIdentityContactsInner.java b/src/main/java/com/telnyx/sdk/model/BusinessIdentityContactsInner.java new file mode 100644 index 00000000..0cb5bef4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/BusinessIdentityContactsInner.java @@ -0,0 +1,296 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * A contact person for the business + */ +@ApiModel(description = "A contact person for the business") +@JsonPropertyOrder({ + BusinessIdentityContactsInner.JSON_PROPERTY_RECORD_TYPE, + BusinessIdentityContactsInner.JSON_PROPERTY_ID, + BusinessIdentityContactsInner.JSON_PROPERTY_EMAIL, + BusinessIdentityContactsInner.JSON_PROPERTY_FIRST_NAME, + BusinessIdentityContactsInner.JSON_PROPERTY_JOB_TITLE, + BusinessIdentityContactsInner.JSON_PROPERTY_LAST_NAME, + BusinessIdentityContactsInner.JSON_PROPERTY_PHONE_NUMBER +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class BusinessIdentityContactsInner { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_EMAIL = "email"; + private String email; + + public static final String JSON_PROPERTY_FIRST_NAME = "first_name"; + private String firstName; + + public static final String JSON_PROPERTY_JOB_TITLE = "job_title"; + private String jobTitle; + + public static final String JSON_PROPERTY_LAST_NAME = "last_name"; + private String lastName; + + public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number"; + private String phoneNumber; + + public BusinessIdentityContactsInner() { + } + + @JsonCreator + public BusinessIdentityContactsInner( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.recordType = recordType; + this.id = id; + } + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "contact", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "c6feda4e-6501-4db9-a21f-665e5b4ce2ba", value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + public BusinessIdentityContactsInner email(String email) { + this.email = email; + return this; + } + + /** + * Get email + * @return email + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "johnsmith@telnyx.com", value = "") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEmail() { + return email; + } + + + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(String email) { + this.email = email; + } + + + public BusinessIdentityContactsInner firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * Get firstName + * @return firstName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "John", value = "") + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFirstName() { + return firstName; + } + + + @JsonProperty(JSON_PROPERTY_FIRST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + + public BusinessIdentityContactsInner jobTitle(String jobTitle) { + this.jobTitle = jobTitle; + return this; + } + + /** + * Get jobTitle + * @return jobTitle + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "CEO", value = "") + @JsonProperty(JSON_PROPERTY_JOB_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getJobTitle() { + return jobTitle; + } + + + @JsonProperty(JSON_PROPERTY_JOB_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setJobTitle(String jobTitle) { + this.jobTitle = jobTitle; + } + + + public BusinessIdentityContactsInner lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * Get lastName + * @return lastName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Smith", value = "") + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLastName() { + return lastName; + } + + + @JsonProperty(JSON_PROPERTY_LAST_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLastName(String lastName) { + this.lastName = lastName; + } + + + public BusinessIdentityContactsInner phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Get phoneNumber + * @return phoneNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "+12345678900", value = "") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPhoneNumber() { + return phoneNumber; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + /** + * Return true if this BusinessIdentity_contacts_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BusinessIdentityContactsInner businessIdentityContactsInner = (BusinessIdentityContactsInner) o; + return Objects.equals(this.recordType, businessIdentityContactsInner.recordType) && + Objects.equals(this.id, businessIdentityContactsInner.id) && + Objects.equals(this.email, businessIdentityContactsInner.email) && + Objects.equals(this.firstName, businessIdentityContactsInner.firstName) && + Objects.equals(this.jobTitle, businessIdentityContactsInner.jobTitle) && + Objects.equals(this.lastName, businessIdentityContactsInner.lastName) && + Objects.equals(this.phoneNumber, businessIdentityContactsInner.phoneNumber); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, id, email, firstName, jobTitle, lastName, phoneNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BusinessIdentityContactsInner {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" jobTitle: ").append(toIndentedString(jobTitle)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Button.java b/src/main/java/com/telnyx/sdk/model/Button.java new file mode 100644 index 00000000..d46fbb68 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Button.java @@ -0,0 +1,184 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonParameter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Button + */ +@JsonPropertyOrder({ + Button.JSON_PROPERTY_SUB_TYPE, + Button.JSON_PROPERTY_INDEX, + Button.JSON_PROPERTY_PARAMETERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Button { + public static final String JSON_PROPERTY_SUB_TYPE = "sub_type"; + private Object subType = null; + + public static final String JSON_PROPERTY_INDEX = "index"; + private Integer index; + + public static final String JSON_PROPERTY_PARAMETERS = "parameters"; + private List parameters = new ArrayList<>(); + + public Button() { + } + + public Button subType(Object subType) { + this.subType = subType; + return this; + } + + /** + * Type of button being created. + * @return subType + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "Type of button being created.") + @JsonProperty(JSON_PROPERTY_SUB_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Object getSubType() { + return subType; + } + + + @JsonProperty(JSON_PROPERTY_SUB_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSubType(Object subType) { + this.subType = subType; + } + + + public Button index(Integer index) { + this.index = index; + return this; + } + + /** + * Position index of the button. You can have up to 3 buttons using index values of 0-2. + * @return index + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Position index of the button. You can have up to 3 buttons using index values of 0-2.") + @JsonProperty(JSON_PROPERTY_INDEX) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getIndex() { + return index; + } + + + @JsonProperty(JSON_PROPERTY_INDEX) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIndex(Integer index) { + this.index = index; + } + + + public Button parameters(List parameters) { + this.parameters = parameters; + return this; + } + + public Button addParametersItem(ButtonParameter parametersItem) { + this.parameters.add(parametersItem); + return this; + } + + /** + * The parameters for the button, which are set at creation time in your Business Manager. + * @return parameters + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The parameters for the button, which are set at creation time in your Business Manager.") + @JsonProperty(JSON_PROPERTY_PARAMETERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getParameters() { + return parameters; + } + + + @JsonProperty(JSON_PROPERTY_PARAMETERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setParameters(List parameters) { + this.parameters = parameters; + } + + + /** + * Return true if this Button object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Button button = (Button) o; + return Objects.equals(this.subType, button.subType) && + Objects.equals(this.index, button.index) && + Objects.equals(this.parameters, button.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(subType, index, parameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Button {\n"); + sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ButtonComponentType.java b/src/main/java/com/telnyx/sdk/model/ButtonComponentType.java new file mode 100644 index 00000000..78105e6d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ButtonComponentType.java @@ -0,0 +1,61 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * An enumeration. + */ +public enum ButtonComponentType { + + BUTTON("button"); + + private String value; + + ButtonComponentType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ButtonComponentType fromValue(String value) { + for (ButtonComponentType b : ButtonComponentType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/telnyx/sdk/model/ButtonParameter.java b/src/main/java/com/telnyx/sdk/model/ButtonParameter.java new file mode 100644 index 00000000..3830e703 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ButtonParameter.java @@ -0,0 +1,207 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ButtonParameter + */ +@JsonPropertyOrder({ + ButtonParameter.JSON_PROPERTY_TYPE, + ButtonParameter.JSON_PROPERTY_PAYLOAD, + ButtonParameter.JSON_PROPERTY_TEXT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ButtonParameter { + public static final String JSON_PROPERTY_TYPE = "type"; + private Object type = null; + + public static final String JSON_PROPERTY_PAYLOAD = "payload"; + private JsonNullable payload = JsonNullable.of(null); + + public static final String JSON_PROPERTY_TEXT = "text"; + private JsonNullable text = JsonNullable.of(null); + + public ButtonParameter() { + } + + public ButtonParameter type(Object type) { + this.type = type; + return this; + } + + /** + * Indicates the type of parameter for the button. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "Indicates the type of parameter for the button.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Object getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(Object type) { + this.type = type; + } + + + public ButtonParameter payload(Object payload) { + this.payload = JsonNullable.of(payload); + return this; + } + + /** + * Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button. Required for quick_reply buttons. + * @return payload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button. Required for quick_reply buttons.") + @JsonIgnore + + public Object getPayload() { + return payload.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_PAYLOAD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getPayload_JsonNullable() { + return payload; + } + + @JsonProperty(JSON_PROPERTY_PAYLOAD) + public void setPayload_JsonNullable(JsonNullable payload) { + this.payload = payload; + } + + public void setPayload(Object payload) { + this.payload = JsonNullable.of(payload); + } + + + public ButtonParameter text(Object text) { + this.text = JsonNullable.of(text); + return this; + } + + /** + * Developer provided suffix that will be appended to a previously created dynamic URL button. Required for url buttons. + * @return text + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Developer provided suffix that will be appended to a previously created dynamic URL button. Required for url buttons.") + @JsonIgnore + + public Object getText() { + return text.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getText_JsonNullable() { + return text; + } + + @JsonProperty(JSON_PROPERTY_TEXT) + public void setText_JsonNullable(JsonNullable text) { + this.text = text; + } + + public void setText(Object text) { + this.text = JsonNullable.of(text); + } + + + /** + * Return true if this ButtonParameter object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ButtonParameter buttonParameter = (ButtonParameter) o; + return Objects.equals(this.type, buttonParameter.type) && + equalsNullable(this.payload, buttonParameter.payload) && + equalsNullable(this.text, buttonParameter.text); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, hashCodeNullable(payload), hashCodeNullable(text)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ButtonParameter {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ButtonParameterType.java b/src/main/java/com/telnyx/sdk/model/ButtonParameterType.java new file mode 100644 index 00000000..344f548e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ButtonParameterType.java @@ -0,0 +1,63 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * An enumeration. + */ +public enum ButtonParameterType { + + PAYLOAD("payload"), + + TEXT("text"); + + private String value; + + ButtonParameterType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ButtonParameterType fromValue(String value) { + for (ButtonParameterType b : ButtonParameterType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/telnyx/sdk/model/ButtonSubtype.java b/src/main/java/com/telnyx/sdk/model/ButtonSubtype.java new file mode 100644 index 00000000..9f7efce3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ButtonSubtype.java @@ -0,0 +1,63 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * An enumeration. + */ +public enum ButtonSubtype { + + QUICK_REPLY("quick_reply"), + + URL("url"); + + private String value; + + ButtonSubtype(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ButtonSubtype fromValue(String value) { + for (ButtonSubtype b : ButtonSubtype.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/telnyx/sdk/model/CallControlApplicationInbound.java b/src/main/java/com/telnyx/sdk/model/CallControlApplicationInbound.java index b93a2e3f..3faebad2 100644 --- a/src/main/java/com/telnyx/sdk/model/CallControlApplicationInbound.java +++ b/src/main/java/com/telnyx/sdk/model/CallControlApplicationInbound.java @@ -42,7 +42,7 @@ public class CallControlApplicationInbound { private Integer channelLimit; public static final String JSON_PROPERTY_SIP_SUBDOMAIN = "sip_subdomain"; - private String sipSubdomain = "null"; + private String sipSubdomain; /** * This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). diff --git a/src/main/java/com/telnyx/sdk/model/CallCostPayload.java b/src/main/java/com/telnyx/sdk/model/CallCostPayload.java index b053a5b4..fb1eef94 100644 --- a/src/main/java/com/telnyx/sdk/model/CallCostPayload.java +++ b/src/main/java/com/telnyx/sdk/model/CallCostPayload.java @@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.CallCostPayloadCostParts; +import com.telnyx.sdk.model.CallCostPayloadCostPartsInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.math.BigDecimal; @@ -67,7 +67,7 @@ public class CallCostPayload { private String connectionId; public static final String JSON_PROPERTY_COST_PARTS = "cost_parts"; - private List costParts = null; + private List costParts = null; public static final String JSON_PROPERTY_TOTAL_COST = "total_cost"; private BigDecimal totalCost; @@ -276,12 +276,12 @@ public void setConnectionId(String connectionId) { } - public CallCostPayload costParts(List costParts) { + public CallCostPayload costParts(List costParts) { this.costParts = costParts; return this; } - public CallCostPayload addCostPartsItem(CallCostPayloadCostParts costPartsItem) { + public CallCostPayload addCostPartsItem(CallCostPayloadCostPartsInner costPartsItem) { if (this.costParts == null) { this.costParts = new ArrayList<>(); } @@ -298,14 +298,14 @@ public CallCostPayload addCostPartsItem(CallCostPayloadCostParts costPartsItem) @JsonProperty(JSON_PROPERTY_COST_PARTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCostParts() { + public List getCostParts() { return costParts; } @JsonProperty(JSON_PROPERTY_COST_PARTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCostParts(List costParts) { + public void setCostParts(List costParts) { this.costParts = costParts; } diff --git a/src/main/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInner.java b/src/main/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInner.java new file mode 100644 index 00000000..4fe8a942 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInner.java @@ -0,0 +1,244 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CallCostPayloadCostPartsInner + */ +@JsonPropertyOrder({ + CallCostPayloadCostPartsInner.JSON_PROPERTY_BILLED_DURATION_SECS, + CallCostPayloadCostPartsInner.JSON_PROPERTY_CALL_PART, + CallCostPayloadCostPartsInner.JSON_PROPERTY_COST, + CallCostPayloadCostPartsInner.JSON_PROPERTY_CURRENCY, + CallCostPayloadCostPartsInner.JSON_PROPERTY_RATE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CallCostPayloadCostPartsInner { + public static final String JSON_PROPERTY_BILLED_DURATION_SECS = "billed_duration_secs"; + private Integer billedDurationSecs; + + public static final String JSON_PROPERTY_CALL_PART = "call_part"; + private String callPart; + + public static final String JSON_PROPERTY_COST = "cost"; + private BigDecimal cost; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private String currency; + + public static final String JSON_PROPERTY_RATE = "rate"; + private BigDecimal rate; + + public CallCostPayloadCostPartsInner() { + } + + public CallCostPayloadCostPartsInner billedDurationSecs(Integer billedDurationSecs) { + this.billedDurationSecs = billedDurationSecs; + return this; + } + + /** + * The number of seconds for which this item will be billed + * minimum: 0 + * @return billedDurationSecs + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "0", value = "The number of seconds for which this item will be billed") + @JsonProperty(JSON_PROPERTY_BILLED_DURATION_SECS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getBilledDurationSecs() { + return billedDurationSecs; + } + + + @JsonProperty(JSON_PROPERTY_BILLED_DURATION_SECS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBilledDurationSecs(Integer billedDurationSecs) { + this.billedDurationSecs = billedDurationSecs; + } + + + public CallCostPayloadCostPartsInner callPart(String callPart) { + this.callPart = callPart; + return this; + } + + /** + * The service incurring a charge + * @return callPart + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "call-control", value = "The service incurring a charge") + @JsonProperty(JSON_PROPERTY_CALL_PART) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCallPart() { + return callPart; + } + + + @JsonProperty(JSON_PROPERTY_CALL_PART) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCallPart(String callPart) { + this.callPart = callPart; + } + + + public CallCostPayloadCostPartsInner cost(BigDecimal cost) { + this.cost = cost; + return this; + } + + /** + * The billed cost of the item, in currency shown in the `currency` field + * minimum: 0.0 + * @return cost + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "0.0", value = "The billed cost of the item, in currency shown in the `currency` field") + @JsonProperty(JSON_PROPERTY_COST) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getCost() { + return cost; + } + + + @JsonProperty(JSON_PROPERTY_COST) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCost(BigDecimal cost) { + this.cost = cost; + } + + + public CallCostPayloadCostPartsInner currency(String currency) { + this.currency = currency; + return this; + } + + /** + * The currency in which `cost` is measured + * @return currency + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "USD", value = "The currency in which `cost` is measured") + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrency(String currency) { + this.currency = currency; + } + + + public CallCostPayloadCostPartsInner rate(BigDecimal rate) { + this.rate = rate; + return this; + } + + /** + * The cost per unit of the item incurring a charge + * minimum: 0.0 + * @return rate + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "0.001", value = "The cost per unit of the item incurring a charge") + @JsonProperty(JSON_PROPERTY_RATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getRate() { + return rate; + } + + + @JsonProperty(JSON_PROPERTY_RATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRate(BigDecimal rate) { + this.rate = rate; + } + + + /** + * Return true if this CallCost_payload_cost_parts_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallCostPayloadCostPartsInner callCostPayloadCostPartsInner = (CallCostPayloadCostPartsInner) o; + return Objects.equals(this.billedDurationSecs, callCostPayloadCostPartsInner.billedDurationSecs) && + Objects.equals(this.callPart, callCostPayloadCostPartsInner.callPart) && + Objects.equals(this.cost, callCostPayloadCostPartsInner.cost) && + Objects.equals(this.currency, callCostPayloadCostPartsInner.currency) && + Objects.equals(this.rate, callCostPayloadCostPartsInner.rate); + } + + @Override + public int hashCode() { + return Objects.hash(billedDurationSecs, callPart, cost, currency, rate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallCostPayloadCostPartsInner {\n"); + sb.append(" billedDurationSecs: ").append(toIndentedString(billedDurationSecs)).append("\n"); + sb.append(" callPart: ").append(toIndentedString(callPart)).append("\n"); + sb.append(" cost: ").append(toIndentedString(cost)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" rate: ").append(toIndentedString(rate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CallForkStartedPayload.java b/src/main/java/com/telnyx/sdk/model/CallForkStartedPayload.java index 6a29d2a4..2dde0ae9 100644 --- a/src/main/java/com/telnyx/sdk/model/CallForkStartedPayload.java +++ b/src/main/java/com/telnyx/sdk/model/CallForkStartedPayload.java @@ -33,20 +33,67 @@ */ @JsonPropertyOrder({ CallForkStartedPayload.JSON_PROPERTY_CONNECTION_ID, + CallForkStartedPayload.JSON_PROPERTY_CALL_CONTROL_ID, CallForkStartedPayload.JSON_PROPERTY_CALL_LEG_ID, - CallForkStartedPayload.JSON_PROPERTY_CALL_SESSION_ID + CallForkStartedPayload.JSON_PROPERTY_CALL_SESSION_ID, + CallForkStartedPayload.JSON_PROPERTY_CLIENT_STATE, + CallForkStartedPayload.JSON_PROPERTY_STREAM_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CallForkStartedPayload { public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; private String connectionId; + public static final String JSON_PROPERTY_CALL_CONTROL_ID = "call_control_id"; + private String callControlId; + public static final String JSON_PROPERTY_CALL_LEG_ID = "call_leg_id"; private String callLegId; public static final String JSON_PROPERTY_CALL_SESSION_ID = "call_session_id"; private String callSessionId; + public static final String JSON_PROPERTY_CLIENT_STATE = "client_state"; + private String clientState; + + /** + * Type of media streamed. It can be either 'raw' or 'decrypted'. + */ + public enum StreamTypeEnum { + RAW("raw"), + + DECRYPTED("decrypted"); + + private String value; + + StreamTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StreamTypeEnum fromValue(String value) { + for (StreamTypeEnum b : StreamTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STREAM_TYPE = "stream_type"; + private StreamTypeEnum streamType; + public CallForkStartedPayload() { } @@ -76,6 +123,32 @@ public void setConnectionId(String connectionId) { } + public CallForkStartedPayload callControlId(String callControlId) { + this.callControlId = callControlId; + return this; + } + + /** + * Unique ID for controlling the call. + * @return callControlId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "v2:OycMASgvIjsGIAVEx8x3n9rYeKnUJx6a3V8VGhs5futnr17KZhujZA", value = "Unique ID for controlling the call.") + @JsonProperty(JSON_PROPERTY_CALL_CONTROL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCallControlId() { + return callControlId; + } + + + @JsonProperty(JSON_PROPERTY_CALL_CONTROL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCallControlId(String callControlId) { + this.callControlId = callControlId; + } + + public CallForkStartedPayload callLegId(String callLegId) { this.callLegId = callLegId; return this; @@ -128,6 +201,58 @@ public void setCallSessionId(String callSessionId) { } + public CallForkStartedPayload clientState(String clientState) { + this.clientState = clientState; + return this; + } + + /** + * State received from a command. + * @return clientState + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "aGF2ZSBhIG5pY2UgZGF5ID1d", value = "State received from a command.") + @JsonProperty(JSON_PROPERTY_CLIENT_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getClientState() { + return clientState; + } + + + @JsonProperty(JSON_PROPERTY_CLIENT_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setClientState(String clientState) { + this.clientState = clientState; + } + + + public CallForkStartedPayload streamType(StreamTypeEnum streamType) { + this.streamType = streamType; + return this; + } + + /** + * Type of media streamed. It can be either 'raw' or 'decrypted'. + * @return streamType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "raw", value = "Type of media streamed. It can be either 'raw' or 'decrypted'.") + @JsonProperty(JSON_PROPERTY_STREAM_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StreamTypeEnum getStreamType() { + return streamType; + } + + + @JsonProperty(JSON_PROPERTY_STREAM_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreamType(StreamTypeEnum streamType) { + this.streamType = streamType; + } + + /** * Return true if this CallForkStarted_payload object is equal to o. */ @@ -141,13 +266,16 @@ public boolean equals(Object o) { } CallForkStartedPayload callForkStartedPayload = (CallForkStartedPayload) o; return Objects.equals(this.connectionId, callForkStartedPayload.connectionId) && + Objects.equals(this.callControlId, callForkStartedPayload.callControlId) && Objects.equals(this.callLegId, callForkStartedPayload.callLegId) && - Objects.equals(this.callSessionId, callForkStartedPayload.callSessionId); + Objects.equals(this.callSessionId, callForkStartedPayload.callSessionId) && + Objects.equals(this.clientState, callForkStartedPayload.clientState) && + Objects.equals(this.streamType, callForkStartedPayload.streamType); } @Override public int hashCode() { - return Objects.hash(connectionId, callLegId, callSessionId); + return Objects.hash(connectionId, callControlId, callLegId, callSessionId, clientState, streamType); } @Override @@ -155,8 +283,11 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CallForkStartedPayload {\n"); sb.append(" connectionId: ").append(toIndentedString(connectionId)).append("\n"); + sb.append(" callControlId: ").append(toIndentedString(callControlId)).append("\n"); sb.append(" callLegId: ").append(toIndentedString(callLegId)).append("\n"); sb.append(" callSessionId: ").append(toIndentedString(callSessionId)).append("\n"); + sb.append(" clientState: ").append(toIndentedString(clientState)).append("\n"); + sb.append(" streamType: ").append(toIndentedString(streamType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/CallGatherEndedPayload.java b/src/main/java/com/telnyx/sdk/model/CallGatherEndedPayload.java index 0ae587e1..bfee64dd 100644 --- a/src/main/java/com/telnyx/sdk/model/CallGatherEndedPayload.java +++ b/src/main/java/com/telnyx/sdk/model/CallGatherEndedPayload.java @@ -80,7 +80,9 @@ public enum StatusEnum { CANCELLED("cancelled"), - CANCELLED_AMD("cancelled_amd"); + CANCELLED_AMD("cancelled_amd"), + + TIMEOUT("timeout"); private String value; diff --git a/src/main/java/com/telnyx/sdk/model/CallPlaybackEndedPayload.java b/src/main/java/com/telnyx/sdk/model/CallPlaybackEndedPayload.java index 51724c2d..13cf79bb 100644 --- a/src/main/java/com/telnyx/sdk/model/CallPlaybackEndedPayload.java +++ b/src/main/java/com/telnyx/sdk/model/CallPlaybackEndedPayload.java @@ -82,9 +82,7 @@ public enum StatusEnum { CANCELLED_AMD("cancelled_amd"), - COMPLETED("completed"), - - FAILED("failed"); + COMPLETED("completed"); private String value; diff --git a/src/main/java/com/telnyx/sdk/model/CallRequest.java b/src/main/java/com/telnyx/sdk/model/CallRequest.java index d0cfafc4..9b6bcfef 100644 --- a/src/main/java/com/telnyx/sdk/model/CallRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CallRequest.java @@ -24,7 +24,7 @@ import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.CallRequestAnsweringMachineDetectionConfig; import com.telnyx.sdk.model.CustomSipHeader; -import com.telnyx.sdk.model.OneOfstringarray; +import com.telnyx.sdk.model.DialogflowConfig; import com.telnyx.sdk.model.SoundModifications; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -61,12 +61,19 @@ CallRequest.JSON_PROPERTY_STREAM_URL, CallRequest.JSON_PROPERTY_STREAM_TRACK, CallRequest.JSON_PROPERTY_WEBHOOK_URL, - CallRequest.JSON_PROPERTY_WEBHOOK_URL_METHOD + CallRequest.JSON_PROPERTY_WEBHOOK_URL_METHOD, + CallRequest.JSON_PROPERTY_RECORD, + CallRequest.JSON_PROPERTY_RECORD_CHANNELS, + CallRequest.JSON_PROPERTY_RECORD_FORMAT, + CallRequest.JSON_PROPERTY_RECORD_MAX_LENGTH, + CallRequest.JSON_PROPERTY_RECORD_TIMEOUT_SECS, + CallRequest.JSON_PROPERTY_ENABLE_DIALOGFLOW, + CallRequest.JSON_PROPERTY_DIALOGFLOW_CONFIG }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CallRequest { public static final String JSON_PROPERTY_TO = "to"; - private OneOfstringarray to; + private String to; public static final String JSON_PROPERTY_FROM = "from"; private String from; @@ -247,31 +254,155 @@ public static WebhookUrlMethodEnum fromValue(String value) { public static final String JSON_PROPERTY_WEBHOOK_URL_METHOD = "webhook_url_method"; private WebhookUrlMethodEnum webhookUrlMethod = WebhookUrlMethodEnum.POST; + /** + * Start recording automatically after an event. Disabled by default. + */ + public enum RecordEnum { + RECORD_FROM_ANSWER("record-from-answer"); + + private String value; + + RecordEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RecordEnum fromValue(String value) { + for (RecordEnum b : RecordEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_RECORD = "record"; + private RecordEnum record; + + /** + * Defines which channel should be recorded ('single' or 'dual') when `record` is specified. + */ + public enum RecordChannelsEnum { + SINGLE("single"), + + DUAL("dual"); + + private String value; + + RecordChannelsEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RecordChannelsEnum fromValue(String value) { + for (RecordChannelsEnum b : RecordChannelsEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_RECORD_CHANNELS = "record_channels"; + private RecordChannelsEnum recordChannels = RecordChannelsEnum.DUAL; + + /** + * Defines the format of the recording ('wav' or 'mp3') when `record` is specified. + */ + public enum RecordFormatEnum { + WAV("wav"), + + MP3("mp3"); + + private String value; + + RecordFormatEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RecordFormatEnum fromValue(String value) { + for (RecordFormatEnum b : RecordFormatEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_RECORD_FORMAT = "record_format"; + private RecordFormatEnum recordFormat = RecordFormatEnum.MP3; + + public static final String JSON_PROPERTY_RECORD_MAX_LENGTH = "record_max_length"; + private Integer recordMaxLength = 0; + + public static final String JSON_PROPERTY_RECORD_TIMEOUT_SECS = "record_timeout_secs"; + private Integer recordTimeoutSecs = 0; + + public static final String JSON_PROPERTY_ENABLE_DIALOGFLOW = "enable_dialogflow"; + private Boolean enableDialogflow = false; + + public static final String JSON_PROPERTY_DIALOGFLOW_CONFIG = "dialogflow_config"; + private DialogflowConfig dialogflowConfig; + public CallRequest() { } - public CallRequest to(OneOfstringarray to) { + public CallRequest to(String to) { this.to = to; return this; } /** - * The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided using an array of strings + * Get to * @return to **/ - @javax.annotation.Nullable - @ApiModelProperty(required = true, value = "The DID or SIP URI to dial out to. Multiple DID or SIP URIs can be provided using an array of strings") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public OneOfstringarray getTo() { + public String getTo() { return to; } @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setTo(OneOfstringarray to) { + public void setTo(String to) { this.to = to; } @@ -856,6 +987,188 @@ public void setWebhookUrlMethod(WebhookUrlMethodEnum webhookUrlMethod) { } + public CallRequest record(RecordEnum record) { + this.record = record; + return this; + } + + /** + * Start recording automatically after an event. Disabled by default. + * @return record + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "record-from-answer", value = "Start recording automatically after an event. Disabled by default.") + @JsonProperty(JSON_PROPERTY_RECORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RecordEnum getRecord() { + return record; + } + + + @JsonProperty(JSON_PROPERTY_RECORD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecord(RecordEnum record) { + this.record = record; + } + + + public CallRequest recordChannels(RecordChannelsEnum recordChannels) { + this.recordChannels = recordChannels; + return this; + } + + /** + * Defines which channel should be recorded ('single' or 'dual') when `record` is specified. + * @return recordChannels + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "single", value = "Defines which channel should be recorded ('single' or 'dual') when `record` is specified.") + @JsonProperty(JSON_PROPERTY_RECORD_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RecordChannelsEnum getRecordChannels() { + return recordChannels; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordChannels(RecordChannelsEnum recordChannels) { + this.recordChannels = recordChannels; + } + + + public CallRequest recordFormat(RecordFormatEnum recordFormat) { + this.recordFormat = recordFormat; + return this; + } + + /** + * Defines the format of the recording ('wav' or 'mp3') when `record` is specified. + * @return recordFormat + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wav", value = "Defines the format of the recording ('wav' or 'mp3') when `record` is specified.") + @JsonProperty(JSON_PROPERTY_RECORD_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RecordFormatEnum getRecordFormat() { + return recordFormat; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordFormat(RecordFormatEnum recordFormat) { + this.recordFormat = recordFormat; + } + + + public CallRequest recordMaxLength(Integer recordMaxLength) { + this.recordMaxLength = recordMaxLength; + return this; + } + + /** + * Defines the maximum length for the recording in seconds when `record` is specified. The minimum value is 0. The maximum value is 43200. The default value is 0 (infinite). + * @return recordMaxLength + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1000", value = "Defines the maximum length for the recording in seconds when `record` is specified. The minimum value is 0. The maximum value is 43200. The default value is 0 (infinite).") + @JsonProperty(JSON_PROPERTY_RECORD_MAX_LENGTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getRecordMaxLength() { + return recordMaxLength; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_MAX_LENGTH) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordMaxLength(Integer recordMaxLength) { + this.recordMaxLength = recordMaxLength; + } + + + public CallRequest recordTimeoutSecs(Integer recordTimeoutSecs) { + this.recordTimeoutSecs = recordTimeoutSecs; + return this; + } + + /** + * The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected when `record` is specified. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite). + * @return recordTimeoutSecs + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100", value = "The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected when `record` is specified. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite).") + @JsonProperty(JSON_PROPERTY_RECORD_TIMEOUT_SECS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getRecordTimeoutSecs() { + return recordTimeoutSecs; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TIMEOUT_SECS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordTimeoutSecs(Integer recordTimeoutSecs) { + this.recordTimeoutSecs = recordTimeoutSecs; + } + + + public CallRequest enableDialogflow(Boolean enableDialogflow) { + this.enableDialogflow = enableDialogflow; + return this; + } + + /** + * Enables Dialogflow for the current call. The default value is false. + * @return enableDialogflow + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Enables Dialogflow for the current call. The default value is false.") + @JsonProperty(JSON_PROPERTY_ENABLE_DIALOGFLOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getEnableDialogflow() { + return enableDialogflow; + } + + + @JsonProperty(JSON_PROPERTY_ENABLE_DIALOGFLOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEnableDialogflow(Boolean enableDialogflow) { + this.enableDialogflow = enableDialogflow; + } + + + public CallRequest dialogflowConfig(DialogflowConfig dialogflowConfig) { + this.dialogflowConfig = dialogflowConfig; + return this; + } + + /** + * Get dialogflowConfig + * @return dialogflowConfig + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIALOGFLOW_CONFIG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DialogflowConfig getDialogflowConfig() { + return dialogflowConfig; + } + + + @JsonProperty(JSON_PROPERTY_DIALOGFLOW_CONFIG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDialogflowConfig(DialogflowConfig dialogflowConfig) { + this.dialogflowConfig = dialogflowConfig; + } + + /** * Return true if this CallRequest object is equal to o. */ @@ -890,12 +1203,19 @@ public boolean equals(Object o) { Objects.equals(this.streamUrl, callRequest.streamUrl) && Objects.equals(this.streamTrack, callRequest.streamTrack) && Objects.equals(this.webhookUrl, callRequest.webhookUrl) && - Objects.equals(this.webhookUrlMethod, callRequest.webhookUrlMethod); + Objects.equals(this.webhookUrlMethod, callRequest.webhookUrlMethod) && + Objects.equals(this.record, callRequest.record) && + Objects.equals(this.recordChannels, callRequest.recordChannels) && + Objects.equals(this.recordFormat, callRequest.recordFormat) && + Objects.equals(this.recordMaxLength, callRequest.recordMaxLength) && + Objects.equals(this.recordTimeoutSecs, callRequest.recordTimeoutSecs) && + Objects.equals(this.enableDialogflow, callRequest.enableDialogflow) && + Objects.equals(this.dialogflowConfig, callRequest.dialogflowConfig); } @Override public int hashCode() { - return Objects.hash(to, from, fromDisplayName, connectionId, audioUrl, mediaName, preferredCodecs, timeoutSecs, timeLimitSecs, answeringMachineDetection, answeringMachineDetectionConfig, customHeaders, billingGroupId, clientState, commandId, linkTo, sipAuthUsername, sipAuthPassword, soundModifications, streamUrl, streamTrack, webhookUrl, webhookUrlMethod); + return Objects.hash(to, from, fromDisplayName, connectionId, audioUrl, mediaName, preferredCodecs, timeoutSecs, timeLimitSecs, answeringMachineDetection, answeringMachineDetectionConfig, customHeaders, billingGroupId, clientState, commandId, linkTo, sipAuthUsername, sipAuthPassword, soundModifications, streamUrl, streamTrack, webhookUrl, webhookUrlMethod, record, recordChannels, recordFormat, recordMaxLength, recordTimeoutSecs, enableDialogflow, dialogflowConfig); } @Override @@ -925,6 +1245,13 @@ public String toString() { sb.append(" streamTrack: ").append(toIndentedString(streamTrack)).append("\n"); sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); sb.append(" webhookUrlMethod: ").append(toIndentedString(webhookUrlMethod)).append("\n"); + sb.append(" record: ").append(toIndentedString(record)).append("\n"); + sb.append(" recordChannels: ").append(toIndentedString(recordChannels)).append("\n"); + sb.append(" recordFormat: ").append(toIndentedString(recordFormat)).append("\n"); + sb.append(" recordMaxLength: ").append(toIndentedString(recordMaxLength)).append("\n"); + sb.append(" recordTimeoutSecs: ").append(toIndentedString(recordTimeoutSecs)).append("\n"); + sb.append(" enableDialogflow: ").append(toIndentedString(enableDialogflow)).append("\n"); + sb.append(" dialogflowConfig: ").append(toIndentedString(dialogflowConfig)).append("\n"); sb.append("}"); return sb.toString(); } @@ -941,4 +1268,3 @@ private String toIndentedString(Object o) { } } - diff --git a/src/main/java/com/telnyx/sdk/model/CallStreamingFailed.java b/src/main/java/com/telnyx/sdk/model/CallStreamingFailed.java new file mode 100644 index 00000000..9233152b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CallStreamingFailed.java @@ -0,0 +1,309 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallStreamingFailedPayload; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CallStreamingFailed + */ +@JsonPropertyOrder({ + CallStreamingFailed.JSON_PROPERTY_RECORD_TYPE, + CallStreamingFailed.JSON_PROPERTY_EVENT_TYPE, + CallStreamingFailed.JSON_PROPERTY_ID, + CallStreamingFailed.JSON_PROPERTY_OCCURRED_AT, + CallStreamingFailed.JSON_PROPERTY_PAYLOAD +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CallStreamingFailed { + /** + * Identifies the resource. + */ + public enum RecordTypeEnum { + EVENT("event"); + + private String value; + + RecordTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RecordTypeEnum fromValue(String value) { + for (RecordTypeEnum b : RecordTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private RecordTypeEnum recordType; + + /** + * The type of event being delivered. + */ + public enum EventTypeEnum { + STREAMING_FAILED("streaming.failed"); + + private String value; + + EventTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static EventTypeEnum fromValue(String value) { + for (EventTypeEnum b : EventTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_EVENT_TYPE = "event_type"; + private EventTypeEnum eventType; + + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_OCCURRED_AT = "occurred_at"; + private OffsetDateTime occurredAt; + + public static final String JSON_PROPERTY_PAYLOAD = "payload"; + private CallStreamingFailedPayload payload; + + public CallStreamingFailed() { + } + + public CallStreamingFailed recordType(RecordTypeEnum recordType) { + this.recordType = recordType; + return this; + } + + /** + * Identifies the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "event", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RecordTypeEnum getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordType(RecordTypeEnum recordType) { + this.recordType = recordType; + } + + + public CallStreamingFailed eventType(EventTypeEnum eventType) { + this.eventType = eventType; + return this; + } + + /** + * The type of event being delivered. + * @return eventType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "streaming.failed", value = "The type of event being delivered.") + @JsonProperty(JSON_PROPERTY_EVENT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public EventTypeEnum getEventType() { + return eventType; + } + + + @JsonProperty(JSON_PROPERTY_EVENT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEventType(EventTypeEnum eventType) { + this.eventType = eventType; + } + + + public CallStreamingFailed id(UUID id) { + this.id = id; + return this; + } + + /** + * Identifies the type of resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "25dc3731-e51e-4927-a50d-a61cc25984b1", value = "Identifies the type of resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(UUID id) { + this.id = id; + } + + + public CallStreamingFailed occurredAt(OffsetDateTime occurredAt) { + this.occurredAt = occurredAt; + return this; + } + + /** + * ISO 8601 datetime of when the event occurred. + * @return occurredAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-12-15T14:11:24.613295Z", value = "ISO 8601 datetime of when the event occurred.") + @JsonProperty(JSON_PROPERTY_OCCURRED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getOccurredAt() { + return occurredAt; + } + + + @JsonProperty(JSON_PROPERTY_OCCURRED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOccurredAt(OffsetDateTime occurredAt) { + this.occurredAt = occurredAt; + } + + + public CallStreamingFailed payload(CallStreamingFailedPayload payload) { + this.payload = payload; + return this; + } + + /** + * Get payload + * @return payload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PAYLOAD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CallStreamingFailedPayload getPayload() { + return payload; + } + + + @JsonProperty(JSON_PROPERTY_PAYLOAD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPayload(CallStreamingFailedPayload payload) { + this.payload = payload; + } + + + /** + * Return true if this CallStreamingFailed object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallStreamingFailed callStreamingFailed = (CallStreamingFailed) o; + return Objects.equals(this.recordType, callStreamingFailed.recordType) && + Objects.equals(this.eventType, callStreamingFailed.eventType) && + Objects.equals(this.id, callStreamingFailed.id) && + Objects.equals(this.occurredAt, callStreamingFailed.occurredAt) && + Objects.equals(this.payload, callStreamingFailed.payload); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, eventType, id, occurredAt, payload); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallStreamingFailed {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" occurredAt: ").append(toIndentedString(occurredAt)).append("\n"); + sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CallStreamingFailedEvent.java b/src/main/java/com/telnyx/sdk/model/CallStreamingFailedEvent.java new file mode 100644 index 00000000..e0614d64 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CallStreamingFailedEvent.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallStreamingFailed; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CallStreamingFailedEvent + */ +@JsonPropertyOrder({ + CallStreamingFailedEvent.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CallStreamingFailedEvent { + public static final String JSON_PROPERTY_DATA = "data"; + private CallStreamingFailed data; + + public CallStreamingFailedEvent() { + } + + public CallStreamingFailedEvent data(CallStreamingFailed data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CallStreamingFailed getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(CallStreamingFailed data) { + this.data = data; + } + + + /** + * Return true if this CallStreamingFailedEvent object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallStreamingFailedEvent callStreamingFailedEvent = (CallStreamingFailedEvent) o; + return Objects.equals(this.data, callStreamingFailedEvent.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallStreamingFailedEvent {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayload.java b/src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayload.java new file mode 100644 index 00000000..b35b7db7 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayload.java @@ -0,0 +1,405 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallStreamingFailedPayloadStreamParams; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CallStreamingFailedPayload + */ +@JsonPropertyOrder({ + CallStreamingFailedPayload.JSON_PROPERTY_CALL_CONTROL_ID, + CallStreamingFailedPayload.JSON_PROPERTY_CONNECTION_ID, + CallStreamingFailedPayload.JSON_PROPERTY_CALL_LEG_ID, + CallStreamingFailedPayload.JSON_PROPERTY_CALL_SESSION_ID, + CallStreamingFailedPayload.JSON_PROPERTY_CLIENT_STATE, + CallStreamingFailedPayload.JSON_PROPERTY_FAILURE_REASON, + CallStreamingFailedPayload.JSON_PROPERTY_STREAM_ID, + CallStreamingFailedPayload.JSON_PROPERTY_STREAM_PARAMS, + CallStreamingFailedPayload.JSON_PROPERTY_STREAM_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CallStreamingFailedPayload { + public static final String JSON_PROPERTY_CALL_CONTROL_ID = "call_control_id"; + private String callControlId; + + public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; + private String connectionId; + + public static final String JSON_PROPERTY_CALL_LEG_ID = "call_leg_id"; + private String callLegId; + + public static final String JSON_PROPERTY_CALL_SESSION_ID = "call_session_id"; + private String callSessionId; + + public static final String JSON_PROPERTY_CLIENT_STATE = "client_state"; + private String clientState; + + public static final String JSON_PROPERTY_FAILURE_REASON = "failure_reason"; + private String failureReason; + + public static final String JSON_PROPERTY_STREAM_ID = "stream_id"; + private UUID streamId; + + public static final String JSON_PROPERTY_STREAM_PARAMS = "stream_params"; + private CallStreamingFailedPayloadStreamParams streamParams; + + /** + * The type of stream connection the stream is performing. + */ + public enum StreamTypeEnum { + WEBSOCKET("websocket"), + + DIALOGFLOW("dialogflow"); + + private String value; + + StreamTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StreamTypeEnum fromValue(String value) { + for (StreamTypeEnum b : StreamTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STREAM_TYPE = "stream_type"; + private StreamTypeEnum streamType; + + public CallStreamingFailedPayload() { + } + + public CallStreamingFailedPayload callControlId(String callControlId) { + this.callControlId = callControlId; + return this; + } + + /** + * Call ID used to issue commands via Call Control API. + * @return callControlId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "31f19208-5db0-11ec-9ea7-02420a0d3a69", value = "Call ID used to issue commands via Call Control API.") + @JsonProperty(JSON_PROPERTY_CALL_CONTROL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCallControlId() { + return callControlId; + } + + + @JsonProperty(JSON_PROPERTY_CALL_CONTROL_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCallControlId(String callControlId) { + this.callControlId = callControlId; + } + + + public CallStreamingFailedPayload connectionId(String connectionId) { + this.connectionId = connectionId; + return this; + } + + /** + * Call Control App ID (formerly Telnyx connection ID) used in the call. + * @return connectionId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "7267xxxxxxxxxxxxxx", value = "Call Control App ID (formerly Telnyx connection ID) used in the call.") + @JsonProperty(JSON_PROPERTY_CONNECTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConnectionId() { + return connectionId; + } + + + @JsonProperty(JSON_PROPERTY_CONNECTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConnectionId(String connectionId) { + this.connectionId = connectionId; + } + + + public CallStreamingFailedPayload callLegId(String callLegId) { + this.callLegId = callLegId; + return this; + } + + /** + * ID that is unique to the call and can be used to correlate webhook events. + * @return callLegId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "31f19208-5db0-11ec-9ea7-02420a0d3a69", value = "ID that is unique to the call and can be used to correlate webhook events.") + @JsonProperty(JSON_PROPERTY_CALL_LEG_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCallLegId() { + return callLegId; + } + + + @JsonProperty(JSON_PROPERTY_CALL_LEG_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCallLegId(String callLegId) { + this.callLegId = callLegId; + } + + + public CallStreamingFailedPayload callSessionId(String callSessionId) { + this.callSessionId = callSessionId; + return this; + } + + /** + * ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call. + * @return callSessionId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "31f19208-5db0-11ec-9ea7-02420a0d3a69", value = "ID that is unique to the call session and can be used to correlate webhook events. Call session is a group of related call legs that logically belong to the same phone call, e.g. an inbound and outbound leg of a transferred call.") + @JsonProperty(JSON_PROPERTY_CALL_SESSION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCallSessionId() { + return callSessionId; + } + + + @JsonProperty(JSON_PROPERTY_CALL_SESSION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCallSessionId(String callSessionId) { + this.callSessionId = callSessionId; + } + + + public CallStreamingFailedPayload clientState(String clientState) { + this.clientState = clientState; + return this; + } + + /** + * State received from a command. + * @return clientState + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "aGF2ZSBhIG5pY2UgZGF5ID1d", value = "State received from a command.") + @JsonProperty(JSON_PROPERTY_CLIENT_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getClientState() { + return clientState; + } + + + @JsonProperty(JSON_PROPERTY_CLIENT_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setClientState(String clientState) { + this.clientState = clientState; + } + + + public CallStreamingFailedPayload failureReason(String failureReason) { + this.failureReason = failureReason; + return this; + } + + /** + * A short description explaning why the media streaming failed. + * @return failureReason + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "connection_failed", value = "A short description explaning why the media streaming failed.") + @JsonProperty(JSON_PROPERTY_FAILURE_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFailureReason() { + return failureReason; + } + + + @JsonProperty(JSON_PROPERTY_FAILURE_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFailureReason(String failureReason) { + this.failureReason = failureReason; + } + + + public CallStreamingFailedPayload streamId(UUID streamId) { + this.streamId = streamId; + return this; + } + + /** + * Identifies the streaming. + * @return streamId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1edb94f9-7ef0-4150-b502-e0ebadfd9491", value = "Identifies the streaming.") + @JsonProperty(JSON_PROPERTY_STREAM_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getStreamId() { + return streamId; + } + + + @JsonProperty(JSON_PROPERTY_STREAM_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreamId(UUID streamId) { + this.streamId = streamId; + } + + + public CallStreamingFailedPayload streamParams(CallStreamingFailedPayloadStreamParams streamParams) { + this.streamParams = streamParams; + return this; + } + + /** + * Get streamParams + * @return streamParams + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STREAM_PARAMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CallStreamingFailedPayloadStreamParams getStreamParams() { + return streamParams; + } + + + @JsonProperty(JSON_PROPERTY_STREAM_PARAMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreamParams(CallStreamingFailedPayloadStreamParams streamParams) { + this.streamParams = streamParams; + } + + + public CallStreamingFailedPayload streamType(StreamTypeEnum streamType) { + this.streamType = streamType; + return this; + } + + /** + * The type of stream connection the stream is performing. + * @return streamType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "websocket", value = "The type of stream connection the stream is performing.") + @JsonProperty(JSON_PROPERTY_STREAM_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StreamTypeEnum getStreamType() { + return streamType; + } + + + @JsonProperty(JSON_PROPERTY_STREAM_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreamType(StreamTypeEnum streamType) { + this.streamType = streamType; + } + + + /** + * Return true if this CallStreamingFailed_payload object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallStreamingFailedPayload callStreamingFailedPayload = (CallStreamingFailedPayload) o; + return Objects.equals(this.callControlId, callStreamingFailedPayload.callControlId) && + Objects.equals(this.connectionId, callStreamingFailedPayload.connectionId) && + Objects.equals(this.callLegId, callStreamingFailedPayload.callLegId) && + Objects.equals(this.callSessionId, callStreamingFailedPayload.callSessionId) && + Objects.equals(this.clientState, callStreamingFailedPayload.clientState) && + Objects.equals(this.failureReason, callStreamingFailedPayload.failureReason) && + Objects.equals(this.streamId, callStreamingFailedPayload.streamId) && + Objects.equals(this.streamParams, callStreamingFailedPayload.streamParams) && + Objects.equals(this.streamType, callStreamingFailedPayload.streamType); + } + + @Override + public int hashCode() { + return Objects.hash(callControlId, connectionId, callLegId, callSessionId, clientState, failureReason, streamId, streamParams, streamType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallStreamingFailedPayload {\n"); + sb.append(" callControlId: ").append(toIndentedString(callControlId)).append("\n"); + sb.append(" connectionId: ").append(toIndentedString(connectionId)).append("\n"); + sb.append(" callLegId: ").append(toIndentedString(callLegId)).append("\n"); + sb.append(" callSessionId: ").append(toIndentedString(callSessionId)).append("\n"); + sb.append(" clientState: ").append(toIndentedString(clientState)).append("\n"); + sb.append(" failureReason: ").append(toIndentedString(failureReason)).append("\n"); + sb.append(" streamId: ").append(toIndentedString(streamId)).append("\n"); + sb.append(" streamParams: ").append(toIndentedString(streamParams)).append("\n"); + sb.append(" streamType: ").append(toIndentedString(streamType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParams.java b/src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParams.java new file mode 100644 index 00000000..4f750514 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParams.java @@ -0,0 +1,182 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Streaming parameters as they were originally given to the Call Control API. + */ +@ApiModel(description = "Streaming parameters as they were originally given to the Call Control API.") +@JsonPropertyOrder({ + CallStreamingFailedPayloadStreamParams.JSON_PROPERTY_STREAM_URL, + CallStreamingFailedPayloadStreamParams.JSON_PROPERTY_TRACK +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CallStreamingFailedPayloadStreamParams { + public static final String JSON_PROPERTY_STREAM_URL = "stream_url"; + private String streamUrl; + + /** + * Specifies which track should be streamed. + */ + public enum TrackEnum { + INBOUND_TRACK("inbound_track"), + + OUTBOUND_TRACK("outbound_track"), + + BOTH_TRACKS("both_tracks"); + + private String value; + + TrackEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TrackEnum fromValue(String value) { + for (TrackEnum b : TrackEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TRACK = "track"; + private TrackEnum track = TrackEnum.INBOUND_TRACK; + + public CallStreamingFailedPayloadStreamParams() { + } + + public CallStreamingFailedPayloadStreamParams streamUrl(String streamUrl) { + this.streamUrl = streamUrl; + return this; + } + + /** + * The destination WebSocket address where the stream is going to be delivered. + * @return streamUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wss://www.example.com/websocket", value = "The destination WebSocket address where the stream is going to be delivered.") + @JsonProperty(JSON_PROPERTY_STREAM_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStreamUrl() { + return streamUrl; + } + + + @JsonProperty(JSON_PROPERTY_STREAM_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStreamUrl(String streamUrl) { + this.streamUrl = streamUrl; + } + + + public CallStreamingFailedPayloadStreamParams track(TrackEnum track) { + this.track = track; + return this; + } + + /** + * Specifies which track should be streamed. + * @return track + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "inbound_track", value = "Specifies which track should be streamed.") + @JsonProperty(JSON_PROPERTY_TRACK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TrackEnum getTrack() { + return track; + } + + + @JsonProperty(JSON_PROPERTY_TRACK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTrack(TrackEnum track) { + this.track = track; + } + + + /** + * Return true if this CallStreamingFailed_payload_stream_params object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallStreamingFailedPayloadStreamParams callStreamingFailedPayloadStreamParams = (CallStreamingFailedPayloadStreamParams) o; + return Objects.equals(this.streamUrl, callStreamingFailedPayloadStreamParams.streamUrl) && + Objects.equals(this.track, callStreamingFailedPayloadStreamParams.track); + } + + @Override + public int hashCode() { + return Objects.hash(streamUrl, track); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallStreamingFailedPayloadStreamParams {\n"); + sb.append(" streamUrl: ").append(toIndentedString(streamUrl)).append("\n"); + sb.append(" track: ").append(toIndentedString(track)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CancelPortingOrder200Response.java b/src/main/java/com/telnyx/sdk/model/CancelPortingOrder200Response.java new file mode 100644 index 00000000..884521a2 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CancelPortingOrder200Response.java @@ -0,0 +1,146 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import com.telnyx.sdk.model.UpdatePortingOrder200ResponseMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CancelPortingOrder200Response + */ +@JsonPropertyOrder({ + CancelPortingOrder200Response.JSON_PROPERTY_DATA, + CancelPortingOrder200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CancelPortingOrder200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortingOrder data; + + public static final String JSON_PROPERTY_META = "meta"; + private UpdatePortingOrder200ResponseMeta meta; + + public CancelPortingOrder200Response() { + } + + public CancelPortingOrder200Response data(PortingOrder data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortingOrder getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortingOrder data) { + this.data = data; + } + + + public CancelPortingOrder200Response meta(UpdatePortingOrder200ResponseMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UpdatePortingOrder200ResponseMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(UpdatePortingOrder200ResponseMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this cancelPortingOrder_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CancelPortingOrder200Response cancelPortingOrder200Response = (CancelPortingOrder200Response) o; + return Objects.equals(this.data, cancelPortingOrder200Response.data) && + Objects.equals(this.meta, cancelPortingOrder200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CancelPortingOrder200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CheckContact.java b/src/main/java/com/telnyx/sdk/model/CheckContact.java index b4499699..76ae6c33 100644 --- a/src/main/java/com/telnyx/sdk/model/CheckContact.java +++ b/src/main/java/com/telnyx/sdk/model/CheckContact.java @@ -29,8 +29,9 @@ /** - * CheckContact + * */ +@ApiModel(description = "") @JsonPropertyOrder({ CheckContact.JSON_PROPERTY_RECORD_TYPE, CheckContact.JSON_PROPERTY_INPUT, @@ -133,6 +134,14 @@ public static StatusEnum fromValue(String value) { public CheckContact() { } + @JsonCreator + public CheckContact( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType + ) { + this(); + this.recordType = recordType; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/Comment.java b/src/main/java/com/telnyx/sdk/model/Comment.java index fab82572..f2092f63 100644 --- a/src/main/java/com/telnyx/sdk/model/Comment.java +++ b/src/main/java/com/telnyx/sdk/model/Comment.java @@ -147,6 +147,24 @@ public static CommentRecordTypeEnum fromValue(String value) { public Comment() { } + @JsonCreator + public Comment( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_COMMENTER) String commenter, + @JsonProperty(JSON_PROPERTY_COMMENTER_TYPE) CommenterTypeEnum commenterType, + @JsonProperty(JSON_PROPERTY_READ_AT) String readAt, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.commenter = commenter; + this.commenterType = commenterType; + this.readAt = readAt; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/CompleteOTAUpdate.java b/src/main/java/com/telnyx/sdk/model/CompleteOTAUpdate.java index 2453f02b..c65934f0 100644 --- a/src/main/java/com/telnyx/sdk/model/CompleteOTAUpdate.java +++ b/src/main/java/com/telnyx/sdk/model/CompleteOTAUpdate.java @@ -143,6 +143,20 @@ public static StatusEnum fromValue(String value) { public CompleteOTAUpdate() { } + @JsonCreator + public CompleteOTAUpdate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/ConfirmPortingOrder200Response.java b/src/main/java/com/telnyx/sdk/model/ConfirmPortingOrder200Response.java new file mode 100644 index 00000000..137ae748 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ConfirmPortingOrder200Response.java @@ -0,0 +1,146 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import com.telnyx.sdk.model.UpdatePortingOrder200ResponseMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ConfirmPortingOrder200Response + */ +@JsonPropertyOrder({ + ConfirmPortingOrder200Response.JSON_PROPERTY_DATA, + ConfirmPortingOrder200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ConfirmPortingOrder200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortingOrder data; + + public static final String JSON_PROPERTY_META = "meta"; + private UpdatePortingOrder200ResponseMeta meta; + + public ConfirmPortingOrder200Response() { + } + + public ConfirmPortingOrder200Response data(PortingOrder data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortingOrder getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortingOrder data) { + this.data = data; + } + + + public ConfirmPortingOrder200Response meta(UpdatePortingOrder200ResponseMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UpdatePortingOrder200ResponseMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(UpdatePortingOrder200ResponseMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this confirmPortingOrder_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfirmPortingOrder200Response confirmPortingOrder200Response = (ConfirmPortingOrder200Response) o; + return Objects.equals(this.data, confirmPortingOrder200Response.data) && + Objects.equals(this.meta, confirmPortingOrder200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfirmPortingOrder200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Connection.java b/src/main/java/com/telnyx/sdk/model/Connection.java index 65973423..3e8b42a6 100644 --- a/src/main/java/com/telnyx/sdk/model/Connection.java +++ b/src/main/java/com/telnyx/sdk/model/Connection.java @@ -73,7 +73,7 @@ public class Connection { private String updatedAt; public static final String JSON_PROPERTY_WEBHOOK_EVENT_URL = "webhook_event_url"; - private JsonNullable webhookEventUrl = JsonNullable.of("null"); + private JsonNullable webhookEventUrl = JsonNullable.undefined(); public static final String JSON_PROPERTY_WEBHOOK_EVENT_FAILOVER_URL = "webhook_event_failover_url"; private JsonNullable webhookEventFailoverUrl = JsonNullable.of(""); diff --git a/src/main/java/com/telnyx/sdk/model/Contact.java b/src/main/java/com/telnyx/sdk/model/Contact.java index 31908ca0..3bb62af4 100644 --- a/src/main/java/com/telnyx/sdk/model/Contact.java +++ b/src/main/java/com/telnyx/sdk/model/Contact.java @@ -23,7 +23,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Email; -import com.telnyx.sdk.model.Name; import com.telnyx.sdk.model.Organization; import com.telnyx.sdk.model.Phone; import com.telnyx.sdk.model.Url; @@ -64,7 +63,7 @@ public class Contact { private List ims = null; public static final String JSON_PROPERTY_NAME = "name"; - private Name name; + private String name; public static final String JSON_PROPERTY_ORG = "org"; private Organization org; @@ -186,7 +185,7 @@ public Contact addImsItem(String imsItem) { } /** - * Get ims + * * @return ims **/ @javax.annotation.Nullable @@ -206,7 +205,7 @@ public void setIms(List ims) { } - public Contact name(Name name) { + public Contact name(String name) { this.name = name; return this; } @@ -220,14 +219,14 @@ public Contact name(Name name) { @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Name getName() { + public String getName() { return name; } @JsonProperty(JSON_PROPERTY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setName(Name name) { + public void setName(String name) { this.name = name; } diff --git a/src/main/java/com/telnyx/sdk/model/CreateAndroidPushCredentialRequest.java b/src/main/java/com/telnyx/sdk/model/CreateAndroidPushCredentialRequest.java index 8a2d08b2..ffb2d0ab 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateAndroidPushCredentialRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateAndroidPushCredentialRequest.java @@ -32,11 +32,48 @@ * CreateAndroidPushCredentialRequest */ @JsonPropertyOrder({ + CreateAndroidPushCredentialRequest.JSON_PROPERTY_TYPE, CreateAndroidPushCredentialRequest.JSON_PROPERTY_SERVER_KEY, CreateAndroidPushCredentialRequest.JSON_PROPERTY_ALIAS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CreateAndroidPushCredentialRequest { + /** + * Type of mobile push credential. Should be <code>android</code> here + */ + public enum TypeEnum { + ANDROID("android"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + public static final String JSON_PROPERTY_SERVER_KEY = "server_key"; private String serverKey; @@ -46,6 +83,32 @@ public class CreateAndroidPushCredentialRequest { public CreateAndroidPushCredentialRequest() { } + public CreateAndroidPushCredentialRequest type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Type of mobile push credential. Should be <code>android</code> here + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of mobile push credential. Should be android here") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + public CreateAndroidPushCredentialRequest serverKey(String serverKey) { this.serverKey = serverKey; return this; @@ -56,7 +119,7 @@ public CreateAndroidPushCredentialRequest serverKey(String serverKey) { * @return serverKey **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0", required = true, value = "Server key as received from Google firebase") + @ApiModelProperty(example = "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja...", required = true, value = "Server key as received from Google firebase") @JsonProperty(JSON_PROPERTY_SERVER_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -110,19 +173,21 @@ public boolean equals(Object o) { return false; } CreateAndroidPushCredentialRequest createAndroidPushCredentialRequest = (CreateAndroidPushCredentialRequest) o; - return Objects.equals(this.serverKey, createAndroidPushCredentialRequest.serverKey) && + return Objects.equals(this.type, createAndroidPushCredentialRequest.type) && + Objects.equals(this.serverKey, createAndroidPushCredentialRequest.serverKey) && Objects.equals(this.alias, createAndroidPushCredentialRequest.alias); } @Override public int hashCode() { - return Objects.hash(serverKey, alias); + return Objects.hash(type, serverKey, alias); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateAndroidPushCredentialRequest {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" serverKey: ").append(toIndentedString(serverKey)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/telnyx/sdk/model/CreateAuthenticationProvider200Response.java b/src/main/java/com/telnyx/sdk/model/CreateAuthenticationProvider200Response.java new file mode 100644 index 00000000..abb4f369 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateAuthenticationProvider200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.AuthenticationProvider; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateAuthenticationProvider200Response + */ +@JsonPropertyOrder({ + CreateAuthenticationProvider200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateAuthenticationProvider200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private AuthenticationProvider data; + + public CreateAuthenticationProvider200Response() { + } + + public CreateAuthenticationProvider200Response data(AuthenticationProvider data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AuthenticationProvider getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(AuthenticationProvider data) { + this.data = data; + } + + + /** + * Return true if this CreateAuthenticationProvider_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAuthenticationProvider200Response createAuthenticationProvider200Response = (CreateAuthenticationProvider200Response) o; + return Objects.equals(this.data, createAuthenticationProvider200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAuthenticationProvider200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateBillingGroup200Response.java b/src/main/java/com/telnyx/sdk/model/CreateBillingGroup200Response.java new file mode 100644 index 00000000..47aa3e88 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateBillingGroup200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BillingGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateBillingGroup200Response + */ +@JsonPropertyOrder({ + CreateBillingGroup200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateBillingGroup200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private BillingGroup data; + + public CreateBillingGroup200Response() { + } + + public CreateBillingGroup200Response data(BillingGroup data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BillingGroup getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(BillingGroup data) { + this.data = data; + } + + + /** + * Return true if this createBillingGroup_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateBillingGroup200Response createBillingGroup200Response = (CreateBillingGroup200Response) o; + return Objects.equals(this.data, createBillingGroup200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateBillingGroup200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateComment200Response.java b/src/main/java/com/telnyx/sdk/model/CreateComment200Response.java new file mode 100644 index 00000000..fbdf1a21 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateComment200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CreateComment200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateComment200Response + */ +@JsonPropertyOrder({ + CreateComment200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateComment200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private CreateComment200ResponseData data; + + public CreateComment200Response() { + } + + public CreateComment200Response data(CreateComment200ResponseData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CreateComment200ResponseData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(CreateComment200ResponseData data) { + this.data = data; + } + + + /** + * Return true if this createComment_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateComment200Response createComment200Response = (CreateComment200Response) o; + return Objects.equals(this.data, createComment200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateComment200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateComment200ResponseData.java b/src/main/java/com/telnyx/sdk/model/CreateComment200ResponseData.java new file mode 100644 index 00000000..b8a448fb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateComment200ResponseData.java @@ -0,0 +1,400 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Comment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateComment200ResponseData + */ +@JsonPropertyOrder({ + CreateComment200ResponseData.JSON_PROPERTY_ID, + CreateComment200ResponseData.JSON_PROPERTY_BODY, + CreateComment200ResponseData.JSON_PROPERTY_COMMENTER, + CreateComment200ResponseData.JSON_PROPERTY_COMMENTER_TYPE, + CreateComment200ResponseData.JSON_PROPERTY_COMMENT_RECORD_TYPE, + CreateComment200ResponseData.JSON_PROPERTY_COMMENT_RECORD_ID, + CreateComment200ResponseData.JSON_PROPERTY_READ_AT, + CreateComment200ResponseData.JSON_PROPERTY_CREATED_AT, + CreateComment200ResponseData.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateComment200ResponseData { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_BODY = "body"; + private String body; + + public static final String JSON_PROPERTY_COMMENTER = "commenter"; + private String commenter; + + /** + * Gets or Sets commenterType + */ + public enum CommenterTypeEnum { + ADMIN("admin"), + + USER("user"); + + private String value; + + CommenterTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CommenterTypeEnum fromValue(String value) { + for (CommenterTypeEnum b : CommenterTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_COMMENTER_TYPE = "commenter_type"; + private CommenterTypeEnum commenterType; + + /** + * Gets or Sets commentRecordType + */ + public enum CommentRecordTypeEnum { + NUMBER_ORDER("number_order"), + + SUB_NUMBER_ORDER("sub_number_order"), + + NUMBER_ORDER_PHONE_NUMBER("number_order_phone_number"); + + private String value; + + CommentRecordTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CommentRecordTypeEnum fromValue(String value) { + for (CommentRecordTypeEnum b : CommentRecordTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_COMMENT_RECORD_TYPE = "comment_record_type"; + private CommentRecordTypeEnum commentRecordType; + + public static final String JSON_PROPERTY_COMMENT_RECORD_ID = "comment_record_id"; + private UUID commentRecordId; + + public static final String JSON_PROPERTY_READ_AT = "read_at"; + private String readAt; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public CreateComment200ResponseData() { + } + + @JsonCreator + public CreateComment200ResponseData( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_COMMENTER) String commenter, + @JsonProperty(JSON_PROPERTY_COMMENTER_TYPE) CommenterTypeEnum commenterType, + @JsonProperty(JSON_PROPERTY_READ_AT) String readAt, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.commenter = commenter; + this.commenterType = commenterType; + this.readAt = readAt; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12ade33a-21c0-473b-b055-b3c836e1c292", value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + public CreateComment200ResponseData body(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Hi there, ....", value = "") + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBody() { + return body; + } + + + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBody(String body) { + this.body = body; + } + + + /** + * Get commenter + * @return commenter + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "user@company.com", value = "") + @JsonProperty(JSON_PROPERTY_COMMENTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCommenter() { + return commenter; + } + + + + + /** + * Get commenterType + * @return commenterType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "user", value = "") + @JsonProperty(JSON_PROPERTY_COMMENTER_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CommenterTypeEnum getCommenterType() { + return commenterType; + } + + + + + public CreateComment200ResponseData commentRecordType(CommentRecordTypeEnum commentRecordType) { + this.commentRecordType = commentRecordType; + return this; + } + + /** + * Get commentRecordType + * @return commentRecordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "sub_number_order", value = "") + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CommentRecordTypeEnum getCommentRecordType() { + return commentRecordType; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCommentRecordType(CommentRecordTypeEnum commentRecordType) { + this.commentRecordType = commentRecordType; + } + + + public CreateComment200ResponseData commentRecordId(UUID commentRecordId) { + this.commentRecordId = commentRecordId; + return this; + } + + /** + * Get commentRecordId + * @return commentRecordId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576", value = "") + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getCommentRecordId() { + return commentRecordId; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCommentRecordId(UUID commentRecordId) { + this.commentRecordId = commentRecordId; + } + + + /** + * An ISO 8901 datetime string for when the comment was read. + * @return readAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "An ISO 8901 datetime string for when the comment was read.") + @JsonProperty(JSON_PROPERTY_READ_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReadAt() { + return readAt; + } + + + + + /** + * An ISO 8901 datetime string denoting when the comment was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string denoting when the comment was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * An ISO 8901 datetime string for when the comment was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string for when the comment was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + /** + * Return true if this createComment_200_response_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateComment200ResponseData createComment200ResponseData = (CreateComment200ResponseData) o; + return Objects.equals(this.id, createComment200ResponseData.id) && + Objects.equals(this.body, createComment200ResponseData.body) && + Objects.equals(this.commenter, createComment200ResponseData.commenter) && + Objects.equals(this.commenterType, createComment200ResponseData.commenterType) && + Objects.equals(this.commentRecordType, createComment200ResponseData.commentRecordType) && + Objects.equals(this.commentRecordId, createComment200ResponseData.commentRecordId) && + Objects.equals(this.readAt, createComment200ResponseData.readAt) && + Objects.equals(this.createdAt, createComment200ResponseData.createdAt) && + Objects.equals(this.updatedAt, createComment200ResponseData.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, body, commenter, commenterType, commentRecordType, commentRecordId, readAt, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateComment200ResponseData {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append(" commenter: ").append(toIndentedString(commenter)).append("\n"); + sb.append(" commenterType: ").append(toIndentedString(commenterType)).append("\n"); + sb.append(" commentRecordType: ").append(toIndentedString(commentRecordType)).append("\n"); + sb.append(" commentRecordId: ").append(toIndentedString(commentRecordId)).append("\n"); + sb.append(" readAt: ").append(toIndentedString(readAt)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201Response.java b/src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201Response.java new file mode 100644 index 00000000..b9d4e22e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerServiceRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateCustomerServiceRequest201Response + */ +@JsonPropertyOrder({ + CreateCustomerServiceRequest201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateCustomerServiceRequest201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private CustomerServiceRequest data; + + public CreateCustomerServiceRequest201Response() { + } + + public CreateCustomerServiceRequest201Response data(CustomerServiceRequest data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CustomerServiceRequest getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(CustomerServiceRequest data) { + this.data = data; + } + + + /** + * Return true if this createCustomerServiceRequest_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateCustomerServiceRequest201Response createCustomerServiceRequest201Response = (CreateCustomerServiceRequest201Response) o; + return Objects.equals(this.data, createCustomerServiceRequest201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCustomerServiceRequest201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequest.java b/src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequest.java new file mode 100644 index 00000000..d1172a65 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequest.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateCustomerServiceRequestRequest + */ +@JsonPropertyOrder({ + CreateCustomerServiceRequestRequest.JSON_PROPERTY_PHONE_NUMBER, + CreateCustomerServiceRequestRequest.JSON_PROPERTY_WEBHOOK_URL +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateCustomerServiceRequestRequest { + public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number"; + private String phoneNumber; + + public static final String JSON_PROPERTY_WEBHOOK_URL = "webhook_url"; + private String webhookUrl; + + public CreateCustomerServiceRequestRequest() { + } + + public CreateCustomerServiceRequestRequest phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * A valid US phone number in E164 format. + * @return phoneNumber + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "+1234567890", required = true, value = "A valid US phone number in E164 format.") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPhoneNumber() { + return phoneNumber; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + public CreateCustomerServiceRequestRequest webhookUrl(String webhookUrl) { + this.webhookUrl = webhookUrl; + return this; + } + + /** + * Callback URL to receive webhook notifications. + * @return webhookUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "https://example.com/webhook", value = "Callback URL to receive webhook notifications.") + @JsonProperty(JSON_PROPERTY_WEBHOOK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getWebhookUrl() { + return webhookUrl; + } + + + @JsonProperty(JSON_PROPERTY_WEBHOOK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWebhookUrl(String webhookUrl) { + this.webhookUrl = webhookUrl; + } + + + /** + * Return true if this createCustomerServiceRequest_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateCustomerServiceRequestRequest createCustomerServiceRequestRequest = (CreateCustomerServiceRequestRequest) o; + return Objects.equals(this.phoneNumber, createCustomerServiceRequestRequest.phoneNumber) && + Objects.equals(this.webhookUrl, createCustomerServiceRequestRequest.webhookUrl); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumber, webhookUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCustomerServiceRequestRequest {\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateDocument200Response.java b/src/main/java/com/telnyx/sdk/model/CreateDocument200Response.java new file mode 100644 index 00000000..f4d18d56 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateDocument200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocServiceDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateDocument200Response + */ +@JsonPropertyOrder({ + CreateDocument200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateDocument200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private DocServiceDocument data; + + public CreateDocument200Response() { + } + + public CreateDocument200Response data(DocServiceDocument data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DocServiceDocument getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(DocServiceDocument data) { + this.data = data; + } + + + /** + * Return true if this createDocument_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDocument200Response createDocument200Response = (CreateDocument200Response) o; + return Objects.equals(this.data, createDocument200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDocument200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201Response.java b/src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201Response.java new file mode 100644 index 00000000..89513643 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyAddress; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateDyanmicEmergencyAddress201Response + */ +@JsonPropertyOrder({ + CreateDyanmicEmergencyAddress201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateDyanmicEmergencyAddress201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private DynamicEmergencyAddress data; + + public CreateDyanmicEmergencyAddress201Response() { + } + + public CreateDyanmicEmergencyAddress201Response data(DynamicEmergencyAddress data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DynamicEmergencyAddress getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(DynamicEmergencyAddress data) { + this.data = data; + } + + + /** + * Return true if this createDyanmicEmergencyAddress_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDyanmicEmergencyAddress201Response createDyanmicEmergencyAddress201Response = (CreateDyanmicEmergencyAddress201Response) o; + return Objects.equals(this.data, createDyanmicEmergencyAddress201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDyanmicEmergencyAddress201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201Response.java b/src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201Response.java new file mode 100644 index 00000000..29a31d49 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyEndpoint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateDyanmicEmergencyEndpoint201Response + */ +@JsonPropertyOrder({ + CreateDyanmicEmergencyEndpoint201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateDyanmicEmergencyEndpoint201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private DynamicEmergencyEndpoint data; + + public CreateDyanmicEmergencyEndpoint201Response() { + } + + public CreateDyanmicEmergencyEndpoint201Response data(DynamicEmergencyEndpoint data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DynamicEmergencyEndpoint getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(DynamicEmergencyEndpoint data) { + this.data = data; + } + + + /** + * Return true if this createDyanmicEmergencyEndpoint_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDyanmicEmergencyEndpoint201Response createDyanmicEmergencyEndpoint201Response = (CreateDyanmicEmergencyEndpoint201Response) o; + return Objects.equals(this.data, createDyanmicEmergencyEndpoint201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDyanmicEmergencyEndpoint201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateFaxApplicationRequestInbound.java b/src/main/java/com/telnyx/sdk/model/CreateFaxApplicationRequestInbound.java index cd9a3c4c..a11687b4 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateFaxApplicationRequestInbound.java +++ b/src/main/java/com/telnyx/sdk/model/CreateFaxApplicationRequestInbound.java @@ -42,7 +42,7 @@ public class CreateFaxApplicationRequestInbound { private Integer channelLimit; public static final String JSON_PROPERTY_SIP_SUBDOMAIN = "sip_subdomain"; - private String sipSubdomain = "null"; + private String sipSubdomain; /** * This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). diff --git a/src/main/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200Response.java b/src/main/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200Response.java new file mode 100644 index 00000000..36fcd787 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InventoryCoverage; +import com.telnyx.sdk.model.InventoryCoverageMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateInventoryCoverageRequest200Response + */ +@JsonPropertyOrder({ + CreateInventoryCoverageRequest200Response.JSON_PROPERTY_DATA, + CreateInventoryCoverageRequest200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateInventoryCoverageRequest200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private InventoryCoverageMetadata meta; + + public CreateInventoryCoverageRequest200Response() { + } + + public CreateInventoryCoverageRequest200Response data(List data) { + this.data = data; + return this; + } + + public CreateInventoryCoverageRequest200Response addDataItem(InventoryCoverage dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public CreateInventoryCoverageRequest200Response meta(InventoryCoverageMetadata meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InventoryCoverageMetadata getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(InventoryCoverageMetadata meta) { + this.meta = meta; + } + + + /** + * Return true if this createInventoryCoverageRequest_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateInventoryCoverageRequest200Response createInventoryCoverageRequest200Response = (CreateInventoryCoverageRequest200Response) o; + return Objects.equals(this.data, createInventoryCoverageRequest200Response.data) && + Objects.equals(this.meta, createInventoryCoverageRequest200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateInventoryCoverageRequest200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateIosPushCredentialRequest.java b/src/main/java/com/telnyx/sdk/model/CreateIosPushCredentialRequest.java index 1e2a1586..e34cb81d 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateIosPushCredentialRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateIosPushCredentialRequest.java @@ -32,12 +32,49 @@ * CreateIosPushCredentialRequest */ @JsonPropertyOrder({ + CreateIosPushCredentialRequest.JSON_PROPERTY_TYPE, CreateIosPushCredentialRequest.JSON_PROPERTY_CERTIFICATE, CreateIosPushCredentialRequest.JSON_PROPERTY_PRIVATE_KEY, CreateIosPushCredentialRequest.JSON_PROPERTY_ALIAS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class CreateIosPushCredentialRequest { + /** + * Type of mobile push credential. Should be <code>ios</code> here + */ + public enum TypeEnum { + IOS("ios"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + public static final String JSON_PROPERTY_CERTIFICATE = "certificate"; private String certificate; @@ -50,6 +87,32 @@ public class CreateIosPushCredentialRequest { public CreateIosPushCredentialRequest() { } + public CreateIosPushCredentialRequest type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Type of mobile push credential. Should be <code>ios</code> here + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Type of mobile push credential. Should be ios here") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + public CreateIosPushCredentialRequest certificate(String certificate) { this.certificate = certificate; return this; @@ -60,7 +123,7 @@ public CreateIosPushCredentialRequest certificate(String certificate) { * @return certificate **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "Bag Attributes friendlyName: VoIP Services: com.telnyx.webrtcapp localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA subject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority -----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak qqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3 o6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt hRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ cakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk MAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw PwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j b20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC DRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq dGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF MIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh dGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109 CfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx cHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ Y2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0 YXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk LLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj /xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d BPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg== -----END CERTIFICATE----- ", required = true, value = "Certificate as received from APNs") + @ApiModelProperty(example = "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----", required = true, value = "Certificate as received from APNs") @JsonProperty(JSON_PROPERTY_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -86,7 +149,7 @@ public CreateIosPushCredentialRequest privateKey(String privateKey) { * @return privateKey **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak qqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r B8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2 Zgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4 3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG wfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k wsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0 cE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC 3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St mu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO IWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu y3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/ zkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU hxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh RUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV QOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv 8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4= -----END RSA PRIVATE KEY-----", required = true, value = "Corresponding private key to the certificate as received from APNs") + @ApiModelProperty(example = "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----", required = true, value = "Corresponding private key to the certificate as received from APNs") @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -140,20 +203,22 @@ public boolean equals(Object o) { return false; } CreateIosPushCredentialRequest createIosPushCredentialRequest = (CreateIosPushCredentialRequest) o; - return Objects.equals(this.certificate, createIosPushCredentialRequest.certificate) && + return Objects.equals(this.type, createIosPushCredentialRequest.type) && + Objects.equals(this.certificate, createIosPushCredentialRequest.certificate) && Objects.equals(this.privateKey, createIosPushCredentialRequest.privateKey) && Objects.equals(this.alias, createIosPushCredentialRequest.alias); } @Override public int hashCode() { - return Objects.hash(certificate, privateKey, alias); + return Objects.hash(type, certificate, privateKey, alias); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateIosPushCredentialRequest {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" certificate: ").append(toIndentedString(certificate)).append("\n"); sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); diff --git a/src/main/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200Response.java b/src/main/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200Response.java new file mode 100644 index 00000000..c1c551b3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.LedgerBillingGroupReport; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateLedgerBillingGroupReport200Response + */ +@JsonPropertyOrder({ + CreateLedgerBillingGroupReport200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateLedgerBillingGroupReport200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private LedgerBillingGroupReport data; + + public CreateLedgerBillingGroupReport200Response() { + } + + public CreateLedgerBillingGroupReport200Response data(LedgerBillingGroupReport data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LedgerBillingGroupReport getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(LedgerBillingGroupReport data) { + this.data = data; + } + + + /** + * Return true if this createLedgerBillingGroupReport_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateLedgerBillingGroupReport200Response createLedgerBillingGroupReport200Response = (CreateLedgerBillingGroupReport200Response) o; + return Objects.equals(this.data, createLedgerBillingGroupReport200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateLedgerBillingGroupReport200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateManagedAccount200Response.java b/src/main/java/com/telnyx/sdk/model/CreateManagedAccount200Response.java new file mode 100644 index 00000000..f606e8e0 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateManagedAccount200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ManagedAccount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateManagedAccount200Response + */ +@JsonPropertyOrder({ + CreateManagedAccount200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateManagedAccount200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private ManagedAccount data; + + public CreateManagedAccount200Response() { + } + + public CreateManagedAccount200Response data(ManagedAccount data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ManagedAccount getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(ManagedAccount data) { + this.data = data; + } + + + /** + * Return true if this createManagedAccount_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateManagedAccount200Response createManagedAccount200Response = (CreateManagedAccount200Response) o; + return Objects.equals(this.data, createManagedAccount200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateManagedAccount200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateManagedAccount422Response.java b/src/main/java/com/telnyx/sdk/model/CreateManagedAccount422Response.java new file mode 100644 index 00000000..ef50457b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateManagedAccount422Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnprocessableEntityError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateManagedAccount422Response + */ +@JsonPropertyOrder({ + CreateManagedAccount422Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateManagedAccount422Response { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public CreateManagedAccount422Response() { + } + + public CreateManagedAccount422Response errors(List errors) { + this.errors = errors; + return this; + } + + public CreateManagedAccount422Response addErrorsItem(UnprocessableEntityError errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this createManagedAccount_422_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateManagedAccount422Response createManagedAccount422Response = (CreateManagedAccount422Response) o; + return Objects.equals(this.errors, createManagedAccount422Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateManagedAccount422Response {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateNotificationChannels200Response.java b/src/main/java/com/telnyx/sdk/model/CreateNotificationChannels200Response.java new file mode 100644 index 00000000..92510f85 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateNotificationChannels200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationChannel; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateNotificationChannels200Response + */ +@JsonPropertyOrder({ + CreateNotificationChannels200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateNotificationChannels200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private NotificationChannel data; + + public CreateNotificationChannels200Response() { + } + + public CreateNotificationChannels200Response data(NotificationChannel data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public NotificationChannel getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(NotificationChannel data) { + this.data = data; + } + + + /** + * Return true if this createNotificationChannels_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateNotificationChannels200Response createNotificationChannels200Response = (CreateNotificationChannels200Response) o; + return Objects.equals(this.data, createNotificationChannels200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateNotificationChannels200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateNotificationProfile200Response.java b/src/main/java/com/telnyx/sdk/model/CreateNotificationProfile200Response.java new file mode 100644 index 00000000..afea0be2 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateNotificationProfile200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationProfile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateNotificationProfile200Response + */ +@JsonPropertyOrder({ + CreateNotificationProfile200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateNotificationProfile200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private NotificationProfile data; + + public CreateNotificationProfile200Response() { + } + + public CreateNotificationProfile200Response data(NotificationProfile data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public NotificationProfile getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(NotificationProfile data) { + this.data = data; + } + + + /** + * Return true if this createNotificationProfile_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateNotificationProfile200Response createNotificationProfile200Response = (CreateNotificationProfile200Response) o; + return Objects.equals(this.data, createNotificationProfile200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateNotificationProfile200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateNotificationSetting200Response.java b/src/main/java/com/telnyx/sdk/model/CreateNotificationSetting200Response.java new file mode 100644 index 00000000..63486928 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateNotificationSetting200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationSetting; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateNotificationSetting200Response + */ +@JsonPropertyOrder({ + CreateNotificationSetting200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateNotificationSetting200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private NotificationSetting data; + + public CreateNotificationSetting200Response() { + } + + public CreateNotificationSetting200Response data(NotificationSetting data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public NotificationSetting getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(NotificationSetting data) { + this.data = data; + } + + + /** + * Return true if this createNotificationSetting_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateNotificationSetting200Response createNotificationSetting200Response = (CreateNotificationSetting200Response) o; + return Objects.equals(this.data, createNotificationSetting200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateNotificationSetting200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateNumberBlockOrderRequest.java b/src/main/java/com/telnyx/sdk/model/CreateNumberBlockOrderRequest.java index 1786595d..ff8d2536 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateNumberBlockOrderRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateNumberBlockOrderRequest.java @@ -128,6 +128,28 @@ public static StatusEnum fromValue(String value) { public CreateNumberBlockOrderRequest() { } + @JsonCreator + public CreateNumberBlockOrderRequest( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_COUNT) Integer phoneNumbersCount, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet, + @JsonProperty(JSON_PROPERTY_ERRORS) String errors + ) { + this(); + this.id = id; + this.recordType = recordType; + this.phoneNumbersCount = phoneNumbersCount; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.requirementsMet = requirementsMet; + this.errors = errors; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/CreateNumberOrderDocumentRequest.java b/src/main/java/com/telnyx/sdk/model/CreateNumberOrderDocumentRequest.java index fb060f03..982a2cef 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateNumberOrderDocumentRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateNumberOrderDocumentRequest.java @@ -104,6 +104,20 @@ public static RequirementTypeEnum fromValue(String value) { public CreateNumberOrderDocumentRequest() { } + @JsonCreator + public CreateNumberOrderDocumentRequest( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_REQUIREMENT_TYPE) RequirementTypeEnum requirementType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.requirementType = requirementType; + this.createdAt = createdAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/CreateNumberOrderRequest.java b/src/main/java/com/telnyx/sdk/model/CreateNumberOrderRequest.java index a5e66d04..a9c61d6d 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateNumberOrderRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateNumberOrderRequest.java @@ -127,6 +127,26 @@ public static StatusEnum fromValue(String value) { public CreateNumberOrderRequest() { } + @JsonCreator + public CreateNumberOrderRequest( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_COUNT) Integer phoneNumbersCount, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet + ) { + this(); + this.id = id; + this.recordType = recordType; + this.phoneNumbersCount = phoneNumbersCount; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.requirementsMet = requirementsMet; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/CreateNumberReservationRequest.java b/src/main/java/com/telnyx/sdk/model/CreateNumberReservationRequest.java index 4720251e..65948c96 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateNumberReservationRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateNumberReservationRequest.java @@ -107,6 +107,22 @@ public static StatusEnum fromValue(String value) { public CreateNumberReservationRequest() { } + @JsonCreator + public CreateNumberReservationRequest( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequest.java b/src/main/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequest.java index 752aa125..13f15b50 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequest.java @@ -23,12 +23,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Address; -import com.telnyx.sdk.model.BusinessDescription; -import com.telnyx.sdk.model.BusinessEmail; -import com.telnyx.sdk.model.BusinessPhoneNumber; -import com.telnyx.sdk.model.Contacts; -import com.telnyx.sdk.model.SubmissionAcknowledgement; -import com.telnyx.sdk.model.WebsiteUrl; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -55,28 +49,28 @@ public class CreateOrUpdateBusinessIdentityRequest { private String name; public static final String JSON_PROPERTY_BUSINESS_EMAIL = "business_email"; - private BusinessEmail businessEmail = null; + private String businessEmail = null; public static final String JSON_PROPERTY_BUSINESS_NAME = "business_name"; - private String businessName; + private String businessName = null; public static final String JSON_PROPERTY_BUSINESS_PHONE_NUMBER = "business_phone_number"; - private BusinessPhoneNumber businessPhoneNumber = null; + private String businessPhoneNumber = null; public static final String JSON_PROPERTY_BUSINESS_DESCRIPTION = "business_description"; - private BusinessDescription businessDescription = null; + private String businessDescription = null; public static final String JSON_PROPERTY_SUBMISSION_ACKNOWLEDGEMENT = "submission_acknowledgement"; - private SubmissionAcknowledgement submissionAcknowledgement = null; + private String submissionAcknowledgement = null; public static final String JSON_PROPERTY_WEBSITE_URL = "website_url"; - private WebsiteUrl websiteUrl = null; + private String websiteUrl = null; public static final String JSON_PROPERTY_ADDRESS = "address"; private Address address = null; public static final String JSON_PROPERTY_CONTACTS = "contacts"; - private Contacts contacts = null; + private String contacts = null; public CreateOrUpdateBusinessIdentityRequest() { } @@ -107,7 +101,7 @@ public void setName(String name) { } - public CreateOrUpdateBusinessIdentityRequest businessEmail(BusinessEmail businessEmail) { + public CreateOrUpdateBusinessIdentityRequest businessEmail(String businessEmail) { this.businessEmail = businessEmail; return this; } @@ -121,14 +115,14 @@ public CreateOrUpdateBusinessIdentityRequest businessEmail(BusinessEmail busines @JsonProperty(JSON_PROPERTY_BUSINESS_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessEmail getBusinessEmail() { + public String getBusinessEmail() { return businessEmail; } @JsonProperty(JSON_PROPERTY_BUSINESS_EMAIL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBusinessEmail(BusinessEmail businessEmail) { + public void setBusinessEmail(String businessEmail) { this.businessEmail = businessEmail; } @@ -139,11 +133,11 @@ public CreateOrUpdateBusinessIdentityRequest businessName(String businessName) { } /** - * The business name associated with the address. An address must have either a first last name or a business name. + * Get businessName * @return businessName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "Toy-O'Kon", value = "The business name associated with the address. An address must have either a first last name or a business name.") + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_BUSINESS_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -159,7 +153,7 @@ public void setBusinessName(String businessName) { } - public CreateOrUpdateBusinessIdentityRequest businessPhoneNumber(BusinessPhoneNumber businessPhoneNumber) { + public CreateOrUpdateBusinessIdentityRequest businessPhoneNumber(String businessPhoneNumber) { this.businessPhoneNumber = businessPhoneNumber; return this; } @@ -173,19 +167,19 @@ public CreateOrUpdateBusinessIdentityRequest businessPhoneNumber(BusinessPhoneNu @JsonProperty(JSON_PROPERTY_BUSINESS_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessPhoneNumber getBusinessPhoneNumber() { + public String getBusinessPhoneNumber() { return businessPhoneNumber; } @JsonProperty(JSON_PROPERTY_BUSINESS_PHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBusinessPhoneNumber(BusinessPhoneNumber businessPhoneNumber) { + public void setBusinessPhoneNumber(String businessPhoneNumber) { this.businessPhoneNumber = businessPhoneNumber; } - public CreateOrUpdateBusinessIdentityRequest businessDescription(BusinessDescription businessDescription) { + public CreateOrUpdateBusinessIdentityRequest businessDescription(String businessDescription) { this.businessDescription = businessDescription; return this; } @@ -199,19 +193,19 @@ public CreateOrUpdateBusinessIdentityRequest businessDescription(BusinessDescrip @JsonProperty(JSON_PROPERTY_BUSINESS_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public BusinessDescription getBusinessDescription() { + public String getBusinessDescription() { return businessDescription; } @JsonProperty(JSON_PROPERTY_BUSINESS_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setBusinessDescription(BusinessDescription businessDescription) { + public void setBusinessDescription(String businessDescription) { this.businessDescription = businessDescription; } - public CreateOrUpdateBusinessIdentityRequest submissionAcknowledgement(SubmissionAcknowledgement submissionAcknowledgement) { + public CreateOrUpdateBusinessIdentityRequest submissionAcknowledgement(String submissionAcknowledgement) { this.submissionAcknowledgement = submissionAcknowledgement; return this; } @@ -225,19 +219,19 @@ public CreateOrUpdateBusinessIdentityRequest submissionAcknowledgement(Submissio @JsonProperty(JSON_PROPERTY_SUBMISSION_ACKNOWLEDGEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SubmissionAcknowledgement getSubmissionAcknowledgement() { + public String getSubmissionAcknowledgement() { return submissionAcknowledgement; } @JsonProperty(JSON_PROPERTY_SUBMISSION_ACKNOWLEDGEMENT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSubmissionAcknowledgement(SubmissionAcknowledgement submissionAcknowledgement) { + public void setSubmissionAcknowledgement(String submissionAcknowledgement) { this.submissionAcknowledgement = submissionAcknowledgement; } - public CreateOrUpdateBusinessIdentityRequest websiteUrl(WebsiteUrl websiteUrl) { + public CreateOrUpdateBusinessIdentityRequest websiteUrl(String websiteUrl) { this.websiteUrl = websiteUrl; return this; } @@ -251,14 +245,14 @@ public CreateOrUpdateBusinessIdentityRequest websiteUrl(WebsiteUrl websiteUrl) { @JsonProperty(JSON_PROPERTY_WEBSITE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public WebsiteUrl getWebsiteUrl() { + public String getWebsiteUrl() { return websiteUrl; } @JsonProperty(JSON_PROPERTY_WEBSITE_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWebsiteUrl(WebsiteUrl websiteUrl) { + public void setWebsiteUrl(String websiteUrl) { this.websiteUrl = websiteUrl; } @@ -289,7 +283,7 @@ public void setAddress(Address address) { } - public CreateOrUpdateBusinessIdentityRequest contacts(Contacts contacts) { + public CreateOrUpdateBusinessIdentityRequest contacts(String contacts) { this.contacts = contacts; return this; } @@ -303,14 +297,14 @@ public CreateOrUpdateBusinessIdentityRequest contacts(Contacts contacts) { @JsonProperty(JSON_PROPERTY_CONTACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public Contacts getContacts() { + public String getContacts() { return contacts; } @JsonProperty(JSON_PROPERTY_CONTACTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContacts(Contacts contacts) { + public void setContacts(String contacts) { this.contacts = contacts; } diff --git a/src/main/java/com/telnyx/sdk/model/CreatePortingOrder201Response.java b/src/main/java/com/telnyx/sdk/model/CreatePortingOrder201Response.java new file mode 100644 index 00000000..11330e64 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreatePortingOrder201Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreatePortingOrder201Response + */ +@JsonPropertyOrder({ + CreatePortingOrder201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreatePortingOrder201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public CreatePortingOrder201Response() { + } + + public CreatePortingOrder201Response data(List data) { + this.data = data; + return this; + } + + public CreatePortingOrder201Response addDataItem(PortingOrder dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this createPortingOrder_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreatePortingOrder201Response createPortingOrder201Response = (CreatePortingOrder201Response) o; + return Objects.equals(this.data, createPortingOrder201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePortingOrder201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreatePortingOrderComment201Response.java b/src/main/java/com/telnyx/sdk/model/CreatePortingOrderComment201Response.java new file mode 100644 index 00000000..c33430dd --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreatePortingOrderComment201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrdersComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreatePortingOrderComment201Response + */ +@JsonPropertyOrder({ + CreatePortingOrderComment201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreatePortingOrderComment201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortingOrdersComment data; + + public CreatePortingOrderComment201Response() { + } + + public CreatePortingOrderComment201Response data(PortingOrdersComment data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortingOrdersComment getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortingOrdersComment data) { + this.data = data; + } + + + /** + * Return true if this createPortingOrderComment_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreatePortingOrderComment201Response createPortingOrderComment201Response = (CreatePortingOrderComment201Response) o; + return Objects.equals(this.data, createPortingOrderComment201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePortingOrderComment201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202Response.java b/src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202Response.java new file mode 100644 index 00000000..8f83c2af --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PrivateWirelessGateway; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreatePrivateWirelessGateway202Response + */ +@JsonPropertyOrder({ + CreatePrivateWirelessGateway202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreatePrivateWirelessGateway202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PrivateWirelessGateway data; + + public CreatePrivateWirelessGateway202Response() { + } + + public CreatePrivateWirelessGateway202Response data(PrivateWirelessGateway data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PrivateWirelessGateway getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PrivateWirelessGateway data) { + this.data = data; + } + + + /** + * Return true if this createPrivateWirelessGateway_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreatePrivateWirelessGateway202Response createPrivateWirelessGateway202Response = (CreatePrivateWirelessGateway202Response) o; + return Objects.equals(this.data, createPrivateWirelessGateway202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateWirelessGateway202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequest.java b/src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequest.java new file mode 100644 index 00000000..420029b4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequest.java @@ -0,0 +1,145 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreatePrivateWirelessGatewayRequest + */ +@JsonPropertyOrder({ + CreatePrivateWirelessGatewayRequest.JSON_PROPERTY_NETWORK_ID, + CreatePrivateWirelessGatewayRequest.JSON_PROPERTY_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreatePrivateWirelessGatewayRequest { + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public CreatePrivateWirelessGatewayRequest() { + } + + public CreatePrivateWirelessGatewayRequest networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The identification of the related network resource. + * @return networkId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The identification of the related network resource.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public CreatePrivateWirelessGatewayRequest name(String name) { + this.name = name; + return this; + } + + /** + * The private wireless gateway name. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "My private wireless gateway", required = true, value = "The private wireless gateway name.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + /** + * Return true if this createPrivateWirelessGateway_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreatePrivateWirelessGatewayRequest createPrivateWirelessGatewayRequest = (CreatePrivateWirelessGatewayRequest) o; + return Objects.equals(this.networkId, createPrivateWirelessGatewayRequest.networkId) && + Objects.equals(this.name, createPrivateWirelessGatewayRequest.name); + } + + @Override + public int hashCode() { + return Objects.hash(networkId, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatePrivateWirelessGatewayRequest {\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreatePushCredentialRequest.java b/src/main/java/com/telnyx/sdk/model/CreatePushCredentialRequest.java new file mode 100644 index 00000000..741aa1ad --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreatePushCredentialRequest.java @@ -0,0 +1,252 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CreateAndroidPushCredentialRequest; +import com.telnyx.sdk.model.CreateIosPushCredentialRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + +import com.fasterxml.jackson.core.type.TypeReference; + +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.JsonToken; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.MapperFeature; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import com.telnyx.sdk.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@JsonDeserialize(using = CreatePushCredentialRequest.CreatePushCredentialRequestDeserializer.class) +@JsonSerialize(using = CreatePushCredentialRequest.CreatePushCredentialRequestSerializer.class) +public class CreatePushCredentialRequest extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(CreatePushCredentialRequest.class.getName()); + + public static class CreatePushCredentialRequestSerializer extends StdSerializer { + public CreatePushCredentialRequestSerializer(Class t) { + super(t); + } + + public CreatePushCredentialRequestSerializer() { + this(null); + } + + @Override + public void serialize(CreatePushCredentialRequest value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class CreatePushCredentialRequestDeserializer extends StdDeserializer { + public CreatePushCredentialRequestDeserializer() { + this(CreatePushCredentialRequest.class); + } + + public CreatePushCredentialRequestDeserializer(Class vc) { + super(vc); + } + + @Override + public CreatePushCredentialRequest deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + Object deserialized = null; + boolean typeCoercion = ctxt.isEnabled(MapperFeature.ALLOW_COERCION_OF_SCALARS); + int match = 0; + JsonToken token = tree.traverse(jp.getCodec()).nextToken(); + // deserialize CreateAndroidPushCredentialRequest + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (CreateAndroidPushCredentialRequest.class.equals(Integer.class) || CreateAndroidPushCredentialRequest.class.equals(Long.class) || CreateAndroidPushCredentialRequest.class.equals(Float.class) || CreateAndroidPushCredentialRequest.class.equals(Double.class) || CreateAndroidPushCredentialRequest.class.equals(Boolean.class) || CreateAndroidPushCredentialRequest.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((CreateAndroidPushCredentialRequest.class.equals(Integer.class) || CreateAndroidPushCredentialRequest.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((CreateAndroidPushCredentialRequest.class.equals(Float.class) || CreateAndroidPushCredentialRequest.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (CreateAndroidPushCredentialRequest.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (CreateAndroidPushCredentialRequest.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CreateAndroidPushCredentialRequest.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CreateAndroidPushCredentialRequest'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CreateAndroidPushCredentialRequest'", e); + } + + // deserialize CreateIosPushCredentialRequest + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (CreateIosPushCredentialRequest.class.equals(Integer.class) || CreateIosPushCredentialRequest.class.equals(Long.class) || CreateIosPushCredentialRequest.class.equals(Float.class) || CreateIosPushCredentialRequest.class.equals(Double.class) || CreateIosPushCredentialRequest.class.equals(Boolean.class) || CreateIosPushCredentialRequest.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((CreateIosPushCredentialRequest.class.equals(Integer.class) || CreateIosPushCredentialRequest.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((CreateIosPushCredentialRequest.class.equals(Float.class) || CreateIosPushCredentialRequest.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (CreateIosPushCredentialRequest.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (CreateIosPushCredentialRequest.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(CreateIosPushCredentialRequest.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'CreateIosPushCredentialRequest'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'CreateIosPushCredentialRequest'", e); + } + + if (match == 1) { + CreatePushCredentialRequest ret = new CreatePushCredentialRequest(); + ret.setActualInstance(deserialized); + return ret; + } + throw new IOException(String.format("Failed deserialization for CreatePushCredentialRequest: %d classes match result, expected 1", match)); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public CreatePushCredentialRequest getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "CreatePushCredentialRequest cannot be null"); + } + } + + // store a list of schema names defined in oneOf + public static final Map schemas = new HashMap(); + + public CreatePushCredentialRequest() { + super("oneOf", Boolean.FALSE); + } + + public CreatePushCredentialRequest(CreateAndroidPushCredentialRequest o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + public CreatePushCredentialRequest(CreateIosPushCredentialRequest o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("CreateAndroidPushCredentialRequest", new GenericType() { + }); + schemas.put("CreateIosPushCredentialRequest", new GenericType() { + }); + JSON.registerDescendants(CreatePushCredentialRequest.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map getSchemas() { + return CreatePushCredentialRequest.schemas; + } + + /** + * Set the instance that matches the oneOf child schema, check + * the instance parameter is valid against the oneOf child schemas: + * CreateAndroidPushCredentialRequest, CreateIosPushCredentialRequest + * + * It could be an instance of the 'oneOf' schemas. + * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(CreateAndroidPushCredentialRequest.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(CreateIosPushCredentialRequest.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be CreateAndroidPushCredentialRequest, CreateIosPushCredentialRequest"); + } + + /** + * Get the actual instance, which can be the following: + * CreateAndroidPushCredentialRequest, CreateIosPushCredentialRequest + * + * @return The actual instance (CreateAndroidPushCredentialRequest, CreateIosPushCredentialRequest) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `CreateAndroidPushCredentialRequest`. If the actual instance is not `CreateAndroidPushCredentialRequest`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateAndroidPushCredentialRequest` + * @throws ClassCastException if the instance is not `CreateAndroidPushCredentialRequest` + */ + public CreateAndroidPushCredentialRequest getCreateAndroidPushCredentialRequest() throws ClassCastException { + return (CreateAndroidPushCredentialRequest)super.getActualInstance(); + } + + /** + * Get the actual instance of `CreateIosPushCredentialRequest`. If the actual instance is not `CreateIosPushCredentialRequest`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `CreateIosPushCredentialRequest` + * @throws ClassCastException if the instance is not `CreateIosPushCredentialRequest` + */ + public CreateIosPushCredentialRequest getCreateIosPushCredentialRequest() throws ClassCastException { + return (CreateIosPushCredentialRequest)super.getActualInstance(); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateRoom201Response.java b/src/main/java/com/telnyx/sdk/model/CreateRoom201Response.java new file mode 100644 index 00000000..e45ebb6f --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateRoom201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Room; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateRoom201Response + */ +@JsonPropertyOrder({ + CreateRoom201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateRoom201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private Room data; + + public CreateRoom201Response() { + } + + public CreateRoom201Response data(Room data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Room getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Room data) { + this.data = data; + } + + + /** + * Return true if this CreateRoom_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRoom201Response createRoom201Response = (CreateRoom201Response) o; + return Objects.equals(this.data, createRoom201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRoom201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201Response.java b/src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201Response.java new file mode 100644 index 00000000..84730a78 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CreateRoomClientToken201ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateRoomClientToken201Response + */ +@JsonPropertyOrder({ + CreateRoomClientToken201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateRoomClientToken201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private CreateRoomClientToken201ResponseData data; + + public CreateRoomClientToken201Response() { + } + + public CreateRoomClientToken201Response data(CreateRoomClientToken201ResponseData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CreateRoomClientToken201ResponseData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(CreateRoomClientToken201ResponseData data) { + this.data = data; + } + + + /** + * Return true if this CreateRoomClientToken_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRoomClientToken201Response createRoomClientToken201Response = (CreateRoomClientToken201Response) o; + return Objects.equals(this.data, createRoomClientToken201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRoomClientToken201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseData.java b/src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseData.java new file mode 100644 index 00000000..a66288fb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseData.java @@ -0,0 +1,208 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateRoomClientToken201ResponseData + */ +@JsonPropertyOrder({ + CreateRoomClientToken201ResponseData.JSON_PROPERTY_TOKEN, + CreateRoomClientToken201ResponseData.JSON_PROPERTY_TOKEN_EXPIRES_AT, + CreateRoomClientToken201ResponseData.JSON_PROPERTY_REFRESH_TOKEN, + CreateRoomClientToken201ResponseData.JSON_PROPERTY_REFRESH_TOKEN_EXPIRES_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateRoomClientToken201ResponseData { + public static final String JSON_PROPERTY_TOKEN = "token"; + private String token; + + public static final String JSON_PROPERTY_TOKEN_EXPIRES_AT = "token_expires_at"; + private String tokenExpiresAt; + + public static final String JSON_PROPERTY_REFRESH_TOKEN = "refresh_token"; + private String refreshToken; + + public static final String JSON_PROPERTY_REFRESH_TOKEN_EXPIRES_AT = "refresh_token_expires_at"; + private String refreshTokenExpiresAt; + + public CreateRoomClientToken201ResponseData() { + } + + public CreateRoomClientToken201ResponseData token(String token) { + this.token = token; + return this; + } + + /** + * Get token + * @return token + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ0ZWxueXhfdGVsZXBob255IiwiZXhwIjoxNTkwMDEwMTQzLCJpYXQiOjE1ODc1OTA5NDMsImlzcyI6InRlbG55eF90ZWxlcGhvbnkiLCJqdGkiOiJiOGM3NDgzNy1kODllLTRhNjUtOWNmMi0zNGM3YTZmYTYwYzgiLCJuYmYiOjE1ODc1OTA5NDIsInN1YiI6IjVjN2FjN2QwLWRiNjUtNGYxMS05OGUxLWVlYzBkMWQ1YzZhZSIsInRlbF90b2tlbiI6InJqX1pra1pVT1pNeFpPZk9tTHBFVUIzc2lVN3U2UmpaRmVNOXMtZ2JfeENSNTZXRktGQUppTXlGMlQ2Q0JSbWxoX1N5MGlfbGZ5VDlBSThzRWlmOE1USUlzenl6U2xfYURuRzQ4YU81MHlhSEd1UlNZYlViU1ltOVdJaVEwZz09IiwidHlwIjoiYWNjZXNzIn0.gNEwzTow5MLLPLQENytca7pUN79PmPj6FyqZWW06ZeEmesxYpwKh0xRtA0TzLh6CDYIRHrI8seofOO0YFGDhpQ", value = "") + @JsonProperty(JSON_PROPERTY_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getToken() { + return token; + } + + + @JsonProperty(JSON_PROPERTY_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setToken(String token) { + this.token = token; + } + + + public CreateRoomClientToken201ResponseData tokenExpiresAt(String tokenExpiresAt) { + this.tokenExpiresAt = tokenExpiresAt; + return this; + } + + /** + * ISO 8601 timestamp when the token expires. + * @return tokenExpiresAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-03-26T17:51:59Z", value = "ISO 8601 timestamp when the token expires.") + @JsonProperty(JSON_PROPERTY_TOKEN_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTokenExpiresAt() { + return tokenExpiresAt; + } + + + @JsonProperty(JSON_PROPERTY_TOKEN_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTokenExpiresAt(String tokenExpiresAt) { + this.tokenExpiresAt = tokenExpiresAt; + } + + + public CreateRoomClientToken201ResponseData refreshToken(String refreshToken) { + this.refreshToken = refreshToken; + return this; + } + + /** + * Get refreshToken + * @return refreshToken + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ0ZWxueXhfdGVsZXBob255IiwiZXhwIjoxNTkwMDEwMTQzLCJpYXQiOjE1ODc1OTA5NDMsImlzcyI6InRlbG55eF90ZWxlcGhvbnkiLCJqdGkiOiJiOGM3NDgzNy1kODllLTRhNjUtOWNmMi0zNGM3YTZmYTYwYzgiLCJuYmYiOjE1ODc1OTA5NDIsInN1YiI6IjVjN2FjN2QwLWRiNjUtNGYxMS05OGUxLWVlYzBkMWQ1YzZhZSIsInRlbF90b2tlbiI6InJqX1pra1pVT1pNeFpPZk9tTHBFVUIzc2lVN3U2UmpaRmVNOXMtZ2JfeENSNTZXRktGQUppTXlGMlQ2Q0JSbWxoX1N5MGlfbGZ5VDlBSThzRWlmOE1USUlzenl6U2xfYURuRzQ4YU81MHlhSEd1UlNZYlViU1ltOVdJaVEwZz09IiwidHlwIjoiYWNjZXNzIn0.gNEwzTow5MLLPLQENytca7pUN79PmPj6FyqZWW06ZeEmesxYpwKh0xRtA0TzLh6CDYIRHrI8seofOO0YFGDhpQ", value = "") + @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRefreshToken() { + return refreshToken; + } + + + @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRefreshToken(String refreshToken) { + this.refreshToken = refreshToken; + } + + + public CreateRoomClientToken201ResponseData refreshTokenExpiresAt(String refreshTokenExpiresAt) { + this.refreshTokenExpiresAt = refreshTokenExpiresAt; + return this; + } + + /** + * ISO 8601 timestamp when the refresh token expires. + * @return refreshTokenExpiresAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-03-26T17:51:59Z", value = "ISO 8601 timestamp when the refresh token expires.") + @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRefreshTokenExpiresAt() { + return refreshTokenExpiresAt; + } + + + @JsonProperty(JSON_PROPERTY_REFRESH_TOKEN_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRefreshTokenExpiresAt(String refreshTokenExpiresAt) { + this.refreshTokenExpiresAt = refreshTokenExpiresAt; + } + + + /** + * Return true if this CreateRoomClientToken_201_response_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRoomClientToken201ResponseData createRoomClientToken201ResponseData = (CreateRoomClientToken201ResponseData) o; + return Objects.equals(this.token, createRoomClientToken201ResponseData.token) && + Objects.equals(this.tokenExpiresAt, createRoomClientToken201ResponseData.tokenExpiresAt) && + Objects.equals(this.refreshToken, createRoomClientToken201ResponseData.refreshToken) && + Objects.equals(this.refreshTokenExpiresAt, createRoomClientToken201ResponseData.refreshTokenExpiresAt); + } + + @Override + public int hashCode() { + return Objects.hash(token, tokenExpiresAt, refreshToken, refreshTokenExpiresAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRoomClientToken201ResponseData {\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append(" tokenExpiresAt: ").append(toIndentedString(tokenExpiresAt)).append("\n"); + sb.append(" refreshToken: ").append(toIndentedString(refreshToken)).append("\n"); + sb.append(" refreshTokenExpiresAt: ").append(toIndentedString(refreshTokenExpiresAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateRoomComposition202Response.java b/src/main/java/com/telnyx/sdk/model/CreateRoomComposition202Response.java new file mode 100644 index 00000000..6add3cce --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateRoomComposition202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomComposition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateRoomComposition202Response + */ +@JsonPropertyOrder({ + CreateRoomComposition202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateRoomComposition202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private RoomComposition data; + + public CreateRoomComposition202Response() { + } + + public CreateRoomComposition202Response data(RoomComposition data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RoomComposition getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(RoomComposition data) { + this.data = data; + } + + + /** + * Return true if this CreateRoomComposition_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRoomComposition202Response createRoomComposition202Response = (CreateRoomComposition202Response) o; + return Objects.equals(this.data, createRoomComposition202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRoomComposition202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequest.java b/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequest.java index 8f545b7e..2dde49a5 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequest.java @@ -74,7 +74,7 @@ public class CreateTexmlApplicationRequest { private String voiceUrl; public static final String JSON_PROPERTY_VOICE_FALLBACK_URL = "voice_fallback_url"; - private String voiceFallbackUrl = "null"; + private String voiceFallbackUrl; /** * HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. @@ -115,7 +115,7 @@ public static VoiceMethodEnum fromValue(String value) { private VoiceMethodEnum voiceMethod = VoiceMethodEnum.POST; public static final String JSON_PROPERTY_STATUS_CALLBACK = "status_callback"; - private String statusCallback = "null"; + private String statusCallback; /** * HTTP request method Telnyx should use when requesting the status_callback URL. diff --git a/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequestInbound.java b/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequestInbound.java index 3ca427ef..cfa3c641 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequestInbound.java +++ b/src/main/java/com/telnyx/sdk/model/CreateTexmlApplicationRequestInbound.java @@ -42,7 +42,7 @@ public class CreateTexmlApplicationRequestInbound { private Integer channelLimit; public static final String JSON_PROPERTY_SIP_SUBDOMAIN = "sip_subdomain"; - private String sipSubdomain = "null"; + private String sipSubdomain; /** * This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). diff --git a/src/main/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequest.java b/src/main/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequest.java index 339e8fa7..d0e119f5 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequest.java @@ -22,10 +22,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.CallReasons; -import com.telnyx.sdk.model.DisplayName; -import com.telnyx.sdk.model.LogoUrl; -import com.telnyx.sdk.model.PhoneNumbers; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -53,16 +49,16 @@ public class CreateVerifiedCallsDisplayProfileRequest { private String name; public static final String JSON_PROPERTY_DISPLAY_NAME = "display_name"; - private DisplayName displayName = null; + private String displayName = null; public static final String JSON_PROPERTY_LOGO_URL = "logo_url"; - private LogoUrl logoUrl = null; + private String logoUrl = null; public static final String JSON_PROPERTY_CALL_REASONS = "call_reasons"; - private CallReasons callReasons = null; + private String callReasons = null; public static final String JSON_PROPERTY_PHONE_NUMBERS = "phone_numbers"; - private PhoneNumbers phoneNumbers = null; + private String phoneNumbers = null; public CreateVerifiedCallsDisplayProfileRequest() { } @@ -119,7 +115,7 @@ public void setName(String name) { } - public CreateVerifiedCallsDisplayProfileRequest displayName(DisplayName displayName) { + public CreateVerifiedCallsDisplayProfileRequest displayName(String displayName) { this.displayName = displayName; return this; } @@ -133,19 +129,19 @@ public CreateVerifiedCallsDisplayProfileRequest displayName(DisplayName displayN @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DisplayName getDisplayName() { + public String getDisplayName() { return displayName; } @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDisplayName(DisplayName displayName) { + public void setDisplayName(String displayName) { this.displayName = displayName; } - public CreateVerifiedCallsDisplayProfileRequest logoUrl(LogoUrl logoUrl) { + public CreateVerifiedCallsDisplayProfileRequest logoUrl(String logoUrl) { this.logoUrl = logoUrl; return this; } @@ -159,19 +155,19 @@ public CreateVerifiedCallsDisplayProfileRequest logoUrl(LogoUrl logoUrl) { @JsonProperty(JSON_PROPERTY_LOGO_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public LogoUrl getLogoUrl() { + public String getLogoUrl() { return logoUrl; } @JsonProperty(JSON_PROPERTY_LOGO_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setLogoUrl(LogoUrl logoUrl) { + public void setLogoUrl(String logoUrl) { this.logoUrl = logoUrl; } - public CreateVerifiedCallsDisplayProfileRequest callReasons(CallReasons callReasons) { + public CreateVerifiedCallsDisplayProfileRequest callReasons(String callReasons) { this.callReasons = callReasons; return this; } @@ -185,19 +181,19 @@ public CreateVerifiedCallsDisplayProfileRequest callReasons(CallReasons callReas @JsonProperty(JSON_PROPERTY_CALL_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CallReasons getCallReasons() { + public String getCallReasons() { return callReasons; } @JsonProperty(JSON_PROPERTY_CALL_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallReasons(CallReasons callReasons) { + public void setCallReasons(String callReasons) { this.callReasons = callReasons; } - public CreateVerifiedCallsDisplayProfileRequest phoneNumbers(PhoneNumbers phoneNumbers) { + public CreateVerifiedCallsDisplayProfileRequest phoneNumbers(String phoneNumbers) { this.phoneNumbers = phoneNumbers; return this; } @@ -211,14 +207,14 @@ public CreateVerifiedCallsDisplayProfileRequest phoneNumbers(PhoneNumbers phoneN @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PhoneNumbers getPhoneNumbers() { + public String getPhoneNumbers() { return phoneNumbers; } @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhoneNumbers(PhoneNumbers phoneNumbers) { + public void setPhoneNumbers(String phoneNumbers) { this.phoneNumbers = phoneNumbers; } diff --git a/src/main/java/com/telnyx/sdk/model/CreateWdrReport201Response.java b/src/main/java/com/telnyx/sdk/model/CreateWdrReport201Response.java new file mode 100644 index 00000000..dab42dc4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateWdrReport201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WdrReport; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateWdrReport201Response + */ +@JsonPropertyOrder({ + CreateWdrReport201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateWdrReport201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private WdrReport data; + + public CreateWdrReport201Response() { + } + + public CreateWdrReport201Response data(WdrReport data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WdrReport getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(WdrReport data) { + this.data = data; + } + + + /** + * Return true if this createWdrReport_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWdrReport201Response createWdrReport201Response = (CreateWdrReport201Response) o; + return Objects.equals(this.data, createWdrReport201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWdrReport201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CreateWhatsAppMessageRequest.java b/src/main/java/com/telnyx/sdk/model/CreateWhatsAppMessageRequest.java index ff2ec71b..090b5de2 100644 --- a/src/main/java/com/telnyx/sdk/model/CreateWhatsAppMessageRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CreateWhatsAppMessageRequest.java @@ -23,9 +23,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Audio; -import com.telnyx.sdk.model.Contact; import com.telnyx.sdk.model.Document; -import com.telnyx.sdk.model.Hsm; import com.telnyx.sdk.model.Image; import com.telnyx.sdk.model.Location; import com.telnyx.sdk.model.MessageType; @@ -34,8 +32,6 @@ import com.telnyx.sdk.model.Video; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.util.ArrayList; -import java.util.List; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -52,8 +48,6 @@ CreateWhatsAppMessageRequest.JSON_PROPERTY_IMAGE, CreateWhatsAppMessageRequest.JSON_PROPERTY_DOCUMENT, CreateWhatsAppMessageRequest.JSON_PROPERTY_VIDEO, - CreateWhatsAppMessageRequest.JSON_PROPERTY_HSM, - CreateWhatsAppMessageRequest.JSON_PROPERTY_CONTACTS, CreateWhatsAppMessageRequest.JSON_PROPERTY_LOCATION, CreateWhatsAppMessageRequest.JSON_PROPERTY_PREVIEW_URL, CreateWhatsAppMessageRequest.JSON_PROPERTY_TEMPLATE @@ -84,12 +78,6 @@ public class CreateWhatsAppMessageRequest { public static final String JSON_PROPERTY_VIDEO = "video"; private Video video; - public static final String JSON_PROPERTY_HSM = "hsm"; - private Hsm hsm; - - public static final String JSON_PROPERTY_CONTACTS = "contacts"; - private List contacts = null; - public static final String JSON_PROPERTY_LOCATION = "location"; private Location location; @@ -310,66 +298,6 @@ public void setVideo(Video video) { } - public CreateWhatsAppMessageRequest hsm(Hsm hsm) { - this.hsm = hsm; - return this; - } - - /** - * Get hsm - * @return hsm - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_HSM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public Hsm getHsm() { - return hsm; - } - - - @JsonProperty(JSON_PROPERTY_HSM) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setHsm(Hsm hsm) { - this.hsm = hsm; - } - - - public CreateWhatsAppMessageRequest contacts(List contacts) { - this.contacts = contacts; - return this; - } - - public CreateWhatsAppMessageRequest addContactsItem(Contact contactsItem) { - if (this.contacts == null) { - this.contacts = new ArrayList<>(); - } - this.contacts.add(contactsItem); - return this; - } - - /** - * Get contacts - * @return contacts - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_CONTACTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getContacts() { - return contacts; - } - - - @JsonProperty(JSON_PROPERTY_CONTACTS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setContacts(List contacts) { - this.contacts = contacts; - } - - public CreateWhatsAppMessageRequest location(Location location) { this.location = location; return this; @@ -468,8 +396,6 @@ public boolean equals(Object o) { Objects.equals(this.image, createWhatsAppMessageRequest.image) && Objects.equals(this.document, createWhatsAppMessageRequest.document) && Objects.equals(this.video, createWhatsAppMessageRequest.video) && - Objects.equals(this.hsm, createWhatsAppMessageRequest.hsm) && - Objects.equals(this.contacts, createWhatsAppMessageRequest.contacts) && Objects.equals(this.location, createWhatsAppMessageRequest.location) && Objects.equals(this.previewUrl, createWhatsAppMessageRequest.previewUrl) && Objects.equals(this.template, createWhatsAppMessageRequest.template); @@ -477,7 +403,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(whatsappUserId, to, type, text, audio, image, document, video, hsm, contacts, location, previewUrl, template); + return Objects.hash(whatsappUserId, to, type, text, audio, image, document, video, location, previewUrl, template); } @Override @@ -492,8 +418,6 @@ public String toString() { sb.append(" image: ").append(toIndentedString(image)).append("\n"); sb.append(" document: ").append(toIndentedString(document)).append("\n"); sb.append(" video: ").append(toIndentedString(video)).append("\n"); - sb.append(" hsm: ").append(toIndentedString(hsm)).append("\n"); - sb.append(" contacts: ").append(toIndentedString(contacts)).append("\n"); sb.append(" location: ").append(toIndentedString(location)).append("\n"); sb.append(" previewUrl: ").append(toIndentedString(previewUrl)).append("\n"); sb.append(" template: ").append(toIndentedString(template)).append("\n"); diff --git a/src/main/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBody.java b/src/main/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBody.java new file mode 100644 index 00000000..6067d0f6 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBody.java @@ -0,0 +1,434 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CreateWhatsappMessageTemplateRequestBody + */ +@JsonPropertyOrder({ + CreateWhatsappMessageTemplateRequestBody.JSON_PROPERTY_CATEGORY, + CreateWhatsappMessageTemplateRequestBody.JSON_PROPERTY_LANGUAGE, + CreateWhatsappMessageTemplateRequestBody.JSON_PROPERTY_NAME, + CreateWhatsappMessageTemplateRequestBody.JSON_PROPERTY_COMPONENTS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CreateWhatsappMessageTemplateRequestBody { + /** + * The template category + */ + public enum CategoryEnum { + ACCOUNT_UPDATE("ACCOUNT_UPDATE"), + + PAYMENT_UPDATE("PAYMENT_UPDATE"), + + PERSONAL_FINANCE_UPDATE("PERSONAL_FINANCE_UPDATE"), + + SHIPPING_UPDATE("SHIPPING_UPDATE"), + + RESERVATION_UPDATE("RESERVATION_UPDATE"), + + ISSUE_RESOLUTION("ISSUE_RESOLUTION"), + + APPOINTMENT_UPDATE("APPOINTMENT_UPDATE"), + + TRANSPORTATION_UPDATE("TRANSPORTATION_UPDATE"), + + TICKET_UPDATE("TICKET_UPDATE"), + + ALERT_UPDATE("ALERT_UPDATE"), + + AUTO_REPLY("AUTO_REPLY"); + + private String value; + + CategoryEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CategoryEnum fromValue(String value) { + for (CategoryEnum b : CategoryEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CATEGORY = "category"; + private CategoryEnum category; + + /** + * The language of the whatsapp message template + */ + public enum LanguageEnum { + AF("af"), + + SQ("sq"), + + AR("ar"), + + AZ("az"), + + BN("bn"), + + BG("bg"), + + CA("ca"), + + ZH_CN("zh_CN"), + + ZH_HK("zh_HK"), + + ZH_TW("zh_TW"), + + HR("hr"), + + CS("cs"), + + DA("da"), + + NL("nl"), + + EN("en"), + + EN_GB("en_GB"), + + EN_US("en_US"), + + ET("et"), + + FIL("fil"), + + FI("fi"), + + FR("fr"), + + KA("ka"), + + DE("de"), + + EL("el"), + + GU("gu"), + + HA("ha"), + + HE("he"), + + HI("hi"), + + HU("hu"), + + ID("id"), + + GA("ga"), + + IT("it"), + + JA("ja"), + + KN("kn"), + + KK("kk"), + + RW_RW("rw_RW"), + + KO("ko"), + + KY_KG("ky_KG"), + + LO("lo"), + + LV("lv"), + + LT("lt"), + + MK("mk"), + + MS("ms"), + + ML("ml"), + + MR("mr"), + + NB("nb"), + + FA("fa"), + + PL("pl"), + + PT_BR("pt_BR"), + + PT_PT("pt_PT"), + + PA("pa"), + + RO("ro"), + + RU("ru"), + + SR("sr"), + + SK("sk"), + + SL("sl"), + + ES("es"), + + ES_AR("es_AR"), + + ES_ES("es_ES"), + + ES_MX("es_MX"), + + SW("sw"), + + SV("sv"), + + TA("ta"), + + TE("te"), + + TH("th"), + + TR("tr"), + + UK("uk"), + + UR("ur"), + + UZ("uz"), + + VI("vi"), + + ZU("zu"); + + private String value; + + LanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LanguageEnum fromValue(String value) { + for (LanguageEnum b : LanguageEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_LANGUAGE = "language"; + private LanguageEnum language; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_COMPONENTS = "components"; + private String components; + + public CreateWhatsappMessageTemplateRequestBody() { + } + + public CreateWhatsappMessageTemplateRequestBody category(CategoryEnum category) { + this.category = category; + return this; + } + + /** + * The template category + * @return category + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The template category") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CategoryEnum getCategory() { + return category; + } + + + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCategory(CategoryEnum category) { + this.category = category; + } + + + public CreateWhatsappMessageTemplateRequestBody language(LanguageEnum language) { + this.language = language; + return this; + } + + /** + * The language of the whatsapp message template + * @return language + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The language of the whatsapp message template") + @JsonProperty(JSON_PROPERTY_LANGUAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LanguageEnum getLanguage() { + return language; + } + + + @JsonProperty(JSON_PROPERTY_LANGUAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLanguage(LanguageEnum language) { + this.language = language; + } + + + public CreateWhatsappMessageTemplateRequestBody name(String name) { + this.name = name; + return this; + } + + /** + * A name identifying this whatsapp message template + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A name identifying this whatsapp message template") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public CreateWhatsappMessageTemplateRequestBody components(String components) { + this.components = components; + return this; + } + + /** + * The JSON-formatted components for the this whatsapp message template, please refer to whatsapp documentation on the correct structure for this field + * @return components + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The JSON-formatted components for the this whatsapp message template, please refer to whatsapp documentation on the correct structure for this field") + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getComponents() { + return components; + } + + + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setComponents(String components) { + this.components = components; + } + + + /** + * Return true if this CreateWhatsappMessageTemplateRequestBody object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWhatsappMessageTemplateRequestBody createWhatsappMessageTemplateRequestBody = (CreateWhatsappMessageTemplateRequestBody) o; + return Objects.equals(this.category, createWhatsappMessageTemplateRequestBody.category) && + Objects.equals(this.language, createWhatsappMessageTemplateRequestBody.language) && + Objects.equals(this.name, createWhatsappMessageTemplateRequestBody.name) && + Objects.equals(this.components, createWhatsappMessageTemplateRequestBody.components); + } + + @Override + public int hashCode() { + return Objects.hash(category, language, name, components); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWhatsappMessageTemplateRequestBody {\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" components: ").append(toIndentedString(components)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CredentialConnection.java b/src/main/java/com/telnyx/sdk/model/CredentialConnection.java index db6768ee..443463e0 100644 --- a/src/main/java/com/telnyx/sdk/model/CredentialConnection.java +++ b/src/main/java/com/telnyx/sdk/model/CredentialConnection.java @@ -132,7 +132,7 @@ public static SipUriCallingPreferenceEnum fromValue(String value) { } public static final String JSON_PROPERTY_SIP_URI_CALLING_PREFERENCE = "sip_uri_calling_preference"; - private SipUriCallingPreferenceEnum sipUriCallingPreference = null; + private SipUriCallingPreferenceEnum sipUriCallingPreference; public static final String JSON_PROPERTY_DEFAULT_ON_HOLD_COMFORT_NOISE_ENABLED = "default_on_hold_comfort_noise_enabled"; private Boolean defaultOnHoldComfortNoiseEnabled = true; diff --git a/src/main/java/com/telnyx/sdk/model/CredentialsResponse.java b/src/main/java/com/telnyx/sdk/model/CredentialsResponse.java index e5fe782e..782daf13 100644 --- a/src/main/java/com/telnyx/sdk/model/CredentialsResponse.java +++ b/src/main/java/com/telnyx/sdk/model/CredentialsResponse.java @@ -22,7 +22,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ConnectionId; import com.telnyx.sdk.model.GCSConfiguration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -44,7 +43,7 @@ public class CredentialsResponse { private GCSConfiguration data; public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; - private ConnectionId connectionId = null; + private String connectionId; public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; private String recordType; @@ -78,28 +77,28 @@ public void setData(GCSConfiguration data) { } - public CredentialsResponse connectionId(ConnectionId connectionId) { + public CredentialsResponse connectionId(String connectionId) { this.connectionId = connectionId; return this; } /** - * Get connectionId + * The ID of the connection used to send the fax. * @return connectionId **/ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(example = "234423", required = true, value = "The ID of the connection used to send the fax.") @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ConnectionId getConnectionId() { + public String getConnectionId() { return connectionId; } @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setConnectionId(ConnectionId connectionId) { + public void setConnectionId(String connectionId) { this.connectionId = connectionId; } diff --git a/src/main/java/com/telnyx/sdk/model/CsvDownload.java b/src/main/java/com/telnyx/sdk/model/CsvDownload.java index c548d437..28c7f4ed 100644 --- a/src/main/java/com/telnyx/sdk/model/CsvDownload.java +++ b/src/main/java/com/telnyx/sdk/model/CsvDownload.java @@ -93,6 +93,16 @@ public static StatusEnum fromValue(String value) { public CsvDownload() { } + @JsonCreator + public CsvDownload( + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.id = id; + this.recordType = recordType; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/Currency.java b/src/main/java/com/telnyx/sdk/model/Currency.java index 52bf5c1a..6abff464 100644 --- a/src/main/java/com/telnyx/sdk/model/Currency.java +++ b/src/main/java/com/telnyx/sdk/model/Currency.java @@ -29,8 +29,9 @@ /** - * Currency + * */ +@ApiModel(description = "") @JsonPropertyOrder({ Currency.JSON_PROPERTY_CURRENCY_CODE, Currency.JSON_PROPERTY_AMOUNT1000, diff --git a/src/main/java/com/telnyx/sdk/model/CursorPagination.java b/src/main/java/com/telnyx/sdk/model/CursorPagination.java new file mode 100644 index 00000000..79c88b92 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CursorPagination.java @@ -0,0 +1,177 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CursorPaginationCursors; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CursorPagination + */ +@JsonPropertyOrder({ + CursorPagination.JSON_PROPERTY_CURSORS, + CursorPagination.JSON_PROPERTY_NEXT, + CursorPagination.JSON_PROPERTY_PREVIOUS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CursorPagination { + public static final String JSON_PROPERTY_CURSORS = "cursors"; + private CursorPaginationCursors cursors; + + public static final String JSON_PROPERTY_NEXT = "next"; + private String next; + + public static final String JSON_PROPERTY_PREVIOUS = "previous"; + private String previous; + + public CursorPagination() { + } + + public CursorPagination cursors(CursorPaginationCursors cursors) { + this.cursors = cursors; + return this; + } + + /** + * Get cursors + * @return cursors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CURSORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CursorPaginationCursors getCursors() { + return cursors; + } + + + @JsonProperty(JSON_PROPERTY_CURSORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCursors(CursorPaginationCursors cursors) { + this.cursors = cursors; + } + + + public CursorPagination next(String next) { + this.next = next; + return this; + } + + /** + * A URL to the next page of results. + * @return next + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A URL to the next page of results.") + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getNext() { + return next; + } + + + @JsonProperty(JSON_PROPERTY_NEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNext(String next) { + this.next = next; + } + + + public CursorPagination previous(String previous) { + this.previous = previous; + return this; + } + + /** + * A URL to the previous page of results. + * @return previous + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A URL to the previous page of results.") + @JsonProperty(JSON_PROPERTY_PREVIOUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrevious() { + return previous; + } + + + @JsonProperty(JSON_PROPERTY_PREVIOUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrevious(String previous) { + this.previous = previous; + } + + + /** + * Return true if this CursorPagination object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CursorPagination cursorPagination = (CursorPagination) o; + return Objects.equals(this.cursors, cursorPagination.cursors) && + Objects.equals(this.next, cursorPagination.next) && + Objects.equals(this.previous, cursorPagination.previous); + } + + @Override + public int hashCode() { + return Objects.hash(cursors, next, previous); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CursorPagination {\n"); + sb.append(" cursors: ").append(toIndentedString(cursors)).append("\n"); + sb.append(" next: ").append(toIndentedString(next)).append("\n"); + sb.append(" previous: ").append(toIndentedString(previous)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CursorPaginationCursors.java b/src/main/java/com/telnyx/sdk/model/CursorPaginationCursors.java new file mode 100644 index 00000000..27d526fa --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CursorPaginationCursors.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CursorPaginationCursors + */ +@JsonPropertyOrder({ + CursorPaginationCursors.JSON_PROPERTY_BEFORE, + CursorPaginationCursors.JSON_PROPERTY_AFTER +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CursorPaginationCursors { + public static final String JSON_PROPERTY_BEFORE = "before"; + private String before; + + public static final String JSON_PROPERTY_AFTER = "after"; + private String after; + + public CursorPaginationCursors() { + } + + public CursorPaginationCursors before(String before) { + this.before = before; + return this; + } + + /** + * A cursor to use for paginating results. + * @return before + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A cursor to use for paginating results.") + @JsonProperty(JSON_PROPERTY_BEFORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBefore() { + return before; + } + + + @JsonProperty(JSON_PROPERTY_BEFORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBefore(String before) { + this.before = before; + } + + + public CursorPaginationCursors after(String after) { + this.after = after; + return this; + } + + /** + * A cursor to use for paginating results. + * @return after + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A cursor to use for paginating results.") + @JsonProperty(JSON_PROPERTY_AFTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getAfter() { + return after; + } + + + @JsonProperty(JSON_PROPERTY_AFTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAfter(String after) { + this.after = after; + } + + + /** + * Return true if this CursorPagination_cursors object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CursorPaginationCursors cursorPaginationCursors = (CursorPaginationCursors) o; + return Objects.equals(this.before, cursorPaginationCursors.before) && + Objects.equals(this.after, cursorPaginationCursors.after); + } + + @Override + public int hashCode() { + return Objects.hash(before, after); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CursorPaginationCursors {\n"); + sb.append(" before: ").append(toIndentedString(before)).append("\n"); + sb.append(" after: ").append(toIndentedString(after)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponse.java b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponse.java new file mode 100644 index 00000000..1c290d51 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponse.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.IpItem; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CustomerFacingFQDNsGetIPResponse + */ +@JsonPropertyOrder({ + CustomerFacingFQDNsGetIPResponse.JSON_PROPERTY_DATA, + CustomerFacingFQDNsGetIPResponse.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CustomerFacingFQDNsGetIPResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public CustomerFacingFQDNsGetIPResponse() { + } + + public CustomerFacingFQDNsGetIPResponse data(List data) { + this.data = data; + return this; + } + + public CustomerFacingFQDNsGetIPResponse addDataItem(IpItem dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public CustomerFacingFQDNsGetIPResponse meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this CustomerFacingFQDNsGetIPResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerFacingFQDNsGetIPResponse customerFacingFQDNsGetIPResponse = (CustomerFacingFQDNsGetIPResponse) o; + return Objects.equals(this.data, customerFacingFQDNsGetIPResponse.data) && + Objects.equals(this.meta, customerFacingFQDNsGetIPResponse.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerFacingFQDNsGetIPResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponse.java b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponse.java new file mode 100644 index 00000000..cb5ccd55 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponse.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerFacingFQDNsResponseSchema; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CustomerFacingFQDNsListResponse + */ +@JsonPropertyOrder({ + CustomerFacingFQDNsListResponse.JSON_PROPERTY_DATA, + CustomerFacingFQDNsListResponse.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CustomerFacingFQDNsListResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public CustomerFacingFQDNsListResponse() { + } + + public CustomerFacingFQDNsListResponse data(List data) { + this.data = data; + return this; + } + + public CustomerFacingFQDNsListResponse addDataItem(CustomerFacingFQDNsResponseSchema dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public CustomerFacingFQDNsListResponse meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this CustomerFacingFQDNsListResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerFacingFQDNsListResponse customerFacingFQDNsListResponse = (CustomerFacingFQDNsListResponse) o; + return Objects.equals(this.data, customerFacingFQDNsListResponse.data) && + Objects.equals(this.meta, customerFacingFQDNsListResponse.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerFacingFQDNsListResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatch.java b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatch.java new file mode 100644 index 00000000..40e6839a --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatch.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CustomerFacingFQDNsPatch + */ +@JsonPropertyOrder({ + CustomerFacingFQDNsPatch.JSON_PROPERTY_DESCRIPTION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CustomerFacingFQDNsPatch { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public CustomerFacingFQDNsPatch() { + } + + public CustomerFacingFQDNsPatch description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDescription(String description) { + this.description = description; + } + + + /** + * Return true if this CustomerFacingFQDNsPatch object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerFacingFQDNsPatch customerFacingFQDNsPatch = (CustomerFacingFQDNsPatch) o; + return Objects.equals(this.description, customerFacingFQDNsPatch.description); + } + + @Override + public int hashCode() { + return Objects.hash(description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerFacingFQDNsPatch {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPost.java b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPost.java new file mode 100644 index 00000000..911fef0c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsPost.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CustomerFacingFQDNsPost + */ +@JsonPropertyOrder({ + CustomerFacingFQDNsPost.JSON_PROPERTY_FQDN, + CustomerFacingFQDNsPost.JSON_PROPERTY_DESCRIPTION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CustomerFacingFQDNsPost { + public static final String JSON_PROPERTY_FQDN = "fqdn"; + private String fqdn; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public CustomerFacingFQDNsPost() { + } + + public CustomerFacingFQDNsPost fqdn(String fqdn) { + this.fqdn = fqdn; + return this; + } + + /** + * Get fqdn + * @return fqdn + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_FQDN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getFqdn() { + return fqdn; + } + + + @JsonProperty(JSON_PROPERTY_FQDN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setFqdn(String fqdn) { + this.fqdn = fqdn; + } + + + public CustomerFacingFQDNsPost description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + /** + * Return true if this CustomerFacingFQDNsPost object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerFacingFQDNsPost customerFacingFQDNsPost = (CustomerFacingFQDNsPost) o; + return Objects.equals(this.fqdn, customerFacingFQDNsPost.fqdn) && + Objects.equals(this.description, customerFacingFQDNsPost.description); + } + + @Override + public int hashCode() { + return Objects.hash(fqdn, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerFacingFQDNsPost {\n"); + sb.append(" fqdn: ").append(toIndentedString(fqdn)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchema.java b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchema.java new file mode 100644 index 00000000..6a586886 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchema.java @@ -0,0 +1,241 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CustomerFacingFQDNsResponseSchema + */ +@JsonPropertyOrder({ + CustomerFacingFQDNsResponseSchema.JSON_PROPERTY_ID, + CustomerFacingFQDNsResponseSchema.JSON_PROPERTY_FQDN, + CustomerFacingFQDNsResponseSchema.JSON_PROPERTY_DESCRIPTION, + CustomerFacingFQDNsResponseSchema.JSON_PROPERTY_CREATED_AT, + CustomerFacingFQDNsResponseSchema.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CustomerFacingFQDNsResponseSchema { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_FQDN = "fqdn"; + private String fqdn; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private OffsetDateTime createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private OffsetDateTime updatedAt; + + public CustomerFacingFQDNsResponseSchema() { + } + + public CustomerFacingFQDNsResponseSchema id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public CustomerFacingFQDNsResponseSchema fqdn(String fqdn) { + this.fqdn = fqdn; + return this; + } + + /** + * Get fqdn + * @return fqdn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FQDN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFqdn() { + return fqdn; + } + + + @JsonProperty(JSON_PROPERTY_FQDN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFqdn(String fqdn) { + this.fqdn = fqdn; + } + + + public CustomerFacingFQDNsResponseSchema description(String description) { + this.description = description; + return this; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public CustomerFacingFQDNsResponseSchema createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public CustomerFacingFQDNsResponseSchema updatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + + /** + * Return true if this CustomerFacingFQDNsResponseSchema object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerFacingFQDNsResponseSchema customerFacingFQDNsResponseSchema = (CustomerFacingFQDNsResponseSchema) o; + return Objects.equals(this.id, customerFacingFQDNsResponseSchema.id) && + Objects.equals(this.fqdn, customerFacingFQDNsResponseSchema.fqdn) && + Objects.equals(this.description, customerFacingFQDNsResponseSchema.description) && + Objects.equals(this.createdAt, customerFacingFQDNsResponseSchema.createdAt) && + Objects.equals(this.updatedAt, customerFacingFQDNsResponseSchema.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, fqdn, description, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerFacingFQDNsResponseSchema {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" fqdn: ").append(toIndentedString(fqdn)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/CustomerServiceRequest.java b/src/main/java/com/telnyx/sdk/model/CustomerServiceRequest.java index 4fcd79ce..9dda131b 100644 --- a/src/main/java/com/telnyx/sdk/model/CustomerServiceRequest.java +++ b/src/main/java/com/telnyx/sdk/model/CustomerServiceRequest.java @@ -114,6 +114,20 @@ public static StatusEnum fromValue(String value) { public CustomerServiceRequest() { } + @JsonCreator + public CustomerServiceRequest( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Uniquely identifies this customer service request * @return id diff --git a/src/main/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequest.java b/src/main/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequest.java new file mode 100644 index 00000000..8653a655 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequest.java @@ -0,0 +1,146 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallbackWebhookMeta; +import com.telnyx.sdk.model.CustomerServiceRequestStatusChangedEvent; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * CustomerServiceRequestsGetRequest + */ +@JsonPropertyOrder({ + CustomerServiceRequestsGetRequest.JSON_PROPERTY_DATA, + CustomerServiceRequestsGetRequest.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class CustomerServiceRequestsGetRequest { + public static final String JSON_PROPERTY_DATA = "data"; + private CustomerServiceRequestStatusChangedEvent data; + + public static final String JSON_PROPERTY_META = "meta"; + private CallbackWebhookMeta meta; + + public CustomerServiceRequestsGetRequest() { + } + + public CustomerServiceRequestsGetRequest data(CustomerServiceRequestStatusChangedEvent data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CustomerServiceRequestStatusChangedEvent getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(CustomerServiceRequestStatusChangedEvent data) { + this.data = data; + } + + + public CustomerServiceRequestsGetRequest meta(CallbackWebhookMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CallbackWebhookMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(CallbackWebhookMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this _customer_service_requests_get_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerServiceRequestsGetRequest customerServiceRequestsGetRequest = (CustomerServiceRequestsGetRequest) o; + return Objects.equals(this.data, customerServiceRequestsGetRequest.data) && + Objects.equals(this.meta, customerServiceRequestsGetRequest.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerServiceRequestsGetRequest {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/DetailRecord.java b/src/main/java/com/telnyx/sdk/model/DetailRecord.java index c2846f33..f530ed00 100644 --- a/src/main/java/com/telnyx/sdk/model/DetailRecord.java +++ b/src/main/java/com/telnyx/sdk/model/DetailRecord.java @@ -17,6 +17,7 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -31,6 +32,7 @@ import com.telnyx.sdk.model.MessageDetailRecord; import com.telnyx.sdk.model.SimCardUsageDetailRecord; import com.telnyx.sdk.model.VerifyDetailRecord; +import com.telnyx.sdk.model.WhatsAppConversationDetailRecord; import com.telnyx.sdk.model.WhatsAppDetailRecord; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -288,6 +290,32 @@ public DetailRecord deserialize(JsonParser jp, DeserializationContext ctxt) thro log.log(Level.FINER, "Input data does not match schema 'VerifyDetailRecord'", e); } + // deserialize WhatsAppConversationDetailRecord + try { + boolean attemptParsing = true; + // ensure that we respect type coercion as set on the client ObjectMapper + if (WhatsAppConversationDetailRecord.class.equals(Integer.class) || WhatsAppConversationDetailRecord.class.equals(Long.class) || WhatsAppConversationDetailRecord.class.equals(Float.class) || WhatsAppConversationDetailRecord.class.equals(Double.class) || WhatsAppConversationDetailRecord.class.equals(Boolean.class) || WhatsAppConversationDetailRecord.class.equals(String.class)) { + attemptParsing = typeCoercion; + if (!attemptParsing) { + attemptParsing |= ((WhatsAppConversationDetailRecord.class.equals(Integer.class) || WhatsAppConversationDetailRecord.class.equals(Long.class)) && token == JsonToken.VALUE_NUMBER_INT); + attemptParsing |= ((WhatsAppConversationDetailRecord.class.equals(Float.class) || WhatsAppConversationDetailRecord.class.equals(Double.class)) && token == JsonToken.VALUE_NUMBER_FLOAT); + attemptParsing |= (WhatsAppConversationDetailRecord.class.equals(Boolean.class) && (token == JsonToken.VALUE_FALSE || token == JsonToken.VALUE_TRUE)); + attemptParsing |= (WhatsAppConversationDetailRecord.class.equals(String.class) && token == JsonToken.VALUE_STRING); + } + } + if (attemptParsing) { + deserialized = tree.traverse(jp.getCodec()).readValueAs(WhatsAppConversationDetailRecord.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log(Level.FINER, "Input data matches schema 'WhatsAppConversationDetailRecord'"); + } + } catch (Exception e) { + // deserialization failed, continue + log.log(Level.FINER, "Input data does not match schema 'WhatsAppConversationDetailRecord'", e); + } + // deserialize WhatsAppDetailRecord try { boolean attemptParsing = true; @@ -373,6 +401,11 @@ public DetailRecord(VerifyDetailRecord o) { setActualInstance(o); } + public DetailRecord(WhatsAppConversationDetailRecord o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + public DetailRecord(WhatsAppDetailRecord o) { super("oneOf", Boolean.FALSE); setActualInstance(o); @@ -393,6 +426,8 @@ public DetailRecord(WhatsAppDetailRecord o) { }); schemas.put("VerifyDetailRecord", new GenericType() { }); + schemas.put("WhatsAppConversationDetailRecord", new GenericType() { + }); schemas.put("WhatsAppDetailRecord", new GenericType() { }); JSON.registerDescendants(DetailRecord.class, Collections.unmodifiableMap(schemas)); @@ -405,6 +440,7 @@ public DetailRecord(WhatsAppDetailRecord o) { mappings.put("MessageDetailRecord", MessageDetailRecord.class); mappings.put("SimCardUsageDetailRecord", SimCardUsageDetailRecord.class); mappings.put("VerifyDetailRecord", VerifyDetailRecord.class); + mappings.put("WhatsAppConversationDetailRecord", WhatsAppConversationDetailRecord.class); mappings.put("WhatsAppDetailRecord", WhatsAppDetailRecord.class); mappings.put("DetailRecord", DetailRecord.class); JSON.registerDiscriminator(DetailRecord.class, "record_type", mappings); @@ -418,7 +454,7 @@ public Map getSchemas() { /** * Set the instance that matches the oneOf child schema, check * the instance parameter is valid against the oneOf child schemas: - * AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppDetailRecord + * AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppConversationDetailRecord, WhatsAppDetailRecord * * It could be an instance of the 'oneOf' schemas. * The oneOf child schemas may themselves be a composed schema (allOf, anyOf, oneOf). @@ -460,19 +496,24 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(WhatsAppConversationDetailRecord.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + if (JSON.isInstanceOf(WhatsAppDetailRecord.class, instance, new HashSet>())) { super.setActualInstance(instance); return; } - throw new RuntimeException("Invalid instance type. Must be AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppDetailRecord"); + throw new RuntimeException("Invalid instance type. Must be AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppConversationDetailRecord, WhatsAppDetailRecord"); } /** * Get the actual instance, which can be the following: - * AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppDetailRecord + * AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppConversationDetailRecord, WhatsAppDetailRecord * - * @return The actual instance (AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppDetailRecord) + * @return The actual instance (AmdDetailRecord, ConferenceDetailRecord, ConferenceParticipantDetailRecord, MediaStorageDetailRecord, MessageDetailRecord, SimCardUsageDetailRecord, VerifyDetailRecord, WhatsAppConversationDetailRecord, WhatsAppDetailRecord) */ @Override public Object getActualInstance() { @@ -556,6 +597,17 @@ public VerifyDetailRecord getVerifyDetailRecord() throws ClassCastException { return (VerifyDetailRecord)super.getActualInstance(); } + /** + * Get the actual instance of `WhatsAppConversationDetailRecord`. If the actual instance is not `WhatsAppConversationDetailRecord`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `WhatsAppConversationDetailRecord` + * @throws ClassCastException if the instance is not `WhatsAppConversationDetailRecord` + */ + public WhatsAppConversationDetailRecord getWhatsAppConversationDetailRecord() throws ClassCastException { + return (WhatsAppConversationDetailRecord)super.getActualInstance(); + } + /** * Get the actual instance of `WhatsAppDetailRecord`. If the actual instance is not `WhatsAppDetailRecord`, * the ClassCastException will be thrown. diff --git a/src/main/java/com/telnyx/sdk/model/DialogflowConfig.java b/src/main/java/com/telnyx/sdk/model/DialogflowConfig.java new file mode 100644 index 00000000..b5c82b45 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/DialogflowConfig.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * DialogflowConfig + */ +@JsonPropertyOrder({ + DialogflowConfig.JSON_PROPERTY_ANALYZE_SENTIMENT, + DialogflowConfig.JSON_PROPERTY_PARTIAL_AUTOMATED_AGENT_REPLY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DialogflowConfig { + public static final String JSON_PROPERTY_ANALYZE_SENTIMENT = "analyze_sentiment"; + private Boolean analyzeSentiment = false; + + public static final String JSON_PROPERTY_PARTIAL_AUTOMATED_AGENT_REPLY = "partial_automated_agent_reply"; + private Boolean partialAutomatedAgentReply = false; + + public DialogflowConfig() { + } + + public DialogflowConfig analyzeSentiment(Boolean analyzeSentiment) { + this.analyzeSentiment = analyzeSentiment; + return this; + } + + /** + * Enable sentiment analysis from Dialogflow. + * @return analyzeSentiment + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Enable sentiment analysis from Dialogflow.") + @JsonProperty(JSON_PROPERTY_ANALYZE_SENTIMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getAnalyzeSentiment() { + return analyzeSentiment; + } + + + @JsonProperty(JSON_PROPERTY_ANALYZE_SENTIMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAnalyzeSentiment(Boolean analyzeSentiment) { + this.analyzeSentiment = analyzeSentiment; + } + + + public DialogflowConfig partialAutomatedAgentReply(Boolean partialAutomatedAgentReply) { + this.partialAutomatedAgentReply = partialAutomatedAgentReply; + return this; + } + + /** + * Enable partial automated agent reply from Dialogflow. + * @return partialAutomatedAgentReply + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Enable partial automated agent reply from Dialogflow.") + @JsonProperty(JSON_PROPERTY_PARTIAL_AUTOMATED_AGENT_REPLY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPartialAutomatedAgentReply() { + return partialAutomatedAgentReply; + } + + + @JsonProperty(JSON_PROPERTY_PARTIAL_AUTOMATED_AGENT_REPLY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPartialAutomatedAgentReply(Boolean partialAutomatedAgentReply) { + this.partialAutomatedAgentReply = partialAutomatedAgentReply; + } + + + /** + * Return true if this DialogflowConfig object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DialogflowConfig dialogflowConfig = (DialogflowConfig) o; + return Objects.equals(this.analyzeSentiment, dialogflowConfig.analyzeSentiment) && + Objects.equals(this.partialAutomatedAgentReply, dialogflowConfig.partialAutomatedAgentReply); + } + + @Override + public int hashCode() { + return Objects.hash(analyzeSentiment, partialAutomatedAgentReply); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DialogflowConfig {\n"); + sb.append(" analyzeSentiment: ").append(toIndentedString(analyzeSentiment)).append("\n"); + sb.append(" partialAutomatedAgentReply: ").append(toIndentedString(partialAutomatedAgentReply)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/DialogflowConnection.java b/src/main/java/com/telnyx/sdk/model/DialogflowConnection.java new file mode 100644 index 00000000..3dcc670e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/DialogflowConnection.java @@ -0,0 +1,240 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * DialogflowConnection + */ +@JsonPropertyOrder({ + DialogflowConnection.JSON_PROPERTY_RECORD_TYPE, + DialogflowConnection.JSON_PROPERTY_CONNECTION_ID, + DialogflowConnection.JSON_PROPERTY_CONVERSATION_PROFILE_ID, + DialogflowConnection.JSON_PROPERTY_ENVIRONMENT, + DialogflowConnection.JSON_PROPERTY_SERVICE_ACCOUNT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DialogflowConnection { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; + private String connectionId; + + public static final String JSON_PROPERTY_CONVERSATION_PROFILE_ID = "conversation_profile_id"; + private String conversationProfileId; + + public static final String JSON_PROPERTY_ENVIRONMENT = "environment"; + private String environment; + + public static final String JSON_PROPERTY_SERVICE_ACCOUNT = "service_account"; + private String serviceAccount; + + public DialogflowConnection() { + } + + public DialogflowConnection recordType(String recordType) { + this.recordType = recordType; + return this; + } + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "dialogflow_connections", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordType(String recordType) { + this.recordType = recordType; + } + + + public DialogflowConnection connectionId(String connectionId) { + this.connectionId = connectionId; + return this; + } + + /** + * Uniquely identifies a Telnyx application (Call Control). + * @return connectionId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1234541231", value = "Uniquely identifies a Telnyx application (Call Control).") + @JsonProperty(JSON_PROPERTY_CONNECTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConnectionId() { + return connectionId; + } + + + @JsonProperty(JSON_PROPERTY_CONNECTION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConnectionId(String connectionId) { + this.connectionId = connectionId; + } + + + public DialogflowConnection conversationProfileId(String conversationProfileId) { + this.conversationProfileId = conversationProfileId; + return this; + } + + /** + * The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required) + * @return conversationProfileId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "a-VMHLWzTmKjiJw5S6O0-w", value = "The id of a configured conversation profile on your Dialogflow account. (If you use Dialogflow CX, this param is required)") + @JsonProperty(JSON_PROPERTY_CONVERSATION_PROFILE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConversationProfileId() { + return conversationProfileId; + } + + + @JsonProperty(JSON_PROPERTY_CONVERSATION_PROFILE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConversationProfileId(String conversationProfileId) { + this.conversationProfileId = conversationProfileId; + } + + + public DialogflowConnection environment(String environment) { + this.environment = environment; + return this; + } + + /** + * Which Dialogflow environment will be used. + * @return environment + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "development", value = "Which Dialogflow environment will be used.") + @JsonProperty(JSON_PROPERTY_ENVIRONMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEnvironment() { + return environment; + } + + + @JsonProperty(JSON_PROPERTY_ENVIRONMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEnvironment(String environment) { + this.environment = environment; + } + + + public DialogflowConnection serviceAccount(String serviceAccount) { + this.serviceAccount = serviceAccount; + return this; + } + + /** + * The JSON map to connect your Dialoglow account. + * @return serviceAccount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "****", value = "The JSON map to connect your Dialoglow account.") + @JsonProperty(JSON_PROPERTY_SERVICE_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getServiceAccount() { + return serviceAccount; + } + + + @JsonProperty(JSON_PROPERTY_SERVICE_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setServiceAccount(String serviceAccount) { + this.serviceAccount = serviceAccount; + } + + + /** + * Return true if this Dialogflow_Connection object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DialogflowConnection dialogflowConnection = (DialogflowConnection) o; + return Objects.equals(this.recordType, dialogflowConnection.recordType) && + Objects.equals(this.connectionId, dialogflowConnection.connectionId) && + Objects.equals(this.conversationProfileId, dialogflowConnection.conversationProfileId) && + Objects.equals(this.environment, dialogflowConnection.environment) && + Objects.equals(this.serviceAccount, dialogflowConnection.serviceAccount); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, connectionId, conversationProfileId, environment, serviceAccount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DialogflowConnection {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" connectionId: ").append(toIndentedString(connectionId)).append("\n"); + sb.append(" conversationProfileId: ").append(toIndentedString(conversationProfileId)).append("\n"); + sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); + sb.append(" serviceAccount: ").append(toIndentedString(serviceAccount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/DialogflowConnectionResponse.java b/src/main/java/com/telnyx/sdk/model/DialogflowConnectionResponse.java new file mode 100644 index 00000000..b2a13378 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/DialogflowConnectionResponse.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DialogflowConnection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * DialogflowConnectionResponse + */ +@JsonPropertyOrder({ + DialogflowConnectionResponse.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DialogflowConnectionResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private DialogflowConnection data; + + public DialogflowConnectionResponse() { + } + + public DialogflowConnectionResponse data(DialogflowConnection data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public DialogflowConnection getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setData(DialogflowConnection data) { + this.data = data; + } + + + /** + * Return true if this DialogflowConnectionResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DialogflowConnectionResponse dialogflowConnectionResponse = (DialogflowConnectionResponse) o; + return Objects.equals(this.data, dialogflowConnectionResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DialogflowConnectionResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Direction.java b/src/main/java/com/telnyx/sdk/model/Direction.java index b96fe0c1..c7ff503f 100644 --- a/src/main/java/com/telnyx/sdk/model/Direction.java +++ b/src/main/java/com/telnyx/sdk/model/Direction.java @@ -17,6 +17,7 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import io.swagger.annotations.ApiModel; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -25,13 +26,13 @@ import com.fasterxml.jackson.annotation.JsonValue; /** - * Gets or Sets Direction + * The direction of the fax. */ public enum Direction { - INBOUND("INBOUND"), + INBOUND("inbound"), - OUTBOUND("OUTBOUND"); + OUTBOUND("outbound"); private String value; diff --git a/src/main/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200Response.java b/src/main/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200Response.java new file mode 100644 index 00000000..57472cd1 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirementType; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * DocReqsListRequirementTypes200Response + */ +@JsonPropertyOrder({ + DocReqsListRequirementTypes200Response.JSON_PROPERTY_DATA, + DocReqsListRequirementTypes200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DocReqsListRequirementTypes200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public DocReqsListRequirementTypes200Response() { + } + + public DocReqsListRequirementTypes200Response data(List data) { + this.data = data; + return this; + } + + public DocReqsListRequirementTypes200Response addDataItem(DocReqsRequirementType dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public DocReqsListRequirementTypes200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this docReqsListRequirementTypes_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocReqsListRequirementTypes200Response docReqsListRequirementTypes200Response = (DocReqsListRequirementTypes200Response) o; + return Objects.equals(this.data, docReqsListRequirementTypes200Response.data) && + Objects.equals(this.meta, docReqsListRequirementTypes200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocReqsListRequirementTypes200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/DocReqsRequirement.java b/src/main/java/com/telnyx/sdk/model/DocReqsRequirement.java index 63dd414d..2e68f03b 100644 --- a/src/main/java/com/telnyx/sdk/model/DocReqsRequirement.java +++ b/src/main/java/com/telnyx/sdk/model/DocReqsRequirement.java @@ -152,6 +152,22 @@ public static ActionEnum fromValue(String value) { public DocReqsRequirement() { } + @JsonCreator + public DocReqsRequirement( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_TYPES) List requirementsTypes, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.recordType = recordType; + this.requirementsTypes = requirementsTypes; + this.id = id; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/DocReqsRequirementType.java b/src/main/java/com/telnyx/sdk/model/DocReqsRequirementType.java index 716dc233..36b049be 100644 --- a/src/main/java/com/telnyx/sdk/model/DocReqsRequirementType.java +++ b/src/main/java/com/telnyx/sdk/model/DocReqsRequirementType.java @@ -113,6 +113,22 @@ public static TypeEnum fromValue(String value) { public DocReqsRequirementType() { } + @JsonCreator + public DocReqsRequirementType( + @JsonProperty(JSON_PROPERTY_NAME) String name, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.name = name; + this.recordType = recordType; + this.id = id; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + public DocReqsRequirementType acceptanceCriteria(DocReqsRequirementTypeAcceptanceCriteria acceptanceCriteria) { this.acceptanceCriteria = acceptanceCriteria; return this; diff --git a/src/main/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200Response.java b/src/main/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200Response.java new file mode 100644 index 00000000..022b49d3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * DocReqsRetrieveDocumentRequirements200Response + */ +@JsonPropertyOrder({ + DocReqsRetrieveDocumentRequirements200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DocReqsRetrieveDocumentRequirements200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private DocReqsRequirement data; + + public DocReqsRetrieveDocumentRequirements200Response() { + } + + public DocReqsRetrieveDocumentRequirements200Response data(DocReqsRequirement data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DocReqsRequirement getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(DocReqsRequirement data) { + this.data = data; + } + + + /** + * Return true if this docReqsRetrieveDocumentRequirements_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocReqsRetrieveDocumentRequirements200Response docReqsRetrieveDocumentRequirements200Response = (DocReqsRetrieveDocumentRequirements200Response) o; + return Objects.equals(this.data, docReqsRetrieveDocumentRequirements200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocReqsRetrieveDocumentRequirements200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200Response.java b/src/main/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200Response.java new file mode 100644 index 00000000..a1439544 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirementType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * DocReqsRetrieveRequirementType200Response + */ +@JsonPropertyOrder({ + DocReqsRetrieveRequirementType200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class DocReqsRetrieveRequirementType200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private DocReqsRequirementType data; + + public DocReqsRetrieveRequirementType200Response() { + } + + public DocReqsRetrieveRequirementType200Response data(DocReqsRequirementType data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DocReqsRequirementType getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(DocReqsRequirementType data) { + this.data = data; + } + + + /** + * Return true if this docReqsRetrieveRequirementType_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DocReqsRetrieveRequirementType200Response docReqsRetrieveRequirementType200Response = (DocReqsRetrieveRequirementType200Response) o; + return Objects.equals(this.data, docReqsRetrieveRequirementType200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DocReqsRetrieveRequirementType200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/DocServiceDocument.java b/src/main/java/com/telnyx/sdk/model/DocServiceDocument.java index dd5d1239..9045ca0a 100644 --- a/src/main/java/com/telnyx/sdk/model/DocServiceDocument.java +++ b/src/main/java/com/telnyx/sdk/model/DocServiceDocument.java @@ -119,6 +119,26 @@ public static StatusEnum fromValue(String value) { public DocServiceDocument() { } + @JsonCreator + public DocServiceDocument( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) String contentType, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_SHA256) String sha256 + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.contentType = contentType; + this.status = status; + this.sha256 = sha256; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOf.java b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOf.java index 21a7ca4b..3fd48645 100644 --- a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOf.java +++ b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOf.java @@ -104,6 +104,20 @@ public static StatusEnum fromValue(String value) { public DocServiceDocumentAllOf() { } + @JsonCreator + public DocServiceDocumentAllOf( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) String contentType, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_SHA256) String sha256 + ) { + this(); + this.recordType = recordType; + this.contentType = contentType; + this.status = status; + this.sha256 = sha256; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOfSize.java b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOfSize.java index 37682d5a..b53453fb 100644 --- a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOfSize.java +++ b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentAllOfSize.java @@ -47,6 +47,16 @@ public class DocServiceDocumentAllOfSize { public DocServiceDocumentAllOfSize() { } + @JsonCreator + public DocServiceDocumentAllOfSize( + @JsonProperty(JSON_PROPERTY_UNIT) String unit, + @JsonProperty(JSON_PROPERTY_AMOUNT) Integer amount + ) { + this(); + this.unit = unit; + this.amount = amount; + } + /** * Identifies the unit * @return unit diff --git a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLink.java b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLink.java index 3dd4f936..f6c89da2 100644 --- a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLink.java +++ b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLink.java @@ -69,6 +69,26 @@ public class DocServiceDocumentLink { public DocServiceDocumentLink() { } + @JsonCreator + public DocServiceDocumentLink( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_DOCUMENT_ID) UUID documentId, + @JsonProperty(JSON_PROPERTY_LINKED_RECORD_TYPE) String linkedRecordType, + @JsonProperty(JSON_PROPERTY_LINKED_RESOURCE_ID) String linkedResourceId + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.documentId = documentId; + this.linkedRecordType = linkedRecordType; + this.linkedResourceId = linkedResourceId; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLinkAllOf.java b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLinkAllOf.java index 54adb92a..3ffc4597 100644 --- a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLinkAllOf.java +++ b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentLinkAllOf.java @@ -55,6 +55,20 @@ public class DocServiceDocumentLinkAllOf { public DocServiceDocumentLinkAllOf() { } + @JsonCreator + public DocServiceDocumentLinkAllOf( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_DOCUMENT_ID) UUID documentId, + @JsonProperty(JSON_PROPERTY_LINKED_RECORD_TYPE) String linkedRecordType, + @JsonProperty(JSON_PROPERTY_LINKED_RESOURCE_ID) String linkedResourceId + ) { + this(); + this.recordType = recordType; + this.documentId = documentId; + this.linkedRecordType = linkedRecordType; + this.linkedResourceId = linkedResourceId; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentUploadInline.java b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentUploadInline.java index d47cd685..8fdb8c49 100644 --- a/src/main/java/com/telnyx/sdk/model/DocServiceDocumentUploadInline.java +++ b/src/main/java/com/telnyx/sdk/model/DocServiceDocumentUploadInline.java @@ -39,7 +39,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class DocServiceDocumentUploadInline { public static final String JSON_PROPERTY_FILE = "file"; - private byte[] file; + private byte[] _file; public static final String JSON_PROPERTY_FILENAME = "filename"; private String filename; @@ -50,14 +50,14 @@ public class DocServiceDocumentUploadInline { public DocServiceDocumentUploadInline() { } - public DocServiceDocumentUploadInline file(byte[] file) { - this.file = file; + public DocServiceDocumentUploadInline _file(byte[] _file) { + this._file = _file; return this; } /** * The Base64 encoded contents of the file you are uploading. - * @return file + * @return _file **/ @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "The Base64 encoded contents of the file you are uploading.") @@ -65,14 +65,14 @@ public DocServiceDocumentUploadInline file(byte[] file) { @JsonInclude(value = JsonInclude.Include.ALWAYS) public byte[] getFile() { - return file; + return _file; } @JsonProperty(JSON_PROPERTY_FILE) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setFile(byte[] file) { - this.file = file; + public void setFile(byte[] _file) { + this._file = _file; } @@ -140,21 +140,21 @@ public boolean equals(Object o) { return false; } DocServiceDocumentUploadInline docServiceDocumentUploadInline = (DocServiceDocumentUploadInline) o; - return Arrays.equals(this.file, docServiceDocumentUploadInline.file) && + return Arrays.equals(this._file, docServiceDocumentUploadInline._file) && Objects.equals(this.filename, docServiceDocumentUploadInline.filename) && Objects.equals(this.customerReference, docServiceDocumentUploadInline.customerReference); } @Override public int hashCode() { - return Objects.hash(Arrays.hashCode(file), filename, customerReference); + return Objects.hash(Arrays.hashCode(_file), filename, customerReference); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class DocServiceDocumentUploadInline {\n"); - sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append(" _file: ").append(toIndentedString(_file)).append("\n"); sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); sb.append(" customerReference: ").append(toIndentedString(customerReference)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/telnyx/sdk/model/DocServiceRecord.java b/src/main/java/com/telnyx/sdk/model/DocServiceRecord.java index f30346ba..2421eb96 100644 --- a/src/main/java/com/telnyx/sdk/model/DocServiceRecord.java +++ b/src/main/java/com/telnyx/sdk/model/DocServiceRecord.java @@ -55,6 +55,20 @@ public class DocServiceRecord { public DocServiceRecord() { } + @JsonCreator + public DocServiceRecord( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/Document1.java b/src/main/java/com/telnyx/sdk/model/Document1.java new file mode 100644 index 00000000..0e210727 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Document1.java @@ -0,0 +1,210 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Document; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Contains the media object for this document. + */ +@ApiModel(description = "Contains the media object for this document.") +@JsonPropertyOrder({ + Document1.JSON_PROPERTY_ID, + Document1.JSON_PROPERTY_LINK, + Document1.JSON_PROPERTY_CAPTION, + Document1.JSON_PROPERTY_FILENAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Document1 { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_LINK = "link"; + private String link; + + public static final String JSON_PROPERTY_CAPTION = "caption"; + private String caption; + + public static final String JSON_PROPERTY_FILENAME = "filename"; + private String filename; + + public Document1() { + } + + public Document1 id(String id) { + this.id = id; + return this; + } + + /** + * The media object ID returned when the media is successfully uploaded to the media endpoint. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68", value = "The media object ID returned when the media is successfully uploaded to the media endpoint.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public Document1 link(String link) { + this.link = link; + return this; + } + + /** + * The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. + * @return link + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "http://www.example.com/file", value = "The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both.") + @JsonProperty(JSON_PROPERTY_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLink() { + return link; + } + + + @JsonProperty(JSON_PROPERTY_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLink(String link) { + this.link = link; + } + + + public Document1 caption(String caption) { + this.caption = caption; + return this; + } + + /** + * Describes the specified media. + * @return caption + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "My cool media!", value = "Describes the specified media.") + @JsonProperty(JSON_PROPERTY_CAPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCaption() { + return caption; + } + + + @JsonProperty(JSON_PROPERTY_CAPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCaption(String caption) { + this.caption = caption; + } + + + public Document1 filename(String filename) { + this.filename = filename; + return this; + } + + /** + * Describes the filename for the specific document. + * @return filename + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "example.pdf", value = "Describes the filename for the specific document.") + @JsonProperty(JSON_PROPERTY_FILENAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFilename() { + return filename; + } + + + @JsonProperty(JSON_PROPERTY_FILENAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFilename(String filename) { + this.filename = filename; + } + + + /** + * Return true if this Document_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Document1 document1 = (Document1) o; + return Objects.equals(this.id, document1.id) && + Objects.equals(this.link, document1.link) && + Objects.equals(this.caption, document1.caption) && + Objects.equals(this.filename, document1.filename); + } + + @Override + public int hashCode() { + return Objects.hash(id, link, caption, filename); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Document1 {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" caption: ").append(toIndentedString(caption)).append("\n"); + sb.append(" filename: ").append(toIndentedString(filename)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/DynamicEmergencyAddress.java b/src/main/java/com/telnyx/sdk/model/DynamicEmergencyAddress.java index 2e56f8ae..171142d4 100644 --- a/src/main/java/com/telnyx/sdk/model/DynamicEmergencyAddress.java +++ b/src/main/java/com/telnyx/sdk/model/DynamicEmergencyAddress.java @@ -180,6 +180,24 @@ public static CountryCodeEnum fromValue(String value) { public DynamicEmergencyAddress() { } + @JsonCreator + public DynamicEmergencyAddress( + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_SIP_GEOLOCATION_ID) String sipGeolocationId, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.sipGeolocationId = sipGeolocationId; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/DynamicEmergencyEndpoint.java b/src/main/java/com/telnyx/sdk/model/DynamicEmergencyEndpoint.java index a89659b8..0bc297a1 100644 --- a/src/main/java/com/telnyx/sdk/model/DynamicEmergencyEndpoint.java +++ b/src/main/java/com/telnyx/sdk/model/DynamicEmergencyEndpoint.java @@ -111,6 +111,24 @@ public static StatusEnum fromValue(String value) { public DynamicEmergencyEndpoint() { } + @JsonCreator + public DynamicEmergencyEndpoint( + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_SIP_FROM_ID) String sipFromId, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.status = status; + this.sipFromId = sipFromId; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/EndSession200Response.java b/src/main/java/com/telnyx/sdk/model/EndSession200Response.java new file mode 100644 index 00000000..8b0f89bf --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/EndSession200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.EndSession200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * EndSession200Response + */ +@JsonPropertyOrder({ + EndSession200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EndSession200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private EndSession200ResponseData data; + + public EndSession200Response() { + } + + public EndSession200Response data(EndSession200ResponseData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public EndSession200ResponseData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(EndSession200ResponseData data) { + this.data = data; + } + + + /** + * Return true if this EndSession_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EndSession200Response endSession200Response = (EndSession200Response) o; + return Objects.equals(this.data, endSession200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EndSession200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/EndSession200ResponseData.java b/src/main/java/com/telnyx/sdk/model/EndSession200ResponseData.java new file mode 100644 index 00000000..dfaafe31 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/EndSession200ResponseData.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * EndSession200ResponseData + */ +@JsonPropertyOrder({ + EndSession200ResponseData.JSON_PROPERTY_RESULT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class EndSession200ResponseData { + public static final String JSON_PROPERTY_RESULT = "result"; + private String result; + + public EndSession200ResponseData() { + } + + public EndSession200ResponseData result(String result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ok", value = "") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(String result) { + this.result = result; + } + + + /** + * Return true if this EndSession_200_response_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EndSession200ResponseData endSession200ResponseData = (EndSession200ResponseData) o; + return Objects.equals(this.result, endSession200ResponseData.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EndSession200ResponseData {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ErrorSource.java b/src/main/java/com/telnyx/sdk/model/ErrorSource.java index 39ac8b5d..913cae24 100644 --- a/src/main/java/com/telnyx/sdk/model/ErrorSource.java +++ b/src/main/java/com/telnyx/sdk/model/ErrorSource.java @@ -99,7 +99,7 @@ public void setParameter(String parameter) { /** - * Return true if this Error_source object is equal to o. + * Return true if this ErrorSource object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/telnyx/sdk/model/Fax.java b/src/main/java/com/telnyx/sdk/model/Fax.java index 47cfe804..a5deb3ef 100644 --- a/src/main/java/com/telnyx/sdk/model/Fax.java +++ b/src/main/java/com/telnyx/sdk/model/Fax.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Direction; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -94,43 +95,8 @@ public static RecordTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; private String connectionId; - /** - * The direction of the fax. - */ - public enum DirectionEnum { - INBOUND("inbound"), - - OUTBOUND("outbound"); - - private String value; - - DirectionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DirectionEnum fromValue(String value) { - for (DirectionEnum b : DirectionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + private Direction direction; public static final String JSON_PROPERTY_MEDIA_URL = "media_url"; private String mediaUrl; @@ -155,6 +121,8 @@ public enum StatusEnum { MEDIA_PROCESSED("media.processed"), + ORIGINATED("originated"), + SENDING("sending"), DELIVERED("delivered"), @@ -220,6 +188,14 @@ public static StatusEnum fromValue(String value) { public Fax() { } + @JsonCreator + public Fax( + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.id = id; + } + public Fax recordType(RecordTypeEnum recordType) { this.recordType = recordType; return this; @@ -246,17 +222,12 @@ public void setRecordType(RecordTypeEnum recordType) { } - public Fax id(UUID id) { - this.id = id; - return this; - } - /** - * Identifies the fax. + * Identifies the resource. * @return id **/ @javax.annotation.Nullable - @ApiModelProperty(example = "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", value = "Identifies the fax.") + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -265,11 +236,6 @@ public UUID getId() { } - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(UUID id) { - this.id = id; - } public Fax connectionId(String connectionId) { @@ -278,11 +244,11 @@ public Fax connectionId(String connectionId) { } /** - * The connection ID to send the fax with. + * The ID of the connection used to send the fax. * @return connectionId **/ @javax.annotation.Nullable - @ApiModelProperty(example = "234423", value = "The connection ID to send the fax with.") + @ApiModelProperty(example = "234423", value = "The ID of the connection used to send the fax.") @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -298,28 +264,28 @@ public void setConnectionId(String connectionId) { } - public Fax direction(DirectionEnum direction) { + public Fax direction(Direction direction) { this.direction = direction; return this; } /** - * The direction of the fax. + * Get direction * @return direction **/ @javax.annotation.Nullable - @ApiModelProperty(example = "outbound", value = "The direction of the fax.") + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { + public Direction getDirection() { return direction; } @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(Direction direction) { this.direction = direction; } @@ -330,11 +296,11 @@ public Fax mediaUrl(String mediaUrl) { } /** - * The URL to the PDF used for the fax's media. If media_name was supplied, this is omitted. + * The URL to the PDF used for the fax's media. media_url and media_name/contents can't be submitted together. * @return mediaUrl **/ @javax.annotation.Nullable - @ApiModelProperty(example = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", value = "The URL to the PDF used for the fax's media. If media_name was supplied, this is omitted.") + @ApiModelProperty(example = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", value = "The URL to the PDF used for the fax's media. media_url and media_name/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -356,11 +322,11 @@ public Fax mediaName(String mediaName) { } /** - * The media_name of a file used for the fax's media. + * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. * @return mediaName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name of a file used for the fax's media.") + @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -538,11 +504,11 @@ public Fax storeMedia(Boolean storeMedia) { } /** - * Should fax media be stored on temporary URL. + * Should fax media be stored on temporary URL. It does not support media_name. * @return storeMedia **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Should fax media be stored on temporary URL.") + @ApiModelProperty(value = "Should fax media be stored on temporary URL. It does not support media_name.") @JsonProperty(JSON_PROPERTY_STORE_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/FaxDelivered.java b/src/main/java/com/telnyx/sdk/model/FaxDelivered.java index fdb678fa..99de17c0 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxDelivered.java +++ b/src/main/java/com/telnyx/sdk/model/FaxDelivered.java @@ -41,41 +41,8 @@ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FaxDelivered { - /** - * Identifies the type of the resource. - */ - public enum RecordTypeEnum { - EVENT("event"); - - private String value; - - RecordTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RecordTypeEnum fromValue(String value) { - for (RecordTypeEnum b : RecordTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; - private RecordTypeEnum recordType; + private String recordType; public static final String JSON_PROPERTY_ID = "id"; private UUID id; @@ -122,43 +89,46 @@ public static EventTypeEnum fromValue(String value) { public FaxDelivered() { } - public FaxDelivered recordType(RecordTypeEnum recordType) { + @JsonCreator + public FaxDelivered( + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.id = id; + } + + public FaxDelivered recordType(String recordType) { this.recordType = recordType; return this; } /** - * Identifies the type of the resource. + * Identifies record type. * @return recordType **/ @javax.annotation.Nullable - @ApiModelProperty(example = "event", value = "Identifies the type of the resource.") + @ApiModelProperty(value = "Identifies record type.") @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecordTypeEnum getRecordType() { + public String getRecordType() { return recordType; } @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRecordType(RecordTypeEnum recordType) { + public void setRecordType(String recordType) { this.recordType = recordType; } - public FaxDelivered id(UUID id) { - this.id = id; - return this; - } - /** - * Identifies the type of resource. + * Identifies the resource. * @return id **/ @javax.annotation.Nullable - @ApiModelProperty(example = "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", value = "Identifies the type of resource.") + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,11 +137,6 @@ public UUID getId() { } - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(UUID id) { - this.id = id; - } public FaxDelivered eventType(EventTypeEnum eventType) { diff --git a/src/main/java/com/telnyx/sdk/model/FaxDeliveredPayload.java b/src/main/java/com/telnyx/sdk/model/FaxDeliveredPayload.java index 020f260b..87134559 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxDeliveredPayload.java +++ b/src/main/java/com/telnyx/sdk/model/FaxDeliveredPayload.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Direction; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -53,43 +54,8 @@ public class FaxDeliveredPayload { public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; private String connectionId; - /** - * The direction of the fax. - */ - public enum DirectionEnum { - INBOUND("inbound"), - - OUTBOUND("outbound"); - - private String value; - - DirectionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DirectionEnum fromValue(String value) { - for (DirectionEnum b : DirectionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + private Direction direction; public static final String JSON_PROPERTY_FAX_ID = "fax_id"; private UUID faxId; @@ -183,11 +149,11 @@ public FaxDeliveredPayload connectionId(String connectionId) { } /** - * The ID of the connection that was used to send the fax. + * The ID of the connection used to send the fax. * @return connectionId **/ @javax.annotation.Nullable - @ApiModelProperty(example = "234423", value = "The ID of the connection that was used to send the fax.") + @ApiModelProperty(example = "234423", value = "The ID of the connection used to send the fax.") @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -203,28 +169,28 @@ public void setConnectionId(String connectionId) { } - public FaxDeliveredPayload direction(DirectionEnum direction) { + public FaxDeliveredPayload direction(Direction direction) { this.direction = direction; return this; } /** - * The direction of the fax. + * Get direction * @return direction **/ @javax.annotation.Nullable - @ApiModelProperty(example = "outbound", value = "The direction of the fax.") + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { + public Direction getDirection() { return direction; } @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(Direction direction) { this.direction = direction; } @@ -287,11 +253,11 @@ public FaxDeliveredPayload mediaName(String mediaName) { } /** - * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization + * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. * @return mediaName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization") + @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/FaxFailed.java b/src/main/java/com/telnyx/sdk/model/FaxFailed.java index 320c5563..d55e8744 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxFailed.java +++ b/src/main/java/com/telnyx/sdk/model/FaxFailed.java @@ -41,41 +41,8 @@ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FaxFailed { - /** - * Identifies the type of the resource. - */ - public enum RecordTypeEnum { - EVENT("event"); - - private String value; - - RecordTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RecordTypeEnum fromValue(String value) { - for (RecordTypeEnum b : RecordTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; - private RecordTypeEnum recordType; + private String recordType; public static final String JSON_PROPERTY_ID = "id"; private UUID id; @@ -122,43 +89,46 @@ public static EventTypeEnum fromValue(String value) { public FaxFailed() { } - public FaxFailed recordType(RecordTypeEnum recordType) { + @JsonCreator + public FaxFailed( + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.id = id; + } + + public FaxFailed recordType(String recordType) { this.recordType = recordType; return this; } /** - * Identifies the type of the resource. + * Identifies record type. * @return recordType **/ @javax.annotation.Nullable - @ApiModelProperty(example = "event", value = "Identifies the type of the resource.") + @ApiModelProperty(value = "Identifies record type.") @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecordTypeEnum getRecordType() { + public String getRecordType() { return recordType; } @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRecordType(RecordTypeEnum recordType) { + public void setRecordType(String recordType) { this.recordType = recordType; } - public FaxFailed id(UUID id) { - this.id = id; - return this; - } - /** - * Identifies the type of resource. + * Identifies the resource. * @return id **/ @javax.annotation.Nullable - @ApiModelProperty(example = "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", value = "Identifies the type of resource.") + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,11 +137,6 @@ public UUID getId() { } - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(UUID id) { - this.id = id; - } public FaxFailed eventType(EventTypeEnum eventType) { diff --git a/src/main/java/com/telnyx/sdk/model/FaxFailedPayload.java b/src/main/java/com/telnyx/sdk/model/FaxFailedPayload.java index ad6b5741..31cf3279 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxFailedPayload.java +++ b/src/main/java/com/telnyx/sdk/model/FaxFailedPayload.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Direction; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -49,43 +50,8 @@ public class FaxFailedPayload { public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; private String connectionId; - /** - * The direction of the fax. - */ - public enum DirectionEnum { - INBOUND("inbound"), - - OUTBOUND("outbound"); - - private String value; - - DirectionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DirectionEnum fromValue(String value) { - for (DirectionEnum b : DirectionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + private Direction direction; public static final String JSON_PROPERTY_FAX_ID = "fax_id"; private UUID faxId; @@ -186,11 +152,11 @@ public FaxFailedPayload connectionId(String connectionId) { } /** - * The ID of the connection that was used to send the fax. + * The ID of the connection used to send the fax. * @return connectionId **/ @javax.annotation.Nullable - @ApiModelProperty(example = "234423", value = "The ID of the connection that was used to send the fax.") + @ApiModelProperty(example = "234423", value = "The ID of the connection used to send the fax.") @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -206,28 +172,28 @@ public void setConnectionId(String connectionId) { } - public FaxFailedPayload direction(DirectionEnum direction) { + public FaxFailedPayload direction(Direction direction) { this.direction = direction; return this; } /** - * The direction of the fax. + * Get direction * @return direction **/ @javax.annotation.Nullable - @ApiModelProperty(example = "outbound", value = "The direction of the fax.") + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { + public Direction getDirection() { return direction; } @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(Direction direction) { this.direction = direction; } @@ -290,11 +256,11 @@ public FaxFailedPayload mediaName(String mediaName) { } /** - * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization + * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. * @return mediaName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization") + @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/FaxMediaProcessed.java b/src/main/java/com/telnyx/sdk/model/FaxMediaProcessed.java index f1836374..d5ec0499 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxMediaProcessed.java +++ b/src/main/java/com/telnyx/sdk/model/FaxMediaProcessed.java @@ -41,41 +41,8 @@ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FaxMediaProcessed { - /** - * Identifies the type of the resource. - */ - public enum RecordTypeEnum { - EVENT("event"); - - private String value; - - RecordTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RecordTypeEnum fromValue(String value) { - for (RecordTypeEnum b : RecordTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; - private RecordTypeEnum recordType; + private String recordType; public static final String JSON_PROPERTY_ID = "id"; private UUID id; @@ -122,43 +89,46 @@ public static EventTypeEnum fromValue(String value) { public FaxMediaProcessed() { } - public FaxMediaProcessed recordType(RecordTypeEnum recordType) { + @JsonCreator + public FaxMediaProcessed( + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.id = id; + } + + public FaxMediaProcessed recordType(String recordType) { this.recordType = recordType; return this; } /** - * Identifies the type of the resource. + * Identifies record type. * @return recordType **/ @javax.annotation.Nullable - @ApiModelProperty(example = "event", value = "Identifies the type of the resource.") + @ApiModelProperty(value = "Identifies record type.") @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecordTypeEnum getRecordType() { + public String getRecordType() { return recordType; } @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRecordType(RecordTypeEnum recordType) { + public void setRecordType(String recordType) { this.recordType = recordType; } - public FaxMediaProcessed id(UUID id) { - this.id = id; - return this; - } - /** - * Identifies the type of resource. + * Identifies the resource. * @return id **/ @javax.annotation.Nullable - @ApiModelProperty(example = "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", value = "Identifies the type of resource.") + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,11 +137,6 @@ public UUID getId() { } - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(UUID id) { - this.id = id; - } public FaxMediaProcessed eventType(EventTypeEnum eventType) { diff --git a/src/main/java/com/telnyx/sdk/model/FaxMediaProcessedPayload.java b/src/main/java/com/telnyx/sdk/model/FaxMediaProcessedPayload.java index 50cd84e2..e6859188 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxMediaProcessedPayload.java +++ b/src/main/java/com/telnyx/sdk/model/FaxMediaProcessedPayload.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Direction; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -48,43 +49,8 @@ public class FaxMediaProcessedPayload { public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; private String connectionId; - /** - * The direction of the fax. - */ - public enum DirectionEnum { - INBOUND("inbound"), - - OUTBOUND("outbound"); - - private String value; - - DirectionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DirectionEnum fromValue(String value) { - for (DirectionEnum b : DirectionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + private Direction direction; public static final String JSON_PROPERTY_FAX_ID = "fax_id"; private UUID faxId; @@ -149,11 +115,11 @@ public FaxMediaProcessedPayload connectionId(String connectionId) { } /** - * The ID of the connection that was used to send the fax. + * The ID of the connection used to send the fax. * @return connectionId **/ @javax.annotation.Nullable - @ApiModelProperty(example = "234423", value = "The ID of the connection that was used to send the fax.") + @ApiModelProperty(example = "234423", value = "The ID of the connection used to send the fax.") @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,28 +135,28 @@ public void setConnectionId(String connectionId) { } - public FaxMediaProcessedPayload direction(DirectionEnum direction) { + public FaxMediaProcessedPayload direction(Direction direction) { this.direction = direction; return this; } /** - * The direction of the fax. + * Get direction * @return direction **/ @javax.annotation.Nullable - @ApiModelProperty(example = "outbound", value = "The direction of the fax.") + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { + public Direction getDirection() { return direction; } @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(Direction direction) { this.direction = direction; } @@ -253,11 +219,11 @@ public FaxMediaProcessedPayload mediaName(String mediaName) { } /** - * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization + * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. * @return mediaName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization") + @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/FaxQueued.java b/src/main/java/com/telnyx/sdk/model/FaxQueued.java index 23a79d45..496abde2 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxQueued.java +++ b/src/main/java/com/telnyx/sdk/model/FaxQueued.java @@ -41,41 +41,8 @@ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FaxQueued { - /** - * Identifies the type of the resource. - */ - public enum RecordTypeEnum { - EVENT("event"); - - private String value; - - RecordTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RecordTypeEnum fromValue(String value) { - for (RecordTypeEnum b : RecordTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; - private RecordTypeEnum recordType; + private String recordType; public static final String JSON_PROPERTY_ID = "id"; private UUID id; @@ -122,43 +89,46 @@ public static EventTypeEnum fromValue(String value) { public FaxQueued() { } - public FaxQueued recordType(RecordTypeEnum recordType) { + @JsonCreator + public FaxQueued( + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.id = id; + } + + public FaxQueued recordType(String recordType) { this.recordType = recordType; return this; } /** - * Identifies the type of the resource. + * Identifies record type. * @return recordType **/ @javax.annotation.Nullable - @ApiModelProperty(example = "event", value = "Identifies the type of the resource.") + @ApiModelProperty(value = "Identifies record type.") @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecordTypeEnum getRecordType() { + public String getRecordType() { return recordType; } @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRecordType(RecordTypeEnum recordType) { + public void setRecordType(String recordType) { this.recordType = recordType; } - public FaxQueued id(UUID id) { - this.id = id; - return this; - } - /** - * Identifies the type of resource. + * Identifies the resource. * @return id **/ @javax.annotation.Nullable - @ApiModelProperty(example = "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", value = "Identifies the type of resource.") + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,11 +137,6 @@ public UUID getId() { } - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(UUID id) { - this.id = id; - } public FaxQueued eventType(EventTypeEnum eventType) { diff --git a/src/main/java/com/telnyx/sdk/model/FaxQueuedPayload.java b/src/main/java/com/telnyx/sdk/model/FaxQueuedPayload.java index 6736a6ce..d59341e4 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxQueuedPayload.java +++ b/src/main/java/com/telnyx/sdk/model/FaxQueuedPayload.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Direction; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -48,43 +49,8 @@ public class FaxQueuedPayload { public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; private String connectionId; - /** - * The direction of the fax. - */ - public enum DirectionEnum { - INBOUND("inbound"), - - OUTBOUND("outbound"); - - private String value; - - DirectionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DirectionEnum fromValue(String value) { - for (DirectionEnum b : DirectionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + private Direction direction; public static final String JSON_PROPERTY_FAX_ID = "fax_id"; private UUID faxId; @@ -149,11 +115,11 @@ public FaxQueuedPayload connectionId(String connectionId) { } /** - * The ID of the connection that was used to send the fax. + * The ID of the connection used to send the fax. * @return connectionId **/ @javax.annotation.Nullable - @ApiModelProperty(example = "234423", value = "The ID of the connection that was used to send the fax.") + @ApiModelProperty(example = "234423", value = "The ID of the connection used to send the fax.") @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,28 +135,28 @@ public void setConnectionId(String connectionId) { } - public FaxQueuedPayload direction(DirectionEnum direction) { + public FaxQueuedPayload direction(Direction direction) { this.direction = direction; return this; } /** - * The direction of the fax. + * Get direction * @return direction **/ @javax.annotation.Nullable - @ApiModelProperty(example = "outbound", value = "The direction of the fax.") + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { + public Direction getDirection() { return direction; } @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(Direction direction) { this.direction = direction; } @@ -253,11 +219,11 @@ public FaxQueuedPayload mediaName(String mediaName) { } /** - * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization + * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. * @return mediaName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization") + @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/FaxSendingStarted.java b/src/main/java/com/telnyx/sdk/model/FaxSendingStarted.java index c946ece9..fd45d2b4 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxSendingStarted.java +++ b/src/main/java/com/telnyx/sdk/model/FaxSendingStarted.java @@ -41,41 +41,8 @@ }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class FaxSendingStarted { - /** - * Identifies the type of the resource. - */ - public enum RecordTypeEnum { - EVENT("event"); - - private String value; - - RecordTypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static RecordTypeEnum fromValue(String value) { - for (RecordTypeEnum b : RecordTypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; - private RecordTypeEnum recordType; + private String recordType; public static final String JSON_PROPERTY_ID = "id"; private UUID id; @@ -122,43 +89,46 @@ public static EventTypeEnum fromValue(String value) { public FaxSendingStarted() { } - public FaxSendingStarted recordType(RecordTypeEnum recordType) { + @JsonCreator + public FaxSendingStarted( + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.id = id; + } + + public FaxSendingStarted recordType(String recordType) { this.recordType = recordType; return this; } /** - * Identifies the type of the resource. + * Identifies record type. * @return recordType **/ @javax.annotation.Nullable - @ApiModelProperty(example = "event", value = "Identifies the type of the resource.") + @ApiModelProperty(value = "Identifies record type.") @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public RecordTypeEnum getRecordType() { + public String getRecordType() { return recordType; } @JsonProperty(JSON_PROPERTY_RECORD_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRecordType(RecordTypeEnum recordType) { + public void setRecordType(String recordType) { this.recordType = recordType; } - public FaxSendingStarted id(UUID id) { - this.id = id; - return this; - } - /** - * Identifies the type of resource. + * Identifies the resource. * @return id **/ @javax.annotation.Nullable - @ApiModelProperty(example = "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", value = "Identifies the type of resource.") + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") @JsonProperty(JSON_PROPERTY_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -167,11 +137,6 @@ public UUID getId() { } - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setId(UUID id) { - this.id = id; - } public FaxSendingStarted eventType(EventTypeEnum eventType) { diff --git a/src/main/java/com/telnyx/sdk/model/FaxSendingStartedPayload.java b/src/main/java/com/telnyx/sdk/model/FaxSendingStartedPayload.java index b8dc993e..b48d9dcd 100644 --- a/src/main/java/com/telnyx/sdk/model/FaxSendingStartedPayload.java +++ b/src/main/java/com/telnyx/sdk/model/FaxSendingStartedPayload.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Direction; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -48,43 +49,8 @@ public class FaxSendingStartedPayload { public static final String JSON_PROPERTY_CONNECTION_ID = "connection_id"; private String connectionId; - /** - * The direction of the fax. - */ - public enum DirectionEnum { - INBOUND("inbound"), - - OUTBOUND("outbound"); - - private String value; - - DirectionEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static DirectionEnum fromValue(String value) { - for (DirectionEnum b : DirectionEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - public static final String JSON_PROPERTY_DIRECTION = "direction"; - private DirectionEnum direction; + private Direction direction; public static final String JSON_PROPERTY_FAX_ID = "fax_id"; private UUID faxId; @@ -149,11 +115,11 @@ public FaxSendingStartedPayload connectionId(String connectionId) { } /** - * The ID of the connection that was used to send the fax. + * The ID of the connection used to send the fax. * @return connectionId **/ @javax.annotation.Nullable - @ApiModelProperty(example = "234423", value = "The ID of the connection that was used to send the fax.") + @ApiModelProperty(example = "234423", value = "The ID of the connection used to send the fax.") @JsonProperty(JSON_PROPERTY_CONNECTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,28 +135,28 @@ public void setConnectionId(String connectionId) { } - public FaxSendingStartedPayload direction(DirectionEnum direction) { + public FaxSendingStartedPayload direction(Direction direction) { this.direction = direction; return this; } /** - * The direction of the fax. + * Get direction * @return direction **/ @javax.annotation.Nullable - @ApiModelProperty(example = "outbound", value = "The direction of the fax.") + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public DirectionEnum getDirection() { + public Direction getDirection() { return direction; } @JsonProperty(JSON_PROPERTY_DIRECTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setDirection(DirectionEnum direction) { + public void setDirection(Direction direction) { this.direction = direction; } @@ -253,11 +219,11 @@ public FaxSendingStartedPayload mediaName(String mediaName) { } /** - * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization + * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. * @return mediaName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization") + @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/FindAuthenticationProviders200Response.java b/src/main/java/com/telnyx/sdk/model/FindAuthenticationProviders200Response.java new file mode 100644 index 00000000..5b9e7ec7 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/FindAuthenticationProviders200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.AuthenticationProvider; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * FindAuthenticationProviders200Response + */ +@JsonPropertyOrder({ + FindAuthenticationProviders200Response.JSON_PROPERTY_DATA, + FindAuthenticationProviders200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FindAuthenticationProviders200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public FindAuthenticationProviders200Response() { + } + + public FindAuthenticationProviders200Response data(List data) { + this.data = data; + return this; + } + + public FindAuthenticationProviders200Response addDataItem(AuthenticationProvider dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public FindAuthenticationProviders200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this findAuthenticationProviders_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FindAuthenticationProviders200Response findAuthenticationProviders200Response = (FindAuthenticationProviders200Response) o; + return Objects.equals(this.data, findAuthenticationProviders200Response.data) && + Objects.equals(this.meta, findAuthenticationProviders200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FindAuthenticationProviders200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/FindNotificationsEvents200Response.java b/src/main/java/com/telnyx/sdk/model/FindNotificationsEvents200Response.java new file mode 100644 index 00000000..ac9215c5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/FindNotificationsEvents200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationEvent; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * FindNotificationsEvents200Response + */ +@JsonPropertyOrder({ + FindNotificationsEvents200Response.JSON_PROPERTY_DATA, + FindNotificationsEvents200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FindNotificationsEvents200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public FindNotificationsEvents200Response() { + } + + public FindNotificationsEvents200Response data(List data) { + this.data = data; + return this; + } + + public FindNotificationsEvents200Response addDataItem(NotificationEvent dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public FindNotificationsEvents200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this findNotificationsEvents_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FindNotificationsEvents200Response findNotificationsEvents200Response = (FindNotificationsEvents200Response) o; + return Objects.equals(this.data, findNotificationsEvents200Response.data) && + Objects.equals(this.meta, findNotificationsEvents200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FindNotificationsEvents200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200Response.java b/src/main/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200Response.java new file mode 100644 index 00000000..369268b4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationEventCondition; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * FindNotificationsEventsConditions200Response + */ +@JsonPropertyOrder({ + FindNotificationsEventsConditions200Response.JSON_PROPERTY_DATA, + FindNotificationsEventsConditions200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FindNotificationsEventsConditions200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public FindNotificationsEventsConditions200Response() { + } + + public FindNotificationsEventsConditions200Response data(List data) { + this.data = data; + return this; + } + + public FindNotificationsEventsConditions200Response addDataItem(NotificationEventCondition dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public FindNotificationsEventsConditions200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this findNotificationsEventsConditions_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FindNotificationsEventsConditions200Response findNotificationsEventsConditions200Response = (FindNotificationsEventsConditions200Response) o; + return Objects.equals(this.data, findNotificationsEventsConditions200Response.data) && + Objects.equals(this.meta, findNotificationsEventsConditions200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FindNotificationsEventsConditions200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/FindNotificationsProfiles200Response.java b/src/main/java/com/telnyx/sdk/model/FindNotificationsProfiles200Response.java new file mode 100644 index 00000000..f0c56ae9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/FindNotificationsProfiles200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationProfile; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * FindNotificationsProfiles200Response + */ +@JsonPropertyOrder({ + FindNotificationsProfiles200Response.JSON_PROPERTY_DATA, + FindNotificationsProfiles200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FindNotificationsProfiles200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public FindNotificationsProfiles200Response() { + } + + public FindNotificationsProfiles200Response data(List data) { + this.data = data; + return this; + } + + public FindNotificationsProfiles200Response addDataItem(NotificationProfile dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public FindNotificationsProfiles200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this findNotificationsProfiles_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FindNotificationsProfiles200Response findNotificationsProfiles200Response = (FindNotificationsProfiles200Response) o; + return Objects.equals(this.data, findNotificationsProfiles200Response.data) && + Objects.equals(this.meta, findNotificationsProfiles200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FindNotificationsProfiles200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/FindPortoutComments200Response.java b/src/main/java/com/telnyx/sdk/model/FindPortoutComments200Response.java new file mode 100644 index 00000000..8a5fde3a --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/FindPortoutComments200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Metadata; +import com.telnyx.sdk.model.PortoutComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * FindPortoutComments200Response + */ +@JsonPropertyOrder({ + FindPortoutComments200Response.JSON_PROPERTY_DATA, + FindPortoutComments200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FindPortoutComments200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private Metadata meta; + + public FindPortoutComments200Response() { + } + + public FindPortoutComments200Response data(List data) { + this.data = data; + return this; + } + + public FindPortoutComments200Response addDataItem(PortoutComment dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public FindPortoutComments200Response meta(Metadata meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Metadata getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(Metadata meta) { + this.meta = meta; + } + + + /** + * Return true if this findPortoutComments_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FindPortoutComments200Response findPortoutComments200Response = (FindPortoutComments200Response) o; + return Objects.equals(this.data, findPortoutComments200Response.data) && + Objects.equals(this.meta, findPortoutComments200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FindPortoutComments200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/FindPortoutRequest200Response.java b/src/main/java/com/telnyx/sdk/model/FindPortoutRequest200Response.java new file mode 100644 index 00000000..ffb4cbc9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/FindPortoutRequest200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortoutDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * FindPortoutRequest200Response + */ +@JsonPropertyOrder({ + FindPortoutRequest200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class FindPortoutRequest200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortoutDetails data; + + public FindPortoutRequest200Response() { + } + + public FindPortoutRequest200Response data(PortoutDetails data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortoutDetails getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortoutDetails data) { + this.data = data; + } + + + /** + * Return true if this findPortoutRequest_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FindPortoutRequest200Response findPortoutRequest200Response = (FindPortoutRequest200Response) o; + return Objects.equals(this.data, findPortoutRequest200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FindPortoutRequest200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Footer.java b/src/main/java/com/telnyx/sdk/model/Footer.java new file mode 100644 index 00000000..4dc7815b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Footer.java @@ -0,0 +1,114 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveFooter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * The footer of the message. Emojis and markdown are supported. + */ +@ApiModel(description = "The footer of the message. Emojis and markdown are supported.") +@JsonPropertyOrder({ + Footer.JSON_PROPERTY_TEXT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Footer { + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public Footer() { + } + + public Footer text(String text) { + this.text = text; + return this; + } + + /** + * The footer content. Emojis and markdown are supported. Links are supported. + * @return text + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The footer content. Emojis and markdown are supported. Links are supported.") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setText(String text) { + this.text = text; + } + + + /** + * Return true if this Footer object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Footer footer = (Footer) o; + return Objects.equals(this.text, footer.text); + } + + @Override + public int hashCode() { + return Objects.hash(text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Footer {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ForbiddenError.java b/src/main/java/com/telnyx/sdk/model/ForbiddenError.java index 3fe1ba2c..f4e945da 100644 --- a/src/main/java/com/telnyx/sdk/model/ForbiddenError.java +++ b/src/main/java/com/telnyx/sdk/model/ForbiddenError.java @@ -22,10 +22,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ErrorSource; import com.telnyx.sdk.model.ForbiddenErrorAllOf; import com.telnyx.sdk.model.ForbiddenErrorAllOfMeta; import com.telnyx.sdk.model.GenericError; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInnerSource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; @@ -58,7 +58,7 @@ public class ForbiddenError { private JsonNullable detail = JsonNullable.of(null); public static final String JSON_PROPERTY_SOURCE = "source"; - private ErrorSource source; + private UpdateOutboundChannelsDefaultResponseErrorsInnerSource source; public static final String JSON_PROPERTY_META = "meta"; private ForbiddenErrorAllOfMeta meta; @@ -168,7 +168,7 @@ public void setDetail(Object detail) { } - public ForbiddenError source(ErrorSource source) { + public ForbiddenError source(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; return this; } @@ -182,14 +182,14 @@ public ForbiddenError source(ErrorSource source) { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ErrorSource getSource() { + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(ErrorSource source) { + public void setSource(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; } diff --git a/src/main/java/com/telnyx/sdk/model/GatherRequest.java b/src/main/java/com/telnyx/sdk/model/GatherRequest.java new file mode 100644 index 00000000..01c7cb0d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GatherRequest.java @@ -0,0 +1,368 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GatherRequest + */ +@JsonPropertyOrder({ + GatherRequest.JSON_PROPERTY_MINIMUM_DIGITS, + GatherRequest.JSON_PROPERTY_MAXIMUM_DIGITS, + GatherRequest.JSON_PROPERTY_TIMEOUT_MILLIS, + GatherRequest.JSON_PROPERTY_INTER_DIGIT_TIMEOUT_MILLIS, + GatherRequest.JSON_PROPERTY_INITIAL_TIMEOUT_MILLIS, + GatherRequest.JSON_PROPERTY_TERMINATING_DIGIT, + GatherRequest.JSON_PROPERTY_VALID_DIGITS, + GatherRequest.JSON_PROPERTY_CLIENT_STATE, + GatherRequest.JSON_PROPERTY_COMMAND_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GatherRequest { + public static final String JSON_PROPERTY_MINIMUM_DIGITS = "minimum_digits"; + private Integer minimumDigits = 1; + + public static final String JSON_PROPERTY_MAXIMUM_DIGITS = "maximum_digits"; + private Integer maximumDigits = 128; + + public static final String JSON_PROPERTY_TIMEOUT_MILLIS = "timeout_millis"; + private Integer timeoutMillis = 60000; + + public static final String JSON_PROPERTY_INTER_DIGIT_TIMEOUT_MILLIS = "inter_digit_timeout_millis"; + private Integer interDigitTimeoutMillis = 5000; + + public static final String JSON_PROPERTY_INITIAL_TIMEOUT_MILLIS = "initial_timeout_millis"; + private Integer initialTimeoutMillis = 5000; + + public static final String JSON_PROPERTY_TERMINATING_DIGIT = "terminating_digit"; + private String terminatingDigit = "#"; + + public static final String JSON_PROPERTY_VALID_DIGITS = "valid_digits"; + private String validDigits = "0123456789#*"; + + public static final String JSON_PROPERTY_CLIENT_STATE = "client_state"; + private String clientState; + + public static final String JSON_PROPERTY_COMMAND_ID = "command_id"; + private String commandId; + + public GatherRequest() { + } + + public GatherRequest minimumDigits(Integer minimumDigits) { + this.minimumDigits = minimumDigits; + return this; + } + + /** + * The minimum number of digits to fetch. This parameter has a minimum value of 1. + * @return minimumDigits + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "The minimum number of digits to fetch. This parameter has a minimum value of 1.") + @JsonProperty(JSON_PROPERTY_MINIMUM_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getMinimumDigits() { + return minimumDigits; + } + + + @JsonProperty(JSON_PROPERTY_MINIMUM_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMinimumDigits(Integer minimumDigits) { + this.minimumDigits = minimumDigits; + } + + + public GatherRequest maximumDigits(Integer maximumDigits) { + this.maximumDigits = maximumDigits; + return this; + } + + /** + * The maximum number of digits to fetch. This parameter has a maximum value of 128. + * @return maximumDigits + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10", value = "The maximum number of digits to fetch. This parameter has a maximum value of 128.") + @JsonProperty(JSON_PROPERTY_MAXIMUM_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getMaximumDigits() { + return maximumDigits; + } + + + @JsonProperty(JSON_PROPERTY_MAXIMUM_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMaximumDigits(Integer maximumDigits) { + this.maximumDigits = maximumDigits; + } + + + public GatherRequest timeoutMillis(Integer timeoutMillis) { + this.timeoutMillis = timeoutMillis; + return this; + } + + /** + * The number of milliseconds to wait to complete the request. + * @return timeoutMillis + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "60000", value = "The number of milliseconds to wait to complete the request.") + @JsonProperty(JSON_PROPERTY_TIMEOUT_MILLIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getTimeoutMillis() { + return timeoutMillis; + } + + + @JsonProperty(JSON_PROPERTY_TIMEOUT_MILLIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTimeoutMillis(Integer timeoutMillis) { + this.timeoutMillis = timeoutMillis; + } + + + public GatherRequest interDigitTimeoutMillis(Integer interDigitTimeoutMillis) { + this.interDigitTimeoutMillis = interDigitTimeoutMillis; + return this; + } + + /** + * The number of milliseconds to wait for input between digits. + * @return interDigitTimeoutMillis + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10000", value = "The number of milliseconds to wait for input between digits.") + @JsonProperty(JSON_PROPERTY_INTER_DIGIT_TIMEOUT_MILLIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getInterDigitTimeoutMillis() { + return interDigitTimeoutMillis; + } + + + @JsonProperty(JSON_PROPERTY_INTER_DIGIT_TIMEOUT_MILLIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInterDigitTimeoutMillis(Integer interDigitTimeoutMillis) { + this.interDigitTimeoutMillis = interDigitTimeoutMillis; + } + + + public GatherRequest initialTimeoutMillis(Integer initialTimeoutMillis) { + this.initialTimeoutMillis = initialTimeoutMillis; + return this; + } + + /** + * The number of milliseconds to wait for the first DTMF. + * @return initialTimeoutMillis + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10000", value = "The number of milliseconds to wait for the first DTMF.") + @JsonProperty(JSON_PROPERTY_INITIAL_TIMEOUT_MILLIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getInitialTimeoutMillis() { + return initialTimeoutMillis; + } + + + @JsonProperty(JSON_PROPERTY_INITIAL_TIMEOUT_MILLIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInitialTimeoutMillis(Integer initialTimeoutMillis) { + this.initialTimeoutMillis = initialTimeoutMillis; + } + + + public GatherRequest terminatingDigit(String terminatingDigit) { + this.terminatingDigit = terminatingDigit; + return this; + } + + /** + * The digit used to terminate input if fewer than `maximum_digits` digits have been gathered. + * @return terminatingDigit + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "#", value = "The digit used to terminate input if fewer than `maximum_digits` digits have been gathered.") + @JsonProperty(JSON_PROPERTY_TERMINATING_DIGIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTerminatingDigit() { + return terminatingDigit; + } + + + @JsonProperty(JSON_PROPERTY_TERMINATING_DIGIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTerminatingDigit(String terminatingDigit) { + this.terminatingDigit = terminatingDigit; + } + + + public GatherRequest validDigits(String validDigits) { + this.validDigits = validDigits; + return this; + } + + /** + * A list of all digits accepted as valid. + * @return validDigits + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "123", value = "A list of all digits accepted as valid.") + @JsonProperty(JSON_PROPERTY_VALID_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getValidDigits() { + return validDigits; + } + + + @JsonProperty(JSON_PROPERTY_VALID_DIGITS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValidDigits(String validDigits) { + this.validDigits = validDigits; + } + + + public GatherRequest clientState(String clientState) { + this.clientState = clientState; + return this; + } + + /** + * Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string. + * @return clientState + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "aGF2ZSBhIG5pY2UgZGF5ID1d", value = "Use this field to add state to every subsequent webhook. It must be a valid Base-64 encoded string.") + @JsonProperty(JSON_PROPERTY_CLIENT_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getClientState() { + return clientState; + } + + + @JsonProperty(JSON_PROPERTY_CLIENT_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setClientState(String clientState) { + this.clientState = clientState; + } + + + public GatherRequest commandId(String commandId) { + this.commandId = commandId; + return this; + } + + /** + * Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`. + * @return commandId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "891510ac-f3e4-11e8-af5b-de00688a4901", value = "Use this field to avoid duplicate commands. Telnyx will ignore any command with the same `command_id` for the same `call_control_id`.") + @JsonProperty(JSON_PROPERTY_COMMAND_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCommandId() { + return commandId; + } + + + @JsonProperty(JSON_PROPERTY_COMMAND_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCommandId(String commandId) { + this.commandId = commandId; + } + + + /** + * Return true if this GatherRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatherRequest gatherRequest = (GatherRequest) o; + return Objects.equals(this.minimumDigits, gatherRequest.minimumDigits) && + Objects.equals(this.maximumDigits, gatherRequest.maximumDigits) && + Objects.equals(this.timeoutMillis, gatherRequest.timeoutMillis) && + Objects.equals(this.interDigitTimeoutMillis, gatherRequest.interDigitTimeoutMillis) && + Objects.equals(this.initialTimeoutMillis, gatherRequest.initialTimeoutMillis) && + Objects.equals(this.terminatingDigit, gatherRequest.terminatingDigit) && + Objects.equals(this.validDigits, gatherRequest.validDigits) && + Objects.equals(this.clientState, gatherRequest.clientState) && + Objects.equals(this.commandId, gatherRequest.commandId); + } + + @Override + public int hashCode() { + return Objects.hash(minimumDigits, maximumDigits, timeoutMillis, interDigitTimeoutMillis, initialTimeoutMillis, terminatingDigit, validDigits, clientState, commandId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatherRequest {\n"); + sb.append(" minimumDigits: ").append(toIndentedString(minimumDigits)).append("\n"); + sb.append(" maximumDigits: ").append(toIndentedString(maximumDigits)).append("\n"); + sb.append(" timeoutMillis: ").append(toIndentedString(timeoutMillis)).append("\n"); + sb.append(" interDigitTimeoutMillis: ").append(toIndentedString(interDigitTimeoutMillis)).append("\n"); + sb.append(" initialTimeoutMillis: ").append(toIndentedString(initialTimeoutMillis)).append("\n"); + sb.append(" terminatingDigit: ").append(toIndentedString(terminatingDigit)).append("\n"); + sb.append(" validDigits: ").append(toIndentedString(validDigits)).append("\n"); + sb.append(" clientState: ").append(toIndentedString(clientState)).append("\n"); + sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GenericError.java b/src/main/java/com/telnyx/sdk/model/GenericError.java index 45431d87..45e8206b 100644 --- a/src/main/java/com/telnyx/sdk/model/GenericError.java +++ b/src/main/java/com/telnyx/sdk/model/GenericError.java @@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ErrorSource; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInnerSource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -51,7 +51,7 @@ public class GenericError { private String detail; public static final String JSON_PROPERTY_SOURCE = "source"; - private ErrorSource source; + private UpdateOutboundChannelsDefaultResponseErrorsInnerSource source; public static final String JSON_PROPERTY_META = "meta"; private Object meta; @@ -137,7 +137,7 @@ public void setDetail(String detail) { } - public GenericError source(ErrorSource source) { + public GenericError source(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; return this; } @@ -151,14 +151,14 @@ public GenericError source(ErrorSource source) { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ErrorSource getSource() { + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(ErrorSource source) { + public void setSource(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; } diff --git a/src/main/java/com/telnyx/sdk/model/GetChannelZones200Response.java b/src/main/java/com/telnyx/sdk/model/GetChannelZones200Response.java new file mode 100644 index 00000000..b7e4fd86 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetChannelZones200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GcbChannelZone; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetChannelZones200Response + */ +@JsonPropertyOrder({ + GetChannelZones200Response.JSON_PROPERTY_DATA, + GetChannelZones200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetChannelZones200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public GetChannelZones200Response() { + } + + public GetChannelZones200Response data(List data) { + this.data = data; + return this; + } + + public GetChannelZones200Response addDataItem(GcbChannelZone dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public GetChannelZones200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this getChannelZones_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetChannelZones200Response getChannelZones200Response = (GetChannelZones200Response) o; + return Objects.equals(this.data, getChannelZones200Response.data) && + Objects.equals(this.meta, getChannelZones200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetChannelZones200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetCustomerServiceRequest404Response.java b/src/main/java/com/telnyx/sdk/model/GetCustomerServiceRequest404Response.java new file mode 100644 index 00000000..0b90d5ee --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetCustomerServiceRequest404Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ResourceNotFoundError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetCustomerServiceRequest404Response + */ +@JsonPropertyOrder({ + GetCustomerServiceRequest404Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetCustomerServiceRequest404Response { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public GetCustomerServiceRequest404Response() { + } + + public GetCustomerServiceRequest404Response errors(List errors) { + this.errors = errors; + return this; + } + + public GetCustomerServiceRequest404Response addErrorsItem(ResourceNotFoundError errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this getCustomerServiceRequest_404_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetCustomerServiceRequest404Response getCustomerServiceRequest404Response = (GetCustomerServiceRequest404Response) o; + return Objects.equals(this.errors, getCustomerServiceRequest404Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetCustomerServiceRequest404Response {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetPhoneNumbers200Response.java b/src/main/java/com/telnyx/sdk/model/GetPhoneNumbers200Response.java new file mode 100644 index 00000000..03f58bae --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetPhoneNumbers200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GcbPhoneNumber; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetPhoneNumbers200Response + */ +@JsonPropertyOrder({ + GetPhoneNumbers200Response.JSON_PROPERTY_DATA, + GetPhoneNumbers200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetPhoneNumbers200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public GetPhoneNumbers200Response() { + } + + public GetPhoneNumbers200Response data(List data) { + this.data = data; + return this; + } + + public GetPhoneNumbers200Response addDataItem(GcbPhoneNumber dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public GetPhoneNumbers200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this getPhoneNumbers_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPhoneNumbers200Response getPhoneNumbers200Response = (GetPhoneNumbers200Response) o; + return Objects.equals(this.data, getPhoneNumbers200Response.data) && + Objects.equals(this.meta, getPhoneNumbers200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPhoneNumbers200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201Response.java b/src/main/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201Response.java new file mode 100644 index 00000000..48491337 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortOutSupportingDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetPortRequestSupportingDocuments201Response + */ +@JsonPropertyOrder({ + GetPortRequestSupportingDocuments201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetPortRequestSupportingDocuments201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public GetPortRequestSupportingDocuments201Response() { + } + + public GetPortRequestSupportingDocuments201Response data(List data) { + this.data = data; + return this; + } + + public GetPortRequestSupportingDocuments201Response addDataItem(PortOutSupportingDocument dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this getPortRequestSupportingDocuments_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPortRequestSupportingDocuments201Response getPortRequestSupportingDocuments201Response = (GetPortRequestSupportingDocuments201Response) o; + return Objects.equals(this.data, getPortRequestSupportingDocuments201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPortRequestSupportingDocuments201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetPortingOrder200Response.java b/src/main/java/com/telnyx/sdk/model/GetPortingOrder200Response.java new file mode 100644 index 00000000..bda99e62 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetPortingOrder200Response.java @@ -0,0 +1,146 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GetPortingOrder200ResponseMeta; +import com.telnyx.sdk.model.PortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetPortingOrder200Response + */ +@JsonPropertyOrder({ + GetPortingOrder200Response.JSON_PROPERTY_DATA, + GetPortingOrder200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetPortingOrder200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortingOrder data; + + public static final String JSON_PROPERTY_META = "meta"; + private GetPortingOrder200ResponseMeta meta; + + public GetPortingOrder200Response() { + } + + public GetPortingOrder200Response data(PortingOrder data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortingOrder getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortingOrder data) { + this.data = data; + } + + + public GetPortingOrder200Response meta(GetPortingOrder200ResponseMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public GetPortingOrder200ResponseMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(GetPortingOrder200ResponseMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this getPortingOrder_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPortingOrder200Response getPortingOrder200Response = (GetPortingOrder200Response) o; + return Objects.equals(this.data, getPortingOrder200Response.data) && + Objects.equals(this.meta, getPortingOrder200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPortingOrder200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMeta.java b/src/main/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMeta.java new file mode 100644 index 00000000..d994e188 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMeta.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetPortingOrder200ResponseMeta + */ +@JsonPropertyOrder({ + GetPortingOrder200ResponseMeta.JSON_PROPERTY_PHONE_NUMBERS_URL +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetPortingOrder200ResponseMeta { + public static final String JSON_PROPERTY_PHONE_NUMBERS_URL = "phone_numbers_url"; + private String phoneNumbersUrl; + + public GetPortingOrder200ResponseMeta() { + } + + public GetPortingOrder200ResponseMeta phoneNumbersUrl(String phoneNumbersUrl) { + this.phoneNumbersUrl = phoneNumbersUrl; + return this; + } + + /** + * Link to list all phone numbers + * @return phoneNumbersUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "/v2/porting_phone_numbers?filter[porting_order_id]=eef10fb8-f3df-4c67-97c5-e18179723222", value = "Link to list all phone numbers") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPhoneNumbersUrl() { + return phoneNumbersUrl; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumbersUrl(String phoneNumbersUrl) { + this.phoneNumbersUrl = phoneNumbersUrl; + } + + + /** + * Return true if this getPortingOrder_200_response_meta object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPortingOrder200ResponseMeta getPortingOrder200ResponseMeta = (GetPortingOrder200ResponseMeta) o; + return Objects.equals(this.phoneNumbersUrl, getPortingOrder200ResponseMeta.phoneNumbersUrl); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumbersUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPortingOrder200ResponseMeta {\n"); + sb.append(" phoneNumbersUrl: ").append(toIndentedString(phoneNumbersUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200Response.java b/src/main/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200Response.java new file mode 100644 index 00000000..7450871e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GetSubRequestByPortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetPortingOrderSubRequest200Response + */ +@JsonPropertyOrder({ + GetPortingOrderSubRequest200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetPortingOrderSubRequest200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private GetSubRequestByPortingOrder data; + + public GetPortingOrderSubRequest200Response() { + } + + public GetPortingOrderSubRequest200Response data(GetSubRequestByPortingOrder data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public GetSubRequestByPortingOrder getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(GetSubRequestByPortingOrder data) { + this.data = data; + } + + + /** + * Return true if this getPortingOrderSubRequest_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPortingOrderSubRequest200Response getPortingOrderSubRequest200Response = (GetPortingOrderSubRequest200Response) o; + return Objects.equals(this.data, getPortingOrderSubRequest200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPortingOrderSubRequest200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200Response.java b/src/main/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200Response.java new file mode 100644 index 00000000..74f0f5a5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PrivateWirelessGateway; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetPrivateWirelessGateways200Response + */ +@JsonPropertyOrder({ + GetPrivateWirelessGateways200Response.JSON_PROPERTY_DATA, + GetPrivateWirelessGateways200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetPrivateWirelessGateways200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public GetPrivateWirelessGateways200Response() { + } + + public GetPrivateWirelessGateways200Response data(List data) { + this.data = data; + return this; + } + + public GetPrivateWirelessGateways200Response addDataItem(PrivateWirelessGateway dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public GetPrivateWirelessGateways200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this getPrivateWirelessGateways_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetPrivateWirelessGateways200Response getPrivateWirelessGateways200Response = (GetPrivateWirelessGateways200Response) o; + return Objects.equals(this.data, getPrivateWirelessGateways200Response.data) && + Objects.equals(this.meta, getPrivateWirelessGateways200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetPrivateWirelessGateways200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetUserBalance200Response.java b/src/main/java/com/telnyx/sdk/model/GetUserBalance200Response.java new file mode 100644 index 00000000..25e20db5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetUserBalance200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UserBalance; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetUserBalance200Response + */ +@JsonPropertyOrder({ + GetUserBalance200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetUserBalance200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private UserBalance data; + + public GetUserBalance200Response() { + } + + public GetUserBalance200Response data(UserBalance data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UserBalance getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(UserBalance data) { + this.data = data; + } + + + /** + * Return true if this getUserBalance_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetUserBalance200Response getUserBalance200Response = (GetUserBalance200Response) o; + return Objects.equals(this.data, getUserBalance200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetUserBalance200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetWdrReports200Response.java b/src/main/java/com/telnyx/sdk/model/GetWdrReports200Response.java new file mode 100644 index 00000000..221491d4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetWdrReports200Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WdrReport; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetWdrReports200Response + */ +@JsonPropertyOrder({ + GetWdrReports200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetWdrReports200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public GetWdrReports200Response() { + } + + public GetWdrReports200Response data(List data) { + this.data = data; + return this; + } + + public GetWdrReports200Response addDataItem(WdrReport dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this getWdrReports_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWdrReports200Response getWdrReports200Response = (GetWdrReports200Response) o; + return Objects.equals(this.data, getWdrReports200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetWdrReports200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetWebhookDeliveries200Response.java b/src/main/java/com/telnyx/sdk/model/GetWebhookDeliveries200Response.java new file mode 100644 index 00000000..de26723b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetWebhookDeliveries200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMetaSimple; +import com.telnyx.sdk.model.WebhookDelivery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetWebhookDeliveries200Response + */ +@JsonPropertyOrder({ + GetWebhookDeliveries200Response.JSON_PROPERTY_DATA, + GetWebhookDeliveries200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetWebhookDeliveries200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMetaSimple meta; + + public GetWebhookDeliveries200Response() { + } + + public GetWebhookDeliveries200Response data(List data) { + this.data = data; + return this; + } + + public GetWebhookDeliveries200Response addDataItem(WebhookDelivery dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public GetWebhookDeliveries200Response meta(PaginationMetaSimple meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMetaSimple getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMetaSimple meta) { + this.meta = meta; + } + + + /** + * Return true if this getWebhookDeliveries_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWebhookDeliveries200Response getWebhookDeliveries200Response = (GetWebhookDeliveries200Response) o; + return Objects.equals(this.data, getWebhookDeliveries200Response.data) && + Objects.equals(this.meta, getWebhookDeliveries200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetWebhookDeliveries200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/GetWebhookDelivery200Response.java b/src/main/java/com/telnyx/sdk/model/GetWebhookDelivery200Response.java new file mode 100644 index 00000000..cf6dbb73 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/GetWebhookDelivery200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WebhookDelivery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * GetWebhookDelivery200Response + */ +@JsonPropertyOrder({ + GetWebhookDelivery200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class GetWebhookDelivery200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private WebhookDelivery data; + + public GetWebhookDelivery200Response() { + } + + public GetWebhookDelivery200Response data(WebhookDelivery data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WebhookDelivery getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(WebhookDelivery data) { + this.data = data; + } + + + /** + * Return true if this getWebhookDelivery_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetWebhookDelivery200Response getWebhookDelivery200Response = (GetWebhookDelivery200Response) o; + return Objects.equals(this.data, getWebhookDelivery200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetWebhookDelivery200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Header.java b/src/main/java/com/telnyx/sdk/model/Header.java new file mode 100644 index 00000000..7f8306b3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Header.java @@ -0,0 +1,245 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Document1; +import com.telnyx.sdk.model.Image1; +import com.telnyx.sdk.model.InteractiveHeader; +import com.telnyx.sdk.model.Video1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Header content displayed on top of a message. See header object for more information. You cannot set a header if your interactive object is of product type. Required for type product_list. Optional for other types. + */ +@ApiModel(description = "Header content displayed on top of a message. See header object for more information. You cannot set a header if your interactive object is of product type. Required for type product_list. Optional for other types.") +@JsonPropertyOrder({ + Header.JSON_PROPERTY_TYPE, + Header.JSON_PROPERTY_TEXT, + Header.JSON_PROPERTY_VIDEO, + Header.JSON_PROPERTY_IMAGE, + Header.JSON_PROPERTY_DOCUMENT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Header { + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public static final String JSON_PROPERTY_VIDEO = "video"; + private Video1 video; + + public static final String JSON_PROPERTY_IMAGE = "image"; + private Image1 image; + + public static final String JSON_PROPERTY_DOCUMENT = "document"; + private Document1 document; + + public Header() { + } + + public Header type(String type) { + this.type = type; + return this; + } + + /** + * The header type you would like to use. + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The header type you would like to use.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(String type) { + this.type = type; + } + + + public Header text(String text) { + this.text = text; + return this; + } + + /** + * Text for the header. Formatting allows emojis, but not markdown. + * @return text + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Text for the header. Formatting allows emojis, but not markdown.") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setText(String text) { + this.text = text; + } + + + public Header video(Video1 video) { + this.video = video; + return this; + } + + /** + * Get video + * @return video + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_VIDEO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Video1 getVideo() { + return video; + } + + + @JsonProperty(JSON_PROPERTY_VIDEO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVideo(Video1 video) { + this.video = video; + } + + + public Header image(Image1 image) { + this.image = image; + return this; + } + + /** + * Get image + * @return image + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IMAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Image1 getImage() { + return image; + } + + + @JsonProperty(JSON_PROPERTY_IMAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setImage(Image1 image) { + this.image = image; + } + + + public Header document(Document1 document) { + this.document = document; + return this; + } + + /** + * Get document + * @return document + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOCUMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Document1 getDocument() { + return document; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDocument(Document1 document) { + this.document = document; + } + + + /** + * Return true if this Header object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Header header = (Header) o; + return Objects.equals(this.type, header.type) && + Objects.equals(this.text, header.text) && + Objects.equals(this.video, header.video) && + Objects.equals(this.image, header.image) && + Objects.equals(this.document, header.document); + } + + @Override + public int hashCode() { + return Objects.hash(type, text, video, image, document); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Header {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" video: ").append(toIndentedString(video)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); + sb.append(" document: ").append(toIndentedString(document)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/HostedNumber.java b/src/main/java/com/telnyx/sdk/model/HostedNumber.java index 506beae2..fc949809 100644 --- a/src/main/java/com/telnyx/sdk/model/HostedNumber.java +++ b/src/main/java/com/telnyx/sdk/model/HostedNumber.java @@ -94,6 +94,14 @@ public static StatusEnum fromValue(String value) { public HostedNumber() { } + @JsonCreator + public HostedNumber( + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.id = id; + } + public HostedNumber recordType(String recordType) { this.recordType = recordType; return this; diff --git a/src/main/java/com/telnyx/sdk/model/Http.java b/src/main/java/com/telnyx/sdk/model/Http.java index 645710bd..dbd53ed2 100644 --- a/src/main/java/com/telnyx/sdk/model/Http.java +++ b/src/main/java/com/telnyx/sdk/model/Http.java @@ -22,6 +22,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.HttpRequest; +import com.telnyx.sdk.model.HttpResponse; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; @@ -43,79 +45,71 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class Http { public static final String JSON_PROPERTY_REQUEST = "request"; - private JsonNullable request = JsonNullable.undefined(); + private HttpRequest request; public static final String JSON_PROPERTY_RESPONSE = "response"; - private JsonNullable response = JsonNullable.undefined(); + private JsonNullable response = JsonNullable.undefined(); public Http() { } - public Http request(Object request) { - this.request = JsonNullable.of(request); + public Http request(HttpRequest request) { + this.request = request; return this; } /** - * Request details. + * Get request * @return request **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Request details.") - @JsonIgnore - - public Object getRequest() { - return request.orElse(null); - } - + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_REQUEST) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getRequest_JsonNullable() { + public HttpRequest getRequest() { return request; } - + + @JsonProperty(JSON_PROPERTY_REQUEST) - public void setRequest_JsonNullable(JsonNullable request) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequest(HttpRequest request) { this.request = request; } - public void setRequest(Object request) { - this.request = JsonNullable.of(request); - } - - public Http response(Object response) { - this.response = JsonNullable.of(response); + public Http response(HttpResponse response) { + this.response = JsonNullable.of(response); return this; } /** - * Response details, optional. + * Get response * @return response **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Response details, optional.") + @ApiModelProperty(value = "") @JsonIgnore - public Object getResponse() { + public HttpResponse getResponse() { return response.orElse(null); } @JsonProperty(JSON_PROPERTY_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getResponse_JsonNullable() { + public JsonNullable getResponse_JsonNullable() { return response; } @JsonProperty(JSON_PROPERTY_RESPONSE) - public void setResponse_JsonNullable(JsonNullable response) { + public void setResponse_JsonNullable(JsonNullable response) { this.response = response; } - public void setResponse(Object response) { - this.response = JsonNullable.of(response); + public void setResponse(HttpResponse response) { + this.response = JsonNullable.of(response); } @@ -131,7 +125,7 @@ public boolean equals(Object o) { return false; } Http http = (Http) o; - return equalsNullable(this.request, http.request) && + return Objects.equals(this.request, http.request) && equalsNullable(this.response, http.response); } @@ -141,7 +135,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(hashCodeNullable(request), hashCodeNullable(response)); + return Objects.hash(request, hashCodeNullable(response)); } private static int hashCodeNullable(JsonNullable a) { diff --git a/src/main/java/com/telnyx/sdk/model/HttpRequest.java b/src/main/java/com/telnyx/sdk/model/HttpRequest.java new file mode 100644 index 00000000..8d1034d3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/HttpRequest.java @@ -0,0 +1,155 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Request details. + */ +@ApiModel(description = "Request details.") +@JsonPropertyOrder({ + HttpRequest.JSON_PROPERTY_URL, + HttpRequest.JSON_PROPERTY_HEADERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class HttpRequest { + public static final String JSON_PROPERTY_URL = "url"; + private String url; + + public static final String JSON_PROPERTY_HEADERS = "headers"; + private List headers = null; + + public HttpRequest() { + } + + public HttpRequest url(String url) { + this.url = url; + return this; + } + + /** + * Get url + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "https://example.com/webhooks", value = "") + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUrl() { + return url; + } + + + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + + + public HttpRequest headers(List headers) { + this.headers = headers; + return this; + } + + public HttpRequest addHeadersItem(String headersItem) { + if (this.headers == null) { + this.headers = new ArrayList<>(); + } + this.headers.add(headersItem); + return this; + } + + /** + * List of headers, limited to 10kB. + * @return headers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of headers, limited to 10kB.") + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getHeaders() { + return headers; + } + + + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHeaders(List headers) { + this.headers = headers; + } + + + /** + * Return true if this http_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HttpRequest httpRequest = (HttpRequest) o; + return Objects.equals(this.url, httpRequest.url) && + Objects.equals(this.headers, httpRequest.headers); + } + + @Override + public int hashCode() { + return Objects.hash(url, headers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HttpRequest {\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/HttpResponse.java b/src/main/java/com/telnyx/sdk/model/HttpResponse.java new file mode 100644 index 00000000..69fdf331 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/HttpResponse.java @@ -0,0 +1,187 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Response details, optional. + */ +@ApiModel(description = "Response details, optional.") +@JsonPropertyOrder({ + HttpResponse.JSON_PROPERTY_STATUS, + HttpResponse.JSON_PROPERTY_HEADERS, + HttpResponse.JSON_PROPERTY_BODY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class HttpResponse { + public static final String JSON_PROPERTY_STATUS = "status"; + private Integer status; + + public static final String JSON_PROPERTY_HEADERS = "headers"; + private List headers = null; + + public static final String JSON_PROPERTY_BODY = "body"; + private String body; + + public HttpResponse() { + } + + public HttpResponse status(Integer status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "200", value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(Integer status) { + this.status = status; + } + + + public HttpResponse headers(List headers) { + this.headers = headers; + return this; + } + + public HttpResponse addHeadersItem(String headersItem) { + if (this.headers == null) { + this.headers = new ArrayList<>(); + } + this.headers.add(headersItem); + return this; + } + + /** + * List of headers, limited to 10kB. + * @return headers + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of headers, limited to 10kB.") + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getHeaders() { + return headers; + } + + + @JsonProperty(JSON_PROPERTY_HEADERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHeaders(List headers) { + this.headers = headers; + } + + + public HttpResponse body(String body) { + this.body = body; + return this; + } + + /** + * Raw response body, limited to 10kB. + * @return body + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Raw response body, limited to 10kB.") + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBody() { + return body; + } + + + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBody(String body) { + this.body = body; + } + + + /** + * Return true if this http_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HttpResponse httpResponse = (HttpResponse) o; + return Objects.equals(this.status, httpResponse.status) && + Objects.equals(this.headers, httpResponse.headers) && + Objects.equals(this.body, httpResponse.body); + } + + @Override + public int hashCode() { + return Objects.hash(status, headers, body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HttpResponse {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Image1.java b/src/main/java/com/telnyx/sdk/model/Image1.java new file mode 100644 index 00000000..ccb8b827 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Image1.java @@ -0,0 +1,178 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Image; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Contains the media object for this image. + */ +@ApiModel(description = "Contains the media object for this image.") +@JsonPropertyOrder({ + Image1.JSON_PROPERTY_ID, + Image1.JSON_PROPERTY_LINK, + Image1.JSON_PROPERTY_CAPTION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Image1 { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_LINK = "link"; + private String link; + + public static final String JSON_PROPERTY_CAPTION = "caption"; + private String caption; + + public Image1() { + } + + public Image1 id(String id) { + this.id = id; + return this; + } + + /** + * The media object ID returned when the media is successfully uploaded to the media endpoint. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68", value = "The media object ID returned when the media is successfully uploaded to the media endpoint.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public Image1 link(String link) { + this.link = link; + return this; + } + + /** + * The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. + * @return link + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "http://www.example.com/file", value = "The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both.") + @JsonProperty(JSON_PROPERTY_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLink() { + return link; + } + + + @JsonProperty(JSON_PROPERTY_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLink(String link) { + this.link = link; + } + + + public Image1 caption(String caption) { + this.caption = caption; + return this; + } + + /** + * Describes the specified media. + * @return caption + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "My cool media!", value = "Describes the specified media.") + @JsonProperty(JSON_PROPERTY_CAPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCaption() { + return caption; + } + + + @JsonProperty(JSON_PROPERTY_CAPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCaption(String caption) { + this.caption = caption; + } + + + /** + * Return true if this Image_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Image1 image1 = (Image1) o; + return Objects.equals(this.id, image1.id) && + Objects.equals(this.link, image1.link) && + Objects.equals(this.caption, image1.caption); + } + + @Override + public int hashCode() { + return Objects.hash(id, link, caption); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Image1 {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" caption: ").append(toIndentedString(caption)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InboundFqdn.java b/src/main/java/com/telnyx/sdk/model/InboundFqdn.java index f6d8b401..477d81e0 100644 --- a/src/main/java/com/telnyx/sdk/model/InboundFqdn.java +++ b/src/main/java/com/telnyx/sdk/model/InboundFqdn.java @@ -179,7 +179,7 @@ public static DefaultRoutingMethodEnum fromValue(String value) { } public static final String JSON_PROPERTY_DEFAULT_ROUTING_METHOD = "default_routing_method"; - private JsonNullable defaultRoutingMethod = JsonNullable.of(null); + private JsonNullable defaultRoutingMethod = JsonNullable.undefined(); public static final String JSON_PROPERTY_CHANNEL_LIMIT = "channel_limit"; private JsonNullable channelLimit = JsonNullable.undefined(); @@ -240,7 +240,7 @@ public static SipRegionEnum fromValue(String value) { private SipRegionEnum sipRegion = SipRegionEnum.US; public static final String JSON_PROPERTY_SIP_SUBDOMAIN = "sip_subdomain"; - private JsonNullable sipSubdomain = JsonNullable.of("null"); + private JsonNullable sipSubdomain = JsonNullable.undefined(); /** * This option can be enabled to receive calls from: \"Anyone\" (any SIP endpoint in the public Internet) or \"Only my connections\" (any connection assigned to the same Telnyx user). diff --git a/src/main/java/com/telnyx/sdk/model/InboundMessagePayload.java b/src/main/java/com/telnyx/sdk/model/InboundMessagePayload.java index 44e4e2d4..0ae7a1de 100644 --- a/src/main/java/com/telnyx/sdk/model/InboundMessagePayload.java +++ b/src/main/java/com/telnyx/sdk/model/InboundMessagePayload.java @@ -23,11 +23,11 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Error; -import com.telnyx.sdk.model.InboundMessagePayloadCc; +import com.telnyx.sdk.model.InboundMessagePayloadCcInner; import com.telnyx.sdk.model.InboundMessagePayloadCost; import com.telnyx.sdk.model.InboundMessagePayloadFrom; -import com.telnyx.sdk.model.InboundMessagePayloadMedia; -import com.telnyx.sdk.model.InboundMessagePayloadTo; +import com.telnyx.sdk.model.InboundMessagePayloadMediaInner; +import com.telnyx.sdk.model.InboundMessagePayloadToInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; @@ -187,10 +187,10 @@ public static TypeEnum fromValue(String value) { private String messagingProfileId; public static final String JSON_PROPERTY_TO = "to"; - private List to = null; + private List to = null; public static final String JSON_PROPERTY_CC = "cc"; - private List cc = null; + private List cc = null; public static final String JSON_PROPERTY_FROM = "from"; private InboundMessagePayloadFrom from; @@ -199,7 +199,7 @@ public static TypeEnum fromValue(String value) { private String text; public static final String JSON_PROPERTY_MEDIA = "media"; - private List media = null; + private List media = null; public static final String JSON_PROPERTY_WEBHOOK_URL = "webhook_url"; private JsonNullable webhookUrl = JsonNullable.undefined(); @@ -367,12 +367,12 @@ public void setMessagingProfileId(String messagingProfileId) { } - public InboundMessagePayload to(List to) { + public InboundMessagePayload to(List to) { this.to = to; return this; } - public InboundMessagePayload addToItem(InboundMessagePayloadTo toItem) { + public InboundMessagePayload addToItem(InboundMessagePayloadToInner toItem) { if (this.to == null) { this.to = new ArrayList<>(); } @@ -389,24 +389,24 @@ public InboundMessagePayload addToItem(InboundMessagePayloadTo toItem) { @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTo() { + public List getTo() { return to; } @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTo(List to) { + public void setTo(List to) { this.to = to; } - public InboundMessagePayload cc(List cc) { + public InboundMessagePayload cc(List cc) { this.cc = cc; return this; } - public InboundMessagePayload addCcItem(InboundMessagePayloadCc ccItem) { + public InboundMessagePayload addCcItem(InboundMessagePayloadCcInner ccItem) { if (this.cc == null) { this.cc = new ArrayList<>(); } @@ -423,14 +423,14 @@ public InboundMessagePayload addCcItem(InboundMessagePayloadCc ccItem) { @JsonProperty(JSON_PROPERTY_CC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCc() { + public List getCc() { return cc; } @JsonProperty(JSON_PROPERTY_CC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCc(List cc) { + public void setCc(List cc) { this.cc = cc; } @@ -487,12 +487,12 @@ public void setText(String text) { } - public InboundMessagePayload media(List media) { + public InboundMessagePayload media(List media) { this.media = media; return this; } - public InboundMessagePayload addMediaItem(InboundMessagePayloadMedia mediaItem) { + public InboundMessagePayload addMediaItem(InboundMessagePayloadMediaInner mediaItem) { if (this.media == null) { this.media = new ArrayList<>(); } @@ -509,14 +509,14 @@ public InboundMessagePayload addMediaItem(InboundMessagePayloadMedia mediaItem) @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getMedia() { + public List getMedia() { return media; } @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(List media) { + public void setMedia(List media) { this.media = media; } diff --git a/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadCcInner.java b/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadCcInner.java new file mode 100644 index 00000000..e0d51ce3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadCcInner.java @@ -0,0 +1,296 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InboundMessagePayloadCcInner + */ +@JsonPropertyOrder({ + InboundMessagePayloadCcInner.JSON_PROPERTY_PHONE_NUMBER, + InboundMessagePayloadCcInner.JSON_PROPERTY_STATUS, + InboundMessagePayloadCcInner.JSON_PROPERTY_CARRIER, + InboundMessagePayloadCcInner.JSON_PROPERTY_LINE_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InboundMessagePayloadCcInner { + public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number"; + private String phoneNumber; + + /** + * Gets or Sets status + */ + public enum StatusEnum { + QUEUED("queued"), + + SENDING("sending"), + + SENT("sent"), + + DELIVERED("delivered"), + + SENDING_FAILED("sending_failed"), + + DELIVERY_FAILED("delivery_failed"), + + DELIVERY_UNCONFIRMED("delivery_unconfirmed"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public static final String JSON_PROPERTY_CARRIER = "carrier"; + private String carrier; + + /** + * The line-type of the receiver. + */ + public enum LineTypeEnum { + WIRELINE("Wireline"), + + WIRELESS("Wireless"), + + VOWIFI("VoWiFi"), + + VOIP("VoIP"), + + PRE_PAID_WIRELESS("Pre-Paid Wireless"), + + EMPTY(""); + + private String value; + + LineTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LineTypeEnum fromValue(String value) { + for (LineTypeEnum b : LineTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_LINE_TYPE = "line_type"; + private LineTypeEnum lineType; + + public InboundMessagePayloadCcInner() { + } + + public InboundMessagePayloadCcInner phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Receiving address (+E.164 formatted phone number or short code). + * @return phoneNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Receiving address (+E.164 formatted phone number or short code).") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPhoneNumber() { + return phoneNumber; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + public InboundMessagePayloadCcInner status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public InboundMessagePayloadCcInner carrier(String carrier) { + this.carrier = carrier; + return this; + } + + /** + * The carrier of the receiver. + * @return carrier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The carrier of the receiver.") + @JsonProperty(JSON_PROPERTY_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCarrier() { + return carrier; + } + + + @JsonProperty(JSON_PROPERTY_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCarrier(String carrier) { + this.carrier = carrier; + } + + + public InboundMessagePayloadCcInner lineType(LineTypeEnum lineType) { + this.lineType = lineType; + return this; + } + + /** + * The line-type of the receiver. + * @return lineType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The line-type of the receiver.") + @JsonProperty(JSON_PROPERTY_LINE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LineTypeEnum getLineType() { + return lineType; + } + + + @JsonProperty(JSON_PROPERTY_LINE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLineType(LineTypeEnum lineType) { + this.lineType = lineType; + } + + + /** + * Return true if this InboundMessagePayload_cc_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InboundMessagePayloadCcInner inboundMessagePayloadCcInner = (InboundMessagePayloadCcInner) o; + return Objects.equals(this.phoneNumber, inboundMessagePayloadCcInner.phoneNumber) && + Objects.equals(this.status, inboundMessagePayloadCcInner.status) && + Objects.equals(this.carrier, inboundMessagePayloadCcInner.carrier) && + Objects.equals(this.lineType, inboundMessagePayloadCcInner.lineType); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumber, status, carrier, lineType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InboundMessagePayloadCcInner {\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); + sb.append(" lineType: ").append(toIndentedString(lineType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInner.java b/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInner.java new file mode 100644 index 00000000..16a27cd5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInner.java @@ -0,0 +1,208 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InboundMessagePayloadMediaInner + */ +@JsonPropertyOrder({ + InboundMessagePayloadMediaInner.JSON_PROPERTY_URL, + InboundMessagePayloadMediaInner.JSON_PROPERTY_CONTENT_TYPE, + InboundMessagePayloadMediaInner.JSON_PROPERTY_SIZE, + InboundMessagePayloadMediaInner.JSON_PROPERTY_HASH_SHA256 +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InboundMessagePayloadMediaInner { + public static final String JSON_PROPERTY_URL = "url"; + private String url; + + public static final String JSON_PROPERTY_CONTENT_TYPE = "content_type"; + private String contentType; + + public static final String JSON_PROPERTY_SIZE = "size"; + private Integer size; + + public static final String JSON_PROPERTY_HASH_SHA256 = "hash_sha256"; + private String hashSha256; + + public InboundMessagePayloadMediaInner() { + } + + public InboundMessagePayloadMediaInner url(String url) { + this.url = url; + return this; + } + + /** + * The url of the media requested to be sent. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The url of the media requested to be sent.") + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUrl() { + return url; + } + + + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + + + public InboundMessagePayloadMediaInner contentType(String contentType) { + this.contentType = contentType; + return this; + } + + /** + * The MIME type of the requested media. + * @return contentType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The MIME type of the requested media.") + @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getContentType() { + return contentType; + } + + + @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContentType(String contentType) { + this.contentType = contentType; + } + + + public InboundMessagePayloadMediaInner size(Integer size) { + this.size = size; + return this; + } + + /** + * The size of the requested media. + * @return size + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The size of the requested media.") + @JsonProperty(JSON_PROPERTY_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getSize() { + return size; + } + + + @JsonProperty(JSON_PROPERTY_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSize(Integer size) { + this.size = size; + } + + + public InboundMessagePayloadMediaInner hashSha256(String hashSha256) { + this.hashSha256 = hashSha256; + return this; + } + + /** + * The SHA256 hash of the requested media. + * @return hashSha256 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The SHA256 hash of the requested media.") + @JsonProperty(JSON_PROPERTY_HASH_SHA256) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getHashSha256() { + return hashSha256; + } + + + @JsonProperty(JSON_PROPERTY_HASH_SHA256) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHashSha256(String hashSha256) { + this.hashSha256 = hashSha256; + } + + + /** + * Return true if this InboundMessagePayload_media_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InboundMessagePayloadMediaInner inboundMessagePayloadMediaInner = (InboundMessagePayloadMediaInner) o; + return Objects.equals(this.url, inboundMessagePayloadMediaInner.url) && + Objects.equals(this.contentType, inboundMessagePayloadMediaInner.contentType) && + Objects.equals(this.size, inboundMessagePayloadMediaInner.size) && + Objects.equals(this.hashSha256, inboundMessagePayloadMediaInner.hashSha256); + } + + @Override + public int hashCode() { + return Objects.hash(url, contentType, size, hashSha256); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InboundMessagePayloadMediaInner {\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append(" hashSha256: ").append(toIndentedString(hashSha256)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadToInner.java b/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadToInner.java new file mode 100644 index 00000000..9504b331 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InboundMessagePayloadToInner.java @@ -0,0 +1,298 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InboundMessagePayloadToInner + */ +@JsonPropertyOrder({ + InboundMessagePayloadToInner.JSON_PROPERTY_PHONE_NUMBER, + InboundMessagePayloadToInner.JSON_PROPERTY_STATUS, + InboundMessagePayloadToInner.JSON_PROPERTY_CARRIER, + InboundMessagePayloadToInner.JSON_PROPERTY_LINE_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InboundMessagePayloadToInner { + public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number"; + private String phoneNumber; + + /** + * Gets or Sets status + */ + public enum StatusEnum { + QUEUED("queued"), + + SENDING("sending"), + + SENT("sent"), + + DELIVERED("delivered"), + + SENDING_FAILED("sending_failed"), + + DELIVERY_FAILED("delivery_failed"), + + DELIVERY_UNCONFIRMED("delivery_unconfirmed"), + + WEBHOOK_DELIVERED("webhook_delivered"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public static final String JSON_PROPERTY_CARRIER = "carrier"; + private String carrier; + + /** + * The line-type of the receiver. + */ + public enum LineTypeEnum { + WIRELINE("Wireline"), + + WIRELESS("Wireless"), + + VOWIFI("VoWiFi"), + + VOIP("VoIP"), + + PRE_PAID_WIRELESS("Pre-Paid Wireless"), + + EMPTY(""); + + private String value; + + LineTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LineTypeEnum fromValue(String value) { + for (LineTypeEnum b : LineTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_LINE_TYPE = "line_type"; + private LineTypeEnum lineType; + + public InboundMessagePayloadToInner() { + } + + public InboundMessagePayloadToInner phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Receiving address (+E.164 formatted phone number or short code). + * @return phoneNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Receiving address (+E.164 formatted phone number or short code).") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPhoneNumber() { + return phoneNumber; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + public InboundMessagePayloadToInner status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public InboundMessagePayloadToInner carrier(String carrier) { + this.carrier = carrier; + return this; + } + + /** + * The carrier of the receiver. + * @return carrier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The carrier of the receiver.") + @JsonProperty(JSON_PROPERTY_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCarrier() { + return carrier; + } + + + @JsonProperty(JSON_PROPERTY_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCarrier(String carrier) { + this.carrier = carrier; + } + + + public InboundMessagePayloadToInner lineType(LineTypeEnum lineType) { + this.lineType = lineType; + return this; + } + + /** + * The line-type of the receiver. + * @return lineType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The line-type of the receiver.") + @JsonProperty(JSON_PROPERTY_LINE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LineTypeEnum getLineType() { + return lineType; + } + + + @JsonProperty(JSON_PROPERTY_LINE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLineType(LineTypeEnum lineType) { + this.lineType = lineType; + } + + + /** + * Return true if this InboundMessagePayload_to_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InboundMessagePayloadToInner inboundMessagePayloadToInner = (InboundMessagePayloadToInner) o; + return Objects.equals(this.phoneNumber, inboundMessagePayloadToInner.phoneNumber) && + Objects.equals(this.status, inboundMessagePayloadToInner.status) && + Objects.equals(this.carrier, inboundMessagePayloadToInner.carrier) && + Objects.equals(this.lineType, inboundMessagePayloadToInner.lineType); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumber, status, carrier, lineType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InboundMessagePayloadToInner {\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); + sb.append(" lineType: ").append(toIndentedString(lineType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Interactive.java b/src/main/java/com/telnyx/sdk/model/Interactive.java new file mode 100644 index 00000000..d29ef551 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Interactive.java @@ -0,0 +1,245 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Action; +import com.telnyx.sdk.model.Body; +import com.telnyx.sdk.model.Footer; +import com.telnyx.sdk.model.Header; +import com.telnyx.sdk.model.InteractiveType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Interactive + */ +@JsonPropertyOrder({ + Interactive.JSON_PROPERTY_TYPE, + Interactive.JSON_PROPERTY_HEADER, + Interactive.JSON_PROPERTY_BODY, + Interactive.JSON_PROPERTY_FOOTER, + Interactive.JSON_PROPERTY_ACTION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Interactive { + public static final String JSON_PROPERTY_TYPE = "type"; + private InteractiveType type; + + public static final String JSON_PROPERTY_HEADER = "header"; + private Header header; + + public static final String JSON_PROPERTY_BODY = "body"; + private Body body; + + public static final String JSON_PROPERTY_FOOTER = "footer"; + private Footer footer; + + public static final String JSON_PROPERTY_ACTION = "action"; + private Action action; + + public Interactive() { + } + + public Interactive type(InteractiveType type) { + this.type = type; + return this; + } + + /** + * The type of interactive message you want to send. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "The type of interactive message you want to send.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public InteractiveType getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(InteractiveType type) { + this.type = type; + } + + + public Interactive header(Header header) { + this.header = header; + return this; + } + + /** + * Get header + * @return header + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_HEADER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Header getHeader() { + return header; + } + + + @JsonProperty(JSON_PROPERTY_HEADER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHeader(Header header) { + this.header = header; + } + + + public Interactive body(Body body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Body getBody() { + return body; + } + + + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBody(Body body) { + this.body = body; + } + + + public Interactive footer(Footer footer) { + this.footer = footer; + return this; + } + + /** + * Get footer + * @return footer + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FOOTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Footer getFooter() { + return footer; + } + + + @JsonProperty(JSON_PROPERTY_FOOTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFooter(Footer footer) { + this.footer = footer; + } + + + public Interactive action(Action action) { + this.action = action; + return this; + } + + /** + * Get action + * @return action + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_ACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Action getAction() { + return action; + } + + + @JsonProperty(JSON_PROPERTY_ACTION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAction(Action action) { + this.action = action; + } + + + /** + * Return true if this Interactive object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Interactive interactive = (Interactive) o; + return Objects.equals(this.type, interactive.type) && + Objects.equals(this.header, interactive.header) && + Objects.equals(this.body, interactive.body) && + Objects.equals(this.footer, interactive.footer) && + Objects.equals(this.action, interactive.action); + } + + @Override + public int hashCode() { + return Objects.hash(type, header, body, footer, action); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Interactive {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" header: ").append(toIndentedString(header)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append(" footer: ").append(toIndentedString(footer)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveAction.java b/src/main/java/com/telnyx/sdk/model/InteractiveAction.java new file mode 100644 index 00000000..9084a538 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveAction.java @@ -0,0 +1,260 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveButton; +import com.telnyx.sdk.model.InteractiveSection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveAction + */ +@JsonPropertyOrder({ + InteractiveAction.JSON_PROPERTY_BUTTON, + InteractiveAction.JSON_PROPERTY_BUTTONS, + InteractiveAction.JSON_PROPERTY_SECTIONS, + InteractiveAction.JSON_PROPERTY_CATALOG_ID, + InteractiveAction.JSON_PROPERTY_PRODUCT_RETAILER_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveAction { + public static final String JSON_PROPERTY_BUTTON = "button"; + private String button; + + public static final String JSON_PROPERTY_BUTTONS = "buttons"; + private List buttons = null; + + public static final String JSON_PROPERTY_SECTIONS = "sections"; + private List sections = null; + + public static final String JSON_PROPERTY_CATALOG_ID = "catalog_id"; + private String catalogId; + + public static final String JSON_PROPERTY_PRODUCT_RETAILER_ID = "product_retailer_id"; + private String productRetailerId; + + public InteractiveAction() { + } + + public InteractiveAction button(String button) { + this.button = button; + return this; + } + + /** + * Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Required for List Messages. + * @return button + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Button content. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. Required for List Messages.") + @JsonProperty(JSON_PROPERTY_BUTTON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getButton() { + return button; + } + + + @JsonProperty(JSON_PROPERTY_BUTTON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setButton(String button) { + this.button = button; + } + + + public InteractiveAction buttons(List buttons) { + this.buttons = buttons; + return this; + } + + public InteractiveAction addButtonsItem(InteractiveButton buttonsItem) { + if (this.buttons == null) { + this.buttons = new ArrayList<>(); + } + this.buttons.add(buttonsItem); + return this; + } + + /** + * A list of buttons. Required for Reply Button Messages. + * @return buttons + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of buttons. Required for Reply Button Messages.") + @JsonProperty(JSON_PROPERTY_BUTTONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getButtons() { + return buttons; + } + + + @JsonProperty(JSON_PROPERTY_BUTTONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setButtons(List buttons) { + this.buttons = buttons; + } + + + public InteractiveAction sections(List sections) { + this.sections = sections; + return this; + } + + public InteractiveAction addSectionsItem(InteractiveSection sectionsItem) { + if (this.sections == null) { + this.sections = new ArrayList<>(); + } + this.sections.add(sectionsItem); + return this; + } + + /** + * Array of section objects. Required for List Messages and Multi-Product Messages. + * @return sections + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Array of section objects. Required for List Messages and Multi-Product Messages.") + @JsonProperty(JSON_PROPERTY_SECTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getSections() { + return sections; + } + + + @JsonProperty(JSON_PROPERTY_SECTIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSections(List sections) { + this.sections = sections; + } + + + public InteractiveAction catalogId(String catalogId) { + this.catalogId = catalogId; + return this; + } + + /** + * Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. This ID can be retrieved via Commerce Manager. Required for Single Product Messages and Multi-Product Messages. + * @return catalogId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Unique identifier of the Facebook catalog linked to your WhatsApp Business Account. This ID can be retrieved via Commerce Manager. Required for Single Product Messages and Multi-Product Messages.") + @JsonProperty(JSON_PROPERTY_CATALOG_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCatalogId() { + return catalogId; + } + + + @JsonProperty(JSON_PROPERTY_CATALOG_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCatalogId(String catalogId) { + this.catalogId = catalogId; + } + + + public InteractiveAction productRetailerId(String productRetailerId) { + this.productRetailerId = productRetailerId; + return this; + } + + /** + * Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name. + * @return productRetailerId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name.") + @JsonProperty(JSON_PROPERTY_PRODUCT_RETAILER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getProductRetailerId() { + return productRetailerId; + } + + + @JsonProperty(JSON_PROPERTY_PRODUCT_RETAILER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProductRetailerId(String productRetailerId) { + this.productRetailerId = productRetailerId; + } + + + /** + * Return true if this InteractiveAction object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveAction interactiveAction = (InteractiveAction) o; + return Objects.equals(this.button, interactiveAction.button) && + Objects.equals(this.buttons, interactiveAction.buttons) && + Objects.equals(this.sections, interactiveAction.sections) && + Objects.equals(this.catalogId, interactiveAction.catalogId) && + Objects.equals(this.productRetailerId, interactiveAction.productRetailerId); + } + + @Override + public int hashCode() { + return Objects.hash(button, buttons, sections, catalogId, productRetailerId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveAction {\n"); + sb.append(" button: ").append(toIndentedString(button)).append("\n"); + sb.append(" buttons: ").append(toIndentedString(buttons)).append("\n"); + sb.append(" sections: ").append(toIndentedString(sections)).append("\n"); + sb.append(" catalogId: ").append(toIndentedString(catalogId)).append("\n"); + sb.append(" productRetailerId: ").append(toIndentedString(productRetailerId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveBody.java b/src/main/java/com/telnyx/sdk/model/InteractiveBody.java new file mode 100644 index 00000000..082e0adc --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveBody.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveBody + */ +@JsonPropertyOrder({ + InteractiveBody.JSON_PROPERTY_TEXT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveBody { + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public InteractiveBody() { + } + + public InteractiveBody text(String text) { + this.text = text; + return this; + } + + /** + * The body content of the message. Emojis and markdown are supported. Links are supported. + * @return text + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The body content of the message. Emojis and markdown are supported. Links are supported.") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setText(String text) { + this.text = text; + } + + + /** + * Return true if this InteractiveBody object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveBody interactiveBody = (InteractiveBody) o; + return Objects.equals(this.text, interactiveBody.text); + } + + @Override + public int hashCode() { + return Objects.hash(text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveBody {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveButton.java b/src/main/java/com/telnyx/sdk/model/InteractiveButton.java new file mode 100644 index 00000000..b95a5b01 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveButton.java @@ -0,0 +1,169 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveButtonType; +import com.telnyx.sdk.model.Reply; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveButton + */ +@JsonPropertyOrder({ + InteractiveButton.JSON_PROPERTY_TYPE, + InteractiveButton.JSON_PROPERTY_REPLY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveButton { + public static final String JSON_PROPERTY_TYPE = "type"; + private JsonNullable type = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_REPLY = "reply"; + private Reply reply; + + public InteractiveButton() { + } + + public InteractiveButton type(InteractiveButtonType type) { + this.type = JsonNullable.of(type); + return this; + } + + /** + * The only supported type is reply (for Reply Button Messages). + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The only supported type is reply (for Reply Button Messages).") + @JsonIgnore + + public InteractiveButtonType getType() { + return type.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getType_JsonNullable() { + return type; + } + + @JsonProperty(JSON_PROPERTY_TYPE) + public void setType_JsonNullable(JsonNullable type) { + this.type = type; + } + + public void setType(InteractiveButtonType type) { + this.type = JsonNullable.of(type); + } + + + public InteractiveButton reply(Reply reply) { + this.reply = reply; + return this; + } + + /** + * Get reply + * @return reply + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_REPLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Reply getReply() { + return reply; + } + + + @JsonProperty(JSON_PROPERTY_REPLY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setReply(Reply reply) { + this.reply = reply; + } + + + /** + * Return true if this InteractiveButton object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveButton interactiveButton = (InteractiveButton) o; + return equalsNullable(this.type, interactiveButton.type) && + Objects.equals(this.reply, interactiveButton.reply); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(hashCodeNullable(type), reply); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveButton {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" reply: ").append(toIndentedString(reply)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveButtonReply.java b/src/main/java/com/telnyx/sdk/model/InteractiveButtonReply.java new file mode 100644 index 00000000..63a1a090 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveButtonReply.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveButtonReply + */ +@JsonPropertyOrder({ + InteractiveButtonReply.JSON_PROPERTY_TITLE, + InteractiveButtonReply.JSON_PROPERTY_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveButtonReply { + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public InteractiveButtonReply() { + } + + public InteractiveButtonReply title(String title) { + this.title = title; + return this; + } + + /** + * Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. + * @return title + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not.") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTitle() { + return title; + } + + + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTitle(String title) { + this.title = title; + } + + + public InteractiveButtonReply id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. You cannot have leading or trailing spaces when setting the ID. + * @return id + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. You cannot have leading or trailing spaces when setting the ID.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + /** + * Return true if this InteractiveButtonReply object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveButtonReply interactiveButtonReply = (InteractiveButtonReply) o; + return Objects.equals(this.title, interactiveButtonReply.title) && + Objects.equals(this.id, interactiveButtonReply.id); + } + + @Override + public int hashCode() { + return Objects.hash(title, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveButtonReply {\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveButtonType.java b/src/main/java/com/telnyx/sdk/model/InteractiveButtonType.java new file mode 100644 index 00000000..c00892e8 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveButtonType.java @@ -0,0 +1,61 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * An enumeration. + */ +public enum InteractiveButtonType { + + REPLY("reply"); + + private String value; + + InteractiveButtonType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InteractiveButtonType fromValue(String value) { + for (InteractiveButtonType b : InteractiveButtonType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveFooter.java b/src/main/java/com/telnyx/sdk/model/InteractiveFooter.java new file mode 100644 index 00000000..e7d7d1f2 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveFooter.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveFooter + */ +@JsonPropertyOrder({ + InteractiveFooter.JSON_PROPERTY_TEXT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveFooter { + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public InteractiveFooter() { + } + + public InteractiveFooter text(String text) { + this.text = text; + return this; + } + + /** + * The footer content. Emojis and markdown are supported. Links are supported. + * @return text + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The footer content. Emojis and markdown are supported. Links are supported.") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setText(String text) { + this.text = text; + } + + + /** + * Return true if this InteractiveFooter object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveFooter interactiveFooter = (InteractiveFooter) o; + return Objects.equals(this.text, interactiveFooter.text); + } + + @Override + public int hashCode() { + return Objects.hash(text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveFooter {\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveHeader.java b/src/main/java/com/telnyx/sdk/model/InteractiveHeader.java new file mode 100644 index 00000000..be5448d8 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveHeader.java @@ -0,0 +1,243 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Document1; +import com.telnyx.sdk.model.Image1; +import com.telnyx.sdk.model.Video1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveHeader + */ +@JsonPropertyOrder({ + InteractiveHeader.JSON_PROPERTY_TYPE, + InteractiveHeader.JSON_PROPERTY_TEXT, + InteractiveHeader.JSON_PROPERTY_VIDEO, + InteractiveHeader.JSON_PROPERTY_IMAGE, + InteractiveHeader.JSON_PROPERTY_DOCUMENT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveHeader { + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public static final String JSON_PROPERTY_VIDEO = "video"; + private Video1 video; + + public static final String JSON_PROPERTY_IMAGE = "image"; + private Image1 image; + + public static final String JSON_PROPERTY_DOCUMENT = "document"; + private Document1 document; + + public InteractiveHeader() { + } + + public InteractiveHeader type(String type) { + this.type = type; + return this; + } + + /** + * The header type you would like to use. + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The header type you would like to use.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(String type) { + this.type = type; + } + + + public InteractiveHeader text(String text) { + this.text = text; + return this; + } + + /** + * Text for the header. Formatting allows emojis, but not markdown. + * @return text + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Text for the header. Formatting allows emojis, but not markdown.") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setText(String text) { + this.text = text; + } + + + public InteractiveHeader video(Video1 video) { + this.video = video; + return this; + } + + /** + * Get video + * @return video + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_VIDEO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Video1 getVideo() { + return video; + } + + + @JsonProperty(JSON_PROPERTY_VIDEO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVideo(Video1 video) { + this.video = video; + } + + + public InteractiveHeader image(Image1 image) { + this.image = image; + return this; + } + + /** + * Get image + * @return image + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IMAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Image1 getImage() { + return image; + } + + + @JsonProperty(JSON_PROPERTY_IMAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setImage(Image1 image) { + this.image = image; + } + + + public InteractiveHeader document(Document1 document) { + this.document = document; + return this; + } + + /** + * Get document + * @return document + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOCUMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Document1 getDocument() { + return document; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDocument(Document1 document) { + this.document = document; + } + + + /** + * Return true if this InteractiveHeader object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveHeader interactiveHeader = (InteractiveHeader) o; + return Objects.equals(this.type, interactiveHeader.type) && + Objects.equals(this.text, interactiveHeader.text) && + Objects.equals(this.video, interactiveHeader.video) && + Objects.equals(this.image, interactiveHeader.image) && + Objects.equals(this.document, interactiveHeader.document); + } + + @Override + public int hashCode() { + return Objects.hash(type, text, video, image, document); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveHeader {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" video: ").append(toIndentedString(video)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); + sb.append(" document: ").append(toIndentedString(document)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveProduct.java b/src/main/java/com/telnyx/sdk/model/InteractiveProduct.java new file mode 100644 index 00000000..10bab0ef --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveProduct.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveProduct + */ +@JsonPropertyOrder({ + InteractiveProduct.JSON_PROPERTY_PRODUCT_RETAILER_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveProduct { + public static final String JSON_PROPERTY_PRODUCT_RETAILER_ID = "product_retailer_id"; + private String productRetailerId; + + public InteractiveProduct() { + } + + public InteractiveProduct productRetailerId(String productRetailerId) { + this.productRetailerId = productRetailerId; + return this; + } + + /** + * Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name. + * @return productRetailerId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Unique identifier of the product in a catalog. To get this ID, go to Commerce Manager, select your Facebook Business account, and you will see a list of shops connected to your account. Click the shop you want to use. On the left-side panel, click Catalog > Items, and find the item you want to mention. The ID for that item is displayed under the item's name.") + @JsonProperty(JSON_PROPERTY_PRODUCT_RETAILER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getProductRetailerId() { + return productRetailerId; + } + + + @JsonProperty(JSON_PROPERTY_PRODUCT_RETAILER_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setProductRetailerId(String productRetailerId) { + this.productRetailerId = productRetailerId; + } + + + /** + * Return true if this InteractiveProduct object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveProduct interactiveProduct = (InteractiveProduct) o; + return Objects.equals(this.productRetailerId, interactiveProduct.productRetailerId); + } + + @Override + public int hashCode() { + return Objects.hash(productRetailerId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveProduct {\n"); + sb.append(" productRetailerId: ").append(toIndentedString(productRetailerId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveSection.java b/src/main/java/com/telnyx/sdk/model/InteractiveSection.java new file mode 100644 index 00000000..f03464b0 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveSection.java @@ -0,0 +1,196 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveProduct; +import com.telnyx.sdk.model.InteractiveSectionRow; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveSection + */ +@JsonPropertyOrder({ + InteractiveSection.JSON_PROPERTY_TITLE, + InteractiveSection.JSON_PROPERTY_ROWS, + InteractiveSection.JSON_PROPERTY_PRODUCT_ITEMS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveSection { + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_ROWS = "rows"; + private List rows = null; + + public static final String JSON_PROPERTY_PRODUCT_ITEMS = "product_items"; + private List productItems = null; + + public InteractiveSection() { + } + + public InteractiveSection title(String title) { + this.title = title; + return this; + } + + /** + * Title of the section. Required if the message has more than one section. + * @return title + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Title of the section. Required if the message has more than one section.") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTitle() { + return title; + } + + + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTitle(String title) { + this.title = title; + } + + + public InteractiveSection rows(List rows) { + this.rows = rows; + return this; + } + + public InteractiveSection addRowsItem(InteractiveSectionRow rowsItem) { + if (this.rows == null) { + this.rows = new ArrayList<>(); + } + this.rows.add(rowsItem); + return this; + } + + /** + * Contains a list of rows. Limited to 10 rows across all sections. Required for List Messages. + * @return rows + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Contains a list of rows. Limited to 10 rows across all sections. Required for List Messages.") + @JsonProperty(JSON_PROPERTY_ROWS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRows() { + return rows; + } + + + @JsonProperty(JSON_PROPERTY_ROWS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRows(List rows) { + this.rows = rows; + } + + + public InteractiveSection productItems(List productItems) { + this.productItems = productItems; + return this; + } + + public InteractiveSection addProductItemsItem(InteractiveProduct productItemsItem) { + if (this.productItems == null) { + this.productItems = new ArrayList<>(); + } + this.productItems.add(productItemsItem); + return this; + } + + /** + * Array of product objects. There is a minimum of 1 product per section. There is a maximum of 30 products across all sections. + * @return productItems + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Array of product objects. There is a minimum of 1 product per section. There is a maximum of 30 products across all sections.") + @JsonProperty(JSON_PROPERTY_PRODUCT_ITEMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getProductItems() { + return productItems; + } + + + @JsonProperty(JSON_PROPERTY_PRODUCT_ITEMS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProductItems(List productItems) { + this.productItems = productItems; + } + + + /** + * Return true if this InteractiveSection object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveSection interactiveSection = (InteractiveSection) o; + return Objects.equals(this.title, interactiveSection.title) && + Objects.equals(this.rows, interactiveSection.rows) && + Objects.equals(this.productItems, interactiveSection.productItems); + } + + @Override + public int hashCode() { + return Objects.hash(title, rows, productItems); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveSection {\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" rows: ").append(toIndentedString(rows)).append("\n"); + sb.append(" productItems: ").append(toIndentedString(productItems)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveSectionRow.java b/src/main/java/com/telnyx/sdk/model/InteractiveSectionRow.java new file mode 100644 index 00000000..a8239def --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveSectionRow.java @@ -0,0 +1,176 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * InteractiveSectionRow + */ +@JsonPropertyOrder({ + InteractiveSectionRow.JSON_PROPERTY_ID, + InteractiveSectionRow.JSON_PROPERTY_TITLE, + InteractiveSectionRow.JSON_PROPERTY_DESCRIPTION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class InteractiveSectionRow { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public InteractiveSectionRow() { + } + + public InteractiveSectionRow id(String id) { + this.id = id; + return this; + } + + /** + * Maximum length: 200 characters + * @return id + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Maximum length: 200 characters") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + public InteractiveSectionRow title(String title) { + this.title = title; + return this; + } + + /** + * Maximum length: 24 characters + * @return title + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Maximum length: 24 characters") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTitle() { + return title; + } + + + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTitle(String title) { + this.title = title; + } + + + public InteractiveSectionRow description(String description) { + this.description = description; + return this; + } + + /** + * Maximum length: 72 characters + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Maximum length: 72 characters") + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + /** + * Return true if this InteractiveSectionRow object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InteractiveSectionRow interactiveSectionRow = (InteractiveSectionRow) o; + return Objects.equals(this.id, interactiveSectionRow.id) && + Objects.equals(this.title, interactiveSectionRow.title) && + Objects.equals(this.description, interactiveSectionRow.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, title, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InteractiveSectionRow {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/InteractiveType.java b/src/main/java/com/telnyx/sdk/model/InteractiveType.java new file mode 100644 index 00000000..f9fcdfb6 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InteractiveType.java @@ -0,0 +1,67 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * An enumeration. + */ +public enum InteractiveType { + + LIST("list"), + + BUTTON("button"), + + PRODUCT("product"), + + PRODUCT_LIST("product_list"); + + private String value; + + InteractiveType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InteractiveType fromValue(String value) { + for (InteractiveType b : InteractiveType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/telnyx/sdk/model/InterfaceStatus.java b/src/main/java/com/telnyx/sdk/model/InterfaceStatus.java new file mode 100644 index 00000000..ac97ace8 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/InterfaceStatus.java @@ -0,0 +1,67 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * The current status of the interface deployment. + */ +public enum InterfaceStatus { + + CREATED("created"), + + PROVISIONING("provisioning"), + + PROVISIONED("provisioned"), + + DELETING("deleting"); + + private String value; + + InterfaceStatus(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static InterfaceStatus fromValue(String value) { + for (InterfaceStatus b : InterfaceStatus.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/telnyx/sdk/model/IpItem.java b/src/main/java/com/telnyx/sdk/model/IpItem.java new file mode 100644 index 00000000..c61d92bb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/IpItem.java @@ -0,0 +1,209 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * IpItem + */ +@JsonPropertyOrder({ + IpItem.JSON_PROPERTY_IP_ADDRESS, + IpItem.JSON_PROPERTY_FQDN, + IpItem.JSON_PROPERTY_CREATED_AT, + IpItem.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class IpItem { + public static final String JSON_PROPERTY_IP_ADDRESS = "ip_address"; + private String ipAddress; + + public static final String JSON_PROPERTY_FQDN = "fqdn"; + private String fqdn; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private OffsetDateTime createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private OffsetDateTime updatedAt; + + public IpItem() { + } + + public IpItem ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * Get ipAddress + * @return ipAddress + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getIpAddress() { + return ipAddress; + } + + + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + + public IpItem fqdn(String fqdn) { + this.fqdn = fqdn; + return this; + } + + /** + * Get fqdn + * @return fqdn + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_FQDN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFqdn() { + return fqdn; + } + + + @JsonProperty(JSON_PROPERTY_FQDN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFqdn(String fqdn) { + this.fqdn = fqdn; + } + + + public IpItem createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public IpItem updatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + + /** + * Return true if this IpItem object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpItem ipItem = (IpItem) o; + return Objects.equals(this.ipAddress, ipItem.ipAddress) && + Objects.equals(this.fqdn, ipItem.fqdn) && + Objects.equals(this.createdAt, ipItem.createdAt) && + Objects.equals(this.updatedAt, ipItem.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(ipAddress, fqdn, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpItem {\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" fqdn: ").append(toIndentedString(fqdn)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListAllowedFocWindows200Response.java b/src/main/java/com/telnyx/sdk/model/ListAllowedFocWindows200Response.java new file mode 100644 index 00000000..d9c14b98 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListAllowedFocWindows200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrdersAllowedFocWindow; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListAllowedFocWindows200Response + */ +@JsonPropertyOrder({ + ListAllowedFocWindows200Response.JSON_PROPERTY_DATA, + ListAllowedFocWindows200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListAllowedFocWindows200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListAllowedFocWindows200Response() { + } + + public ListAllowedFocWindows200Response data(List data) { + this.data = data; + return this; + } + + public ListAllowedFocWindows200Response addDataItem(PortingOrdersAllowedFocWindow dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListAllowedFocWindows200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listAllowedFocWindows_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListAllowedFocWindows200Response listAllowedFocWindows200Response = (ListAllowedFocWindows200Response) o; + return Objects.equals(this.data, listAllowedFocWindows200Response.data) && + Objects.equals(this.meta, listAllowedFocWindows200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListAllowedFocWindows200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListBillingGroups200Response.java b/src/main/java/com/telnyx/sdk/model/ListBillingGroups200Response.java new file mode 100644 index 00000000..ba69bb2d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListBillingGroups200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BillingGroup; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListBillingGroups200Response + */ +@JsonPropertyOrder({ + ListBillingGroups200Response.JSON_PROPERTY_DATA, + ListBillingGroups200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListBillingGroups200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListBillingGroups200Response() { + } + + public ListBillingGroups200Response data(List data) { + this.data = data; + return this; + } + + public ListBillingGroups200Response addDataItem(BillingGroup dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListBillingGroups200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listBillingGroups_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListBillingGroups200Response listBillingGroups200Response = (ListBillingGroups200Response) o; + return Objects.equals(this.data, listBillingGroups200Response.data) && + Objects.equals(this.meta, listBillingGroups200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBillingGroups200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListBulkSIMCardActions200Response.java b/src/main/java/com/telnyx/sdk/model/ListBulkSIMCardActions200Response.java new file mode 100644 index 00000000..ae9e5cc5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListBulkSIMCardActions200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BulkSIMCardActionDetailed; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListBulkSIMCardActions200Response + */ +@JsonPropertyOrder({ + ListBulkSIMCardActions200Response.JSON_PROPERTY_DATA, + ListBulkSIMCardActions200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListBulkSIMCardActions200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListBulkSIMCardActions200Response() { + } + + public ListBulkSIMCardActions200Response data(List data) { + this.data = data; + return this; + } + + public ListBulkSIMCardActions200Response addDataItem(BulkSIMCardActionDetailed dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListBulkSIMCardActions200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListBulkSIMCardActions_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListBulkSIMCardActions200Response listBulkSIMCardActions200Response = (ListBulkSIMCardActions200Response) o; + return Objects.equals(this.data, listBulkSIMCardActions200Response.data) && + Objects.equals(this.meta, listBulkSIMCardActions200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListBulkSIMCardActions200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListComments200Response.java b/src/main/java/com/telnyx/sdk/model/ListComments200Response.java new file mode 100644 index 00000000..6535ec52 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListComments200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Comment; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListComments200Response + */ +@JsonPropertyOrder({ + ListComments200Response.JSON_PROPERTY_DATA, + ListComments200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListComments200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListComments200Response() { + } + + public ListComments200Response data(List data) { + this.data = data; + return this; + } + + public ListComments200Response addDataItem(Comment dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListComments200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listComments_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListComments200Response listComments200Response = (ListComments200Response) o; + return Objects.equals(this.data, listComments200Response.data) && + Objects.equals(this.meta, listComments200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListComments200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests200Response.java b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests200Response.java new file mode 100644 index 00000000..d3c123dc --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerServiceRequest; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListCustomerServiceRequests200Response + */ +@JsonPropertyOrder({ + ListCustomerServiceRequests200Response.JSON_PROPERTY_DATA, + ListCustomerServiceRequests200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListCustomerServiceRequests200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListCustomerServiceRequests200Response() { + } + + public ListCustomerServiceRequests200Response data(List data) { + this.data = data; + return this; + } + + public ListCustomerServiceRequests200Response addDataItem(CustomerServiceRequest dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListCustomerServiceRequests200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listCustomerServiceRequests_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListCustomerServiceRequests200Response listCustomerServiceRequests200Response = (ListCustomerServiceRequests200Response) o; + return Objects.equals(this.data, listCustomerServiceRequests200Response.data) && + Objects.equals(this.meta, listCustomerServiceRequests200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCustomerServiceRequests200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests401Response.java b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests401Response.java new file mode 100644 index 00000000..32b494dd --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests401Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnauthorizedError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListCustomerServiceRequests401Response + */ +@JsonPropertyOrder({ + ListCustomerServiceRequests401Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListCustomerServiceRequests401Response { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public ListCustomerServiceRequests401Response() { + } + + public ListCustomerServiceRequests401Response errors(List errors) { + this.errors = errors; + return this; + } + + public ListCustomerServiceRequests401Response addErrorsItem(UnauthorizedError errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this listCustomerServiceRequests_401_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListCustomerServiceRequests401Response listCustomerServiceRequests401Response = (ListCustomerServiceRequests401Response) o; + return Objects.equals(this.errors, listCustomerServiceRequests401Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCustomerServiceRequests401Response {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests403Response.java b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests403Response.java new file mode 100644 index 00000000..77f73140 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests403Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ForbiddenError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListCustomerServiceRequests403Response + */ +@JsonPropertyOrder({ + ListCustomerServiceRequests403Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListCustomerServiceRequests403Response { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public ListCustomerServiceRequests403Response() { + } + + public ListCustomerServiceRequests403Response errors(List errors) { + this.errors = errors; + return this; + } + + public ListCustomerServiceRequests403Response addErrorsItem(ForbiddenError errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this listCustomerServiceRequests_403_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListCustomerServiceRequests403Response listCustomerServiceRequests403Response = (ListCustomerServiceRequests403Response) o; + return Objects.equals(this.errors, listCustomerServiceRequests403Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCustomerServiceRequests403Response {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests422Response.java b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests422Response.java new file mode 100644 index 00000000..ed9884cc --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests422Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnprocessableEntityError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListCustomerServiceRequests422Response + */ +@JsonPropertyOrder({ + ListCustomerServiceRequests422Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListCustomerServiceRequests422Response { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public ListCustomerServiceRequests422Response() { + } + + public ListCustomerServiceRequests422Response errors(List errors) { + this.errors = errors; + return this; + } + + public ListCustomerServiceRequests422Response addErrorsItem(UnprocessableEntityError errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this listCustomerServiceRequests_422_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListCustomerServiceRequests422Response listCustomerServiceRequests422Response = (ListCustomerServiceRequests422Response) o; + return Objects.equals(this.errors, listCustomerServiceRequests422Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCustomerServiceRequests422Response {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests500Response.java b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests500Response.java new file mode 100644 index 00000000..a7a68978 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListCustomerServiceRequests500Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnexpectedError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListCustomerServiceRequests500Response + */ +@JsonPropertyOrder({ + ListCustomerServiceRequests500Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListCustomerServiceRequests500Response { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public ListCustomerServiceRequests500Response() { + } + + public ListCustomerServiceRequests500Response errors(List errors) { + this.errors = errors; + return this; + } + + public ListCustomerServiceRequests500Response addErrorsItem(UnexpectedError errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this listCustomerServiceRequests_500_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListCustomerServiceRequests500Response listCustomerServiceRequests500Response = (ListCustomerServiceRequests500Response) o; + return Objects.equals(this.errors, listCustomerServiceRequests500Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListCustomerServiceRequests500Response {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListDocumentLinks200Response.java b/src/main/java/com/telnyx/sdk/model/ListDocumentLinks200Response.java new file mode 100644 index 00000000..73cfbdad --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListDocumentLinks200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocServiceDocumentLink; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListDocumentLinks200Response + */ +@JsonPropertyOrder({ + ListDocumentLinks200Response.JSON_PROPERTY_DATA, + ListDocumentLinks200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListDocumentLinks200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListDocumentLinks200Response() { + } + + public ListDocumentLinks200Response data(List data) { + this.data = data; + return this; + } + + public ListDocumentLinks200Response addDataItem(DocServiceDocumentLink dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListDocumentLinks200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listDocumentLinks_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListDocumentLinks200Response listDocumentLinks200Response = (ListDocumentLinks200Response) o; + return Objects.equals(this.data, listDocumentLinks200Response.data) && + Objects.equals(this.meta, listDocumentLinks200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDocumentLinks200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListDocuments200Response.java b/src/main/java/com/telnyx/sdk/model/ListDocuments200Response.java new file mode 100644 index 00000000..e3ed0e47 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListDocuments200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocServiceDocument; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListDocuments200Response + */ +@JsonPropertyOrder({ + ListDocuments200Response.JSON_PROPERTY_DATA, + ListDocuments200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListDocuments200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListDocuments200Response() { + } + + public ListDocuments200Response data(List data) { + this.data = data; + return this; + } + + public ListDocuments200Response addDataItem(DocServiceDocument dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListDocuments200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listDocuments_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListDocuments200Response listDocuments200Response = (ListDocuments200Response) o; + return Objects.equals(this.data, listDocuments200Response.data) && + Objects.equals(this.meta, listDocuments200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDocuments200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200Response.java b/src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200Response.java new file mode 100644 index 00000000..8f47e0ea --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyAddress; +import com.telnyx.sdk.model.Metadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListDyanmicEmergencyAddresses200Response + */ +@JsonPropertyOrder({ + ListDyanmicEmergencyAddresses200Response.JSON_PROPERTY_DATA, + ListDyanmicEmergencyAddresses200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListDyanmicEmergencyAddresses200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private Metadata meta; + + public ListDyanmicEmergencyAddresses200Response() { + } + + public ListDyanmicEmergencyAddresses200Response data(List data) { + this.data = data; + return this; + } + + public ListDyanmicEmergencyAddresses200Response addDataItem(DynamicEmergencyAddress dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListDyanmicEmergencyAddresses200Response meta(Metadata meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Metadata getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(Metadata meta) { + this.meta = meta; + } + + + /** + * Return true if this listDyanmicEmergencyAddresses_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListDyanmicEmergencyAddresses200Response listDyanmicEmergencyAddresses200Response = (ListDyanmicEmergencyAddresses200Response) o; + return Objects.equals(this.data, listDyanmicEmergencyAddresses200Response.data) && + Objects.equals(this.meta, listDyanmicEmergencyAddresses200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDyanmicEmergencyAddresses200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200Response.java b/src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200Response.java new file mode 100644 index 00000000..b1891917 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyEndpoint; +import com.telnyx.sdk.model.Metadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListDyanmicEmergencyEndpoints200Response + */ +@JsonPropertyOrder({ + ListDyanmicEmergencyEndpoints200Response.JSON_PROPERTY_DATA, + ListDyanmicEmergencyEndpoints200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListDyanmicEmergencyEndpoints200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private Metadata meta; + + public ListDyanmicEmergencyEndpoints200Response() { + } + + public ListDyanmicEmergencyEndpoints200Response data(List data) { + this.data = data; + return this; + } + + public ListDyanmicEmergencyEndpoints200Response addDataItem(DynamicEmergencyEndpoint dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListDyanmicEmergencyEndpoints200Response meta(Metadata meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Metadata getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(Metadata meta) { + this.meta = meta; + } + + + /** + * Return true if this listDyanmicEmergencyEndpoints_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListDyanmicEmergencyEndpoints200Response listDyanmicEmergencyEndpoints200Response = (ListDyanmicEmergencyEndpoints200Response) o; + return Objects.equals(this.data, listDyanmicEmergencyEndpoints200Response.data) && + Objects.equals(this.meta, listDyanmicEmergencyEndpoints200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListDyanmicEmergencyEndpoints200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListManagedAccounts200Response.java b/src/main/java/com/telnyx/sdk/model/ListManagedAccounts200Response.java new file mode 100644 index 00000000..f1ce236c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListManagedAccounts200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ManagedAccount; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListManagedAccounts200Response + */ +@JsonPropertyOrder({ + ListManagedAccounts200Response.JSON_PROPERTY_DATA, + ListManagedAccounts200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListManagedAccounts200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListManagedAccounts200Response() { + } + + public ListManagedAccounts200Response data(List data) { + this.data = data; + return this; + } + + public ListManagedAccounts200Response addDataItem(ManagedAccount dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListManagedAccounts200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listManagedAccounts_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListManagedAccounts200Response listManagedAccounts200Response = (ListManagedAccounts200Response) o; + return Objects.equals(this.data, listManagedAccounts200Response.data) && + Objects.equals(this.meta, listManagedAccounts200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListManagedAccounts200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListNotificationChannels200Response.java b/src/main/java/com/telnyx/sdk/model/ListNotificationChannels200Response.java new file mode 100644 index 00000000..b76448be --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListNotificationChannels200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationChannel; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListNotificationChannels200Response + */ +@JsonPropertyOrder({ + ListNotificationChannels200Response.JSON_PROPERTY_DATA, + ListNotificationChannels200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListNotificationChannels200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListNotificationChannels200Response() { + } + + public ListNotificationChannels200Response data(List data) { + this.data = data; + return this; + } + + public ListNotificationChannels200Response addDataItem(NotificationChannel dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListNotificationChannels200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listNotificationChannels_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListNotificationChannels200Response listNotificationChannels200Response = (ListNotificationChannels200Response) o; + return Objects.equals(this.data, listNotificationChannels200Response.data) && + Objects.equals(this.meta, listNotificationChannels200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListNotificationChannels200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListNotificationSettings200Response.java b/src/main/java/com/telnyx/sdk/model/ListNotificationSettings200Response.java new file mode 100644 index 00000000..fa878cf8 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListNotificationSettings200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationSetting; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListNotificationSettings200Response + */ +@JsonPropertyOrder({ + ListNotificationSettings200Response.JSON_PROPERTY_DATA, + ListNotificationSettings200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListNotificationSettings200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListNotificationSettings200Response() { + } + + public ListNotificationSettings200Response data(List data) { + this.data = data; + return this; + } + + public ListNotificationSettings200Response addDataItem(NotificationSetting dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListNotificationSettings200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listNotificationSettings_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListNotificationSettings200Response listNotificationSettings200Response = (ListNotificationSettings200Response) o; + return Objects.equals(this.data, listNotificationSettings200Response.data) && + Objects.equals(this.meta, listNotificationSettings200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListNotificationSettings200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListOutboundChannels200Response.java b/src/main/java/com/telnyx/sdk/model/ListOutboundChannels200Response.java new file mode 100644 index 00000000..c24ff401 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListOutboundChannels200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ListOutboundChannels200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListOutboundChannels200Response + */ +@JsonPropertyOrder({ + ListOutboundChannels200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListOutboundChannels200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private ListOutboundChannels200ResponseData data; + + public ListOutboundChannels200Response() { + } + + public ListOutboundChannels200Response data(ListOutboundChannels200ResponseData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ListOutboundChannels200ResponseData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(ListOutboundChannels200ResponseData data) { + this.data = data; + } + + + /** + * Return true if this listOutboundChannels_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListOutboundChannels200Response listOutboundChannels200Response = (ListOutboundChannels200Response) o; + return Objects.equals(this.data, listOutboundChannels200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListOutboundChannels200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseData.java b/src/main/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseData.java new file mode 100644 index 00000000..77ae7c8b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseData.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListOutboundChannels200ResponseData + */ +@JsonPropertyOrder({ + ListOutboundChannels200ResponseData.JSON_PROPERTY_CHANNELS, + ListOutboundChannels200ResponseData.JSON_PROPERTY_RECORD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListOutboundChannels200ResponseData { + public static final String JSON_PROPERTY_CHANNELS = "channels"; + private Integer channels; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public ListOutboundChannels200ResponseData() { + } + + public ListOutboundChannels200ResponseData channels(Integer channels) { + this.channels = channels; + return this; + } + + /** + * The current number of concurrent channels set for the account + * @return channels + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "7", value = "The current number of concurrent channels set for the account") + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getChannels() { + return channels; + } + + + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setChannels(Integer channels) { + this.channels = channels; + } + + + public ListOutboundChannels200ResponseData recordType(String recordType) { + this.recordType = recordType; + return this; + } + + /** + * Identifies the type of the response + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "inbound_channels", value = "Identifies the type of the response") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordType(String recordType) { + this.recordType = recordType; + } + + + /** + * Return true if this listOutboundChannels_200_response_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListOutboundChannels200ResponseData listOutboundChannels200ResponseData = (ListOutboundChannels200ResponseData) o; + return Objects.equals(this.channels, listOutboundChannels200ResponseData.channels) && + Objects.equals(this.recordType, listOutboundChannels200ResponseData.recordType); + } + + @Override + public int hashCode() { + return Objects.hash(channels, recordType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListOutboundChannels200ResponseData {\n"); + sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortingOrderDocuments200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortingOrderDocuments200Response.java new file mode 100644 index 00000000..345a59c7 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortingOrderDocuments200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrderDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortingOrderDocuments200Response + */ +@JsonPropertyOrder({ + ListPortingOrderDocuments200Response.JSON_PROPERTY_DATA, + ListPortingOrderDocuments200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortingOrderDocuments200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListPortingOrderDocuments200Response() { + } + + public ListPortingOrderDocuments200Response data(List data) { + this.data = data; + return this; + } + + public ListPortingOrderDocuments200Response addDataItem(PortingOrderDocument dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListPortingOrderDocuments200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listPortingOrderDocuments_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortingOrderDocuments200Response listPortingOrderDocuments200Response = (ListPortingOrderDocuments200Response) o; + return Objects.equals(this.data, listPortingOrderDocuments200Response.data) && + Objects.equals(this.meta, listPortingOrderDocuments200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortingOrderDocuments200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortingOrderRequirements200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortingOrderRequirements200Response.java new file mode 100644 index 00000000..705cd71d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortingOrderRequirements200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrderRequirementDetail; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortingOrderRequirements200Response + */ +@JsonPropertyOrder({ + ListPortingOrderRequirements200Response.JSON_PROPERTY_DATA, + ListPortingOrderRequirements200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortingOrderRequirements200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListPortingOrderRequirements200Response() { + } + + public ListPortingOrderRequirements200Response data(List data) { + this.data = data; + return this; + } + + public ListPortingOrderRequirements200Response addDataItem(PortingOrderRequirementDetail dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListPortingOrderRequirements200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListPortingOrderRequirements_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortingOrderRequirements200Response listPortingOrderRequirements200Response = (ListPortingOrderRequirements200Response) o; + return Objects.equals(this.data, listPortingOrderRequirements200Response.data) && + Objects.equals(this.meta, listPortingOrderRequirements200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortingOrderRequirements200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortingOrders200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortingOrders200Response.java new file mode 100644 index 00000000..bf10fa0e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortingOrders200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortingOrders200Response + */ +@JsonPropertyOrder({ + ListPortingOrders200Response.JSON_PROPERTY_DATA, + ListPortingOrders200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortingOrders200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListPortingOrders200Response() { + } + + public ListPortingOrders200Response data(List data) { + this.data = data; + return this; + } + + public ListPortingOrders200Response addDataItem(PortingOrder dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListPortingOrders200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listPortingOrders_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortingOrders200Response listPortingOrders200Response = (ListPortingOrders200Response) o; + return Objects.equals(this.data, listPortingOrders200Response.data) && + Objects.equals(this.meta, listPortingOrders200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortingOrders200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200Response.java new file mode 100644 index 00000000..7264caa0 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrdersActivationJob; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortingOrdersActivationJobs200Response + */ +@JsonPropertyOrder({ + ListPortingOrdersActivationJobs200Response.JSON_PROPERTY_DATA, + ListPortingOrdersActivationJobs200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortingOrdersActivationJobs200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListPortingOrdersActivationJobs200Response() { + } + + public ListPortingOrdersActivationJobs200Response data(List data) { + this.data = data; + return this; + } + + public ListPortingOrdersActivationJobs200Response addDataItem(PortingOrdersActivationJob dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListPortingOrdersActivationJobs200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listPortingOrdersActivationJobs_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortingOrdersActivationJobs200Response listPortingOrdersActivationJobs200Response = (ListPortingOrdersActivationJobs200Response) o; + return Objects.equals(this.data, listPortingOrdersActivationJobs200Response.data) && + Objects.equals(this.meta, listPortingOrdersActivationJobs200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortingOrdersActivationJobs200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortingOrdersComments200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortingOrdersComments200Response.java new file mode 100644 index 00000000..d32f840c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortingOrdersComments200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrdersComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortingOrdersComments200Response + */ +@JsonPropertyOrder({ + ListPortingOrdersComments200Response.JSON_PROPERTY_DATA, + ListPortingOrdersComments200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortingOrdersComments200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListPortingOrdersComments200Response() { + } + + public ListPortingOrdersComments200Response data(List data) { + this.data = data; + return this; + } + + public ListPortingOrdersComments200Response addDataItem(PortingOrdersComment dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListPortingOrdersComments200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listPortingOrdersComments_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortingOrdersComments200Response listPortingOrdersComments200Response = (ListPortingOrdersComments200Response) o; + return Objects.equals(this.data, listPortingOrdersComments200Response.data) && + Objects.equals(this.meta, listPortingOrdersComments200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortingOrdersComments200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200Response.java new file mode 100644 index 00000000..d5af41b1 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrdersExceptionType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortingOrdersExceptionTypes200Response + */ +@JsonPropertyOrder({ + ListPortingOrdersExceptionTypes200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortingOrdersExceptionTypes200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public ListPortingOrdersExceptionTypes200Response() { + } + + public ListPortingOrdersExceptionTypes200Response data(List data) { + this.data = data; + return this; + } + + public ListPortingOrdersExceptionTypes200Response addDataItem(PortingOrdersExceptionType dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this listPortingOrdersExceptionTypes_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortingOrdersExceptionTypes200Response listPortingOrdersExceptionTypes200Response = (ListPortingOrdersExceptionTypes200Response) o; + return Objects.equals(this.data, listPortingOrdersExceptionTypes200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortingOrdersExceptionTypes200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200Response.java new file mode 100644 index 00000000..1cc7dee3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingPhoneNumber; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortingPhoneNumbers200Response + */ +@JsonPropertyOrder({ + ListPortingPhoneNumbers200Response.JSON_PROPERTY_DATA, + ListPortingPhoneNumbers200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortingPhoneNumbers200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListPortingPhoneNumbers200Response() { + } + + public ListPortingPhoneNumbers200Response data(List data) { + this.data = data; + return this; + } + + public ListPortingPhoneNumbers200Response addDataItem(PortingPhoneNumber dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListPortingPhoneNumbers200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listPortingPhoneNumbers_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortingPhoneNumbers200Response listPortingPhoneNumbers200Response = (ListPortingPhoneNumbers200Response) o; + return Objects.equals(this.data, listPortingPhoneNumbers200Response.data) && + Objects.equals(this.meta, listPortingPhoneNumbers200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortingPhoneNumbers200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListPortoutRequest200Response.java b/src/main/java/com/telnyx/sdk/model/ListPortoutRequest200Response.java new file mode 100644 index 00000000..9ec8480e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListPortoutRequest200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Metadata; +import com.telnyx.sdk.model.PortoutDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListPortoutRequest200Response + */ +@JsonPropertyOrder({ + ListPortoutRequest200Response.JSON_PROPERTY_DATA, + ListPortoutRequest200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListPortoutRequest200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private Metadata meta; + + public ListPortoutRequest200Response() { + } + + public ListPortoutRequest200Response data(List data) { + this.data = data; + return this; + } + + public ListPortoutRequest200Response addDataItem(PortoutDetails dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListPortoutRequest200Response meta(Metadata meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Metadata getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(Metadata meta) { + this.meta = meta; + } + + + /** + * Return true if this listPortoutRequest_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListPortoutRequest200Response listPortoutRequest200Response = (ListPortoutRequest200Response) o; + return Objects.equals(this.data, listPortoutRequest200Response.data) && + Objects.equals(this.meta, listPortoutRequest200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListPortoutRequest200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListRegulartoryRequirements200Response.java b/src/main/java/com/telnyx/sdk/model/ListRegulartoryRequirements200Response.java new file mode 100644 index 00000000..eacf5c3d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListRegulartoryRequirements200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RegulatoryRequirements; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListRegulartoryRequirements200Response + */ +@JsonPropertyOrder({ + ListRegulartoryRequirements200Response.JSON_PROPERTY_DATA, + ListRegulartoryRequirements200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListRegulartoryRequirements200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListRegulartoryRequirements200Response() { + } + + public ListRegulartoryRequirements200Response data(List data) { + this.data = data; + return this; + } + + public ListRegulartoryRequirements200Response addDataItem(RegulatoryRequirements dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListRegulartoryRequirements200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listRegulartoryRequirements_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRegulartoryRequirements200Response listRegulartoryRequirements200Response = (ListRegulartoryRequirements200Response) o; + return Objects.equals(this.data, listRegulartoryRequirements200Response.data) && + Objects.equals(this.meta, listRegulartoryRequirements200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRegulartoryRequirements200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListRequirements200Response.java b/src/main/java/com/telnyx/sdk/model/ListRequirements200Response.java new file mode 100644 index 00000000..7ce2be3d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListRequirements200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirement; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListRequirements200Response + */ +@JsonPropertyOrder({ + ListRequirements200Response.JSON_PROPERTY_DATA, + ListRequirements200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListRequirements200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListRequirements200Response() { + } + + public ListRequirements200Response data(List data) { + this.data = data; + return this; + } + + public ListRequirements200Response addDataItem(DocReqsRequirement dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListRequirements200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this listRequirements_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRequirements200Response listRequirements200Response = (ListRequirements200Response) o; + return Objects.equals(this.data, listRequirements200Response.data) && + Objects.equals(this.meta, listRequirements200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRequirements200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListRoomCompositions200Response.java b/src/main/java/com/telnyx/sdk/model/ListRoomCompositions200Response.java new file mode 100644 index 00000000..5580ca6a --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListRoomCompositions200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomComposition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListRoomCompositions200Response + */ +@JsonPropertyOrder({ + ListRoomCompositions200Response.JSON_PROPERTY_DATA, + ListRoomCompositions200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListRoomCompositions200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListRoomCompositions200Response() { + } + + public ListRoomCompositions200Response data(List data) { + this.data = data; + return this; + } + + public ListRoomCompositions200Response addDataItem(RoomComposition dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListRoomCompositions200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListRoomCompositions_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRoomCompositions200Response listRoomCompositions200Response = (ListRoomCompositions200Response) o; + return Objects.equals(this.data, listRoomCompositions200Response.data) && + Objects.equals(this.meta, listRoomCompositions200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRoomCompositions200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListRoomParticipants200Response.java b/src/main/java/com/telnyx/sdk/model/ListRoomParticipants200Response.java new file mode 100644 index 00000000..cbe8a6e5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListRoomParticipants200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomParticipant; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListRoomParticipants200Response + */ +@JsonPropertyOrder({ + ListRoomParticipants200Response.JSON_PROPERTY_DATA, + ListRoomParticipants200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListRoomParticipants200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListRoomParticipants200Response() { + } + + public ListRoomParticipants200Response data(List data) { + this.data = data; + return this; + } + + public ListRoomParticipants200Response addDataItem(RoomParticipant dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListRoomParticipants200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListRoomParticipants_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRoomParticipants200Response listRoomParticipants200Response = (ListRoomParticipants200Response) o; + return Objects.equals(this.data, listRoomParticipants200Response.data) && + Objects.equals(this.meta, listRoomParticipants200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRoomParticipants200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListRoomRecordings200Response.java b/src/main/java/com/telnyx/sdk/model/ListRoomRecordings200Response.java new file mode 100644 index 00000000..ff2615e9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListRoomRecordings200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomRecording; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListRoomRecordings200Response + */ +@JsonPropertyOrder({ + ListRoomRecordings200Response.JSON_PROPERTY_DATA, + ListRoomRecordings200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListRoomRecordings200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListRoomRecordings200Response() { + } + + public ListRoomRecordings200Response data(List data) { + this.data = data; + return this; + } + + public ListRoomRecordings200Response addDataItem(RoomRecording dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListRoomRecordings200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListRoomRecordings_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRoomRecordings200Response listRoomRecordings200Response = (ListRoomRecordings200Response) o; + return Objects.equals(this.data, listRoomRecordings200Response.data) && + Objects.equals(this.meta, listRoomRecordings200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRoomRecordings200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListRoomSessions200Response.java b/src/main/java/com/telnyx/sdk/model/ListRoomSessions200Response.java new file mode 100644 index 00000000..424dc937 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListRoomSessions200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomSession; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListRoomSessions200Response + */ +@JsonPropertyOrder({ + ListRoomSessions200Response.JSON_PROPERTY_DATA, + ListRoomSessions200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListRoomSessions200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListRoomSessions200Response() { + } + + public ListRoomSessions200Response data(List data) { + this.data = data; + return this; + } + + public ListRoomSessions200Response addDataItem(RoomSession dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListRoomSessions200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListRoomSessions_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRoomSessions200Response listRoomSessions200Response = (ListRoomSessions200Response) o; + return Objects.equals(this.data, listRoomSessions200Response.data) && + Objects.equals(this.meta, listRoomSessions200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRoomSessions200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListRooms200Response.java b/src/main/java/com/telnyx/sdk/model/ListRooms200Response.java new file mode 100644 index 00000000..13de2535 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListRooms200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.Room; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListRooms200Response + */ +@JsonPropertyOrder({ + ListRooms200Response.JSON_PROPERTY_DATA, + ListRooms200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListRooms200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListRooms200Response() { + } + + public ListRooms200Response data(List data) { + this.data = data; + return this; + } + + public ListRooms200Response addDataItem(Room dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListRooms200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListRooms_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListRooms200Response listRooms200Response = (ListRooms200Response) o; + return Objects.equals(this.data, listRooms200Response.data) && + Objects.equals(this.meta, listRooms200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListRooms200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListSIMCardActions200Response.java b/src/main/java/com/telnyx/sdk/model/ListSIMCardActions200Response.java new file mode 100644 index 00000000..be3f1f7f --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListSIMCardActions200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SIMCardAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListSIMCardActions200Response + */ +@JsonPropertyOrder({ + ListSIMCardActions200Response.JSON_PROPERTY_DATA, + ListSIMCardActions200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListSIMCardActions200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListSIMCardActions200Response() { + } + + public ListSIMCardActions200Response data(List data) { + this.data = data; + return this; + } + + public ListSIMCardActions200Response addDataItem(SIMCardAction dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListSIMCardActions200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListSIMCardActions_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSIMCardActions200Response listSIMCardActions200Response = (ListSIMCardActions200Response) o; + return Objects.equals(this.data, listSIMCardActions200Response.data) && + Objects.equals(this.meta, listSIMCardActions200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSIMCardActions200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200Response.java b/src/main/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200Response.java new file mode 100644 index 00000000..f373ec36 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SimCardDataUsageNotification; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListSimCardDataUsageNotifications200Response + */ +@JsonPropertyOrder({ + ListSimCardDataUsageNotifications200Response.JSON_PROPERTY_DATA, + ListSimCardDataUsageNotifications200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListSimCardDataUsageNotifications200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public ListSimCardDataUsageNotifications200Response() { + } + + public ListSimCardDataUsageNotifications200Response data(List data) { + this.data = data; + return this; + } + + public ListSimCardDataUsageNotifications200Response addDataItem(SimCardDataUsageNotification dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public ListSimCardDataUsageNotifications200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this ListSimCardDataUsageNotifications_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListSimCardDataUsageNotifications200Response listSimCardDataUsageNotifications200Response = (ListSimCardDataUsageNotifications200Response) o; + return Objects.equals(this.data, listSimCardDataUsageNotifications200Response.data) && + Objects.equals(this.meta, listSimCardDataUsageNotifications200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListSimCardDataUsageNotifications200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ListTagsResponse.java b/src/main/java/com/telnyx/sdk/model/ListTagsResponse.java index 0de869ae..68b53902 100644 --- a/src/main/java/com/telnyx/sdk/model/ListTagsResponse.java +++ b/src/main/java/com/telnyx/sdk/model/ListTagsResponse.java @@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ListTagsResponseData; +import com.telnyx.sdk.model.ListTagsResponseDataInner; import com.telnyx.sdk.model.PaginationMeta; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; @@ -42,7 +42,7 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class ListTagsResponse { public static final String JSON_PROPERTY_DATA = "data"; - private List data = null; + private List data = null; public static final String JSON_PROPERTY_META = "meta"; private PaginationMeta meta; @@ -50,12 +50,12 @@ public class ListTagsResponse { public ListTagsResponse() { } - public ListTagsResponse data(List data) { + public ListTagsResponse data(List data) { this.data = data; return this; } - public ListTagsResponse addDataItem(ListTagsResponseData dataItem) { + public ListTagsResponse addDataItem(ListTagsResponseDataInner dataItem) { if (this.data == null) { this.data = new ArrayList<>(); } @@ -72,14 +72,14 @@ public ListTagsResponse addDataItem(ListTagsResponseData dataItem) { @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getData() { + public List getData() { return data; } @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setData(List data) { + public void setData(List data) { this.data = data; } diff --git a/src/main/java/com/telnyx/sdk/model/ListTagsResponseDataInner.java b/src/main/java/com/telnyx/sdk/model/ListTagsResponseDataInner.java new file mode 100644 index 00000000..7c9c096d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ListTagsResponseDataInner.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ListTagsResponseDataInner + */ +@JsonPropertyOrder({ + ListTagsResponseDataInner.JSON_PROPERTY_TAG, + ListTagsResponseDataInner.JSON_PROPERTY_AMOUNT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ListTagsResponseDataInner { + public static final String JSON_PROPERTY_TAG = "tag"; + private String tag; + + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private Integer amount; + + public ListTagsResponseDataInner() { + } + + public ListTagsResponseDataInner tag(String tag) { + this.tag = tag; + return this; + } + + /** + * Get tag + * @return tag + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "a_tag", value = "") + @JsonProperty(JSON_PROPERTY_TAG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTag() { + return tag; + } + + + @JsonProperty(JSON_PROPERTY_TAG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTag(String tag) { + this.tag = tag; + } + + + public ListTagsResponseDataInner amount(Integer amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "") + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getAmount() { + return amount; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(Integer amount) { + this.amount = amount; + } + + + /** + * Return true if this List_Tags_Response_data_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListTagsResponseDataInner listTagsResponseDataInner = (ListTagsResponseDataInner) o; + return Objects.equals(this.tag, listTagsResponseDataInner.tag) && + Objects.equals(this.amount, listTagsResponseDataInner.amount); + } + + @Override + public int hashCode() { + return Objects.hash(tag, amount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTagsResponseDataInner {\n"); + sb.append(" tag: ").append(toIndentedString(tag)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/MarkCommentRead200Response.java b/src/main/java/com/telnyx/sdk/model/MarkCommentRead200Response.java new file mode 100644 index 00000000..f3234e50 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/MarkCommentRead200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MarkCommentRead200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * MarkCommentRead200Response + */ +@JsonPropertyOrder({ + MarkCommentRead200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class MarkCommentRead200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private MarkCommentRead200ResponseData data; + + public MarkCommentRead200Response() { + } + + public MarkCommentRead200Response data(MarkCommentRead200ResponseData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public MarkCommentRead200ResponseData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(MarkCommentRead200ResponseData data) { + this.data = data; + } + + + /** + * Return true if this markCommentRead_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MarkCommentRead200Response markCommentRead200Response = (MarkCommentRead200Response) o; + return Objects.equals(this.data, markCommentRead200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MarkCommentRead200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/MarkCommentRead200ResponseData.java b/src/main/java/com/telnyx/sdk/model/MarkCommentRead200ResponseData.java new file mode 100644 index 00000000..3f4e042e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/MarkCommentRead200ResponseData.java @@ -0,0 +1,400 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ReadComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * MarkCommentRead200ResponseData + */ +@JsonPropertyOrder({ + MarkCommentRead200ResponseData.JSON_PROPERTY_ID, + MarkCommentRead200ResponseData.JSON_PROPERTY_BODY, + MarkCommentRead200ResponseData.JSON_PROPERTY_COMMENTER, + MarkCommentRead200ResponseData.JSON_PROPERTY_COMMENTER_TYPE, + MarkCommentRead200ResponseData.JSON_PROPERTY_COMMENT_RECORD_TYPE, + MarkCommentRead200ResponseData.JSON_PROPERTY_COMMENT_RECORD_ID, + MarkCommentRead200ResponseData.JSON_PROPERTY_READ_AT, + MarkCommentRead200ResponseData.JSON_PROPERTY_CREATED_AT, + MarkCommentRead200ResponseData.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class MarkCommentRead200ResponseData { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_BODY = "body"; + private String body; + + public static final String JSON_PROPERTY_COMMENTER = "commenter"; + private String commenter; + + /** + * Gets or Sets commenterType + */ + public enum CommenterTypeEnum { + ADMIN("admin"), + + USER("user"); + + private String value; + + CommenterTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CommenterTypeEnum fromValue(String value) { + for (CommenterTypeEnum b : CommenterTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_COMMENTER_TYPE = "commenter_type"; + private CommenterTypeEnum commenterType; + + /** + * Gets or Sets commentRecordType + */ + public enum CommentRecordTypeEnum { + NUMBER_ORDER("number_order"), + + SUB_NUMBER_ORDER("sub_number_order"), + + NUMBER_ORDER_PHONE_NUMBER("number_order_phone_number"); + + private String value; + + CommentRecordTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CommentRecordTypeEnum fromValue(String value) { + for (CommentRecordTypeEnum b : CommentRecordTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_COMMENT_RECORD_TYPE = "comment_record_type"; + private CommentRecordTypeEnum commentRecordType; + + public static final String JSON_PROPERTY_COMMENT_RECORD_ID = "comment_record_id"; + private UUID commentRecordId; + + public static final String JSON_PROPERTY_READ_AT = "read_at"; + private String readAt; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public MarkCommentRead200ResponseData() { + } + + @JsonCreator + public MarkCommentRead200ResponseData( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_COMMENTER) String commenter, + @JsonProperty(JSON_PROPERTY_COMMENTER_TYPE) CommenterTypeEnum commenterType, + @JsonProperty(JSON_PROPERTY_READ_AT) String readAt, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.commenter = commenter; + this.commenterType = commenterType; + this.readAt = readAt; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12ade33a-21c0-473b-b055-b3c836e1c292", value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + public MarkCommentRead200ResponseData body(String body) { + this.body = body; + return this; + } + + /** + * Get body + * @return body + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Hi there, ....", value = "") + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBody() { + return body; + } + + + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBody(String body) { + this.body = body; + } + + + /** + * Get commenter + * @return commenter + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "user@company.com", value = "") + @JsonProperty(JSON_PROPERTY_COMMENTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCommenter() { + return commenter; + } + + + + + /** + * Get commenterType + * @return commenterType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "user", value = "") + @JsonProperty(JSON_PROPERTY_COMMENTER_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CommenterTypeEnum getCommenterType() { + return commenterType; + } + + + + + public MarkCommentRead200ResponseData commentRecordType(CommentRecordTypeEnum commentRecordType) { + this.commentRecordType = commentRecordType; + return this; + } + + /** + * Get commentRecordType + * @return commentRecordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "sub_number_order", value = "") + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CommentRecordTypeEnum getCommentRecordType() { + return commentRecordType; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCommentRecordType(CommentRecordTypeEnum commentRecordType) { + this.commentRecordType = commentRecordType; + } + + + public MarkCommentRead200ResponseData commentRecordId(UUID commentRecordId) { + this.commentRecordId = commentRecordId; + return this; + } + + /** + * Get commentRecordId + * @return commentRecordId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "8ffb3622-7c6b-4ccc-b65f-7a3dc0099576", value = "") + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getCommentRecordId() { + return commentRecordId; + } + + + @JsonProperty(JSON_PROPERTY_COMMENT_RECORD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCommentRecordId(UUID commentRecordId) { + this.commentRecordId = commentRecordId; + } + + + /** + * An ISO 8901 datetime string for when the comment was read. + * @return readAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string for when the comment was read.") + @JsonProperty(JSON_PROPERTY_READ_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReadAt() { + return readAt; + } + + + + + /** + * An ISO 8901 datetime string denoting when the comment was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string denoting when the comment was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * An ISO 8901 datetime string for when the comment was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-01-01T00:00:00.000000Z", value = "An ISO 8901 datetime string for when the comment was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + /** + * Return true if this markCommentRead_200_response_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MarkCommentRead200ResponseData markCommentRead200ResponseData = (MarkCommentRead200ResponseData) o; + return Objects.equals(this.id, markCommentRead200ResponseData.id) && + Objects.equals(this.body, markCommentRead200ResponseData.body) && + Objects.equals(this.commenter, markCommentRead200ResponseData.commenter) && + Objects.equals(this.commenterType, markCommentRead200ResponseData.commenterType) && + Objects.equals(this.commentRecordType, markCommentRead200ResponseData.commentRecordType) && + Objects.equals(this.commentRecordId, markCommentRead200ResponseData.commentRecordId) && + Objects.equals(this.readAt, markCommentRead200ResponseData.readAt) && + Objects.equals(this.createdAt, markCommentRead200ResponseData.createdAt) && + Objects.equals(this.updatedAt, markCommentRead200ResponseData.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, body, commenter, commenterType, commentRecordType, commentRecordId, readAt, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MarkCommentRead200ResponseData {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append(" commenter: ").append(toIndentedString(commenter)).append("\n"); + sb.append(" commenterType: ").append(toIndentedString(commenterType)).append("\n"); + sb.append(" commentRecordType: ").append(toIndentedString(commentRecordType)).append("\n"); + sb.append(" commentRecordId: ").append(toIndentedString(commentRecordId)).append("\n"); + sb.append(" readAt: ").append(toIndentedString(readAt)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Message.java b/src/main/java/com/telnyx/sdk/model/Message.java index 7e047c06..7218dbac 100644 --- a/src/main/java/com/telnyx/sdk/model/Message.java +++ b/src/main/java/com/telnyx/sdk/model/Message.java @@ -29,8 +29,9 @@ /** - * Message + * */ +@ApiModel(description = "") @JsonPropertyOrder({ Message.JSON_PROPERTY_RECORD_TYPE, Message.JSON_PROPERTY_ID @@ -79,6 +80,14 @@ public static RecordTypeEnum fromValue(String value) { public Message() { } + @JsonCreator + public Message( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType + ) { + this(); + this.recordType = recordType; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/MessageType.java b/src/main/java/com/telnyx/sdk/model/MessageType.java index c914ab67..ec3e5ee4 100644 --- a/src/main/java/com/telnyx/sdk/model/MessageType.java +++ b/src/main/java/com/telnyx/sdk/model/MessageType.java @@ -36,8 +36,6 @@ public enum MessageType { DOCUMENT("document"), - HSM("hsm"), - IMAGE("image"), LOCATION("location"), diff --git a/src/main/java/com/telnyx/sdk/model/MessagingHostedNumberOrder.java b/src/main/java/com/telnyx/sdk/model/MessagingHostedNumberOrder.java index af9d7b0f..3ca2d3b9 100644 --- a/src/main/java/com/telnyx/sdk/model/MessagingHostedNumberOrder.java +++ b/src/main/java/com/telnyx/sdk/model/MessagingHostedNumberOrder.java @@ -103,6 +103,16 @@ public static StatusEnum fromValue(String value) { public MessagingHostedNumberOrder() { } + @JsonCreator + public MessagingHostedNumberOrder( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id + ) { + this(); + this.recordType = recordType; + this.id = id; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/MessagingProfile.java b/src/main/java/com/telnyx/sdk/model/MessagingProfile.java index 3ed901c8..e9f25d9b 100644 --- a/src/main/java/com/telnyx/sdk/model/MessagingProfile.java +++ b/src/main/java/com/telnyx/sdk/model/MessagingProfile.java @@ -170,6 +170,20 @@ public static WebhookApiVersionEnum fromValue(String value) { public MessagingProfile() { } + @JsonCreator + public MessagingProfile( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.recordType = recordType; + this.id = id; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/MessagingProfileDetailedMetric.java b/src/main/java/com/telnyx/sdk/model/MessagingProfileDetailedMetric.java index 3099c137..e680fd7a 100644 --- a/src/main/java/com/telnyx/sdk/model/MessagingProfileDetailedMetric.java +++ b/src/main/java/com/telnyx/sdk/model/MessagingProfileDetailedMetric.java @@ -49,6 +49,14 @@ public class MessagingProfileDetailedMetric { public MessagingProfileDetailedMetric() { } + @JsonCreator + public MessagingProfileDetailedMetric( + @JsonProperty(JSON_PROPERTY_TIMESTAMP) String timestamp + ) { + this(); + this.timestamp = timestamp; + } + /** * The timestamp of the aggregated data. * @return timestamp diff --git a/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetrics.java b/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetrics.java index e8fc9b99..61dbb1fc 100644 --- a/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetrics.java +++ b/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetrics.java @@ -95,6 +95,18 @@ public static RecordTypeEnum fromValue(String value) { public MessagingProfileHighLevelMetrics() { } + @JsonCreator + public MessagingProfileHighLevelMetrics( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType, + @JsonProperty(JSON_PROPERTY_MESSAGING_PROFILE_ID) UUID messagingProfileId, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) BigDecimal phoneNumbers + ) { + this(); + this.recordType = recordType; + this.messagingProfileId = messagingProfileId; + this.phoneNumbers = phoneNumbers; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsInbound.java b/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsInbound.java index 58549901..9e70037e 100644 --- a/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsInbound.java +++ b/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsInbound.java @@ -43,6 +43,14 @@ public class MessagingProfileHighLevelMetricsInbound { public MessagingProfileHighLevelMetricsInbound() { } + @JsonCreator + public MessagingProfileHighLevelMetricsInbound( + @JsonProperty(JSON_PROPERTY_RECEIVED) BigDecimal received + ) { + this(); + this.received = received; + } + /** * The number of inbound messages received. * @return received diff --git a/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsOutbound.java b/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsOutbound.java index e3d790db..50b9fbdf 100644 --- a/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsOutbound.java +++ b/src/main/java/com/telnyx/sdk/model/MessagingProfileHighLevelMetricsOutbound.java @@ -51,6 +51,18 @@ public class MessagingProfileHighLevelMetricsOutbound { public MessagingProfileHighLevelMetricsOutbound() { } + @JsonCreator + public MessagingProfileHighLevelMetricsOutbound( + @JsonProperty(JSON_PROPERTY_SENT) BigDecimal sent, + @JsonProperty(JSON_PROPERTY_DELIVERED) BigDecimal delivered, + @JsonProperty(JSON_PROPERTY_ERROR_RATIO) BigDecimal errorRatio + ) { + this(); + this.sent = sent; + this.delivered = delivered; + this.errorRatio = errorRatio; + } + /** * The number of outbound messages sent. * @return sent diff --git a/src/main/java/com/telnyx/sdk/model/MessagingProfileMessageTypeMetrics.java b/src/main/java/com/telnyx/sdk/model/MessagingProfileMessageTypeMetrics.java index 3a80a0da..95c8c452 100644 --- a/src/main/java/com/telnyx/sdk/model/MessagingProfileMessageTypeMetrics.java +++ b/src/main/java/com/telnyx/sdk/model/MessagingProfileMessageTypeMetrics.java @@ -59,6 +59,22 @@ public class MessagingProfileMessageTypeMetrics { public MessagingProfileMessageTypeMetrics() { } + @JsonCreator + public MessagingProfileMessageTypeMetrics( + @JsonProperty(JSON_PROPERTY_LABEL) String label, + @JsonProperty(JSON_PROPERTY_SENT) BigDecimal sent, + @JsonProperty(JSON_PROPERTY_DELIVERED) BigDecimal delivered, + @JsonProperty(JSON_PROPERTY_OUTBOUND_ERROR_RATIO) BigDecimal outboundErrorRatio, + @JsonProperty(JSON_PROPERTY_RECEIVED) BigDecimal received + ) { + this(); + this.label = label; + this.sent = sent; + this.delivered = delivered; + this.outboundErrorRatio = outboundErrorRatio; + this.received = received; + } + /** * The metric type. * @return label diff --git a/src/main/java/com/telnyx/sdk/model/MobileOperatorNetwork.java b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetwork.java index 00fb6215..0da99214 100644 --- a/src/main/java/com/telnyx/sdk/model/MobileOperatorNetwork.java +++ b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetwork.java @@ -67,6 +67,16 @@ public class MobileOperatorNetwork { public MobileOperatorNetwork() { } + @JsonCreator + public MobileOperatorNetwork( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.id = id; + this.recordType = recordType; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesRequest.java b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesRequest.java index 9e5ce3cc..b518f554 100644 --- a/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesRequest.java +++ b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesRequest.java @@ -30,8 +30,9 @@ /** - * MobileOperatorNetworkPreferencesRequest + * */ +@ApiModel(description = "") @JsonPropertyOrder({ MobileOperatorNetworkPreferencesRequest.JSON_PROPERTY_MOBILE_OPERATOR_NETWORK_ID, MobileOperatorNetworkPreferencesRequest.JSON_PROPERTY_PRIORITY diff --git a/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesResponse.java b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesResponse.java index e691d65b..936984eb 100644 --- a/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesResponse.java +++ b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworkPreferencesResponse.java @@ -30,8 +30,9 @@ /** - * MobileOperatorNetworkPreferencesResponse + * */ +@ApiModel(description = "") @JsonPropertyOrder({ MobileOperatorNetworkPreferencesResponse.JSON_PROPERTY_MOBILE_OPERATOR_NETWORK_ID, MobileOperatorNetworkPreferencesResponse.JSON_PROPERTY_MOBILE_OPERATOR_NETWORK_NAME, diff --git a/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200Response.java b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200Response.java new file mode 100644 index 00000000..f781d5fe --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MobileOperatorNetwork; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * MobileOperatorNetworksGet200Response + */ +@JsonPropertyOrder({ + MobileOperatorNetworksGet200Response.JSON_PROPERTY_DATA, + MobileOperatorNetworksGet200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class MobileOperatorNetworksGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public MobileOperatorNetworksGet200Response() { + } + + public MobileOperatorNetworksGet200Response data(List data) { + this.data = data; + return this; + } + + public MobileOperatorNetworksGet200Response addDataItem(MobileOperatorNetwork dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public MobileOperatorNetworksGet200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this MobileOperatorNetworksGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MobileOperatorNetworksGet200Response mobileOperatorNetworksGet200Response = (MobileOperatorNetworksGet200Response) o; + return Objects.equals(this.data, mobileOperatorNetworksGet200Response.data) && + Objects.equals(this.meta, mobileOperatorNetworksGet200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MobileOperatorNetworksGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ModelInterface.java b/src/main/java/com/telnyx/sdk/model/ModelInterface.java new file mode 100644 index 00000000..4b7aa74d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ModelInterface.java @@ -0,0 +1,178 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ModelInterface + */ +@JsonPropertyOrder({ + ModelInterface.JSON_PROPERTY_NETWORK_ID, + ModelInterface.JSON_PROPERTY_NAME, + ModelInterface.JSON_PROPERTY_STATUS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ModelInterface { + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public ModelInterface() { + } + + public ModelInterface networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public ModelInterface name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public ModelInterface status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + /** + * Return true if this Interface object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelInterface _interface = (ModelInterface) o; + return Objects.equals(this.networkId, _interface.networkId) && + Objects.equals(this.name, _interface.name) && + Objects.equals(this.status, _interface.status); + } + + @Override + public int hashCode() { + return Objects.hash(networkId, name, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelInterface {\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Network.java b/src/main/java/com/telnyx/sdk/model/Network.java new file mode 100644 index 00000000..5a4b3cb3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Network.java @@ -0,0 +1,217 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network1; +import com.telnyx.sdk.model.Record; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Network + */ +@JsonPropertyOrder({ + Network.JSON_PROPERTY_ID, + Network.JSON_PROPERTY_RECORD_TYPE, + Network.JSON_PROPERTY_CREATED_AT, + Network.JSON_PROPERTY_UPDATED_AT, + Network.JSON_PROPERTY_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Network { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public Network() { + } + + @JsonCreator + public Network( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "network", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public Network name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the network. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test network", value = "A user specified name for the network.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + /** + * Return true if this Network object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Network network = (Network) o; + return Objects.equals(this.id, network.id) && + Objects.equals(this.recordType, network.recordType) && + Objects.equals(this.createdAt, network.createdAt) && + Objects.equals(this.updatedAt, network.updatedAt) && + Objects.equals(this.name, network.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Network {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Network1.java b/src/main/java/com/telnyx/sdk/model/Network1.java new file mode 100644 index 00000000..c7ba1445 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Network1.java @@ -0,0 +1,142 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Network1 + */ +@JsonPropertyOrder({ + Network1.JSON_PROPERTY_RECORD_TYPE, + Network1.JSON_PROPERTY_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Network1 { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public Network1() { + } + + @JsonCreator + public Network1( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "network", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + public Network1 name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the network. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test network", value = "A user specified name for the network.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + /** + * Return true if this Network_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Network1 network1 = (Network1) o; + return Objects.equals(this.recordType, network1.recordType) && + Objects.equals(this.name, network1.name); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Network1 {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NetworkCreate.java b/src/main/java/com/telnyx/sdk/model/NetworkCreate.java new file mode 100644 index 00000000..615c688f --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NetworkCreate.java @@ -0,0 +1,216 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NetworkCreate + */ +@JsonPropertyOrder({ + NetworkCreate.JSON_PROPERTY_ID, + NetworkCreate.JSON_PROPERTY_RECORD_TYPE, + NetworkCreate.JSON_PROPERTY_CREATED_AT, + NetworkCreate.JSON_PROPERTY_UPDATED_AT, + NetworkCreate.JSON_PROPERTY_NAME +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NetworkCreate { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public NetworkCreate() { + } + + @JsonCreator + public NetworkCreate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "network", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public NetworkCreate name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the network. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "test network", required = true, value = "A user specified name for the network.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setName(String name) { + this.name = name; + } + + + /** + * Return true if this NetworkCreate object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkCreate networkCreate = (NetworkCreate) o; + return Objects.equals(this.id, networkCreate.id) && + Objects.equals(this.recordType, networkCreate.recordType) && + Objects.equals(this.createdAt, networkCreate.createdAt) && + Objects.equals(this.updatedAt, networkCreate.updatedAt) && + Objects.equals(this.name, networkCreate.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkCreate {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NetworkCreate200Response.java b/src/main/java/com/telnyx/sdk/model/NetworkCreate200Response.java new file mode 100644 index 00000000..cd6c73a6 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NetworkCreate200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NetworkCreate200Response + */ +@JsonPropertyOrder({ + NetworkCreate200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NetworkCreate200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private Network data; + + public NetworkCreate200Response() { + } + + public NetworkCreate200Response data(Network data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Network getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Network data) { + this.data = data; + } + + + /** + * Return true if this NetworkCreate_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkCreate200Response networkCreate200Response = (NetworkCreate200Response) o; + return Objects.equals(this.data, networkCreate200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkCreate200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NetworkInterface.java b/src/main/java/com/telnyx/sdk/model/NetworkInterface.java new file mode 100644 index 00000000..2dd869d5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NetworkInterface.java @@ -0,0 +1,373 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.NetworkInterface1; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NetworkInterface + */ +@JsonPropertyOrder({ + NetworkInterface.JSON_PROPERTY_ID, + NetworkInterface.JSON_PROPERTY_RECORD_TYPE, + NetworkInterface.JSON_PROPERTY_CREATED_AT, + NetworkInterface.JSON_PROPERTY_UPDATED_AT, + NetworkInterface.JSON_PROPERTY_NETWORK_ID, + NetworkInterface.JSON_PROPERTY_NAME, + NetworkInterface.JSON_PROPERTY_STATUS, + NetworkInterface.JSON_PROPERTY_REGION_CODE, + NetworkInterface.JSON_PROPERTY_REGION, + NetworkInterface.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NetworkInterface { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public static final String JSON_PROPERTY_REGION = "region"; + private RegionOutRegion region; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public NetworkInterface() { + } + + @JsonCreator + public NetworkInterface( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_TYPE) String type + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.type = type; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "network_interface", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public NetworkInterface networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public NetworkInterface name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public NetworkInterface status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + public NetworkInterface regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region interface is deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region interface is deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + public NetworkInterface region(RegionOutRegion region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RegionOutRegion getRegion() { + return region; + } + + + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegion(RegionOutRegion region) { + this.region = region; + } + + + /** + * Identifies the type of the interface. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_interface", value = "Identifies the type of the interface.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + + + /** + * Return true if this NetworkInterface object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkInterface networkInterface = (NetworkInterface) o; + return Objects.equals(this.id, networkInterface.id) && + Objects.equals(this.recordType, networkInterface.recordType) && + Objects.equals(this.createdAt, networkInterface.createdAt) && + Objects.equals(this.updatedAt, networkInterface.updatedAt) && + Objects.equals(this.networkId, networkInterface.networkId) && + Objects.equals(this.name, networkInterface.name) && + Objects.equals(this.status, networkInterface.status) && + Objects.equals(this.regionCode, networkInterface.regionCode) && + Objects.equals(this.region, networkInterface.region) && + Objects.equals(this.type, networkInterface.type); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, regionCode, region, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkInterface {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NetworkInterface1.java b/src/main/java/com/telnyx/sdk/model/NetworkInterface1.java new file mode 100644 index 00000000..46e6a70b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NetworkInterface1.java @@ -0,0 +1,134 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NetworkInterface1 + */ +@JsonPropertyOrder({ + NetworkInterface1.JSON_PROPERTY_RECORD_TYPE, + NetworkInterface1.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NetworkInterface1 { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public NetworkInterface1() { + } + + @JsonCreator + public NetworkInterface1( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_TYPE) String type + ) { + this(); + this.recordType = recordType; + this.type = type; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "network_interface", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * Identifies the type of the interface. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_interface", value = "Identifies the type of the interface.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + + + /** + * Return true if this NetworkInterface_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkInterface1 networkInterface1 = (NetworkInterface1) o; + return Objects.equals(this.recordType, networkInterface1.recordType) && + Objects.equals(this.type, networkInterface1.type); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkInterface1 {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NetworkInterfaceList200Response.java b/src/main/java/com/telnyx/sdk/model/NetworkInterfaceList200Response.java new file mode 100644 index 00000000..fcb79eff --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NetworkInterfaceList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NetworkInterface; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NetworkInterfaceList200Response + */ +@JsonPropertyOrder({ + NetworkInterfaceList200Response.JSON_PROPERTY_DATA, + NetworkInterfaceList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NetworkInterfaceList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public NetworkInterfaceList200Response() { + } + + public NetworkInterfaceList200Response data(List data) { + this.data = data; + return this; + } + + public NetworkInterfaceList200Response addDataItem(NetworkInterface dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public NetworkInterfaceList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this NetworkInterfaceList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkInterfaceList200Response networkInterfaceList200Response = (NetworkInterfaceList200Response) o; + return Objects.equals(this.data, networkInterfaceList200Response.data) && + Objects.equals(this.meta, networkInterfaceList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkInterfaceList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NetworkList200Response.java b/src/main/java/com/telnyx/sdk/model/NetworkList200Response.java new file mode 100644 index 00000000..bcdc52a5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NetworkList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NetworkList200Response + */ +@JsonPropertyOrder({ + NetworkList200Response.JSON_PROPERTY_DATA, + NetworkList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NetworkList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public NetworkList200Response() { + } + + public NetworkList200Response data(List data) { + this.data = data; + return this; + } + + public NetworkList200Response addDataItem(Network dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public NetworkList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this NetworkList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkList200Response networkList200Response = (NetworkList200Response) o; + return Objects.equals(this.data, networkList200Response.data) && + Objects.equals(this.meta, networkList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NotificationChannel.java b/src/main/java/com/telnyx/sdk/model/NotificationChannel.java index 3396ac1d..5a13d263 100644 --- a/src/main/java/com/telnyx/sdk/model/NotificationChannel.java +++ b/src/main/java/com/telnyx/sdk/model/NotificationChannel.java @@ -103,6 +103,18 @@ public static ChannelTypeIdEnum fromValue(String value) { public NotificationChannel() { } + @JsonCreator + public NotificationChannel( + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.id = id; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * A UUID. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NotificationEvent.java b/src/main/java/com/telnyx/sdk/model/NotificationEvent.java index 09369bf8..999a7c53 100644 --- a/src/main/java/com/telnyx/sdk/model/NotificationEvent.java +++ b/src/main/java/com/telnyx/sdk/model/NotificationEvent.java @@ -64,6 +64,14 @@ public class NotificationEvent { public NotificationEvent() { } + @JsonCreator + public NotificationEvent( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { + this(); + this.id = id; + } + /** * A UUID. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NotificationEventCondition.java b/src/main/java/com/telnyx/sdk/model/NotificationEventCondition.java index 4acbabd7..9f59d623 100644 --- a/src/main/java/com/telnyx/sdk/model/NotificationEventCondition.java +++ b/src/main/java/com/telnyx/sdk/model/NotificationEventCondition.java @@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.NotificationEventConditionParameters; +import com.telnyx.sdk.model.NotificationEventConditionParametersInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; @@ -102,7 +102,7 @@ public static AssociatedRecordTypeEnum fromValue(String value) { private AssociatedRecordTypeEnum associatedRecordType; public static final String JSON_PROPERTY_PARAMETERS = "parameters"; - private List parameters = null; + private List parameters = null; public static final String JSON_PROPERTY_ENABLED = "enabled"; private Boolean enabled; @@ -125,6 +125,14 @@ public static AssociatedRecordTypeEnum fromValue(String value) { public NotificationEventCondition() { } + @JsonCreator + public NotificationEventCondition( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { + this(); + this.id = id; + } + /** * A UUID. * @return id @@ -245,12 +253,12 @@ public void setAssociatedRecordType(AssociatedRecordTypeEnum associatedRecordTyp } - public NotificationEventCondition parameters(List parameters) { + public NotificationEventCondition parameters(List parameters) { this.parameters = parameters; return this; } - public NotificationEventCondition addParametersItem(NotificationEventConditionParameters parametersItem) { + public NotificationEventCondition addParametersItem(NotificationEventConditionParametersInner parametersItem) { if (this.parameters == null) { this.parameters = new ArrayList<>(); } @@ -267,14 +275,14 @@ public NotificationEventCondition addParametersItem(NotificationEventConditionPa @JsonProperty(JSON_PROPERTY_PARAMETERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getParameters() { + public List getParameters() { return parameters; } @JsonProperty(JSON_PROPERTY_PARAMETERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParameters(List parameters) { + public void setParameters(List parameters) { this.parameters = parameters; } diff --git a/src/main/java/com/telnyx/sdk/model/NotificationEventConditionParametersInner.java b/src/main/java/com/telnyx/sdk/model/NotificationEventConditionParametersInner.java new file mode 100644 index 00000000..db97072e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NotificationEventConditionParametersInner.java @@ -0,0 +1,176 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NotificationEventConditionParametersInner + */ +@JsonPropertyOrder({ + NotificationEventConditionParametersInner.JSON_PROPERTY_NAME, + NotificationEventConditionParametersInner.JSON_PROPERTY_OPTIONAL, + NotificationEventConditionParametersInner.JSON_PROPERTY_DATA_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NotificationEventConditionParametersInner { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_OPTIONAL = "optional"; + private Boolean optional; + + public static final String JSON_PROPERTY_DATA_TYPE = "data_type"; + private String dataType; + + public NotificationEventConditionParametersInner() { + } + + public NotificationEventConditionParametersInner name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "phone_number", value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public NotificationEventConditionParametersInner optional(Boolean optional) { + this.optional = optional; + return this; + } + + /** + * Get optional + * @return optional + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "") + @JsonProperty(JSON_PROPERTY_OPTIONAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getOptional() { + return optional; + } + + + @JsonProperty(JSON_PROPERTY_OPTIONAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setOptional(Boolean optional) { + this.optional = optional; + } + + + public NotificationEventConditionParametersInner dataType(String dataType) { + this.dataType = dataType; + return this; + } + + /** + * Get dataType + * @return dataType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "string", value = "") + @JsonProperty(JSON_PROPERTY_DATA_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDataType() { + return dataType; + } + + + @JsonProperty(JSON_PROPERTY_DATA_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDataType(String dataType) { + this.dataType = dataType; + } + + + /** + * Return true if this NotificationEventCondition_parameters_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotificationEventConditionParametersInner notificationEventConditionParametersInner = (NotificationEventConditionParametersInner) o; + return Objects.equals(this.name, notificationEventConditionParametersInner.name) && + Objects.equals(this.optional, notificationEventConditionParametersInner.optional) && + Objects.equals(this.dataType, notificationEventConditionParametersInner.dataType); + } + + @Override + public int hashCode() { + return Objects.hash(name, optional, dataType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NotificationEventConditionParametersInner {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" optional: ").append(toIndentedString(optional)).append("\n"); + sb.append(" dataType: ").append(toIndentedString(dataType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NotificationProfile.java b/src/main/java/com/telnyx/sdk/model/NotificationProfile.java index bf257461..e13b37bb 100644 --- a/src/main/java/com/telnyx/sdk/model/NotificationProfile.java +++ b/src/main/java/com/telnyx/sdk/model/NotificationProfile.java @@ -56,6 +56,18 @@ public class NotificationProfile { public NotificationProfile() { } + @JsonCreator + public NotificationProfile( + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.id = id; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * A UUID. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NotificationSetting.java b/src/main/java/com/telnyx/sdk/model/NotificationSetting.java index 37cf4a63..08c245e6 100644 --- a/src/main/java/com/telnyx/sdk/model/NotificationSetting.java +++ b/src/main/java/com/telnyx/sdk/model/NotificationSetting.java @@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.NotificationSettingParameters; +import com.telnyx.sdk.model.NotificationSettingParametersInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; @@ -118,7 +118,7 @@ public static StatusEnum fromValue(String value) { private String notificationChannelId; public static final String JSON_PROPERTY_PARAMETERS = "parameters"; - private List parameters = null; + private List parameters = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private OffsetDateTime createdAt; @@ -129,6 +129,24 @@ public static StatusEnum fromValue(String value) { public NotificationSetting() { } + @JsonCreator + public NotificationSetting( + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_ASSOCIATED_RECORD_TYPE) String associatedRecordType, + @JsonProperty(JSON_PROPERTY_ASSOCIATED_RECORD_TYPE_VALUE) String associatedRecordTypeValue, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.id = id; + this.associatedRecordType = associatedRecordType; + this.associatedRecordTypeValue = associatedRecordTypeValue; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * A UUID. * @return id @@ -271,12 +289,12 @@ public void setNotificationChannelId(String notificationChannelId) { } - public NotificationSetting parameters(List parameters) { + public NotificationSetting parameters(List parameters) { this.parameters = parameters; return this; } - public NotificationSetting addParametersItem(NotificationSettingParameters parametersItem) { + public NotificationSetting addParametersItem(NotificationSettingParametersInner parametersItem) { if (this.parameters == null) { this.parameters = new ArrayList<>(); } @@ -293,14 +311,14 @@ public NotificationSetting addParametersItem(NotificationSettingParameters param @JsonProperty(JSON_PROPERTY_PARAMETERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getParameters() { + public List getParameters() { return parameters; } @JsonProperty(JSON_PROPERTY_PARAMETERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setParameters(List parameters) { + public void setParameters(List parameters) { this.parameters = parameters; } diff --git a/src/main/java/com/telnyx/sdk/model/NotificationSettingParametersInner.java b/src/main/java/com/telnyx/sdk/model/NotificationSettingParametersInner.java new file mode 100644 index 00000000..6f0e099b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/NotificationSettingParametersInner.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * NotificationSettingParametersInner + */ +@JsonPropertyOrder({ + NotificationSettingParametersInner.JSON_PROPERTY_NAME, + NotificationSettingParametersInner.JSON_PROPERTY_VALUE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class NotificationSettingParametersInner { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_VALUE = "value"; + private String value; + + public NotificationSettingParametersInner() { + } + + public NotificationSettingParametersInner name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "phone_number", value = "") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public NotificationSettingParametersInner value(String value) { + this.value = value; + return this; + } + + /** + * Get value + * @return value + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "+13125550000", value = "") + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getValue() { + return value; + } + + + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValue(String value) { + this.value = value; + } + + + /** + * Return true if this NotificationSetting_parameters_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotificationSettingParametersInner notificationSettingParametersInner = (NotificationSettingParametersInner) o; + return Objects.equals(this.name, notificationSettingParametersInner.name) && + Objects.equals(this.value, notificationSettingParametersInner.value); + } + + @Override + public int hashCode() { + return Objects.hash(name, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NotificationSettingParametersInner {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/NumberBlockOrder.java b/src/main/java/com/telnyx/sdk/model/NumberBlockOrder.java index 9b5b222e..a3b1f6f8 100644 --- a/src/main/java/com/telnyx/sdk/model/NumberBlockOrder.java +++ b/src/main/java/com/telnyx/sdk/model/NumberBlockOrder.java @@ -124,6 +124,26 @@ public static StatusEnum fromValue(String value) { public NumberBlockOrder() { } + @JsonCreator + public NumberBlockOrder( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_COUNT) Integer phoneNumbersCount, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet + ) { + this(); + this.id = id; + this.recordType = recordType; + this.phoneNumbersCount = phoneNumbersCount; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.requirementsMet = requirementsMet; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NumberOrder.java b/src/main/java/com/telnyx/sdk/model/NumberOrder.java index 2e8641bf..82c77e34 100644 --- a/src/main/java/com/telnyx/sdk/model/NumberOrder.java +++ b/src/main/java/com/telnyx/sdk/model/NumberOrder.java @@ -126,6 +126,26 @@ public static StatusEnum fromValue(String value) { public NumberOrder() { } + @JsonCreator + public NumberOrder( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_COUNT) Integer phoneNumbersCount, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet + ) { + this(); + this.id = id; + this.recordType = recordType; + this.phoneNumbersCount = phoneNumbersCount; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.requirementsMet = requirementsMet; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NumberOrderDocument.java b/src/main/java/com/telnyx/sdk/model/NumberOrderDocument.java index 1f3c5bb7..88ae3344 100644 --- a/src/main/java/com/telnyx/sdk/model/NumberOrderDocument.java +++ b/src/main/java/com/telnyx/sdk/model/NumberOrderDocument.java @@ -104,6 +104,20 @@ public static RequirementTypeEnum fromValue(String value) { public NumberOrderDocument() { } + @JsonCreator + public NumberOrderDocument( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_REQUIREMENT_TYPE) RequirementTypeEnum requirementType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.requirementType = requirementType; + this.createdAt = createdAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NumberOrderPhoneNumber.java b/src/main/java/com/telnyx/sdk/model/NumberOrderPhoneNumber.java index 034e83e1..a3b47522 100644 --- a/src/main/java/com/telnyx/sdk/model/NumberOrderPhoneNumber.java +++ b/src/main/java/com/telnyx/sdk/model/NumberOrderPhoneNumber.java @@ -162,6 +162,20 @@ public static StatusEnum fromValue(String value) { public NumberOrderPhoneNumber() { } + @JsonCreator + public NumberOrderPhoneNumber( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status + ) { + this(); + this.id = id; + this.recordType = recordType; + this.requirementsMet = requirementsMet; + this.status = status; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NumberOrderWithPhoneNumbers.java b/src/main/java/com/telnyx/sdk/model/NumberOrderWithPhoneNumbers.java index f80c4595..bb12b1bd 100644 --- a/src/main/java/com/telnyx/sdk/model/NumberOrderWithPhoneNumbers.java +++ b/src/main/java/com/telnyx/sdk/model/NumberOrderWithPhoneNumbers.java @@ -133,6 +133,26 @@ public static StatusEnum fromValue(String value) { public NumberOrderWithPhoneNumbers() { } + @JsonCreator + public NumberOrderWithPhoneNumbers( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_COUNT) Integer phoneNumbersCount, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet + ) { + this(); + this.id = id; + this.recordType = recordType; + this.phoneNumbersCount = phoneNumbersCount; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.requirementsMet = requirementsMet; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/NumberReservation.java b/src/main/java/com/telnyx/sdk/model/NumberReservation.java index dd5e1f67..12c59bc6 100644 --- a/src/main/java/com/telnyx/sdk/model/NumberReservation.java +++ b/src/main/java/com/telnyx/sdk/model/NumberReservation.java @@ -107,6 +107,22 @@ public static StatusEnum fromValue(String value) { public NumberReservation() { } + @JsonCreator + public NumberReservation( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/OTAUpdateGET200Response.java b/src/main/java/com/telnyx/sdk/model/OTAUpdateGET200Response.java new file mode 100644 index 00000000..21772a2b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/OTAUpdateGET200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CompleteOTAUpdate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * OTAUpdateGET200Response + */ +@JsonPropertyOrder({ + OTAUpdateGET200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class OTAUpdateGET200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private CompleteOTAUpdate data; + + public OTAUpdateGET200Response() { + } + + public OTAUpdateGET200Response data(CompleteOTAUpdate data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CompleteOTAUpdate getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(CompleteOTAUpdate data) { + this.data = data; + } + + + /** + * Return true if this OTAUpdateGET_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OTAUpdateGET200Response otAUpdateGET200Response = (OTAUpdateGET200Response) o; + return Objects.equals(this.data, otAUpdateGET200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OTAUpdateGET200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/OTAUpdatesList200Response.java b/src/main/java/com/telnyx/sdk/model/OTAUpdatesList200Response.java new file mode 100644 index 00000000..c2d025d5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/OTAUpdatesList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SimplifiedOTAUpdate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * OTAUpdatesList200Response + */ +@JsonPropertyOrder({ + OTAUpdatesList200Response.JSON_PROPERTY_DATA, + OTAUpdatesList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class OTAUpdatesList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public OTAUpdatesList200Response() { + } + + public OTAUpdatesList200Response data(List data) { + this.data = data; + return this; + } + + public OTAUpdatesList200Response addDataItem(SimplifiedOTAUpdate dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public OTAUpdatesList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this OTAUpdatesList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OTAUpdatesList200Response otAUpdatesList200Response = (OTAUpdatesList200Response) o; + return Objects.equals(this.data, otAUpdatesList200Response.data) && + Objects.equals(this.meta, otAUpdatesList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OTAUpdatesList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/OutboundIp.java b/src/main/java/com/telnyx/sdk/model/OutboundIp.java index b961cdee..4b51efa9 100644 --- a/src/main/java/com/telnyx/sdk/model/OutboundIp.java +++ b/src/main/java/com/telnyx/sdk/model/OutboundIp.java @@ -103,7 +103,7 @@ public static AniOverrideTypeEnum fromValue(String value) { private Boolean generateRingbackTone = false; public static final String JSON_PROPERTY_LOCALIZATION = "localization"; - private String localization = "null"; + private String localization; /** * This setting only affects connections with Fax-type Outbound Voice Profiles. The setting dictates whether or not Telnyx sends a t.38 reinvite.<br/><br/> By default, Telnyx will send the re-invite. If set to `customer`, the caller is expected to send the t.38 reinvite. @@ -193,7 +193,7 @@ public static IpAuthenticationMethodEnum fromValue(String value) { private IpAuthenticationMethodEnum ipAuthenticationMethod = IpAuthenticationMethodEnum.TECH_PREFIXP_CHARGE_INFO; public static final String JSON_PROPERTY_IP_AUTHENTICATION_TOKEN = "ip_authentication_token"; - private String ipAuthenticationToken = "null"; + private String ipAuthenticationToken; public static final String JSON_PROPERTY_OUTBOUND_VOICE_PROFILE_ID = "outbound_voice_profile_id"; private String outboundVoiceProfileId; diff --git a/src/main/java/com/telnyx/sdk/model/OutboundMessagePayload.java b/src/main/java/com/telnyx/sdk/model/OutboundMessagePayload.java index bcb53f19..b9c36e21 100644 --- a/src/main/java/com/telnyx/sdk/model/OutboundMessagePayload.java +++ b/src/main/java/com/telnyx/sdk/model/OutboundMessagePayload.java @@ -25,8 +25,8 @@ import com.telnyx.sdk.model.Error; import com.telnyx.sdk.model.InboundMessagePayloadCost; import com.telnyx.sdk.model.OutboundMessagePayloadFrom; -import com.telnyx.sdk.model.OutboundMessagePayloadMedia; -import com.telnyx.sdk.model.OutboundMessagePayloadTo; +import com.telnyx.sdk.model.OutboundMessagePayloadMediaInner; +import com.telnyx.sdk.model.OutboundMessagePayloadToInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.time.OffsetDateTime; @@ -193,7 +193,7 @@ public static TypeEnum fromValue(String value) { private OutboundMessagePayloadFrom from; public static final String JSON_PROPERTY_TO = "to"; - private List to = null; + private List to = null; public static final String JSON_PROPERTY_TEXT = "text"; private String text; @@ -202,7 +202,7 @@ public static TypeEnum fromValue(String value) { private JsonNullable subject = JsonNullable.undefined(); public static final String JSON_PROPERTY_MEDIA = "media"; - private List media = null; + private List media = null; public static final String JSON_PROPERTY_WEBHOOK_URL = "webhook_url"; private JsonNullable webhookUrl = JsonNullable.undefined(); @@ -422,12 +422,12 @@ public void setFrom(OutboundMessagePayloadFrom from) { } - public OutboundMessagePayload to(List to) { + public OutboundMessagePayload to(List to) { this.to = to; return this; } - public OutboundMessagePayload addToItem(OutboundMessagePayloadTo toItem) { + public OutboundMessagePayload addToItem(OutboundMessagePayloadToInner toItem) { if (this.to == null) { this.to = new ArrayList<>(); } @@ -444,14 +444,14 @@ public OutboundMessagePayload addToItem(OutboundMessagePayloadTo toItem) { @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getTo() { + public List getTo() { return to; } @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setTo(List to) { + public void setTo(List to) { this.to = to; } @@ -516,12 +516,12 @@ public void setSubject(String subject) { } - public OutboundMessagePayload media(List media) { + public OutboundMessagePayload media(List media) { this.media = media; return this; } - public OutboundMessagePayload addMediaItem(OutboundMessagePayloadMedia mediaItem) { + public OutboundMessagePayload addMediaItem(OutboundMessagePayloadMediaInner mediaItem) { if (this.media == null) { this.media = new ArrayList<>(); } @@ -538,14 +538,14 @@ public OutboundMessagePayload addMediaItem(OutboundMessagePayloadMedia mediaItem @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getMedia() { + public List getMedia() { return media; } @JsonProperty(JSON_PROPERTY_MEDIA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setMedia(List media) { + public void setMedia(List media) { this.media = media; } diff --git a/src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInner.java b/src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInner.java new file mode 100644 index 00000000..c5a2c000 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInner.java @@ -0,0 +1,247 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * OutboundMessagePayloadMediaInner + */ +@JsonPropertyOrder({ + OutboundMessagePayloadMediaInner.JSON_PROPERTY_URL, + OutboundMessagePayloadMediaInner.JSON_PROPERTY_CONTENT_TYPE, + OutboundMessagePayloadMediaInner.JSON_PROPERTY_SHA256, + OutboundMessagePayloadMediaInner.JSON_PROPERTY_SIZE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class OutboundMessagePayloadMediaInner { + public static final String JSON_PROPERTY_URL = "url"; + private String url; + + public static final String JSON_PROPERTY_CONTENT_TYPE = "content_type"; + private JsonNullable contentType = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_SHA256 = "sha256"; + private JsonNullable sha256 = JsonNullable.undefined(); + + public static final String JSON_PROPERTY_SIZE = "size"; + private JsonNullable size = JsonNullable.undefined(); + + public OutboundMessagePayloadMediaInner() { + } + + public OutboundMessagePayloadMediaInner url(String url) { + this.url = url; + return this; + } + + /** + * The url of the media requested to be sent. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The url of the media requested to be sent.") + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUrl() { + return url; + } + + + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + + + public OutboundMessagePayloadMediaInner contentType(String contentType) { + this.contentType = JsonNullable.of(contentType); + return this; + } + + /** + * The MIME type of the requested media. + * @return contentType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The MIME type of the requested media.") + @JsonIgnore + + public String getContentType() { + return contentType.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getContentType_JsonNullable() { + return contentType; + } + + @JsonProperty(JSON_PROPERTY_CONTENT_TYPE) + public void setContentType_JsonNullable(JsonNullable contentType) { + this.contentType = contentType; + } + + public void setContentType(String contentType) { + this.contentType = JsonNullable.of(contentType); + } + + + public OutboundMessagePayloadMediaInner sha256(String sha256) { + this.sha256 = JsonNullable.of(sha256); + return this; + } + + /** + * The SHA256 hash of the requested media. + * @return sha256 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The SHA256 hash of the requested media.") + @JsonIgnore + + public String getSha256() { + return sha256.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_SHA256) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getSha256_JsonNullable() { + return sha256; + } + + @JsonProperty(JSON_PROPERTY_SHA256) + public void setSha256_JsonNullable(JsonNullable sha256) { + this.sha256 = sha256; + } + + public void setSha256(String sha256) { + this.sha256 = JsonNullable.of(sha256); + } + + + public OutboundMessagePayloadMediaInner size(Integer size) { + this.size = JsonNullable.of(size); + return this; + } + + /** + * The size of the requested media. + * @return size + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The size of the requested media.") + @JsonIgnore + + public Integer getSize() { + return size.orElse(null); + } + + @JsonProperty(JSON_PROPERTY_SIZE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public JsonNullable getSize_JsonNullable() { + return size; + } + + @JsonProperty(JSON_PROPERTY_SIZE) + public void setSize_JsonNullable(JsonNullable size) { + this.size = size; + } + + public void setSize(Integer size) { + this.size = JsonNullable.of(size); + } + + + /** + * Return true if this OutboundMessagePayload_media_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OutboundMessagePayloadMediaInner outboundMessagePayloadMediaInner = (OutboundMessagePayloadMediaInner) o; + return Objects.equals(this.url, outboundMessagePayloadMediaInner.url) && + equalsNullable(this.contentType, outboundMessagePayloadMediaInner.contentType) && + equalsNullable(this.sha256, outboundMessagePayloadMediaInner.sha256) && + equalsNullable(this.size, outboundMessagePayloadMediaInner.size); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(url, hashCodeNullable(contentType), hashCodeNullable(sha256), hashCodeNullable(size)); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OutboundMessagePayloadMediaInner {\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" contentType: ").append(toIndentedString(contentType)).append("\n"); + sb.append(" sha256: ").append(toIndentedString(sha256)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadToInner.java b/src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadToInner.java new file mode 100644 index 00000000..9cef9067 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/OutboundMessagePayloadToInner.java @@ -0,0 +1,298 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * OutboundMessagePayloadToInner + */ +@JsonPropertyOrder({ + OutboundMessagePayloadToInner.JSON_PROPERTY_PHONE_NUMBER, + OutboundMessagePayloadToInner.JSON_PROPERTY_STATUS, + OutboundMessagePayloadToInner.JSON_PROPERTY_CARRIER, + OutboundMessagePayloadToInner.JSON_PROPERTY_LINE_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class OutboundMessagePayloadToInner { + public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number"; + private String phoneNumber; + + /** + * The delivery status of the message. + */ + public enum StatusEnum { + QUEUED("queued"), + + SENDING("sending"), + + SENT("sent"), + + EXPIRED("expired"), + + SENDING_FAILED("sending_failed"), + + DELIVERY_UNCONFIRMED("delivery_unconfirmed"), + + DELIVERED("delivered"), + + DELIVERY_FAILED("delivery_failed"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public static final String JSON_PROPERTY_CARRIER = "carrier"; + private String carrier; + + /** + * The line-type of the receiver. + */ + public enum LineTypeEnum { + WIRELINE("Wireline"), + + WIRELESS("Wireless"), + + VOWIFI("VoWiFi"), + + VOIP("VoIP"), + + PRE_PAID_WIRELESS("Pre-Paid Wireless"), + + EMPTY(""); + + private String value; + + LineTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LineTypeEnum fromValue(String value) { + for (LineTypeEnum b : LineTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_LINE_TYPE = "line_type"; + private LineTypeEnum lineType; + + public OutboundMessagePayloadToInner() { + } + + public OutboundMessagePayloadToInner phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * Receiving address (+E.164 formatted phone number or short code). + * @return phoneNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Receiving address (+E.164 formatted phone number or short code).") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPhoneNumber() { + return phoneNumber; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + public OutboundMessagePayloadToInner status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * The delivery status of the message. + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The delivery status of the message.") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public OutboundMessagePayloadToInner carrier(String carrier) { + this.carrier = carrier; + return this; + } + + /** + * The carrier of the receiver. + * @return carrier + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The carrier of the receiver.") + @JsonProperty(JSON_PROPERTY_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCarrier() { + return carrier; + } + + + @JsonProperty(JSON_PROPERTY_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCarrier(String carrier) { + this.carrier = carrier; + } + + + public OutboundMessagePayloadToInner lineType(LineTypeEnum lineType) { + this.lineType = lineType; + return this; + } + + /** + * The line-type of the receiver. + * @return lineType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The line-type of the receiver.") + @JsonProperty(JSON_PROPERTY_LINE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LineTypeEnum getLineType() { + return lineType; + } + + + @JsonProperty(JSON_PROPERTY_LINE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLineType(LineTypeEnum lineType) { + this.lineType = lineType; + } + + + /** + * Return true if this OutboundMessagePayload_to_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OutboundMessagePayloadToInner outboundMessagePayloadToInner = (OutboundMessagePayloadToInner) o; + return Objects.equals(this.phoneNumber, outboundMessagePayloadToInner.phoneNumber) && + Objects.equals(this.status, outboundMessagePayloadToInner.status) && + Objects.equals(this.carrier, outboundMessagePayloadToInner.carrier) && + Objects.equals(this.lineType, outboundMessagePayloadToInner.lineType); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumber, status, carrier, lineType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OutboundMessagePayloadToInner {\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" carrier: ").append(toIndentedString(carrier)).append("\n"); + sb.append(" lineType: ").append(toIndentedString(lineType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PWGAssignedResourcesSummary.java b/src/main/java/com/telnyx/sdk/model/PWGAssignedResourcesSummary.java new file mode 100644 index 00000000..59a747e9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PWGAssignedResourcesSummary.java @@ -0,0 +1,135 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * The summary of the resource that have been assigned to the Private Wireless Gateway + */ +@ApiModel(description = "The summary of the resource that have been assigned to the Private Wireless Gateway") +@JsonPropertyOrder({ + PWGAssignedResourcesSummary.JSON_PROPERTY_RECORD_TYPE, + PWGAssignedResourcesSummary.JSON_PROPERTY_COUNT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PWGAssignedResourcesSummary { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_COUNT = "count"; + private Integer count; + + public PWGAssignedResourcesSummary() { + } + + @JsonCreator + public PWGAssignedResourcesSummary( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_COUNT) Integer count + ) { + this(); + this.recordType = recordType; + this.count = count; + } + + /** + * The type of the resource assigned to the Private Wireless Gateway + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "sim_card_group", value = "The type of the resource assigned to the Private Wireless Gateway") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * The current count of a resource type assigned to the Private Wireless Gateway + * @return count + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "The current count of a resource type assigned to the Private Wireless Gateway") + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getCount() { + return count; + } + + + + + /** + * Return true if this PWGAssignedResourcesSummary object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PWGAssignedResourcesSummary pwGAssignedResourcesSummary = (PWGAssignedResourcesSummary) o; + return Objects.equals(this.recordType, pwGAssignedResourcesSummary.recordType) && + Objects.equals(this.count, pwGAssignedResourcesSummary.count); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PWGAssignedResourcesSummary {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PatchGroupRequest.java b/src/main/java/com/telnyx/sdk/model/PatchGroupRequest.java new file mode 100644 index 00000000..8ebb1adf --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PatchGroupRequest.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PatchGroupRequest + */ +@JsonPropertyOrder({ + PatchGroupRequest.JSON_PROPERTY_CHANNELS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PatchGroupRequest { + public static final String JSON_PROPERTY_CHANNELS = "channels"; + private Long channels; + + public PatchGroupRequest() { + } + + public PatchGroupRequest channels(Long channels) { + this.channels = channels; + return this; + } + + /** + * Get channels + * @return channels + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Long getChannels() { + return channels; + } + + + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setChannels(Long channels) { + this.channels = channels; + } + + + /** + * Return true if this patchGroup_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PatchGroupRequest patchGroupRequest = (PatchGroupRequest) o; + return Objects.equals(this.channels, patchGroupRequest.channels); + } + + @Override + public int hashCode() { + return Objects.hash(channels); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PatchGroupRequest {\n"); + sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumber.java b/src/main/java/com/telnyx/sdk/model/PhoneNumber.java index 96ed1a45..f54d40f2 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumber.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumber.java @@ -42,7 +42,9 @@ PhoneNumber.JSON_PROPERTY_REGULATORY_GROUP_ID, PhoneNumber.JSON_PROPERTY_REGULATORY_REQUIREMENTS, PhoneNumber.JSON_PROPERTY_REQUIREMENTS_MET, - PhoneNumber.JSON_PROPERTY_STATUS + PhoneNumber.JSON_PROPERTY_REQUIREMENTS_STATUS, + PhoneNumber.JSON_PROPERTY_STATUS, + PhoneNumber.JSON_PROPERTY_PHONE_NUMBER_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PhoneNumber { @@ -64,6 +66,54 @@ public class PhoneNumber { public static final String JSON_PROPERTY_REQUIREMENTS_MET = "requirements_met"; private Boolean requirementsMet; + /** + * Status of document requirements (if applicable) + */ + public enum RequirementsStatusEnum { + PENDING("pending"), + + APPROVED("approved"), + + CANCELLED("cancelled"), + + DELETED("deleted"), + + REQUIREMENT_INFO_EXCEPTION("requirement-info-exception"), + + REQUIREMENT_INFO_PENDING("requirement-info-pending"), + + REQUIREMENT_INFO_UNDER_REVIEW("requirement-info-under-review"); + + private String value; + + RequirementsStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static RequirementsStatusEnum fromValue(String value) { + for (RequirementsStatusEnum b : RequirementsStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_REQUIREMENTS_STATUS = "requirements_status"; + private RequirementsStatusEnum requirementsStatus; + /** * The status of the phone number in the order. */ @@ -104,9 +154,73 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; + /** + * Phone number type + */ + public enum PhoneNumberTypeEnum { + LOCAL("local"), + + MOBILE("mobile"), + + NATIONAL("national"), + + SHARED_COST("shared_cost"), + + TOLL_FREE("toll_free"); + + private String value; + + PhoneNumberTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PhoneNumberTypeEnum fromValue(String value) { + for (PhoneNumberTypeEnum b : PhoneNumberTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PHONE_NUMBER_TYPE = "phone_number_type"; + private PhoneNumberTypeEnum phoneNumberType; + public PhoneNumber() { } + @JsonCreator + public PhoneNumber( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_REGULATORY_GROUP_ID) String regulatoryGroupId, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_STATUS) RequirementsStatusEnum requirementsStatus, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER_TYPE) PhoneNumberTypeEnum phoneNumberType + ) { + this(); + this.id = id; + this.recordType = recordType; + this.regulatoryGroupId = regulatoryGroupId; + this.requirementsMet = requirementsMet; + this.requirementsStatus = requirementsStatus; + this.status = status; + this.phoneNumberType = phoneNumberType; + } + /** * Get id * @return id @@ -231,6 +345,22 @@ public Boolean getRequirementsMet() { + /** + * Status of document requirements (if applicable) + * @return requirementsStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Status of document requirements (if applicable)") + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RequirementsStatusEnum getRequirementsStatus() { + return requirementsStatus; + } + + + + /** * The status of the phone number in the order. * @return status @@ -247,6 +377,22 @@ public StatusEnum getStatus() { + /** + * Phone number type + * @return phoneNumberType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Phone number type") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PhoneNumberTypeEnum getPhoneNumberType() { + return phoneNumberType; + } + + + + /** * Return true if this PhoneNumber object is equal to o. */ @@ -265,12 +411,14 @@ public boolean equals(Object o) { Objects.equals(this.regulatoryGroupId, phoneNumber.regulatoryGroupId) && Objects.equals(this.regulatoryRequirements, phoneNumber.regulatoryRequirements) && Objects.equals(this.requirementsMet, phoneNumber.requirementsMet) && - Objects.equals(this.status, phoneNumber.status); + Objects.equals(this.requirementsStatus, phoneNumber.requirementsStatus) && + Objects.equals(this.status, phoneNumber.status) && + Objects.equals(this.phoneNumberType, phoneNumber.phoneNumberType); } @Override public int hashCode() { - return Objects.hash(id, recordType, phoneNumber, regulatoryGroupId, regulatoryRequirements, requirementsMet, status); + return Objects.hash(id, recordType, phoneNumber, regulatoryGroupId, regulatoryRequirements, requirementsMet, requirementsStatus, status, phoneNumberType); } @Override @@ -283,7 +431,9 @@ public String toString() { sb.append(" regulatoryGroupId: ").append(toIndentedString(regulatoryGroupId)).append("\n"); sb.append(" regulatoryRequirements: ").append(toIndentedString(regulatoryRequirements)).append("\n"); sb.append(" requirementsMet: ").append(toIndentedString(requirementsMet)).append("\n"); + sb.append(" requirementsStatus: ").append(toIndentedString(requirementsStatus)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" phoneNumberType: ").append(toIndentedString(phoneNumberType)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJob.java b/src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJob.java index e829e484..85e6ca6f 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJob.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumberBlocksJob.java @@ -22,14 +22,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.PhoneNumberBlocksJobFailedOperation; -import com.telnyx.sdk.model.PhoneNumberBlocksJobSuccessfulOperation; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -38,266 +32,44 @@ * PhoneNumberBlocksJob */ @JsonPropertyOrder({ - PhoneNumberBlocksJob.JSON_PROPERTY_ID, - PhoneNumberBlocksJob.JSON_PROPERTY_RECORD_TYPE, - PhoneNumberBlocksJob.JSON_PROPERTY_STATUS, - PhoneNumberBlocksJob.JSON_PROPERTY_TYPE, - PhoneNumberBlocksJob.JSON_PROPERTY_ETC, - PhoneNumberBlocksJob.JSON_PROPERTY_CREATED_AT, - PhoneNumberBlocksJob.JSON_PROPERTY_UPDATED_AT, - PhoneNumberBlocksJob.JSON_PROPERTY_SUCCESSFUL_OPERATIONS, - PhoneNumberBlocksJob.JSON_PROPERTY_FAILED_OPERATIONS + PhoneNumberBlocksJob.JSON_PROPERTY_DATA }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PhoneNumberBlocksJob { - public static final String JSON_PROPERTY_ID = "id"; - private UUID id; - - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; - private String recordType; - - /** - * Indicates the completion status of the background operation. - */ - public enum StatusEnum { - PENDING("pending"), - - IN_PROGRESS("in_progress"), - - COMPLETED("completed"), - - FAILED("failed"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status = StatusEnum.PENDING; - - /** - * Identifies the type of the background job. - */ - public enum TypeEnum { - DELETE_PHONE_NUMBER_BLOCK("delete_phone_number_block"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; - - public static final String JSON_PROPERTY_ETC = "etc"; - private OffsetDateTime etc; - - public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - private String createdAt; - - public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; - private String updatedAt; - - public static final String JSON_PROPERTY_SUCCESSFUL_OPERATIONS = "successful_operations"; - private List successfulOperations = null; - - public static final String JSON_PROPERTY_FAILED_OPERATIONS = "failed_operations"; - private List failedOperations = null; + public static final String JSON_PROPERTY_DATA = "data"; + private PhoneNumberBlocksJob data; public PhoneNumberBlocksJob() { } - /** - * Identifies the resource. - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "42587e44-3a3e-46de-9255-0c9a7a1d1ec7", value = "Identifies the resource.") - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public UUID getId() { - return id; - } - - - - - /** - * Identifies the type of the resource. - * @return recordType - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "phone_number_block_job", value = "Identifies the type of the resource.") - @JsonProperty(JSON_PROPERTY_RECORD_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getRecordType() { - return recordType; + public PhoneNumberBlocksJob data(PhoneNumberBlocksJob data) { + this.data = data; + return this; } - - - /** - * Indicates the completion status of the background operation. - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "pending", value = "Indicates the completion status of the background operation.") - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public StatusEnum getStatus() { - return status; - } - - - - - /** - * Identifies the type of the background job. - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "delete_phone_number_block", value = "Identifies the type of the background job.") - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public TypeEnum getType() { - return type; - } - - - - - /** - * ISO 8601 formatted date indicating when the estimated time of completion of the background job. - * @return etc - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ISO 8601 formatted date indicating when the estimated time of completion of the background job.") - @JsonProperty(JSON_PROPERTY_ETC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OffsetDateTime getEtc() { - return etc; - } - - - - - /** - * ISO 8601 formatted date indicating when the resource was created. - * @return createdAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ISO 8601 formatted date indicating when the resource was created.") - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getCreatedAt() { - return createdAt; - } - - - - - /** - * ISO 8601 formatted date indicating when the resource was updated. - * @return updatedAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ISO 8601 formatted date indicating when the resource was updated.") - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getUpdatedAt() { - return updatedAt; - } - - - - - /** - * Get successfulOperations - * @return successfulOperations + * Get data + * @return data **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SUCCESSFUL_OPERATIONS) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getSuccessfulOperations() { - return successfulOperations; + public PhoneNumberBlocksJob getData() { + return data; } - - - /** - * Get failedOperations - * @return failedOperations - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FAILED_OPERATIONS) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getFailedOperations() { - return failedOperations; + public void setData(PhoneNumberBlocksJob data) { + this.data = data; } - - /** - * Return true if this PhoneNumberBlocksJob object is equal to o. + * Return true if this Phone_Number_Blocks_Job object is equal to o. */ @Override public boolean equals(Object o) { @@ -308,35 +80,19 @@ public boolean equals(Object o) { return false; } PhoneNumberBlocksJob phoneNumberBlocksJob = (PhoneNumberBlocksJob) o; - return Objects.equals(this.id, phoneNumberBlocksJob.id) && - Objects.equals(this.recordType, phoneNumberBlocksJob.recordType) && - Objects.equals(this.status, phoneNumberBlocksJob.status) && - Objects.equals(this.type, phoneNumberBlocksJob.type) && - Objects.equals(this.etc, phoneNumberBlocksJob.etc) && - Objects.equals(this.createdAt, phoneNumberBlocksJob.createdAt) && - Objects.equals(this.updatedAt, phoneNumberBlocksJob.updatedAt) && - Objects.equals(this.successfulOperations, phoneNumberBlocksJob.successfulOperations) && - Objects.equals(this.failedOperations, phoneNumberBlocksJob.failedOperations); + return Objects.equals(this.data, phoneNumberBlocksJob.data); } @Override public int hashCode() { - return Objects.hash(id, recordType, status, type, etc, createdAt, updatedAt, successfulOperations, failedOperations); + return Objects.hash(data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PhoneNumberBlocksJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" etc: ").append(toIndentedString(etc)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" successfulOperations: ").append(toIndentedString(successfulOperations)).append("\n"); - sb.append(" failedOperations: ").append(toIndentedString(failedOperations)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumberDeletedDetailed.java b/src/main/java/com/telnyx/sdk/model/PhoneNumberDeletedDetailed.java index 59e916fe..bd40ef40 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumberDeletedDetailed.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumberDeletedDetailed.java @@ -177,7 +177,7 @@ public static StatusEnum fromValue(String value) { private String updatedAt; /** - * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. + * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level. */ public enum NumberLevelRoutingEnum { ENABLED("enabled"), @@ -212,7 +212,7 @@ public static NumberLevelRoutingEnum fromValue(String value) { } public static final String JSON_PROPERTY_NUMBER_LEVEL_ROUTING = "number_level_routing"; - private NumberLevelRoutingEnum numberLevelRouting = NumberLevelRoutingEnum.ENABLED; + private NumberLevelRoutingEnum numberLevelRouting = NumberLevelRoutingEnum.DISABLED; /** * The phone number's type. @@ -263,6 +263,42 @@ public static PhoneNumberTypeEnum fromValue(String value) { public PhoneNumberDeletedDetailed() { } + @JsonCreator + public PhoneNumberDeletedDetailed( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) String phoneNumber, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CONNECTION_NAME) String connectionName, + @JsonProperty(JSON_PROPERTY_EMERGENCY_ENABLED) Boolean emergencyEnabled, + @JsonProperty(JSON_PROPERTY_EMERGENCY_ADDRESS_ID) String emergencyAddressId, + @JsonProperty(JSON_PROPERTY_CALL_FORWARDING_ENABLED) Boolean callForwardingEnabled, + @JsonProperty(JSON_PROPERTY_CNAM_LISTING_ENABLED) Boolean cnamListingEnabled, + @JsonProperty(JSON_PROPERTY_CALLER_ID_NAME_ENABLED) Boolean callerIdNameEnabled, + @JsonProperty(JSON_PROPERTY_CALL_RECORDING_ENABLED) Boolean callRecordingEnabled, + @JsonProperty(JSON_PROPERTY_T38_FAX_GATEWAY_ENABLED) Boolean t38FaxGatewayEnabled, + @JsonProperty(JSON_PROPERTY_PURCHASED_AT) String purchasedAt, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER_TYPE) PhoneNumberTypeEnum phoneNumberType + ) { + this(); + this.recordType = recordType; + this.phoneNumber = phoneNumber; + this.status = status; + this.connectionName = connectionName; + this.emergencyEnabled = emergencyEnabled; + this.emergencyAddressId = emergencyAddressId; + this.callForwardingEnabled = callForwardingEnabled; + this.cnamListingEnabled = cnamListingEnabled; + this.callerIdNameEnabled = callerIdNameEnabled; + this.callRecordingEnabled = callRecordingEnabled; + this.t38FaxGatewayEnabled = t38FaxGatewayEnabled; + this.purchasedAt = purchasedAt; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.phoneNumberType = phoneNumberType; + } + public PhoneNumberDeletedDetailed id(String id) { this.id = id; return this; @@ -709,11 +745,11 @@ public PhoneNumberDeletedDetailed numberLevelRouting(NumberLevelRoutingEnum numb } /** - * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. + * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level. * @return numberLevelRouting **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level.") + @ApiModelProperty(value = "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level.") @JsonProperty(JSON_PROPERTY_NUMBER_LEVEL_ROUTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumberDetailed.java b/src/main/java/com/telnyx/sdk/model/PhoneNumberDetailed.java index 44742688..659fb74d 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumberDetailed.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumberDetailed.java @@ -173,7 +173,7 @@ public static StatusEnum fromValue(String value) { private String createdAt; /** - * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. + * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level. */ public enum NumberLevelRoutingEnum { ENABLED("enabled"), @@ -208,7 +208,7 @@ public static NumberLevelRoutingEnum fromValue(String value) { } public static final String JSON_PROPERTY_NUMBER_LEVEL_ROUTING = "number_level_routing"; - private NumberLevelRoutingEnum numberLevelRouting = NumberLevelRoutingEnum.ENABLED; + private NumberLevelRoutingEnum numberLevelRouting = NumberLevelRoutingEnum.DISABLED; /** * The phone number's type. @@ -259,6 +259,40 @@ public static PhoneNumberTypeEnum fromValue(String value) { public PhoneNumberDetailed() { } + @JsonCreator + public PhoneNumberDetailed( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) String phoneNumber, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CONNECTION_NAME) String connectionName, + @JsonProperty(JSON_PROPERTY_EMERGENCY_ENABLED) Boolean emergencyEnabled, + @JsonProperty(JSON_PROPERTY_EMERGENCY_ADDRESS_ID) String emergencyAddressId, + @JsonProperty(JSON_PROPERTY_CALL_FORWARDING_ENABLED) Boolean callForwardingEnabled, + @JsonProperty(JSON_PROPERTY_CNAM_LISTING_ENABLED) Boolean cnamListingEnabled, + @JsonProperty(JSON_PROPERTY_CALLER_ID_NAME_ENABLED) Boolean callerIdNameEnabled, + @JsonProperty(JSON_PROPERTY_CALL_RECORDING_ENABLED) Boolean callRecordingEnabled, + @JsonProperty(JSON_PROPERTY_T38_FAX_GATEWAY_ENABLED) Boolean t38FaxGatewayEnabled, + @JsonProperty(JSON_PROPERTY_PURCHASED_AT) String purchasedAt, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER_TYPE) PhoneNumberTypeEnum phoneNumberType + ) { + this(); + this.recordType = recordType; + this.phoneNumber = phoneNumber; + this.status = status; + this.connectionName = connectionName; + this.emergencyEnabled = emergencyEnabled; + this.emergencyAddressId = emergencyAddressId; + this.callForwardingEnabled = callForwardingEnabled; + this.cnamListingEnabled = cnamListingEnabled; + this.callerIdNameEnabled = callerIdNameEnabled; + this.callRecordingEnabled = callRecordingEnabled; + this.t38FaxGatewayEnabled = t38FaxGatewayEnabled; + this.purchasedAt = purchasedAt; + this.createdAt = createdAt; + this.phoneNumberType = phoneNumberType; + } + public PhoneNumberDetailed id(String id) { this.id = id; return this; @@ -689,11 +723,11 @@ public PhoneNumberDetailed numberLevelRouting(NumberLevelRoutingEnum numberLevel } /** - * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level. + * Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level. * @return numberLevelRouting **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to enabled but will be changed to disabled in the future. There are performance advantages to using disabled and setting all routing information at the connection level.") + @ApiModelProperty(value = "Specifies whether the number can have overrides to the routing settings on itself (enabled) or if it uses the associated connection for all routing settings (disabled). Defaults to disabled or the value set on your user profile in default_number_routing_setting. There are performance advantages to using disabled and setting all routing information at the connection level.") @JsonProperty(JSON_PROPERTY_NUMBER_LEVEL_ROUTING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumberRegulatoryRequirement.java b/src/main/java/com/telnyx/sdk/model/PhoneNumberRegulatoryRequirement.java index 138a398b..e3a639c3 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumberRegulatoryRequirement.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumberRegulatoryRequirement.java @@ -96,6 +96,16 @@ public static FieldTypeEnum fromValue(String value) { public PhoneNumberRegulatoryRequirement() { } + @JsonCreator + public PhoneNumberRegulatoryRequirement( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) FieldTypeEnum fieldType + ) { + this(); + this.recordType = recordType; + this.fieldType = fieldType; + } + /** * Get recordType * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumberWithMessagingSettings.java b/src/main/java/com/telnyx/sdk/model/PhoneNumberWithMessagingSettings.java index 0ad3e670..fc39e193 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumberWithMessagingSettings.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumberWithMessagingSettings.java @@ -177,6 +177,30 @@ public static TypeEnum fromValue(String value) { public PhoneNumberWithMessagingSettings() { } + @JsonCreator + public PhoneNumberWithMessagingSettings( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType, + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) String phoneNumber, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt, + @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) String countryCode, + @JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type, + @JsonProperty(JSON_PROPERTY_ELIGIBLE_MESSAGING_PRODUCTS) List eligibleMessagingProducts, + @JsonProperty(JSON_PROPERTY_TRAFFIC_TYPE) String trafficType + ) { + this(); + this.recordType = recordType; + this.id = id; + this.phoneNumber = phoneNumber; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.countryCode = countryCode; + this.type = type; + this.eligibleMessagingProducts = eligibleMessagingProducts; + this.trafficType = trafficType; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumberWithVoiceSettings.java b/src/main/java/com/telnyx/sdk/model/PhoneNumberWithVoiceSettings.java index 2ffb7178..82264e1a 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumberWithVoiceSettings.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumberWithVoiceSettings.java @@ -130,6 +130,18 @@ public static UsagePaymentMethodEnum fromValue(String value) { public PhoneNumberWithVoiceSettings() { } + @JsonCreator + public PhoneNumberWithVoiceSettings( + @JsonProperty(JSON_PROPERTY_ID) String id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) String phoneNumber + ) { + this(); + this.id = id; + this.recordType = recordType; + this.phoneNumber = phoneNumber; + } + /** * Identifies the type of resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/PhoneNumbersJob.java b/src/main/java/com/telnyx/sdk/model/PhoneNumbersJob.java index c9717348..87d54ab3 100644 --- a/src/main/java/com/telnyx/sdk/model/PhoneNumbersJob.java +++ b/src/main/java/com/telnyx/sdk/model/PhoneNumbersJob.java @@ -22,16 +22,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.PhoneNumbersJobFailedOperation; -import com.telnyx.sdk.model.PhoneNumbersJobPendingOperation; -import com.telnyx.sdk.model.PhoneNumbersJobPhoneNumber; -import com.telnyx.sdk.model.PhoneNumbersJobSuccessfulOperation; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.time.OffsetDateTime; -import java.util.ArrayList; -import java.util.List; -import java.util.UUID; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -40,330 +32,44 @@ * PhoneNumbersJob */ @JsonPropertyOrder({ - PhoneNumbersJob.JSON_PROPERTY_ID, - PhoneNumbersJob.JSON_PROPERTY_RECORD_TYPE, - PhoneNumbersJob.JSON_PROPERTY_STATUS, - PhoneNumbersJob.JSON_PROPERTY_TYPE, - PhoneNumbersJob.JSON_PROPERTY_ETC, - PhoneNumbersJob.JSON_PROPERTY_CREATED_AT, - PhoneNumbersJob.JSON_PROPERTY_UPDATED_AT, - PhoneNumbersJob.JSON_PROPERTY_PHONE_NUMBERS, - PhoneNumbersJob.JSON_PROPERTY_SUCCESSFUL_OPERATIONS, - PhoneNumbersJob.JSON_PROPERTY_PENDING_OPERATIONS, - PhoneNumbersJob.JSON_PROPERTY_FAILED_OPERATIONS + PhoneNumbersJob.JSON_PROPERTY_DATA }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PhoneNumbersJob { - public static final String JSON_PROPERTY_ID = "id"; - private UUID id; - - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; - private String recordType; - - /** - * Indicates the completion status of the background update. - */ - public enum StatusEnum { - PENDING("pending"), - - IN_PROGRESS("in_progress"), - - COMPLETED("completed"), - - FAILED("failed"), - - EXPIRED("expired"); - - private String value; - - StatusEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static StatusEnum fromValue(String value) { - for (StatusEnum b : StatusEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_STATUS = "status"; - private StatusEnum status = StatusEnum.PENDING; - - /** - * Identifies the type of the background job. - */ - public enum TypeEnum { - UPDATE_EMERGENCY_SETTINGS("update_emergency_settings"), - - DELETE_PHONE_NUMBERS("delete_phone_numbers"), - - UPDATE_PHONE_NUMBERS("update_phone_numbers"); - - private String value; - - TypeEnum(String value) { - this.value = value; - } - - @JsonValue - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - @JsonCreator - public static TypeEnum fromValue(String value) { - for (TypeEnum b : TypeEnum.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - } - - public static final String JSON_PROPERTY_TYPE = "type"; - private TypeEnum type; - - public static final String JSON_PROPERTY_ETC = "etc"; - private OffsetDateTime etc; - - public static final String JSON_PROPERTY_CREATED_AT = "created_at"; - private String createdAt; - - public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; - private String updatedAt; - - public static final String JSON_PROPERTY_PHONE_NUMBERS = "phone_numbers"; - private List phoneNumbers = null; - - public static final String JSON_PROPERTY_SUCCESSFUL_OPERATIONS = "successful_operations"; - private List successfulOperations = null; - - public static final String JSON_PROPERTY_PENDING_OPERATIONS = "pending_operations"; - private List pendingOperations = null; - - public static final String JSON_PROPERTY_FAILED_OPERATIONS = "failed_operations"; - private List failedOperations = null; + public static final String JSON_PROPERTY_DATA = "data"; + private PhoneNumbersJob data; public PhoneNumbersJob() { } - /** - * Identifies the resource. - * @return id - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "42587e44-3a3e-46de-9255-0c9a7a1d1ec7", value = "Identifies the resource.") - @JsonProperty(JSON_PROPERTY_ID) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public UUID getId() { - return id; - } - - - - - /** - * Identifies the type of the resource. - * @return recordType - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "phone_numbers_job", value = "Identifies the type of the resource.") - @JsonProperty(JSON_PROPERTY_RECORD_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getRecordType() { - return recordType; - } - - - - - /** - * Indicates the completion status of the background update. - * @return status - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "pending", value = "Indicates the completion status of the background update.") - @JsonProperty(JSON_PROPERTY_STATUS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public StatusEnum getStatus() { - return status; - } - - - - - /** - * Identifies the type of the background job. - * @return type - **/ - @javax.annotation.Nullable - @ApiModelProperty(example = "update_emergency_settings", value = "Identifies the type of the background job.") - @JsonProperty(JSON_PROPERTY_TYPE) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public TypeEnum getType() { - return type; - } - - - - - /** - * ISO 8601 formatted date indicating when the estimated time of completion of the background job. - * @return etc - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ISO 8601 formatted date indicating when the estimated time of completion of the background job.") - @JsonProperty(JSON_PROPERTY_ETC) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public OffsetDateTime getEtc() { - return etc; - } - - - - - /** - * ISO 8601 formatted date indicating when the resource was created. - * @return createdAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ISO 8601 formatted date indicating when the resource was created.") - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getCreatedAt() { - return createdAt; - } - - - - - /** - * ISO 8601 formatted date indicating when the resource was updated. - * @return updatedAt - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "ISO 8601 formatted date indicating when the resource was updated.") - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public String getUpdatedAt() { - return updatedAt; - } - - - - - public PhoneNumbersJob phoneNumbers(List phoneNumbers) { - this.phoneNumbers = phoneNumbers; - return this; - } - - public PhoneNumbersJob addPhoneNumbersItem(PhoneNumbersJobPhoneNumber phoneNumbersItem) { - if (this.phoneNumbers == null) { - this.phoneNumbers = new ArrayList<>(); - } - this.phoneNumbers.add(phoneNumbersItem); + public PhoneNumbersJob data(PhoneNumbersJob data) { + this.data = data; return this; } /** - * Get phoneNumbers - * @return phoneNumbers + * Get data + * @return data **/ @javax.annotation.Nullable @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPhoneNumbers() { - return phoneNumbers; + public PhoneNumbersJob getData() { + return data; } - @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhoneNumbers(List phoneNumbers) { - this.phoneNumbers = phoneNumbers; - } - - - /** - * Get successfulOperations - * @return successfulOperations - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_SUCCESSFUL_OPERATIONS) + @JsonProperty(JSON_PROPERTY_DATA) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getSuccessfulOperations() { - return successfulOperations; + public void setData(PhoneNumbersJob data) { + this.data = data; } - - - /** - * Get pendingOperations - * @return pendingOperations - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_PENDING_OPERATIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getPendingOperations() { - return pendingOperations; - } - - - - - /** - * Get failedOperations - * @return failedOperations - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - @JsonProperty(JSON_PROPERTY_FAILED_OPERATIONS) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - - public List getFailedOperations() { - return failedOperations; - } - - - - /** - * Return true if this PhoneNumbersJob object is equal to o. + * Return true if this Phone_Numbers_Job object is equal to o. */ @Override public boolean equals(Object o) { @@ -374,39 +80,19 @@ public boolean equals(Object o) { return false; } PhoneNumbersJob phoneNumbersJob = (PhoneNumbersJob) o; - return Objects.equals(this.id, phoneNumbersJob.id) && - Objects.equals(this.recordType, phoneNumbersJob.recordType) && - Objects.equals(this.status, phoneNumbersJob.status) && - Objects.equals(this.type, phoneNumbersJob.type) && - Objects.equals(this.etc, phoneNumbersJob.etc) && - Objects.equals(this.createdAt, phoneNumbersJob.createdAt) && - Objects.equals(this.updatedAt, phoneNumbersJob.updatedAt) && - Objects.equals(this.phoneNumbers, phoneNumbersJob.phoneNumbers) && - Objects.equals(this.successfulOperations, phoneNumbersJob.successfulOperations) && - Objects.equals(this.pendingOperations, phoneNumbersJob.pendingOperations) && - Objects.equals(this.failedOperations, phoneNumbersJob.failedOperations); + return Objects.equals(this.data, phoneNumbersJob.data); } @Override public int hashCode() { - return Objects.hash(id, recordType, status, type, etc, createdAt, updatedAt, phoneNumbers, successfulOperations, pendingOperations, failedOperations); + return Objects.hash(data); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PhoneNumbersJob {\n"); - sb.append(" id: ").append(toIndentedString(id)).append("\n"); - sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); - sb.append(" status: ").append(toIndentedString(status)).append("\n"); - sb.append(" type: ").append(toIndentedString(type)).append("\n"); - sb.append(" etc: ").append(toIndentedString(etc)).append("\n"); - sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); - sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); - sb.append(" phoneNumbers: ").append(toIndentedString(phoneNumbers)).append("\n"); - sb.append(" successfulOperations: ").append(toIndentedString(successfulOperations)).append("\n"); - sb.append(" pendingOperations: ").append(toIndentedString(pendingOperations)).append("\n"); - sb.append(" failedOperations: ").append(toIndentedString(failedOperations)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/PlayAudioUrlRequest.java b/src/main/java/com/telnyx/sdk/model/PlayAudioUrlRequest.java index 162b3a17..32a9e541 100644 --- a/src/main/java/com/telnyx/sdk/model/PlayAudioUrlRequest.java +++ b/src/main/java/com/telnyx/sdk/model/PlayAudioUrlRequest.java @@ -40,6 +40,7 @@ PlayAudioUrlRequest.JSON_PROPERTY_STOP, PlayAudioUrlRequest.JSON_PROPERTY_TARGET_LEGS, PlayAudioUrlRequest.JSON_PROPERTY_CACHE_AUDIO, + PlayAudioUrlRequest.JSON_PROPERTY_PLAYBACK_CONTENT, PlayAudioUrlRequest.JSON_PROPERTY_CLIENT_STATE, PlayAudioUrlRequest.JSON_PROPERTY_COMMAND_ID }) @@ -66,6 +67,9 @@ public class PlayAudioUrlRequest { public static final String JSON_PROPERTY_CACHE_AUDIO = "cache_audio"; private Boolean cacheAudio = true; + public static final String JSON_PROPERTY_PLAYBACK_CONTENT = "playback_content"; + private String playbackContent; + public static final String JSON_PROPERTY_CLIENT_STATE = "client_state"; private String clientState; @@ -257,6 +261,32 @@ public void setCacheAudio(Boolean cacheAudio) { } + public PlayAudioUrlRequest playbackContent(String playbackContent) { + this.playbackContent = playbackContent; + return this; + } + + /** + * Allows a user to provide base64 encoded mp3. Note: when using this parameter, `media_url` and `media_name` in the `playback_started` and `playback_ended` webhooks will be empty + * @return playbackContent + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "SUQzAwAAAAADf1...", value = "Allows a user to provide base64 encoded mp3. Note: when using this parameter, `media_url` and `media_name` in the `playback_started` and `playback_ended` webhooks will be empty") + @JsonProperty(JSON_PROPERTY_PLAYBACK_CONTENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPlaybackContent() { + return playbackContent; + } + + + @JsonProperty(JSON_PROPERTY_PLAYBACK_CONTENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPlaybackContent(String playbackContent) { + this.playbackContent = playbackContent; + } + + public PlayAudioUrlRequest clientState(String clientState) { this.clientState = clientState; return this; @@ -328,13 +358,14 @@ public boolean equals(Object o) { Objects.equals(this.stop, playAudioUrlRequest.stop) && Objects.equals(this.targetLegs, playAudioUrlRequest.targetLegs) && Objects.equals(this.cacheAudio, playAudioUrlRequest.cacheAudio) && + Objects.equals(this.playbackContent, playAudioUrlRequest.playbackContent) && Objects.equals(this.clientState, playAudioUrlRequest.clientState) && Objects.equals(this.commandId, playAudioUrlRequest.commandId); } @Override public int hashCode() { - return Objects.hash(audioUrl, mediaName, loop, overlay, stop, targetLegs, cacheAudio, clientState, commandId); + return Objects.hash(audioUrl, mediaName, loop, overlay, stop, targetLegs, cacheAudio, playbackContent, clientState, commandId); } @Override @@ -348,6 +379,7 @@ public String toString() { sb.append(" stop: ").append(toIndentedString(stop)).append("\n"); sb.append(" targetLegs: ").append(toIndentedString(targetLegs)).append("\n"); sb.append(" cacheAudio: ").append(toIndentedString(cacheAudio)).append("\n"); + sb.append(" playbackContent: ").append(toIndentedString(playbackContent)).append("\n"); sb.append(" clientState: ").append(toIndentedString(clientState)).append("\n"); sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/telnyx/sdk/model/PortOutSupportingDocument.java b/src/main/java/com/telnyx/sdk/model/PortOutSupportingDocument.java index 9fea19cb..68f16093 100644 --- a/src/main/java/com/telnyx/sdk/model/PortOutSupportingDocument.java +++ b/src/main/java/com/telnyx/sdk/model/PortOutSupportingDocument.java @@ -102,6 +102,18 @@ public static TypeEnum fromValue(String value) { public PortOutSupportingDocument() { } + @JsonCreator + public PortOutSupportingDocument( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type, + @JsonProperty(JSON_PROPERTY_PORTOUT_ID) UUID portoutId + ) { + this(); + this.recordType = recordType; + this.type = type; + this.portoutId = portoutId; + } + public PortOutSupportingDocument id(UUID id) { this.id = id; return this; diff --git a/src/main/java/com/telnyx/sdk/model/PortabilityCheckDetails.java b/src/main/java/com/telnyx/sdk/model/PortabilityCheckDetails.java index fec2e1c6..f46e6e3e 100644 --- a/src/main/java/com/telnyx/sdk/model/PortabilityCheckDetails.java +++ b/src/main/java/com/telnyx/sdk/model/PortabilityCheckDetails.java @@ -58,6 +58,22 @@ public class PortabilityCheckDetails { public PortabilityCheckDetails() { } + @JsonCreator + public PortabilityCheckDetails( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_FAST_PORTABLE) Boolean fastPortable, + @JsonProperty(JSON_PROPERTY_NOT_PORTABLE_REASON) String notPortableReason, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) String phoneNumber, + @JsonProperty(JSON_PROPERTY_PORTABLE) Boolean portable + ) { + this(); + this.recordType = recordType; + this.fastPortable = fastPortable; + this.notPortableReason = notPortableReason; + this.phoneNumber = phoneNumber; + this.portable = portable; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/PortingOrder.java b/src/main/java/com/telnyx/sdk/model/PortingOrder.java index c4fb3193..e19fa31d 100644 --- a/src/main/java/com/telnyx/sdk/model/PortingOrder.java +++ b/src/main/java/com/telnyx/sdk/model/PortingOrder.java @@ -46,6 +46,7 @@ */ @JsonPropertyOrder({ PortingOrder.JSON_PROPERTY_ID, + PortingOrder.JSON_PROPERTY_CUSTOMER_REFERENCE, PortingOrder.JSON_PROPERTY_CREATED_AT, PortingOrder.JSON_PROPERTY_UPDATED_AT, PortingOrder.JSON_PROPERTY_STATUS, @@ -58,11 +59,13 @@ PortingOrder.JSON_PROPERTY_END_USER, PortingOrder.JSON_PROPERTY_ACTIVATION_SETTINGS, PortingOrder.JSON_PROPERTY_PHONE_NUMBER_CONFIGURATION, + PortingOrder.JSON_PROPERTY_PHONE_NUMBER_TYPE, PortingOrder.JSON_PROPERTY_DESCRIPTION, PortingOrder.JSON_PROPERTY_REQUIREMENTS, + PortingOrder.JSON_PROPERTY_REQUIREMENTS_MET, PortingOrder.JSON_PROPERTY_USER_FEEDBACK, + PortingOrder.JSON_PROPERTY_USER_ID, PortingOrder.JSON_PROPERTY_WEBHOOK_URL, - PortingOrder.JSON_PROPERTY_USER_REFERENCE, PortingOrder.JSON_PROPERTY_RECORD_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -70,6 +73,9 @@ public class PortingOrder { public static final String JSON_PROPERTY_ID = "id"; private UUID id; + public static final String JSON_PROPERTY_CUSTOMER_REFERENCE = "customer_reference"; + private String customerReference; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private OffsetDateTime createdAt; @@ -106,27 +112,100 @@ public class PortingOrder { public static final String JSON_PROPERTY_PHONE_NUMBER_CONFIGURATION = "phone_number_configuration"; private PortingOrderPhoneNumberConfiguration phoneNumberConfiguration; + /** + * The type of the phone number + */ + public enum PhoneNumberTypeEnum { + LANDLINE("landline"), + + LOCAL("local"), + + MOBILE("mobile"), + + NATIONAL("national"), + + SHARED_COST("shared_cost"), + + TOLL_FREE("toll_free"); + + private String value; + + PhoneNumberTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PhoneNumberTypeEnum fromValue(String value) { + for (PhoneNumberTypeEnum b : PhoneNumberTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PHONE_NUMBER_TYPE = "phone_number_type"; + private PhoneNumberTypeEnum phoneNumberType; + public static final String JSON_PROPERTY_DESCRIPTION = "description"; private String description; public static final String JSON_PROPERTY_REQUIREMENTS = "requirements"; private List requirements = null; + public static final String JSON_PROPERTY_REQUIREMENTS_MET = "requirements_met"; + private Boolean requirementsMet; + public static final String JSON_PROPERTY_USER_FEEDBACK = "user_feedback"; private PortingOrderUserFeedback userFeedback; + public static final String JSON_PROPERTY_USER_ID = "user_id"; + private UUID userId; + public static final String JSON_PROPERTY_WEBHOOK_URL = "webhook_url"; private URI webhookUrl; - public static final String JSON_PROPERTY_USER_REFERENCE = "user_reference"; - private String userReference; - public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; private String recordType; public PortingOrder() { } + @JsonCreator + public PortingOrder( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt, + @JsonProperty(JSON_PROPERTY_SUPPORT_KEY) String supportKey, + @JsonProperty(JSON_PROPERTY_PARENT_SUPPORT_KEY) String parentSupportKey, + @JsonProperty(JSON_PROPERTY_PORTING_PHONE_NUMBERS_COUNT) Integer portingPhoneNumbersCount, + @JsonProperty(JSON_PROPERTY_OLD_SERVICE_PROVIDER_OCN) String oldServiceProviderOcn, + @JsonProperty(JSON_PROPERTY_DESCRIPTION) String description, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.id = id; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.supportKey = supportKey; + this.parentSupportKey = parentSupportKey; + this.portingPhoneNumbersCount = portingPhoneNumbersCount; + this.oldServiceProviderOcn = oldServiceProviderOcn; + this.description = description; + this.recordType = recordType; + } + /** * Uniquely identifies this porting order * @return id @@ -143,6 +222,32 @@ public UUID getId() { + public PortingOrder customerReference(String customerReference) { + this.customerReference = customerReference; + return this; + } + + /** + * A customer-specified reference number for customer bookkeeping purposes + * @return customerReference + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Acct 123abc", value = "A customer-specified reference number for customer bookkeeping purposes") + @JsonProperty(JSON_PROPERTY_CUSTOMER_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCustomerReference() { + return customerReference; + } + + + @JsonProperty(JSON_PROPERTY_CUSTOMER_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCustomerReference(String customerReference) { + this.customerReference = customerReference; + } + + /** * ISO 8601 formatted date indicating when the resource was created. * @return createdAt @@ -395,6 +500,32 @@ public void setPhoneNumberConfiguration(PortingOrderPhoneNumberConfiguration pho } + public PortingOrder phoneNumberType(PhoneNumberTypeEnum phoneNumberType) { + this.phoneNumberType = phoneNumberType; + return this; + } + + /** + * The type of the phone number + * @return phoneNumberType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "local", value = "The type of the phone number") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PhoneNumberTypeEnum getPhoneNumberType() { + return phoneNumberType; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumberType(PhoneNumberTypeEnum phoneNumberType) { + this.phoneNumberType = phoneNumberType; + } + + /** * A description of the porting order * @return description @@ -445,6 +576,32 @@ public void setRequirements(List requirements) { } + public PortingOrder requirementsMet(Boolean requirementsMet) { + this.requirementsMet = requirementsMet; + return this; + } + + /** + * Is true when the required documentation is met + * @return requirementsMet + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Is true when the required documentation is met") + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getRequirementsMet() { + return requirementsMet; + } + + + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequirementsMet(Boolean requirementsMet) { + this.requirementsMet = requirementsMet; + } + + public PortingOrder userFeedback(PortingOrderUserFeedback userFeedback) { this.userFeedback = userFeedback; return this; @@ -471,55 +628,55 @@ public void setUserFeedback(PortingOrderUserFeedback userFeedback) { } - public PortingOrder webhookUrl(URI webhookUrl) { - this.webhookUrl = webhookUrl; + public PortingOrder userId(UUID userId) { + this.userId = userId; return this; } /** - * Get webhookUrl - * @return webhookUrl + * Identifies the user (or organization) who requested the porting order + * @return userId **/ @javax.annotation.Nullable - @ApiModelProperty(example = "https://example.com/porting_webhooks", value = "") - @JsonProperty(JSON_PROPERTY_WEBHOOK_URL) + @ApiModelProperty(example = "40d68ba2-0847-4df2-be9c-b0e0cb673e75", value = "Identifies the user (or organization) who requested the porting order") + @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public URI getWebhookUrl() { - return webhookUrl; + public UUID getUserId() { + return userId; } - @JsonProperty(JSON_PROPERTY_WEBHOOK_URL) + @JsonProperty(JSON_PROPERTY_USER_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setWebhookUrl(URI webhookUrl) { - this.webhookUrl = webhookUrl; + public void setUserId(UUID userId) { + this.userId = userId; } - public PortingOrder userReference(String userReference) { - this.userReference = userReference; + public PortingOrder webhookUrl(URI webhookUrl) { + this.webhookUrl = webhookUrl; return this; } /** - * A customer-specified reference number for customer bookkeeping purposes - * @return userReference + * Get webhookUrl + * @return webhookUrl **/ @javax.annotation.Nullable - @ApiModelProperty(example = "Acct 123abc", value = "A customer-specified reference number for customer bookkeeping purposes") - @JsonProperty(JSON_PROPERTY_USER_REFERENCE) + @ApiModelProperty(example = "https://example.com/porting_webhooks", value = "") + @JsonProperty(JSON_PROPERTY_WEBHOOK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public String getUserReference() { - return userReference; + public URI getWebhookUrl() { + return webhookUrl; } - @JsonProperty(JSON_PROPERTY_USER_REFERENCE) + @JsonProperty(JSON_PROPERTY_WEBHOOK_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUserReference(String userReference) { - this.userReference = userReference; + public void setWebhookUrl(URI webhookUrl) { + this.webhookUrl = webhookUrl; } @@ -552,6 +709,7 @@ public boolean equals(Object o) { } PortingOrder portingOrder = (PortingOrder) o; return Objects.equals(this.id, portingOrder.id) && + Objects.equals(this.customerReference, portingOrder.customerReference) && Objects.equals(this.createdAt, portingOrder.createdAt) && Objects.equals(this.updatedAt, portingOrder.updatedAt) && Objects.equals(this.status, portingOrder.status) && @@ -564,17 +722,19 @@ public boolean equals(Object o) { Objects.equals(this.endUser, portingOrder.endUser) && Objects.equals(this.activationSettings, portingOrder.activationSettings) && Objects.equals(this.phoneNumberConfiguration, portingOrder.phoneNumberConfiguration) && + Objects.equals(this.phoneNumberType, portingOrder.phoneNumberType) && Objects.equals(this.description, portingOrder.description) && Objects.equals(this.requirements, portingOrder.requirements) && + Objects.equals(this.requirementsMet, portingOrder.requirementsMet) && Objects.equals(this.userFeedback, portingOrder.userFeedback) && + Objects.equals(this.userId, portingOrder.userId) && Objects.equals(this.webhookUrl, portingOrder.webhookUrl) && - Objects.equals(this.userReference, portingOrder.userReference) && Objects.equals(this.recordType, portingOrder.recordType); } @Override public int hashCode() { - return Objects.hash(id, createdAt, updatedAt, status, supportKey, parentSupportKey, portingPhoneNumbersCount, oldServiceProviderOcn, documents, misc, endUser, activationSettings, phoneNumberConfiguration, description, requirements, userFeedback, webhookUrl, userReference, recordType); + return Objects.hash(id, customerReference, createdAt, updatedAt, status, supportKey, parentSupportKey, portingPhoneNumbersCount, oldServiceProviderOcn, documents, misc, endUser, activationSettings, phoneNumberConfiguration, phoneNumberType, description, requirements, requirementsMet, userFeedback, userId, webhookUrl, recordType); } @Override @@ -582,6 +742,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PortingOrder {\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" customerReference: ").append(toIndentedString(customerReference)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); @@ -594,11 +755,13 @@ public String toString() { sb.append(" endUser: ").append(toIndentedString(endUser)).append("\n"); sb.append(" activationSettings: ").append(toIndentedString(activationSettings)).append("\n"); sb.append(" phoneNumberConfiguration: ").append(toIndentedString(phoneNumberConfiguration)).append("\n"); + sb.append(" phoneNumberType: ").append(toIndentedString(phoneNumberType)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append(" requirements: ").append(toIndentedString(requirements)).append("\n"); + sb.append(" requirementsMet: ").append(toIndentedString(requirementsMet)).append("\n"); sb.append(" userFeedback: ").append(toIndentedString(userFeedback)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); - sb.append(" userReference: ").append(toIndentedString(userReference)).append("\n"); sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/telnyx/sdk/model/PortingOrderActivationSettings.java b/src/main/java/com/telnyx/sdk/model/PortingOrderActivationSettings.java index f0f44a62..1eb0996d 100644 --- a/src/main/java/com/telnyx/sdk/model/PortingOrderActivationSettings.java +++ b/src/main/java/com/telnyx/sdk/model/PortingOrderActivationSettings.java @@ -56,6 +56,14 @@ public class PortingOrderActivationSettings { public PortingOrderActivationSettings() { } + @JsonCreator + public PortingOrderActivationSettings( + @JsonProperty(JSON_PROPERTY_FAST_PORT_ELIGIBLE) Boolean fastPortEligible + ) { + this(); + this.fastPortEligible = fastPortEligible; + } + public PortingOrderActivationSettings focDatetimeRequested(OffsetDateTime focDatetimeRequested) { this.focDatetimeRequested = focDatetimeRequested; return this; diff --git a/src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetail.java b/src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetail.java new file mode 100644 index 00000000..864d8894 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetail.java @@ -0,0 +1,276 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrderRequirementDetailRequirementType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PortingOrderRequirementDetail + */ +@JsonPropertyOrder({ + PortingOrderRequirementDetail.JSON_PROPERTY_FIELD_TYPE, + PortingOrderRequirementDetail.JSON_PROPERTY_FIELD_VALUE, + PortingOrderRequirementDetail.JSON_PROPERTY_REQUIREMENT_TYPE, + PortingOrderRequirementDetail.JSON_PROPERTY_REQUIREMENT_STATUS, + PortingOrderRequirementDetail.JSON_PROPERTY_RECORD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PortingOrderRequirementDetail { + /** + * Type of value expected on field_value field + */ + public enum FieldTypeEnum { + DOCUMENT("document"), + + TEXTUAL("textual"); + + private String value; + + FieldTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FieldTypeEnum fromValue(String value) { + for (FieldTypeEnum b : FieldTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_FIELD_TYPE = "field_type"; + private FieldTypeEnum fieldType; + + public static final String JSON_PROPERTY_FIELD_VALUE = "field_value"; + private String fieldValue; + + public static final String JSON_PROPERTY_REQUIREMENT_TYPE = "requirement_type"; + private PortingOrderRequirementDetailRequirementType requirementType; + + public static final String JSON_PROPERTY_REQUIREMENT_STATUS = "requirement_status"; + private String requirementStatus; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public PortingOrderRequirementDetail() { + } + + public PortingOrderRequirementDetail fieldType(FieldTypeEnum fieldType) { + this.fieldType = fieldType; + return this; + } + + /** + * Type of value expected on field_value field + * @return fieldType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "document", value = "Type of value expected on field_value field") + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public FieldTypeEnum getFieldType() { + return fieldType; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldType(FieldTypeEnum fieldType) { + this.fieldType = fieldType; + } + + + public PortingOrderRequirementDetail fieldValue(String fieldValue) { + this.fieldValue = fieldValue; + return this; + } + + /** + * Identifies the document that satisfies this requirement + * @return fieldValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "9787fb5f-cbe5-4de4-b765-3303774ee9fe", value = "Identifies the document that satisfies this requirement") + @JsonProperty(JSON_PROPERTY_FIELD_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldValue() { + return fieldValue; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldValue(String fieldValue) { + this.fieldValue = fieldValue; + } + + + public PortingOrderRequirementDetail requirementType(PortingOrderRequirementDetailRequirementType requirementType) { + this.requirementType = requirementType; + return this; + } + + /** + * Get requirementType + * @return requirementType + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REQUIREMENT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortingOrderRequirementDetailRequirementType getRequirementType() { + return requirementType; + } + + + @JsonProperty(JSON_PROPERTY_REQUIREMENT_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequirementType(PortingOrderRequirementDetailRequirementType requirementType) { + this.requirementType = requirementType; + } + + + public PortingOrderRequirementDetail requirementStatus(String requirementStatus) { + this.requirementStatus = requirementStatus; + return this; + } + + /** + * Status of the requirement + * @return requirementStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "approved", value = "Status of the requirement") + @JsonProperty(JSON_PROPERTY_REQUIREMENT_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRequirementStatus() { + return requirementStatus; + } + + + @JsonProperty(JSON_PROPERTY_REQUIREMENT_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequirementStatus(String requirementStatus) { + this.requirementStatus = requirementStatus; + } + + + public PortingOrderRequirementDetail recordType(String recordType) { + this.recordType = recordType; + return this; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "porting_requirement", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordType(String recordType) { + this.recordType = recordType; + } + + + /** + * Return true if this PortingOrderRequirementDetail object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortingOrderRequirementDetail portingOrderRequirementDetail = (PortingOrderRequirementDetail) o; + return Objects.equals(this.fieldType, portingOrderRequirementDetail.fieldType) && + Objects.equals(this.fieldValue, portingOrderRequirementDetail.fieldValue) && + Objects.equals(this.requirementType, portingOrderRequirementDetail.requirementType) && + Objects.equals(this.requirementStatus, portingOrderRequirementDetail.requirementStatus) && + Objects.equals(this.recordType, portingOrderRequirementDetail.recordType); + } + + @Override + public int hashCode() { + return Objects.hash(fieldType, fieldValue, requirementType, requirementStatus, recordType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortingOrderRequirementDetail {\n"); + sb.append(" fieldType: ").append(toIndentedString(fieldType)).append("\n"); + sb.append(" fieldValue: ").append(toIndentedString(fieldValue)).append("\n"); + sb.append(" requirementType: ").append(toIndentedString(requirementType)).append("\n"); + sb.append(" requirementStatus: ").append(toIndentedString(requirementStatus)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementType.java b/src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementType.java new file mode 100644 index 00000000..e6fe2a45 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementType.java @@ -0,0 +1,273 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Identifies the requirement type that meets this requirement + */ +@ApiModel(description = "Identifies the requirement type that meets this requirement") +@JsonPropertyOrder({ + PortingOrderRequirementDetailRequirementType.JSON_PROPERTY_ACCEPTANCE_CRITERIA, + PortingOrderRequirementDetailRequirementType.JSON_PROPERTY_DESCRIPTION, + PortingOrderRequirementDetailRequirementType.JSON_PROPERTY_EXAMPLE, + PortingOrderRequirementDetailRequirementType.JSON_PROPERTY_ID, + PortingOrderRequirementDetailRequirementType.JSON_PROPERTY_NAME, + PortingOrderRequirementDetailRequirementType.JSON_PROPERTY_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PortingOrderRequirementDetailRequirementType { + public static final String JSON_PROPERTY_ACCEPTANCE_CRITERIA = "acceptance_criteria"; + private Object acceptanceCriteria; + + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_EXAMPLE = "example"; + private String example; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public PortingOrderRequirementDetailRequirementType() { + } + + public PortingOrderRequirementDetailRequirementType acceptanceCriteria(Object acceptanceCriteria) { + this.acceptanceCriteria = acceptanceCriteria; + return this; + } + + /** + * The acceptance criteria for the requirement type + * @return acceptanceCriteria + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "{\"acceptable_values\":[]}", value = "The acceptance criteria for the requirement type") + @JsonProperty(JSON_PROPERTY_ACCEPTANCE_CRITERIA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getAcceptanceCriteria() { + return acceptanceCriteria; + } + + + @JsonProperty(JSON_PROPERTY_ACCEPTANCE_CRITERIA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAcceptanceCriteria(Object acceptanceCriteria) { + this.acceptanceCriteria = acceptanceCriteria; + } + + + public PortingOrderRequirementDetailRequirementType description(String description) { + this.description = description; + return this; + } + + /** + * A description of the requirement type + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "A copy of the latest phone bill from the current provider", value = "A description of the requirement type") + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + + public PortingOrderRequirementDetailRequirementType example(String example) { + this.example = example; + return this; + } + + /** + * An example of the requirement type + * @return example + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Most recent phone bill", value = "An example of the requirement type") + @JsonProperty(JSON_PROPERTY_EXAMPLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getExample() { + return example; + } + + + @JsonProperty(JSON_PROPERTY_EXAMPLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setExample(String example) { + this.example = example; + } + + + public PortingOrderRequirementDetailRequirementType id(String id) { + this.id = id; + return this; + } + + /** + * Identifies the requirement type + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "53970723-fbff-4f46-a975-f62be6c1a585", value = "Identifies the requirement type") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public PortingOrderRequirementDetailRequirementType name(String name) { + this.name = name; + return this; + } + + /** + * The name of the requirement type + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Latest Invoice", value = "The name of the requirement type") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public PortingOrderRequirementDetailRequirementType type(String type) { + this.type = type; + return this; + } + + /** + * The type of the requirement type + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "document", value = "The type of the requirement type") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + + /** + * Return true if this PortingOrderRequirementDetail_requirement_type object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortingOrderRequirementDetailRequirementType portingOrderRequirementDetailRequirementType = (PortingOrderRequirementDetailRequirementType) o; + return Objects.equals(this.acceptanceCriteria, portingOrderRequirementDetailRequirementType.acceptanceCriteria) && + Objects.equals(this.description, portingOrderRequirementDetailRequirementType.description) && + Objects.equals(this.example, portingOrderRequirementDetailRequirementType.example) && + Objects.equals(this.id, portingOrderRequirementDetailRequirementType.id) && + Objects.equals(this.name, portingOrderRequirementDetailRequirementType.name) && + Objects.equals(this.type, portingOrderRequirementDetailRequirementType.type); + } + + @Override + public int hashCode() { + return Objects.hash(acceptanceCriteria, description, example, id, name, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortingOrderRequirementDetailRequirementType {\n"); + sb.append(" acceptanceCriteria: ").append(toIndentedString(acceptanceCriteria)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" example: ").append(toIndentedString(example)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PortingOrdersActivationJob.java b/src/main/java/com/telnyx/sdk/model/PortingOrdersActivationJob.java index 872c3415..eb1390ad 100644 --- a/src/main/java/com/telnyx/sdk/model/PortingOrdersActivationJob.java +++ b/src/main/java/com/telnyx/sdk/model/PortingOrdersActivationJob.java @@ -99,6 +99,20 @@ public static StatusEnum fromValue(String value) { public PortingOrdersActivationJob() { } + @JsonCreator + public PortingOrdersActivationJob( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Uniquely identifies this activation job * @return id diff --git a/src/main/java/com/telnyx/sdk/model/PortingOrdersAllowedFocWindow.java b/src/main/java/com/telnyx/sdk/model/PortingOrdersAllowedFocWindow.java index c2671dfa..87328dc2 100644 --- a/src/main/java/com/telnyx/sdk/model/PortingOrdersAllowedFocWindow.java +++ b/src/main/java/com/telnyx/sdk/model/PortingOrdersAllowedFocWindow.java @@ -51,6 +51,18 @@ public class PortingOrdersAllowedFocWindow { public PortingOrdersAllowedFocWindow() { } + @JsonCreator + public PortingOrdersAllowedFocWindow( + @JsonProperty(JSON_PROPERTY_STARTED_AT) OffsetDateTime startedAt, + @JsonProperty(JSON_PROPERTY_ENDED_AT) OffsetDateTime endedAt, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.startedAt = startedAt; + this.endedAt = endedAt; + this.recordType = recordType; + } + /** * ISO 8601 formatted date indicating the start of the range of foc window. * @return startedAt diff --git a/src/main/java/com/telnyx/sdk/model/PortingOrdersExceptionType.java b/src/main/java/com/telnyx/sdk/model/PortingOrdersExceptionType.java index 46c6f38a..2de4e1f4 100644 --- a/src/main/java/com/telnyx/sdk/model/PortingOrdersExceptionType.java +++ b/src/main/java/com/telnyx/sdk/model/PortingOrdersExceptionType.java @@ -74,9 +74,7 @@ public enum CodeEnum { PORT_TYPE_INCORRECT("PORT_TYPE_INCORRECT"), PORTING_ORDER_SPLIT_REQUIRED("PORTING_ORDER_SPLIT_REQUIRED"), - - PORTING_ORDER_SPLIT_REQUIRED("PORTING_ORDER_SPLIT_REQUIRED"), - + POSTAL_CODE_MISMATCH("POSTAL_CODE_MISMATCH"), RATE_CENTER_NOT_PORTABLE("RATE_CENTER_NOT_PORTABLE"), diff --git a/src/main/java/com/telnyx/sdk/model/PortingPhoneNumber.java b/src/main/java/com/telnyx/sdk/model/PortingPhoneNumber.java index 1c41adc5..9eb3eef8 100644 --- a/src/main/java/com/telnyx/sdk/model/PortingPhoneNumber.java +++ b/src/main/java/com/telnyx/sdk/model/PortingPhoneNumber.java @@ -206,6 +206,14 @@ public static RequirementsStatusEnum fromValue(String value) { public PortingPhoneNumber() { } + @JsonCreator + public PortingPhoneNumber( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public PortingPhoneNumber portingOrderStatus(PortingOrderStatusEnum portingOrderStatus) { this.portingOrderStatus = portingOrderStatus; return this; diff --git a/src/main/java/com/telnyx/sdk/model/PortoutComment.java b/src/main/java/com/telnyx/sdk/model/PortoutComment.java index 8c7a4f51..3b25cc11 100644 --- a/src/main/java/com/telnyx/sdk/model/PortoutComment.java +++ b/src/main/java/com/telnyx/sdk/model/PortoutComment.java @@ -51,7 +51,7 @@ public class PortoutComment { private String body; public static final String JSON_PROPERTY_PORTOUT_ID = "portout_id"; - private String portoutId = "null"; + private String portoutId; public static final String JSON_PROPERTY_USER_ID = "user_id"; private String userId; @@ -62,6 +62,14 @@ public class PortoutComment { public PortoutComment() { } + @JsonCreator + public PortoutComment( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public PortoutComment id(String id) { this.id = id; return this; diff --git a/src/main/java/com/telnyx/sdk/model/PortoutDetails.java b/src/main/java/com/telnyx/sdk/model/PortoutDetails.java index 338f79f6..83be374a 100644 --- a/src/main/java/com/telnyx/sdk/model/PortoutDetails.java +++ b/src/main/java/com/telnyx/sdk/model/PortoutDetails.java @@ -24,8 +24,10 @@ import com.fasterxml.jackson.annotation.JsonValue; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.net.URI; import java.util.ArrayList; import java.util.List; +import java.util.UUID; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -37,12 +39,27 @@ PortoutDetails.JSON_PROPERTY_ID, PortoutDetails.JSON_PROPERTY_RECORD_TYPE, PortoutDetails.JSON_PROPERTY_PHONE_NUMBERS, + PortoutDetails.JSON_PROPERTY_AUTHORIZED_NAME, PortoutDetails.JSON_PROPERTY_CARRIER_NAME, + PortoutDetails.JSON_PROPERTY_CURRENT_CARRIER, + PortoutDetails.JSON_PROPERTY_END_USER_NAME, + PortoutDetails.JSON_PROPERTY_CITY, + PortoutDetails.JSON_PROPERTY_STATE, + PortoutDetails.JSON_PROPERTY_ZIP, + PortoutDetails.JSON_PROPERTY_LSR, + PortoutDetails.JSON_PROPERTY_PON, + PortoutDetails.JSON_PROPERTY_REASON, + PortoutDetails.JSON_PROPERTY_SERVICE_ADDRESS, PortoutDetails.JSON_PROPERTY_FOC_DATE, PortoutDetails.JSON_PROPERTY_REQUESTED_FOC_DATE, PortoutDetails.JSON_PROPERTY_SPID, + PortoutDetails.JSON_PROPERTY_SUPPORT_KEY, PortoutDetails.JSON_PROPERTY_STATUS, + PortoutDetails.JSON_PROPERTY_ALREADY_PORTED, + PortoutDetails.JSON_PROPERTY_USER_ID, + PortoutDetails.JSON_PROPERTY_VENDOR, PortoutDetails.JSON_PROPERTY_CREATED_AT, + PortoutDetails.JSON_PROPERTY_INSERTED_AT, PortoutDetails.JSON_PROPERTY_UPDATED_AT }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -56,9 +73,39 @@ public class PortoutDetails { public static final String JSON_PROPERTY_PHONE_NUMBERS = "phone_numbers"; private List phoneNumbers = null; + public static final String JSON_PROPERTY_AUTHORIZED_NAME = "authorized_name"; + private String authorizedName; + public static final String JSON_PROPERTY_CARRIER_NAME = "carrier_name"; private String carrierName; + public static final String JSON_PROPERTY_CURRENT_CARRIER = "current_carrier"; + private String currentCarrier; + + public static final String JSON_PROPERTY_END_USER_NAME = "end_user_name"; + private String endUserName; + + public static final String JSON_PROPERTY_CITY = "city"; + private String city; + + public static final String JSON_PROPERTY_STATE = "state"; + private String state; + + public static final String JSON_PROPERTY_ZIP = "zip"; + private String zip; + + public static final String JSON_PROPERTY_LSR = "lsr"; + private List lsr = null; + + public static final String JSON_PROPERTY_PON = "pon"; + private String pon; + + public static final String JSON_PROPERTY_REASON = "reason"; + private String reason; + + public static final String JSON_PROPERTY_SERVICE_ADDRESS = "service_address"; + private String serviceAddress; + public static final String JSON_PROPERTY_FOC_DATE = "foc_date"; private String focDate; @@ -68,6 +115,9 @@ public class PortoutDetails { public static final String JSON_PROPERTY_SPID = "spid"; private String spid; + public static final String JSON_PROPERTY_SUPPORT_KEY = "support_key"; + private String supportKey; + /** * Status of portout request */ @@ -114,15 +164,35 @@ public static StatusEnum fromValue(String value) { public static final String JSON_PROPERTY_STATUS = "status"; private StatusEnum status; + public static final String JSON_PROPERTY_ALREADY_PORTED = "already_ported"; + private Boolean alreadyPorted; + + public static final String JSON_PROPERTY_USER_ID = "user_id"; + private UUID userId; + + public static final String JSON_PROPERTY_VENDOR = "vendor"; + private UUID vendor; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private String createdAt; + public static final String JSON_PROPERTY_INSERTED_AT = "inserted_at"; + private String insertedAt; + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; private String updatedAt; public PortoutDetails() { } + @JsonCreator + public PortoutDetails( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public PortoutDetails id(String id) { this.id = id; return this; @@ -199,6 +269,32 @@ public void setPhoneNumbers(List phoneNumbers) { } + public PortoutDetails authorizedName(String authorizedName) { + this.authorizedName = authorizedName; + return this; + } + + /** + * Name of person authorizing the porting order + * @return authorizedName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "McPortersen", value = "Name of person authorizing the porting order") + @JsonProperty(JSON_PROPERTY_AUTHORIZED_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getAuthorizedName() { + return authorizedName; + } + + + @JsonProperty(JSON_PROPERTY_AUTHORIZED_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAuthorizedName(String authorizedName) { + this.authorizedName = authorizedName; + } + + public PortoutDetails carrierName(String carrierName) { this.carrierName = carrierName; return this; @@ -225,6 +321,248 @@ public void setCarrierName(String carrierName) { } + public PortoutDetails currentCarrier(String currentCarrier) { + this.currentCarrier = currentCarrier; + return this; + } + + /** + * The current carrier + * @return currentCarrier + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "telnyx", value = "The current carrier") + @JsonProperty(JSON_PROPERTY_CURRENT_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCurrentCarrier() { + return currentCarrier; + } + + + @JsonProperty(JSON_PROPERTY_CURRENT_CARRIER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrentCarrier(String currentCarrier) { + this.currentCarrier = currentCarrier; + } + + + public PortoutDetails endUserName(String endUserName) { + this.endUserName = endUserName; + return this; + } + + /** + * Person name or company name requesting the port + * @return endUserName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "McPortersen", value = "Person name or company name requesting the port") + @JsonProperty(JSON_PROPERTY_END_USER_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEndUserName() { + return endUserName; + } + + + @JsonProperty(JSON_PROPERTY_END_USER_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEndUserName(String endUserName) { + this.endUserName = endUserName; + } + + + public PortoutDetails city(String city) { + this.city = city; + return this; + } + + /** + * City or municipality of billing address + * @return city + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Chicago", value = "City or municipality of billing address") + @JsonProperty(JSON_PROPERTY_CITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCity() { + return city; + } + + + @JsonProperty(JSON_PROPERTY_CITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCity(String city) { + this.city = city; + } + + + public PortoutDetails state(String state) { + this.state = state; + return this; + } + + /** + * State, province, or similar of billing address + * @return state + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "IL", value = "State, province, or similar of billing address") + @JsonProperty(JSON_PROPERTY_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getState() { + return state; + } + + + @JsonProperty(JSON_PROPERTY_STATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setState(String state) { + this.state = state; + } + + + public PortoutDetails zip(String zip) { + this.zip = zip; + return this; + } + + /** + * Postal Code of billing address + * @return zip + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "00000", value = "Postal Code of billing address") + @JsonProperty(JSON_PROPERTY_ZIP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getZip() { + return zip; + } + + + @JsonProperty(JSON_PROPERTY_ZIP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setZip(String zip) { + this.zip = zip; + } + + + public PortoutDetails lsr(List lsr) { + this.lsr = lsr; + return this; + } + + public PortoutDetails addLsrItem(URI lsrItem) { + if (this.lsr == null) { + this.lsr = new ArrayList<>(); + } + this.lsr.add(lsrItem); + return this; + } + + /** + * The Local Service Request + * @return lsr + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[\"https://example.com/files/lsr.pdf\"]", value = "The Local Service Request") + @JsonProperty(JSON_PROPERTY_LSR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getLsr() { + return lsr; + } + + + @JsonProperty(JSON_PROPERTY_LSR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLsr(List lsr) { + this.lsr = lsr; + } + + + public PortoutDetails pon(String pon) { + this.pon = pon; + return this; + } + + /** + * Port order number assigned by the carrier the number will be ported out to + * @return pon + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "00000000", value = "Port order number assigned by the carrier the number will be ported out to") + @JsonProperty(JSON_PROPERTY_PON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPon() { + return pon; + } + + + @JsonProperty(JSON_PROPERTY_PON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPon(String pon) { + this.pon = pon; + } + + + public PortoutDetails reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The reason why the order is being rejected by the user. If the order is authorized, this field can be left null + * @return reason + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The reason why the order is being rejected by the user. If the order is authorized, this field can be left null") + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReason() { + return reason; + } + + + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReason(String reason) { + this.reason = reason; + } + + + public PortoutDetails serviceAddress(String serviceAddress) { + this.serviceAddress = serviceAddress; + return this; + } + + /** + * First line of billing address (street address) + * @return serviceAddress + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "000 Example Street", value = "First line of billing address (street address)") + @JsonProperty(JSON_PROPERTY_SERVICE_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getServiceAddress() { + return serviceAddress; + } + + + @JsonProperty(JSON_PROPERTY_SERVICE_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setServiceAddress(String serviceAddress) { + this.serviceAddress = serviceAddress; + } + + public PortoutDetails focDate(String focDate) { this.focDate = focDate; return this; @@ -303,6 +641,32 @@ public void setSpid(String spid) { } + public PortoutDetails supportKey(String supportKey) { + this.supportKey = supportKey; + return this; + } + + /** + * A key to reference this port out request when contacting Telnyx customer support + * @return supportKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "PO_764725", value = "A key to reference this port out request when contacting Telnyx customer support") + @JsonProperty(JSON_PROPERTY_SUPPORT_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSupportKey() { + return supportKey; + } + + + @JsonProperty(JSON_PROPERTY_SUPPORT_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSupportKey(String supportKey) { + this.supportKey = supportKey; + } + + public PortoutDetails status(StatusEnum status) { this.status = status; return this; @@ -329,6 +693,84 @@ public void setStatus(StatusEnum status) { } + public PortoutDetails alreadyPorted(Boolean alreadyPorted) { + this.alreadyPorted = alreadyPorted; + return this; + } + + /** + * Is true when the number is already ported + * @return alreadyPorted + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Is true when the number is already ported") + @JsonProperty(JSON_PROPERTY_ALREADY_PORTED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getAlreadyPorted() { + return alreadyPorted; + } + + + @JsonProperty(JSON_PROPERTY_ALREADY_PORTED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAlreadyPorted(Boolean alreadyPorted) { + this.alreadyPorted = alreadyPorted; + } + + + public PortoutDetails userId(UUID userId) { + this.userId = userId; + return this; + } + + /** + * Identifies the user (or organization) who requested the port out + * @return userId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "7865816a-ee85-4e50-b19e-52983dcc6d4a", value = "Identifies the user (or organization) who requested the port out") + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getUserId() { + return userId; + } + + + @JsonProperty(JSON_PROPERTY_USER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUserId(UUID userId) { + this.userId = userId; + } + + + public PortoutDetails vendor(UUID vendor) { + this.vendor = vendor; + return this; + } + + /** + * Telnyx partner providing network coverage + * @return vendor + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "0e66ed3b-37e6-4fed-93d6-a30ce2493661", value = "Telnyx partner providing network coverage") + @JsonProperty(JSON_PROPERTY_VENDOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getVendor() { + return vendor; + } + + + @JsonProperty(JSON_PROPERTY_VENDOR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVendor(UUID vendor) { + this.vendor = vendor; + } + + public PortoutDetails createdAt(String createdAt) { this.createdAt = createdAt; return this; @@ -355,6 +797,32 @@ public void setCreatedAt(String createdAt) { } + public PortoutDetails insertedAt(String insertedAt) { + this.insertedAt = insertedAt; + return this; + } + + /** + * ISO 8601 formatted date of when the portout was created + * @return insertedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date of when the portout was created") + @JsonProperty(JSON_PROPERTY_INSERTED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInsertedAt() { + return insertedAt; + } + + + @JsonProperty(JSON_PROPERTY_INSERTED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInsertedAt(String insertedAt) { + this.insertedAt = insertedAt; + } + + public PortoutDetails updatedAt(String updatedAt) { this.updatedAt = updatedAt; return this; @@ -396,18 +864,33 @@ public boolean equals(Object o) { return Objects.equals(this.id, portoutDetails.id) && Objects.equals(this.recordType, portoutDetails.recordType) && Objects.equals(this.phoneNumbers, portoutDetails.phoneNumbers) && + Objects.equals(this.authorizedName, portoutDetails.authorizedName) && Objects.equals(this.carrierName, portoutDetails.carrierName) && + Objects.equals(this.currentCarrier, portoutDetails.currentCarrier) && + Objects.equals(this.endUserName, portoutDetails.endUserName) && + Objects.equals(this.city, portoutDetails.city) && + Objects.equals(this.state, portoutDetails.state) && + Objects.equals(this.zip, portoutDetails.zip) && + Objects.equals(this.lsr, portoutDetails.lsr) && + Objects.equals(this.pon, portoutDetails.pon) && + Objects.equals(this.reason, portoutDetails.reason) && + Objects.equals(this.serviceAddress, portoutDetails.serviceAddress) && Objects.equals(this.focDate, portoutDetails.focDate) && Objects.equals(this.requestedFocDate, portoutDetails.requestedFocDate) && Objects.equals(this.spid, portoutDetails.spid) && + Objects.equals(this.supportKey, portoutDetails.supportKey) && Objects.equals(this.status, portoutDetails.status) && + Objects.equals(this.alreadyPorted, portoutDetails.alreadyPorted) && + Objects.equals(this.userId, portoutDetails.userId) && + Objects.equals(this.vendor, portoutDetails.vendor) && Objects.equals(this.createdAt, portoutDetails.createdAt) && + Objects.equals(this.insertedAt, portoutDetails.insertedAt) && Objects.equals(this.updatedAt, portoutDetails.updatedAt); } @Override public int hashCode() { - return Objects.hash(id, recordType, phoneNumbers, carrierName, focDate, requestedFocDate, spid, status, createdAt, updatedAt); + return Objects.hash(id, recordType, phoneNumbers, authorizedName, carrierName, currentCarrier, endUserName, city, state, zip, lsr, pon, reason, serviceAddress, focDate, requestedFocDate, spid, supportKey, status, alreadyPorted, userId, vendor, createdAt, insertedAt, updatedAt); } @Override @@ -417,12 +900,27 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); sb.append(" phoneNumbers: ").append(toIndentedString(phoneNumbers)).append("\n"); + sb.append(" authorizedName: ").append(toIndentedString(authorizedName)).append("\n"); sb.append(" carrierName: ").append(toIndentedString(carrierName)).append("\n"); + sb.append(" currentCarrier: ").append(toIndentedString(currentCarrier)).append("\n"); + sb.append(" endUserName: ").append(toIndentedString(endUserName)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" zip: ").append(toIndentedString(zip)).append("\n"); + sb.append(" lsr: ").append(toIndentedString(lsr)).append("\n"); + sb.append(" pon: ").append(toIndentedString(pon)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" serviceAddress: ").append(toIndentedString(serviceAddress)).append("\n"); sb.append(" focDate: ").append(toIndentedString(focDate)).append("\n"); sb.append(" requestedFocDate: ").append(toIndentedString(requestedFocDate)).append("\n"); sb.append(" spid: ").append(toIndentedString(spid)).append("\n"); + sb.append(" supportKey: ").append(toIndentedString(supportKey)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" alreadyPorted: ").append(toIndentedString(alreadyPorted)).append("\n"); + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" insertedAt: ").append(toIndentedString(insertedAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/telnyx/sdk/model/PostPortRequestComment201Response.java b/src/main/java/com/telnyx/sdk/model/PostPortRequestComment201Response.java new file mode 100644 index 00000000..497de0e0 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PostPortRequestComment201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortoutComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PostPortRequestComment201Response + */ +@JsonPropertyOrder({ + PostPortRequestComment201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PostPortRequestComment201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortoutComment data; + + public PostPortRequestComment201Response() { + } + + public PostPortRequestComment201Response data(PortoutComment data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortoutComment getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortoutComment data) { + this.data = data; + } + + + /** + * Return true if this postPortRequestComment_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostPortRequestComment201Response postPortRequestComment201Response = (PostPortRequestComment201Response) o; + return Objects.equals(this.data, postPortRequestComment201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostPortRequestComment201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PostPortRequestCommentRequest.java b/src/main/java/com/telnyx/sdk/model/PostPortRequestCommentRequest.java new file mode 100644 index 00000000..0560b79f --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PostPortRequestCommentRequest.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PostPortRequestCommentRequest + */ +@JsonPropertyOrder({ + PostPortRequestCommentRequest.JSON_PROPERTY_BODY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PostPortRequestCommentRequest { + public static final String JSON_PROPERTY_BODY = "body"; + private String body; + + public PostPortRequestCommentRequest() { + } + + public PostPortRequestCommentRequest body(String body) { + this.body = body; + return this; + } + + /** + * Comment to post on this portout request + * @return body + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Comment to post on this portout request") + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBody() { + return body; + } + + + @JsonProperty(JSON_PROPERTY_BODY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBody(String body) { + this.body = body; + } + + + /** + * Return true if this postPortRequestComment_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostPortRequestCommentRequest postPortRequestCommentRequest = (PostPortRequestCommentRequest) o; + return Objects.equals(this.body, postPortRequestCommentRequest.body); + } + + @Override + public int hashCode() { + return Objects.hash(body); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostPortRequestCommentRequest {\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequest.java b/src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequest.java new file mode 100644 index 00000000..0a928c9c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequest.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PostPortRequestSupportingDocumentsRequestDocumentsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PostPortRequestSupportingDocumentsRequest + */ +@JsonPropertyOrder({ + PostPortRequestSupportingDocumentsRequest.JSON_PROPERTY_DOCUMENTS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PostPortRequestSupportingDocumentsRequest { + public static final String JSON_PROPERTY_DOCUMENTS = "documents"; + private List documents = null; + + public PostPortRequestSupportingDocumentsRequest() { + } + + public PostPortRequestSupportingDocumentsRequest documents(List documents) { + this.documents = documents; + return this; + } + + public PostPortRequestSupportingDocumentsRequest addDocumentsItem(PostPortRequestSupportingDocumentsRequestDocumentsInner documentsItem) { + if (this.documents == null) { + this.documents = new ArrayList<>(); + } + this.documents.add(documentsItem); + return this; + } + + /** + * List of supporting documents parameters + * @return documents + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of supporting documents parameters") + @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getDocuments() { + return documents; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDocuments(List documents) { + this.documents = documents; + } + + + /** + * Return true if this postPortRequestSupportingDocuments_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostPortRequestSupportingDocumentsRequest postPortRequestSupportingDocumentsRequest = (PostPortRequestSupportingDocumentsRequest) o; + return Objects.equals(this.documents, postPortRequestSupportingDocumentsRequest.documents); + } + + @Override + public int hashCode() { + return Objects.hash(documents); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostPortRequestSupportingDocumentsRequest {\n"); + sb.append(" documents: ").append(toIndentedString(documents)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInner.java b/src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInner.java new file mode 100644 index 00000000..554a8356 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInner.java @@ -0,0 +1,180 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PostPortRequestSupportingDocumentsRequestDocumentsInner + */ +@JsonPropertyOrder({ + PostPortRequestSupportingDocumentsRequestDocumentsInner.JSON_PROPERTY_TYPE, + PostPortRequestSupportingDocumentsRequestDocumentsInner.JSON_PROPERTY_DOCUMENT_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PostPortRequestSupportingDocumentsRequestDocumentsInner { + /** + * Identifies the type of the document + */ + public enum TypeEnum { + LOA("loa"), + + INVOICE("invoice"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public static final String JSON_PROPERTY_DOCUMENT_ID = "document_id"; + private UUID documentId; + + public PostPortRequestSupportingDocumentsRequestDocumentsInner() { + } + + public PostPortRequestSupportingDocumentsRequestDocumentsInner type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Identifies the type of the document + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "loa", required = true, value = "Identifies the type of the document") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public PostPortRequestSupportingDocumentsRequestDocumentsInner documentId(UUID documentId) { + this.documentId = documentId; + return this; + } + + /** + * Identifies the associated document + * @return documentId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0ccc7b54-4df3-4bca-a65a-3da1ecc777f0", required = true, value = "Identifies the associated document") + @JsonProperty(JSON_PROPERTY_DOCUMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getDocumentId() { + return documentId; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDocumentId(UUID documentId) { + this.documentId = documentId; + } + + + /** + * Return true if this postPortRequestSupportingDocuments_request_documents_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostPortRequestSupportingDocumentsRequestDocumentsInner postPortRequestSupportingDocumentsRequestDocumentsInner = (PostPortRequestSupportingDocumentsRequestDocumentsInner) o; + return Objects.equals(this.type, postPortRequestSupportingDocumentsRequestDocumentsInner.type) && + Objects.equals(this.documentId, postPortRequestSupportingDocumentsRequestDocumentsInner.documentId); + } + + @Override + public int hashCode() { + return Objects.hash(type, documentId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostPortRequestSupportingDocumentsRequestDocumentsInner {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PostPortabilityCheck201Response.java b/src/main/java/com/telnyx/sdk/model/PostPortabilityCheck201Response.java new file mode 100644 index 00000000..1d45fa80 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PostPortabilityCheck201Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortabilityCheckDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PostPortabilityCheck201Response + */ +@JsonPropertyOrder({ + PostPortabilityCheck201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PostPortabilityCheck201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public PostPortabilityCheck201Response() { + } + + public PostPortabilityCheck201Response data(List data) { + this.data = data; + return this; + } + + public PostPortabilityCheck201Response addDataItem(PortabilityCheckDetails dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this postPortabilityCheck_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostPortabilityCheck201Response postPortabilityCheck201Response = (PostPortabilityCheck201Response) o; + return Objects.equals(this.data, postPortabilityCheck201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostPortabilityCheck201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PostPortabilityCheckRequest.java b/src/main/java/com/telnyx/sdk/model/PostPortabilityCheckRequest.java new file mode 100644 index 00000000..3bf12219 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PostPortabilityCheckRequest.java @@ -0,0 +1,122 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PostPortabilityCheckRequest + */ +@JsonPropertyOrder({ + PostPortabilityCheckRequest.JSON_PROPERTY_PHONE_NUMBERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PostPortabilityCheckRequest { + public static final String JSON_PROPERTY_PHONE_NUMBERS = "phone_numbers"; + private List phoneNumbers = null; + + public PostPortabilityCheckRequest() { + } + + public PostPortabilityCheckRequest phoneNumbers(List phoneNumbers) { + this.phoneNumbers = phoneNumbers; + return this; + } + + public PostPortabilityCheckRequest addPhoneNumbersItem(String phoneNumbersItem) { + if (this.phoneNumbers == null) { + this.phoneNumbers = new ArrayList<>(); + } + this.phoneNumbers.add(phoneNumbersItem); + return this; + } + + /** + * The list of +E.164 formatted phone numbers to check for portability + * @return phoneNumbers + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[\"+13035550000\",\"+13035550001\",\"+13035550002\"]", value = "The list of +E.164 formatted phone numbers to check for portability") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getPhoneNumbers() { + return phoneNumbers; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumbers(List phoneNumbers) { + this.phoneNumbers = phoneNumbers; + } + + + /** + * Return true if this postPortabilityCheck_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostPortabilityCheckRequest postPortabilityCheckRequest = (PostPortabilityCheckRequest) o; + return Objects.equals(this.phoneNumbers, postPortabilityCheckRequest.phoneNumbers); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumbers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostPortabilityCheckRequest {\n"); + sb.append(" phoneNumbers: ").append(toIndentedString(phoneNumbers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequest.java b/src/main/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequest.java new file mode 100644 index 00000000..f0526765 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequest.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * The object containing the Array of SIM card registration codes. + */ +@ApiModel(description = "The object containing the Array of SIM card registration codes.") +@JsonPropertyOrder({ + PostValidateRegistrationCodesRequest.JSON_PROPERTY_REGISTRATION_CODES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PostValidateRegistrationCodesRequest { + public static final String JSON_PROPERTY_REGISTRATION_CODES = "registration_codes"; + private List registrationCodes = null; + + public PostValidateRegistrationCodesRequest() { + } + + public PostValidateRegistrationCodesRequest registrationCodes(List registrationCodes) { + this.registrationCodes = registrationCodes; + return this; + } + + public PostValidateRegistrationCodesRequest addRegistrationCodesItem(String registrationCodesItem) { + if (this.registrationCodes == null) { + this.registrationCodes = new ArrayList<>(); + } + this.registrationCodes.add(registrationCodesItem); + return this; + } + + /** + * Get registrationCodes + * @return registrationCodes + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REGISTRATION_CODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRegistrationCodes() { + return registrationCodes; + } + + + @JsonProperty(JSON_PROPERTY_REGISTRATION_CODES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegistrationCodes(List registrationCodes) { + this.registrationCodes = registrationCodes; + } + + + /** + * Return true if this postValidateRegistrationCodes_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PostValidateRegistrationCodesRequest postValidateRegistrationCodesRequest = (PostValidateRegistrationCodesRequest) o; + return Objects.equals(this.registrationCodes, postValidateRegistrationCodesRequest.registrationCodes); + } + + @Override + public int hashCode() { + return Objects.hash(registrationCodes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PostValidateRegistrationCodesRequest {\n"); + sb.append(" registrationCodes: ").append(toIndentedString(registrationCodes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PrivateWirelessGateway.java b/src/main/java/com/telnyx/sdk/model/PrivateWirelessGateway.java index 84438a6a..5af3433b 100644 --- a/src/main/java/com/telnyx/sdk/model/PrivateWirelessGateway.java +++ b/src/main/java/com/telnyx/sdk/model/PrivateWirelessGateway.java @@ -22,9 +22,12 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PWGAssignedResourcesSummary; import com.telnyx.sdk.model.PrivateWirelessGatewayStatus; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; import java.util.UUID; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -42,7 +45,8 @@ PrivateWirelessGateway.JSON_PROPERTY_NAME, PrivateWirelessGateway.JSON_PROPERTY_REGION_CODE, PrivateWirelessGateway.JSON_PROPERTY_STATUS, - PrivateWirelessGateway.JSON_PROPERTY_IP_RANGE + PrivateWirelessGateway.JSON_PROPERTY_IP_RANGE, + PrivateWirelessGateway.JSON_PROPERTY_ASSIGNED_RESOURCES }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class PrivateWirelessGateway { @@ -71,11 +75,30 @@ public class PrivateWirelessGateway { private PrivateWirelessGatewayStatus status; public static final String JSON_PROPERTY_IP_RANGE = "ip_range"; - private String ipRange = "null"; + private String ipRange; + + public static final String JSON_PROPERTY_ASSIGNED_RESOURCES = "assigned_resources"; + private List assignedResources = null; public PrivateWirelessGateway() { } + @JsonCreator + public PrivateWirelessGateway( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_IP_RANGE) String ipRange + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.ipRange = ipRange; + } + /** * Identifies the resource. * @return id @@ -260,6 +283,40 @@ public String getIpRange() { + public PrivateWirelessGateway assignedResources(List assignedResources) { + this.assignedResources = assignedResources; + return this; + } + + public PrivateWirelessGateway addAssignedResourcesItem(PWGAssignedResourcesSummary assignedResourcesItem) { + if (this.assignedResources == null) { + this.assignedResources = new ArrayList<>(); + } + this.assignedResources.add(assignedResourcesItem); + return this; + } + + /** + * A list of the resources that have been assigned to the Private Wireless Gateway + * @return assignedResources + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of the resources that have been assigned to the Private Wireless Gateway") + @JsonProperty(JSON_PROPERTY_ASSIGNED_RESOURCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getAssignedResources() { + return assignedResources; + } + + + @JsonProperty(JSON_PROPERTY_ASSIGNED_RESOURCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAssignedResources(List assignedResources) { + this.assignedResources = assignedResources; + } + + /** * Return true if this PrivateWirelessGateway object is equal to o. */ @@ -280,12 +337,13 @@ public boolean equals(Object o) { Objects.equals(this.name, privateWirelessGateway.name) && Objects.equals(this.regionCode, privateWirelessGateway.regionCode) && Objects.equals(this.status, privateWirelessGateway.status) && - Objects.equals(this.ipRange, privateWirelessGateway.ipRange); + Objects.equals(this.ipRange, privateWirelessGateway.ipRange) && + Objects.equals(this.assignedResources, privateWirelessGateway.assignedResources); } @Override public int hashCode() { - return Objects.hash(id, networkId, recordType, createdAt, updatedAt, name, regionCode, status, ipRange); + return Objects.hash(id, networkId, recordType, createdAt, updatedAt, name, regionCode, status, ipRange, assignedResources); } @Override @@ -301,6 +359,7 @@ public String toString() { sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" ipRange: ").append(toIndentedString(ipRange)).append("\n"); + sb.append(" assignedResources: ").append(toIndentedString(assignedResources)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/PrivateWirelessGatewayStatus.java b/src/main/java/com/telnyx/sdk/model/PrivateWirelessGatewayStatus.java index 3ba95658..54b58039 100644 --- a/src/main/java/com/telnyx/sdk/model/PrivateWirelessGatewayStatus.java +++ b/src/main/java/com/telnyx/sdk/model/PrivateWirelessGatewayStatus.java @@ -82,14 +82,26 @@ public static ValueEnum fromValue(String value) { private ValueEnum value = ValueEnum.PROVISIONING; public static final String JSON_PROPERTY_ERROR_DESCRIPTION = "error_description"; - private String errorDescription = "null"; + private String errorDescription; public static final String JSON_PROPERTY_ERROR_CODE = "error_code"; - private String errorCode = "null"; + private String errorCode; public PrivateWirelessGatewayStatus() { } + @JsonCreator + public PrivateWirelessGatewayStatus( + @JsonProperty(JSON_PROPERTY_VALUE) ValueEnum value, + @JsonProperty(JSON_PROPERTY_ERROR_DESCRIPTION) String errorDescription, + @JsonProperty(JSON_PROPERTY_ERROR_CODE) String errorCode + ) { + this(); + this.value = value; + this.errorDescription = errorDescription; + this.errorCode = errorCode; + } + /** * The current status or failure details of the Private Wireless Gateway. <ul> <li><code>provisioning</code> - the Private Wireless Gateway is being provisioned.</li> <li><code>provisioned</code> - the Private Wireless Gateway was provisioned and able to receive connections.</li> <li><code>failed</code> - the provisioning had failed for a reason and it requires an intervention.</li> <li><code>decommissioning</code> - the Private Wireless Gateway is being removed from the network.</li> </ul> Transitioning between the provisioning and provisioned states may take some time. * @return value diff --git a/src/main/java/com/telnyx/sdk/model/PublicInternetGateway.java b/src/main/java/com/telnyx/sdk/model/PublicInternetGateway.java new file mode 100644 index 00000000..329a8ade --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PublicInternetGateway.java @@ -0,0 +1,307 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.PublicInternetGateway1; +import com.telnyx.sdk.model.Record; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PublicInternetGateway + */ +@JsonPropertyOrder({ + PublicInternetGateway.JSON_PROPERTY_ID, + PublicInternetGateway.JSON_PROPERTY_RECORD_TYPE, + PublicInternetGateway.JSON_PROPERTY_CREATED_AT, + PublicInternetGateway.JSON_PROPERTY_UPDATED_AT, + PublicInternetGateway.JSON_PROPERTY_NETWORK_ID, + PublicInternetGateway.JSON_PROPERTY_NAME, + PublicInternetGateway.JSON_PROPERTY_STATUS, + PublicInternetGateway.JSON_PROPERTY_PUBLIC_IP +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PublicInternetGateway { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public static final String JSON_PROPERTY_PUBLIC_IP = "public_ip"; + private String publicIp; + + public PublicInternetGateway() { + } + + @JsonCreator + public PublicInternetGateway( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) String publicIp + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.publicIp = publicIp; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "public_internet_gateway", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public PublicInternetGateway networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public PublicInternetGateway name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public PublicInternetGateway status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + /** + * The publically accessible ip for this interface. + * @return publicIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "127.0.0.1", value = "The publically accessible ip for this interface.") + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicIp() { + return publicIp; + } + + + + + /** + * Return true if this PublicInternetGateway object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PublicInternetGateway publicInternetGateway = (PublicInternetGateway) o; + return Objects.equals(this.id, publicInternetGateway.id) && + Objects.equals(this.recordType, publicInternetGateway.recordType) && + Objects.equals(this.createdAt, publicInternetGateway.createdAt) && + Objects.equals(this.updatedAt, publicInternetGateway.updatedAt) && + Objects.equals(this.networkId, publicInternetGateway.networkId) && + Objects.equals(this.name, publicInternetGateway.name) && + Objects.equals(this.status, publicInternetGateway.status) && + Objects.equals(this.publicIp, publicInternetGateway.publicIp); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, publicIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PublicInternetGateway {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PublicInternetGateway1.java b/src/main/java/com/telnyx/sdk/model/PublicInternetGateway1.java new file mode 100644 index 00000000..9e233c05 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PublicInternetGateway1.java @@ -0,0 +1,134 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PublicInternetGateway1 + */ +@JsonPropertyOrder({ + PublicInternetGateway1.JSON_PROPERTY_RECORD_TYPE, + PublicInternetGateway1.JSON_PROPERTY_PUBLIC_IP +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PublicInternetGateway1 { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_PUBLIC_IP = "public_ip"; + private String publicIp; + + public PublicInternetGateway1() { + } + + @JsonCreator + public PublicInternetGateway1( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) String publicIp + ) { + this(); + this.recordType = recordType; + this.publicIp = publicIp; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "public_internet_gateway", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * The publically accessible ip for this interface. + * @return publicIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "127.0.0.1", value = "The publically accessible ip for this interface.") + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicIp() { + return publicIp; + } + + + + + /** + * Return true if this PublicInternetGateway_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PublicInternetGateway1 publicInternetGateway1 = (PublicInternetGateway1) o; + return Objects.equals(this.recordType, publicInternetGateway1.recordType) && + Objects.equals(this.publicIp, publicInternetGateway1.publicIp); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, publicIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PublicInternetGateway1 {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate.java b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate.java new file mode 100644 index 00000000..85d2181b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate.java @@ -0,0 +1,338 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.PublicInternetGateway; +import com.telnyx.sdk.model.RegionIn; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PublicInternetGatewayCreate + */ +@JsonPropertyOrder({ + PublicInternetGatewayCreate.JSON_PROPERTY_ID, + PublicInternetGatewayCreate.JSON_PROPERTY_RECORD_TYPE, + PublicInternetGatewayCreate.JSON_PROPERTY_CREATED_AT, + PublicInternetGatewayCreate.JSON_PROPERTY_UPDATED_AT, + PublicInternetGatewayCreate.JSON_PROPERTY_NETWORK_ID, + PublicInternetGatewayCreate.JSON_PROPERTY_NAME, + PublicInternetGatewayCreate.JSON_PROPERTY_STATUS, + PublicInternetGatewayCreate.JSON_PROPERTY_PUBLIC_IP, + PublicInternetGatewayCreate.JSON_PROPERTY_REGION_CODE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PublicInternetGatewayCreate { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public static final String JSON_PROPERTY_PUBLIC_IP = "public_ip"; + private String publicIp; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public PublicInternetGatewayCreate() { + } + + @JsonCreator + public PublicInternetGatewayCreate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) String publicIp + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.publicIp = publicIp; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "public_internet_gateway", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public PublicInternetGatewayCreate networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public PublicInternetGatewayCreate name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public PublicInternetGatewayCreate status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + /** + * The publically accessible ip for this interface. + * @return publicIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "127.0.0.1", value = "The publically accessible ip for this interface.") + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicIp() { + return publicIp; + } + + + + + public PublicInternetGatewayCreate regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region the interface should be deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region the interface should be deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + /** + * Return true if this PublicInternetGatewayCreate object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PublicInternetGatewayCreate publicInternetGatewayCreate = (PublicInternetGatewayCreate) o; + return Objects.equals(this.id, publicInternetGatewayCreate.id) && + Objects.equals(this.recordType, publicInternetGatewayCreate.recordType) && + Objects.equals(this.createdAt, publicInternetGatewayCreate.createdAt) && + Objects.equals(this.updatedAt, publicInternetGatewayCreate.updatedAt) && + Objects.equals(this.networkId, publicInternetGatewayCreate.networkId) && + Objects.equals(this.name, publicInternetGatewayCreate.name) && + Objects.equals(this.status, publicInternetGatewayCreate.status) && + Objects.equals(this.publicIp, publicInternetGatewayCreate.publicIp) && + Objects.equals(this.regionCode, publicInternetGatewayCreate.regionCode); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, publicIp, regionCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PublicInternetGatewayCreate {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202Response.java b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202Response.java new file mode 100644 index 00000000..4758d6df --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PublicInternetGatewayRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PublicInternetGatewayCreate202Response + */ +@JsonPropertyOrder({ + PublicInternetGatewayCreate202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PublicInternetGatewayCreate202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PublicInternetGatewayRead data; + + public PublicInternetGatewayCreate202Response() { + } + + public PublicInternetGatewayCreate202Response data(PublicInternetGatewayRead data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PublicInternetGatewayRead getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PublicInternetGatewayRead data) { + this.data = data; + } + + + /** + * Return true if this PublicInternetGatewayCreate_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PublicInternetGatewayCreate202Response publicInternetGatewayCreate202Response = (PublicInternetGatewayCreate202Response) o; + return Objects.equals(this.data, publicInternetGatewayCreate202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PublicInternetGatewayCreate202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayList200Response.java b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayList200Response.java new file mode 100644 index 00000000..b2b35a3f --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PublicInternetGatewayRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PublicInternetGatewayList200Response + */ +@JsonPropertyOrder({ + PublicInternetGatewayList200Response.JSON_PROPERTY_DATA, + PublicInternetGatewayList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PublicInternetGatewayList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public PublicInternetGatewayList200Response() { + } + + public PublicInternetGatewayList200Response data(List data) { + this.data = data; + return this; + } + + public PublicInternetGatewayList200Response addDataItem(PublicInternetGatewayRead dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public PublicInternetGatewayList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this PublicInternetGatewayList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PublicInternetGatewayList200Response publicInternetGatewayList200Response = (PublicInternetGatewayList200Response) o; + return Objects.equals(this.data, publicInternetGatewayList200Response.data) && + Objects.equals(this.meta, publicInternetGatewayList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PublicInternetGatewayList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayRead.java b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayRead.java new file mode 100644 index 00000000..0f3d38fa --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/PublicInternetGatewayRead.java @@ -0,0 +1,371 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.PublicInternetGateway; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * PublicInternetGatewayRead + */ +@JsonPropertyOrder({ + PublicInternetGatewayRead.JSON_PROPERTY_ID, + PublicInternetGatewayRead.JSON_PROPERTY_RECORD_TYPE, + PublicInternetGatewayRead.JSON_PROPERTY_CREATED_AT, + PublicInternetGatewayRead.JSON_PROPERTY_UPDATED_AT, + PublicInternetGatewayRead.JSON_PROPERTY_NETWORK_ID, + PublicInternetGatewayRead.JSON_PROPERTY_NAME, + PublicInternetGatewayRead.JSON_PROPERTY_STATUS, + PublicInternetGatewayRead.JSON_PROPERTY_PUBLIC_IP, + PublicInternetGatewayRead.JSON_PROPERTY_REGION_CODE, + PublicInternetGatewayRead.JSON_PROPERTY_REGION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class PublicInternetGatewayRead { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public static final String JSON_PROPERTY_PUBLIC_IP = "public_ip"; + private String publicIp; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public static final String JSON_PROPERTY_REGION = "region"; + private RegionOutRegion region; + + public PublicInternetGatewayRead() { + } + + @JsonCreator + public PublicInternetGatewayRead( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) String publicIp + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.publicIp = publicIp; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "public_internet_gateway", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public PublicInternetGatewayRead networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public PublicInternetGatewayRead name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public PublicInternetGatewayRead status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + /** + * The publically accessible ip for this interface. + * @return publicIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "127.0.0.1", value = "The publically accessible ip for this interface.") + @JsonProperty(JSON_PROPERTY_PUBLIC_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicIp() { + return publicIp; + } + + + + + public PublicInternetGatewayRead regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region interface is deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region interface is deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + public PublicInternetGatewayRead region(RegionOutRegion region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RegionOutRegion getRegion() { + return region; + } + + + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegion(RegionOutRegion region) { + this.region = region; + } + + + /** + * Return true if this PublicInternetGatewayRead object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PublicInternetGatewayRead publicInternetGatewayRead = (PublicInternetGatewayRead) o; + return Objects.equals(this.id, publicInternetGatewayRead.id) && + Objects.equals(this.recordType, publicInternetGatewayRead.recordType) && + Objects.equals(this.createdAt, publicInternetGatewayRead.createdAt) && + Objects.equals(this.updatedAt, publicInternetGatewayRead.updatedAt) && + Objects.equals(this.networkId, publicInternetGatewayRead.networkId) && + Objects.equals(this.name, publicInternetGatewayRead.name) && + Objects.equals(this.status, publicInternetGatewayRead.status) && + Objects.equals(this.publicIp, publicInternetGatewayRead.publicIp) && + Objects.equals(this.regionCode, publicInternetGatewayRead.regionCode) && + Objects.equals(this.region, publicInternetGatewayRead.region); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, publicIp, regionCode, region); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PublicInternetGatewayRead {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/PushCredential.java b/src/main/java/com/telnyx/sdk/model/PushCredential.java index d181397a..f4e033d3 100644 --- a/src/main/java/com/telnyx/sdk/model/PushCredential.java +++ b/src/main/java/com/telnyx/sdk/model/PushCredential.java @@ -37,6 +37,7 @@ PushCredential.JSON_PROPERTY_PRIVATE_KEY, PushCredential.JSON_PROPERTY_SERVER_KEY, PushCredential.JSON_PROPERTY_ALIAS, + PushCredential.JSON_PROPERTY_TYPE, PushCredential.JSON_PROPERTY_RECORD_TYPE, PushCredential.JSON_PROPERTY_CREATED_AT, PushCredential.JSON_PROPERTY_UPDATED_AT @@ -58,6 +59,9 @@ public class PushCredential { public static final String JSON_PROPERTY_ALIAS = "alias"; private String alias; + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; private String recordType; @@ -70,6 +74,14 @@ public class PushCredential { public PushCredential() { } + @JsonCreator + public PushCredential( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public PushCredential id(String id) { this.id = id; return this; @@ -102,11 +114,11 @@ public PushCredential certificate(String certificate) { } /** - * Apple certificate for sending push notifications + * Apple certificate for sending push notifications. For iOS only * @return certificate **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "Bag Attributes friendlyName: VoIP Services: com.telnyx.webrtcapp localKeyID: AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA AA subject=/UID=com.telnyx.webrtcapp.voip/CN=VoIP Services: com.telnyx.webrtcapp/OU=YKUVNPU9FS/O=Telnyx LLC/C=US issuer=/C=US/O=Apple Inc./OU=Apple Worldwide Developer Relations/CN=Apple Worldwide Developer Relations Certification Authority -----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcH6HpirBQkrjJkak qqk5bC8Ye2PIcY0+nVFNWCoQqJadGduy1kHFmEsvkmaemfQdRIwn9q5lpNUnMSo3 o6Cx0igYEHryauzg2hv14ylyvoCBxPOvl95NO86s9XS0CB2Qq6t9V59qkJiCPgKt hRtU70gavh5L0K/FPEO2FnjaNa/2kVeU8LWgqxH8dhIl/QQSipS49PDQR7DIJUWQ cakwR34j97t6UTxz7Yx05uUhjlcB4+hq2+RLA6LOOEcGnpECAwEAAaOCAqgwggKk MAwGA1UdEwEB/wQCMAAwHwYDVR0jBBgwFoAUiCcXCam2GGCL7Ou69kdZxVJUo7cw PwYIKwYBBQUHAQEEMzAxMC8GCCsGAQUFBzABhiNodHRwOi8vb2NzcC5hcHBsZS5j b20vb2NzcDAzLXd3ZHIwMTCCAR0GA1UdIASCARQwggEQMIIBDAbWVudHMuMDYGCC DRHGx1ngGt7fn3aobpf0CL+k8F1CcwkL8GZaAf3Pe6nxxWaTyaIU/LoBd8OU4aHq dGacHGp5tlgli8WhXNJuvHFmNnm0prQUeWjfTrHvAV2fEYJKoZIhvdjZAUBGAQUF MIH+MIHDBggrBgEFBQcCAjCBtgyBs1JlbGlhbmNlIG9uIHRoaXMgY2VydGlmaWNh dGUgYnkgYW55IHaiZDeWNjZXB0YW5jZSBvZiB0aGUgdGhlbiBhaiZDeaiZDeaiZD Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjkknqoojqpiu109 CfO37+af5amMDmgKHLWYqpIuF856urhODCRuprjCYwkyHX+cDbuB7E6BKjtyUCRx cHBsaWNhYmxlIHN0OIIJDKDAU094NOJujfoLmFwcGxlLmNvbS99w0BAQsFAAOCAQ Y2VydGlmaWNhdGUgcG9saWN5IGFuZCBjZXJ0aWZpY2F0aW9uIHByYWN0aWNlIHN0 YXRlpX2LTQJsyzUjVKmbCjyATg5Y4QCqgDzrYUOBjL79dJzGwPKNQYG8YW5kYXJk LLuJX3jda0o393hnz03nz0jdah+m30lcS/iZkGAutno3MPd0EU9q3HyjyE0MjpHj /xXNgBL6zty06oXzUF+wXy1yNhUfouDLA3Yhv/uAbxN0NDart5s4kT/E3AAKIX3d BPYcCd3ran8CHgFW+dt3AIHRlcm1zIGFuZCBjb25kaXRpb25zIG9mIHVzZSwg== -----END CERTIFICATE----- ", required = true, value = "Apple certificate for sending push notifications") + @ApiModelProperty(example = "-----BEGIN CERTIFICATE----- MIIGVDCCBTKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END CERTIFICATE-----", required = true, value = "Apple certificate for sending push notifications. For iOS only") @JsonProperty(JSON_PROPERTY_CERTIFICATE) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -128,11 +140,11 @@ public PushCredential privateKey(String privateKey) { } /** - * Apple private key for a given certificate for sending push notifications + * Apple private key for a given certificate for sending push notifications. For iOS only * @return privateKey **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czspJg4tZZ7NpSCGdeeUo8Vjw4MdZ DbQacxmVkK5FJ28G8rDAokPKsYAtDpgCpcza/sLteg/R/JMyMPkyTzzFGplpZe6H FsVCQTiFknRYwhNQhz4Q4GkXMkxCPUnMgrQwrDYcxwk4A05vnS1c7ogMGDJErElM UNFPJyUc58wwlqVYCTvqPv33odv1rGdWtqY9sGXQAaoscXdWcw6HpirBQkrjJkak qqk5bC8Ye2PIcY0+nVFNWCoQqxuFc9/xYtCzPhd7SLfj+sDp4ZU1u18WYAoD5E3u Isit2Bn6jXtow1YtMY7wjIcIq3f6Z04/DIe14wIDAQABAoIBAQCQHHcYowHSTm1P 5v0wL/Um+gbP8BUqATSQ9/uYolor2htoQGpcVWCcXMPZg3mM+dfCmrBPSkj5Pgb5 dnvp2ja3Fedo6U1nshdbeyY5Fb9UvqD51Fc3AgXMmh+WycKuXAjqPHSKOnkRnrz3 rpS+CdID85CdzPBdGWSww4+QPUMFz03cyttsIbEL46dR0ikRyRwRUejRTNS8I5+9 vG4J2/d40ejk9cWEB21lXqOv2qa3KYSkXgIbFq4BBIajGKmixjk+pMugWkBGwJ9r B8AfqXwV4qalv7/DPVj72OtBi79oiOltNsHWp4cChGkp8FxEaMhy5d6tT7lz/jY2 Zgu2Jz2pAoGBANuey3lj6dgTPc7ZDgcUKVz96aC1dDzrqBRKrIPsodFTVUSdiZP4 3TLrD4niE0+yVD/9YvohdIlczWEQwvTy4feBcubkbKeU0LiAaAILfY1x/2twPuvG wfYU1uVpxUxYcKvrCxHVEBbw8iuf6PABaROZItM2MMrJy+sWf9SQ2rwdAoGBAM4k wsJSER7NNGw08L1QhmSYqNzxZtd2sOqJJXny32zOOW4c2UUbdqoXmfAgPceeAec0 cE1W0SOzi06aNSjI1LQf5mKN4nFIt1Nw19zl9/YDZgbNkysuwsSlBQhZz+TwembC 3icGC8dLMLTpZPrXZ+bsmbj5QO5B0DY8hgXpzZn/AoGASr1Eo6AD8bvCmgU2B+St mu7yNfXqg9zyy00KXq8F9rW0W/B85HWZ2X0zQYpFZibbExfJOjRuc1y4rCLHJhMO IWvVTYxJCdLUISXZv3Bnnt4/vTFqyFRQp805wML5GN00It2PW9c1bYk78OqvnBXu y3Oe7WAQxMJd+jgi8pUFS2UCgYEAnr92cDjM0GCMn0vBnLi3Vh6t47/PR9wyb9r/ zkK3xk2lsmNq+iolHuWf+WiKyv+mTYt3dEeINSsd+4ELsQW/r5rlSz4ihMTP0OUU hxtd8ck6N8D2NYoEGXVPQ9gOHisGx74HYBvq1CXWM2uNBRL/A7luxCDG3PQ3yJyh RUqAt7cCgYEAmp5WdnTZJxkYFwaQ/MYebU4KAMMsvGoMkF+x7MJuB/0oXdpJnMyV QOwLXF/NZrWCyEqstGRN+rSKJXF/slD4wgAZBjfRkXMeYcsCEEPXQLLnj8SF5QIv 8+rvyN9fX+MnxRY9PqCXRaXRl7G/3ORxbPRPsefQAsDQ5NsN5lay2l4= -----END RSA PRIVATE KEY-----", required = true, value = "Apple private key for a given certificate for sending push notifications") + @ApiModelProperty(example = "-----BEGIN RSA PRIVATE KEY----- MIIEpQIBAAKCAQEAsNlRJVZn9ZvXcECQm65czs... -----END RSA PRIVATE KEY-----", required = true, value = "Apple private key for a given certificate for sending push notifications. For iOS only") @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -154,11 +166,11 @@ public PushCredential serverKey(String serverKey) { } /** - * Google server key for sending push notifications + * Google server key for sending push notifications. For Android only * @return serverKey **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "BBBB0J56jd8kda:APA91vjb11BCjvxx3Jxja9L8B1FrxJbc1z2btoiFYkda9Simkkda_0SJNidSan9-jkda-nieD3js9SdhfazonSbLN5VXQDqXFRuPW4kdo_fdnaxdai3y9z9DKXie0", required = true, value = "Google server key for sending push notifications") + @ApiModelProperty(example = "", required = true, value = "Google server key for sending push notifications. For Android only") @JsonProperty(JSON_PROPERTY_SERVER_KEY) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -200,6 +212,32 @@ public void setAlias(String alias) { } + public PushCredential type(String type) { + this.type = type; + return this; + } + + /** + * Type of mobile push credential. Either <code>ios</code> or <code>android</code> + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "ios", required = true, value = "Type of mobile push credential. Either ios or android") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(String type) { + this.type = type; + } + + /** * Get recordType * @return recordType @@ -285,6 +323,7 @@ public boolean equals(Object o) { Objects.equals(this.privateKey, pushCredential.privateKey) && Objects.equals(this.serverKey, pushCredential.serverKey) && Objects.equals(this.alias, pushCredential.alias) && + Objects.equals(this.type, pushCredential.type) && Objects.equals(this.recordType, pushCredential.recordType) && Objects.equals(this.createdAt, pushCredential.createdAt) && Objects.equals(this.updatedAt, pushCredential.updatedAt); @@ -292,7 +331,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(id, certificate, privateKey, serverKey, alias, recordType, createdAt, updatedAt); + return Objects.hash(id, certificate, privateKey, serverKey, alias, type, recordType, createdAt, updatedAt); } @Override @@ -304,6 +343,7 @@ public String toString() { sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); sb.append(" serverKey: ").append(toIndentedString(serverKey)).append("\n"); sb.append(" alias: ").append(toIndentedString(alias)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); diff --git a/src/main/java/com/telnyx/sdk/model/ReadComment.java b/src/main/java/com/telnyx/sdk/model/ReadComment.java index ed05b657..b5b91ec2 100644 --- a/src/main/java/com/telnyx/sdk/model/ReadComment.java +++ b/src/main/java/com/telnyx/sdk/model/ReadComment.java @@ -149,6 +149,24 @@ public static CommentRecordTypeEnum fromValue(String value) { public ReadComment() { } + @JsonCreator + public ReadComment( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_COMMENTER) String commenter, + @JsonProperty(JSON_PROPERTY_COMMENTER_TYPE) CommenterTypeEnum commenterType, + @JsonProperty(JSON_PROPERTY_READ_AT) String readAt, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.commenter = commenter; + this.commenterType = commenterType; + this.readAt = readAt; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/ReadCommentAllOf.java b/src/main/java/com/telnyx/sdk/model/ReadCommentAllOf.java index 7516dfb0..a0571cbf 100644 --- a/src/main/java/com/telnyx/sdk/model/ReadCommentAllOf.java +++ b/src/main/java/com/telnyx/sdk/model/ReadCommentAllOf.java @@ -42,6 +42,14 @@ public class ReadCommentAllOf { public ReadCommentAllOf() { } + @JsonCreator + public ReadCommentAllOf( + @JsonProperty(JSON_PROPERTY_READ_AT) String readAt + ) { + this(); + this.readAt = readAt; + } + /** * An ISO 8901 datetime string for when the comment was read. * @return readAt diff --git a/src/main/java/com/telnyx/sdk/model/Record.java b/src/main/java/com/telnyx/sdk/model/Record.java new file mode 100644 index 00000000..649f15d2 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Record.java @@ -0,0 +1,183 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Record + */ +@JsonPropertyOrder({ + Record.JSON_PROPERTY_ID, + Record.JSON_PROPERTY_RECORD_TYPE, + Record.JSON_PROPERTY_CREATED_AT, + Record.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Record { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public Record() { + } + + @JsonCreator + public Record( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "sample_record_type", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + /** + * Return true if this Record object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Record record = (Record) o; + return Objects.equals(this.id, record.id) && + Objects.equals(this.recordType, record.recordType) && + Objects.equals(this.createdAt, record.createdAt) && + Objects.equals(this.updatedAt, record.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Record {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201Response.java b/src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201Response.java new file mode 100644 index 00000000..c9a2dffe --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RefreshRoomClientToken201ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RefreshRoomClientToken201Response + */ +@JsonPropertyOrder({ + RefreshRoomClientToken201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RefreshRoomClientToken201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private RefreshRoomClientToken201ResponseData data; + + public RefreshRoomClientToken201Response() { + } + + public RefreshRoomClientToken201Response data(RefreshRoomClientToken201ResponseData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RefreshRoomClientToken201ResponseData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(RefreshRoomClientToken201ResponseData data) { + this.data = data; + } + + + /** + * Return true if this RefreshRoomClientToken_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RefreshRoomClientToken201Response refreshRoomClientToken201Response = (RefreshRoomClientToken201Response) o; + return Objects.equals(this.data, refreshRoomClientToken201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RefreshRoomClientToken201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseData.java b/src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseData.java new file mode 100644 index 00000000..1d366327 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseData.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RefreshRoomClientToken201ResponseData + */ +@JsonPropertyOrder({ + RefreshRoomClientToken201ResponseData.JSON_PROPERTY_TOKEN, + RefreshRoomClientToken201ResponseData.JSON_PROPERTY_TOKEN_EXPIRES_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RefreshRoomClientToken201ResponseData { + public static final String JSON_PROPERTY_TOKEN = "token"; + private String token; + + public static final String JSON_PROPERTY_TOKEN_EXPIRES_AT = "token_expires_at"; + private String tokenExpiresAt; + + public RefreshRoomClientToken201ResponseData() { + } + + public RefreshRoomClientToken201ResponseData token(String token) { + this.token = token; + return this; + } + + /** + * Get token + * @return token + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "eyJhbGciOiJIUzUxMiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJ0ZWxueXhfdGVsZXBob255IiwiZXhwIjoxNTkwMDEwMTQzLCJpYXQiOjE1ODc1OTA5NDMsImlzcyI6InRlbG55eF90ZWxlcGhvbnkiLCJqdGkiOiJiOGM3NDgzNy1kODllLTRhNjUtOWNmMi0zNGM3YTZmYTYwYzgiLCJuYmYiOjE1ODc1OTA5NDIsInN1YiI6IjVjN2FjN2QwLWRiNjUtNGYxMS05OGUxLWVlYzBkMWQ1YzZhZSIsInRlbF90b2tlbiI6InJqX1pra1pVT1pNeFpPZk9tTHBFVUIzc2lVN3U2UmpaRmVNOXMtZ2JfeENSNTZXRktGQUppTXlGMlQ2Q0JSbWxoX1N5MGlfbGZ5VDlBSThzRWlmOE1USUlzenl6U2xfYURuRzQ4YU81MHlhSEd1UlNZYlViU1ltOVdJaVEwZz09IiwidHlwIjoiYWNjZXNzIn0.gNEwzTow5MLLPLQENytca7pUN79PmPj6FyqZWW06ZeEmesxYpwKh0xRtA0TzLh6CDYIRHrI8seofOO0YFGDhpQ", value = "") + @JsonProperty(JSON_PROPERTY_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getToken() { + return token; + } + + + @JsonProperty(JSON_PROPERTY_TOKEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setToken(String token) { + this.token = token; + } + + + public RefreshRoomClientToken201ResponseData tokenExpiresAt(String tokenExpiresAt) { + this.tokenExpiresAt = tokenExpiresAt; + return this; + } + + /** + * ISO 8601 timestamp when the token expires. + * @return tokenExpiresAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-03-26T17:51:59Z", value = "ISO 8601 timestamp when the token expires.") + @JsonProperty(JSON_PROPERTY_TOKEN_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTokenExpiresAt() { + return tokenExpiresAt; + } + + + @JsonProperty(JSON_PROPERTY_TOKEN_EXPIRES_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTokenExpiresAt(String tokenExpiresAt) { + this.tokenExpiresAt = tokenExpiresAt; + } + + + /** + * Return true if this RefreshRoomClientToken_201_response_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RefreshRoomClientToken201ResponseData refreshRoomClientToken201ResponseData = (RefreshRoomClientToken201ResponseData) o; + return Objects.equals(this.token, refreshRoomClientToken201ResponseData.token) && + Objects.equals(this.tokenExpiresAt, refreshRoomClientToken201ResponseData.tokenExpiresAt); + } + + @Override + public int hashCode() { + return Objects.hash(token, tokenExpiresAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RefreshRoomClientToken201ResponseData {\n"); + sb.append(" token: ").append(toIndentedString(token)).append("\n"); + sb.append(" tokenExpiresAt: ").append(toIndentedString(tokenExpiresAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Region.java b/src/main/java/com/telnyx/sdk/model/Region.java new file mode 100644 index 00000000..09e0c42c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Region.java @@ -0,0 +1,264 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Region + */ +@JsonPropertyOrder({ + Region.JSON_PROPERTY_RECORD_TYPE, + Region.JSON_PROPERTY_CODE, + Region.JSON_PROPERTY_NAME, + Region.JSON_PROPERTY_SUPPORTED_INTERFACES, + Region.JSON_PROPERTY_CREATED_AT, + Region.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Region { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CODE = "code"; + private String code; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_SUPPORTED_INTERFACES = "supported_interfaces"; + private List supportedInterfaces = null; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public Region() { + } + + @JsonCreator + public Region( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "region", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + public Region code(String code) { + this.code = code; + return this; + } + + /** + * A code for the region. + * @return code + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "A code for the region.") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(String code) { + this.code = code; + } + + + public Region name(String name) { + this.name = name; + return this; + } + + /** + * A name for the region. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Ashburn", value = "A name for the region.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public Region supportedInterfaces(List supportedInterfaces) { + this.supportedInterfaces = supportedInterfaces; + return this; + } + + public Region addSupportedInterfacesItem(String supportedInterfacesItem) { + if (this.supportedInterfaces == null) { + this.supportedInterfaces = new ArrayList<>(); + } + this.supportedInterfaces.add(supportedInterfacesItem); + return this; + } + + /** + * List of interface types supported in this region. + * @return supportedInterfaces + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "List of interface types supported in this region.") + @JsonProperty(JSON_PROPERTY_SUPPORTED_INTERFACES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getSupportedInterfaces() { + return supportedInterfaces; + } + + + @JsonProperty(JSON_PROPERTY_SUPPORTED_INTERFACES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSupportedInterfaces(List supportedInterfaces) { + this.supportedInterfaces = supportedInterfaces; + } + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + /** + * Return true if this Region object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Region region = (Region) o; + return Objects.equals(this.recordType, region.recordType) && + Objects.equals(this.code, region.code) && + Objects.equals(this.name, region.name) && + Objects.equals(this.supportedInterfaces, region.supportedInterfaces) && + Objects.equals(this.createdAt, region.createdAt) && + Objects.equals(this.updatedAt, region.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, code, name, supportedInterfaces, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Region {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" supportedInterfaces: ").append(toIndentedString(supportedInterfaces)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RegionIn.java b/src/main/java/com/telnyx/sdk/model/RegionIn.java new file mode 100644 index 00000000..22839ccf --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RegionIn.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RegionIn + */ +@JsonPropertyOrder({ + RegionIn.JSON_PROPERTY_REGION_CODE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegionIn { + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public RegionIn() { + } + + public RegionIn regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region the interface should be deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region the interface should be deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + /** + * Return true if this RegionIn object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegionIn regionIn = (RegionIn) o; + return Objects.equals(this.regionCode, regionIn.regionCode); + } + + @Override + public int hashCode() { + return Objects.hash(regionCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegionIn {\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RegionList200Response.java b/src/main/java/com/telnyx/sdk/model/RegionList200Response.java new file mode 100644 index 00000000..4ea702b2 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RegionList200Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Region; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RegionList200Response + */ +@JsonPropertyOrder({ + RegionList200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegionList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public RegionList200Response() { + } + + public RegionList200Response data(List data) { + this.data = data; + return this; + } + + public RegionList200Response addDataItem(Region dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this RegionList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegionList200Response regionList200Response = (RegionList200Response) o; + return Objects.equals(this.data, regionList200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegionList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RegionOut.java b/src/main/java/com/telnyx/sdk/model/RegionOut.java new file mode 100644 index 00000000..af9680be --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RegionOut.java @@ -0,0 +1,145 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RegionOutRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RegionOut + */ +@JsonPropertyOrder({ + RegionOut.JSON_PROPERTY_REGION_CODE, + RegionOut.JSON_PROPERTY_REGION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegionOut { + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public static final String JSON_PROPERTY_REGION = "region"; + private RegionOutRegion region; + + public RegionOut() { + } + + public RegionOut regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region interface is deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region interface is deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + public RegionOut region(RegionOutRegion region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RegionOutRegion getRegion() { + return region; + } + + + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegion(RegionOutRegion region) { + this.region = region; + } + + + /** + * Return true if this RegionOut object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegionOut regionOut = (RegionOut) o; + return Objects.equals(this.regionCode, regionOut.regionCode) && + Objects.equals(this.region, regionOut.region); + } + + @Override + public int hashCode() { + return Objects.hash(regionCode, region); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegionOut {\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RegionOutRegion.java b/src/main/java/com/telnyx/sdk/model/RegionOutRegion.java new file mode 100644 index 00000000..82cdc0d4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RegionOutRegion.java @@ -0,0 +1,174 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RegionOutRegion + */ +@JsonPropertyOrder({ + RegionOutRegion.JSON_PROPERTY_CODE, + RegionOutRegion.JSON_PROPERTY_NAME, + RegionOutRegion.JSON_PROPERTY_RECORD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegionOutRegion { + public static final String JSON_PROPERTY_CODE = "code"; + private String code; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public RegionOutRegion() { + } + + @JsonCreator + public RegionOutRegion( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + + public RegionOutRegion code(String code) { + this.code = code; + return this; + } + + /** + * Region code of the interface. + * @return code + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "Region code of the interface.") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCode(String code) { + this.code = code; + } + + + public RegionOutRegion name(String name) { + this.name = name; + return this; + } + + /** + * Region name of the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Ashburn", value = "Region name of the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "region", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * Return true if this RegionOut_region object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegionOutRegion regionOutRegion = (RegionOutRegion) o; + return Objects.equals(this.code, regionOutRegion.code) && + Objects.equals(this.name, regionOutRegion.name) && + Objects.equals(this.recordType, regionOutRegion.recordType); + } + + @Override + public int hashCode() { + return Objects.hash(code, name, recordType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegionOutRegion {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RegulatoryRequirements.java b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirements.java index b5cf35b0..477b1dcd 100644 --- a/src/main/java/com/telnyx/sdk/model/RegulatoryRequirements.java +++ b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirements.java @@ -22,8 +22,8 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.RegulatoryRequirementsRegionInformation; -import com.telnyx.sdk.model.RegulatoryRequirementsRegulatoryRequirements; +import com.telnyx.sdk.model.RegulatoryRequirementsRegionInformationInner; +import com.telnyx.sdk.model.RegulatoryRequirementsRegulatoryRequirementsInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; @@ -51,17 +51,29 @@ public class RegulatoryRequirements { private String phoneNumberType; public static final String JSON_PROPERTY_REGION_INFORMATION = "region_information"; - private List regionInformation = null; + private List regionInformation = null; public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; private String recordType; public static final String JSON_PROPERTY_REGULATORY_REQUIREMENTS = "regulatory_requirements"; - private List regulatoryRequirements = null; + private List regulatoryRequirements = null; public RegulatoryRequirements() { } + @JsonCreator + public RegulatoryRequirements( + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) String phoneNumber, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER_TYPE) String phoneNumberType, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.phoneNumber = phoneNumber; + this.phoneNumberType = phoneNumberType; + this.recordType = recordType; + } + /** * Get phoneNumber * @return phoneNumber @@ -94,12 +106,12 @@ public String getPhoneNumberType() { - public RegulatoryRequirements regionInformation(List regionInformation) { + public RegulatoryRequirements regionInformation(List regionInformation) { this.regionInformation = regionInformation; return this; } - public RegulatoryRequirements addRegionInformationItem(RegulatoryRequirementsRegionInformation regionInformationItem) { + public RegulatoryRequirements addRegionInformationItem(RegulatoryRequirementsRegionInformationInner regionInformationItem) { if (this.regionInformation == null) { this.regionInformation = new ArrayList<>(); } @@ -116,14 +128,14 @@ public RegulatoryRequirements addRegionInformationItem(RegulatoryRequirementsReg @JsonProperty(JSON_PROPERTY_REGION_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRegionInformation() { + public List getRegionInformation() { return regionInformation; } @JsonProperty(JSON_PROPERTY_REGION_INFORMATION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegionInformation(List regionInformation) { + public void setRegionInformation(List regionInformation) { this.regionInformation = regionInformation; } @@ -144,12 +156,12 @@ public String getRecordType() { - public RegulatoryRequirements regulatoryRequirements(List regulatoryRequirements) { + public RegulatoryRequirements regulatoryRequirements(List regulatoryRequirements) { this.regulatoryRequirements = regulatoryRequirements; return this; } - public RegulatoryRequirements addRegulatoryRequirementsItem(RegulatoryRequirementsRegulatoryRequirements regulatoryRequirementsItem) { + public RegulatoryRequirements addRegulatoryRequirementsItem(RegulatoryRequirementsRegulatoryRequirementsInner regulatoryRequirementsItem) { if (this.regulatoryRequirements == null) { this.regulatoryRequirements = new ArrayList<>(); } @@ -166,14 +178,14 @@ public RegulatoryRequirements addRegulatoryRequirementsItem(RegulatoryRequiremen @JsonProperty(JSON_PROPERTY_REGULATORY_REQUIREMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getRegulatoryRequirements() { + public List getRegulatoryRequirements() { return regulatoryRequirements; } @JsonProperty(JSON_PROPERTY_REGULATORY_REQUIREMENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setRegulatoryRequirements(List regulatoryRequirements) { + public void setRegulatoryRequirements(List regulatoryRequirements) { this.regulatoryRequirements = regulatoryRequirements; } diff --git a/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInner.java b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInner.java new file mode 100644 index 00000000..562847d1 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInner.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RegulatoryRequirementsRegionInformationInner + */ +@JsonPropertyOrder({ + RegulatoryRequirementsRegionInformationInner.JSON_PROPERTY_REGION_NAME, + RegulatoryRequirementsRegionInformationInner.JSON_PROPERTY_REGION_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegulatoryRequirementsRegionInformationInner { + public static final String JSON_PROPERTY_REGION_NAME = "region_name"; + private String regionName; + + public static final String JSON_PROPERTY_REGION_TYPE = "region_type"; + private String regionType; + + public RegulatoryRequirementsRegionInformationInner() { + } + + public RegulatoryRequirementsRegionInformationInner regionName(String regionName) { + this.regionName = regionName; + return this; + } + + /** + * Get regionName + * @return regionName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "CH", value = "") + @JsonProperty(JSON_PROPERTY_REGION_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionName() { + return regionName; + } + + + @JsonProperty(JSON_PROPERTY_REGION_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionName(String regionName) { + this.regionName = regionName; + } + + + public RegulatoryRequirementsRegionInformationInner regionType(String regionType) { + this.regionType = regionType; + return this; + } + + /** + * Get regionType + * @return regionType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "country_code", value = "") + @JsonProperty(JSON_PROPERTY_REGION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionType() { + return regionType; + } + + + @JsonProperty(JSON_PROPERTY_REGION_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionType(String regionType) { + this.regionType = regionType; + } + + + /** + * Return true if this RegulatoryRequirements_region_information_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegulatoryRequirementsRegionInformationInner regulatoryRequirementsRegionInformationInner = (RegulatoryRequirementsRegionInformationInner) o; + return Objects.equals(this.regionName, regulatoryRequirementsRegionInformationInner.regionName) && + Objects.equals(this.regionType, regulatoryRequirementsRegionInformationInner.regionType); + } + + @Override + public int hashCode() { + return Objects.hash(regionName, regionType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegulatoryRequirementsRegionInformationInner {\n"); + sb.append(" regionName: ").append(toIndentedString(regionName)).append("\n"); + sb.append(" regionType: ").append(toIndentedString(regionType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInner.java b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInner.java new file mode 100644 index 00000000..34b2872c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInner.java @@ -0,0 +1,280 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RegulatoryRequirementsRegulatoryRequirementsInner + */ +@JsonPropertyOrder({ + RegulatoryRequirementsRegulatoryRequirementsInner.JSON_PROPERTY_DESCRIPTION, + RegulatoryRequirementsRegulatoryRequirementsInner.JSON_PROPERTY_ID, + RegulatoryRequirementsRegulatoryRequirementsInner.JSON_PROPERTY_EXAMPLE, + RegulatoryRequirementsRegulatoryRequirementsInner.JSON_PROPERTY_LABEL, + RegulatoryRequirementsRegulatoryRequirementsInner.JSON_PROPERTY_FIELD_TYPE, + RegulatoryRequirementsRegulatoryRequirementsInner.JSON_PROPERTY_ACCEPTANCE_CRITERIA, + RegulatoryRequirementsRegulatoryRequirementsInner.JSON_PROPERTY_RECORD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegulatoryRequirementsRegulatoryRequirementsInner { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_EXAMPLE = "example"; + private String example; + + public static final String JSON_PROPERTY_LABEL = "label"; + private String label; + + public static final String JSON_PROPERTY_FIELD_TYPE = "field_type"; + private String fieldType; + + public static final String JSON_PROPERTY_ACCEPTANCE_CRITERIA = "acceptance_criteria"; + private RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria acceptanceCriteria; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public RegulatoryRequirementsRegulatoryRequirementsInner() { + } + + @JsonCreator + public RegulatoryRequirementsRegulatoryRequirementsInner( + @JsonProperty(JSON_PROPERTY_DESCRIPTION) String description, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_EXAMPLE) String example, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.description = description; + this.id = id; + this.example = example; + this.recordType = recordType; + } + + /** + * Get description + * @return description + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Address matching the DID area code (street, building number, postal code, city and country)", value = "") + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDescription() { + return description; + } + + + + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12ade33a-21c0-473b-b055-b3c836e1c292", value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Get example + * @return example + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "311 W Superior St, Chicago, IL 60654", value = "") + @JsonProperty(JSON_PROPERTY_EXAMPLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getExample() { + return example; + } + + + + + public RegulatoryRequirementsRegulatoryRequirementsInner label(String label) { + this.label = label; + return this; + } + + /** + * Get label + * @return label + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Address matching the DID area code", value = "") + @JsonProperty(JSON_PROPERTY_LABEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLabel() { + return label; + } + + + @JsonProperty(JSON_PROPERTY_LABEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLabel(String label) { + this.label = label; + } + + + public RegulatoryRequirementsRegulatoryRequirementsInner fieldType(String fieldType) { + this.fieldType = fieldType; + return this; + } + + /** + * Get fieldType + * @return fieldType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "address_id", value = "") + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldType() { + return fieldType; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldType(String fieldType) { + this.fieldType = fieldType; + } + + + public RegulatoryRequirementsRegulatoryRequirementsInner acceptanceCriteria(RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria acceptanceCriteria) { + this.acceptanceCriteria = acceptanceCriteria; + return this; + } + + /** + * Get acceptanceCriteria + * @return acceptanceCriteria + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ACCEPTANCE_CRITERIA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria getAcceptanceCriteria() { + return acceptanceCriteria; + } + + + @JsonProperty(JSON_PROPERTY_ACCEPTANCE_CRITERIA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAcceptanceCriteria(RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria acceptanceCriteria) { + this.acceptanceCriteria = acceptanceCriteria; + } + + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "regulatory_requirement", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * Return true if this RegulatoryRequirements_regulatory_requirements_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegulatoryRequirementsRegulatoryRequirementsInner regulatoryRequirementsRegulatoryRequirementsInner = (RegulatoryRequirementsRegulatoryRequirementsInner) o; + return Objects.equals(this.description, regulatoryRequirementsRegulatoryRequirementsInner.description) && + Objects.equals(this.id, regulatoryRequirementsRegulatoryRequirementsInner.id) && + Objects.equals(this.example, regulatoryRequirementsRegulatoryRequirementsInner.example) && + Objects.equals(this.label, regulatoryRequirementsRegulatoryRequirementsInner.label) && + Objects.equals(this.fieldType, regulatoryRequirementsRegulatoryRequirementsInner.fieldType) && + Objects.equals(this.acceptanceCriteria, regulatoryRequirementsRegulatoryRequirementsInner.acceptanceCriteria) && + Objects.equals(this.recordType, regulatoryRequirementsRegulatoryRequirementsInner.recordType); + } + + @Override + public int hashCode() { + return Objects.hash(description, id, example, label, fieldType, acceptanceCriteria, recordType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegulatoryRequirementsRegulatoryRequirementsInner {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" example: ").append(toIndentedString(example)).append("\n"); + sb.append(" label: ").append(toIndentedString(label)).append("\n"); + sb.append(" fieldType: ").append(toIndentedString(fieldType)).append("\n"); + sb.append(" acceptanceCriteria: ").append(toIndentedString(acceptanceCriteria)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.java b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.java new file mode 100644 index 00000000..957499d8 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.java @@ -0,0 +1,176 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria + */ +@JsonPropertyOrder({ + RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.JSON_PROPERTY_LOCALITY_LIMIT, + RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.JSON_PROPERTY_FIELD_VALUE, + RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.JSON_PROPERTY_FIELD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria { + public static final String JSON_PROPERTY_LOCALITY_LIMIT = "locality_limit"; + private String localityLimit; + + public static final String JSON_PROPERTY_FIELD_VALUE = "field_value"; + private String fieldValue; + + public static final String JSON_PROPERTY_FIELD_TYPE = "field_type"; + private String fieldType; + + public RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria() { + } + + public RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria localityLimit(String localityLimit) { + this.localityLimit = localityLimit; + return this; + } + + /** + * Get localityLimit + * @return localityLimit + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Identical locality as the numbers desired", value = "") + @JsonProperty(JSON_PROPERTY_LOCALITY_LIMIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLocalityLimit() { + return localityLimit; + } + + + @JsonProperty(JSON_PROPERTY_LOCALITY_LIMIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLocalityLimit(String localityLimit) { + this.localityLimit = localityLimit; + } + + + public RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria fieldValue(String fieldValue) { + this.fieldValue = fieldValue; + return this; + } + + /** + * Get fieldValue + * @return fieldValue + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "45f45a04-b4be-4592-95b1-9306b9db2b21", value = "") + @JsonProperty(JSON_PROPERTY_FIELD_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldValue() { + return fieldValue; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldValue(String fieldValue) { + this.fieldValue = fieldValue; + } + + + public RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria fieldType(String fieldType) { + this.fieldType = fieldType; + return this; + } + + /** + * Get fieldType + * @return fieldType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "address", value = "") + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFieldType() { + return fieldType; + } + + + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFieldType(String fieldType) { + this.fieldType = fieldType; + } + + + /** + * Return true if this RegulatoryRequirements_regulatory_requirements_inner_acceptance_criteria object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria regulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria = (RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria) o; + return Objects.equals(this.localityLimit, regulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.localityLimit) && + Objects.equals(this.fieldValue, regulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.fieldValue) && + Objects.equals(this.fieldType, regulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria.fieldType); + } + + @Override + public int hashCode() { + return Objects.hash(localityLimit, fieldValue, fieldType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria {\n"); + sb.append(" localityLimit: ").append(toIndentedString(localityLimit)).append("\n"); + sb.append(" fieldValue: ").append(toIndentedString(fieldValue)).append("\n"); + sb.append(" fieldType: ").append(toIndentedString(fieldType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Reply.java b/src/main/java/com/telnyx/sdk/model/Reply.java new file mode 100644 index 00000000..24c56592 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Reply.java @@ -0,0 +1,146 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveButtonReply; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Reply button details. + */ +@ApiModel(description = "Reply button details.") +@JsonPropertyOrder({ + Reply.JSON_PROPERTY_TITLE, + Reply.JSON_PROPERTY_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Reply { + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public Reply() { + } + + public Reply title(String title) { + this.title = title; + return this; + } + + /** + * Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not. + * @return title + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Button title. It cannot be an empty string and must be unique within the message. Emojis are supported, markdown is not.") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTitle() { + return title; + } + + + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTitle(String title) { + this.title = title; + } + + + public Reply id(String id) { + this.id = id; + return this; + } + + /** + * Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. You cannot have leading or trailing spaces when setting the ID. + * @return id + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Unique identifier for your button. This ID is returned in the webhook when the button is clicked by the user. You cannot have leading or trailing spaces when setting the ID.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setId(String id) { + this.id = id; + } + + + /** + * Return true if this Reply object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Reply reply = (Reply) o; + return Objects.equals(this.title, reply.title) && + Objects.equals(this.id, reply.id); + } + + @Override + public int hashCode() { + return Objects.hash(title, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Reply {\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ReservedPhoneNumber.java b/src/main/java/com/telnyx/sdk/model/ReservedPhoneNumber.java index db957c92..13b5601f 100644 --- a/src/main/java/com/telnyx/sdk/model/ReservedPhoneNumber.java +++ b/src/main/java/com/telnyx/sdk/model/ReservedPhoneNumber.java @@ -104,6 +104,24 @@ public static StatusEnum fromValue(String value) { public ReservedPhoneNumber() { } + @JsonCreator + public ReservedPhoneNumber( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_EXPIRED_AT) String expiredAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.expiredAt = expiredAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/ResourceNotFoundError.java b/src/main/java/com/telnyx/sdk/model/ResourceNotFoundError.java index 6aef0feb..4a78aa9c 100644 --- a/src/main/java/com/telnyx/sdk/model/ResourceNotFoundError.java +++ b/src/main/java/com/telnyx/sdk/model/ResourceNotFoundError.java @@ -22,10 +22,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ErrorSource; import com.telnyx.sdk.model.GenericError; import com.telnyx.sdk.model.ResourceNotFoundErrorAllOf; import com.telnyx.sdk.model.ResourceNotFoundErrorAllOfMeta; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInnerSource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; @@ -58,7 +58,7 @@ public class ResourceNotFoundError { private JsonNullable detail = JsonNullable.of(null); public static final String JSON_PROPERTY_SOURCE = "source"; - private ErrorSource source; + private UpdateOutboundChannelsDefaultResponseErrorsInnerSource source; public static final String JSON_PROPERTY_META = "meta"; private ResourceNotFoundErrorAllOfMeta meta; @@ -168,7 +168,7 @@ public void setDetail(Object detail) { } - public ResourceNotFoundError source(ErrorSource source) { + public ResourceNotFoundError source(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; return this; } @@ -182,14 +182,14 @@ public ResourceNotFoundError source(ErrorSource source) { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ErrorSource getSource() { + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(ErrorSource source) { + public void setSource(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; } diff --git a/src/main/java/com/telnyx/sdk/model/Room.java b/src/main/java/com/telnyx/sdk/model/Room.java index b3ad262b..e09d3872 100644 --- a/src/main/java/com/telnyx/sdk/model/Room.java +++ b/src/main/java/com/telnyx/sdk/model/Room.java @@ -94,6 +94,14 @@ public class Room { public Room() { } + @JsonCreator + public Room( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public Room id(UUID id) { this.id = id; return this; diff --git a/src/main/java/com/telnyx/sdk/model/RoomComposition.java b/src/main/java/com/telnyx/sdk/model/RoomComposition.java index fa188651..c986beb3 100644 --- a/src/main/java/com/telnyx/sdk/model/RoomComposition.java +++ b/src/main/java/com/telnyx/sdk/model/RoomComposition.java @@ -193,6 +193,14 @@ public static FormatEnum fromValue(String value) { public RoomComposition() { } + @JsonCreator + public RoomComposition( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public RoomComposition id(UUID id) { this.id = id; return this; diff --git a/src/main/java/com/telnyx/sdk/model/RoomParticipant.java b/src/main/java/com/telnyx/sdk/model/RoomParticipant.java index 4fb29519..e178d3cd 100644 --- a/src/main/java/com/telnyx/sdk/model/RoomParticipant.java +++ b/src/main/java/com/telnyx/sdk/model/RoomParticipant.java @@ -67,6 +67,14 @@ public class RoomParticipant { public RoomParticipant() { } + @JsonCreator + public RoomParticipant( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public RoomParticipant id(UUID id) { this.id = id; return this; diff --git a/src/main/java/com/telnyx/sdk/model/RoomRecording.java b/src/main/java/com/telnyx/sdk/model/RoomRecording.java index 6f0482e2..ed85c088 100644 --- a/src/main/java/com/telnyx/sdk/model/RoomRecording.java +++ b/src/main/java/com/telnyx/sdk/model/RoomRecording.java @@ -173,6 +173,14 @@ public static TypeEnum fromValue(String value) { public RoomRecording() { } + @JsonCreator + public RoomRecording( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public RoomRecording id(UUID id) { this.id = id; return this; diff --git a/src/main/java/com/telnyx/sdk/model/RoomSession.java b/src/main/java/com/telnyx/sdk/model/RoomSession.java index 1545f51c..54969376 100644 --- a/src/main/java/com/telnyx/sdk/model/RoomSession.java +++ b/src/main/java/com/telnyx/sdk/model/RoomSession.java @@ -74,6 +74,14 @@ public class RoomSession { public RoomSession() { } + @JsonCreator + public RoomSession( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public RoomSession id(UUID id) { this.id = id; return this; diff --git a/src/main/java/com/telnyx/sdk/model/SIMCard.java b/src/main/java/com/telnyx/sdk/model/SIMCard.java index cd9ef16c..75896771 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCard.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCard.java @@ -49,13 +49,16 @@ SIMCard.JSON_PROPERTY_TAGS, SIMCard.JSON_PROPERTY_DATA_LIMIT, SIMCard.JSON_PROPERTY_CURRENT_BILLING_PERIOD_CONSUMED_DATA, + SIMCard.JSON_PROPERTY_AUTHORIZED_IMEIS, + SIMCard.JSON_PROPERTY_CURRENT_IMEI, SIMCard.JSON_PROPERTY_CREATED_AT, SIMCard.JSON_PROPERTY_UPDATED_AT, SIMCard.JSON_PROPERTY_IPV4, SIMCard.JSON_PROPERTY_IPV6, SIMCard.JSON_PROPERTY_CURRENT_DEVICE_LOCATION, SIMCard.JSON_PROPERTY_CURRENT_MNC, - SIMCard.JSON_PROPERTY_CURRENT_MCC + SIMCard.JSON_PROPERTY_CURRENT_MCC, + SIMCard.JSON_PROPERTY_LIVE_DATA_SESSION }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SIMCard { @@ -89,6 +92,12 @@ public class SIMCard { public static final String JSON_PROPERTY_CURRENT_BILLING_PERIOD_CONSUMED_DATA = "current_billing_period_consumed_data"; private SIMCardCurrentBillingPeriodConsumedData currentBillingPeriodConsumedData; + public static final String JSON_PROPERTY_AUTHORIZED_IMEIS = "authorized_imeis"; + private List authorizedImeis = null; + + public static final String JSON_PROPERTY_CURRENT_IMEI = "current_imei"; + private String currentImei; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private String createdAt; @@ -110,9 +119,81 @@ public class SIMCard { public static final String JSON_PROPERTY_CURRENT_MCC = "current_mcc"; private String currentMcc; + /** + * Indicates whether the device is actively connected to a network and able to run data. + */ + public enum LiveDataSessionEnum { + CONNECTED("connected"), + + DISCONNECTED("disconnected"), + + UNKNOWN("unknown"); + + private String value; + + LiveDataSessionEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LiveDataSessionEnum fromValue(String value) { + for (LiveDataSessionEnum b : LiveDataSessionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_LIVE_DATA_SESSION = "live_data_session"; + private LiveDataSessionEnum liveDataSession; + public SIMCard() { } + @JsonCreator + public SIMCard( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ICCID) String iccid, + @JsonProperty(JSON_PROPERTY_IMSI) String imsi, + @JsonProperty(JSON_PROPERTY_MSISDN) String msisdn, + @JsonProperty(JSON_PROPERTY_CURRENT_IMEI) String currentImei, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_IPV4) String ipv4, + @JsonProperty(JSON_PROPERTY_IPV6) String ipv6, + @JsonProperty(JSON_PROPERTY_CURRENT_MNC) String currentMnc, + @JsonProperty(JSON_PROPERTY_CURRENT_MCC) String currentMcc, + @JsonProperty(JSON_PROPERTY_LIVE_DATA_SESSION) LiveDataSessionEnum liveDataSession + ) { + this(); + this.id = id; + this.recordType = recordType; + this.iccid = iccid; + this.imsi = imsi; + this.msisdn = msisdn; + this.currentImei = currentImei; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.ipv4 = ipv4; + this.ipv6 = ipv6; + this.currentMnc = currentMnc; + this.currentMcc = currentMcc; + this.liveDataSession = liveDataSession; + } + /** * Identifies the resource. * @return id @@ -331,6 +412,56 @@ public void setCurrentBillingPeriodConsumedData(SIMCardCurrentBillingPeriodConsu } + public SIMCard authorizedImeis(List authorizedImeis) { + this.authorizedImeis = authorizedImeis; + return this; + } + + public SIMCard addAuthorizedImeisItem(String authorizedImeisItem) { + if (this.authorizedImeis == null) { + this.authorizedImeis = new ArrayList<>(); + } + this.authorizedImeis.add(authorizedImeisItem); + return this; + } + + /** + * List of IMEIs authorized to use a given SIM card. + * @return authorizedImeis + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[\"106516771852751\",\"534051870479563\",\"508821468377961\"]", value = "List of IMEIs authorized to use a given SIM card.") + @JsonProperty(JSON_PROPERTY_AUTHORIZED_IMEIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getAuthorizedImeis() { + return authorizedImeis; + } + + + @JsonProperty(JSON_PROPERTY_AUTHORIZED_IMEIS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAuthorizedImeis(List authorizedImeis) { + this.authorizedImeis = authorizedImeis; + } + + + /** + * IMEI of the device where a given SIM card is currently being used. + * @return currentImei + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "457032284023794", value = "IMEI of the device where a given SIM card is currently being used.") + @JsonProperty(JSON_PROPERTY_CURRENT_IMEI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCurrentImei() { + return currentImei; + } + + + + /** * ISO 8601 formatted date-time indicating when the resource was created. * @return createdAt @@ -453,6 +584,22 @@ public String getCurrentMcc() { + /** + * Indicates whether the device is actively connected to a network and able to run data. + * @return liveDataSession + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "connected", value = "Indicates whether the device is actively connected to a network and able to run data.") + @JsonProperty(JSON_PROPERTY_LIVE_DATA_SESSION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LiveDataSessionEnum getLiveDataSession() { + return liveDataSession; + } + + + + /** * Return true if this SIMCard object is equal to o. */ @@ -475,18 +622,21 @@ public boolean equals(Object o) { Objects.equals(this.tags, siMCard.tags) && Objects.equals(this.dataLimit, siMCard.dataLimit) && Objects.equals(this.currentBillingPeriodConsumedData, siMCard.currentBillingPeriodConsumedData) && + Objects.equals(this.authorizedImeis, siMCard.authorizedImeis) && + Objects.equals(this.currentImei, siMCard.currentImei) && Objects.equals(this.createdAt, siMCard.createdAt) && Objects.equals(this.updatedAt, siMCard.updatedAt) && Objects.equals(this.ipv4, siMCard.ipv4) && Objects.equals(this.ipv6, siMCard.ipv6) && Objects.equals(this.currentDeviceLocation, siMCard.currentDeviceLocation) && Objects.equals(this.currentMnc, siMCard.currentMnc) && - Objects.equals(this.currentMcc, siMCard.currentMcc); + Objects.equals(this.currentMcc, siMCard.currentMcc) && + Objects.equals(this.liveDataSession, siMCard.liveDataSession); } @Override public int hashCode() { - return Objects.hash(id, recordType, status, iccid, imsi, msisdn, simCardGroupId, tags, dataLimit, currentBillingPeriodConsumedData, createdAt, updatedAt, ipv4, ipv6, currentDeviceLocation, currentMnc, currentMcc); + return Objects.hash(id, recordType, status, iccid, imsi, msisdn, simCardGroupId, tags, dataLimit, currentBillingPeriodConsumedData, authorizedImeis, currentImei, createdAt, updatedAt, ipv4, ipv6, currentDeviceLocation, currentMnc, currentMcc, liveDataSession); } @Override @@ -503,6 +653,8 @@ public String toString() { sb.append(" tags: ").append(toIndentedString(tags)).append("\n"); sb.append(" dataLimit: ").append(toIndentedString(dataLimit)).append("\n"); sb.append(" currentBillingPeriodConsumedData: ").append(toIndentedString(currentBillingPeriodConsumedData)).append("\n"); + sb.append(" authorizedImeis: ").append(toIndentedString(authorizedImeis)).append("\n"); + sb.append(" currentImei: ").append(toIndentedString(currentImei)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n"); @@ -510,6 +662,7 @@ public String toString() { sb.append(" currentDeviceLocation: ").append(toIndentedString(currentDeviceLocation)).append("\n"); sb.append(" currentMnc: ").append(toIndentedString(currentMnc)).append("\n"); sb.append(" currentMcc: ").append(toIndentedString(currentMcc)).append("\n"); + sb.append(" liveDataSession: ").append(toIndentedString(liveDataSession)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardAction.java b/src/main/java/com/telnyx/sdk/model/SIMCardAction.java index f9911794..491078d1 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardAction.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardAction.java @@ -116,6 +116,26 @@ public static ActionTypeEnum fromValue(String value) { public SIMCardAction() { } + @JsonCreator + public SIMCardAction( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_SIM_CARD_ID) UUID simCardId, + @JsonProperty(JSON_PROPERTY_ACTION_TYPE) ActionTypeEnum actionType, + @JsonProperty(JSON_PROPERTY_SETTINGS) Object settings, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.simCardId = simCardId; + this.actionType = actionType; + this.settings = (JsonNullable) settings; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id @@ -236,17 +256,12 @@ private void setSettings_JsonNullable(JsonNullable settings) { - public SIMCardAction createdAt(String createdAt) { - this.createdAt = createdAt; - return this; - } - /** - * ISO 8601 formatted date indicating when the resource was created. + * ISO 8601 formatted date-time indicating when the resource was created. * @return createdAt **/ @javax.annotation.Nullable - @ApiModelProperty(example = "2020-02-02T22:25:27.521Z", value = "ISO 8601 formatted date indicating when the resource was created.") + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,24 +270,14 @@ public String getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - - public SIMCardAction updatedAt(String updatedAt) { - this.updatedAt = updatedAt; - return this; - } /** - * ISO 8601 formatted date indicating when the resource was updated. + * ISO 8601 formatted date-time indicating when the resource was updated. * @return updatedAt **/ @javax.annotation.Nullable - @ApiModelProperty(example = "2020-02-03T22:25:27.521Z", value = "ISO 8601 formatted date indicating when the resource was updated.") + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -281,11 +286,6 @@ public String getUpdatedAt() { } - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } /** diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardActionStatus.java b/src/main/java/com/telnyx/sdk/model/SIMCardActionStatus.java index da85078a..411f38d4 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardActionStatus.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardActionStatus.java @@ -85,6 +85,16 @@ public static ValueEnum fromValue(String value) { public SIMCardActionStatus() { } + @JsonCreator + public SIMCardActionStatus( + @JsonProperty(JSON_PROPERTY_VALUE) ValueEnum value, + @JsonProperty(JSON_PROPERTY_REASON) String reason + ) { + this(); + this.value = value; + this.reason = reason; + } + /** * The current status of the SIM card action. * @return value diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardActionsSummary.java b/src/main/java/com/telnyx/sdk/model/SIMCardActionsSummary.java new file mode 100644 index 00000000..c6c2bbf2 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SIMCardActionsSummary.java @@ -0,0 +1,183 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SIMCardActionsSummary + */ +@JsonPropertyOrder({ + SIMCardActionsSummary.JSON_PROPERTY_STATUS, + SIMCardActionsSummary.JSON_PROPERTY_COUNT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SIMCardActionsSummary { + /** + * Gets or Sets status + */ + public enum StatusEnum { + IN_PROGRESS("in-progress"), + + COMPLETED("completed"), + + FAILED("failed"), + + INTERRUPTED("interrupted"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public static final String JSON_PROPERTY_COUNT = "count"; + private Integer count; + + public SIMCardActionsSummary() { + } + + public SIMCardActionsSummary status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "in-progress", value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + public SIMCardActionsSummary count(Integer count) { + this.count = count; + return this; + } + + /** + * Get count + * @return count + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getCount() { + return count; + } + + + @JsonProperty(JSON_PROPERTY_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCount(Integer count) { + this.count = count; + } + + + /** + * Return true if this SIMCardActionsSummary object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SIMCardActionsSummary siMCardActionsSummary = (SIMCardActionsSummary) o; + return Objects.equals(this.status, siMCardActionsSummary.status) && + Objects.equals(this.count, siMCardActionsSummary.count); + } + + @Override + public int hashCode() { + return Objects.hash(status, count); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SIMCardActionsSummary {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetails.java b/src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetails.java new file mode 100644 index 00000000..be7fac22 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetails.java @@ -0,0 +1,230 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SIMCardDeviceDetails + */ +@JsonPropertyOrder({ + SIMCardDeviceDetails.JSON_PROPERTY_RECORD_TYPE, + SIMCardDeviceDetails.JSON_PROPERTY_IMEI, + SIMCardDeviceDetails.JSON_PROPERTY_MODEL_NAME, + SIMCardDeviceDetails.JSON_PROPERTY_BRAND_NAME, + SIMCardDeviceDetails.JSON_PROPERTY_DEVICE_TYPE, + SIMCardDeviceDetails.JSON_PROPERTY_OPERATING_SYSTEM +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SIMCardDeviceDetails { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_IMEI = "imei"; + private String imei; + + public static final String JSON_PROPERTY_MODEL_NAME = "model_name"; + private String modelName; + + public static final String JSON_PROPERTY_BRAND_NAME = "brand_name"; + private String brandName; + + public static final String JSON_PROPERTY_DEVICE_TYPE = "device_type"; + private String deviceType; + + public static final String JSON_PROPERTY_OPERATING_SYSTEM = "operating_system"; + private String operatingSystem; + + public SIMCardDeviceDetails() { + } + + @JsonCreator + public SIMCardDeviceDetails( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_IMEI) String imei, + @JsonProperty(JSON_PROPERTY_MODEL_NAME) String modelName, + @JsonProperty(JSON_PROPERTY_BRAND_NAME) String brandName, + @JsonProperty(JSON_PROPERTY_DEVICE_TYPE) String deviceType, + @JsonProperty(JSON_PROPERTY_OPERATING_SYSTEM) String operatingSystem + ) { + this(); + this.recordType = recordType; + this.imei = imei; + this.modelName = modelName; + this.brandName = brandName; + this.deviceType = deviceType; + this.operatingSystem = operatingSystem; + } + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "device_details", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * IMEI of the device where the SIM card is being used in. + * @return imei + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "457032284023794", value = "IMEI of the device where the SIM card is being used in.") + @JsonProperty(JSON_PROPERTY_IMEI) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getImei() { + return imei; + } + + + + + /** + * Brand of the device where the SIM card is being used in. + * @return modelName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "iPad Pro 11 2020 Cellular", value = "Brand of the device where the SIM card is being used in.") + @JsonProperty(JSON_PROPERTY_MODEL_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getModelName() { + return modelName; + } + + + + + /** + * Brand of the device where the SIM card is being used in. + * @return brandName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Apple", value = "Brand of the device where the SIM card is being used in.") + @JsonProperty(JSON_PROPERTY_BRAND_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getBrandName() { + return brandName; + } + + + + + /** + * Type of the device where the SIM card is being used in. + * @return deviceType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Tablet", value = "Type of the device where the SIM card is being used in.") + @JsonProperty(JSON_PROPERTY_DEVICE_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDeviceType() { + return deviceType; + } + + + + + /** + * Operating system of the device where the SIM card is being used in. + * @return operatingSystem + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "iOS 12", value = "Operating system of the device where the SIM card is being used in.") + @JsonProperty(JSON_PROPERTY_OPERATING_SYSTEM) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getOperatingSystem() { + return operatingSystem; + } + + + + + /** + * Return true if this SIMCardDeviceDetails object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SIMCardDeviceDetails siMCardDeviceDetails = (SIMCardDeviceDetails) o; + return Objects.equals(this.recordType, siMCardDeviceDetails.recordType) && + Objects.equals(this.imei, siMCardDeviceDetails.imei) && + Objects.equals(this.modelName, siMCardDeviceDetails.modelName) && + Objects.equals(this.brandName, siMCardDeviceDetails.brandName) && + Objects.equals(this.deviceType, siMCardDeviceDetails.deviceType) && + Objects.equals(this.operatingSystem, siMCardDeviceDetails.operatingSystem); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, imei, modelName, brandName, deviceType, operatingSystem); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SIMCardDeviceDetails {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" imei: ").append(toIndentedString(imei)).append("\n"); + sb.append(" modelName: ").append(toIndentedString(modelName)).append("\n"); + sb.append(" brandName: ").append(toIndentedString(brandName)).append("\n"); + sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); + sb.append(" operatingSystem: ").append(toIndentedString(operatingSystem)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200Response.java b/src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200Response.java new file mode 100644 index 00000000..30a7c060 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardDeviceDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SIMCardDeviceDetailsGet200Response + */ +@JsonPropertyOrder({ + SIMCardDeviceDetailsGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SIMCardDeviceDetailsGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardDeviceDetails data; + + public SIMCardDeviceDetailsGet200Response() { + } + + public SIMCardDeviceDetailsGet200Response data(SIMCardDeviceDetails data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardDeviceDetails getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardDeviceDetails data) { + this.data = data; + } + + + /** + * Return true if this SIMCardDeviceDetailsGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SIMCardDeviceDetailsGet200Response siMCardDeviceDetailsGet200Response = (SIMCardDeviceDetailsGet200Response) o; + return Objects.equals(this.data, siMCardDeviceDetailsGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SIMCardDeviceDetailsGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardGroup.java b/src/main/java/com/telnyx/sdk/model/SIMCardGroup.java index 46302440..bdbb134f 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardGroup.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardGroup.java @@ -77,6 +77,22 @@ public class SIMCardGroup { public SIMCardGroup() { } + @JsonCreator + public SIMCardGroup( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_DEFAULT) Boolean _default, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this._default = _default; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardGroupAction.java b/src/main/java/com/telnyx/sdk/model/SIMCardGroupAction.java index cab049e9..d3f546c2 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardGroupAction.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardGroupAction.java @@ -145,6 +145,20 @@ public static StatusEnum fromValue(String value) { public SIMCardGroupAction() { } + @JsonCreator + public SIMCardGroupAction( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreference.java b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreference.java index 6f590dcb..ef9f1d2b 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreference.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreference.java @@ -62,6 +62,18 @@ public class SIMCardNetworkPreference { public SIMCardNetworkPreference() { } + @JsonCreator + public SIMCardNetworkPreference( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get recordType * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdates.java b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdates.java index fb7a4326..bfec3ac0 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdates.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferenceWithOTAUpdates.java @@ -67,6 +67,18 @@ public class SIMCardNetworkPreferenceWithOTAUpdates { public SIMCardNetworkPreferenceWithOTAUpdates() { } + @JsonCreator + public SIMCardNetworkPreferenceWithOTAUpdates( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get recordType * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200Response.java b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200Response.java new file mode 100644 index 00000000..15fc52d7 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardNetworkPreferenceWithOTAUpdates; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SIMCardNetworkPreferencesGet200Response + */ +@JsonPropertyOrder({ + SIMCardNetworkPreferencesGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SIMCardNetworkPreferencesGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardNetworkPreferenceWithOTAUpdates data; + + public SIMCardNetworkPreferencesGet200Response() { + } + + public SIMCardNetworkPreferencesGet200Response data(SIMCardNetworkPreferenceWithOTAUpdates data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardNetworkPreferenceWithOTAUpdates getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardNetworkPreferenceWithOTAUpdates data) { + this.data = data; + } + + + /** + * Return true if this SIMCardNetworkPreferencesGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SIMCardNetworkPreferencesGet200Response siMCardNetworkPreferencesGet200Response = (SIMCardNetworkPreferencesGet200Response) o; + return Objects.equals(this.data, siMCardNetworkPreferencesGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SIMCardNetworkPreferencesGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequest.java b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequest.java new file mode 100644 index 00000000..47479b15 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequest.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MobileOperatorNetworkPreferencesRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SIMCardNetworkPreferencesPutRequest + */ +@JsonPropertyOrder({ + SIMCardNetworkPreferencesPutRequest.JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SIMCardNetworkPreferencesPutRequest { + public static final String JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES = "mobile_operator_networks_preferences"; + private List mobileOperatorNetworksPreferences = null; + + public SIMCardNetworkPreferencesPutRequest() { + } + + public SIMCardNetworkPreferencesPutRequest mobileOperatorNetworksPreferences(List mobileOperatorNetworksPreferences) { + this.mobileOperatorNetworksPreferences = mobileOperatorNetworksPreferences; + return this; + } + + public SIMCardNetworkPreferencesPutRequest addMobileOperatorNetworksPreferencesItem(MobileOperatorNetworkPreferencesRequest mobileOperatorNetworksPreferencesItem) { + if (this.mobileOperatorNetworksPreferences == null) { + this.mobileOperatorNetworksPreferences = new ArrayList<>(); + } + this.mobileOperatorNetworksPreferences.add(mobileOperatorNetworksPreferencesItem); + return this; + } + + /** + * A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network. + * @return mobileOperatorNetworksPreferences + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of mobile operator networks and the priority that should be applied when the SIM is connecting to the network.") + @JsonProperty(JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getMobileOperatorNetworksPreferences() { + return mobileOperatorNetworksPreferences; + } + + + @JsonProperty(JSON_PROPERTY_MOBILE_OPERATOR_NETWORKS_PREFERENCES) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMobileOperatorNetworksPreferences(List mobileOperatorNetworksPreferences) { + this.mobileOperatorNetworksPreferences = mobileOperatorNetworksPreferences; + } + + + /** + * Return true if this SIMCardNetworkPreferencesPut_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SIMCardNetworkPreferencesPutRequest siMCardNetworkPreferencesPutRequest = (SIMCardNetworkPreferencesPutRequest) o; + return Objects.equals(this.mobileOperatorNetworksPreferences, siMCardNetworkPreferencesPutRequest.mobileOperatorNetworksPreferences); + } + + @Override + public int hashCode() { + return Objects.hash(mobileOperatorNetworksPreferences); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SIMCardNetworkPreferencesPutRequest {\n"); + sb.append(" mobileOperatorNetworksPreferences: ").append(toIndentedString(mobileOperatorNetworksPreferences)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardOrder.java b/src/main/java/com/telnyx/sdk/model/SIMCardOrder.java index 92c7c2e8..b2f62648 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardOrder.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardOrder.java @@ -120,6 +120,20 @@ public static StatusEnum fromValue(String value) { public SIMCardOrder() { } + @JsonCreator + public SIMCardOrder( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardOrderPreview.java b/src/main/java/com/telnyx/sdk/model/SIMCardOrderPreview.java index 3e668cd7..f1a613cc 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardOrderPreview.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardOrderPreview.java @@ -59,6 +59,14 @@ public class SIMCardOrderPreview { public SIMCardOrderPreview() { } + @JsonCreator + public SIMCardOrderPreview( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + public SIMCardOrderPreview totalCost(SIMCardOrderPreviewTotalCost totalCost) { this.totalCost = totalCost; return this; diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardPublicIP.java b/src/main/java/com/telnyx/sdk/model/SIMCardPublicIP.java index de8ee7da..51b6e827 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardPublicIP.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardPublicIP.java @@ -85,7 +85,7 @@ public static TypeEnum fromValue(String value) { private TypeEnum type = TypeEnum.IPV4; public static final String JSON_PROPERTY_IP = "ip"; - private String ip = "null"; + private String ip; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private String createdAt; @@ -96,6 +96,22 @@ public static TypeEnum fromValue(String value) { public SIMCardPublicIP() { } + @JsonCreator + public SIMCardPublicIP( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_TYPE) TypeEnum type, + @JsonProperty(JSON_PROPERTY_IP) String ip, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.recordType = recordType; + this.type = type; + this.ip = ip; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get recordType * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardPublicIPGet200Response.java b/src/main/java/com/telnyx/sdk/model/SIMCardPublicIPGet200Response.java new file mode 100644 index 00000000..9e40c383 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SIMCardPublicIPGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardPublicIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SIMCardPublicIPGet200Response + */ +@JsonPropertyOrder({ + SIMCardPublicIPGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SIMCardPublicIPGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardPublicIP data; + + public SIMCardPublicIPGet200Response() { + } + + public SIMCardPublicIPGet200Response data(SIMCardPublicIP data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardPublicIP getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardPublicIP data) { + this.data = data; + } + + + /** + * Return true if this SIMCardPublicIPGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SIMCardPublicIPGet200Response siMCardPublicIPGet200Response = (SIMCardPublicIPGet200Response) o; + return Objects.equals(this.data, siMCardPublicIPGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SIMCardPublicIPGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SIMCardStatus.java b/src/main/java/com/telnyx/sdk/model/SIMCardStatus.java index 191c4459..d273238c 100644 --- a/src/main/java/com/telnyx/sdk/model/SIMCardStatus.java +++ b/src/main/java/com/telnyx/sdk/model/SIMCardStatus.java @@ -93,6 +93,16 @@ public static ValueEnum fromValue(String value) { public SIMCardStatus() { } + @JsonCreator + public SIMCardStatus( + @JsonProperty(JSON_PROPERTY_VALUE) ValueEnum value, + @JsonProperty(JSON_PROPERTY_REASON) String reason + ) { + this(); + this.value = value; + this.reason = reason; + } + /** * The current status of the SIM card. It will be one of the following: <br/> <ul> <li><code>registering</code> - the card is being registered</li> <li><code>enabling</code> - the card is being enabled</li> <li><code>enabled</code> - the card is enabled and ready for use</li> <li><code>disabling</code> - the card is being disabled</li> <li><code>disabled</code> - the card has been disabled and cannot be used</li> <li><code>data_limit_exceeded</code> - the card has exceeded its data consumption limit</li> <li><code>setting_standby</code> - the process to set the card in stand by is in progress</li> <li><code>standby</code> - the card is in stand by</li> </ul> Transitioning between the enabled and disabled states may take a period of time. * @return value diff --git a/src/main/java/com/telnyx/sdk/model/SearchedSIMCardGroup.java b/src/main/java/com/telnyx/sdk/model/SearchedSIMCardGroup.java new file mode 100644 index 00000000..3094215e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SearchedSIMCardGroup.java @@ -0,0 +1,369 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ConsumedData; +import com.telnyx.sdk.model.SIMCardGroupDataLimit; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SearchedSIMCardGroup + */ +@JsonPropertyOrder({ + SearchedSIMCardGroup.JSON_PROPERTY_ID, + SearchedSIMCardGroup.JSON_PROPERTY_RECORD_TYPE, + SearchedSIMCardGroup.JSON_PROPERTY_DEFAULT, + SearchedSIMCardGroup.JSON_PROPERTY_NAME, + SearchedSIMCardGroup.JSON_PROPERTY_DATA_LIMIT, + SearchedSIMCardGroup.JSON_PROPERTY_CONSUMED_DATA, + SearchedSIMCardGroup.JSON_PROPERTY_SIM_CARD_COUNT, + SearchedSIMCardGroup.JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID, + SearchedSIMCardGroup.JSON_PROPERTY_CREATED_AT, + SearchedSIMCardGroup.JSON_PROPERTY_UPDATED_AT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SearchedSIMCardGroup { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_DEFAULT = "default"; + private Boolean _default; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_DATA_LIMIT = "data_limit"; + private SIMCardGroupDataLimit dataLimit; + + public static final String JSON_PROPERTY_CONSUMED_DATA = "consumed_data"; + private ConsumedData consumedData; + + public static final String JSON_PROPERTY_SIM_CARD_COUNT = "sim_card_count"; + private Integer simCardCount = 0; + + public static final String JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID = "private_wireless_gateway_id"; + private UUID privateWirelessGatewayId; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public SearchedSIMCardGroup() { + } + + @JsonCreator + public SearchedSIMCardGroup( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_DEFAULT) Boolean _default, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this._default = _default; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "sim_card_group", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * Indicates whether the SIM card group is the users default group.<br/>The default group is created for the user and can not be removed. + * @return _default + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the SIM card group is the users default group.
The default group is created for the user and can not be removed.") + @JsonProperty(JSON_PROPERTY_DEFAULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getDefault() { + return _default; + } + + + + + public SearchedSIMCardGroup name(String name) { + this.name = name; + return this; + } + + /** + * A user friendly name for the SIM card group. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "My Test Group", value = "A user friendly name for the SIM card group.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public SearchedSIMCardGroup dataLimit(SIMCardGroupDataLimit dataLimit) { + this.dataLimit = dataLimit; + return this; + } + + /** + * Get dataLimit + * @return dataLimit + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA_LIMIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardGroupDataLimit getDataLimit() { + return dataLimit; + } + + + @JsonProperty(JSON_PROPERTY_DATA_LIMIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDataLimit(SIMCardGroupDataLimit dataLimit) { + this.dataLimit = dataLimit; + } + + + public SearchedSIMCardGroup consumedData(ConsumedData consumedData) { + this.consumedData = consumedData; + return this; + } + + /** + * Get consumedData + * @return consumedData + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CONSUMED_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ConsumedData getConsumedData() { + return consumedData; + } + + + @JsonProperty(JSON_PROPERTY_CONSUMED_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConsumedData(ConsumedData consumedData) { + this.consumedData = consumedData; + } + + + public SearchedSIMCardGroup simCardCount(Integer simCardCount) { + this.simCardCount = simCardCount; + return this; + } + + /** + * The number of SIM cards associated with the group. + * @return simCardCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10", value = "The number of SIM cards associated with the group.") + @JsonProperty(JSON_PROPERTY_SIM_CARD_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getSimCardCount() { + return simCardCount; + } + + + @JsonProperty(JSON_PROPERTY_SIM_CARD_COUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSimCardCount(Integer simCardCount) { + this.simCardCount = simCardCount; + } + + + public SearchedSIMCardGroup privateWirelessGatewayId(UUID privateWirelessGatewayId) { + this.privateWirelessGatewayId = privateWirelessGatewayId; + return this; + } + + /** + * The identification of the related Private Wireless Gateway resource. + * @return privateWirelessGatewayId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The identification of the related Private Wireless Gateway resource.") + @JsonProperty(JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getPrivateWirelessGatewayId() { + return privateWirelessGatewayId; + } + + + @JsonProperty(JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrivateWirelessGatewayId(UUID privateWirelessGatewayId) { + this.privateWirelessGatewayId = privateWirelessGatewayId; + } + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + /** + * Return true if this SearchedSIMCardGroup object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchedSIMCardGroup searchedSIMCardGroup = (SearchedSIMCardGroup) o; + return Objects.equals(this.id, searchedSIMCardGroup.id) && + Objects.equals(this.recordType, searchedSIMCardGroup.recordType) && + Objects.equals(this._default, searchedSIMCardGroup._default) && + Objects.equals(this.name, searchedSIMCardGroup.name) && + Objects.equals(this.dataLimit, searchedSIMCardGroup.dataLimit) && + Objects.equals(this.consumedData, searchedSIMCardGroup.consumedData) && + Objects.equals(this.simCardCount, searchedSIMCardGroup.simCardCount) && + Objects.equals(this.privateWirelessGatewayId, searchedSIMCardGroup.privateWirelessGatewayId) && + Objects.equals(this.createdAt, searchedSIMCardGroup.createdAt) && + Objects.equals(this.updatedAt, searchedSIMCardGroup.updatedAt); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, _default, name, dataLimit, consumedData, simCardCount, privateWirelessGatewayId, createdAt, updatedAt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchedSIMCardGroup {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" _default: ").append(toIndentedString(_default)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" dataLimit: ").append(toIndentedString(dataLimit)).append("\n"); + sb.append(" consumedData: ").append(toIndentedString(consumedData)).append("\n"); + sb.append(" simCardCount: ").append(toIndentedString(simCardCount)).append("\n"); + sb.append(" privateWirelessGatewayId: ").append(toIndentedString(privateWirelessGatewayId)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SendFaxRequest.java b/src/main/java/com/telnyx/sdk/model/SendFaxRequest.java index 4663d030..978735a3 100644 --- a/src/main/java/com/telnyx/sdk/model/SendFaxRequest.java +++ b/src/main/java/com/telnyx/sdk/model/SendFaxRequest.java @@ -106,11 +106,11 @@ public SendFaxRequest mediaUrl(String mediaUrl) { } /** - * The URL to the PDF used for the fax's media. media_url and media_name can't be submitted together. + * The URL to the PDF used for the fax's media. media_url and media_name/contents can't be submitted together. * @return mediaUrl **/ @javax.annotation.Nullable - @ApiModelProperty(example = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", value = "The URL to the PDF used for the fax's media. media_url and media_name can't be submitted together.") + @ApiModelProperty(example = "https://www.w3.org/WAI/ER/tests/xhtml/testfiles/resources/pdf/dummy.pdf", value = "The URL to the PDF used for the fax's media. media_url and media_name/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_URL) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -132,11 +132,11 @@ public SendFaxRequest mediaName(String mediaName) { } /** - * The media_name of a file to be used for the fax's media. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_url and media_name can't be submitted together. + * The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together. * @return mediaName **/ @javax.annotation.Nullable - @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name of a file to be used for the fax's media. The media_name must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_url and media_name can't be submitted together.") + @ApiModelProperty(example = "my_media_uploaded_to_media_storage_api", value = "The media_name used for the fax's media. Must point to a file previously uploaded to api.telnyx.com/v2/media by the same user/organization. media_name and media_url/contents can't be submitted together.") @JsonProperty(JSON_PROPERTY_MEDIA_NAME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -158,11 +158,11 @@ public SendFaxRequest to(String to) { } /** - * The phone number, in E.164 format, the fax will be sent to or SIP URI. + * The phone number, in E.164 format, the fax will be sent to or SIP URI * @return to **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "+13127367276", required = true, value = "The phone number, in E.164 format, the fax will be sent to or SIP URI.") + @ApiModelProperty(example = "+13127367276", required = true, value = "The phone number, in E.164 format, the fax will be sent to or SIP URI") @JsonProperty(JSON_PROPERTY_TO) @JsonInclude(value = JsonInclude.Include.ALWAYS) @@ -210,11 +210,11 @@ public SendFaxRequest quality(String quality) { } /** - * The quality of the fax. Can be normal, high, very_high. + * The quality of the fax. Can be normal, high, very_high * @return quality **/ @javax.annotation.Nullable - @ApiModelProperty(example = "high", value = "The quality of the fax. Can be normal, high, very_high.") + @ApiModelProperty(example = "high", value = "The quality of the fax. Can be normal, high, very_high") @JsonProperty(JSON_PROPERTY_QUALITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequest.java b/src/main/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequest.java new file mode 100644 index 00000000..1826fc54 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequest.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SetSIMCardGroupPrivateWirelessGatewayRequest + */ +@JsonPropertyOrder({ + SetSIMCardGroupPrivateWirelessGatewayRequest.JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SetSIMCardGroupPrivateWirelessGatewayRequest { + public static final String JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID = "private_wireless_gateway_id"; + private UUID privateWirelessGatewayId; + + public SetSIMCardGroupPrivateWirelessGatewayRequest() { + } + + public SetSIMCardGroupPrivateWirelessGatewayRequest privateWirelessGatewayId(UUID privateWirelessGatewayId) { + this.privateWirelessGatewayId = privateWirelessGatewayId; + return this; + } + + /** + * The identification of the related Private Wireless Gateway resource. + * @return privateWirelessGatewayId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The identification of the related Private Wireless Gateway resource.") + @JsonProperty(JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getPrivateWirelessGatewayId() { + return privateWirelessGatewayId; + } + + + @JsonProperty(JSON_PROPERTY_PRIVATE_WIRELESS_GATEWAY_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPrivateWirelessGatewayId(UUID privateWirelessGatewayId) { + this.privateWirelessGatewayId = privateWirelessGatewayId; + } + + + /** + * Return true if this SetSIMCardGroupPrivateWirelessGateway_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetSIMCardGroupPrivateWirelessGatewayRequest setSIMCardGroupPrivateWirelessGatewayRequest = (SetSIMCardGroupPrivateWirelessGatewayRequest) o; + return Objects.equals(this.privateWirelessGatewayId, setSIMCardGroupPrivateWirelessGatewayRequest.privateWirelessGatewayId); + } + + @Override + public int hashCode() { + return Objects.hash(privateWirelessGatewayId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetSIMCardGroupPrivateWirelessGatewayRequest {\n"); + sb.append(" privateWirelessGatewayId: ").append(toIndentedString(privateWirelessGatewayId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ShortCode.java b/src/main/java/com/telnyx/sdk/model/ShortCode.java index 17ffb519..891b6163 100644 --- a/src/main/java/com/telnyx/sdk/model/ShortCode.java +++ b/src/main/java/com/telnyx/sdk/model/ShortCode.java @@ -101,6 +101,24 @@ public static RecordTypeEnum fromValue(String value) { public ShortCode() { } + @JsonCreator + public ShortCode( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_SHORT_CODE) String shortCode, + @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) String countryCode, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.recordType = recordType; + this.id = id; + this.shortCode = shortCode; + this.countryCode = countryCode; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/SimCardActionGet200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardActionGet200Response.java new file mode 100644 index 00000000..5f7d7f67 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardActionGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardActionGet200Response + */ +@JsonPropertyOrder({ + SimCardActionGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardActionGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardAction data; + + public SimCardActionGet200Response() { + } + + public SimCardActionGet200Response data(SIMCardAction data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardAction getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardAction data) { + this.data = data; + } + + + /** + * Return true if this SimCardActionGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardActionGet200Response simCardActionGet200Response = (SimCardActionGet200Response) o; + return Objects.equals(this.data, simCardActionGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardActionGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotification.java b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotification.java index 7084ae53..22d51b8f 100644 --- a/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotification.java +++ b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotification.java @@ -22,7 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.SimCardDataUsageNotificationsThreshold; +import com.telnyx.sdk.model.SimCardDataUsageNotificationsPostRequestThreshold; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; @@ -54,7 +54,7 @@ public class SimCardDataUsageNotification { private String recordType; public static final String JSON_PROPERTY_THRESHOLD = "threshold"; - private SimCardDataUsageNotificationsThreshold threshold; + private SimCardDataUsageNotificationsPostRequestThreshold threshold; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private String createdAt; @@ -65,6 +65,20 @@ public class SimCardDataUsageNotification { public SimCardDataUsageNotification() { } + @JsonCreator + public SimCardDataUsageNotification( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id @@ -123,7 +137,7 @@ public String getRecordType() { - public SimCardDataUsageNotification threshold(SimCardDataUsageNotificationsThreshold threshold) { + public SimCardDataUsageNotification threshold(SimCardDataUsageNotificationsPostRequestThreshold threshold) { this.threshold = threshold; return this; } @@ -137,14 +151,14 @@ public SimCardDataUsageNotification threshold(SimCardDataUsageNotificationsThres @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public SimCardDataUsageNotificationsThreshold getThreshold() { + public SimCardDataUsageNotificationsPostRequestThreshold getThreshold() { return threshold; } @JsonProperty(JSON_PROPERTY_THRESHOLD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setThreshold(SimCardDataUsageNotificationsThreshold threshold) { + public void setThreshold(SimCardDataUsageNotificationsPostRequestThreshold threshold) { this.threshold = threshold; } diff --git a/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201Response.java b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201Response.java new file mode 100644 index 00000000..e49b6b2a --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SimCardDataUsageNotification; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardDataUsageNotificationsPost201Response + */ +@JsonPropertyOrder({ + SimCardDataUsageNotificationsPost201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardDataUsageNotificationsPost201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SimCardDataUsageNotification data; + + public SimCardDataUsageNotificationsPost201Response() { + } + + public SimCardDataUsageNotificationsPost201Response data(SimCardDataUsageNotification data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SimCardDataUsageNotification getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SimCardDataUsageNotification data) { + this.data = data; + } + + + /** + * Return true if this SimCardDataUsageNotificationsPost_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardDataUsageNotificationsPost201Response simCardDataUsageNotificationsPost201Response = (SimCardDataUsageNotificationsPost201Response) o; + return Objects.equals(this.data, simCardDataUsageNotificationsPost201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardDataUsageNotificationsPost201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequest.java b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequest.java new file mode 100644 index 00000000..e3d3f113 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequest.java @@ -0,0 +1,146 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SimCardDataUsageNotificationsPostRequestThreshold; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardDataUsageNotificationsPostRequest + */ +@JsonPropertyOrder({ + SimCardDataUsageNotificationsPostRequest.JSON_PROPERTY_SIM_CARD_ID, + SimCardDataUsageNotificationsPostRequest.JSON_PROPERTY_THRESHOLD +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardDataUsageNotificationsPostRequest { + public static final String JSON_PROPERTY_SIM_CARD_ID = "sim_card_id"; + private UUID simCardId; + + public static final String JSON_PROPERTY_THRESHOLD = "threshold"; + private SimCardDataUsageNotificationsPostRequestThreshold threshold; + + public SimCardDataUsageNotificationsPostRequest() { + } + + public SimCardDataUsageNotificationsPostRequest simCardId(UUID simCardId) { + this.simCardId = simCardId; + return this; + } + + /** + * The identification UUID of the related SIM card resource. + * @return simCardId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The identification UUID of the related SIM card resource.") + @JsonProperty(JSON_PROPERTY_SIM_CARD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getSimCardId() { + return simCardId; + } + + + @JsonProperty(JSON_PROPERTY_SIM_CARD_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSimCardId(UUID simCardId) { + this.simCardId = simCardId; + } + + + public SimCardDataUsageNotificationsPostRequest threshold(SimCardDataUsageNotificationsPostRequestThreshold threshold) { + this.threshold = threshold; + return this; + } + + /** + * Get threshold + * @return threshold + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_THRESHOLD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public SimCardDataUsageNotificationsPostRequestThreshold getThreshold() { + return threshold; + } + + + @JsonProperty(JSON_PROPERTY_THRESHOLD) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setThreshold(SimCardDataUsageNotificationsPostRequestThreshold threshold) { + this.threshold = threshold; + } + + + /** + * Return true if this SimCardDataUsageNotificationsPost_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardDataUsageNotificationsPostRequest simCardDataUsageNotificationsPostRequest = (SimCardDataUsageNotificationsPostRequest) o; + return Objects.equals(this.simCardId, simCardDataUsageNotificationsPostRequest.simCardId) && + Objects.equals(this.threshold, simCardDataUsageNotificationsPostRequest.threshold); + } + + @Override + public int hashCode() { + return Objects.hash(simCardId, threshold); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardDataUsageNotificationsPostRequest {\n"); + sb.append(" simCardId: ").append(toIndentedString(simCardId)).append("\n"); + sb.append(" threshold: ").append(toIndentedString(threshold)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThreshold.java b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThreshold.java new file mode 100644 index 00000000..ee3de839 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThreshold.java @@ -0,0 +1,181 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Data usage threshold that will trigger the notification. + */ +@ApiModel(description = "Data usage threshold that will trigger the notification.") +@JsonPropertyOrder({ + SimCardDataUsageNotificationsPostRequestThreshold.JSON_PROPERTY_AMOUNT, + SimCardDataUsageNotificationsPostRequestThreshold.JSON_PROPERTY_UNIT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardDataUsageNotificationsPostRequestThreshold { + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private BigDecimal amount; + + /** + * Gets or Sets unit + */ + public enum UnitEnum { + MB("MB"), + + GB("GB"); + + private String value; + + UnitEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static UnitEnum fromValue(String value) { + for (UnitEnum b : UnitEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_UNIT = "unit"; + private UnitEnum unit; + + public SimCardDataUsageNotificationsPostRequestThreshold() { + } + + public SimCardDataUsageNotificationsPostRequestThreshold amount(BigDecimal amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2048.1", value = "") + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getAmount() { + return amount; + } + + + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(BigDecimal amount) { + this.amount = amount; + } + + + public SimCardDataUsageNotificationsPostRequestThreshold unit(UnitEnum unit) { + this.unit = unit; + return this; + } + + /** + * Get unit + * @return unit + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "MB", value = "") + @JsonProperty(JSON_PROPERTY_UNIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UnitEnum getUnit() { + return unit; + } + + + @JsonProperty(JSON_PROPERTY_UNIT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUnit(UnitEnum unit) { + this.unit = unit; + } + + + /** + * Return true if this SimCardDataUsageNotificationsPost_request_threshold object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardDataUsageNotificationsPostRequestThreshold simCardDataUsageNotificationsPostRequestThreshold = (SimCardDataUsageNotificationsPostRequestThreshold) o; + return Objects.equals(this.amount, simCardDataUsageNotificationsPostRequestThreshold.amount) && + Objects.equals(this.unit, simCardDataUsageNotificationsPostRequestThreshold.unit); + } + + @Override + public int hashCode() { + return Objects.hash(amount, unit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardDataUsageNotificationsPostRequestThreshold {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardGet200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardGet200Response.java new file mode 100644 index 00000000..835ed0c5 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCard; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardGet200Response + */ +@JsonPropertyOrder({ + SimCardGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCard data; + + public SimCardGet200Response() { + } + + public SimCardGet200Response data(SIMCard data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCard getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCard data) { + this.data = data; + } + + + /** + * Return true if this SimCardGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardGet200Response simCardGet200Response = (SimCardGet200Response) o; + return Objects.equals(this.data, simCardGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardGroupActionGet200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardGroupActionGet200Response.java new file mode 100644 index 00000000..f5d966eb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardGroupActionGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardGroupAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardGroupActionGet200Response + */ +@JsonPropertyOrder({ + SimCardGroupActionGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardGroupActionGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardGroupAction data; + + public SimCardGroupActionGet200Response() { + } + + public SimCardGroupActionGet200Response data(SIMCardGroupAction data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardGroupAction getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardGroupAction data) { + this.data = data; + } + + + /** + * Return true if this SimCardGroupActionGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardGroupActionGet200Response simCardGroupActionGet200Response = (SimCardGroupActionGet200Response) o; + return Objects.equals(this.data, simCardGroupActionGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardGroupActionGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardGroupActionsGet200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardGroupActionsGet200Response.java new file mode 100644 index 00000000..018589f9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardGroupActionsGet200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SIMCardGroupAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardGroupActionsGet200Response + */ +@JsonPropertyOrder({ + SimCardGroupActionsGet200Response.JSON_PROPERTY_DATA, + SimCardGroupActionsGet200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardGroupActionsGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public SimCardGroupActionsGet200Response() { + } + + public SimCardGroupActionsGet200Response data(List data) { + this.data = data; + return this; + } + + public SimCardGroupActionsGet200Response addDataItem(SIMCardGroupAction dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public SimCardGroupActionsGet200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this SimCardGroupActionsGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardGroupActionsGet200Response simCardGroupActionsGet200Response = (SimCardGroupActionsGet200Response) o; + return Objects.equals(this.data, simCardGroupActionsGet200Response.data) && + Objects.equals(this.meta, simCardGroupActionsGet200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardGroupActionsGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardGroupsGetAll200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardGroupsGetAll200Response.java new file mode 100644 index 00000000..4f820cfb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardGroupsGetAll200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SearchedSIMCardGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardGroupsGetAll200Response + */ +@JsonPropertyOrder({ + SimCardGroupsGetAll200Response.JSON_PROPERTY_DATA, + SimCardGroupsGetAll200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardGroupsGetAll200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public SimCardGroupsGetAll200Response() { + } + + public SimCardGroupsGetAll200Response data(List data) { + this.data = data; + return this; + } + + public SimCardGroupsGetAll200Response addDataItem(SearchedSIMCardGroup dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public SimCardGroupsGetAll200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this SimCardGroupsGetAll_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardGroupsGetAll200Response simCardGroupsGetAll200Response = (SimCardGroupsGetAll200Response) o; + return Objects.equals(this.data, simCardGroupsGetAll200Response.data) && + Objects.equals(this.meta, simCardGroupsGetAll200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardGroupsGetAll200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardGroupsPost200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardGroupsPost200Response.java new file mode 100644 index 00000000..18dd75a1 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardGroupsPost200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardGroupsPost200Response + */ +@JsonPropertyOrder({ + SimCardGroupsPost200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardGroupsPost200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardGroup data; + + public SimCardGroupsPost200Response() { + } + + public SimCardGroupsPost200Response data(SIMCardGroup data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardGroup getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardGroup data) { + this.data = data; + } + + + /** + * Return true if this SimCardGroupsPost_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardGroupsPost200Response simCardGroupsPost200Response = (SimCardGroupsPost200Response) o; + return Objects.equals(this.data, simCardGroupsPost200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardGroupsPost200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardOrdersGet200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardOrdersGet200Response.java new file mode 100644 index 00000000..83b46898 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardOrdersGet200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SIMCardOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardOrdersGet200Response + */ +@JsonPropertyOrder({ + SimCardOrdersGet200Response.JSON_PROPERTY_DATA, + SimCardOrdersGet200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardOrdersGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public SimCardOrdersGet200Response() { + } + + public SimCardOrdersGet200Response data(List data) { + this.data = data; + return this; + } + + public SimCardOrdersGet200Response addDataItem(SIMCardOrder dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public SimCardOrdersGet200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this SimCardOrdersGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardOrdersGet200Response simCardOrdersGet200Response = (SimCardOrdersGet200Response) o; + return Objects.equals(this.data, simCardOrdersGet200Response.data) && + Objects.equals(this.meta, simCardOrdersGet200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardOrdersGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardOrdersPost200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardOrdersPost200Response.java new file mode 100644 index 00000000..66bbfe8e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardOrdersPost200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardOrdersPost200Response + */ +@JsonPropertyOrder({ + SimCardOrdersPost200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardOrdersPost200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardOrder data; + + public SimCardOrdersPost200Response() { + } + + public SimCardOrdersPost200Response data(SIMCardOrder data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardOrder getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardOrder data) { + this.data = data; + } + + + /** + * Return true if this SimCardOrdersPost_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardOrdersPost200Response simCardOrdersPost200Response = (SimCardOrdersPost200Response) o; + return Objects.equals(this.data, simCardOrdersPost200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardOrdersPost200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardOrdersPreview202Response.java b/src/main/java/com/telnyx/sdk/model/SimCardOrdersPreview202Response.java new file mode 100644 index 00000000..6df144b3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardOrdersPreview202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardOrderPreview; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardOrdersPreview202Response + */ +@JsonPropertyOrder({ + SimCardOrdersPreview202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardOrdersPreview202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private SIMCardOrderPreview data; + + public SimCardOrdersPreview202Response() { + } + + public SimCardOrdersPreview202Response data(SIMCardOrderPreview data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SIMCardOrderPreview getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(SIMCardOrderPreview data) { + this.data = data; + } + + + /** + * Return true if this SimCardOrdersPreview_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardOrdersPreview202Response simCardOrdersPreview202Response = (SimCardOrdersPreview202Response) o; + return Objects.equals(this.data, simCardOrdersPreview202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardOrdersPreview202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequest.java b/src/main/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequest.java new file mode 100644 index 00000000..0907ea3b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequest.java @@ -0,0 +1,145 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardOrdersPreviewRequest + */ +@JsonPropertyOrder({ + SimCardOrdersPreviewRequest.JSON_PROPERTY_QUANTITY, + SimCardOrdersPreviewRequest.JSON_PROPERTY_ADDRESS_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardOrdersPreviewRequest { + public static final String JSON_PROPERTY_QUANTITY = "quantity"; + private Integer quantity; + + public static final String JSON_PROPERTY_ADDRESS_ID = "address_id"; + private String addressId; + + public SimCardOrdersPreviewRequest() { + } + + public SimCardOrdersPreviewRequest quantity(Integer quantity) { + this.quantity = quantity; + return this; + } + + /** + * The amount of SIM cards that the user would like to purchase in the SIM card order. + * minimum: 1 + * @return quantity + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "21", required = true, value = "The amount of SIM cards that the user would like to purchase in the SIM card order.") + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getQuantity() { + return quantity; + } + + + @JsonProperty(JSON_PROPERTY_QUANTITY) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setQuantity(Integer quantity) { + this.quantity = quantity; + } + + + public SimCardOrdersPreviewRequest addressId(String addressId) { + this.addressId = addressId; + return this; + } + + /** + * Uniquely identifies the address for the order. + * @return addressId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1293384261075731499", required = true, value = "Uniquely identifies the address for the order.") + @JsonProperty(JSON_PROPERTY_ADDRESS_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getAddressId() { + return addressId; + } + + + @JsonProperty(JSON_PROPERTY_ADDRESS_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setAddressId(String addressId) { + this.addressId = addressId; + } + + + /** + * Return true if this SimCardOrdersPreview_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardOrdersPreviewRequest simCardOrdersPreviewRequest = (SimCardOrdersPreviewRequest) o; + return Objects.equals(this.quantity, simCardOrdersPreviewRequest.quantity) && + Objects.equals(this.addressId, simCardOrdersPreviewRequest.addressId); + } + + @Override + public int hashCode() { + return Objects.hash(quantity, addressId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardOrdersPreviewRequest {\n"); + sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); + sb.append(" addressId: ").append(toIndentedString(addressId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardRegister202Response.java b/src/main/java/com/telnyx/sdk/model/SimCardRegister202Response.java new file mode 100644 index 00000000..dedbd4eb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardRegister202Response.java @@ -0,0 +1,164 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Error; +import com.telnyx.sdk.model.SimpleSIMCard; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardRegister202Response + */ +@JsonPropertyOrder({ + SimCardRegister202Response.JSON_PROPERTY_DATA, + SimCardRegister202Response.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardRegister202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public SimCardRegister202Response() { + } + + public SimCardRegister202Response data(List data) { + this.data = data; + return this; + } + + public SimCardRegister202Response addDataItem(SimpleSIMCard dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Successfully registered SIM cards. + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Successfully registered SIM cards.") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public SimCardRegister202Response errors(List errors) { + this.errors = errors; + return this; + } + + public SimCardRegister202Response addErrorsItem(Error errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this SimCardRegister_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardRegister202Response simCardRegister202Response = (SimCardRegister202Response) o; + return Objects.equals(this.data, simCardRegister202Response.data) && + Objects.equals(this.errors, simCardRegister202Response.errors); + } + + @Override + public int hashCode() { + return Objects.hash(data, errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardRegister202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimCardsGet200Response.java b/src/main/java/com/telnyx/sdk/model/SimCardsGet200Response.java new file mode 100644 index 00000000..c40737b1 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SimCardsGet200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SimpleSIMCard; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SimCardsGet200Response + */ +@JsonPropertyOrder({ + SimCardsGet200Response.JSON_PROPERTY_DATA, + SimCardsGet200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SimCardsGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public SimCardsGet200Response() { + } + + public SimCardsGet200Response data(List data) { + this.data = data; + return this; + } + + public SimCardsGet200Response addDataItem(SimpleSIMCard dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public SimCardsGet200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this SimCardsGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimCardsGet200Response simCardsGet200Response = (SimCardsGet200Response) o; + return Objects.equals(this.data, simCardsGet200Response.data) && + Objects.equals(this.meta, simCardsGet200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimCardsGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SimpleSIMCard.java b/src/main/java/com/telnyx/sdk/model/SimpleSIMCard.java index 6cad2a06..10674d3f 100644 --- a/src/main/java/com/telnyx/sdk/model/SimpleSIMCard.java +++ b/src/main/java/com/telnyx/sdk/model/SimpleSIMCard.java @@ -92,6 +92,26 @@ public class SimpleSIMCard { public SimpleSIMCard() { } + @JsonCreator + public SimpleSIMCard( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ICCID) String iccid, + @JsonProperty(JSON_PROPERTY_IMSI) String imsi, + @JsonProperty(JSON_PROPERTY_MSISDN) String msisdn, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.iccid = iccid; + this.imsi = imsi; + this.msisdn = msisdn; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/SimplifiedOTAUpdate.java b/src/main/java/com/telnyx/sdk/model/SimplifiedOTAUpdate.java index a30facba..e83d2243 100644 --- a/src/main/java/com/telnyx/sdk/model/SimplifiedOTAUpdate.java +++ b/src/main/java/com/telnyx/sdk/model/SimplifiedOTAUpdate.java @@ -138,6 +138,20 @@ public static StatusEnum fromValue(String value) { public SimplifiedOTAUpdate() { } + @JsonCreator + public SimplifiedOTAUpdate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/SoundModifications.java b/src/main/java/com/telnyx/sdk/model/SoundModifications.java index 04be8b72..16eb99be 100644 --- a/src/main/java/com/telnyx/sdk/model/SoundModifications.java +++ b/src/main/java/com/telnyx/sdk/model/SoundModifications.java @@ -29,12 +29,14 @@ /** - * SoundModifications + * Use this field to modify sound effects, for example adjust the pitch. */ +@ApiModel(description = "Use this field to modify sound effects, for example adjust the pitch.") @JsonPropertyOrder({ SoundModifications.JSON_PROPERTY_PITCH, SoundModifications.JSON_PROPERTY_SEMITONE, - SoundModifications.JSON_PROPERTY_OCTAVES + SoundModifications.JSON_PROPERTY_OCTAVES, + SoundModifications.JSON_PROPERTY_TRACK }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class SoundModifications { @@ -47,6 +49,9 @@ public class SoundModifications { public static final String JSON_PROPERTY_OCTAVES = "octaves"; private Double octaves; + public static final String JSON_PROPERTY_TRACK = "track"; + private String track = "outbound"; + public SoundModifications() { } @@ -128,6 +133,32 @@ public void setOctaves(Double octaves) { } + public SoundModifications track(String track) { + this.track = track; + return this; + } + + /** + * The track to which the sound modifications will be applied. Accepted values are `inbound`, `outbound`, or `both` + * @return track + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "both", value = "The track to which the sound modifications will be applied. Accepted values are `inbound`, `outbound`, or `both`") + @JsonProperty(JSON_PROPERTY_TRACK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTrack() { + return track; + } + + + @JsonProperty(JSON_PROPERTY_TRACK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTrack(String track) { + this.track = track; + } + + /** * Return true if this SoundModifications object is equal to o. */ @@ -142,12 +173,13 @@ public boolean equals(Object o) { SoundModifications soundModifications = (SoundModifications) o; return Objects.equals(this.pitch, soundModifications.pitch) && Objects.equals(this.semitone, soundModifications.semitone) && - Objects.equals(this.octaves, soundModifications.octaves); + Objects.equals(this.octaves, soundModifications.octaves) && + Objects.equals(this.track, soundModifications.track); } @Override public int hashCode() { - return Objects.hash(pitch, semitone, octaves); + return Objects.hash(pitch, semitone, octaves, track); } @Override @@ -157,6 +189,7 @@ public String toString() { sb.append(" pitch: ").append(toIndentedString(pitch)).append("\n"); sb.append(" semitone: ").append(toIndentedString(semitone)).append("\n"); sb.append(" octaves: ").append(toIndentedString(octaves)).append("\n"); + sb.append(" track: ").append(toIndentedString(track)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/StartRecordingRequest.java b/src/main/java/com/telnyx/sdk/model/StartRecordingRequest.java index 9101be2b..bd0a6fec 100644 --- a/src/main/java/com/telnyx/sdk/model/StartRecordingRequest.java +++ b/src/main/java/com/telnyx/sdk/model/StartRecordingRequest.java @@ -37,7 +37,8 @@ StartRecordingRequest.JSON_PROPERTY_CLIENT_STATE, StartRecordingRequest.JSON_PROPERTY_COMMAND_ID, StartRecordingRequest.JSON_PROPERTY_PLAY_BEEP, - StartRecordingRequest.JSON_PROPERTY_MAX_LENGTH + StartRecordingRequest.JSON_PROPERTY_MAX_LENGTH, + StartRecordingRequest.JSON_PROPERTY_TIMEOUT_SECS }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StartRecordingRequest { @@ -129,6 +130,9 @@ public static ChannelsEnum fromValue(String value) { public static final String JSON_PROPERTY_MAX_LENGTH = "max_length"; private Integer maxLength = 0; + public static final String JSON_PROPERTY_TIMEOUT_SECS = "timeout_secs"; + private Integer timeoutSecs = 0; + public StartRecordingRequest() { } @@ -268,11 +272,11 @@ public StartRecordingRequest maxLength(Integer maxLength) { } /** - * Defines the maximum length for the recording in seconds. Minimum value is 0. Maximum value is 14400. Default is 0 (infinite) + * Defines the maximum length for the recording in seconds. The minimum value is 0. The maximum value is 14400. The default value is 0 (infinite) * @return maxLength **/ @javax.annotation.Nullable - @ApiModelProperty(example = "100", value = "Defines the maximum length for the recording in seconds. Minimum value is 0. Maximum value is 14400. Default is 0 (infinite)") + @ApiModelProperty(example = "100", value = "Defines the maximum length for the recording in seconds. The minimum value is 0. The maximum value is 14400. The default value is 0 (infinite)") @JsonProperty(JSON_PROPERTY_MAX_LENGTH) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -288,6 +292,32 @@ public void setMaxLength(Integer maxLength) { } + public StartRecordingRequest timeoutSecs(Integer timeoutSecs) { + this.timeoutSecs = timeoutSecs; + return this; + } + + /** + * The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite) + * @return timeoutSecs + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "100", value = "The number of seconds that Telnyx will wait for the recording to be stopped if silence is detected. The timer only starts when the speech is detected. The minimum value is 0. The default value is 0 (infinite)") + @JsonProperty(JSON_PROPERTY_TIMEOUT_SECS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getTimeoutSecs() { + return timeoutSecs; + } + + + @JsonProperty(JSON_PROPERTY_TIMEOUT_SECS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTimeoutSecs(Integer timeoutSecs) { + this.timeoutSecs = timeoutSecs; + } + + /** * Return true if this StartRecordingRequest object is equal to o. */ @@ -305,12 +335,13 @@ public boolean equals(Object o) { Objects.equals(this.clientState, startRecordingRequest.clientState) && Objects.equals(this.commandId, startRecordingRequest.commandId) && Objects.equals(this.playBeep, startRecordingRequest.playBeep) && - Objects.equals(this.maxLength, startRecordingRequest.maxLength); + Objects.equals(this.maxLength, startRecordingRequest.maxLength) && + Objects.equals(this.timeoutSecs, startRecordingRequest.timeoutSecs); } @Override public int hashCode() { - return Objects.hash(format, channels, clientState, commandId, playBeep, maxLength); + return Objects.hash(format, channels, clientState, commandId, playBeep, maxLength, timeoutSecs); } @Override @@ -323,6 +354,7 @@ public String toString() { sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n"); sb.append(" playBeep: ").append(toIndentedString(playBeep)).append("\n"); sb.append(" maxLength: ").append(toIndentedString(maxLength)).append("\n"); + sb.append(" timeoutSecs: ").append(toIndentedString(timeoutSecs)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/StartStreamingRequest.java b/src/main/java/com/telnyx/sdk/model/StartStreamingRequest.java index 618e7fd9..d5bc8fc7 100644 --- a/src/main/java/com/telnyx/sdk/model/StartStreamingRequest.java +++ b/src/main/java/com/telnyx/sdk/model/StartStreamingRequest.java @@ -22,6 +22,7 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DialogflowConfig; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -35,7 +36,9 @@ StartStreamingRequest.JSON_PROPERTY_STREAM_URL, StartStreamingRequest.JSON_PROPERTY_STREAM_TRACK, StartStreamingRequest.JSON_PROPERTY_CLIENT_STATE, - StartStreamingRequest.JSON_PROPERTY_COMMAND_ID + StartStreamingRequest.JSON_PROPERTY_COMMAND_ID, + StartStreamingRequest.JSON_PROPERTY_ENABLE_DIALOGFLOW, + StartStreamingRequest.JSON_PROPERTY_DIALOGFLOW_CONFIG }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class StartStreamingRequest { @@ -88,6 +91,12 @@ public static StreamTrackEnum fromValue(String value) { public static final String JSON_PROPERTY_COMMAND_ID = "command_id"; private String commandId; + public static final String JSON_PROPERTY_ENABLE_DIALOGFLOW = "enable_dialogflow"; + private Boolean enableDialogflow = false; + + public static final String JSON_PROPERTY_DIALOGFLOW_CONFIG = "dialogflow_config"; + private DialogflowConfig dialogflowConfig; + public StartStreamingRequest() { } @@ -195,6 +204,58 @@ public void setCommandId(String commandId) { } + public StartStreamingRequest enableDialogflow(Boolean enableDialogflow) { + this.enableDialogflow = enableDialogflow; + return this; + } + + /** + * Enables Dialogflow for the current call. The default value is false. + * @return enableDialogflow + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Enables Dialogflow for the current call. The default value is false.") + @JsonProperty(JSON_PROPERTY_ENABLE_DIALOGFLOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getEnableDialogflow() { + return enableDialogflow; + } + + + @JsonProperty(JSON_PROPERTY_ENABLE_DIALOGFLOW) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEnableDialogflow(Boolean enableDialogflow) { + this.enableDialogflow = enableDialogflow; + } + + + public StartStreamingRequest dialogflowConfig(DialogflowConfig dialogflowConfig) { + this.dialogflowConfig = dialogflowConfig; + return this; + } + + /** + * Get dialogflowConfig + * @return dialogflowConfig + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DIALOGFLOW_CONFIG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DialogflowConfig getDialogflowConfig() { + return dialogflowConfig; + } + + + @JsonProperty(JSON_PROPERTY_DIALOGFLOW_CONFIG) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDialogflowConfig(DialogflowConfig dialogflowConfig) { + this.dialogflowConfig = dialogflowConfig; + } + + /** * Return true if this StartStreamingRequest object is equal to o. */ @@ -210,12 +271,14 @@ public boolean equals(Object o) { return Objects.equals(this.streamUrl, startStreamingRequest.streamUrl) && Objects.equals(this.streamTrack, startStreamingRequest.streamTrack) && Objects.equals(this.clientState, startStreamingRequest.clientState) && - Objects.equals(this.commandId, startStreamingRequest.commandId); + Objects.equals(this.commandId, startStreamingRequest.commandId) && + Objects.equals(this.enableDialogflow, startStreamingRequest.enableDialogflow) && + Objects.equals(this.dialogflowConfig, startStreamingRequest.dialogflowConfig); } @Override public int hashCode() { - return Objects.hash(streamUrl, streamTrack, clientState, commandId); + return Objects.hash(streamUrl, streamTrack, clientState, commandId, enableDialogflow, dialogflowConfig); } @Override @@ -226,6 +289,8 @@ public String toString() { sb.append(" streamTrack: ").append(toIndentedString(streamTrack)).append("\n"); sb.append(" clientState: ").append(toIndentedString(clientState)).append("\n"); sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n"); + sb.append(" enableDialogflow: ").append(toIndentedString(enableDialogflow)).append("\n"); + sb.append(" dialogflowConfig: ").append(toIndentedString(dialogflowConfig)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/telnyx/sdk/model/SubNumberOrder.java b/src/main/java/com/telnyx/sdk/model/SubNumberOrder.java index 489f1a38..0d6b1d8c 100644 --- a/src/main/java/com/telnyx/sdk/model/SubNumberOrder.java +++ b/src/main/java/com/telnyx/sdk/model/SubNumberOrder.java @@ -129,6 +129,28 @@ public static PhoneNumberTypeEnum fromValue(String value) { public SubNumberOrder() { } + @JsonCreator + public SubNumberOrder( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_ORDER_REQUEST_ID) UUID orderRequestId, + @JsonProperty(JSON_PROPERTY_COUNTRY_CODE) String countryCode, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_COUNT) Integer phoneNumbersCount, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet + ) { + this(); + this.id = id; + this.orderRequestId = orderRequestId; + this.countryCode = countryCode; + this.recordType = recordType; + this.phoneNumbersCount = phoneNumbersCount; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.requirementsMet = requirementsMet; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/SubNumberOrderRegulatoryRequirement.java b/src/main/java/com/telnyx/sdk/model/SubNumberOrderRegulatoryRequirement.java index 4451cc7a..ff51f43c 100644 --- a/src/main/java/com/telnyx/sdk/model/SubNumberOrderRegulatoryRequirement.java +++ b/src/main/java/com/telnyx/sdk/model/SubNumberOrderRegulatoryRequirement.java @@ -90,6 +90,16 @@ public static FieldTypeEnum fromValue(String value) { public SubNumberOrderRegulatoryRequirement() { } + @JsonCreator + public SubNumberOrderRegulatoryRequirement( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_FIELD_TYPE) FieldTypeEnum fieldType + ) { + this(); + this.recordType = recordType; + this.fieldType = fieldType; + } + /** * Get recordType * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommand.java b/src/main/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommand.java new file mode 100644 index 00000000..5c5a95ff --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommand.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SuccessfulResponseUponAcceptingCancelFaxCommand + */ +@JsonPropertyOrder({ + SuccessfulResponseUponAcceptingCancelFaxCommand.JSON_PROPERTY_RESULT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SuccessfulResponseUponAcceptingCancelFaxCommand { + public static final String JSON_PROPERTY_RESULT = "result"; + private String result; + + public SuccessfulResponseUponAcceptingCancelFaxCommand() { + } + + public SuccessfulResponseUponAcceptingCancelFaxCommand result(String result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ok", value = "") + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getResult() { + return result; + } + + + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(String result) { + this.result = result; + } + + + /** + * Return true if this Successful_response_upon_accepting_cancel_fax_command object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SuccessfulResponseUponAcceptingCancelFaxCommand successfulResponseUponAcceptingCancelFaxCommand = (SuccessfulResponseUponAcceptingCancelFaxCommand) o; + return Objects.equals(this.result, successfulResponseUponAcceptingCancelFaxCommand.result); + } + + @Override + public int hashCode() { + return Objects.hash(result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SuccessfulResponseUponAcceptingCancelFaxCommand {\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.java b/src/main/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.java new file mode 100644 index 00000000..4b437a09 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Message; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent + */ +@JsonPropertyOrder({ + SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent { + public static final String JSON_PROPERTY_DATA = "data"; + private Message data; + + public SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent() { + } + + public SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent data(Message data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Message getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(Message data) { + this.data = data; + } + + + /** + * Return true if this Successful_response_with_details_about_the_WhatsApp_message_sent_ object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent successfulResponseWithDetailsAboutTheWhatsAppMessageSent = (SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent) o; + return Objects.equals(this.data, successfulResponseWithDetailsAboutTheWhatsAppMessageSent.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/TeXmlRESTCommandResponse.java b/src/main/java/com/telnyx/sdk/model/TeXmlRESTCommandResponse.java new file mode 100644 index 00000000..254fcdd9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/TeXmlRESTCommandResponse.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateCommandResult; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * TeXmlRESTCommandResponse + */ +@JsonPropertyOrder({ + TeXmlRESTCommandResponse.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TeXmlRESTCommandResponse { + public static final String JSON_PROPERTY_DATA = "data"; + private UpdateCommandResult data; + + public TeXmlRESTCommandResponse() { + } + + public TeXmlRESTCommandResponse data(UpdateCommandResult data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UpdateCommandResult getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(UpdateCommandResult data) { + this.data = data; + } + + + /** + * Return true if this TeXml_REST_Command_Response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeXmlRESTCommandResponse teXmlRESTCommandResponse = (TeXmlRESTCommandResponse) o; + return Objects.equals(this.data, teXmlRESTCommandResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeXmlRESTCommandResponse {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Template.java b/src/main/java/com/telnyx/sdk/model/Template.java index 7e3a2aa4..ce1be9a0 100644 --- a/src/main/java/com/telnyx/sdk/model/Template.java +++ b/src/main/java/com/telnyx/sdk/model/Template.java @@ -23,6 +23,7 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Language; +import com.telnyx.sdk.model.TemplateComponents; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; @@ -52,7 +53,7 @@ public class Template { private Language language; public static final String JSON_PROPERTY_COMPONENTS = "components"; - private List components = null; + private List components = null; public Template() { } @@ -135,12 +136,12 @@ public void setLanguage(Language language) { } - public Template components(List components) { + public Template components(List components) { this.components = components; return this; } - public Template addComponentsItem(Object componentsItem) { + public Template addComponentsItem(TemplateComponents componentsItem) { if (this.components == null) { this.components = new ArrayList<>(); } @@ -157,14 +158,14 @@ public Template addComponentsItem(Object componentsItem) { @JsonProperty(JSON_PROPERTY_COMPONENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getComponents() { + public List getComponents() { return components; } @JsonProperty(JSON_PROPERTY_COMPONENTS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setComponents(List components) { + public void setComponents(List components) { this.components = components; } diff --git a/src/main/java/com/telnyx/sdk/model/TemplateButtonComponent.java b/src/main/java/com/telnyx/sdk/model/TemplateButtonComponent.java new file mode 100644 index 00000000..bdbacbd4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/TemplateButtonComponent.java @@ -0,0 +1,212 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonComponentType; +import com.telnyx.sdk.model.ButtonSubtype; +import com.telnyx.sdk.model.TemplateButtonParameter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * TemplateButtonComponent + */ +@JsonPropertyOrder({ + TemplateButtonComponent.JSON_PROPERTY_TYPE, + TemplateButtonComponent.JSON_PROPERTY_SUB_TYPE, + TemplateButtonComponent.JSON_PROPERTY_INDEX, + TemplateButtonComponent.JSON_PROPERTY_PARAMETERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TemplateButtonComponent { + public static final String JSON_PROPERTY_TYPE = "type"; + private ButtonComponentType type; + + public static final String JSON_PROPERTY_SUB_TYPE = "sub_type"; + private ButtonSubtype subType; + + public static final String JSON_PROPERTY_INDEX = "index"; + private Integer index; + + public static final String JSON_PROPERTY_PARAMETERS = "parameters"; + private List parameters; + + public TemplateButtonComponent() { + } + + public TemplateButtonComponent type(ButtonComponentType type) { + this.type = type; + return this; + } + + /** + * Describes the component type. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "Describes the component type.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public ButtonComponentType getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(ButtonComponentType type) { + this.type = type; + } + + + public TemplateButtonComponent subType(ButtonSubtype subType) { + this.subType = subType; + return this; + } + + /** + * Used when type is set to button. + * @return subType + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "Used when type is set to button.") + @JsonProperty(JSON_PROPERTY_SUB_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public ButtonSubtype getSubType() { + return subType; + } + + + @JsonProperty(JSON_PROPERTY_SUB_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setSubType(ButtonSubtype subType) { + this.subType = subType; + } + + + public TemplateButtonComponent index(Integer index) { + this.index = index; + return this; + } + + /** + * Position index of the button. You can have up to 3 buttons using index values of 0-2. + * @return index + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Position index of the button. You can have up to 3 buttons using index values of 0-2.") + @JsonProperty(JSON_PROPERTY_INDEX) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getIndex() { + return index; + } + + + @JsonProperty(JSON_PROPERTY_INDEX) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIndex(Integer index) { + this.index = index; + } + + + public TemplateButtonComponent parameters(List parameters) { + this.parameters = parameters; + return this; + } + + /** + * The parameters for the button, which are set at creation time in your Business Manager. + * @return parameters + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "The parameters for the button, which are set at creation time in your Business Manager.") + @JsonProperty(JSON_PROPERTY_PARAMETERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getParameters() { + return parameters; + } + + + @JsonProperty(JSON_PROPERTY_PARAMETERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setParameters(List parameters) { + this.parameters = parameters; + } + + + /** + * Return true if this TemplateButtonComponent object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TemplateButtonComponent templateButtonComponent = (TemplateButtonComponent) o; + return Objects.equals(this.type, templateButtonComponent.type) && + Objects.equals(this.subType, templateButtonComponent.subType) && + Objects.equals(this.index, templateButtonComponent.index) && + Objects.equals(this.parameters, templateButtonComponent.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(type, subType, index, parameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TemplateButtonComponent {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subType: ").append(toIndentedString(subType)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/TemplateButtonParameter.java b/src/main/java/com/telnyx/sdk/model/TemplateButtonParameter.java new file mode 100644 index 00000000..4cffc7d6 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/TemplateButtonParameter.java @@ -0,0 +1,177 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonParameterType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * TemplateButtonParameter + */ +@JsonPropertyOrder({ + TemplateButtonParameter.JSON_PROPERTY_TYPE, + TemplateButtonParameter.JSON_PROPERTY_PAYLOAD, + TemplateButtonParameter.JSON_PROPERTY_TEXT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TemplateButtonParameter { + public static final String JSON_PROPERTY_TYPE = "type"; + private ButtonParameterType type; + + public static final String JSON_PROPERTY_PAYLOAD = "payload"; + private String payload; + + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public TemplateButtonParameter() { + } + + public TemplateButtonParameter type(ButtonParameterType type) { + this.type = type; + return this; + } + + /** + * Indicates the type of parameter for the button. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "Indicates the type of parameter for the button.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public ButtonParameterType getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(ButtonParameterType type) { + this.type = type; + } + + + public TemplateButtonParameter payload(String payload) { + this.payload = payload; + return this; + } + + /** + * Required for quick_reply buttons. Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button. + * @return payload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Required for quick_reply buttons. Developer-defined payload that will be returned when the button is clicked in addition to the display text on the button.") + @JsonProperty(JSON_PROPERTY_PAYLOAD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPayload() { + return payload; + } + + + @JsonProperty(JSON_PROPERTY_PAYLOAD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPayload(String payload) { + this.payload = payload; + } + + + public TemplateButtonParameter text(String text) { + this.text = text; + return this; + } + + /** + * Required for url buttons. Developer provided suffix that will be appended to a previously created dynamic URL button. + * @return text + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Required for url buttons. Developer provided suffix that will be appended to a previously created dynamic URL button.") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setText(String text) { + this.text = text; + } + + + /** + * Return true if this TemplateButtonParameter object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TemplateButtonParameter templateButtonParameter = (TemplateButtonParameter) o; + return Objects.equals(this.type, templateButtonParameter.type) && + Objects.equals(this.payload, templateButtonParameter.payload) && + Objects.equals(this.text, templateButtonParameter.text); + } + + @Override + public int hashCode() { + return Objects.hash(type, payload, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TemplateButtonParameter {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" payload: ").append(toIndentedString(payload)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/TemplateComponent.java b/src/main/java/com/telnyx/sdk/model/TemplateComponent.java new file mode 100644 index 00000000..05887b34 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/TemplateComponent.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.TemplateComponentType; +import com.telnyx.sdk.model.TemplateParameters; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * TemplateComponent + */ +@JsonPropertyOrder({ + TemplateComponent.JSON_PROPERTY_TYPE, + TemplateComponent.JSON_PROPERTY_PARAMETERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TemplateComponent { + public static final String JSON_PROPERTY_TYPE = "type"; + private TemplateComponentType type; + + public static final String JSON_PROPERTY_PARAMETERS = "parameters"; + private List parameters = null; + + public TemplateComponent() { + } + + public TemplateComponent type(TemplateComponentType type) { + this.type = type; + return this; + } + + /** + * Describes the component type. + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(required = true, value = "Describes the component type.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public TemplateComponentType getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TemplateComponentType type) { + this.type = type; + } + + + public TemplateComponent parameters(List parameters) { + this.parameters = parameters; + return this; + } + + public TemplateComponent addParametersItem(TemplateParameters parametersItem) { + if (this.parameters == null) { + this.parameters = new ArrayList<>(); + } + this.parameters.add(parametersItem); + return this; + } + + /** + * Get parameters + * @return parameters + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PARAMETERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getParameters() { + return parameters; + } + + + @JsonProperty(JSON_PROPERTY_PARAMETERS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setParameters(List parameters) { + this.parameters = parameters; + } + + + /** + * Return true if this TemplateComponent object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TemplateComponent templateComponent = (TemplateComponent) o; + return Objects.equals(this.type, templateComponent.type) && + Objects.equals(this.parameters, templateComponent.parameters); + } + + @Override + public int hashCode() { + return Objects.hash(type, parameters); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TemplateComponent {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" parameters: ").append(toIndentedString(parameters)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/TemplateComponentType.java b/src/main/java/com/telnyx/sdk/model/TemplateComponentType.java new file mode 100644 index 00000000..2ca39c48 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/TemplateComponentType.java @@ -0,0 +1,63 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import io.swagger.annotations.ApiModel; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +/** + * An enumeration. + */ +public enum TemplateComponentType { + + HEADER("header"), + + BODY("body"); + + private String value; + + TemplateComponentType(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TemplateComponentType fromValue(String value) { + for (TemplateComponentType b : TemplateComponentType.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} + diff --git a/src/main/java/com/telnyx/sdk/model/TemplateComponents.java b/src/main/java/com/telnyx/sdk/model/TemplateComponents.java new file mode 100644 index 00000000..e629dc6c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/TemplateComponents.java @@ -0,0 +1,218 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonComponentType; +import com.telnyx.sdk.model.ButtonSubtype; +import com.telnyx.sdk.model.TemplateButtonComponent; +import com.telnyx.sdk.model.TemplateButtonParameter; +import com.telnyx.sdk.model.TemplateComponent; +import com.telnyx.sdk.model.TemplateParameters; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +import javax.ws.rs.core.GenericType; +import javax.ws.rs.core.Response; +import java.io.IOException; +import java.util.logging.Level; +import java.util.logging.Logger; +import java.util.ArrayList; +import java.util.Collections; +import java.util.HashSet; + +import com.fasterxml.jackson.core.JsonGenerator; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.JsonProcessingException; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.DeserializationContext; +import com.fasterxml.jackson.databind.JsonMappingException; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.SerializerProvider; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.fasterxml.jackson.databind.annotation.JsonSerialize; +import com.fasterxml.jackson.databind.deser.std.StdDeserializer; +import com.fasterxml.jackson.databind.ser.std.StdSerializer; +import com.telnyx.sdk.JSON; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +@JsonDeserialize(using=TemplateComponents.TemplateComponentsDeserializer.class) +@JsonSerialize(using = TemplateComponents.TemplateComponentsSerializer.class) +public class TemplateComponents extends AbstractOpenApiSchema { + private static final Logger log = Logger.getLogger(TemplateComponents.class.getName()); + + public static class TemplateComponentsSerializer extends StdSerializer { + public TemplateComponentsSerializer(Class t) { + super(t); + } + + public TemplateComponentsSerializer() { + this(null); + } + + @Override + public void serialize(TemplateComponents value, JsonGenerator jgen, SerializerProvider provider) throws IOException, JsonProcessingException { + jgen.writeObject(value.getActualInstance()); + } + } + + public static class TemplateComponentsDeserializer extends StdDeserializer { + public TemplateComponentsDeserializer() { + this(TemplateComponents.class); + } + + public TemplateComponentsDeserializer(Class vc) { + super(vc); + } + + @Override + public TemplateComponents deserialize(JsonParser jp, DeserializationContext ctxt) throws IOException, JsonProcessingException { + JsonNode tree = jp.readValueAsTree(); + + Object deserialized = null; + // deserialize TemplateButtonComponent + try { + deserialized = tree.traverse(jp.getCodec()).readValueAs(TemplateButtonComponent.class); + TemplateComponents ret = new TemplateComponents(); + ret.setActualInstance(deserialized); + return ret; + } catch (Exception e) { + // deserialization failed, continue, log to help debugging + log.log(Level.FINER, "Input data does not match 'TemplateComponents'", e); + } + + // deserialize TemplateComponent + try { + deserialized = tree.traverse(jp.getCodec()).readValueAs(TemplateComponent.class); + TemplateComponents ret = new TemplateComponents(); + ret.setActualInstance(deserialized); + return ret; + } catch (Exception e) { + // deserialization failed, continue, log to help debugging + log.log(Level.FINER, "Input data does not match 'TemplateComponents'", e); + } + + throw new IOException(String.format("Failed deserialization for TemplateComponents: no match found")); + } + + /** + * Handle deserialization of the 'null' value. + */ + @Override + public TemplateComponents getNullValue(DeserializationContext ctxt) throws JsonMappingException { + throw new JsonMappingException(ctxt.getParser(), "TemplateComponents cannot be null"); + } + } + + // store a list of schema names defined in anyOf + public static final Map schemas = new HashMap(); + + public TemplateComponents() { + super("anyOf", Boolean.FALSE); + } + + public TemplateComponents(TemplateButtonComponent o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + public TemplateComponents(TemplateComponent o) { + super("anyOf", Boolean.FALSE); + setActualInstance(o); + } + + static { + schemas.put("TemplateButtonComponent", new GenericType() { + }); + schemas.put("TemplateComponent", new GenericType() { + }); + JSON.registerDescendants(TemplateComponents.class, Collections.unmodifiableMap(schemas)); + } + + @Override + public Map getSchemas() { + return TemplateComponents.schemas; + } + + /** + * Set the instance that matches the anyOf child schema, check + * the instance parameter is valid against the anyOf child schemas: + * TemplateButtonComponent, TemplateComponent + * + * It could be an instance of the 'anyOf' schemas. + * The anyOf child schemas may themselves be a composed schema (allOf, anyOf, anyOf). + */ + @Override + public void setActualInstance(Object instance) { + if (JSON.isInstanceOf(TemplateButtonComponent.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + if (JSON.isInstanceOf(TemplateComponent.class, instance, new HashSet>())) { + super.setActualInstance(instance); + return; + } + + throw new RuntimeException("Invalid instance type. Must be TemplateButtonComponent, TemplateComponent"); + } + + /** + * Get the actual instance, which can be the following: + * TemplateButtonComponent, TemplateComponent + * + * @return The actual instance (TemplateButtonComponent, TemplateComponent) + */ + @Override + public Object getActualInstance() { + return super.getActualInstance(); + } + + /** + * Get the actual instance of `TemplateButtonComponent`. If the actual instance is not `TemplateButtonComponent`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `TemplateButtonComponent` + * @throws ClassCastException if the instance is not `TemplateButtonComponent` + */ + public TemplateButtonComponent getTemplateButtonComponent() throws ClassCastException { + return (TemplateButtonComponent)super.getActualInstance(); + } + + /** + * Get the actual instance of `TemplateComponent`. If the actual instance is not `TemplateComponent`, + * the ClassCastException will be thrown. + * + * @return The actual instance of `TemplateComponent` + * @throws ClassCastException if the instance is not `TemplateComponent` + */ + public TemplateComponent getTemplateComponent() throws ClassCastException { + return (TemplateComponent)super.getActualInstance(); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/TemplateParameters.java b/src/main/java/com/telnyx/sdk/model/TemplateParameters.java new file mode 100644 index 00000000..98aa6c55 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/TemplateParameters.java @@ -0,0 +1,353 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Currency; +import com.telnyx.sdk.model.DateTimeObject; +import com.telnyx.sdk.model.Document; +import com.telnyx.sdk.model.Image; +import com.telnyx.sdk.model.Video; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Array containing the content of the message. + */ +@ApiModel(description = "Array containing the content of the message.") +@JsonPropertyOrder({ + TemplateParameters.JSON_PROPERTY_TYPE, + TemplateParameters.JSON_PROPERTY_TEXT, + TemplateParameters.JSON_PROPERTY_CURRENCY, + TemplateParameters.JSON_PROPERTY_DATE_TIME, + TemplateParameters.JSON_PROPERTY_IMAGE, + TemplateParameters.JSON_PROPERTY_DOCUMENT, + TemplateParameters.JSON_PROPERTY_VIDEO +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class TemplateParameters { + /** + * Describes the parameter type. + */ + public enum TypeEnum { + TEXT("text"), + + CURRENCY("currency"), + + DATE_TIME("date_time"), + + IMAGE("image"), + + DOCUMENT("document"), + + VIDEO("video"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private Currency currency; + + public static final String JSON_PROPERTY_DATE_TIME = "date_time"; + private DateTimeObject dateTime; + + public static final String JSON_PROPERTY_IMAGE = "image"; + private Image image; + + public static final String JSON_PROPERTY_DOCUMENT = "document"; + private Document document; + + public static final String JSON_PROPERTY_VIDEO = "video"; + private Video video; + + public TemplateParameters() { + } + + public TemplateParameters type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * Describes the parameter type. + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "Describes the parameter type.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public TypeEnum getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setType(TypeEnum type) { + this.type = type; + } + + + public TemplateParameters text(String text) { + this.text = text; + return this; + } + + /** + * Get text + * @return text + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setText(String text) { + this.text = text; + } + + + public TemplateParameters currency(Currency currency) { + this.currency = currency; + return this; + } + + /** + * Get currency + * @return currency + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Currency getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrency(Currency currency) { + this.currency = currency; + } + + + public TemplateParameters dateTime(DateTimeObject dateTime) { + this.dateTime = dateTime; + return this; + } + + /** + * Get dateTime + * @return dateTime + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DateTimeObject getDateTime() { + return dateTime; + } + + + @JsonProperty(JSON_PROPERTY_DATE_TIME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDateTime(DateTimeObject dateTime) { + this.dateTime = dateTime; + } + + + public TemplateParameters image(Image image) { + this.image = image; + return this; + } + + /** + * Get image + * @return image + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_IMAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Image getImage() { + return image; + } + + + @JsonProperty(JSON_PROPERTY_IMAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setImage(Image image) { + this.image = image; + } + + + public TemplateParameters document(Document document) { + this.document = document; + return this; + } + + /** + * Get document + * @return document + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DOCUMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Document getDocument() { + return document; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDocument(Document document) { + this.document = document; + } + + + public TemplateParameters video(Video video) { + this.video = video; + return this; + } + + /** + * Get video + * @return video + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_VIDEO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Video getVideo() { + return video; + } + + + @JsonProperty(JSON_PROPERTY_VIDEO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVideo(Video video) { + this.video = video; + } + + + /** + * Return true if this Template_Parameters object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TemplateParameters templateParameters = (TemplateParameters) o; + return Objects.equals(this.type, templateParameters.type) && + Objects.equals(this.text, templateParameters.text) && + Objects.equals(this.currency, templateParameters.currency) && + Objects.equals(this.dateTime, templateParameters.dateTime) && + Objects.equals(this.image, templateParameters.image) && + Objects.equals(this.document, templateParameters.document) && + Objects.equals(this.video, templateParameters.video); + } + + @Override + public int hashCode() { + return Objects.hash(type, text, currency, dateTime, image, document, video); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TemplateParameters {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); + sb.append(" document: ").append(toIndentedString(document)).append("\n"); + sb.append(" video: ").append(toIndentedString(video)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/TexmlApplication.java b/src/main/java/com/telnyx/sdk/model/TexmlApplication.java index ac95c27f..255957e4 100644 --- a/src/main/java/com/telnyx/sdk/model/TexmlApplication.java +++ b/src/main/java/com/telnyx/sdk/model/TexmlApplication.java @@ -84,7 +84,7 @@ public class TexmlApplication { private String voiceUrl; public static final String JSON_PROPERTY_VOICE_FALLBACK_URL = "voice_fallback_url"; - private String voiceFallbackUrl = "null"; + private String voiceFallbackUrl; /** * HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. @@ -125,7 +125,7 @@ public static VoiceMethodEnum fromValue(String value) { private VoiceMethodEnum voiceMethod = VoiceMethodEnum.POST; public static final String JSON_PROPERTY_STATUS_CALLBACK = "status_callback"; - private String statusCallback = "null"; + private String statusCallback; /** * HTTP request method Telnyx should use when requesting the status_callback URL. @@ -180,6 +180,16 @@ public static StatusCallbackMethodEnum fromValue(String value) { public TexmlApplication() { } + @JsonCreator + public TexmlApplication( + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + public TexmlApplication id(String id) { this.id = id; return this; @@ -570,17 +580,12 @@ public void setOutbound(CreateTexmlApplicationRequestOutbound outbound) { } - public TexmlApplication createdAt(String createdAt) { - this.createdAt = createdAt; - return this; - } - /** - * ISO 8601 formatted date indicating when the resource was created. + * ISO 8601 formatted date-time indicating when the resource was created. * @return createdAt **/ @javax.annotation.Nullable - @ApiModelProperty(example = "2020-02-02T22:25:27.521Z", value = "ISO 8601 formatted date indicating when the resource was created.") + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") @JsonProperty(JSON_PROPERTY_CREATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -589,24 +594,14 @@ public String getCreatedAt() { } - @JsonProperty(JSON_PROPERTY_CREATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCreatedAt(String createdAt) { - this.createdAt = createdAt; - } - - public TexmlApplication updatedAt(String updatedAt) { - this.updatedAt = updatedAt; - return this; - } /** - * ISO 8601 formatted date indicating when the resource was updated. + * ISO 8601 formatted date-time indicating when the resource was updated. * @return updatedAt **/ @javax.annotation.Nullable - @ApiModelProperty(example = "2020-02-03T22:25:27.521Z", value = "ISO 8601 formatted date indicating when the resource was updated.") + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") @JsonProperty(JSON_PROPERTY_UPDATED_AT) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -615,11 +610,6 @@ public String getUpdatedAt() { } - @JsonProperty(JSON_PROPERTY_UPDATED_AT) - @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setUpdatedAt(String updatedAt) { - this.updatedAt = updatedAt; - } /** diff --git a/src/main/java/com/telnyx/sdk/model/TranscriptionStartRequest.java b/src/main/java/com/telnyx/sdk/model/TranscriptionStartRequest.java index 94b971a8..813638df 100644 --- a/src/main/java/com/telnyx/sdk/model/TranscriptionStartRequest.java +++ b/src/main/java/com/telnyx/sdk/model/TranscriptionStartRequest.java @@ -35,6 +35,7 @@ TranscriptionStartRequest.JSON_PROPERTY_LANGUAGE, TranscriptionStartRequest.JSON_PROPERTY_INTERIM_RESULTS, TranscriptionStartRequest.JSON_PROPERTY_CLIENT_STATE, + TranscriptionStartRequest.JSON_PROPERTY_TRANSCRIPTION_TRACKS, TranscriptionStartRequest.JSON_PROPERTY_COMMAND_ID }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -91,6 +92,9 @@ public static LanguageEnum fromValue(String value) { public static final String JSON_PROPERTY_CLIENT_STATE = "client_state"; private String clientState; + public static final String JSON_PROPERTY_TRANSCRIPTION_TRACKS = "transcription_tracks"; + private String transcriptionTracks = "inbound"; + public static final String JSON_PROPERTY_COMMAND_ID = "command_id"; private String commandId; @@ -175,6 +179,32 @@ public void setClientState(String clientState) { } + public TranscriptionStartRequest transcriptionTracks(String transcriptionTracks) { + this.transcriptionTracks = transcriptionTracks; + return this; + } + + /** + * Indicates which leg of the call will be transcribed. Use `inbound` for the leg that requested the transcription, `outbound` for the other leg, and `both` for both legs of the call. Will default to `inbound`. + * @return transcriptionTracks + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "both", value = "Indicates which leg of the call will be transcribed. Use `inbound` for the leg that requested the transcription, `outbound` for the other leg, and `both` for both legs of the call. Will default to `inbound`.") + @JsonProperty(JSON_PROPERTY_TRANSCRIPTION_TRACKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTranscriptionTracks() { + return transcriptionTracks; + } + + + @JsonProperty(JSON_PROPERTY_TRANSCRIPTION_TRACKS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTranscriptionTracks(String transcriptionTracks) { + this.transcriptionTracks = transcriptionTracks; + } + + public TranscriptionStartRequest commandId(String commandId) { this.commandId = commandId; return this; @@ -216,12 +246,13 @@ public boolean equals(Object o) { return Objects.equals(this.language, transcriptionStartRequest.language) && Objects.equals(this.interimResults, transcriptionStartRequest.interimResults) && Objects.equals(this.clientState, transcriptionStartRequest.clientState) && + Objects.equals(this.transcriptionTracks, transcriptionStartRequest.transcriptionTracks) && Objects.equals(this.commandId, transcriptionStartRequest.commandId); } @Override public int hashCode() { - return Objects.hash(language, interimResults, clientState, commandId); + return Objects.hash(language, interimResults, clientState, transcriptionTracks, commandId); } @Override @@ -231,6 +262,7 @@ public String toString() { sb.append(" language: ").append(toIndentedString(language)).append("\n"); sb.append(" interimResults: ").append(toIndentedString(interimResults)).append("\n"); sb.append(" clientState: ").append(toIndentedString(clientState)).append("\n"); + sb.append(" transcriptionTracks: ").append(toIndentedString(transcriptionTracks)).append("\n"); sb.append(" commandId: ").append(toIndentedString(commandId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/telnyx/sdk/model/TransferCallRequest.java b/src/main/java/com/telnyx/sdk/model/TransferCallRequest.java index a1f2365c..0ad47f6b 100644 --- a/src/main/java/com/telnyx/sdk/model/TransferCallRequest.java +++ b/src/main/java/com/telnyx/sdk/model/TransferCallRequest.java @@ -25,6 +25,7 @@ import com.telnyx.sdk.model.CallRequestAnsweringMachineDetectionConfig; import com.telnyx.sdk.model.CustomSipHeader; import com.telnyx.sdk.model.SipHeader; +import com.telnyx.sdk.model.SoundModifications; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; @@ -53,6 +54,7 @@ TransferCallRequest.JSON_PROPERTY_SIP_AUTH_USERNAME, TransferCallRequest.JSON_PROPERTY_SIP_AUTH_PASSWORD, TransferCallRequest.JSON_PROPERTY_SIP_HEADERS, + TransferCallRequest.JSON_PROPERTY_SOUND_MODIFICATIONS, TransferCallRequest.JSON_PROPERTY_WEBHOOK_URL, TransferCallRequest.JSON_PROPERTY_WEBHOOK_URL_METHOD }) @@ -147,6 +149,9 @@ public static AnsweringMachineDetectionEnum fromValue(String value) { public static final String JSON_PROPERTY_SIP_HEADERS = "sip_headers"; private List sipHeaders = null; + public static final String JSON_PROPERTY_SOUND_MODIFICATIONS = "sound_modifications"; + private SoundModifications soundModifications; + public static final String JSON_PROPERTY_WEBHOOK_URL = "webhook_url"; private String webhookUrl; @@ -623,6 +628,32 @@ public void setSipHeaders(List sipHeaders) { } + public TransferCallRequest soundModifications(SoundModifications soundModifications) { + this.soundModifications = soundModifications; + return this; + } + + /** + * Get soundModifications + * @return soundModifications + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SOUND_MODIFICATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SoundModifications getSoundModifications() { + return soundModifications; + } + + + @JsonProperty(JSON_PROPERTY_SOUND_MODIFICATIONS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSoundModifications(SoundModifications soundModifications) { + this.soundModifications = soundModifications; + } + + public TransferCallRequest webhookUrl(String webhookUrl) { this.webhookUrl = webhookUrl; return this; @@ -703,13 +734,14 @@ public boolean equals(Object o) { Objects.equals(this.sipAuthUsername, transferCallRequest.sipAuthUsername) && Objects.equals(this.sipAuthPassword, transferCallRequest.sipAuthPassword) && Objects.equals(this.sipHeaders, transferCallRequest.sipHeaders) && + Objects.equals(this.soundModifications, transferCallRequest.soundModifications) && Objects.equals(this.webhookUrl, transferCallRequest.webhookUrl) && Objects.equals(this.webhookUrlMethod, transferCallRequest.webhookUrlMethod); } @Override public int hashCode() { - return Objects.hash(to, from, fromDisplayName, audioUrl, mediaName, timeoutSecs, timeLimitSecs, answeringMachineDetection, answeringMachineDetectionConfig, customHeaders, clientState, targetLegClientState, commandId, sipAuthUsername, sipAuthPassword, sipHeaders, webhookUrl, webhookUrlMethod); + return Objects.hash(to, from, fromDisplayName, audioUrl, mediaName, timeoutSecs, timeLimitSecs, answeringMachineDetection, answeringMachineDetectionConfig, customHeaders, clientState, targetLegClientState, commandId, sipAuthUsername, sipAuthPassword, sipHeaders, soundModifications, webhookUrl, webhookUrlMethod); } @Override @@ -732,6 +764,7 @@ public String toString() { sb.append(" sipAuthUsername: ").append(toIndentedString(sipAuthUsername)).append("\n"); sb.append(" sipAuthPassword: ").append(toIndentedString(sipAuthPassword)).append("\n"); sb.append(" sipHeaders: ").append(toIndentedString(sipHeaders)).append("\n"); + sb.append(" soundModifications: ").append(toIndentedString(soundModifications)).append("\n"); sb.append(" webhookUrl: ").append(toIndentedString(webhookUrl)).append("\n"); sb.append(" webhookUrlMethod: ").append(toIndentedString(webhookUrlMethod)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/telnyx/sdk/model/UnauthorizedError.java b/src/main/java/com/telnyx/sdk/model/UnauthorizedError.java index a0190e95..f0fd4c4c 100644 --- a/src/main/java/com/telnyx/sdk/model/UnauthorizedError.java +++ b/src/main/java/com/telnyx/sdk/model/UnauthorizedError.java @@ -22,10 +22,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ErrorSource; import com.telnyx.sdk.model.GenericError; import com.telnyx.sdk.model.UnauthorizedErrorAllOf; import com.telnyx.sdk.model.UnauthorizedErrorAllOfMeta; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInnerSource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; @@ -58,7 +58,7 @@ public class UnauthorizedError { private JsonNullable detail = JsonNullable.of(null); public static final String JSON_PROPERTY_SOURCE = "source"; - private ErrorSource source; + private UpdateOutboundChannelsDefaultResponseErrorsInnerSource source; public static final String JSON_PROPERTY_META = "meta"; private UnauthorizedErrorAllOfMeta meta; @@ -168,7 +168,7 @@ public void setDetail(Object detail) { } - public UnauthorizedError source(ErrorSource source) { + public UnauthorizedError source(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; return this; } @@ -182,14 +182,14 @@ public UnauthorizedError source(ErrorSource source) { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ErrorSource getSource() { + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(ErrorSource source) { + public void setSource(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; } diff --git a/src/main/java/com/telnyx/sdk/model/UnexpectedError.java b/src/main/java/com/telnyx/sdk/model/UnexpectedError.java index 0a517d84..2c09f53c 100644 --- a/src/main/java/com/telnyx/sdk/model/UnexpectedError.java +++ b/src/main/java/com/telnyx/sdk/model/UnexpectedError.java @@ -22,10 +22,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ErrorSource; import com.telnyx.sdk.model.GenericError; import com.telnyx.sdk.model.UnexpectedErrorAllOf; import com.telnyx.sdk.model.UnexpectedErrorAllOfMeta; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInnerSource; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.openapitools.jackson.nullable.JsonNullable; @@ -58,7 +58,7 @@ public class UnexpectedError { private JsonNullable detail = JsonNullable.of(null); public static final String JSON_PROPERTY_SOURCE = "source"; - private ErrorSource source; + private UpdateOutboundChannelsDefaultResponseErrorsInnerSource source; public static final String JSON_PROPERTY_META = "meta"; private UnexpectedErrorAllOfMeta meta; @@ -168,7 +168,7 @@ public void setDetail(Object detail) { } - public UnexpectedError source(ErrorSource source) { + public UnexpectedError source(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; return this; } @@ -182,14 +182,14 @@ public UnexpectedError source(ErrorSource source) { @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public ErrorSource getSource() { + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource getSource() { return source; } @JsonProperty(JSON_PROPERTY_SOURCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setSource(ErrorSource source) { + public void setSource(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { this.source = source; } diff --git a/src/main/java/com/telnyx/sdk/model/UpdateCallRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateCallRequest.java new file mode 100644 index 00000000..a104b7c0 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateCallRequest.java @@ -0,0 +1,441 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateCallRequest + */ +@JsonPropertyOrder({ + UpdateCallRequest.JSON_PROPERTY_STATUS, + UpdateCallRequest.JSON_PROPERTY_URL, + UpdateCallRequest.JSON_PROPERTY_METHOD, + UpdateCallRequest.JSON_PROPERTY_FALLBACK_URL, + UpdateCallRequest.JSON_PROPERTY_FALLBACK_METHOD, + UpdateCallRequest.JSON_PROPERTY_STATUS_CALLBACK, + UpdateCallRequest.JSON_PROPERTY_STATUS_CALLBACK_METHOD, + UpdateCallRequest.JSON_PROPERTY_TEXML +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateCallRequest { + public static final String JSON_PROPERTY_STATUS = "Status"; + private String status; + + public static final String JSON_PROPERTY_URL = "Url"; + private String url; + + /** + * HTTP request type used for `Url`. + */ + public enum MethodEnum { + GET("GET"), + + POST("POST"); + + private String value; + + MethodEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static MethodEnum fromValue(String value) { + for (MethodEnum b : MethodEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_METHOD = "Method"; + private MethodEnum method; + + public static final String JSON_PROPERTY_FALLBACK_URL = "FallbackUrl"; + private String fallbackUrl; + + /** + * HTTP request type used for `FallbackUrl`. + */ + public enum FallbackMethodEnum { + GET("GET"), + + POST("POST"); + + private String value; + + FallbackMethodEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static FallbackMethodEnum fromValue(String value) { + for (FallbackMethodEnum b : FallbackMethodEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_FALLBACK_METHOD = "FallbackMethod"; + private FallbackMethodEnum fallbackMethod; + + public static final String JSON_PROPERTY_STATUS_CALLBACK = "StatusCallback"; + private String statusCallback; + + /** + * HTTP request type used for `StatusCallback`. + */ + public enum StatusCallbackMethodEnum { + GET("GET"), + + POST("POST"); + + private String value; + + StatusCallbackMethodEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusCallbackMethodEnum fromValue(String value) { + for (StatusCallbackMethodEnum b : StatusCallbackMethodEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS_CALLBACK_METHOD = "StatusCallbackMethod"; + private StatusCallbackMethodEnum statusCallbackMethod; + + public static final String JSON_PROPERTY_TEXML = "Texml"; + private String texml; + + public UpdateCallRequest() { + } + + public UpdateCallRequest status(String status) { + this.status = status; + return this; + } + + /** + * The value to set the call status to. Setting the status to completed ends the call. + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "completed", value = "The value to set the call status to. Setting the status to completed ends the call.") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(String status) { + this.status = status; + } + + + public UpdateCallRequest url(String url) { + this.url = url; + return this; + } + + /** + * The URL where TeXML will make a request to retrieve a new set of TeXML instructions to continue the call flow. + * @return url + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "https://www.example.com/intruction-b.xml", value = "The URL where TeXML will make a request to retrieve a new set of TeXML instructions to continue the call flow.") + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUrl() { + return url; + } + + + @JsonProperty(JSON_PROPERTY_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setUrl(String url) { + this.url = url; + } + + + public UpdateCallRequest method(MethodEnum method) { + this.method = method; + return this; + } + + /** + * HTTP request type used for `Url`. + * @return method + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "GET", value = "HTTP request type used for `Url`.") + @JsonProperty(JSON_PROPERTY_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public MethodEnum getMethod() { + return method; + } + + + @JsonProperty(JSON_PROPERTY_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMethod(MethodEnum method) { + this.method = method; + } + + + public UpdateCallRequest fallbackUrl(String fallbackUrl) { + this.fallbackUrl = fallbackUrl; + return this; + } + + /** + * A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not responding. + * @return fallbackUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "https://www.example.com/intruction-c.xml", value = "A failover URL for which Telnyx will retrieve the TeXML call instructions if the Url is not responding.") + @JsonProperty(JSON_PROPERTY_FALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFallbackUrl() { + return fallbackUrl; + } + + + @JsonProperty(JSON_PROPERTY_FALLBACK_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFallbackUrl(String fallbackUrl) { + this.fallbackUrl = fallbackUrl; + } + + + public UpdateCallRequest fallbackMethod(FallbackMethodEnum fallbackMethod) { + this.fallbackMethod = fallbackMethod; + return this; + } + + /** + * HTTP request type used for `FallbackUrl`. + * @return fallbackMethod + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "GET", value = "HTTP request type used for `FallbackUrl`.") + @JsonProperty(JSON_PROPERTY_FALLBACK_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public FallbackMethodEnum getFallbackMethod() { + return fallbackMethod; + } + + + @JsonProperty(JSON_PROPERTY_FALLBACK_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFallbackMethod(FallbackMethodEnum fallbackMethod) { + this.fallbackMethod = fallbackMethod; + } + + + public UpdateCallRequest statusCallback(String statusCallback) { + this.statusCallback = statusCallback; + return this; + } + + /** + * URL destination for Telnyx to send status callback events to for the call. + * @return statusCallback + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "https://www.example.com/callback", value = "URL destination for Telnyx to send status callback events to for the call.") + @JsonProperty(JSON_PROPERTY_STATUS_CALLBACK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStatusCallback() { + return statusCallback; + } + + + @JsonProperty(JSON_PROPERTY_STATUS_CALLBACK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatusCallback(String statusCallback) { + this.statusCallback = statusCallback; + } + + + public UpdateCallRequest statusCallbackMethod(StatusCallbackMethodEnum statusCallbackMethod) { + this.statusCallbackMethod = statusCallbackMethod; + return this; + } + + /** + * HTTP request type used for `StatusCallback`. + * @return statusCallbackMethod + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "GET", value = "HTTP request type used for `StatusCallback`.") + @JsonProperty(JSON_PROPERTY_STATUS_CALLBACK_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StatusCallbackMethodEnum getStatusCallbackMethod() { + return statusCallbackMethod; + } + + + @JsonProperty(JSON_PROPERTY_STATUS_CALLBACK_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatusCallbackMethod(StatusCallbackMethodEnum statusCallbackMethod) { + this.statusCallbackMethod = statusCallbackMethod; + } + + + public UpdateCallRequest texml(String texml) { + this.texml = texml; + return this; + } + + /** + * TeXml to replace the current one with. + * @return texml + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Hello", value = "TeXml to replace the current one with.") + @JsonProperty(JSON_PROPERTY_TEXML) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTexml() { + return texml; + } + + + @JsonProperty(JSON_PROPERTY_TEXML) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTexml(String texml) { + this.texml = texml; + } + + + /** + * Return true if this UpdateCallRequest object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateCallRequest updateCallRequest = (UpdateCallRequest) o; + return Objects.equals(this.status, updateCallRequest.status) && + Objects.equals(this.url, updateCallRequest.url) && + Objects.equals(this.method, updateCallRequest.method) && + Objects.equals(this.fallbackUrl, updateCallRequest.fallbackUrl) && + Objects.equals(this.fallbackMethod, updateCallRequest.fallbackMethod) && + Objects.equals(this.statusCallback, updateCallRequest.statusCallback) && + Objects.equals(this.statusCallbackMethod, updateCallRequest.statusCallbackMethod) && + Objects.equals(this.texml, updateCallRequest.texml); + } + + @Override + public int hashCode() { + return Objects.hash(status, url, method, fallbackUrl, fallbackMethod, statusCallback, statusCallbackMethod, texml); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateCallRequest {\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" fallbackUrl: ").append(toIndentedString(fallbackUrl)).append("\n"); + sb.append(" fallbackMethod: ").append(toIndentedString(fallbackMethod)).append("\n"); + sb.append(" statusCallback: ").append(toIndentedString(statusCallback)).append("\n"); + sb.append(" statusCallbackMethod: ").append(toIndentedString(statusCallbackMethod)).append("\n"); + sb.append(" texml: ").append(toIndentedString(texml)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateCommandResult.java b/src/main/java/com/telnyx/sdk/model/UpdateCommandResult.java new file mode 100644 index 00000000..2c7d8433 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateCommandResult.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateCommandResult + */ +@JsonPropertyOrder({ + UpdateCommandResult.JSON_PROPERTY_SID, + UpdateCommandResult.JSON_PROPERTY_STATUS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateCommandResult { + public static final String JSON_PROPERTY_SID = "sid"; + private String sid; + + public static final String JSON_PROPERTY_STATUS = "status"; + private String status; + + public UpdateCommandResult() { + } + + public UpdateCommandResult sid(String sid) { + this.sid = sid; + return this; + } + + /** + * Get sid + * @return sid + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "c46e06d7-b78f-4b13-96b6-c576af9640ff", value = "") + @JsonProperty(JSON_PROPERTY_SID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSid() { + return sid; + } + + + @JsonProperty(JSON_PROPERTY_SID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSid(String sid) { + this.sid = sid; + } + + + public UpdateCommandResult status(String status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "accepted", value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(String status) { + this.status = status; + } + + + /** + * Return true if this UpdateCommandResult object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateCommandResult updateCommandResult = (UpdateCommandResult) o; + return Objects.equals(this.sid, updateCommandResult.sid) && + Objects.equals(this.status, updateCommandResult.status); + } + + @Override + public int hashCode() { + return Objects.hash(sid, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateCommandResult {\n"); + sb.append(" sid: ").append(toIndentedString(sid)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateFaxApplicationRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateFaxApplicationRequest.java index db5b0a56..e1311855 100644 --- a/src/main/java/com/telnyx/sdk/model/UpdateFaxApplicationRequest.java +++ b/src/main/java/com/telnyx/sdk/model/UpdateFaxApplicationRequest.java @@ -70,7 +70,7 @@ public class UpdateFaxApplicationRequest { private JsonNullable webhookTimeoutSecs = JsonNullable.undefined(); public static final String JSON_PROPERTY_FAX_EMAIL_RECIPIENT = "fax_email_recipient"; - private JsonNullable faxEmailRecipient = JsonNullable.of("null"); + private JsonNullable faxEmailRecipient = JsonNullable.undefined(); public static final String JSON_PROPERTY_INBOUND = "inbound"; private CreateFaxApplicationRequestInbound inbound; diff --git a/src/main/java/com/telnyx/sdk/model/UpdateMessagingProfileRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateMessagingProfileRequest.java index a94fd66f..bcb6e7c6 100644 --- a/src/main/java/com/telnyx/sdk/model/UpdateMessagingProfileRequest.java +++ b/src/main/java/com/telnyx/sdk/model/UpdateMessagingProfileRequest.java @@ -170,6 +170,20 @@ public static WebhookApiVersionEnum fromValue(String value) { public UpdateMessagingProfileRequest() { } + @JsonCreator + public UpdateMessagingProfileRequest( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) OffsetDateTime updatedAt + ) { + this(); + this.recordType = recordType; + this.id = id; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderDocumentRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderDocumentRequest.java index 3ef699e3..5216e4b6 100644 --- a/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderDocumentRequest.java +++ b/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderDocumentRequest.java @@ -104,6 +104,20 @@ public static RequirementTypeEnum fromValue(String value) { public UpdateNumberOrderDocumentRequest() { } + @JsonCreator + public UpdateNumberOrderDocumentRequest( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_REQUIREMENT_TYPE) RequirementTypeEnum requirementType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.requirementType = requirementType; + this.createdAt = createdAt; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderRequest.java index cfe7cf96..1bab8553 100644 --- a/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderRequest.java +++ b/src/main/java/com/telnyx/sdk/model/UpdateNumberOrderRequest.java @@ -115,6 +115,26 @@ public static StatusEnum fromValue(String value) { public UpdateNumberOrderRequest() { } + @JsonCreator + public UpdateNumberOrderRequest( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_COUNT) Integer phoneNumbersCount, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_REQUIREMENTS_MET) Boolean requirementsMet + ) { + this(); + this.id = id; + this.recordType = recordType; + this.phoneNumbersCount = phoneNumbersCount; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.requirementsMet = requirementsMet; + } + /** * Get id * @return id diff --git a/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200Response.java b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200Response.java new file mode 100644 index 00000000..ae016a9d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateOutboundChannels200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateOutboundChannels200Response + */ +@JsonPropertyOrder({ + UpdateOutboundChannels200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateOutboundChannels200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private UpdateOutboundChannels200ResponseData data; + + public UpdateOutboundChannels200Response() { + } + + public UpdateOutboundChannels200Response data(UpdateOutboundChannels200ResponseData data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UpdateOutboundChannels200ResponseData getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(UpdateOutboundChannels200ResponseData data) { + this.data = data; + } + + + /** + * Return true if this updateOutboundChannels_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateOutboundChannels200Response updateOutboundChannels200Response = (UpdateOutboundChannels200Response) o; + return Objects.equals(this.data, updateOutboundChannels200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateOutboundChannels200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseData.java b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseData.java new file mode 100644 index 00000000..5e4b44c9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseData.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateOutboundChannels200ResponseData + */ +@JsonPropertyOrder({ + UpdateOutboundChannels200ResponseData.JSON_PROPERTY_CHANNELS, + UpdateOutboundChannels200ResponseData.JSON_PROPERTY_RECORD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateOutboundChannels200ResponseData { + public static final String JSON_PROPERTY_CHANNELS = "channels"; + private Integer channels; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public UpdateOutboundChannels200ResponseData() { + } + + public UpdateOutboundChannels200ResponseData channels(Integer channels) { + this.channels = channels; + return this; + } + + /** + * The number of channels set for the account + * @return channels + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "7", value = "The number of channels set for the account") + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getChannels() { + return channels; + } + + + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setChannels(Integer channels) { + this.channels = channels; + } + + + public UpdateOutboundChannels200ResponseData recordType(String recordType) { + this.recordType = recordType; + return this; + } + + /** + * Identifies the type of the response + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "inbound_channels", value = "Identifies the type of the response") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordType(String recordType) { + this.recordType = recordType; + } + + + /** + * Return true if this updateOutboundChannels_200_response_data object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateOutboundChannels200ResponseData updateOutboundChannels200ResponseData = (UpdateOutboundChannels200ResponseData) o; + return Objects.equals(this.channels, updateOutboundChannels200ResponseData.channels) && + Objects.equals(this.recordType, updateOutboundChannels200ResponseData.recordType); + } + + @Override + public int hashCode() { + return Objects.hash(channels, recordType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateOutboundChannels200ResponseData {\n"); + sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponse.java b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponse.java new file mode 100644 index 00000000..4050695e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponse.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateOutboundChannelsDefaultResponse + */ +@JsonPropertyOrder({ + UpdateOutboundChannelsDefaultResponse.JSON_PROPERTY_ERRORS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateOutboundChannelsDefaultResponse { + public static final String JSON_PROPERTY_ERRORS = "errors"; + private List errors = null; + + public UpdateOutboundChannelsDefaultResponse() { + } + + public UpdateOutboundChannelsDefaultResponse errors(List errors) { + this.errors = errors; + return this; + } + + public UpdateOutboundChannelsDefaultResponse addErrorsItem(UpdateOutboundChannelsDefaultResponseErrorsInner errorsItem) { + if (this.errors == null) { + this.errors = new ArrayList<>(); + } + this.errors.add(errorsItem); + return this; + } + + /** + * Get errors + * @return errors + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getErrors() { + return errors; + } + + + @JsonProperty(JSON_PROPERTY_ERRORS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrors(List errors) { + this.errors = errors; + } + + + /** + * Return true if this updateOutboundChannels_default_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateOutboundChannelsDefaultResponse updateOutboundChannelsDefaultResponse = (UpdateOutboundChannelsDefaultResponse) o; + return Objects.equals(this.errors, updateOutboundChannelsDefaultResponse.errors); + } + + @Override + public int hashCode() { + return Objects.hash(errors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateOutboundChannelsDefaultResponse {\n"); + sb.append(" errors: ").append(toIndentedString(errors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInner.java b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInner.java new file mode 100644 index 00000000..0874c437 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInner.java @@ -0,0 +1,241 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInnerSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateOutboundChannelsDefaultResponseErrorsInner + */ +@JsonPropertyOrder({ + UpdateOutboundChannelsDefaultResponseErrorsInner.JSON_PROPERTY_CODE, + UpdateOutboundChannelsDefaultResponseErrorsInner.JSON_PROPERTY_TITLE, + UpdateOutboundChannelsDefaultResponseErrorsInner.JSON_PROPERTY_DETAIL, + UpdateOutboundChannelsDefaultResponseErrorsInner.JSON_PROPERTY_SOURCE, + UpdateOutboundChannelsDefaultResponseErrorsInner.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateOutboundChannelsDefaultResponseErrorsInner { + public static final String JSON_PROPERTY_CODE = "code"; + private Integer code; + + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_DETAIL = "detail"; + private String detail; + + public static final String JSON_PROPERTY_SOURCE = "source"; + private UpdateOutboundChannelsDefaultResponseErrorsInnerSource source; + + public static final String JSON_PROPERTY_META = "meta"; + private Object meta; + + public UpdateOutboundChannelsDefaultResponseErrorsInner() { + } + + public UpdateOutboundChannelsDefaultResponseErrorsInner code(Integer code) { + this.code = code; + return this; + } + + /** + * Get code + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getCode() { + return code; + } + + + @JsonProperty(JSON_PROPERTY_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCode(Integer code) { + this.code = code; + } + + + public UpdateOutboundChannelsDefaultResponseErrorsInner title(String title) { + this.title = title; + return this; + } + + /** + * Get title + * @return title + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getTitle() { + return title; + } + + + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setTitle(String title) { + this.title = title; + } + + + public UpdateOutboundChannelsDefaultResponseErrorsInner detail(String detail) { + this.detail = detail; + return this; + } + + /** + * Get detail + * @return detail + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDetail() { + return detail; + } + + + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(String detail) { + this.detail = detail; + } + + + public UpdateOutboundChannelsDefaultResponseErrorsInner source(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { + this.source = source; + return this; + } + + /** + * Get source + * @return source + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource getSource() { + return source; + } + + + @JsonProperty(JSON_PROPERTY_SOURCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSource(UpdateOutboundChannelsDefaultResponseErrorsInnerSource source) { + this.source = source; + } + + + public UpdateOutboundChannelsDefaultResponseErrorsInner meta(Object meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(Object meta) { + this.meta = meta; + } + + + /** + * Return true if this updateOutboundChannels_default_response_errors_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateOutboundChannelsDefaultResponseErrorsInner updateOutboundChannelsDefaultResponseErrorsInner = (UpdateOutboundChannelsDefaultResponseErrorsInner) o; + return Objects.equals(this.code, updateOutboundChannelsDefaultResponseErrorsInner.code) && + Objects.equals(this.title, updateOutboundChannelsDefaultResponseErrorsInner.title) && + Objects.equals(this.detail, updateOutboundChannelsDefaultResponseErrorsInner.detail) && + Objects.equals(this.source, updateOutboundChannelsDefaultResponseErrorsInner.source) && + Objects.equals(this.meta, updateOutboundChannelsDefaultResponseErrorsInner.meta); + } + + @Override + public int hashCode() { + return Objects.hash(code, title, detail, source, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateOutboundChannelsDefaultResponseErrorsInner {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.java b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.java new file mode 100644 index 00000000..31948363 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSource.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateOutboundChannelsDefaultResponseErrorsInnerSource + */ +@JsonPropertyOrder({ + UpdateOutboundChannelsDefaultResponseErrorsInnerSource.JSON_PROPERTY_POINTER, + UpdateOutboundChannelsDefaultResponseErrorsInnerSource.JSON_PROPERTY_PARAMETER +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateOutboundChannelsDefaultResponseErrorsInnerSource { + public static final String JSON_PROPERTY_POINTER = "pointer"; + private String pointer; + + public static final String JSON_PROPERTY_PARAMETER = "parameter"; + private String parameter; + + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource() { + } + + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource pointer(String pointer) { + this.pointer = pointer; + return this; + } + + /** + * JSON pointer (RFC6901) to the offending entity. + * @return pointer + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "JSON pointer (RFC6901) to the offending entity.") + @JsonProperty(JSON_PROPERTY_POINTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPointer() { + return pointer; + } + + + @JsonProperty(JSON_PROPERTY_POINTER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPointer(String pointer) { + this.pointer = pointer; + } + + + public UpdateOutboundChannelsDefaultResponseErrorsInnerSource parameter(String parameter) { + this.parameter = parameter; + return this; + } + + /** + * Indicates which query parameter caused the error. + * @return parameter + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Indicates which query parameter caused the error.") + @JsonProperty(JSON_PROPERTY_PARAMETER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getParameter() { + return parameter; + } + + + @JsonProperty(JSON_PROPERTY_PARAMETER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setParameter(String parameter) { + this.parameter = parameter; + } + + + /** + * Return true if this updateOutboundChannels_default_response_errors_inner_source object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateOutboundChannelsDefaultResponseErrorsInnerSource updateOutboundChannelsDefaultResponseErrorsInnerSource = (UpdateOutboundChannelsDefaultResponseErrorsInnerSource) o; + return Objects.equals(this.pointer, updateOutboundChannelsDefaultResponseErrorsInnerSource.pointer) && + Objects.equals(this.parameter, updateOutboundChannelsDefaultResponseErrorsInnerSource.parameter); + } + + @Override + public int hashCode() { + return Objects.hash(pointer, parameter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateOutboundChannelsDefaultResponseErrorsInnerSource {\n"); + sb.append(" pointer: ").append(toIndentedString(pointer)).append("\n"); + sb.append(" parameter: ").append(toIndentedString(parameter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequest.java new file mode 100644 index 00000000..4aa3b7bd --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequest.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdateOutboundChannelsRequest + */ +@JsonPropertyOrder({ + UpdateOutboundChannelsRequest.JSON_PROPERTY_CHANNELS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdateOutboundChannelsRequest { + public static final String JSON_PROPERTY_CHANNELS = "channels"; + private Integer channels; + + public UpdateOutboundChannelsRequest() { + } + + public UpdateOutboundChannelsRequest channels(Integer channels) { + this.channels = channels; + return this; + } + + /** + * The new number of concurrent channels for the account + * @return channels + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "7", required = true, value = "The new number of concurrent channels for the account") + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public Integer getChannels() { + return channels; + } + + + @JsonProperty(JSON_PROPERTY_CHANNELS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setChannels(Integer channels) { + this.channels = channels; + } + + + /** + * Return true if this updateOutboundChannels_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateOutboundChannelsRequest updateOutboundChannelsRequest = (UpdateOutboundChannelsRequest) o; + return Objects.equals(this.channels, updateOutboundChannelsRequest.channels); + } + + @Override + public int hashCode() { + return Objects.hash(channels); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateOutboundChannelsRequest {\n"); + sb.append(" channels: ").append(toIndentedString(channels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdatePhoneNumberRequest.java b/src/main/java/com/telnyx/sdk/model/UpdatePhoneNumberRequest.java index 9c2cc4d9..37a058f5 100644 --- a/src/main/java/com/telnyx/sdk/model/UpdatePhoneNumberRequest.java +++ b/src/main/java/com/telnyx/sdk/model/UpdatePhoneNumberRequest.java @@ -103,6 +103,14 @@ public static NumberLevelRoutingEnum fromValue(String value) { public UpdatePhoneNumberRequest() { } + @JsonCreator + public UpdatePhoneNumberRequest( + @JsonProperty(JSON_PROPERTY_ID) String id + ) { + this(); + this.id = id; + } + /** * Identifies the type of resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200Response.java b/src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200Response.java new file mode 100644 index 00000000..a5a10ee3 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200Response.java @@ -0,0 +1,146 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import com.telnyx.sdk.model.UpdatePortingOrder200ResponseMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdatePortingOrder200Response + */ +@JsonPropertyOrder({ + UpdatePortingOrder200Response.JSON_PROPERTY_DATA, + UpdatePortingOrder200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdatePortingOrder200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private PortingOrder data; + + public static final String JSON_PROPERTY_META = "meta"; + private UpdatePortingOrder200ResponseMeta meta; + + public UpdatePortingOrder200Response() { + } + + public UpdatePortingOrder200Response data(PortingOrder data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PortingOrder getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(PortingOrder data) { + this.data = data; + } + + + public UpdatePortingOrder200Response meta(UpdatePortingOrder200ResponseMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UpdatePortingOrder200ResponseMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(UpdatePortingOrder200ResponseMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this updatePortingOrder_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdatePortingOrder200Response updatePortingOrder200Response = (UpdatePortingOrder200Response) o; + return Objects.equals(this.data, updatePortingOrder200Response.data) && + Objects.equals(this.meta, updatePortingOrder200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePortingOrder200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMeta.java b/src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMeta.java new file mode 100644 index 00000000..30a16dd9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMeta.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdatePortingOrder200ResponseMeta + */ +@JsonPropertyOrder({ + UpdatePortingOrder200ResponseMeta.JSON_PROPERTY_PHONE_NUMBERS_URL +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdatePortingOrder200ResponseMeta { + public static final String JSON_PROPERTY_PHONE_NUMBERS_URL = "phone_numbers_url"; + private String phoneNumbersUrl; + + public UpdatePortingOrder200ResponseMeta() { + } + + public UpdatePortingOrder200ResponseMeta phoneNumbersUrl(String phoneNumbersUrl) { + this.phoneNumbersUrl = phoneNumbersUrl; + return this; + } + + /** + * Link to list all phone numbers + * @return phoneNumbersUrl + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Link to list all phone numbers") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPhoneNumbersUrl() { + return phoneNumbersUrl; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS_URL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumbersUrl(String phoneNumbersUrl) { + this.phoneNumbersUrl = phoneNumbersUrl; + } + + + /** + * Return true if this updatePortingOrder_200_response_meta object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdatePortingOrder200ResponseMeta updatePortingOrder200ResponseMeta = (UpdatePortingOrder200ResponseMeta) o; + return Objects.equals(this.phoneNumbersUrl, updatePortingOrder200ResponseMeta.phoneNumbersUrl); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumbersUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePortingOrder200ResponseMeta {\n"); + sb.append(" phoneNumbersUrl: ").append(toIndentedString(phoneNumbersUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdatePortoutRequestRequest.java b/src/main/java/com/telnyx/sdk/model/UpdatePortoutRequestRequest.java new file mode 100644 index 00000000..75e2a6bf --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UpdatePortoutRequestRequest.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UpdatePortoutRequestRequest + */ +@JsonPropertyOrder({ + UpdatePortoutRequestRequest.JSON_PROPERTY_REASON +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UpdatePortoutRequestRequest { + public static final String JSON_PROPERTY_REASON = "reason"; + private String reason; + + public UpdatePortoutRequestRequest() { + } + + public UpdatePortoutRequestRequest reason(String reason) { + this.reason = reason; + return this; + } + + /** + * Provide a reason if rejecting the port out request + * @return reason + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "I do not recognize this transaction", value = "Provide a reason if rejecting the port out request") + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReason() { + return reason; + } + + + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReason(String reason) { + this.reason = reason; + } + + + /** + * Return true if this updatePortoutRequest_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdatePortoutRequestRequest updatePortoutRequestRequest = (UpdatePortoutRequestRequest) o; + return Objects.equals(this.reason, updatePortoutRequestRequest.reason); + } + + @Override + public int hashCode() { + return Objects.hash(reason); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdatePortoutRequestRequest {\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UpdateTexmlApplicationRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateTexmlApplicationRequest.java index 2a5d1a05..1d0c9d37 100644 --- a/src/main/java/com/telnyx/sdk/model/UpdateTexmlApplicationRequest.java +++ b/src/main/java/com/telnyx/sdk/model/UpdateTexmlApplicationRequest.java @@ -74,7 +74,7 @@ public class UpdateTexmlApplicationRequest { private String voiceUrl; public static final String JSON_PROPERTY_VOICE_FALLBACK_URL = "voice_fallback_url"; - private String voiceFallbackUrl = "null"; + private String voiceFallbackUrl; /** * HTTP request method Telnyx will use to interact with your XML Translator webhooks. Either 'get' or 'post'. @@ -115,7 +115,7 @@ public static VoiceMethodEnum fromValue(String value) { private VoiceMethodEnum voiceMethod = VoiceMethodEnum.POST; public static final String JSON_PROPERTY_STATUS_CALLBACK = "status_callback"; - private String statusCallback = "null"; + private String statusCallback; /** * HTTP request method Telnyx should use when requesting the status_callback URL. diff --git a/src/main/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequest.java b/src/main/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequest.java index 97e522c4..850c9115 100644 --- a/src/main/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequest.java +++ b/src/main/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequest.java @@ -22,8 +22,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.CallReasons; -import com.telnyx.sdk.model.PhoneNumbers; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; @@ -40,15 +38,15 @@ @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") public class UpdateVerifiedCallsDisplayProfileRequest { public static final String JSON_PROPERTY_CALL_REASONS = "call_reasons"; - private CallReasons callReasons = null; + private String callReasons = null; public static final String JSON_PROPERTY_PHONE_NUMBERS = "phone_numbers"; - private PhoneNumbers phoneNumbers = null; + private String phoneNumbers = null; public UpdateVerifiedCallsDisplayProfileRequest() { } - public UpdateVerifiedCallsDisplayProfileRequest callReasons(CallReasons callReasons) { + public UpdateVerifiedCallsDisplayProfileRequest callReasons(String callReasons) { this.callReasons = callReasons; return this; } @@ -62,19 +60,19 @@ public UpdateVerifiedCallsDisplayProfileRequest callReasons(CallReasons callReas @JsonProperty(JSON_PROPERTY_CALL_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public CallReasons getCallReasons() { + public String getCallReasons() { return callReasons; } @JsonProperty(JSON_PROPERTY_CALL_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallReasons(CallReasons callReasons) { + public void setCallReasons(String callReasons) { this.callReasons = callReasons; } - public UpdateVerifiedCallsDisplayProfileRequest phoneNumbers(PhoneNumbers phoneNumbers) { + public UpdateVerifiedCallsDisplayProfileRequest phoneNumbers(String phoneNumbers) { this.phoneNumbers = phoneNumbers; return this; } @@ -88,14 +86,14 @@ public UpdateVerifiedCallsDisplayProfileRequest phoneNumbers(PhoneNumbers phoneN @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public PhoneNumbers getPhoneNumbers() { + public String getPhoneNumbers() { return phoneNumbers; } @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhoneNumbers(PhoneNumbers phoneNumbers) { + public void setPhoneNumbers(String phoneNumbers) { this.phoneNumbers = phoneNumbers; } diff --git a/src/main/java/com/telnyx/sdk/model/UploadMedia.java b/src/main/java/com/telnyx/sdk/model/UploadMedia.java index dcbc90d1..361279cc 100644 --- a/src/main/java/com/telnyx/sdk/model/UploadMedia.java +++ b/src/main/java/com/telnyx/sdk/model/UploadMedia.java @@ -79,7 +79,7 @@ public void setData(List data) { /** - * Return true if this Upload_Media object is equal to o. + * Return true if this Upload_Media_ object is equal to o. */ @Override public boolean equals(Object o) { diff --git a/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201Response.java b/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201Response.java new file mode 100644 index 00000000..913576a8 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrderDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UploadPortingOrderDocuments201Response + */ +@JsonPropertyOrder({ + UploadPortingOrderDocuments201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UploadPortingOrderDocuments201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public UploadPortingOrderDocuments201Response() { + } + + public UploadPortingOrderDocuments201Response data(List data) { + this.data = data; + return this; + } + + public UploadPortingOrderDocuments201Response addDataItem(PortingOrderDocument dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this uploadPortingOrderDocuments_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UploadPortingOrderDocuments201Response uploadPortingOrderDocuments201Response = (UploadPortingOrderDocuments201Response) o; + return Objects.equals(this.data, uploadPortingOrderDocuments201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadPortingOrderDocuments201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequest.java b/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequest.java new file mode 100644 index 00000000..d9d0f92e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequest.java @@ -0,0 +1,120 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UploadPortingOrderDocumentsRequestDocumentsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UploadPortingOrderDocumentsRequest + */ +@JsonPropertyOrder({ + UploadPortingOrderDocumentsRequest.JSON_PROPERTY_DOCUMENTS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UploadPortingOrderDocumentsRequest { + public static final String JSON_PROPERTY_DOCUMENTS = "documents"; + private List documents = new ArrayList<>(); + + public UploadPortingOrderDocumentsRequest() { + } + + public UploadPortingOrderDocumentsRequest documents(List documents) { + this.documents = documents; + return this; + } + + public UploadPortingOrderDocumentsRequest addDocumentsItem(UploadPortingOrderDocumentsRequestDocumentsInner documentsItem) { + this.documents.add(documentsItem); + return this; + } + + /** + * A list of documents to be associated with a porting order. + * @return documents + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of documents to be associated with a porting order.") + @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getDocuments() { + return documents; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENTS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDocuments(List documents) { + this.documents = documents; + } + + + /** + * Return true if this uploadPortingOrderDocuments_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UploadPortingOrderDocumentsRequest uploadPortingOrderDocumentsRequest = (UploadPortingOrderDocumentsRequest) o; + return Objects.equals(this.documents, uploadPortingOrderDocumentsRequest.documents); + } + + @Override + public int hashCode() { + return Objects.hash(documents); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadPortingOrderDocumentsRequest {\n"); + sb.append(" documents: ").append(toIndentedString(documents)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInner.java b/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInner.java new file mode 100644 index 00000000..e0e0a002 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInner.java @@ -0,0 +1,181 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * UploadPortingOrderDocumentsRequestDocumentsInner + */ +@JsonPropertyOrder({ + UploadPortingOrderDocumentsRequestDocumentsInner.JSON_PROPERTY_DOCUMENT_TYPE, + UploadPortingOrderDocumentsRequestDocumentsInner.JSON_PROPERTY_DOCUMENT_ID +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class UploadPortingOrderDocumentsRequestDocumentsInner { + /** + * The type of the document. + */ + public enum DocumentTypeEnum { + LOA("loa"), + + INVOICE("invoice"), + + OTHER("other"); + + private String value; + + DocumentTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DocumentTypeEnum fromValue(String value) { + for (DocumentTypeEnum b : DocumentTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_DOCUMENT_TYPE = "document_type"; + private DocumentTypeEnum documentType; + + public static final String JSON_PROPERTY_DOCUMENT_ID = "document_id"; + private String documentId; + + public UploadPortingOrderDocumentsRequestDocumentsInner() { + } + + public UploadPortingOrderDocumentsRequestDocumentsInner documentType(DocumentTypeEnum documentType) { + this.documentType = documentType; + return this; + } + + /** + * The type of the document. + * @return documentType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "loa", required = true, value = "The type of the document.") + @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public DocumentTypeEnum getDocumentType() { + return documentType; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDocumentType(DocumentTypeEnum documentType) { + this.documentType = documentType; + } + + + public UploadPortingOrderDocumentsRequestDocumentsInner documentId(String documentId) { + this.documentId = documentId; + return this; + } + + /** + * Uniquely identifies a document uploaded via the <code><a href=\"https://developers.telnyx.com/docs/api/v2/documents/Documents#createDocument\">/v2/documents</a></code> endpoint. + * @return documentId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "5f940c35-ef28-4408-bb95-af73b047d589", required = true, value = "Uniquely identifies a document uploaded via the /v2/documents endpoint.") + @JsonProperty(JSON_PROPERTY_DOCUMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getDocumentId() { + return documentId; + } + + + @JsonProperty(JSON_PROPERTY_DOCUMENT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setDocumentId(String documentId) { + this.documentId = documentId; + } + + + /** + * Return true if this uploadPortingOrderDocuments_request_documents_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UploadPortingOrderDocumentsRequestDocumentsInner uploadPortingOrderDocumentsRequestDocumentsInner = (UploadPortingOrderDocumentsRequestDocumentsInner) o; + return Objects.equals(this.documentType, uploadPortingOrderDocumentsRequestDocumentsInner.documentType) && + Objects.equals(this.documentId, uploadPortingOrderDocumentsRequestDocumentsInner.documentId); + } + + @Override + public int hashCode() { + return Objects.hash(documentType, documentId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadPortingOrderDocumentsRequestDocumentsInner {\n"); + sb.append(" documentType: ").append(toIndentedString(documentType)).append("\n"); + sb.append(" documentId: ").append(toIndentedString(documentId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ValidateAddressResult.java b/src/main/java/com/telnyx/sdk/model/ValidateAddressResult.java index 58874d4f..c063a839 100644 --- a/src/main/java/com/telnyx/sdk/model/ValidateAddressResult.java +++ b/src/main/java/com/telnyx/sdk/model/ValidateAddressResult.java @@ -23,7 +23,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Error; -import com.telnyx.sdk.model.ValidateAddress; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; @@ -82,7 +81,7 @@ public static ResultEnum fromValue(String value) { private ResultEnum result; public static final String JSON_PROPERTY_SUGGESTED = "suggested"; - private ValidateAddress suggested; + private String suggested; public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; private String recordType; @@ -119,7 +118,7 @@ public void setResult(ResultEnum result) { } - public ValidateAddressResult suggested(ValidateAddress suggested) { + public ValidateAddressResult suggested(String suggested) { this.suggested = suggested; return this; } @@ -133,14 +132,14 @@ public ValidateAddressResult suggested(ValidateAddress suggested) { @JsonProperty(JSON_PROPERTY_SUGGESTED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public ValidateAddress getSuggested() { + public String getSuggested() { return suggested; } @JsonProperty(JSON_PROPERTY_SUGGESTED) @JsonInclude(value = JsonInclude.Include.ALWAYS) - public void setSuggested(ValidateAddress suggested) { + public void setSuggested(String suggested) { this.suggested = suggested; } diff --git a/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfile.java b/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfile.java index d18b3a89..d318bfa7 100644 --- a/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfile.java +++ b/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfile.java @@ -23,8 +23,8 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.VerifiedCallsDisplayProfileBusinessIdentity; -import com.telnyx.sdk.model.VerifiedCallsDisplayProfileCallReasons; -import com.telnyx.sdk.model.VerifiedCallsDisplayProfilePhoneNumbers; +import com.telnyx.sdk.model.VerifiedCallsDisplayProfileCallReasonsInner; +import com.telnyx.sdk.model.VerifiedCallsDisplayProfilePhoneNumbersInner; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; @@ -115,10 +115,10 @@ public static StatusEnum fromValue(String value) { private VerifiedCallsDisplayProfileBusinessIdentity businessIdentity; public static final String JSON_PROPERTY_PHONE_NUMBERS = "phone_numbers"; - private List phoneNumbers = null; + private List phoneNumbers = null; public static final String JSON_PROPERTY_CALL_REASONS = "call_reasons"; - private List callReasons = null; + private List callReasons = null; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private String createdAt; @@ -129,6 +129,22 @@ public static StatusEnum fromValue(String value) { public VerifiedCallsDisplayProfile() { } + @JsonCreator + public VerifiedCallsDisplayProfile( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_STATUS) StatusEnum status, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.recordType = recordType; + this.id = id; + this.status = status; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Get recordType * @return recordType @@ -281,12 +297,12 @@ public void setBusinessIdentity(VerifiedCallsDisplayProfileBusinessIdentity busi } - public VerifiedCallsDisplayProfile phoneNumbers(List phoneNumbers) { + public VerifiedCallsDisplayProfile phoneNumbers(List phoneNumbers) { this.phoneNumbers = phoneNumbers; return this; } - public VerifiedCallsDisplayProfile addPhoneNumbersItem(VerifiedCallsDisplayProfilePhoneNumbers phoneNumbersItem) { + public VerifiedCallsDisplayProfile addPhoneNumbersItem(VerifiedCallsDisplayProfilePhoneNumbersInner phoneNumbersItem) { if (this.phoneNumbers == null) { this.phoneNumbers = new ArrayList<>(); } @@ -303,24 +319,24 @@ public VerifiedCallsDisplayProfile addPhoneNumbersItem(VerifiedCallsDisplayProfi @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getPhoneNumbers() { + public List getPhoneNumbers() { return phoneNumbers; } @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setPhoneNumbers(List phoneNumbers) { + public void setPhoneNumbers(List phoneNumbers) { this.phoneNumbers = phoneNumbers; } - public VerifiedCallsDisplayProfile callReasons(List callReasons) { + public VerifiedCallsDisplayProfile callReasons(List callReasons) { this.callReasons = callReasons; return this; } - public VerifiedCallsDisplayProfile addCallReasonsItem(VerifiedCallsDisplayProfileCallReasons callReasonsItem) { + public VerifiedCallsDisplayProfile addCallReasonsItem(VerifiedCallsDisplayProfileCallReasonsInner callReasonsItem) { if (this.callReasons == null) { this.callReasons = new ArrayList<>(); } @@ -337,14 +353,14 @@ public VerifiedCallsDisplayProfile addCallReasonsItem(VerifiedCallsDisplayProfil @JsonProperty(JSON_PROPERTY_CALL_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public List getCallReasons() { + public List getCallReasons() { return callReasons; } @JsonProperty(JSON_PROPERTY_CALL_REASONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public void setCallReasons(List callReasons) { + public void setCallReasons(List callReasons) { this.callReasons = callReasons; } diff --git a/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInner.java b/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInner.java new file mode 100644 index 00000000..f2a22db9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInner.java @@ -0,0 +1,313 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * The Call Reason to be displayed to the call recipient + */ +@ApiModel(description = "The Call Reason to be displayed to the call recipient") +@JsonPropertyOrder({ + VerifiedCallsDisplayProfileCallReasonsInner.JSON_PROPERTY_RECORD_TYPE, + VerifiedCallsDisplayProfileCallReasonsInner.JSON_PROPERTY_ID, + VerifiedCallsDisplayProfileCallReasonsInner.JSON_PROPERTY_REASON, + VerifiedCallsDisplayProfileCallReasonsInner.JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS, + VerifiedCallsDisplayProfileCallReasonsInner.JSON_PROPERTY_GOOGLE_APPROVAL_INFO, + VerifiedCallsDisplayProfileCallReasonsInner.JSON_PROPERTY_DISPLAY_PROFILE_ID, + VerifiedCallsDisplayProfileCallReasonsInner.JSON_PROPERTY_DELETE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VerifiedCallsDisplayProfileCallReasonsInner { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_REASON = "reason"; + private String reason; + + /** + * The approval status of this individual call reason in Google + */ + public enum GoogleVerificationStatusEnum { + STATE_UNSPECIFIED("STATE_UNSPECIFIED"), + + PENDING_APPROVAL("PENDING_APPROVAL"), + + APPROVED("APPROVED"), + + DENIED("DENIED"), + + PENDING_REMOVAL("PENDING_REMOVAL"); + + private String value; + + GoogleVerificationStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static GoogleVerificationStatusEnum fromValue(String value) { + for (GoogleVerificationStatusEnum b : GoogleVerificationStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS = "google_verification_status"; + private GoogleVerificationStatusEnum googleVerificationStatus; + + public static final String JSON_PROPERTY_GOOGLE_APPROVAL_INFO = "google_approval_info"; + private String googleApprovalInfo; + + public static final String JSON_PROPERTY_DISPLAY_PROFILE_ID = "display_profile_id"; + private UUID displayProfileId; + + public static final String JSON_PROPERTY_DELETE = "delete"; + private Boolean delete; + + public VerifiedCallsDisplayProfileCallReasonsInner() { + } + + @JsonCreator + public VerifiedCallsDisplayProfileCallReasonsInner( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS) GoogleVerificationStatusEnum googleVerificationStatus, + @JsonProperty(JSON_PROPERTY_GOOGLE_APPROVAL_INFO) String googleApprovalInfo, + @JsonProperty(JSON_PROPERTY_DISPLAY_PROFILE_ID) UUID displayProfileId + ) { + this(); + this.recordType = recordType; + this.id = id; + this.googleVerificationStatus = googleVerificationStatus; + this.googleApprovalInfo = googleApprovalInfo; + this.displayProfileId = displayProfileId; + } + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "phone_number", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "c6feda4e-6501-4db9-a21f-665e5b4ce2ba", value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + public VerifiedCallsDisplayProfileCallReasonsInner reason(String reason) { + this.reason = reason; + return this; + } + + /** + * The Call Reason text to be displayed to the call recipient + * @return reason + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Your order was completed", value = "The Call Reason text to be displayed to the call recipient") + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReason() { + return reason; + } + + + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReason(String reason) { + this.reason = reason; + } + + + /** + * The approval status of this individual call reason in Google + * @return googleVerificationStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The approval status of this individual call reason in Google") + @JsonProperty(JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public GoogleVerificationStatusEnum getGoogleVerificationStatus() { + return googleVerificationStatus; + } + + + + + /** + * Additional information about the decision, if available. + * @return googleApprovalInfo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Additional information about the decision, if available.") + @JsonProperty(JSON_PROPERTY_GOOGLE_APPROVAL_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getGoogleApprovalInfo() { + return googleApprovalInfo; + } + + + + + /** + * Get displayProfileId + * @return displayProfileId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "c6feda4e-6501-4db9-a21f-665e5b4ce2ba", value = "") + @JsonProperty(JSON_PROPERTY_DISPLAY_PROFILE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getDisplayProfileId() { + return displayProfileId; + } + + + + + public VerifiedCallsDisplayProfileCallReasonsInner delete(Boolean delete) { + this.delete = delete; + return this; + } + + /** + * Marks the Phone Number to be removed from the Display Profile + * @return delete + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Marks the Phone Number to be removed from the Display Profile") + @JsonProperty(JSON_PROPERTY_DELETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getDelete() { + return delete; + } + + + @JsonProperty(JSON_PROPERTY_DELETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDelete(Boolean delete) { + this.delete = delete; + } + + + /** + * Return true if this VerifiedCallsDisplayProfile_call_reasons_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VerifiedCallsDisplayProfileCallReasonsInner verifiedCallsDisplayProfileCallReasonsInner = (VerifiedCallsDisplayProfileCallReasonsInner) o; + return Objects.equals(this.recordType, verifiedCallsDisplayProfileCallReasonsInner.recordType) && + Objects.equals(this.id, verifiedCallsDisplayProfileCallReasonsInner.id) && + Objects.equals(this.reason, verifiedCallsDisplayProfileCallReasonsInner.reason) && + Objects.equals(this.googleVerificationStatus, verifiedCallsDisplayProfileCallReasonsInner.googleVerificationStatus) && + Objects.equals(this.googleApprovalInfo, verifiedCallsDisplayProfileCallReasonsInner.googleApprovalInfo) && + Objects.equals(this.displayProfileId, verifiedCallsDisplayProfileCallReasonsInner.displayProfileId) && + Objects.equals(this.delete, verifiedCallsDisplayProfileCallReasonsInner.delete); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, id, reason, googleVerificationStatus, googleApprovalInfo, displayProfileId, delete); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VerifiedCallsDisplayProfileCallReasonsInner {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" googleVerificationStatus: ").append(toIndentedString(googleVerificationStatus)).append("\n"); + sb.append(" googleApprovalInfo: ").append(toIndentedString(googleApprovalInfo)).append("\n"); + sb.append(" displayProfileId: ").append(toIndentedString(displayProfileId)).append("\n"); + sb.append(" delete: ").append(toIndentedString(delete)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInner.java b/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInner.java new file mode 100644 index 00000000..3ad1f2d1 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInner.java @@ -0,0 +1,313 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * A Phone Number that can make phone calls displaying the configured brand information + */ +@ApiModel(description = "A Phone Number that can make phone calls displaying the configured brand information") +@JsonPropertyOrder({ + VerifiedCallsDisplayProfilePhoneNumbersInner.JSON_PROPERTY_RECORD_TYPE, + VerifiedCallsDisplayProfilePhoneNumbersInner.JSON_PROPERTY_ID, + VerifiedCallsDisplayProfilePhoneNumbersInner.JSON_PROPERTY_PHONE_NUMBER, + VerifiedCallsDisplayProfilePhoneNumbersInner.JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS, + VerifiedCallsDisplayProfilePhoneNumbersInner.JSON_PROPERTY_GOOGLE_APPROVAL_INFO, + VerifiedCallsDisplayProfilePhoneNumbersInner.JSON_PROPERTY_DISPLAY_PROFILE_ID, + VerifiedCallsDisplayProfilePhoneNumbersInner.JSON_PROPERTY_DELETE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VerifiedCallsDisplayProfilePhoneNumbersInner { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_PHONE_NUMBER = "phone_number"; + private String phoneNumber; + + /** + * The approval status of this individual phone number in Google + */ + public enum GoogleVerificationStatusEnum { + STATE_UNSPECIFIED("STATE_UNSPECIFIED"), + + PENDING_APPROVAL("PENDING_APPROVAL"), + + APPROVED("APPROVED"), + + DENIED("DENIED"), + + PENDING_REMOVAL("PENDING_REMOVAL"); + + private String value; + + GoogleVerificationStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static GoogleVerificationStatusEnum fromValue(String value) { + for (GoogleVerificationStatusEnum b : GoogleVerificationStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS = "google_verification_status"; + private GoogleVerificationStatusEnum googleVerificationStatus; + + public static final String JSON_PROPERTY_GOOGLE_APPROVAL_INFO = "google_approval_info"; + private String googleApprovalInfo; + + public static final String JSON_PROPERTY_DISPLAY_PROFILE_ID = "display_profile_id"; + private UUID displayProfileId; + + public static final String JSON_PROPERTY_DELETE = "delete"; + private Boolean delete; + + public VerifiedCallsDisplayProfilePhoneNumbersInner() { + } + + @JsonCreator + public VerifiedCallsDisplayProfilePhoneNumbersInner( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS) GoogleVerificationStatusEnum googleVerificationStatus, + @JsonProperty(JSON_PROPERTY_GOOGLE_APPROVAL_INFO) String googleApprovalInfo, + @JsonProperty(JSON_PROPERTY_DISPLAY_PROFILE_ID) UUID displayProfileId + ) { + this(); + this.recordType = recordType; + this.id = id; + this.googleVerificationStatus = googleVerificationStatus; + this.googleApprovalInfo = googleApprovalInfo; + this.displayProfileId = displayProfileId; + } + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "phone_number", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "c6feda4e-6501-4db9-a21f-665e5b4ce2ba", value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + public VerifiedCallsDisplayProfilePhoneNumbersInner phoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + return this; + } + + /** + * The phone number in e164 format + * @return phoneNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "+15001340938", value = "The phone number in e164 format") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPhoneNumber() { + return phoneNumber; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPhoneNumber(String phoneNumber) { + this.phoneNumber = phoneNumber; + } + + + /** + * The approval status of this individual phone number in Google + * @return googleVerificationStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The approval status of this individual phone number in Google") + @JsonProperty(JSON_PROPERTY_GOOGLE_VERIFICATION_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public GoogleVerificationStatusEnum getGoogleVerificationStatus() { + return googleVerificationStatus; + } + + + + + /** + * Additional information about the decision, if available. + * @return googleApprovalInfo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Additional information about the decision, if available.") + @JsonProperty(JSON_PROPERTY_GOOGLE_APPROVAL_INFO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getGoogleApprovalInfo() { + return googleApprovalInfo; + } + + + + + /** + * Get displayProfileId + * @return displayProfileId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "c6feda4e-6501-4db9-a21f-665e5b4ce2ba", value = "") + @JsonProperty(JSON_PROPERTY_DISPLAY_PROFILE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getDisplayProfileId() { + return displayProfileId; + } + + + + + public VerifiedCallsDisplayProfilePhoneNumbersInner delete(Boolean delete) { + this.delete = delete; + return this; + } + + /** + * Marks the Phone Number to be removed from the Display Profile + * @return delete + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Marks the Phone Number to be removed from the Display Profile") + @JsonProperty(JSON_PROPERTY_DELETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getDelete() { + return delete; + } + + + @JsonProperty(JSON_PROPERTY_DELETE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDelete(Boolean delete) { + this.delete = delete; + } + + + /** + * Return true if this VerifiedCallsDisplayProfile_phone_numbers_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VerifiedCallsDisplayProfilePhoneNumbersInner verifiedCallsDisplayProfilePhoneNumbersInner = (VerifiedCallsDisplayProfilePhoneNumbersInner) o; + return Objects.equals(this.recordType, verifiedCallsDisplayProfilePhoneNumbersInner.recordType) && + Objects.equals(this.id, verifiedCallsDisplayProfilePhoneNumbersInner.id) && + Objects.equals(this.phoneNumber, verifiedCallsDisplayProfilePhoneNumbersInner.phoneNumber) && + Objects.equals(this.googleVerificationStatus, verifiedCallsDisplayProfilePhoneNumbersInner.googleVerificationStatus) && + Objects.equals(this.googleApprovalInfo, verifiedCallsDisplayProfilePhoneNumbersInner.googleApprovalInfo) && + Objects.equals(this.displayProfileId, verifiedCallsDisplayProfilePhoneNumbersInner.displayProfileId) && + Objects.equals(this.delete, verifiedCallsDisplayProfilePhoneNumbersInner.delete); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, id, phoneNumber, googleVerificationStatus, googleApprovalInfo, displayProfileId, delete); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VerifiedCallsDisplayProfilePhoneNumbersInner {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" phoneNumber: ").append(toIndentedString(phoneNumber)).append("\n"); + sb.append(" googleVerificationStatus: ").append(toIndentedString(googleVerificationStatus)).append("\n"); + sb.append(" googleApprovalInfo: ").append(toIndentedString(googleApprovalInfo)).append("\n"); + sb.append(" displayProfileId: ").append(toIndentedString(displayProfileId)).append("\n"); + sb.append(" delete: ").append(toIndentedString(delete)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201Response.java b/src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201Response.java new file mode 100644 index 00000000..786045eb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201Response.java @@ -0,0 +1,123 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerServiceRequestPhoneNumberCoverage; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VerifyPhoneNumberCoverage201Response + */ +@JsonPropertyOrder({ + VerifyPhoneNumberCoverage201Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VerifyPhoneNumberCoverage201Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public VerifyPhoneNumberCoverage201Response() { + } + + public VerifyPhoneNumberCoverage201Response data(List data) { + this.data = data; + return this; + } + + public VerifyPhoneNumberCoverage201Response addDataItem(CustomerServiceRequestPhoneNumberCoverage dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + /** + * Return true if this verifyPhoneNumberCoverage_201_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VerifyPhoneNumberCoverage201Response verifyPhoneNumberCoverage201Response = (VerifyPhoneNumberCoverage201Response) o; + return Objects.equals(this.data, verifyPhoneNumberCoverage201Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VerifyPhoneNumberCoverage201Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequest.java b/src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequest.java new file mode 100644 index 00000000..250c40d7 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequest.java @@ -0,0 +1,119 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VerifyPhoneNumberCoverageRequest + */ +@JsonPropertyOrder({ + VerifyPhoneNumberCoverageRequest.JSON_PROPERTY_PHONE_NUMBERS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VerifyPhoneNumberCoverageRequest { + public static final String JSON_PROPERTY_PHONE_NUMBERS = "phone_numbers"; + private List phoneNumbers = new ArrayList<>(); + + public VerifyPhoneNumberCoverageRequest() { + } + + public VerifyPhoneNumberCoverageRequest phoneNumbers(List phoneNumbers) { + this.phoneNumbers = phoneNumbers; + return this; + } + + public VerifyPhoneNumberCoverageRequest addPhoneNumbersItem(String phoneNumbersItem) { + this.phoneNumbers.add(phoneNumbersItem); + return this; + } + + /** + * The phone numbers list to be verified. + * @return phoneNumbers + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The phone numbers list to be verified.") + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public List getPhoneNumbers() { + return phoneNumbers; + } + + + @JsonProperty(JSON_PROPERTY_PHONE_NUMBERS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPhoneNumbers(List phoneNumbers) { + this.phoneNumbers = phoneNumbers; + } + + + /** + * Return true if this verifyPhoneNumberCoverage_request object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VerifyPhoneNumberCoverageRequest verifyPhoneNumberCoverageRequest = (VerifyPhoneNumberCoverageRequest) o; + return Objects.equals(this.phoneNumbers, verifyPhoneNumberCoverageRequest.phoneNumbers); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumbers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VerifyPhoneNumberCoverageRequest {\n"); + sb.append(" phoneNumbers: ").append(toIndentedString(phoneNumbers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/Video1.java b/src/main/java/com/telnyx/sdk/model/Video1.java new file mode 100644 index 00000000..2a6bf96e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/Video1.java @@ -0,0 +1,178 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Video; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * Contains the media object for this video. + */ +@ApiModel(description = "Contains the media object for this video.") +@JsonPropertyOrder({ + Video1.JSON_PROPERTY_ID, + Video1.JSON_PROPERTY_LINK, + Video1.JSON_PROPERTY_CAPTION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class Video1 { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_LINK = "link"; + private String link; + + public static final String JSON_PROPERTY_CAPTION = "caption"; + private String caption; + + public Video1() { + } + + public Video1 id(String id) { + this.id = id; + return this; + } + + /** + * The media object ID returned when the media is successfully uploaded to the media endpoint. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "f043afd0-f0ae-4b9c-ab3d-696fb4c8cd68", value = "The media object ID returned when the media is successfully uploaded to the media endpoint.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public Video1 link(String link) { + this.link = link; + return this; + } + + /** + * The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both. + * @return link + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "http://www.example.com/file", value = "The protocol and URL of the media to be sent. Use only with HTTP/HTTPS URLs. Either id or link must be provided, not both.") + @JsonProperty(JSON_PROPERTY_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLink() { + return link; + } + + + @JsonProperty(JSON_PROPERTY_LINK) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLink(String link) { + this.link = link; + } + + + public Video1 caption(String caption) { + this.caption = caption; + return this; + } + + /** + * Describes the specified media. + * @return caption + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "My cool media!", value = "Describes the specified media.") + @JsonProperty(JSON_PROPERTY_CAPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCaption() { + return caption; + } + + + @JsonProperty(JSON_PROPERTY_CAPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCaption(String caption) { + this.caption = caption; + } + + + /** + * Return true if this Video_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Video1 video1 = (Video1) o; + return Objects.equals(this.id, video1.id) && + Objects.equals(this.link, video1.link) && + Objects.equals(this.caption, video1.caption); + } + + @Override + public int hashCode() { + return Objects.hash(id, link, caption); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Video1 {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" caption: ").append(toIndentedString(caption)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ViewRoomParticipant200Response.java b/src/main/java/com/telnyx/sdk/model/ViewRoomParticipant200Response.java new file mode 100644 index 00000000..44f7f51d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ViewRoomParticipant200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomParticipant; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ViewRoomParticipant200Response + */ +@JsonPropertyOrder({ + ViewRoomParticipant200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ViewRoomParticipant200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private RoomParticipant data; + + public ViewRoomParticipant200Response() { + } + + public ViewRoomParticipant200Response data(RoomParticipant data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RoomParticipant getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(RoomParticipant data) { + this.data = data; + } + + + /** + * Return true if this ViewRoomParticipant_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewRoomParticipant200Response viewRoomParticipant200Response = (ViewRoomParticipant200Response) o; + return Objects.equals(this.data, viewRoomParticipant200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewRoomParticipant200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ViewRoomRecording200Response.java b/src/main/java/com/telnyx/sdk/model/ViewRoomRecording200Response.java new file mode 100644 index 00000000..78bfb2d4 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ViewRoomRecording200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomRecording; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ViewRoomRecording200Response + */ +@JsonPropertyOrder({ + ViewRoomRecording200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ViewRoomRecording200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private RoomRecording data; + + public ViewRoomRecording200Response() { + } + + public ViewRoomRecording200Response data(RoomRecording data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RoomRecording getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(RoomRecording data) { + this.data = data; + } + + + /** + * Return true if this ViewRoomRecording_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewRoomRecording200Response viewRoomRecording200Response = (ViewRoomRecording200Response) o; + return Objects.equals(this.data, viewRoomRecording200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewRoomRecording200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/ViewRoomSession200Response.java b/src/main/java/com/telnyx/sdk/model/ViewRoomSession200Response.java new file mode 100644 index 00000000..3d1b164c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/ViewRoomSession200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomSession; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * ViewRoomSession200Response + */ +@JsonPropertyOrder({ + ViewRoomSession200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class ViewRoomSession200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private RoomSession data; + + public ViewRoomSession200Response() { + } + + public ViewRoomSession200Response data(RoomSession data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RoomSession getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(RoomSession data) { + this.data = data; + } + + + /** + * Return true if this ViewRoomSession_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ViewRoomSession200Response viewRoomSession200Response = (ViewRoomSession200Response) o; + return Objects.equals(this.data, viewRoomSession200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ViewRoomSession200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectList200Response.java b/src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectList200Response.java new file mode 100644 index 00000000..805ab933 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.VirtualCrossConnectCombined; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtaulCrossConnectList200Response + */ +@JsonPropertyOrder({ + VirtaulCrossConnectList200Response.JSON_PROPERTY_DATA, + VirtaulCrossConnectList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtaulCrossConnectList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public VirtaulCrossConnectList200Response() { + } + + public VirtaulCrossConnectList200Response data(List data) { + this.data = data; + return this; + } + + public VirtaulCrossConnectList200Response addDataItem(VirtualCrossConnectCombined dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public VirtaulCrossConnectList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this VirtaulCrossConnectList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtaulCrossConnectList200Response virtaulCrossConnectList200Response = (VirtaulCrossConnectList200Response) o; + return Objects.equals(this.data, virtaulCrossConnectList200Response.data) && + Objects.equals(this.meta, virtaulCrossConnectList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtaulCrossConnectList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200Response.java b/src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200Response.java new file mode 100644 index 00000000..7062e98a --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.VirtualCrossConnectRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtaulCrossConnectRegionList200Response + */ +@JsonPropertyOrder({ + VirtaulCrossConnectRegionList200Response.JSON_PROPERTY_DATA, + VirtaulCrossConnectRegionList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtaulCrossConnectRegionList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public VirtaulCrossConnectRegionList200Response() { + } + + public VirtaulCrossConnectRegionList200Response data(List data) { + this.data = data; + return this; + } + + public VirtaulCrossConnectRegionList200Response addDataItem(VirtualCrossConnectRegion dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public VirtaulCrossConnectRegionList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this VirtaulCrossConnectRegionList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtaulCrossConnectRegionList200Response virtaulCrossConnectRegionList200Response = (VirtaulCrossConnectRegionList200Response) o; + return Objects.equals(this.data, virtaulCrossConnectRegionList200Response.data) && + Objects.equals(this.meta, virtaulCrossConnectRegionList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtaulCrossConnectRegionList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnect.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnect.java new file mode 100644 index 00000000..e1156afd --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnect.java @@ -0,0 +1,753 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.VirtualCrossConnect1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnect + */ +@JsonPropertyOrder({ + VirtualCrossConnect.JSON_PROPERTY_ID, + VirtualCrossConnect.JSON_PROPERTY_RECORD_TYPE, + VirtualCrossConnect.JSON_PROPERTY_CREATED_AT, + VirtualCrossConnect.JSON_PROPERTY_UPDATED_AT, + VirtualCrossConnect.JSON_PROPERTY_NETWORK_ID, + VirtualCrossConnect.JSON_PROPERTY_NAME, + VirtualCrossConnect.JSON_PROPERTY_STATUS, + VirtualCrossConnect.JSON_PROPERTY_CLOUD_PROVIDER, + VirtualCrossConnect.JSON_PROPERTY_CLOUD_REGION, + VirtualCrossConnect.JSON_PROPERTY_BGP_ASN, + VirtualCrossConnect.JSON_PROPERTY_BANDWIDTH_MBPS, + VirtualCrossConnect.JSON_PROPERTY_PRIMARY_ENABLED, + VirtualCrossConnect.JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnect.JSON_PROPERTY_PRIMARY_TELNYX_IP, + VirtualCrossConnect.JSON_PROPERTY_PRIMARY_CLOUD_IP, + VirtualCrossConnect.JSON_PROPERTY_PRIMARY_BGP_KEY, + VirtualCrossConnect.JSON_PROPERTY_SECONDARY_ENABLED, + VirtualCrossConnect.JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnect.JSON_PROPERTY_SECONDARY_TELNYX_IP, + VirtualCrossConnect.JSON_PROPERTY_SECONDARY_CLOUD_IP, + VirtualCrossConnect.JSON_PROPERTY_SECONDARY_BGP_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnect { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + */ + public enum CloudProviderEnum { + AWS("aws"), + + AZURE("azure"), + + GCE("gce"); + + private String value; + + CloudProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloudProviderEnum fromValue(String value) { + for (CloudProviderEnum b : CloudProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider"; + private CloudProviderEnum cloudProvider; + + public static final String JSON_PROPERTY_CLOUD_REGION = "cloud_region"; + private String cloudRegion; + + public static final String JSON_PROPERTY_BGP_ASN = "bgp_asn"; + private BigDecimal bgpAsn; + + public static final String JSON_PROPERTY_BANDWIDTH_MBPS = "bandwidth_mbps"; + private BigDecimal bandwidthMbps; + + public static final String JSON_PROPERTY_PRIMARY_ENABLED = "primary_enabled"; + private Boolean primaryEnabled; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID = "primary_cloud_account_id"; + private String primaryCloudAccountId; + + public static final String JSON_PROPERTY_PRIMARY_TELNYX_IP = "primary_telnyx_ip"; + private String primaryTelnyxIp; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_IP = "primary_cloud_ip"; + private String primaryCloudIp; + + public static final String JSON_PROPERTY_PRIMARY_BGP_KEY = "primary_bgp_key"; + private String primaryBgpKey; + + public static final String JSON_PROPERTY_SECONDARY_ENABLED = "secondary_enabled"; + private Boolean secondaryEnabled; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID = "secondary_cloud_account_id"; + private String secondaryCloudAccountId; + + public static final String JSON_PROPERTY_SECONDARY_TELNYX_IP = "secondary_telnyx_ip"; + private String secondaryTelnyxIp; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_IP = "secondary_cloud_ip"; + private String secondaryCloudIp; + + public static final String JSON_PROPERTY_SECONDARY_BGP_KEY = "secondary_bgp_key"; + private String secondaryBgpKey; + + public VirtualCrossConnect() { + } + + @JsonCreator + public VirtualCrossConnect( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) Boolean primaryEnabled, + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) Boolean secondaryEnabled + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.primaryEnabled = primaryEnabled; + this.secondaryEnabled = secondaryEnabled; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "virtual_cross_connect", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public VirtualCrossConnect networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public VirtualCrossConnect name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public VirtualCrossConnect status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + public VirtualCrossConnect cloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + * @return cloudProvider + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "aws", value = "The Virtual Private Cloud with which you would like to establish a cross connect.") + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CloudProviderEnum getCloudProvider() { + return cloudProvider; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public VirtualCrossConnect cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. + * @return cloudRegion + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "us-east-1", value = "The region where your Virtual Private Cloud hosts are located.

The available regions can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCloudRegion() { + return cloudRegion; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + + + public VirtualCrossConnect bgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + return this; + } + + /** + * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. + * @return bgpAsn + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1234", value = "The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx.") + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getBgpAsn() { + return bgpAsn; + } + + + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + } + + + public VirtualCrossConnect bandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + return this; + } + + /** + * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. + * @return bandwidthMbps + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "50", value = "The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.

The available bandwidths can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getBandwidthMbps() { + return bandwidthMbps; + } + + + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + } + + + /** + * Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. + * @return primaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryEnabled() { + return primaryEnabled; + } + + + + + public VirtualCrossConnect primaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. + * @return primaryCloudAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "123456789012", value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudAccountId() { + return primaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + } + + + public VirtualCrossConnect primaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return primaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.1", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryTelnyxIp() { + return primaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + } + + + public VirtualCrossConnect primaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return primaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.2", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudIp() { + return primaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + } + + + public VirtualCrossConnect primaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return primaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "yFV4wEPtPVPfDUGLWiyQzwga", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryBgpKey() { + return primaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + } + + + /** + * Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. + * @return secondaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryEnabled() { + return secondaryEnabled; + } + + + + + public VirtualCrossConnect secondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. + * @return secondaryCloudAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "", value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.

This attribute is only necessary for GCE.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudAccountId() { + return secondaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + } + + + public VirtualCrossConnect secondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return secondaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.3", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryTelnyxIp() { + return secondaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + } + + + public VirtualCrossConnect secondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return secondaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.4", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudIp() { + return secondaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + } + + + public VirtualCrossConnect secondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return secondaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ge1lONeK9RcA83uuWaw9DvZy", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryBgpKey() { + return secondaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + } + + + /** + * Return true if this VirtualCrossConnect object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnect virtualCrossConnect = (VirtualCrossConnect) o; + return Objects.equals(this.id, virtualCrossConnect.id) && + Objects.equals(this.recordType, virtualCrossConnect.recordType) && + Objects.equals(this.createdAt, virtualCrossConnect.createdAt) && + Objects.equals(this.updatedAt, virtualCrossConnect.updatedAt) && + Objects.equals(this.networkId, virtualCrossConnect.networkId) && + Objects.equals(this.name, virtualCrossConnect.name) && + Objects.equals(this.status, virtualCrossConnect.status) && + Objects.equals(this.cloudProvider, virtualCrossConnect.cloudProvider) && + Objects.equals(this.cloudRegion, virtualCrossConnect.cloudRegion) && + Objects.equals(this.bgpAsn, virtualCrossConnect.bgpAsn) && + Objects.equals(this.bandwidthMbps, virtualCrossConnect.bandwidthMbps) && + Objects.equals(this.primaryEnabled, virtualCrossConnect.primaryEnabled) && + Objects.equals(this.primaryCloudAccountId, virtualCrossConnect.primaryCloudAccountId) && + Objects.equals(this.primaryTelnyxIp, virtualCrossConnect.primaryTelnyxIp) && + Objects.equals(this.primaryCloudIp, virtualCrossConnect.primaryCloudIp) && + Objects.equals(this.primaryBgpKey, virtualCrossConnect.primaryBgpKey) && + Objects.equals(this.secondaryEnabled, virtualCrossConnect.secondaryEnabled) && + Objects.equals(this.secondaryCloudAccountId, virtualCrossConnect.secondaryCloudAccountId) && + Objects.equals(this.secondaryTelnyxIp, virtualCrossConnect.secondaryTelnyxIp) && + Objects.equals(this.secondaryCloudIp, virtualCrossConnect.secondaryCloudIp) && + Objects.equals(this.secondaryBgpKey, virtualCrossConnect.secondaryBgpKey); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, cloudProvider, cloudRegion, bgpAsn, bandwidthMbps, primaryEnabled, primaryCloudAccountId, primaryTelnyxIp, primaryCloudIp, primaryBgpKey, secondaryEnabled, secondaryCloudAccountId, secondaryTelnyxIp, secondaryCloudIp, secondaryBgpKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnect {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); + sb.append(" bandwidthMbps: ").append(toIndentedString(bandwidthMbps)).append("\n"); + sb.append(" primaryEnabled: ").append(toIndentedString(primaryEnabled)).append("\n"); + sb.append(" primaryCloudAccountId: ").append(toIndentedString(primaryCloudAccountId)).append("\n"); + sb.append(" primaryTelnyxIp: ").append(toIndentedString(primaryTelnyxIp)).append("\n"); + sb.append(" primaryCloudIp: ").append(toIndentedString(primaryCloudIp)).append("\n"); + sb.append(" primaryBgpKey: ").append(toIndentedString(primaryBgpKey)).append("\n"); + sb.append(" secondaryEnabled: ").append(toIndentedString(secondaryEnabled)).append("\n"); + sb.append(" secondaryCloudAccountId: ").append(toIndentedString(secondaryCloudAccountId)).append("\n"); + sb.append(" secondaryTelnyxIp: ").append(toIndentedString(secondaryTelnyxIp)).append("\n"); + sb.append(" secondaryCloudIp: ").append(toIndentedString(secondaryCloudIp)).append("\n"); + sb.append(" secondaryBgpKey: ").append(toIndentedString(secondaryBgpKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnect1.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnect1.java new file mode 100644 index 00000000..0eceb117 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnect1.java @@ -0,0 +1,580 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnect1 + */ +@JsonPropertyOrder({ + VirtualCrossConnect1.JSON_PROPERTY_RECORD_TYPE, + VirtualCrossConnect1.JSON_PROPERTY_CLOUD_PROVIDER, + VirtualCrossConnect1.JSON_PROPERTY_CLOUD_REGION, + VirtualCrossConnect1.JSON_PROPERTY_BGP_ASN, + VirtualCrossConnect1.JSON_PROPERTY_BANDWIDTH_MBPS, + VirtualCrossConnect1.JSON_PROPERTY_PRIMARY_ENABLED, + VirtualCrossConnect1.JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnect1.JSON_PROPERTY_PRIMARY_TELNYX_IP, + VirtualCrossConnect1.JSON_PROPERTY_PRIMARY_CLOUD_IP, + VirtualCrossConnect1.JSON_PROPERTY_PRIMARY_BGP_KEY, + VirtualCrossConnect1.JSON_PROPERTY_SECONDARY_ENABLED, + VirtualCrossConnect1.JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnect1.JSON_PROPERTY_SECONDARY_TELNYX_IP, + VirtualCrossConnect1.JSON_PROPERTY_SECONDARY_CLOUD_IP, + VirtualCrossConnect1.JSON_PROPERTY_SECONDARY_BGP_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnect1 { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + */ + public enum CloudProviderEnum { + AWS("aws"), + + AZURE("azure"), + + GCE("gce"); + + private String value; + + CloudProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloudProviderEnum fromValue(String value) { + for (CloudProviderEnum b : CloudProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider"; + private CloudProviderEnum cloudProvider; + + public static final String JSON_PROPERTY_CLOUD_REGION = "cloud_region"; + private String cloudRegion; + + public static final String JSON_PROPERTY_BGP_ASN = "bgp_asn"; + private BigDecimal bgpAsn; + + public static final String JSON_PROPERTY_BANDWIDTH_MBPS = "bandwidth_mbps"; + private BigDecimal bandwidthMbps; + + public static final String JSON_PROPERTY_PRIMARY_ENABLED = "primary_enabled"; + private Boolean primaryEnabled; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID = "primary_cloud_account_id"; + private String primaryCloudAccountId; + + public static final String JSON_PROPERTY_PRIMARY_TELNYX_IP = "primary_telnyx_ip"; + private String primaryTelnyxIp; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_IP = "primary_cloud_ip"; + private String primaryCloudIp; + + public static final String JSON_PROPERTY_PRIMARY_BGP_KEY = "primary_bgp_key"; + private String primaryBgpKey; + + public static final String JSON_PROPERTY_SECONDARY_ENABLED = "secondary_enabled"; + private Boolean secondaryEnabled; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID = "secondary_cloud_account_id"; + private String secondaryCloudAccountId; + + public static final String JSON_PROPERTY_SECONDARY_TELNYX_IP = "secondary_telnyx_ip"; + private String secondaryTelnyxIp; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_IP = "secondary_cloud_ip"; + private String secondaryCloudIp; + + public static final String JSON_PROPERTY_SECONDARY_BGP_KEY = "secondary_bgp_key"; + private String secondaryBgpKey; + + public VirtualCrossConnect1() { + } + + @JsonCreator + public VirtualCrossConnect1( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) Boolean primaryEnabled, + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) Boolean secondaryEnabled + ) { + this(); + this.recordType = recordType; + this.primaryEnabled = primaryEnabled; + this.secondaryEnabled = secondaryEnabled; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "virtual_cross_connect", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + public VirtualCrossConnect1 cloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + * @return cloudProvider + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "aws", value = "The Virtual Private Cloud with which you would like to establish a cross connect.") + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CloudProviderEnum getCloudProvider() { + return cloudProvider; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public VirtualCrossConnect1 cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. + * @return cloudRegion + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "us-east-1", value = "The region where your Virtual Private Cloud hosts are located.

The available regions can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCloudRegion() { + return cloudRegion; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + + + public VirtualCrossConnect1 bgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + return this; + } + + /** + * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. + * @return bgpAsn + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1234", value = "The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx.") + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getBgpAsn() { + return bgpAsn; + } + + + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + } + + + public VirtualCrossConnect1 bandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + return this; + } + + /** + * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. + * @return bandwidthMbps + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "50", value = "The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.

The available bandwidths can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getBandwidthMbps() { + return bandwidthMbps; + } + + + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + } + + + /** + * Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. + * @return primaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryEnabled() { + return primaryEnabled; + } + + + + + public VirtualCrossConnect1 primaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. + * @return primaryCloudAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "123456789012", value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudAccountId() { + return primaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + } + + + public VirtualCrossConnect1 primaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return primaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.1", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryTelnyxIp() { + return primaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + } + + + public VirtualCrossConnect1 primaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return primaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.2", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudIp() { + return primaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + } + + + public VirtualCrossConnect1 primaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return primaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "yFV4wEPtPVPfDUGLWiyQzwga", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryBgpKey() { + return primaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + } + + + /** + * Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. + * @return secondaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryEnabled() { + return secondaryEnabled; + } + + + + + public VirtualCrossConnect1 secondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. + * @return secondaryCloudAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "", value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.

This attribute is only necessary for GCE.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudAccountId() { + return secondaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + } + + + public VirtualCrossConnect1 secondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return secondaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.3", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryTelnyxIp() { + return secondaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + } + + + public VirtualCrossConnect1 secondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return secondaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.4", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudIp() { + return secondaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + } + + + public VirtualCrossConnect1 secondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return secondaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ge1lONeK9RcA83uuWaw9DvZy", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryBgpKey() { + return secondaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + } + + + /** + * Return true if this VirtualCrossConnect_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnect1 virtualCrossConnect1 = (VirtualCrossConnect1) o; + return Objects.equals(this.recordType, virtualCrossConnect1.recordType) && + Objects.equals(this.cloudProvider, virtualCrossConnect1.cloudProvider) && + Objects.equals(this.cloudRegion, virtualCrossConnect1.cloudRegion) && + Objects.equals(this.bgpAsn, virtualCrossConnect1.bgpAsn) && + Objects.equals(this.bandwidthMbps, virtualCrossConnect1.bandwidthMbps) && + Objects.equals(this.primaryEnabled, virtualCrossConnect1.primaryEnabled) && + Objects.equals(this.primaryCloudAccountId, virtualCrossConnect1.primaryCloudAccountId) && + Objects.equals(this.primaryTelnyxIp, virtualCrossConnect1.primaryTelnyxIp) && + Objects.equals(this.primaryCloudIp, virtualCrossConnect1.primaryCloudIp) && + Objects.equals(this.primaryBgpKey, virtualCrossConnect1.primaryBgpKey) && + Objects.equals(this.secondaryEnabled, virtualCrossConnect1.secondaryEnabled) && + Objects.equals(this.secondaryCloudAccountId, virtualCrossConnect1.secondaryCloudAccountId) && + Objects.equals(this.secondaryTelnyxIp, virtualCrossConnect1.secondaryTelnyxIp) && + Objects.equals(this.secondaryCloudIp, virtualCrossConnect1.secondaryCloudIp) && + Objects.equals(this.secondaryBgpKey, virtualCrossConnect1.secondaryBgpKey); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, cloudProvider, cloudRegion, bgpAsn, bandwidthMbps, primaryEnabled, primaryCloudAccountId, primaryTelnyxIp, primaryCloudIp, primaryBgpKey, secondaryEnabled, secondaryCloudAccountId, secondaryTelnyxIp, secondaryCloudIp, secondaryBgpKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnect1 {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); + sb.append(" bandwidthMbps: ").append(toIndentedString(bandwidthMbps)).append("\n"); + sb.append(" primaryEnabled: ").append(toIndentedString(primaryEnabled)).append("\n"); + sb.append(" primaryCloudAccountId: ").append(toIndentedString(primaryCloudAccountId)).append("\n"); + sb.append(" primaryTelnyxIp: ").append(toIndentedString(primaryTelnyxIp)).append("\n"); + sb.append(" primaryCloudIp: ").append(toIndentedString(primaryCloudIp)).append("\n"); + sb.append(" primaryBgpKey: ").append(toIndentedString(primaryBgpKey)).append("\n"); + sb.append(" secondaryEnabled: ").append(toIndentedString(secondaryEnabled)).append("\n"); + sb.append(" secondaryCloudAccountId: ").append(toIndentedString(secondaryCloudAccountId)).append("\n"); + sb.append(" secondaryTelnyxIp: ").append(toIndentedString(secondaryTelnyxIp)).append("\n"); + sb.append(" secondaryCloudIp: ").append(toIndentedString(secondaryCloudIp)).append("\n"); + sb.append(" secondaryBgpKey: ").append(toIndentedString(secondaryBgpKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCombined.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCombined.java new file mode 100644 index 00000000..1b8a663c --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCombined.java @@ -0,0 +1,898 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import com.telnyx.sdk.model.VirtualCrossConnectCreate; +import com.telnyx.sdk.model.VirtualCrossConnectPatch; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectCombined + */ +@JsonPropertyOrder({ + VirtualCrossConnectCombined.JSON_PROPERTY_ID, + VirtualCrossConnectCombined.JSON_PROPERTY_RECORD_TYPE, + VirtualCrossConnectCombined.JSON_PROPERTY_CREATED_AT, + VirtualCrossConnectCombined.JSON_PROPERTY_UPDATED_AT, + VirtualCrossConnectCombined.JSON_PROPERTY_NETWORK_ID, + VirtualCrossConnectCombined.JSON_PROPERTY_NAME, + VirtualCrossConnectCombined.JSON_PROPERTY_STATUS, + VirtualCrossConnectCombined.JSON_PROPERTY_CLOUD_PROVIDER, + VirtualCrossConnectCombined.JSON_PROPERTY_CLOUD_REGION, + VirtualCrossConnectCombined.JSON_PROPERTY_BGP_ASN, + VirtualCrossConnectCombined.JSON_PROPERTY_BANDWIDTH_MBPS, + VirtualCrossConnectCombined.JSON_PROPERTY_PRIMARY_ENABLED, + VirtualCrossConnectCombined.JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnectCombined.JSON_PROPERTY_PRIMARY_TELNYX_IP, + VirtualCrossConnectCombined.JSON_PROPERTY_PRIMARY_CLOUD_IP, + VirtualCrossConnectCombined.JSON_PROPERTY_PRIMARY_BGP_KEY, + VirtualCrossConnectCombined.JSON_PROPERTY_SECONDARY_ENABLED, + VirtualCrossConnectCombined.JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnectCombined.JSON_PROPERTY_SECONDARY_TELNYX_IP, + VirtualCrossConnectCombined.JSON_PROPERTY_SECONDARY_CLOUD_IP, + VirtualCrossConnectCombined.JSON_PROPERTY_SECONDARY_BGP_KEY, + VirtualCrossConnectCombined.JSON_PROPERTY_REGION_CODE, + VirtualCrossConnectCombined.JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT, + VirtualCrossConnectCombined.JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT, + VirtualCrossConnectCombined.JSON_PROPERTY_REGION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectCombined { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + */ + public enum CloudProviderEnum { + AWS("aws"), + + AZURE("azure"), + + GCE("gce"); + + private String value; + + CloudProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloudProviderEnum fromValue(String value) { + for (CloudProviderEnum b : CloudProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider"; + private CloudProviderEnum cloudProvider; + + public static final String JSON_PROPERTY_CLOUD_REGION = "cloud_region"; + private String cloudRegion; + + public static final String JSON_PROPERTY_BGP_ASN = "bgp_asn"; + private BigDecimal bgpAsn; + + public static final String JSON_PROPERTY_BANDWIDTH_MBPS = "bandwidth_mbps"; + private BigDecimal bandwidthMbps; + + public static final String JSON_PROPERTY_PRIMARY_ENABLED = "primary_enabled"; + private Boolean primaryEnabled; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID = "primary_cloud_account_id"; + private String primaryCloudAccountId; + + public static final String JSON_PROPERTY_PRIMARY_TELNYX_IP = "primary_telnyx_ip"; + private String primaryTelnyxIp; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_IP = "primary_cloud_ip"; + private String primaryCloudIp; + + public static final String JSON_PROPERTY_PRIMARY_BGP_KEY = "primary_bgp_key"; + private String primaryBgpKey; + + public static final String JSON_PROPERTY_SECONDARY_ENABLED = "secondary_enabled"; + private Boolean secondaryEnabled; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID = "secondary_cloud_account_id"; + private String secondaryCloudAccountId; + + public static final String JSON_PROPERTY_SECONDARY_TELNYX_IP = "secondary_telnyx_ip"; + private String secondaryTelnyxIp; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_IP = "secondary_cloud_ip"; + private String secondaryCloudIp; + + public static final String JSON_PROPERTY_SECONDARY_BGP_KEY = "secondary_bgp_key"; + private String secondaryBgpKey; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public static final String JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT = "primary_routing_announcement"; + private Boolean primaryRoutingAnnouncement; + + public static final String JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT = "secondary_routing_announcement"; + private Boolean secondaryRoutingAnnouncement; + + public static final String JSON_PROPERTY_REGION = "region"; + private RegionOutRegion region; + + public VirtualCrossConnectCombined() { + } + + @JsonCreator + public VirtualCrossConnectCombined( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "virtual_cross_connect", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public VirtualCrossConnectCombined networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public VirtualCrossConnectCombined name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public VirtualCrossConnectCombined status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + public VirtualCrossConnectCombined cloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + * @return cloudProvider + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "aws", required = true, value = "The Virtual Private Cloud with which you would like to establish a cross connect.") + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public CloudProviderEnum getCloudProvider() { + return cloudProvider; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public VirtualCrossConnectCombined cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. + * @return cloudRegion + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "us-east-1", required = true, value = "The region where your Virtual Private Cloud hosts are located.

The available regions can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getCloudRegion() { + return cloudRegion; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + + + public VirtualCrossConnectCombined bgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + return this; + } + + /** + * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. + * @return bgpAsn + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1234", required = true, value = "The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx.") + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public BigDecimal getBgpAsn() { + return bgpAsn; + } + + + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + } + + + public VirtualCrossConnectCombined bandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + return this; + } + + /** + * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. + * @return bandwidthMbps + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "50", value = "The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.

The available bandwidths can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getBandwidthMbps() { + return bandwidthMbps; + } + + + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + } + + + public VirtualCrossConnectCombined primaryEnabled(Boolean primaryEnabled) { + this.primaryEnabled = primaryEnabled; + return this; + } + + /** + * Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. + * @return primaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryEnabled() { + return primaryEnabled; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryEnabled(Boolean primaryEnabled) { + this.primaryEnabled = primaryEnabled; + } + + + public VirtualCrossConnectCombined primaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. + * @return primaryCloudAccountId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "123456789012", required = true, value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPrimaryCloudAccountId() { + return primaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPrimaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + } + + + public VirtualCrossConnectCombined primaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return primaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.1", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryTelnyxIp() { + return primaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + } + + + public VirtualCrossConnectCombined primaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. + * @return primaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.2", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudIp() { + return primaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + } + + + public VirtualCrossConnectCombined primaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return primaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "yFV4wEPtPVPfDUGLWiyQzwga", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryBgpKey() { + return primaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + } + + + public VirtualCrossConnectCombined secondaryEnabled(Boolean secondaryEnabled) { + this.secondaryEnabled = secondaryEnabled; + return this; + } + + /** + * Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. + * @return secondaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryEnabled() { + return secondaryEnabled; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryEnabled(Boolean secondaryEnabled) { + this.secondaryEnabled = secondaryEnabled; + } + + + public VirtualCrossConnectCombined secondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. + * @return secondaryCloudAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "", value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.

This attribute is only necessary for GCE.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudAccountId() { + return secondaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + } + + + public VirtualCrossConnectCombined secondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return secondaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.3", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryTelnyxIp() { + return secondaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + } + + + public VirtualCrossConnectCombined secondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. + * @return secondaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.4", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudIp() { + return secondaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + } + + + public VirtualCrossConnectCombined secondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return secondaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ge1lONeK9RcA83uuWaw9DvZy", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryBgpKey() { + return secondaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + } + + + public VirtualCrossConnectCombined regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region interface is deployed to. + * @return regionCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "ashburn-va", required = true, value = "The region interface is deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + public VirtualCrossConnectCombined primaryRoutingAnnouncement(Boolean primaryRoutingAnnouncement) { + this.primaryRoutingAnnouncement = primaryRoutingAnnouncement; + return this; + } + + /** + * Whether the primary BGP route is being announced. + * @return primaryRoutingAnnouncement + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Whether the primary BGP route is being announced.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryRoutingAnnouncement() { + return primaryRoutingAnnouncement; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryRoutingAnnouncement(Boolean primaryRoutingAnnouncement) { + this.primaryRoutingAnnouncement = primaryRoutingAnnouncement; + } + + + public VirtualCrossConnectCombined secondaryRoutingAnnouncement(Boolean secondaryRoutingAnnouncement) { + this.secondaryRoutingAnnouncement = secondaryRoutingAnnouncement; + return this; + } + + /** + * Whether the secondary BGP route is being announced. + * @return secondaryRoutingAnnouncement + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Whether the secondary BGP route is being announced.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryRoutingAnnouncement() { + return secondaryRoutingAnnouncement; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryRoutingAnnouncement(Boolean secondaryRoutingAnnouncement) { + this.secondaryRoutingAnnouncement = secondaryRoutingAnnouncement; + } + + + public VirtualCrossConnectCombined region(RegionOutRegion region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RegionOutRegion getRegion() { + return region; + } + + + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegion(RegionOutRegion region) { + this.region = region; + } + + + /** + * Return true if this VirtualCrossConnectCombined object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectCombined virtualCrossConnectCombined = (VirtualCrossConnectCombined) o; + return Objects.equals(this.id, virtualCrossConnectCombined.id) && + Objects.equals(this.recordType, virtualCrossConnectCombined.recordType) && + Objects.equals(this.createdAt, virtualCrossConnectCombined.createdAt) && + Objects.equals(this.updatedAt, virtualCrossConnectCombined.updatedAt) && + Objects.equals(this.networkId, virtualCrossConnectCombined.networkId) && + Objects.equals(this.name, virtualCrossConnectCombined.name) && + Objects.equals(this.status, virtualCrossConnectCombined.status) && + Objects.equals(this.cloudProvider, virtualCrossConnectCombined.cloudProvider) && + Objects.equals(this.cloudRegion, virtualCrossConnectCombined.cloudRegion) && + Objects.equals(this.bgpAsn, virtualCrossConnectCombined.bgpAsn) && + Objects.equals(this.bandwidthMbps, virtualCrossConnectCombined.bandwidthMbps) && + Objects.equals(this.primaryEnabled, virtualCrossConnectCombined.primaryEnabled) && + Objects.equals(this.primaryCloudAccountId, virtualCrossConnectCombined.primaryCloudAccountId) && + Objects.equals(this.primaryTelnyxIp, virtualCrossConnectCombined.primaryTelnyxIp) && + Objects.equals(this.primaryCloudIp, virtualCrossConnectCombined.primaryCloudIp) && + Objects.equals(this.primaryBgpKey, virtualCrossConnectCombined.primaryBgpKey) && + Objects.equals(this.secondaryEnabled, virtualCrossConnectCombined.secondaryEnabled) && + Objects.equals(this.secondaryCloudAccountId, virtualCrossConnectCombined.secondaryCloudAccountId) && + Objects.equals(this.secondaryTelnyxIp, virtualCrossConnectCombined.secondaryTelnyxIp) && + Objects.equals(this.secondaryCloudIp, virtualCrossConnectCombined.secondaryCloudIp) && + Objects.equals(this.secondaryBgpKey, virtualCrossConnectCombined.secondaryBgpKey) && + Objects.equals(this.regionCode, virtualCrossConnectCombined.regionCode) && + Objects.equals(this.primaryRoutingAnnouncement, virtualCrossConnectCombined.primaryRoutingAnnouncement) && + Objects.equals(this.secondaryRoutingAnnouncement, virtualCrossConnectCombined.secondaryRoutingAnnouncement) && + Objects.equals(this.region, virtualCrossConnectCombined.region); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, cloudProvider, cloudRegion, bgpAsn, bandwidthMbps, primaryEnabled, primaryCloudAccountId, primaryTelnyxIp, primaryCloudIp, primaryBgpKey, secondaryEnabled, secondaryCloudAccountId, secondaryTelnyxIp, secondaryCloudIp, secondaryBgpKey, regionCode, primaryRoutingAnnouncement, secondaryRoutingAnnouncement, region); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectCombined {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); + sb.append(" bandwidthMbps: ").append(toIndentedString(bandwidthMbps)).append("\n"); + sb.append(" primaryEnabled: ").append(toIndentedString(primaryEnabled)).append("\n"); + sb.append(" primaryCloudAccountId: ").append(toIndentedString(primaryCloudAccountId)).append("\n"); + sb.append(" primaryTelnyxIp: ").append(toIndentedString(primaryTelnyxIp)).append("\n"); + sb.append(" primaryCloudIp: ").append(toIndentedString(primaryCloudIp)).append("\n"); + sb.append(" primaryBgpKey: ").append(toIndentedString(primaryBgpKey)).append("\n"); + sb.append(" secondaryEnabled: ").append(toIndentedString(secondaryEnabled)).append("\n"); + sb.append(" secondaryCloudAccountId: ").append(toIndentedString(secondaryCloudAccountId)).append("\n"); + sb.append(" secondaryTelnyxIp: ").append(toIndentedString(secondaryTelnyxIp)).append("\n"); + sb.append(" secondaryCloudIp: ").append(toIndentedString(secondaryCloudIp)).append("\n"); + sb.append(" secondaryBgpKey: ").append(toIndentedString(secondaryBgpKey)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" primaryRoutingAnnouncement: ").append(toIndentedString(primaryRoutingAnnouncement)).append("\n"); + sb.append(" secondaryRoutingAnnouncement: ").append(toIndentedString(secondaryRoutingAnnouncement)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate.java new file mode 100644 index 00000000..89d661bc --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate.java @@ -0,0 +1,784 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionIn; +import com.telnyx.sdk.model.VirtualCrossConnect; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectCreate + */ +@JsonPropertyOrder({ + VirtualCrossConnectCreate.JSON_PROPERTY_ID, + VirtualCrossConnectCreate.JSON_PROPERTY_RECORD_TYPE, + VirtualCrossConnectCreate.JSON_PROPERTY_CREATED_AT, + VirtualCrossConnectCreate.JSON_PROPERTY_UPDATED_AT, + VirtualCrossConnectCreate.JSON_PROPERTY_NETWORK_ID, + VirtualCrossConnectCreate.JSON_PROPERTY_NAME, + VirtualCrossConnectCreate.JSON_PROPERTY_STATUS, + VirtualCrossConnectCreate.JSON_PROPERTY_CLOUD_PROVIDER, + VirtualCrossConnectCreate.JSON_PROPERTY_CLOUD_REGION, + VirtualCrossConnectCreate.JSON_PROPERTY_BGP_ASN, + VirtualCrossConnectCreate.JSON_PROPERTY_BANDWIDTH_MBPS, + VirtualCrossConnectCreate.JSON_PROPERTY_PRIMARY_ENABLED, + VirtualCrossConnectCreate.JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnectCreate.JSON_PROPERTY_PRIMARY_TELNYX_IP, + VirtualCrossConnectCreate.JSON_PROPERTY_PRIMARY_CLOUD_IP, + VirtualCrossConnectCreate.JSON_PROPERTY_PRIMARY_BGP_KEY, + VirtualCrossConnectCreate.JSON_PROPERTY_SECONDARY_ENABLED, + VirtualCrossConnectCreate.JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID, + VirtualCrossConnectCreate.JSON_PROPERTY_SECONDARY_TELNYX_IP, + VirtualCrossConnectCreate.JSON_PROPERTY_SECONDARY_CLOUD_IP, + VirtualCrossConnectCreate.JSON_PROPERTY_SECONDARY_BGP_KEY, + VirtualCrossConnectCreate.JSON_PROPERTY_REGION_CODE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectCreate { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + */ + public enum CloudProviderEnum { + AWS("aws"), + + AZURE("azure"), + + GCE("gce"); + + private String value; + + CloudProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloudProviderEnum fromValue(String value) { + for (CloudProviderEnum b : CloudProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider"; + private CloudProviderEnum cloudProvider; + + public static final String JSON_PROPERTY_CLOUD_REGION = "cloud_region"; + private String cloudRegion; + + public static final String JSON_PROPERTY_BGP_ASN = "bgp_asn"; + private BigDecimal bgpAsn; + + public static final String JSON_PROPERTY_BANDWIDTH_MBPS = "bandwidth_mbps"; + private BigDecimal bandwidthMbps; + + public static final String JSON_PROPERTY_PRIMARY_ENABLED = "primary_enabled"; + private Boolean primaryEnabled; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID = "primary_cloud_account_id"; + private String primaryCloudAccountId; + + public static final String JSON_PROPERTY_PRIMARY_TELNYX_IP = "primary_telnyx_ip"; + private String primaryTelnyxIp; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_IP = "primary_cloud_ip"; + private String primaryCloudIp; + + public static final String JSON_PROPERTY_PRIMARY_BGP_KEY = "primary_bgp_key"; + private String primaryBgpKey; + + public static final String JSON_PROPERTY_SECONDARY_ENABLED = "secondary_enabled"; + private Boolean secondaryEnabled; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID = "secondary_cloud_account_id"; + private String secondaryCloudAccountId; + + public static final String JSON_PROPERTY_SECONDARY_TELNYX_IP = "secondary_telnyx_ip"; + private String secondaryTelnyxIp; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_IP = "secondary_cloud_ip"; + private String secondaryCloudIp; + + public static final String JSON_PROPERTY_SECONDARY_BGP_KEY = "secondary_bgp_key"; + private String secondaryBgpKey; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public VirtualCrossConnectCreate() { + } + + @JsonCreator + public VirtualCrossConnectCreate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) Boolean primaryEnabled, + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) Boolean secondaryEnabled + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.primaryEnabled = primaryEnabled; + this.secondaryEnabled = secondaryEnabled; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "virtual_cross_connect", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public VirtualCrossConnectCreate networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public VirtualCrossConnectCreate name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public VirtualCrossConnectCreate status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + public VirtualCrossConnectCreate cloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + * @return cloudProvider + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "aws", required = true, value = "The Virtual Private Cloud with which you would like to establish a cross connect.") + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public CloudProviderEnum getCloudProvider() { + return cloudProvider; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public VirtualCrossConnectCreate cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region where your Virtual Private Cloud hosts are located.<br /><br />The available regions can be found using the /virtual_cross_connect_regions endpoint. + * @return cloudRegion + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "us-east-1", required = true, value = "The region where your Virtual Private Cloud hosts are located.

The available regions can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getCloudRegion() { + return cloudRegion; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + + + public VirtualCrossConnectCreate bgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + return this; + } + + /** + * The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx. + * @return bgpAsn + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1234", required = true, value = "The Border Gateway Protocol (BGP) Autonomous System Number (ASN). If null, value will be assigned by Telnyx.") + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public BigDecimal getBgpAsn() { + return bgpAsn; + } + + + @JsonProperty(JSON_PROPERTY_BGP_ASN) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setBgpAsn(BigDecimal bgpAsn) { + this.bgpAsn = bgpAsn; + } + + + public VirtualCrossConnectCreate bandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + return this; + } + + /** + * The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.<br /><br />The available bandwidths can be found using the /virtual_cross_connect_regions endpoint. + * @return bandwidthMbps + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "50", value = "The desired throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.

The available bandwidths can be found using the /virtual_cross_connect_regions endpoint.") + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public BigDecimal getBandwidthMbps() { + return bandwidthMbps; + } + + + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBandwidthMbps(BigDecimal bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + } + + + /** + * Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. + * @return primaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryEnabled() { + return primaryEnabled; + } + + + + + public VirtualCrossConnectCreate primaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider. + * @return primaryCloudAccountId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "123456789012", required = true, value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getPrimaryCloudAccountId() { + return primaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setPrimaryCloudAccountId(String primaryCloudAccountId) { + this.primaryCloudAccountId = primaryCloudAccountId; + } + + + public VirtualCrossConnectCreate primaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return primaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.1", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryTelnyxIp() { + return primaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryTelnyxIp(String primaryTelnyxIp) { + this.primaryTelnyxIp = primaryTelnyxIp; + } + + + public VirtualCrossConnectCreate primaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return primaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.2", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudIp() { + return primaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + } + + + public VirtualCrossConnectCreate primaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return primaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "yFV4wEPtPVPfDUGLWiyQzwga", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryBgpKey() { + return primaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryBgpKey(String primaryBgpKey) { + this.primaryBgpKey = primaryBgpKey; + } + + + /** + * Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. + * @return secondaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryEnabled() { + return secondaryEnabled; + } + + + + + public VirtualCrossConnectCreate secondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + return this; + } + + /** + * The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.<br /><br />This attribute is only necessary for GCE. + * @return secondaryCloudAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "", value = "The identifier for your Virtual Private Cloud. The number will be different based upon your Cloud provider.

This attribute is only necessary for GCE.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudAccountId() { + return secondaryCloudAccountId; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudAccountId(String secondaryCloudAccountId) { + this.secondaryCloudAccountId = secondaryCloudAccountId; + } + + + public VirtualCrossConnectCreate secondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + return this; + } + + /** + * The IP address assigned to the Telnyx side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return secondaryTelnyxIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.3", value = "The IP address assigned to the Telnyx side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryTelnyxIp() { + return secondaryTelnyxIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_TELNYX_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryTelnyxIp(String secondaryTelnyxIp) { + this.secondaryTelnyxIp = secondaryTelnyxIp; + } + + + public VirtualCrossConnectCreate secondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted. + * @return secondaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.4", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value should be null for GCE as Google will only inform you of your assigned IP once the connection has been accepted.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudIp() { + return secondaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + } + + + public VirtualCrossConnectCreate secondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + return this; + } + + /** + * The authentication key for BGP peer configuration. + * @return secondaryBgpKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ge1lONeK9RcA83uuWaw9DvZy", value = "The authentication key for BGP peer configuration.") + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryBgpKey() { + return secondaryBgpKey; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_BGP_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryBgpKey(String secondaryBgpKey) { + this.secondaryBgpKey = secondaryBgpKey; + } + + + public VirtualCrossConnectCreate regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region the interface should be deployed to. + * @return regionCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "ashburn-va", required = true, value = "The region the interface should be deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + /** + * Return true if this VirtualCrossConnectCreate object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectCreate virtualCrossConnectCreate = (VirtualCrossConnectCreate) o; + return Objects.equals(this.id, virtualCrossConnectCreate.id) && + Objects.equals(this.recordType, virtualCrossConnectCreate.recordType) && + Objects.equals(this.createdAt, virtualCrossConnectCreate.createdAt) && + Objects.equals(this.updatedAt, virtualCrossConnectCreate.updatedAt) && + Objects.equals(this.networkId, virtualCrossConnectCreate.networkId) && + Objects.equals(this.name, virtualCrossConnectCreate.name) && + Objects.equals(this.status, virtualCrossConnectCreate.status) && + Objects.equals(this.cloudProvider, virtualCrossConnectCreate.cloudProvider) && + Objects.equals(this.cloudRegion, virtualCrossConnectCreate.cloudRegion) && + Objects.equals(this.bgpAsn, virtualCrossConnectCreate.bgpAsn) && + Objects.equals(this.bandwidthMbps, virtualCrossConnectCreate.bandwidthMbps) && + Objects.equals(this.primaryEnabled, virtualCrossConnectCreate.primaryEnabled) && + Objects.equals(this.primaryCloudAccountId, virtualCrossConnectCreate.primaryCloudAccountId) && + Objects.equals(this.primaryTelnyxIp, virtualCrossConnectCreate.primaryTelnyxIp) && + Objects.equals(this.primaryCloudIp, virtualCrossConnectCreate.primaryCloudIp) && + Objects.equals(this.primaryBgpKey, virtualCrossConnectCreate.primaryBgpKey) && + Objects.equals(this.secondaryEnabled, virtualCrossConnectCreate.secondaryEnabled) && + Objects.equals(this.secondaryCloudAccountId, virtualCrossConnectCreate.secondaryCloudAccountId) && + Objects.equals(this.secondaryTelnyxIp, virtualCrossConnectCreate.secondaryTelnyxIp) && + Objects.equals(this.secondaryCloudIp, virtualCrossConnectCreate.secondaryCloudIp) && + Objects.equals(this.secondaryBgpKey, virtualCrossConnectCreate.secondaryBgpKey) && + Objects.equals(this.regionCode, virtualCrossConnectCreate.regionCode); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, cloudProvider, cloudRegion, bgpAsn, bandwidthMbps, primaryEnabled, primaryCloudAccountId, primaryTelnyxIp, primaryCloudIp, primaryBgpKey, secondaryEnabled, secondaryCloudAccountId, secondaryTelnyxIp, secondaryCloudIp, secondaryBgpKey, regionCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectCreate {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" bgpAsn: ").append(toIndentedString(bgpAsn)).append("\n"); + sb.append(" bandwidthMbps: ").append(toIndentedString(bandwidthMbps)).append("\n"); + sb.append(" primaryEnabled: ").append(toIndentedString(primaryEnabled)).append("\n"); + sb.append(" primaryCloudAccountId: ").append(toIndentedString(primaryCloudAccountId)).append("\n"); + sb.append(" primaryTelnyxIp: ").append(toIndentedString(primaryTelnyxIp)).append("\n"); + sb.append(" primaryCloudIp: ").append(toIndentedString(primaryCloudIp)).append("\n"); + sb.append(" primaryBgpKey: ").append(toIndentedString(primaryBgpKey)).append("\n"); + sb.append(" secondaryEnabled: ").append(toIndentedString(secondaryEnabled)).append("\n"); + sb.append(" secondaryCloudAccountId: ").append(toIndentedString(secondaryCloudAccountId)).append("\n"); + sb.append(" secondaryTelnyxIp: ").append(toIndentedString(secondaryTelnyxIp)).append("\n"); + sb.append(" secondaryCloudIp: ").append(toIndentedString(secondaryCloudIp)).append("\n"); + sb.append(" secondaryBgpKey: ").append(toIndentedString(secondaryBgpKey)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200Response.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200Response.java new file mode 100644 index 00000000..af9678a9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.VirtualCrossConnectCombined; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectCreate200Response + */ +@JsonPropertyOrder({ + VirtualCrossConnectCreate200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectCreate200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private VirtualCrossConnectCombined data; + + public VirtualCrossConnectCreate200Response() { + } + + public VirtualCrossConnectCreate200Response data(VirtualCrossConnectCombined data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VirtualCrossConnectCombined getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(VirtualCrossConnectCombined data) { + this.data = data; + } + + + /** + * Return true if this VirtualCrossConnectCreate_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectCreate200Response virtualCrossConnectCreate200Response = (VirtualCrossConnectCreate200Response) o; + return Objects.equals(this.data, virtualCrossConnectCreate200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectCreate200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch.java new file mode 100644 index 00000000..460490c9 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch.java @@ -0,0 +1,273 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.VirtualCrossConnectPatch1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectPatch + */ +@JsonPropertyOrder({ + VirtualCrossConnectPatch.JSON_PROPERTY_PRIMARY_ENABLED, + VirtualCrossConnectPatch.JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT, + VirtualCrossConnectPatch.JSON_PROPERTY_PRIMARY_CLOUD_IP, + VirtualCrossConnectPatch.JSON_PROPERTY_SECONDARY_ENABLED, + VirtualCrossConnectPatch.JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT, + VirtualCrossConnectPatch.JSON_PROPERTY_SECONDARY_CLOUD_IP +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectPatch { + public static final String JSON_PROPERTY_PRIMARY_ENABLED = "primary_enabled"; + private Boolean primaryEnabled; + + public static final String JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT = "primary_routing_announcement"; + private Boolean primaryRoutingAnnouncement; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_IP = "primary_cloud_ip"; + private String primaryCloudIp; + + public static final String JSON_PROPERTY_SECONDARY_ENABLED = "secondary_enabled"; + private Boolean secondaryEnabled; + + public static final String JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT = "secondary_routing_announcement"; + private Boolean secondaryRoutingAnnouncement; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_IP = "secondary_cloud_ip"; + private String secondaryCloudIp; + + public VirtualCrossConnectPatch() { + } + + public VirtualCrossConnectPatch primaryEnabled(Boolean primaryEnabled) { + this.primaryEnabled = primaryEnabled; + return this; + } + + /** + * Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. + * @return primaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryEnabled() { + return primaryEnabled; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryEnabled(Boolean primaryEnabled) { + this.primaryEnabled = primaryEnabled; + } + + + public VirtualCrossConnectPatch primaryRoutingAnnouncement(Boolean primaryRoutingAnnouncement) { + this.primaryRoutingAnnouncement = primaryRoutingAnnouncement; + return this; + } + + /** + * Whether the primary BGP route is being announced. + * @return primaryRoutingAnnouncement + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Whether the primary BGP route is being announced.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryRoutingAnnouncement() { + return primaryRoutingAnnouncement; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryRoutingAnnouncement(Boolean primaryRoutingAnnouncement) { + this.primaryRoutingAnnouncement = primaryRoutingAnnouncement; + } + + + public VirtualCrossConnectPatch primaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. + * @return primaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.2", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudIp() { + return primaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + } + + + public VirtualCrossConnectPatch secondaryEnabled(Boolean secondaryEnabled) { + this.secondaryEnabled = secondaryEnabled; + return this; + } + + /** + * Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. + * @return secondaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryEnabled() { + return secondaryEnabled; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryEnabled(Boolean secondaryEnabled) { + this.secondaryEnabled = secondaryEnabled; + } + + + public VirtualCrossConnectPatch secondaryRoutingAnnouncement(Boolean secondaryRoutingAnnouncement) { + this.secondaryRoutingAnnouncement = secondaryRoutingAnnouncement; + return this; + } + + /** + * Whether the secondary BGP route is being announced. + * @return secondaryRoutingAnnouncement + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Whether the secondary BGP route is being announced.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryRoutingAnnouncement() { + return secondaryRoutingAnnouncement; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryRoutingAnnouncement(Boolean secondaryRoutingAnnouncement) { + this.secondaryRoutingAnnouncement = secondaryRoutingAnnouncement; + } + + + public VirtualCrossConnectPatch secondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. + * @return secondaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.4", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudIp() { + return secondaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + } + + + /** + * Return true if this VirtualCrossConnectPatch object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectPatch virtualCrossConnectPatch = (VirtualCrossConnectPatch) o; + return Objects.equals(this.primaryEnabled, virtualCrossConnectPatch.primaryEnabled) && + Objects.equals(this.primaryRoutingAnnouncement, virtualCrossConnectPatch.primaryRoutingAnnouncement) && + Objects.equals(this.primaryCloudIp, virtualCrossConnectPatch.primaryCloudIp) && + Objects.equals(this.secondaryEnabled, virtualCrossConnectPatch.secondaryEnabled) && + Objects.equals(this.secondaryRoutingAnnouncement, virtualCrossConnectPatch.secondaryRoutingAnnouncement) && + Objects.equals(this.secondaryCloudIp, virtualCrossConnectPatch.secondaryCloudIp); + } + + @Override + public int hashCode() { + return Objects.hash(primaryEnabled, primaryRoutingAnnouncement, primaryCloudIp, secondaryEnabled, secondaryRoutingAnnouncement, secondaryCloudIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectPatch {\n"); + sb.append(" primaryEnabled: ").append(toIndentedString(primaryEnabled)).append("\n"); + sb.append(" primaryRoutingAnnouncement: ").append(toIndentedString(primaryRoutingAnnouncement)).append("\n"); + sb.append(" primaryCloudIp: ").append(toIndentedString(primaryCloudIp)).append("\n"); + sb.append(" secondaryEnabled: ").append(toIndentedString(secondaryEnabled)).append("\n"); + sb.append(" secondaryRoutingAnnouncement: ").append(toIndentedString(secondaryRoutingAnnouncement)).append("\n"); + sb.append(" secondaryCloudIp: ").append(toIndentedString(secondaryCloudIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1.java new file mode 100644 index 00000000..2900fead --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1.java @@ -0,0 +1,272 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectPatch1 + */ +@JsonPropertyOrder({ + VirtualCrossConnectPatch1.JSON_PROPERTY_PRIMARY_ENABLED, + VirtualCrossConnectPatch1.JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT, + VirtualCrossConnectPatch1.JSON_PROPERTY_PRIMARY_CLOUD_IP, + VirtualCrossConnectPatch1.JSON_PROPERTY_SECONDARY_ENABLED, + VirtualCrossConnectPatch1.JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT, + VirtualCrossConnectPatch1.JSON_PROPERTY_SECONDARY_CLOUD_IP +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectPatch1 { + public static final String JSON_PROPERTY_PRIMARY_ENABLED = "primary_enabled"; + private Boolean primaryEnabled; + + public static final String JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT = "primary_routing_announcement"; + private Boolean primaryRoutingAnnouncement; + + public static final String JSON_PROPERTY_PRIMARY_CLOUD_IP = "primary_cloud_ip"; + private String primaryCloudIp; + + public static final String JSON_PROPERTY_SECONDARY_ENABLED = "secondary_enabled"; + private Boolean secondaryEnabled; + + public static final String JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT = "secondary_routing_announcement"; + private Boolean secondaryRoutingAnnouncement; + + public static final String JSON_PROPERTY_SECONDARY_CLOUD_IP = "secondary_cloud_ip"; + private String secondaryCloudIp; + + public VirtualCrossConnectPatch1() { + } + + public VirtualCrossConnectPatch1 primaryEnabled(Boolean primaryEnabled) { + this.primaryEnabled = primaryEnabled; + return this; + } + + /** + * Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit. + * @return primaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the primary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryEnabled() { + return primaryEnabled; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryEnabled(Boolean primaryEnabled) { + this.primaryEnabled = primaryEnabled; + } + + + public VirtualCrossConnectPatch1 primaryRoutingAnnouncement(Boolean primaryRoutingAnnouncement) { + this.primaryRoutingAnnouncement = primaryRoutingAnnouncement; + return this; + } + + /** + * Whether the primary BGP route is being announced. + * @return primaryRoutingAnnouncement + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Whether the primary BGP route is being announced.") + @JsonProperty(JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getPrimaryRoutingAnnouncement() { + return primaryRoutingAnnouncement; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryRoutingAnnouncement(Boolean primaryRoutingAnnouncement) { + this.primaryRoutingAnnouncement = primaryRoutingAnnouncement; + } + + + public VirtualCrossConnectPatch1 primaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. + * @return primaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.2", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.") + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrimaryCloudIp() { + return primaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_PRIMARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPrimaryCloudIp(String primaryCloudIp) { + this.primaryCloudIp = primaryCloudIp; + } + + + public VirtualCrossConnectPatch1 secondaryEnabled(Boolean secondaryEnabled) { + this.secondaryEnabled = secondaryEnabled; + return this; + } + + /** + * Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit. + * @return secondaryEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "true", value = "Indicates whether the secondary circuit is enabled. Setting this to `false` will disable the circuit.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryEnabled() { + return secondaryEnabled; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_ENABLED) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryEnabled(Boolean secondaryEnabled) { + this.secondaryEnabled = secondaryEnabled; + } + + + public VirtualCrossConnectPatch1 secondaryRoutingAnnouncement(Boolean secondaryRoutingAnnouncement) { + this.secondaryRoutingAnnouncement = secondaryRoutingAnnouncement; + return this; + } + + /** + * Whether the secondary BGP route is being announced. + * @return secondaryRoutingAnnouncement + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "false", value = "Whether the secondary BGP route is being announced.") + @JsonProperty(JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Boolean getSecondaryRoutingAnnouncement() { + return secondaryRoutingAnnouncement; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_ROUTING_ANNOUNCEMENT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryRoutingAnnouncement(Boolean secondaryRoutingAnnouncement) { + this.secondaryRoutingAnnouncement = secondaryRoutingAnnouncement; + } + + + public VirtualCrossConnectPatch1 secondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + return this; + } + + /** + * The IP address assigned for your side of the Virtual Cross Connect.<br /><br />If none is provided, one will be generated for you.<br /><br />This value can not be patched once the VXC has bene provisioned. + * @return secondaryCloudIp + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "169.254.0.4", value = "The IP address assigned for your side of the Virtual Cross Connect.

If none is provided, one will be generated for you.

This value can not be patched once the VXC has bene provisioned.") + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSecondaryCloudIp() { + return secondaryCloudIp; + } + + + @JsonProperty(JSON_PROPERTY_SECONDARY_CLOUD_IP) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecondaryCloudIp(String secondaryCloudIp) { + this.secondaryCloudIp = secondaryCloudIp; + } + + + /** + * Return true if this VirtualCrossConnectPatch_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectPatch1 virtualCrossConnectPatch1 = (VirtualCrossConnectPatch1) o; + return Objects.equals(this.primaryEnabled, virtualCrossConnectPatch1.primaryEnabled) && + Objects.equals(this.primaryRoutingAnnouncement, virtualCrossConnectPatch1.primaryRoutingAnnouncement) && + Objects.equals(this.primaryCloudIp, virtualCrossConnectPatch1.primaryCloudIp) && + Objects.equals(this.secondaryEnabled, virtualCrossConnectPatch1.secondaryEnabled) && + Objects.equals(this.secondaryRoutingAnnouncement, virtualCrossConnectPatch1.secondaryRoutingAnnouncement) && + Objects.equals(this.secondaryCloudIp, virtualCrossConnectPatch1.secondaryCloudIp); + } + + @Override + public int hashCode() { + return Objects.hash(primaryEnabled, primaryRoutingAnnouncement, primaryCloudIp, secondaryEnabled, secondaryRoutingAnnouncement, secondaryCloudIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectPatch1 {\n"); + sb.append(" primaryEnabled: ").append(toIndentedString(primaryEnabled)).append("\n"); + sb.append(" primaryRoutingAnnouncement: ").append(toIndentedString(primaryRoutingAnnouncement)).append("\n"); + sb.append(" primaryCloudIp: ").append(toIndentedString(primaryCloudIp)).append("\n"); + sb.append(" secondaryEnabled: ").append(toIndentedString(secondaryEnabled)).append("\n"); + sb.append(" secondaryRoutingAnnouncement: ").append(toIndentedString(secondaryRoutingAnnouncement)).append("\n"); + sb.append(" secondaryCloudIp: ").append(toIndentedString(secondaryCloudIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion.java new file mode 100644 index 00000000..36492ccc --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion.java @@ -0,0 +1,361 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.VirtualCrossConnectRegion1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectRegion + */ +@JsonPropertyOrder({ + VirtualCrossConnectRegion.JSON_PROPERTY_ID, + VirtualCrossConnectRegion.JSON_PROPERTY_RECORD_TYPE, + VirtualCrossConnectRegion.JSON_PROPERTY_CREATED_AT, + VirtualCrossConnectRegion.JSON_PROPERTY_UPDATED_AT, + VirtualCrossConnectRegion.JSON_PROPERTY_REGION_CODE, + VirtualCrossConnectRegion.JSON_PROPERTY_CLOUD_PROVIDER, + VirtualCrossConnectRegion.JSON_PROPERTY_CLOUD_REGION, + VirtualCrossConnectRegion.JSON_PROPERTY_BANDWIDTH_MBPS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectRegion { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + */ + public enum CloudProviderEnum { + AWS("aws"), + + AZURE("azure"), + + GCE("gce"); + + private String value; + + CloudProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloudProviderEnum fromValue(String value) { + for (CloudProviderEnum b : CloudProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider"; + private CloudProviderEnum cloudProvider; + + public static final String JSON_PROPERTY_CLOUD_REGION = "cloud_region"; + private String cloudRegion; + + public static final String JSON_PROPERTY_BANDWIDTH_MBPS = "bandwidth_mbps"; + private List bandwidthMbps = null; + + public VirtualCrossConnectRegion() { + } + + @JsonCreator + public VirtualCrossConnectRegion( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "virtual_cross_connect_region", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public VirtualCrossConnectRegion regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region the interface is deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region the interface is deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + public VirtualCrossConnectRegion cloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + * @return cloudProvider + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "aws", value = "The Virtual Private Cloud with which you would like to establish a cross connect.") + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CloudProviderEnum getCloudProvider() { + return cloudProvider; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public VirtualCrossConnectRegion cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region where your Virtual Private Cloud hosts are located. + * @return cloudRegion + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "us-east-1", value = "The region where your Virtual Private Cloud hosts are located.") + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCloudRegion() { + return cloudRegion; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + + + public VirtualCrossConnectRegion bandwidthMbps(List bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + return this; + } + + public VirtualCrossConnectRegion addBandwidthMbpsItem(BigDecimal bandwidthMbpsItem) { + if (this.bandwidthMbps == null) { + this.bandwidthMbps = new ArrayList<>(); + } + this.bandwidthMbps.add(bandwidthMbpsItem); + return this; + } + + /** + * The available throughput in Megabits per Second (Mbps) for your Virtual Cross Connect. + * @return bandwidthMbps + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[50,100,200,500]", value = "The available throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.") + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getBandwidthMbps() { + return bandwidthMbps; + } + + + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBandwidthMbps(List bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + } + + + /** + * Return true if this VirtualCrossConnectRegion object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectRegion virtualCrossConnectRegion = (VirtualCrossConnectRegion) o; + return Objects.equals(this.id, virtualCrossConnectRegion.id) && + Objects.equals(this.recordType, virtualCrossConnectRegion.recordType) && + Objects.equals(this.createdAt, virtualCrossConnectRegion.createdAt) && + Objects.equals(this.updatedAt, virtualCrossConnectRegion.updatedAt) && + Objects.equals(this.regionCode, virtualCrossConnectRegion.regionCode) && + Objects.equals(this.cloudProvider, virtualCrossConnectRegion.cloudProvider) && + Objects.equals(this.cloudRegion, virtualCrossConnectRegion.cloudRegion) && + Objects.equals(this.bandwidthMbps, virtualCrossConnectRegion.bandwidthMbps); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, regionCode, cloudProvider, cloudRegion, bandwidthMbps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectRegion {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" bandwidthMbps: ").append(toIndentedString(bandwidthMbps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1.java new file mode 100644 index 00000000..eafe9968 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1.java @@ -0,0 +1,286 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectRegion1 + */ +@JsonPropertyOrder({ + VirtualCrossConnectRegion1.JSON_PROPERTY_RECORD_TYPE, + VirtualCrossConnectRegion1.JSON_PROPERTY_REGION_CODE, + VirtualCrossConnectRegion1.JSON_PROPERTY_CLOUD_PROVIDER, + VirtualCrossConnectRegion1.JSON_PROPERTY_CLOUD_REGION, + VirtualCrossConnectRegion1.JSON_PROPERTY_BANDWIDTH_MBPS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectRegion1 { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + */ + public enum CloudProviderEnum { + AWS("aws"), + + AZURE("azure"), + + GCE("gce"); + + private String value; + + CloudProviderEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CloudProviderEnum fromValue(String value) { + for (CloudProviderEnum b : CloudProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CLOUD_PROVIDER = "cloud_provider"; + private CloudProviderEnum cloudProvider; + + public static final String JSON_PROPERTY_CLOUD_REGION = "cloud_region"; + private String cloudRegion; + + public static final String JSON_PROPERTY_BANDWIDTH_MBPS = "bandwidth_mbps"; + private List bandwidthMbps = null; + + public VirtualCrossConnectRegion1() { + } + + @JsonCreator + public VirtualCrossConnectRegion1( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "virtual_cross_connect_region", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + public VirtualCrossConnectRegion1 regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region the interface is deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region the interface is deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + public VirtualCrossConnectRegion1 cloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + return this; + } + + /** + * The Virtual Private Cloud with which you would like to establish a cross connect. + * @return cloudProvider + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "aws", value = "The Virtual Private Cloud with which you would like to establish a cross connect.") + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CloudProviderEnum getCloudProvider() { + return cloudProvider; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_PROVIDER) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudProvider(CloudProviderEnum cloudProvider) { + this.cloudProvider = cloudProvider; + } + + + public VirtualCrossConnectRegion1 cloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + return this; + } + + /** + * The region where your Virtual Private Cloud hosts are located. + * @return cloudRegion + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "us-east-1", value = "The region where your Virtual Private Cloud hosts are located.") + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCloudRegion() { + return cloudRegion; + } + + + @JsonProperty(JSON_PROPERTY_CLOUD_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCloudRegion(String cloudRegion) { + this.cloudRegion = cloudRegion; + } + + + public VirtualCrossConnectRegion1 bandwidthMbps(List bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + return this; + } + + public VirtualCrossConnectRegion1 addBandwidthMbpsItem(BigDecimal bandwidthMbpsItem) { + if (this.bandwidthMbps == null) { + this.bandwidthMbps = new ArrayList<>(); + } + this.bandwidthMbps.add(bandwidthMbpsItem); + return this; + } + + /** + * The available throughput in Megabits per Second (Mbps) for your Virtual Cross Connect. + * @return bandwidthMbps + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[50,100,200,500]", value = "The available throughput in Megabits per Second (Mbps) for your Virtual Cross Connect.") + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getBandwidthMbps() { + return bandwidthMbps; + } + + + @JsonProperty(JSON_PROPERTY_BANDWIDTH_MBPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setBandwidthMbps(List bandwidthMbps) { + this.bandwidthMbps = bandwidthMbps; + } + + + /** + * Return true if this VirtualCrossConnectRegion_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectRegion1 virtualCrossConnectRegion1 = (VirtualCrossConnectRegion1) o; + return Objects.equals(this.recordType, virtualCrossConnectRegion1.recordType) && + Objects.equals(this.regionCode, virtualCrossConnectRegion1.regionCode) && + Objects.equals(this.cloudProvider, virtualCrossConnectRegion1.cloudProvider) && + Objects.equals(this.cloudRegion, virtualCrossConnectRegion1.cloudRegion) && + Objects.equals(this.bandwidthMbps, virtualCrossConnectRegion1.bandwidthMbps); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, regionCode, cloudProvider, cloudRegion, bandwidthMbps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectRegion1 {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" cloudProvider: ").append(toIndentedString(cloudProvider)).append("\n"); + sb.append(" cloudRegion: ").append(toIndentedString(cloudRegion)).append("\n"); + sb.append(" bandwidthMbps: ").append(toIndentedString(bandwidthMbps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200Response.java b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200Response.java new file mode 100644 index 00000000..eca02626 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.VirtualCrossConnectRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * VirtualCrossConnectRegionGet200Response + */ +@JsonPropertyOrder({ + VirtualCrossConnectRegionGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class VirtualCrossConnectRegionGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private VirtualCrossConnectRegion data; + + public VirtualCrossConnectRegionGet200Response() { + } + + public VirtualCrossConnectRegionGet200Response data(VirtualCrossConnectRegion data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public VirtualCrossConnectRegion getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(VirtualCrossConnectRegion data) { + this.data = data; + } + + + /** + * Return true if this VirtualCrossConnectRegionGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualCrossConnectRegionGet200Response virtualCrossConnectRegionGet200Response = (VirtualCrossConnectRegionGet200Response) o; + return Objects.equals(this.data, virtualCrossConnectRegionGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualCrossConnectRegionGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WdrReport.java b/src/main/java/com/telnyx/sdk/model/WdrReport.java index 2da46d3f..6706f3b8 100644 --- a/src/main/java/com/telnyx/sdk/model/WdrReport.java +++ b/src/main/java/com/telnyx/sdk/model/WdrReport.java @@ -110,6 +110,20 @@ public static StatusEnum fromValue(String value) { public WdrReport() { } + @JsonCreator + public WdrReport( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + /** * Identifies the resource. * @return id diff --git a/src/main/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecord.java b/src/main/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecord.java new file mode 100644 index 00000000..e13ef1ee --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecord.java @@ -0,0 +1,374 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WhatsAppConversationDetailRecord + */ +@JsonPropertyOrder({ + WhatsAppConversationDetailRecord.JSON_PROPERTY_RECIPIENT_REGION_CODE, + WhatsAppConversationDetailRecord.JSON_PROPERTY_CURRENCY, + WhatsAppConversationDetailRecord.JSON_PROPERTY_CREATED_AT, + WhatsAppConversationDetailRecord.JSON_PROPERTY_WHATSAPP_FEE, + WhatsAppConversationDetailRecord.JSON_PROPERTY_CONVERSATION_ID, + WhatsAppConversationDetailRecord.JSON_PROPERTY_CONVERSATION_ORIGIN, + WhatsAppConversationDetailRecord.JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID, + WhatsAppConversationDetailRecord.JSON_PROPERTY_RECORD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WhatsAppConversationDetailRecord { + public static final String JSON_PROPERTY_RECIPIENT_REGION_CODE = "recipient_region_code"; + private String recipientRegionCode; + + public static final String JSON_PROPERTY_CURRENCY = "currency"; + private String currency; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private OffsetDateTime createdAt; + + public static final String JSON_PROPERTY_WHATSAPP_FEE = "whatsapp_fee"; + private String whatsappFee; + + public static final String JSON_PROPERTY_CONVERSATION_ID = "conversation_id"; + private String conversationId; + + /** + * Whatsapp Conversation Origin + */ + public enum ConversationOriginEnum { + BUSINESS_INITIATED("business_initiated"), + + USER_INITIATED("user_initiated"), + + REFERRAL_CONVERSION("referral_conversion"); + + private String value; + + ConversationOriginEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ConversationOriginEnum fromValue(String value) { + for (ConversationOriginEnum b : ConversationOriginEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CONVERSATION_ORIGIN = "conversation_origin"; + private ConversationOriginEnum conversationOrigin; + + public static final String JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID = "whatsapp_business_account_id"; + private String whatsappBusinessAccountId; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType = "whatsapp-conversation_detail_record"; + + public WhatsAppConversationDetailRecord() { + } + + public WhatsAppConversationDetailRecord recipientRegionCode(String recipientRegionCode) { + this.recipientRegionCode = recipientRegionCode; + return this; + } + + /** + * CLDR two-letter region-code of recipient + * @return recipientRegionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "US", value = "CLDR two-letter region-code of recipient") + @JsonProperty(JSON_PROPERTY_RECIPIENT_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecipientRegionCode() { + return recipientRegionCode; + } + + + @JsonProperty(JSON_PROPERTY_RECIPIENT_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecipientRegionCode(String recipientRegionCode) { + this.recipientRegionCode = recipientRegionCode; + } + + + public WhatsAppConversationDetailRecord currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Telnyx account currency used to describe monetary values, including billing cost + * @return currency + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "USD", value = "Telnyx account currency used to describe monetary values, including billing cost") + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCurrency() { + return currency; + } + + + @JsonProperty(JSON_PROPERTY_CURRENCY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCurrency(String currency) { + this.currency = currency; + } + + + public WhatsAppConversationDetailRecord createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * UTC time when the message was created + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2021-08-06T03:32:01.125Z", value = "UTC time when the message was created") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public WhatsAppConversationDetailRecord whatsappFee(String whatsappFee) { + this.whatsappFee = whatsappFee; + return this; + } + + /** + * Currency amount for WhatsApp cost + * @return whatsappFee + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "0.003", value = "Currency amount for WhatsApp cost") + @JsonProperty(JSON_PROPERTY_WHATSAPP_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getWhatsappFee() { + return whatsappFee; + } + + + @JsonProperty(JSON_PROPERTY_WHATSAPP_FEE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWhatsappFee(String whatsappFee) { + this.whatsappFee = whatsappFee; + } + + + public WhatsAppConversationDetailRecord conversationId(String conversationId) { + this.conversationId = conversationId; + return this; + } + + /** + * Whatsapp Conversation ID + * @return conversationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "f44ae083-c800-4433-baac-b439e5270aa4", value = "Whatsapp Conversation ID") + @JsonProperty(JSON_PROPERTY_CONVERSATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConversationId() { + return conversationId; + } + + + @JsonProperty(JSON_PROPERTY_CONVERSATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConversationId(String conversationId) { + this.conversationId = conversationId; + } + + + public WhatsAppConversationDetailRecord conversationOrigin(ConversationOriginEnum conversationOrigin) { + this.conversationOrigin = conversationOrigin; + return this; + } + + /** + * Whatsapp Conversation Origin + * @return conversationOrigin + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whatsapp Conversation Origin") + @JsonProperty(JSON_PROPERTY_CONVERSATION_ORIGIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ConversationOriginEnum getConversationOrigin() { + return conversationOrigin; + } + + + @JsonProperty(JSON_PROPERTY_CONVERSATION_ORIGIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConversationOrigin(ConversationOriginEnum conversationOrigin) { + this.conversationOrigin = conversationOrigin; + } + + + public WhatsAppConversationDetailRecord whatsappBusinessAccountId(String whatsappBusinessAccountId) { + this.whatsappBusinessAccountId = whatsappBusinessAccountId; + return this; + } + + /** + * Whatsapp Business Account ID + * @return whatsappBusinessAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "421452453", value = "Whatsapp Business Account ID") + @JsonProperty(JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getWhatsappBusinessAccountId() { + return whatsappBusinessAccountId; + } + + + @JsonProperty(JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWhatsappBusinessAccountId(String whatsappBusinessAccountId) { + this.whatsappBusinessAccountId = whatsappBusinessAccountId; + } + + + public WhatsAppConversationDetailRecord recordType(String recordType) { + this.recordType = recordType; + return this; + } + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "whatsapp-conversation_detail_record", required = true, value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRecordType(String recordType) { + this.recordType = recordType; + } + + + /** + * Return true if this WhatsAppConversationDetailRecord object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WhatsAppConversationDetailRecord whatsAppConversationDetailRecord = (WhatsAppConversationDetailRecord) o; + return Objects.equals(this.recipientRegionCode, whatsAppConversationDetailRecord.recipientRegionCode) && + Objects.equals(this.currency, whatsAppConversationDetailRecord.currency) && + Objects.equals(this.createdAt, whatsAppConversationDetailRecord.createdAt) && + Objects.equals(this.whatsappFee, whatsAppConversationDetailRecord.whatsappFee) && + Objects.equals(this.conversationId, whatsAppConversationDetailRecord.conversationId) && + Objects.equals(this.conversationOrigin, whatsAppConversationDetailRecord.conversationOrigin) && + Objects.equals(this.whatsappBusinessAccountId, whatsAppConversationDetailRecord.whatsappBusinessAccountId) && + Objects.equals(this.recordType, whatsAppConversationDetailRecord.recordType); + } + + @Override + public int hashCode() { + return Objects.hash(recipientRegionCode, currency, createdAt, whatsappFee, conversationId, conversationOrigin, whatsappBusinessAccountId, recordType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WhatsAppConversationDetailRecord {\n"); + sb.append(" recipientRegionCode: ").append(toIndentedString(recipientRegionCode)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" whatsappFee: ").append(toIndentedString(whatsappFee)).append("\n"); + sb.append(" conversationId: ").append(toIndentedString(conversationId)).append("\n"); + sb.append(" conversationOrigin: ").append(toIndentedString(conversationOrigin)).append("\n"); + sb.append(" whatsappBusinessAccountId: ").append(toIndentedString(whatsappBusinessAccountId)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WhatsAppDetailRecord.java b/src/main/java/com/telnyx/sdk/model/WhatsAppDetailRecord.java index b37470fa..4df797df 100644 --- a/src/main/java/com/telnyx/sdk/model/WhatsAppDetailRecord.java +++ b/src/main/java/com/telnyx/sdk/model/WhatsAppDetailRecord.java @@ -48,6 +48,9 @@ WhatsAppDetailRecord.JSON_PROPERTY_WEBHOOK_ID, WhatsAppDetailRecord.JSON_PROPERTY_TELNYX_FEE, WhatsAppDetailRecord.JSON_PROPERTY_WHATSAPP_FEE, + WhatsAppDetailRecord.JSON_PROPERTY_CONVERSATION_ID, + WhatsAppDetailRecord.JSON_PROPERTY_CONVERSATION_ORIGIN, + WhatsAppDetailRecord.JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID, WhatsAppDetailRecord.JSON_PROPERTY_RECORD_TYPE }) @javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") @@ -208,6 +211,52 @@ public static DirectionEnum fromValue(String value) { public static final String JSON_PROPERTY_WHATSAPP_FEE = "whatsapp_fee"; private String whatsappFee; + public static final String JSON_PROPERTY_CONVERSATION_ID = "conversation_id"; + private String conversationId; + + /** + * Whatsapp Conversation Origin + */ + public enum ConversationOriginEnum { + BUSINESS_INITIATED("business_initiated"), + + USER_INITIATED("user_initiated"), + + REFERRAL_CONVERSION("referral_conversion"); + + private String value; + + ConversationOriginEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ConversationOriginEnum fromValue(String value) { + for (ConversationOriginEnum b : ConversationOriginEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CONVERSATION_ORIGIN = "conversation_origin"; + private ConversationOriginEnum conversationOrigin; + + public static final String JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID = "whatsapp_business_account_id"; + private String whatsappBusinessAccountId; + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; private String recordType = "whatsapp_detail_record"; @@ -604,6 +653,84 @@ public void setWhatsappFee(String whatsappFee) { } + public WhatsAppDetailRecord conversationId(String conversationId) { + this.conversationId = conversationId; + return this; + } + + /** + * Whatsapp Conversation ID + * @return conversationId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "f44ae083-c800-4433-baac-b439e5270aa4", value = "Whatsapp Conversation ID") + @JsonProperty(JSON_PROPERTY_CONVERSATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getConversationId() { + return conversationId; + } + + + @JsonProperty(JSON_PROPERTY_CONVERSATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConversationId(String conversationId) { + this.conversationId = conversationId; + } + + + public WhatsAppDetailRecord conversationOrigin(ConversationOriginEnum conversationOrigin) { + this.conversationOrigin = conversationOrigin; + return this; + } + + /** + * Whatsapp Conversation Origin + * @return conversationOrigin + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whatsapp Conversation Origin") + @JsonProperty(JSON_PROPERTY_CONVERSATION_ORIGIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ConversationOriginEnum getConversationOrigin() { + return conversationOrigin; + } + + + @JsonProperty(JSON_PROPERTY_CONVERSATION_ORIGIN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setConversationOrigin(ConversationOriginEnum conversationOrigin) { + this.conversationOrigin = conversationOrigin; + } + + + public WhatsAppDetailRecord whatsappBusinessAccountId(String whatsappBusinessAccountId) { + this.whatsappBusinessAccountId = whatsappBusinessAccountId; + return this; + } + + /** + * Whatsapp Business Account ID + * @return whatsappBusinessAccountId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "421452453", value = "Whatsapp Business Account ID") + @JsonProperty(JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getWhatsappBusinessAccountId() { + return whatsappBusinessAccountId; + } + + + @JsonProperty(JSON_PROPERTY_WHATSAPP_BUSINESS_ACCOUNT_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWhatsappBusinessAccountId(String whatsappBusinessAccountId) { + this.whatsappBusinessAccountId = whatsappBusinessAccountId; + } + + public WhatsAppDetailRecord recordType(String recordType) { this.recordType = recordType; return this; @@ -657,12 +784,15 @@ public boolean equals(Object o) { Objects.equals(this.webhookId, whatsAppDetailRecord.webhookId) && Objects.equals(this.telnyxFee, whatsAppDetailRecord.telnyxFee) && Objects.equals(this.whatsappFee, whatsAppDetailRecord.whatsappFee) && + Objects.equals(this.conversationId, whatsAppDetailRecord.conversationId) && + Objects.equals(this.conversationOrigin, whatsAppDetailRecord.conversationOrigin) && + Objects.equals(this.whatsappBusinessAccountId, whatsAppDetailRecord.whatsappBusinessAccountId) && Objects.equals(this.recordType, whatsAppDetailRecord.recordType); } @Override public int hashCode() { - return Objects.hash(id, version, senderId, recipientId, messageType, messageStatus, direction, recipientRegionCode, currency, whatsappErrorCode, createdAt, webhookReceivedAt, webhookId, telnyxFee, whatsappFee, recordType); + return Objects.hash(id, version, senderId, recipientId, messageType, messageStatus, direction, recipientRegionCode, currency, whatsappErrorCode, createdAt, webhookReceivedAt, webhookId, telnyxFee, whatsappFee, conversationId, conversationOrigin, whatsappBusinessAccountId, recordType); } @Override @@ -684,6 +814,9 @@ public String toString() { sb.append(" webhookId: ").append(toIndentedString(webhookId)).append("\n"); sb.append(" telnyxFee: ").append(toIndentedString(telnyxFee)).append("\n"); sb.append(" whatsappFee: ").append(toIndentedString(whatsappFee)).append("\n"); + sb.append(" conversationId: ").append(toIndentedString(conversationId)).append("\n"); + sb.append(" conversationOrigin: ").append(toIndentedString(conversationOrigin)).append("\n"); + sb.append(" whatsappBusinessAccountId: ").append(toIndentedString(whatsappBusinessAccountId)).append("\n"); sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1.java b/src/main/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1.java new file mode 100644 index 00000000..ba43da3b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1.java @@ -0,0 +1,144 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WhatsAppMessageTemplate1 + */ +@JsonPropertyOrder({ + WhatsAppMessageTemplate1.JSON_PROPERTY_ID, + WhatsAppMessageTemplate1.JSON_PROPERTY_RECORD_TYPE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WhatsAppMessageTemplate1 { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public WhatsAppMessageTemplate1() { + } + + public WhatsAppMessageTemplate1 id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "12ac836e1c292", value = "") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public WhatsAppMessageTemplate1 recordType(String recordType) { + this.recordType = recordType; + return this; + } + + /** + * Get recordType + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "whatsapp_message_template", value = "") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordType(String recordType) { + this.recordType = recordType; + } + + + /** + * Return true if this WhatsApp_Message_Template_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WhatsAppMessageTemplate1 whatsAppMessageTemplate1 = (WhatsAppMessageTemplate1) o; + return Objects.equals(this.id, whatsAppMessageTemplate1.id) && + Objects.equals(this.recordType, whatsAppMessageTemplate1.recordType); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WhatsAppMessageTemplate1 {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WhatsAppUser.java b/src/main/java/com/telnyx/sdk/model/WhatsAppUser.java index 70ca5978..dd3c239f 100644 --- a/src/main/java/com/telnyx/sdk/model/WhatsAppUser.java +++ b/src/main/java/com/telnyx/sdk/model/WhatsAppUser.java @@ -84,6 +84,14 @@ public static RecordTypeEnum fromValue(String value) { public WhatsAppUser() { } + @JsonCreator + public WhatsAppUser( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) RecordTypeEnum recordType + ) { + this(); + this.recordType = recordType; + } + /** * Identifies the type of the resource. * @return recordType diff --git a/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplate.java b/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplate.java new file mode 100644 index 00000000..2647ce5b --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplate.java @@ -0,0 +1,645 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; + + +/** + * WhatsappMessageTemplate + */ +@JsonPropertyOrder({ + WhatsappMessageTemplate.JSON_PROPERTY_RECORD_TYPE, + WhatsappMessageTemplate.JSON_PROPERTY_CATEGORY, + WhatsappMessageTemplate.JSON_PROPERTY_COMPONENTS, + WhatsappMessageTemplate.JSON_PROPERTY_ID, + WhatsappMessageTemplate.JSON_PROPERTY_LANGUAGE, + WhatsappMessageTemplate.JSON_PROPERTY_NAME, + WhatsappMessageTemplate.JSON_PROPERTY_QUALITY_SCORE, + WhatsappMessageTemplate.JSON_PROPERTY_REJECTED_REASON, + WhatsappMessageTemplate.JSON_PROPERTY_STATUS +}) + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WhatsappMessageTemplate { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + /** + * The category of the message template, The possible values are provided by WhatsApp and are subject to change. + */ + public enum CategoryEnum { + ACCOUNT_UPDATE("ACCOUNT_UPDATE"), + + PAYMENT_UPDATE("PAYMENT_UPDATE"), + + PERSONAL_FINANCE_UPDATE("PERSONAL_FINANCE_UPDATE"), + + SHIPPING_UPDATE("SHIPPING_UPDATE"), + + RESERVATION_UPDATE("RESERVATION_UPDATE"), + + ISSUE_RESOLUTION("ISSUE_RESOLUTION"), + + APPOINTMENT_UPDATE("APPOINTMENT_UPDATE"), + + TRANSPORTATION_UPDATE("TRANSPORTATION_UPDATE"), + + TICKET_UPDATE("TICKET_UPDATE"), + + ALERT_UPDATE("ALERT_UPDATE"), + + AUTO_REPLY("AUTO_REPLY"); + + private String value; + + CategoryEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static CategoryEnum fromValue(String value) { + for (CategoryEnum b : CategoryEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_CATEGORY = "category"; + private CategoryEnum category; + + public static final String JSON_PROPERTY_COMPONENTS = "components"; + private List components = null; + + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + /** + * The language of the message template, The available languages are provided by WhatsApp and are subject to change. + */ + public enum LanguageEnum { + AF("af"), + + SQ("sq"), + + AR("ar"), + + AZ("az"), + + BN("bn"), + + BG("bg"), + + CA("ca"), + + ZH_CN("zh_CN"), + + ZH_HK("zh_HK"), + + ZH_TW("zh_TW"), + + HR("hr"), + + CS("cs"), + + DA("da"), + + NL("nl"), + + EN("en"), + + EN_GB("en_GB"), + + EN_US("en_US"), + + ET("et"), + + FIL("fil"), + + FI("fi"), + + FR("fr"), + + KA("ka"), + + DE("de"), + + EL("el"), + + GU("gu"), + + HA("ha"), + + HE("he"), + + HI("hi"), + + HU("hu"), + + ID("id"), + + GA("ga"), + + IT("it"), + + JA("ja"), + + KN("kn"), + + KK("kk"), + + RW_RW("rw_RW"), + + KO("ko"), + + KY_KG("ky_KG"), + + LO("lo"), + + LV("lv"), + + LT("lt"), + + MK("mk"), + + MS("ms"), + + ML("ml"), + + MR("mr"), + + NB("nb"), + + FA("fa"), + + PL("pl"), + + PT_BR("pt_BR"), + + PT_PT("pt_PT"), + + PA("pa"), + + RO("ro"), + + RU("ru"), + + SR("sr"), + + SK("sk"), + + SL("sl"), + + ES("es"), + + ES_AR("es_AR"), + + ES_ES("es_ES"), + + ES_MX("es_MX"), + + SW("sw"), + + SV("sv"), + + TA("ta"), + + TE("te"), + + TH("th"), + + TR("tr"), + + UK("uk"), + + UR("ur"), + + UZ("uz"), + + VI("vi"), + + ZU("zu"); + + private String value; + + LanguageEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static LanguageEnum fromValue(String value) { + for (LanguageEnum b : LanguageEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_LANGUAGE = "language"; + private LanguageEnum language; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_QUALITY_SCORE = "quality_score"; + private WhatsappMessageTemplateQualityScore qualityScore; + + public static final String JSON_PROPERTY_REJECTED_REASON = "rejected_reason"; + private String rejectedReason; + + /** + * The current status of the message template, The possible values are provided by WhatsApp and are subject to change. + */ + public enum StatusEnum { + APPROVED("APPROVED"), + + IN_APPEAL("IN_APPEAL"), + + PENDING("PENDING"), + + REJECTED("REJECTED"), + + PENDING_DELETION("PENDING_DELETION"), + + DELETED("DELETED"), + + DISABLED("DISABLED"); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_STATUS = "status"; + private StatusEnum status; + + public WhatsappMessageTemplate() { + } + + public WhatsappMessageTemplate recordType(String recordType) { + this.recordType = recordType; + return this; + } + + /** + * Telnyx record type + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "whatsapp_message_template", value = "Telnyx record type") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRecordType(String recordType) { + this.recordType = recordType; + } + + + public WhatsappMessageTemplate category(CategoryEnum category) { + this.category = category; + return this; + } + + /** + * The category of the message template, The possible values are provided by WhatsApp and are subject to change. + * @return category + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "APPOINTMENT_UPDATE", value = "The category of the message template, The possible values are provided by WhatsApp and are subject to change.") + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CategoryEnum getCategory() { + return category; + } + + + @JsonProperty(JSON_PROPERTY_CATEGORY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCategory(CategoryEnum category) { + this.category = category; + } + + + public WhatsappMessageTemplate components(List components) { + this.components = components; + return this; + } + + public WhatsappMessageTemplate addComponentsItem(WhatsappMessageTemplateComponentsInner componentsItem) { + if (this.components == null) { + this.components = new ArrayList<>(); + } + this.components.add(componentsItem); + return this; + } + + /** + * The components of the message template + * @return components + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The components of the message template") + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getComponents() { + return components; + } + + + @JsonProperty(JSON_PROPERTY_COMPONENTS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setComponents(List components) { + this.components = components; + } + + + public WhatsappMessageTemplate id(String id) { + this.id = id; + return this; + } + + /** + * The id of the template on WhatsApp + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "23492349423", value = "The id of the template on WhatsApp") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public WhatsappMessageTemplate language(LanguageEnum language) { + this.language = language; + return this; + } + + /** + * The language of the message template, The available languages are provided by WhatsApp and are subject to change. + * @return language + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "en_US", value = "The language of the message template, The available languages are provided by WhatsApp and are subject to change.") + @JsonProperty(JSON_PROPERTY_LANGUAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public LanguageEnum getLanguage() { + return language; + } + + + @JsonProperty(JSON_PROPERTY_LANGUAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLanguage(LanguageEnum language) { + this.language = language; + } + + + public WhatsappMessageTemplate name(String name) { + this.name = name; + return this; + } + + /** + * This name will act as an identifier grouping similar message templates together, the same name can be used to different languages. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "sample_happy_hour_announcement", value = "This name will act as an identifier grouping similar message templates together, the same name can be used to different languages.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public WhatsappMessageTemplate qualityScore(WhatsappMessageTemplateQualityScore qualityScore) { + this.qualityScore = qualityScore; + return this; + } + + /** + * Get qualityScore + * @return qualityScore + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_QUALITY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WhatsappMessageTemplateQualityScore getQualityScore() { + return qualityScore; + } + + + @JsonProperty(JSON_PROPERTY_QUALITY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setQualityScore(WhatsappMessageTemplateQualityScore qualityScore) { + this.qualityScore = qualityScore; + } + + + public WhatsappMessageTemplate rejectedReason(String rejectedReason) { + this.rejectedReason = rejectedReason; + return this; + } + + /** + * Get rejectedReason + * @return rejectedReason + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "NONE", value = "") + @JsonProperty(JSON_PROPERTY_REJECTED_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRejectedReason() { + return rejectedReason; + } + + + @JsonProperty(JSON_PROPERTY_REJECTED_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRejectedReason(String rejectedReason) { + this.rejectedReason = rejectedReason; + } + + + public WhatsappMessageTemplate status(StatusEnum status) { + this.status = status; + return this; + } + + /** + * The current status of the message template, The possible values are provided by WhatsApp and are subject to change. + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "APPROVED", value = "The current status of the message template, The possible values are provided by WhatsApp and are subject to change.") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StatusEnum getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(StatusEnum status) { + this.status = status; + } + + + /** + * Return true if this WhatsappMessageTemplate object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WhatsappMessageTemplate whatsappMessageTemplate = (WhatsappMessageTemplate) o; + return Objects.equals(this.recordType, whatsappMessageTemplate.recordType) && + Objects.equals(this.category, whatsappMessageTemplate.category) && + Objects.equals(this.components, whatsappMessageTemplate.components) && + Objects.equals(this.id, whatsappMessageTemplate.id) && + Objects.equals(this.language, whatsappMessageTemplate.language) && + Objects.equals(this.name, whatsappMessageTemplate.name) && + Objects.equals(this.qualityScore, whatsappMessageTemplate.qualityScore) && + Objects.equals(this.rejectedReason, whatsappMessageTemplate.rejectedReason) && + Objects.equals(this.status, whatsappMessageTemplate.status); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, category, components, id, language, name, qualityScore, rejectedReason, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WhatsappMessageTemplate {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" components: ").append(toIndentedString(components)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" qualityScore: ").append(toIndentedString(qualityScore)).append("\n"); + sb.append(" rejectedReason: ").append(toIndentedString(rejectedReason)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInner.java b/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInner.java new file mode 100644 index 00000000..3450ebe2 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInner.java @@ -0,0 +1,176 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WhatsappMessageTemplateComponentsInner + */ +@JsonPropertyOrder({ + WhatsappMessageTemplateComponentsInner.JSON_PROPERTY_TYPE, + WhatsappMessageTemplateComponentsInner.JSON_PROPERTY_TEXT, + WhatsappMessageTemplateComponentsInner.JSON_PROPERTY_FORMAT +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WhatsappMessageTemplateComponentsInner { + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public static final String JSON_PROPERTY_TEXT = "text"; + private String text; + + public static final String JSON_PROPERTY_FORMAT = "format"; + private String format; + + public WhatsappMessageTemplateComponentsInner() { + } + + public WhatsappMessageTemplateComponentsInner type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "text", value = "") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + + public WhatsappMessageTemplateComponentsInner text(String text) { + this.text = text; + return this; + } + + /** + * Get text + * @return text + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Hello, {{1}}! Your appointment with {{2}} has been updated.", value = "") + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getText() { + return text; + } + + + @JsonProperty(JSON_PROPERTY_TEXT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setText(String text) { + this.text = text; + } + + + public WhatsappMessageTemplateComponentsInner format(String format) { + this.format = format; + return this; + } + + /** + * Get format + * @return format + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "VIDEO", value = "") + @JsonProperty(JSON_PROPERTY_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getFormat() { + return format; + } + + + @JsonProperty(JSON_PROPERTY_FORMAT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setFormat(String format) { + this.format = format; + } + + + /** + * Return true if this WhatsappMessageTemplate_components_inner object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WhatsappMessageTemplateComponentsInner whatsappMessageTemplateComponentsInner = (WhatsappMessageTemplateComponentsInner) o; + return Objects.equals(this.type, whatsappMessageTemplateComponentsInner.type) && + Objects.equals(this.text, whatsappMessageTemplateComponentsInner.text) && + Objects.equals(this.format, whatsappMessageTemplateComponentsInner.format); + } + + @Override + public int hashCode() { + return Objects.hash(type, text, format); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WhatsappMessageTemplateComponentsInner {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScore.java b/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScore.java new file mode 100644 index 00000000..b1258727 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScore.java @@ -0,0 +1,152 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * The quality rating shows how messages from your template have been received by your customers in a rolling window of the past 24 hours. The possible values are provided by WhatsApp and are subject to change. + */ +@ApiModel(description = "The quality rating shows how messages from your template have been received by your customers in a rolling window of the past 24 hours. The possible values are provided by WhatsApp and are subject to change.") +@JsonPropertyOrder({ + WhatsappMessageTemplateQualityScore.JSON_PROPERTY_SCORE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WhatsappMessageTemplateQualityScore { + /** + * Gets or Sets score + */ + public enum ScoreEnum { + UNKNOWN("UNKNOWN"), + + HIGH("HIGH"), + + MEDIUM("MEDIUM"), + + LOW("LOW"); + + private String value; + + ScoreEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ScoreEnum fromValue(String value) { + for (ScoreEnum b : ScoreEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_SCORE = "score"; + private ScoreEnum score; + + public WhatsappMessageTemplateQualityScore() { + } + + public WhatsappMessageTemplateQualityScore score(ScoreEnum score) { + this.score = score; + return this; + } + + /** + * Get score + * @return score + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "UNKNOWN", value = "") + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ScoreEnum getScore() { + return score; + } + + + @JsonProperty(JSON_PROPERTY_SCORE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScore(ScoreEnum score) { + this.score = score; + } + + + /** + * Return true if this WhatsappMessageTemplate_quality_score object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WhatsappMessageTemplateQualityScore whatsappMessageTemplateQualityScore = (WhatsappMessageTemplateQualityScore) o; + return Objects.equals(this.score, whatsappMessageTemplateQualityScore.score); + } + + @Override + public int hashCode() { + return Objects.hash(score); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WhatsappMessageTemplateQualityScore {\n"); + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumber.java b/src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumber.java index 34233fdb..5ac3c73e 100644 --- a/src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumber.java +++ b/src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumber.java @@ -22,13 +22,10 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WhatsappPhoneNumberWhatsappSettings; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; -import org.openapitools.jackson.nullable.JsonNullable; -import com.fasterxml.jackson.annotation.JsonIgnore; -import org.openapitools.jackson.nullable.JsonNullable; -import java.util.NoSuchElementException; import com.fasterxml.jackson.annotation.JsonPropertyOrder; import com.telnyx.sdk.JSON; @@ -70,7 +67,9 @@ public class WhatsappPhoneNumber { public enum StatusEnum { PENDING("pending"), - READY("ready"); + READY("ready"), + + DISCONNECTED("disconnected"); private String value; @@ -115,7 +114,7 @@ public static StatusEnum fromValue(String value) { private String whatsappUserId; public static final String JSON_PROPERTY_WHATSAPP_SETTINGS = "whatsapp_settings"; - private JsonNullable whatsappSettings = JsonNullable.undefined(); + private WhatsappPhoneNumberWhatsappSettings whatsappSettings; public static final String JSON_PROPERTY_CREATED_AT = "created_at"; private String createdAt; @@ -360,39 +359,31 @@ public void setWhatsappUserId(String whatsappUserId) { } - public WhatsappPhoneNumber whatsappSettings(Object whatsappSettings) { - this.whatsappSettings = JsonNullable.of(whatsappSettings); + public WhatsappPhoneNumber whatsappSettings(WhatsappPhoneNumberWhatsappSettings whatsappSettings) { + this.whatsappSettings = whatsappSettings; return this; } /** - * The WhatsApp settings associated with the business account + * Get whatsappSettings * @return whatsappSettings **/ @javax.annotation.Nullable - @ApiModelProperty(value = "The WhatsApp settings associated with the business account") - @JsonIgnore - - public Object getWhatsappSettings() { - return whatsappSettings.orElse(null); - } - + @ApiModelProperty(value = "") @JsonProperty(JSON_PROPERTY_WHATSAPP_SETTINGS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) - public JsonNullable getWhatsappSettings_JsonNullable() { + public WhatsappPhoneNumberWhatsappSettings getWhatsappSettings() { return whatsappSettings; } - + + @JsonProperty(JSON_PROPERTY_WHATSAPP_SETTINGS) - public void setWhatsappSettings_JsonNullable(JsonNullable whatsappSettings) { + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWhatsappSettings(WhatsappPhoneNumberWhatsappSettings whatsappSettings) { this.whatsappSettings = whatsappSettings; } - public void setWhatsappSettings(Object whatsappSettings) { - this.whatsappSettings = JsonNullable.of(whatsappSettings); - } - public WhatsappPhoneNumber createdAt(String createdAt) { this.createdAt = createdAt; @@ -467,25 +458,14 @@ public boolean equals(Object o) { Objects.equals(this.about, whatsappPhoneNumber.about) && Objects.equals(this.phoneNumber, whatsappPhoneNumber.phoneNumber) && Objects.equals(this.whatsappUserId, whatsappPhoneNumber.whatsappUserId) && - equalsNullable(this.whatsappSettings, whatsappPhoneNumber.whatsappSettings) && + Objects.equals(this.whatsappSettings, whatsappPhoneNumber.whatsappSettings) && Objects.equals(this.createdAt, whatsappPhoneNumber.createdAt) && Objects.equals(this.updatedAt, whatsappPhoneNumber.updatedAt); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { - return Objects.hash(recordType, id, organizationId, whatsappBusinessAccountId, status, webhookUrl, about, phoneNumber, whatsappUserId, hashCodeNullable(whatsappSettings), createdAt, updatedAt); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(recordType, id, organizationId, whatsappBusinessAccountId, status, webhookUrl, about, phoneNumber, whatsappUserId, whatsappSettings, createdAt, updatedAt); } @Override diff --git a/src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettings.java b/src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettings.java new file mode 100644 index 00000000..5340363f --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettings.java @@ -0,0 +1,250 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * The WhatsApp settings associated with the business account + */ +@ApiModel(description = "The WhatsApp settings associated with the business account") +@JsonPropertyOrder({ + WhatsappPhoneNumberWhatsappSettings.JSON_PROPERTY_ID, + WhatsappPhoneNumberWhatsappSettings.JSON_PROPERTY_DISPLAY_NAME, + WhatsappPhoneNumberWhatsappSettings.JSON_PROPERTY_DISPLAY_NAME_STATUS, + WhatsappPhoneNumberWhatsappSettings.JSON_PROPERTY_QUALITY_RATING +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WhatsappPhoneNumberWhatsappSettings { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_DISPLAY_NAME = "display_name"; + private String displayName; + + /** + * The Facebook approval status of the phone numbers display name + */ + public enum DisplayNameStatusEnum { + PENDING_REVIEW("PENDING_REVIEW"), + + APPROVED("APPROVED"), + + DECLINED("DECLINED"), + + EXPIRED("EXPIRED"), + + NONE("NONE"); + + private String value; + + DisplayNameStatusEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static DisplayNameStatusEnum fromValue(String value) { + for (DisplayNameStatusEnum b : DisplayNameStatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_DISPLAY_NAME_STATUS = "display_name_status"; + private DisplayNameStatusEnum displayNameStatus; + + public static final String JSON_PROPERTY_QUALITY_RATING = "quality_rating"; + private String qualityRating; + + public WhatsappPhoneNumberWhatsappSettings() { + } + + public WhatsappPhoneNumberWhatsappSettings id(String id) { + this.id = id; + return this; + } + + /** + * The unique ID of the phone number in Facebook + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The unique ID of the phone number in Facebook") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public WhatsappPhoneNumberWhatsappSettings displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * The display name of the phone number in the WhatsApp app + * @return displayName + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The display name of the phone number in the WhatsApp app") + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDisplayName() { + return displayName; + } + + + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + + public WhatsappPhoneNumberWhatsappSettings displayNameStatus(DisplayNameStatusEnum displayNameStatus) { + this.displayNameStatus = displayNameStatus; + return this; + } + + /** + * The Facebook approval status of the phone numbers display name + * @return displayNameStatus + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The Facebook approval status of the phone numbers display name") + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public DisplayNameStatusEnum getDisplayNameStatus() { + return displayNameStatus; + } + + + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDisplayNameStatus(DisplayNameStatusEnum displayNameStatus) { + this.displayNameStatus = displayNameStatus; + } + + + public WhatsappPhoneNumberWhatsappSettings qualityRating(String qualityRating) { + this.qualityRating = qualityRating; + return this; + } + + /** + * The quality rating of the number in the WhatsApp app + * @return qualityRating + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The quality rating of the number in the WhatsApp app") + @JsonProperty(JSON_PROPERTY_QUALITY_RATING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getQualityRating() { + return qualityRating; + } + + + @JsonProperty(JSON_PROPERTY_QUALITY_RATING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setQualityRating(String qualityRating) { + this.qualityRating = qualityRating; + } + + + /** + * Return true if this WhatsappPhoneNumber_whatsapp_settings object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WhatsappPhoneNumberWhatsappSettings whatsappPhoneNumberWhatsappSettings = (WhatsappPhoneNumberWhatsappSettings) o; + return Objects.equals(this.id, whatsappPhoneNumberWhatsappSettings.id) && + Objects.equals(this.displayName, whatsappPhoneNumberWhatsappSettings.displayName) && + Objects.equals(this.displayNameStatus, whatsappPhoneNumberWhatsappSettings.displayNameStatus) && + Objects.equals(this.qualityRating, whatsappPhoneNumberWhatsappSettings.qualityRating); + } + + @Override + public int hashCode() { + return Objects.hash(id, displayName, displayNameStatus, qualityRating); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WhatsappPhoneNumberWhatsappSettings {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" displayNameStatus: ").append(toIndentedString(displayNameStatus)).append("\n"); + sb.append(" qualityRating: ").append(toIndentedString(qualityRating)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardAllowedIP.java b/src/main/java/com/telnyx/sdk/model/WireguardAllowedIP.java new file mode 100644 index 00000000..0457c1d0 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardAllowedIP.java @@ -0,0 +1,142 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardAllowedIP + */ +@JsonPropertyOrder({ + WireguardAllowedIP.JSON_PROPERTY_RECORD_TYPE, + WireguardAllowedIP.JSON_PROPERTY_IP_ADDRESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardAllowedIP { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_IP_ADDRESS = "ip_address"; + private String ipAddress; + + public WireguardAllowedIP() { + } + + @JsonCreator + public WireguardAllowedIP( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType + ) { + this(); + this.recordType = recordType; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_allowed_ip", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + public WireguardAllowedIP ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * The IP address to add to the Wireguard Interface's AllowedIP list. + * @return ipAddress + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "198.51.100.1", value = "The IP address to add to the Wireguard Interface's AllowedIP list.") + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getIpAddress() { + return ipAddress; + } + + + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + + /** + * Return true if this WireguardAllowedIP object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardAllowedIP wireguardAllowedIP = (WireguardAllowedIP) o; + return Objects.equals(this.recordType, wireguardAllowedIP.recordType) && + Objects.equals(this.ipAddress, wireguardAllowedIP.ipAddress); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, ipAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardAllowedIP {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardInterface.java b/src/main/java/com/telnyx/sdk/model/WireguardInterface.java new file mode 100644 index 00000000..535a06ce --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardInterface.java @@ -0,0 +1,331 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.WireguardInterface1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardInterface + */ +@JsonPropertyOrder({ + WireguardInterface.JSON_PROPERTY_ID, + WireguardInterface.JSON_PROPERTY_RECORD_TYPE, + WireguardInterface.JSON_PROPERTY_CREATED_AT, + WireguardInterface.JSON_PROPERTY_UPDATED_AT, + WireguardInterface.JSON_PROPERTY_NETWORK_ID, + WireguardInterface.JSON_PROPERTY_NAME, + WireguardInterface.JSON_PROPERTY_STATUS, + WireguardInterface.JSON_PROPERTY_ENDPOINT, + WireguardInterface.JSON_PROPERTY_PUBLIC_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardInterface { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public static final String JSON_PROPERTY_ENDPOINT = "endpoint"; + private String endpoint; + + public static final String JSON_PROPERTY_PUBLIC_KEY = "public_key"; + private String publicKey; + + public WireguardInterface() { + } + + @JsonCreator + public WireguardInterface( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_ENDPOINT) String endpoint, + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) String publicKey + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.endpoint = endpoint; + this.publicKey = publicKey; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_interface", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public WireguardInterface networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public WireguardInterface name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public WireguardInterface status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + /** + * The Telnyx WireGuard peers `Peer.endpoint` value. + * @return endpoint + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "203.0.113.0:51871", value = "The Telnyx WireGuard peers `Peer.endpoint` value.") + @JsonProperty(JSON_PROPERTY_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEndpoint() { + return endpoint; + } + + + + + /** + * The Telnyx WireGuard peers `Peer.PublicKey`. + * @return publicKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "The Telnyx WireGuard peers `Peer.PublicKey`.") + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicKey() { + return publicKey; + } + + + + + /** + * Return true if this WireguardInterface object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardInterface wireguardInterface = (WireguardInterface) o; + return Objects.equals(this.id, wireguardInterface.id) && + Objects.equals(this.recordType, wireguardInterface.recordType) && + Objects.equals(this.createdAt, wireguardInterface.createdAt) && + Objects.equals(this.updatedAt, wireguardInterface.updatedAt) && + Objects.equals(this.networkId, wireguardInterface.networkId) && + Objects.equals(this.name, wireguardInterface.name) && + Objects.equals(this.status, wireguardInterface.status) && + Objects.equals(this.endpoint, wireguardInterface.endpoint) && + Objects.equals(this.publicKey, wireguardInterface.publicKey); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, endpoint, publicKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardInterface {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardInterface1.java b/src/main/java/com/telnyx/sdk/model/WireguardInterface1.java new file mode 100644 index 00000000..9abc34bd --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardInterface1.java @@ -0,0 +1,158 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardInterface1 + */ +@JsonPropertyOrder({ + WireguardInterface1.JSON_PROPERTY_RECORD_TYPE, + WireguardInterface1.JSON_PROPERTY_ENDPOINT, + WireguardInterface1.JSON_PROPERTY_PUBLIC_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardInterface1 { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_ENDPOINT = "endpoint"; + private String endpoint; + + public static final String JSON_PROPERTY_PUBLIC_KEY = "public_key"; + private String publicKey; + + public WireguardInterface1() { + } + + @JsonCreator + public WireguardInterface1( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ENDPOINT) String endpoint, + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) String publicKey + ) { + this(); + this.recordType = recordType; + this.endpoint = endpoint; + this.publicKey = publicKey; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_interface", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * The Telnyx WireGuard peers `Peer.endpoint` value. + * @return endpoint + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "203.0.113.0:51871", value = "The Telnyx WireGuard peers `Peer.endpoint` value.") + @JsonProperty(JSON_PROPERTY_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEndpoint() { + return endpoint; + } + + + + + /** + * The Telnyx WireGuard peers `Peer.PublicKey`. + * @return publicKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "The Telnyx WireGuard peers `Peer.PublicKey`.") + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicKey() { + return publicKey; + } + + + + + /** + * Return true if this WireguardInterface_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardInterface1 wireguardInterface1 = (WireguardInterface1) o; + return Objects.equals(this.recordType, wireguardInterface1.recordType) && + Objects.equals(this.endpoint, wireguardInterface1.endpoint) && + Objects.equals(this.publicKey, wireguardInterface1.publicKey); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, endpoint, publicKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardInterface1 {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate.java b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate.java new file mode 100644 index 00000000..94d99470 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate.java @@ -0,0 +1,362 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionIn; +import com.telnyx.sdk.model.WireguardInterface; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardInterfaceCreate + */ +@JsonPropertyOrder({ + WireguardInterfaceCreate.JSON_PROPERTY_ID, + WireguardInterfaceCreate.JSON_PROPERTY_RECORD_TYPE, + WireguardInterfaceCreate.JSON_PROPERTY_CREATED_AT, + WireguardInterfaceCreate.JSON_PROPERTY_UPDATED_AT, + WireguardInterfaceCreate.JSON_PROPERTY_NETWORK_ID, + WireguardInterfaceCreate.JSON_PROPERTY_NAME, + WireguardInterfaceCreate.JSON_PROPERTY_STATUS, + WireguardInterfaceCreate.JSON_PROPERTY_ENDPOINT, + WireguardInterfaceCreate.JSON_PROPERTY_PUBLIC_KEY, + WireguardInterfaceCreate.JSON_PROPERTY_REGION_CODE +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardInterfaceCreate { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public static final String JSON_PROPERTY_ENDPOINT = "endpoint"; + private String endpoint; + + public static final String JSON_PROPERTY_PUBLIC_KEY = "public_key"; + private String publicKey; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public WireguardInterfaceCreate() { + } + + @JsonCreator + public WireguardInterfaceCreate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_ENDPOINT) String endpoint, + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) String publicKey + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.endpoint = endpoint; + this.publicKey = publicKey; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_interface", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public WireguardInterfaceCreate networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public WireguardInterfaceCreate name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public WireguardInterfaceCreate status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + /** + * The Telnyx WireGuard peers `Peer.endpoint` value. + * @return endpoint + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "203.0.113.0:51871", value = "The Telnyx WireGuard peers `Peer.endpoint` value.") + @JsonProperty(JSON_PROPERTY_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEndpoint() { + return endpoint; + } + + + + + /** + * The Telnyx WireGuard peers `Peer.PublicKey`. + * @return publicKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "The Telnyx WireGuard peers `Peer.PublicKey`.") + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicKey() { + return publicKey; + } + + + + + public WireguardInterfaceCreate regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region the interface should be deployed to. + * @return regionCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "ashburn-va", required = true, value = "The region the interface should be deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + /** + * Return true if this WireguardInterfaceCreate object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardInterfaceCreate wireguardInterfaceCreate = (WireguardInterfaceCreate) o; + return Objects.equals(this.id, wireguardInterfaceCreate.id) && + Objects.equals(this.recordType, wireguardInterfaceCreate.recordType) && + Objects.equals(this.createdAt, wireguardInterfaceCreate.createdAt) && + Objects.equals(this.updatedAt, wireguardInterfaceCreate.updatedAt) && + Objects.equals(this.networkId, wireguardInterfaceCreate.networkId) && + Objects.equals(this.name, wireguardInterfaceCreate.name) && + Objects.equals(this.status, wireguardInterfaceCreate.status) && + Objects.equals(this.endpoint, wireguardInterfaceCreate.endpoint) && + Objects.equals(this.publicKey, wireguardInterfaceCreate.publicKey) && + Objects.equals(this.regionCode, wireguardInterfaceCreate.regionCode); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, endpoint, publicKey, regionCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardInterfaceCreate {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate202Response.java b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate202Response.java new file mode 100644 index 00000000..f3c16743 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceCreate202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardInterfaceRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardInterfaceCreate202Response + */ +@JsonPropertyOrder({ + WireguardInterfaceCreate202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardInterfaceCreate202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private WireguardInterfaceRead data; + + public WireguardInterfaceCreate202Response() { + } + + public WireguardInterfaceCreate202Response data(WireguardInterfaceRead data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WireguardInterfaceRead getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(WireguardInterfaceRead data) { + this.data = data; + } + + + /** + * Return true if this WireguardInterfaceCreate_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardInterfaceCreate202Response wireguardInterfaceCreate202Response = (WireguardInterfaceCreate202Response) o; + return Objects.equals(this.data, wireguardInterfaceCreate202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardInterfaceCreate202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardInterfaceList200Response.java b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceList200Response.java new file mode 100644 index 00000000..4c0c471a --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WireguardInterfaceRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardInterfaceList200Response + */ +@JsonPropertyOrder({ + WireguardInterfaceList200Response.JSON_PROPERTY_DATA, + WireguardInterfaceList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardInterfaceList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public WireguardInterfaceList200Response() { + } + + public WireguardInterfaceList200Response data(List data) { + this.data = data; + return this; + } + + public WireguardInterfaceList200Response addDataItem(WireguardInterfaceRead dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public WireguardInterfaceList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this WireguardInterfaceList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardInterfaceList200Response wireguardInterfaceList200Response = (WireguardInterfaceList200Response) o; + return Objects.equals(this.data, wireguardInterfaceList200Response.data) && + Objects.equals(this.meta, wireguardInterfaceList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardInterfaceList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardInterfaceRead.java b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceRead.java new file mode 100644 index 00000000..92a76feb --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardInterfaceRead.java @@ -0,0 +1,395 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import com.telnyx.sdk.model.WireguardInterface; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardInterfaceRead + */ +@JsonPropertyOrder({ + WireguardInterfaceRead.JSON_PROPERTY_ID, + WireguardInterfaceRead.JSON_PROPERTY_RECORD_TYPE, + WireguardInterfaceRead.JSON_PROPERTY_CREATED_AT, + WireguardInterfaceRead.JSON_PROPERTY_UPDATED_AT, + WireguardInterfaceRead.JSON_PROPERTY_NETWORK_ID, + WireguardInterfaceRead.JSON_PROPERTY_NAME, + WireguardInterfaceRead.JSON_PROPERTY_STATUS, + WireguardInterfaceRead.JSON_PROPERTY_ENDPOINT, + WireguardInterfaceRead.JSON_PROPERTY_PUBLIC_KEY, + WireguardInterfaceRead.JSON_PROPERTY_REGION_CODE, + WireguardInterfaceRead.JSON_PROPERTY_REGION +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardInterfaceRead { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_NETWORK_ID = "network_id"; + private UUID networkId; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_STATUS = "status"; + private InterfaceStatus status; + + public static final String JSON_PROPERTY_ENDPOINT = "endpoint"; + private String endpoint; + + public static final String JSON_PROPERTY_PUBLIC_KEY = "public_key"; + private String publicKey; + + public static final String JSON_PROPERTY_REGION_CODE = "region_code"; + private String regionCode; + + public static final String JSON_PROPERTY_REGION = "region"; + private RegionOutRegion region; + + public WireguardInterfaceRead() { + } + + @JsonCreator + public WireguardInterfaceRead( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_ENDPOINT) String endpoint, + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) String publicKey + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.endpoint = endpoint; + this.publicKey = publicKey; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_interface", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public WireguardInterfaceRead networkId(UUID networkId) { + this.networkId = networkId; + return this; + } + + /** + * The id of the network associated with the interface. + * @return networkId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the network associated with the interface.") + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getNetworkId() { + return networkId; + } + + + @JsonProperty(JSON_PROPERTY_NETWORK_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNetworkId(UUID networkId) { + this.networkId = networkId; + } + + + public WireguardInterfaceRead name(String name) { + this.name = name; + return this; + } + + /** + * A user specified name for the interface. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "test interface", value = "A user specified name for the interface.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + public WireguardInterfaceRead status(InterfaceStatus status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public InterfaceStatus getStatus() { + return status; + } + + + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(InterfaceStatus status) { + this.status = status; + } + + + /** + * The Telnyx WireGuard peers `Peer.endpoint` value. + * @return endpoint + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "203.0.113.0:51871", value = "The Telnyx WireGuard peers `Peer.endpoint` value.") + @JsonProperty(JSON_PROPERTY_ENDPOINT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEndpoint() { + return endpoint; + } + + + + + /** + * The Telnyx WireGuard peers `Peer.PublicKey`. + * @return publicKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "The Telnyx WireGuard peers `Peer.PublicKey`.") + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicKey() { + return publicKey; + } + + + + + public WireguardInterfaceRead regionCode(String regionCode) { + this.regionCode = regionCode; + return this; + } + + /** + * The region interface is deployed to. + * @return regionCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "ashburn-va", value = "The region interface is deployed to.") + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegionCode() { + return regionCode; + } + + + @JsonProperty(JSON_PROPERTY_REGION_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegionCode(String regionCode) { + this.regionCode = regionCode; + } + + + public WireguardInterfaceRead region(RegionOutRegion region) { + this.region = region; + return this; + } + + /** + * Get region + * @return region + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public RegionOutRegion getRegion() { + return region; + } + + + @JsonProperty(JSON_PROPERTY_REGION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegion(RegionOutRegion region) { + this.region = region; + } + + + /** + * Return true if this WireguardInterfaceRead object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardInterfaceRead wireguardInterfaceRead = (WireguardInterfaceRead) o; + return Objects.equals(this.id, wireguardInterfaceRead.id) && + Objects.equals(this.recordType, wireguardInterfaceRead.recordType) && + Objects.equals(this.createdAt, wireguardInterfaceRead.createdAt) && + Objects.equals(this.updatedAt, wireguardInterfaceRead.updatedAt) && + Objects.equals(this.networkId, wireguardInterfaceRead.networkId) && + Objects.equals(this.name, wireguardInterfaceRead.name) && + Objects.equals(this.status, wireguardInterfaceRead.status) && + Objects.equals(this.endpoint, wireguardInterfaceRead.endpoint) && + Objects.equals(this.publicKey, wireguardInterfaceRead.publicKey) && + Objects.equals(this.regionCode, wireguardInterfaceRead.regionCode) && + Objects.equals(this.region, wireguardInterfaceRead.region); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, networkId, name, status, endpoint, publicKey, regionCode, region); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardInterfaceRead {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" endpoint: ").append(toIndentedString(endpoint)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" regionCode: ").append(toIndentedString(regionCode)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeer.java b/src/main/java/com/telnyx/sdk/model/WireguardPeer.java new file mode 100644 index 00000000..a2fbc494 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeer.java @@ -0,0 +1,298 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.WireguardPeer1; +import com.telnyx.sdk.model.WireguardPeerPatch; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeer + */ +@JsonPropertyOrder({ + WireguardPeer.JSON_PROPERTY_ID, + WireguardPeer.JSON_PROPERTY_RECORD_TYPE, + WireguardPeer.JSON_PROPERTY_CREATED_AT, + WireguardPeer.JSON_PROPERTY_UPDATED_AT, + WireguardPeer.JSON_PROPERTY_PUBLIC_KEY, + WireguardPeer.JSON_PROPERTY_LAST_SEEN, + WireguardPeer.JSON_PROPERTY_WIREGUARD_INTERFACE_ID, + WireguardPeer.JSON_PROPERTY_PRIVATE_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeer { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_PUBLIC_KEY = "public_key"; + private String publicKey; + + public static final String JSON_PROPERTY_LAST_SEEN = "last_seen"; + private String lastSeen; + + public static final String JSON_PROPERTY_WIREGUARD_INTERFACE_ID = "wireguard_interface_id"; + private UUID wireguardInterfaceId; + + public static final String JSON_PROPERTY_PRIVATE_KEY = "private_key"; + private String privateKey; + + public WireguardPeer() { + } + + @JsonCreator + public WireguardPeer( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_LAST_SEEN) String lastSeen, + @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) String privateKey + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.lastSeen = lastSeen; + this.privateKey = privateKey; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_peer", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public WireguardPeer publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new Public and Private key pair will be generated for you. + * @return publicKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "The WireGuard `PublicKey`.

If you do not provide a Public Key, a new Public and Private key pair will be generated for you.") + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicKey() { + return publicKey; + } + + + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + + /** + * ISO 8601 formatted date-time indicating when peer sent traffic last time. + * @return lastSeen + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when peer sent traffic last time.") + @JsonProperty(JSON_PROPERTY_LAST_SEEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLastSeen() { + return lastSeen; + } + + + + + public WireguardPeer wireguardInterfaceId(UUID wireguardInterfaceId) { + this.wireguardInterfaceId = wireguardInterfaceId; + return this; + } + + /** + * The id of the wireguard interface associated with the peer. + * @return wireguardInterfaceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the wireguard interface associated with the peer.") + @JsonProperty(JSON_PROPERTY_WIREGUARD_INTERFACE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getWireguardInterfaceId() { + return wireguardInterfaceId; + } + + + @JsonProperty(JSON_PROPERTY_WIREGUARD_INTERFACE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWireguardInterfaceId(UUID wireguardInterfaceId) { + this.wireguardInterfaceId = wireguardInterfaceId; + } + + + /** + * Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered. + * @return privateKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "Your WireGuard `Interface.PrivateKey`.

This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered.") + @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrivateKey() { + return privateKey; + } + + + + + /** + * Return true if this WireguardPeer object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeer wireguardPeer = (WireguardPeer) o; + return Objects.equals(this.id, wireguardPeer.id) && + Objects.equals(this.recordType, wireguardPeer.recordType) && + Objects.equals(this.createdAt, wireguardPeer.createdAt) && + Objects.equals(this.updatedAt, wireguardPeer.updatedAt) && + Objects.equals(this.publicKey, wireguardPeer.publicKey) && + Objects.equals(this.lastSeen, wireguardPeer.lastSeen) && + Objects.equals(this.wireguardInterfaceId, wireguardPeer.wireguardInterfaceId) && + Objects.equals(this.privateKey, wireguardPeer.privateKey); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, publicKey, lastSeen, wireguardInterfaceId, privateKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeer {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" wireguardInterfaceId: ").append(toIndentedString(wireguardInterfaceId)).append("\n"); + sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeer1.java b/src/main/java/com/telnyx/sdk/model/WireguardPeer1.java new file mode 100644 index 00000000..763fd919 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeer1.java @@ -0,0 +1,191 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeer1 + */ +@JsonPropertyOrder({ + WireguardPeer1.JSON_PROPERTY_RECORD_TYPE, + WireguardPeer1.JSON_PROPERTY_LAST_SEEN, + WireguardPeer1.JSON_PROPERTY_WIREGUARD_INTERFACE_ID, + WireguardPeer1.JSON_PROPERTY_PRIVATE_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeer1 { + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_LAST_SEEN = "last_seen"; + private String lastSeen; + + public static final String JSON_PROPERTY_WIREGUARD_INTERFACE_ID = "wireguard_interface_id"; + private UUID wireguardInterfaceId; + + public static final String JSON_PROPERTY_PRIVATE_KEY = "private_key"; + private String privateKey; + + public WireguardPeer1() { + } + + @JsonCreator + public WireguardPeer1( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_LAST_SEEN) String lastSeen, + @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) String privateKey + ) { + this(); + this.recordType = recordType; + this.lastSeen = lastSeen; + this.privateKey = privateKey; + } + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_peer", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when peer sent traffic last time. + * @return lastSeen + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when peer sent traffic last time.") + @JsonProperty(JSON_PROPERTY_LAST_SEEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLastSeen() { + return lastSeen; + } + + + + + public WireguardPeer1 wireguardInterfaceId(UUID wireguardInterfaceId) { + this.wireguardInterfaceId = wireguardInterfaceId; + return this; + } + + /** + * The id of the wireguard interface associated with the peer. + * @return wireguardInterfaceId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "The id of the wireguard interface associated with the peer.") + @JsonProperty(JSON_PROPERTY_WIREGUARD_INTERFACE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getWireguardInterfaceId() { + return wireguardInterfaceId; + } + + + @JsonProperty(JSON_PROPERTY_WIREGUARD_INTERFACE_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWireguardInterfaceId(UUID wireguardInterfaceId) { + this.wireguardInterfaceId = wireguardInterfaceId; + } + + + /** + * Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered. + * @return privateKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "Your WireGuard `Interface.PrivateKey`.

This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered.") + @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrivateKey() { + return privateKey; + } + + + + + /** + * Return true if this WireguardPeer_1 object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeer1 wireguardPeer1 = (WireguardPeer1) o; + return Objects.equals(this.recordType, wireguardPeer1.recordType) && + Objects.equals(this.lastSeen, wireguardPeer1.lastSeen) && + Objects.equals(this.wireguardInterfaceId, wireguardPeer1.wireguardInterfaceId) && + Objects.equals(this.privateKey, wireguardPeer1.privateKey); + } + + @Override + public int hashCode() { + return Objects.hash(recordType, lastSeen, wireguardInterfaceId, privateKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeer1 {\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" wireguardInterfaceId: ").append(toIndentedString(wireguardInterfaceId)).append("\n"); + sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIP.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIP.java new file mode 100644 index 00000000..35656054 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIP.java @@ -0,0 +1,217 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.WireguardAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerAllowedIP + */ +@JsonPropertyOrder({ + WireguardPeerAllowedIP.JSON_PROPERTY_ID, + WireguardPeerAllowedIP.JSON_PROPERTY_RECORD_TYPE, + WireguardPeerAllowedIP.JSON_PROPERTY_CREATED_AT, + WireguardPeerAllowedIP.JSON_PROPERTY_UPDATED_AT, + WireguardPeerAllowedIP.JSON_PROPERTY_IP_ADDRESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerAllowedIP { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_IP_ADDRESS = "ip_address"; + private String ipAddress; + + public WireguardPeerAllowedIP() { + } + + @JsonCreator + public WireguardPeerAllowedIP( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_allowed_ip", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public WireguardPeerAllowedIP ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * The IP address to add to the Wireguard Interface's AllowedIP list. + * @return ipAddress + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "198.51.100.1", value = "The IP address to add to the Wireguard Interface's AllowedIP list.") + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getIpAddress() { + return ipAddress; + } + + + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + + /** + * Return true if this WireguardPeerAllowedIP object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerAllowedIP wireguardPeerAllowedIP = (WireguardPeerAllowedIP) o; + return Objects.equals(this.id, wireguardPeerAllowedIP.id) && + Objects.equals(this.recordType, wireguardPeerAllowedIP.recordType) && + Objects.equals(this.createdAt, wireguardPeerAllowedIP.createdAt) && + Objects.equals(this.updatedAt, wireguardPeerAllowedIP.updatedAt) && + Objects.equals(this.ipAddress, wireguardPeerAllowedIP.ipAddress); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, ipAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerAllowedIP {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreate.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreate.java new file mode 100644 index 00000000..2808dabe --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreate.java @@ -0,0 +1,216 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeerAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerAllowedIPCreate + */ +@JsonPropertyOrder({ + WireguardPeerAllowedIPCreate.JSON_PROPERTY_ID, + WireguardPeerAllowedIPCreate.JSON_PROPERTY_RECORD_TYPE, + WireguardPeerAllowedIPCreate.JSON_PROPERTY_CREATED_AT, + WireguardPeerAllowedIPCreate.JSON_PROPERTY_UPDATED_AT, + WireguardPeerAllowedIPCreate.JSON_PROPERTY_IP_ADDRESS +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerAllowedIPCreate { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_IP_ADDRESS = "ip_address"; + private String ipAddress; + + public WireguardPeerAllowedIPCreate() { + } + + @JsonCreator + public WireguardPeerAllowedIPCreate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_allowed_ip", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public WireguardPeerAllowedIPCreate ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * The IP address to add to the Wireguard Interface's AllowedIP list. + * @return ipAddress + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "198.51.100.1", required = true, value = "The IP address to add to the Wireguard Interface's AllowedIP list.") + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public String getIpAddress() { + return ipAddress; + } + + + @JsonProperty(JSON_PROPERTY_IP_ADDRESS) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + + /** + * Return true if this WireguardPeerAllowedIPCreate object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerAllowedIPCreate wireguardPeerAllowedIPCreate = (WireguardPeerAllowedIPCreate) o; + return Objects.equals(this.id, wireguardPeerAllowedIPCreate.id) && + Objects.equals(this.recordType, wireguardPeerAllowedIPCreate.recordType) && + Objects.equals(this.createdAt, wireguardPeerAllowedIPCreate.createdAt) && + Objects.equals(this.updatedAt, wireguardPeerAllowedIPCreate.updatedAt) && + Objects.equals(this.ipAddress, wireguardPeerAllowedIPCreate.ipAddress); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, ipAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerAllowedIPCreate {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200Response.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200Response.java new file mode 100644 index 00000000..fe3cf702 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeerAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerAllowedIPGet200Response + */ +@JsonPropertyOrder({ + WireguardPeerAllowedIPGet200Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerAllowedIPGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private WireguardPeerAllowedIP data; + + public WireguardPeerAllowedIPGet200Response() { + } + + public WireguardPeerAllowedIPGet200Response data(WireguardPeerAllowedIP data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WireguardPeerAllowedIP getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(WireguardPeerAllowedIP data) { + this.data = data; + } + + + /** + * Return true if this WireguardPeerAllowedIPGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerAllowedIPGet200Response wireguardPeerAllowedIPGet200Response = (WireguardPeerAllowedIPGet200Response) o; + return Objects.equals(this.data, wireguardPeerAllowedIPGet200Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerAllowedIPGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200Response.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200Response.java new file mode 100644 index 00000000..fc33d817 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WireguardPeerAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerAllowedIPList200Response + */ +@JsonPropertyOrder({ + WireguardPeerAllowedIPList200Response.JSON_PROPERTY_DATA, + WireguardPeerAllowedIPList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerAllowedIPList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public WireguardPeerAllowedIPList200Response() { + } + + public WireguardPeerAllowedIPList200Response data(List data) { + this.data = data; + return this; + } + + public WireguardPeerAllowedIPList200Response addDataItem(WireguardPeerAllowedIP dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public WireguardPeerAllowedIPList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this WireguardPeerAllowedIPList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerAllowedIPList200Response wireguardPeerAllowedIPList200Response = (WireguardPeerAllowedIPList200Response) o; + return Objects.equals(this.data, wireguardPeerAllowedIPList200Response.data) && + Objects.equals(this.meta, wireguardPeerAllowedIPList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerAllowedIPList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerCreate.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerCreate.java new file mode 100644 index 00000000..81dccd2f --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerCreate.java @@ -0,0 +1,296 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerCreate + */ +@JsonPropertyOrder({ + WireguardPeerCreate.JSON_PROPERTY_ID, + WireguardPeerCreate.JSON_PROPERTY_RECORD_TYPE, + WireguardPeerCreate.JSON_PROPERTY_CREATED_AT, + WireguardPeerCreate.JSON_PROPERTY_UPDATED_AT, + WireguardPeerCreate.JSON_PROPERTY_PUBLIC_KEY, + WireguardPeerCreate.JSON_PROPERTY_LAST_SEEN, + WireguardPeerCreate.JSON_PROPERTY_WIREGUARD_INTERFACE_ID, + WireguardPeerCreate.JSON_PROPERTY_PRIVATE_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerCreate { + public static final String JSON_PROPERTY_ID = "id"; + private UUID id; + + public static final String JSON_PROPERTY_RECORD_TYPE = "record_type"; + private String recordType; + + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_UPDATED_AT = "updated_at"; + private String updatedAt; + + public static final String JSON_PROPERTY_PUBLIC_KEY = "public_key"; + private String publicKey; + + public static final String JSON_PROPERTY_LAST_SEEN = "last_seen"; + private String lastSeen; + + public static final String JSON_PROPERTY_WIREGUARD_INTERFACE_ID = "wireguard_interface_id"; + private UUID wireguardInterfaceId; + + public static final String JSON_PROPERTY_PRIVATE_KEY = "private_key"; + private String privateKey; + + public WireguardPeerCreate() { + } + + @JsonCreator + public WireguardPeerCreate( + @JsonProperty(JSON_PROPERTY_ID) UUID id, + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_UPDATED_AT) String updatedAt, + @JsonProperty(JSON_PROPERTY_LAST_SEEN) String lastSeen, + @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) String privateKey + ) { + this(); + this.id = id; + this.recordType = recordType; + this.createdAt = createdAt; + this.updatedAt = updatedAt; + this.lastSeen = lastSeen; + this.privateKey = privateKey; + } + + /** + * Identifies the resource. + * @return id + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", value = "Identifies the resource.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public UUID getId() { + return id; + } + + + + + /** + * Identifies the type of the resource. + * @return recordType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "wireguard_peer", value = "Identifies the type of the resource.") + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRecordType() { + return recordType; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the resource was updated. + * @return updatedAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the resource was updated.") + @JsonProperty(JSON_PROPERTY_UPDATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getUpdatedAt() { + return updatedAt; + } + + + + + public WireguardPeerCreate publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new Public and Private key pair will be generated for you. + * @return publicKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "The WireGuard `PublicKey`.

If you do not provide a Public Key, a new Public and Private key pair will be generated for you.") + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicKey() { + return publicKey; + } + + + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + + /** + * ISO 8601 formatted date-time indicating when peer sent traffic last time. + * @return lastSeen + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when peer sent traffic last time.") + @JsonProperty(JSON_PROPERTY_LAST_SEEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLastSeen() { + return lastSeen; + } + + + + + public WireguardPeerCreate wireguardInterfaceId(UUID wireguardInterfaceId) { + this.wireguardInterfaceId = wireguardInterfaceId; + return this; + } + + /** + * The id of the wireguard interface associated with the peer. + * @return wireguardInterfaceId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "6a09cdc3-8948-47f0-aa62-74ac943d6c58", required = true, value = "The id of the wireguard interface associated with the peer.") + @JsonProperty(JSON_PROPERTY_WIREGUARD_INTERFACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + + public UUID getWireguardInterfaceId() { + return wireguardInterfaceId; + } + + + @JsonProperty(JSON_PROPERTY_WIREGUARD_INTERFACE_ID) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public void setWireguardInterfaceId(UUID wireguardInterfaceId) { + this.wireguardInterfaceId = wireguardInterfaceId; + } + + + /** + * Your WireGuard `Interface.PrivateKey`.<br /><br />This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered. + * @return privateKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "Your WireGuard `Interface.PrivateKey`.

This attribute is only ever utlised if, on POST, you do NOT provide your own `public_key`. In which case, a new Public and Private key pair will be generated for you. When your `private_key` is returned, you must save this immediately as we do not save it within Telnyx. If you lose your Private Key, it can not be recovered.") + @JsonProperty(JSON_PROPERTY_PRIVATE_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPrivateKey() { + return privateKey; + } + + + + + /** + * Return true if this WireguardPeerCreate object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerCreate wireguardPeerCreate = (WireguardPeerCreate) o; + return Objects.equals(this.id, wireguardPeerCreate.id) && + Objects.equals(this.recordType, wireguardPeerCreate.recordType) && + Objects.equals(this.createdAt, wireguardPeerCreate.createdAt) && + Objects.equals(this.updatedAt, wireguardPeerCreate.updatedAt) && + Objects.equals(this.publicKey, wireguardPeerCreate.publicKey) && + Objects.equals(this.lastSeen, wireguardPeerCreate.lastSeen) && + Objects.equals(this.wireguardInterfaceId, wireguardPeerCreate.wireguardInterfaceId) && + Objects.equals(this.privateKey, wireguardPeerCreate.privateKey); + } + + @Override + public int hashCode() { + return Objects.hash(id, recordType, createdAt, updatedAt, publicKey, lastSeen, wireguardInterfaceId, privateKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerCreate {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" recordType: ").append(toIndentedString(recordType)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" wireguardInterfaceId: ").append(toIndentedString(wireguardInterfaceId)).append("\n"); + sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerCreate202Response.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerCreate202Response.java new file mode 100644 index 00000000..2925fa1e --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerCreate202Response.java @@ -0,0 +1,113 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerCreate202Response + */ +@JsonPropertyOrder({ + WireguardPeerCreate202Response.JSON_PROPERTY_DATA +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerCreate202Response { + public static final String JSON_PROPERTY_DATA = "data"; + private WireguardPeer data; + + public WireguardPeerCreate202Response() { + } + + public WireguardPeerCreate202Response data(WireguardPeer data) { + this.data = data; + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WireguardPeer getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(WireguardPeer data) { + this.data = data; + } + + + /** + * Return true if this WireguardPeerCreate_202_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerCreate202Response wireguardPeerCreate202Response = (WireguardPeerCreate202Response) o; + return Objects.equals(this.data, wireguardPeerCreate202Response.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerCreate202Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerList200Response.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerList200Response.java new file mode 100644 index 00000000..426de340 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerList200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WireguardPeer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerList200Response + */ +@JsonPropertyOrder({ + WireguardPeerList200Response.JSON_PROPERTY_DATA, + WireguardPeerList200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerList200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public WireguardPeerList200Response() { + } + + public WireguardPeerList200Response data(List data) { + this.data = data; + return this; + } + + public WireguardPeerList200Response addDataItem(WireguardPeer dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public WireguardPeerList200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this WireguardPeerList_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerList200Response wireguardPeerList200Response = (WireguardPeerList200Response) o; + return Objects.equals(this.data, wireguardPeerList200Response.data) && + Objects.equals(this.meta, wireguardPeerList200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerList200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WireguardPeerPatch.java b/src/main/java/com/telnyx/sdk/model/WireguardPeerPatch.java new file mode 100644 index 00000000..1d4fc92d --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WireguardPeerPatch.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WireguardPeerPatch + */ +@JsonPropertyOrder({ + WireguardPeerPatch.JSON_PROPERTY_PUBLIC_KEY +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WireguardPeerPatch { + public static final String JSON_PROPERTY_PUBLIC_KEY = "public_key"; + private String publicKey; + + public WireguardPeerPatch() { + } + + public WireguardPeerPatch publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * The WireGuard `PublicKey`.<br /><br />If you do not provide a Public Key, a new Public and Private key pair will be generated for you. + * @return publicKey + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "qF4EqlZq+5JL2IKYY8ij49daYyfKVhevJrcDxdqC8GU=", value = "The WireGuard `PublicKey`.

If you do not provide a Public Key, a new Public and Private key pair will be generated for you.") + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getPublicKey() { + return publicKey; + } + + + @JsonProperty(JSON_PROPERTY_PUBLIC_KEY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + + /** + * Return true if this WireguardPeerPatch object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerPatch wireguardPeerPatch = (WireguardPeerPatch) o; + return Objects.equals(this.publicKey, wireguardPeerPatch.publicKey); + } + + @Override + public int hashCode() { + return Objects.hash(publicKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerPatch {\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/main/java/com/telnyx/sdk/model/WirelessConnectivityLog.java b/src/main/java/com/telnyx/sdk/model/WirelessConnectivityLog.java index 596a1c75..4af207f5 100644 --- a/src/main/java/com/telnyx/sdk/model/WirelessConnectivityLog.java +++ b/src/main/java/com/telnyx/sdk/model/WirelessConnectivityLog.java @@ -44,6 +44,8 @@ WirelessConnectivityLog.JSON_PROPERTY_MOBILE_NETWORK_CODE, WirelessConnectivityLog.JSON_PROPERTY_START_TIME, WirelessConnectivityLog.JSON_PROPERTY_STOP_TIME, + WirelessConnectivityLog.JSON_PROPERTY_CREATED_AT, + WirelessConnectivityLog.JSON_PROPERTY_LAST_SEEN, WirelessConnectivityLog.JSON_PROPERTY_APN, WirelessConnectivityLog.JSON_PROPERTY_IPV4, WirelessConnectivityLog.JSON_PROPERTY_IPV6, @@ -118,6 +120,12 @@ public static LogTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_STOP_TIME = "stop_time"; private String stopTime; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private String createdAt; + + public static final String JSON_PROPERTY_LAST_SEEN = "last_seen"; + private String lastSeen; + public static final String JSON_PROPERTY_APN = "apn"; private String apn; @@ -139,6 +147,46 @@ public static LogTypeEnum fromValue(String value) { public WirelessConnectivityLog() { } + @JsonCreator + public WirelessConnectivityLog( + @JsonProperty(JSON_PROPERTY_RECORD_TYPE) String recordType, + @JsonProperty(JSON_PROPERTY_ID) Integer id, + @JsonProperty(JSON_PROPERTY_LOG_TYPE) LogTypeEnum logType, + @JsonProperty(JSON_PROPERTY_IMSI) String imsi, + @JsonProperty(JSON_PROPERTY_IMEI) String imei, + @JsonProperty(JSON_PROPERTY_MOBILE_COUNTRY_CODE) String mobileCountryCode, + @JsonProperty(JSON_PROPERTY_MOBILE_NETWORK_CODE) String mobileNetworkCode, + @JsonProperty(JSON_PROPERTY_START_TIME) String startTime, + @JsonProperty(JSON_PROPERTY_STOP_TIME) String stopTime, + @JsonProperty(JSON_PROPERTY_CREATED_AT) String createdAt, + @JsonProperty(JSON_PROPERTY_LAST_SEEN) String lastSeen, + @JsonProperty(JSON_PROPERTY_APN) String apn, + @JsonProperty(JSON_PROPERTY_IPV4) String ipv4, + @JsonProperty(JSON_PROPERTY_IPV6) String ipv6, + @JsonProperty(JSON_PROPERTY_RADIO_ACCESS_TECHNOLOGY) String radioAccessTechnology, + @JsonProperty(JSON_PROPERTY_STATE) String state, + @JsonProperty(JSON_PROPERTY_CELL_ID) String cellId + ) { + this(); + this.recordType = recordType; + this.id = id; + this.logType = logType; + this.imsi = imsi; + this.imei = imei; + this.mobileCountryCode = mobileCountryCode; + this.mobileNetworkCode = mobileNetworkCode; + this.startTime = startTime; + this.stopTime = stopTime; + this.createdAt = createdAt; + this.lastSeen = lastSeen; + this.apn = apn; + this.ipv4 = ipv4; + this.ipv6 = ipv6; + this.radioAccessTechnology = radioAccessTechnology; + this.state = state; + this.cellId = cellId; + } + /** * Get recordType * @return recordType @@ -309,6 +357,38 @@ public String getStopTime() { + /** + * ISO 8601 formatted date-time indicating when the record was created. + * @return createdAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the record was created.") + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCreatedAt() { + return createdAt; + } + + + + + /** + * ISO 8601 formatted date-time indicating when the last heartbeat to the device was successfully recorded. + * @return lastSeen + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2018-02-02T22:25:27.521Z", value = "ISO 8601 formatted date-time indicating when the last heartbeat to the device was successfully recorded.") + @JsonProperty(JSON_PROPERTY_LAST_SEEN) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLastSeen() { + return lastSeen; + } + + + + /** * The Access Point Name (APN) identifies the packet data network that a mobile data user wants to communicate with. * @return apn @@ -427,6 +507,8 @@ public boolean equals(Object o) { Objects.equals(this.mobileNetworkCode, wirelessConnectivityLog.mobileNetworkCode) && Objects.equals(this.startTime, wirelessConnectivityLog.startTime) && Objects.equals(this.stopTime, wirelessConnectivityLog.stopTime) && + Objects.equals(this.createdAt, wirelessConnectivityLog.createdAt) && + Objects.equals(this.lastSeen, wirelessConnectivityLog.lastSeen) && Objects.equals(this.apn, wirelessConnectivityLog.apn) && Objects.equals(this.ipv4, wirelessConnectivityLog.ipv4) && Objects.equals(this.ipv6, wirelessConnectivityLog.ipv6) && @@ -437,7 +519,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(recordType, id, simCardId, logType, imsi, imei, mobileCountryCode, mobileNetworkCode, startTime, stopTime, apn, ipv4, ipv6, radioAccessTechnology, state, cellId); + return Objects.hash(recordType, id, simCardId, logType, imsi, imei, mobileCountryCode, mobileNetworkCode, startTime, stopTime, createdAt, lastSeen, apn, ipv4, ipv6, radioAccessTechnology, state, cellId); } @Override @@ -454,6 +536,8 @@ public String toString() { sb.append(" mobileNetworkCode: ").append(toIndentedString(mobileNetworkCode)).append("\n"); sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); sb.append(" stopTime: ").append(toIndentedString(stopTime)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); sb.append(" apn: ").append(toIndentedString(apn)).append("\n"); sb.append(" ipv4: ").append(toIndentedString(ipv4)).append("\n"); sb.append(" ipv6: ").append(toIndentedString(ipv6)).append("\n"); diff --git a/src/main/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200Response.java b/src/main/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200Response.java new file mode 100644 index 00000000..97612153 --- /dev/null +++ b/src/main/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200Response.java @@ -0,0 +1,156 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WirelessConnectivityLog; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.telnyx.sdk.JSON; + + +/** + * WirelessConnectivityLogsGet200Response + */ +@JsonPropertyOrder({ + WirelessConnectivityLogsGet200Response.JSON_PROPERTY_DATA, + WirelessConnectivityLogsGet200Response.JSON_PROPERTY_META +}) +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") +public class WirelessConnectivityLogsGet200Response { + public static final String JSON_PROPERTY_DATA = "data"; + private List data = null; + + public static final String JSON_PROPERTY_META = "meta"; + private PaginationMeta meta; + + public WirelessConnectivityLogsGet200Response() { + } + + public WirelessConnectivityLogsGet200Response data(List data) { + this.data = data; + return this; + } + + public WirelessConnectivityLogsGet200Response addDataItem(WirelessConnectivityLog dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getData() { + return data; + } + + + @JsonProperty(JSON_PROPERTY_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setData(List data) { + this.data = data; + } + + + public WirelessConnectivityLogsGet200Response meta(PaginationMeta meta) { + this.meta = meta; + return this; + } + + /** + * Get meta + * @return meta + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PaginationMeta getMeta() { + return meta; + } + + + @JsonProperty(JSON_PROPERTY_META) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMeta(PaginationMeta meta) { + this.meta = meta; + } + + + /** + * Return true if this WirelessConnectivityLogsGet_200_response object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WirelessConnectivityLogsGet200Response wirelessConnectivityLogsGet200Response = (WirelessConnectivityLogsGet200Response) o; + return Objects.equals(this.data, wirelessConnectivityLogsGet200Response.data) && + Objects.equals(this.meta, wirelessConnectivityLogsGet200Response.meta); + } + + @Override + public int hashCode() { + return Objects.hash(data, meta); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WirelessConnectivityLogsGet200Response {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" meta: ").append(toIndentedString(meta)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/src/test/java/com/telnyx/sdk/api/CustomerServiceRequestApiTest.java b/src/test/java/com/telnyx/sdk/api/CustomerServiceRequestApiTest.java index 308b948c..2c66d831 100644 --- a/src/test/java/com/telnyx/sdk/api/CustomerServiceRequestApiTest.java +++ b/src/test/java/com/telnyx/sdk/api/CustomerServiceRequestApiTest.java @@ -17,7 +17,6 @@ import com.telnyx.sdk.auth.*; import com.telnyx.sdk.model.ListCustomerServiceRequestPhoneNumberCoverage; import com.telnyx.sdk.model.ShowCustomerServiceRequest; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; import org.junit.Assert; import org.junit.Ignore; import org.junit.Test; diff --git a/src/test/java/com/telnyx/sdk/api/DialogflowIntegrationApiTest.java b/src/test/java/com/telnyx/sdk/api/DialogflowIntegrationApiTest.java new file mode 100644 index 00000000..10a21267 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/DialogflowIntegrationApiTest.java @@ -0,0 +1,100 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.DialogflowConnection; +import com.telnyx.sdk.model.DialogflowConnectionResponse; +import com.telnyx.sdk.model.Errors; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DialogflowIntegrationApi + */ +public class DialogflowIntegrationApiTest { + + private final DialogflowIntegrationApi api = new DialogflowIntegrationApi(); + + /** + * Create a Dialogflow Connection + * + * Save Dialogflow Credentiails to Telnyx, so it can be used with other Telnyx services. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createDialogflowConnectionTest() throws ApiException { + //String connectionId = null; + //DialogflowConnection dialogflowConnection = null; + //DialogflowConnectionResponse response = api.createDialogflowConnection(connectionId, dialogflowConnection); + // TODO: test validations + } + + /** + * Delete stored Dialogflow Connection + * + * Deletes a stored Dialogflow Connection. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteDialogflowConnectionTest() throws ApiException { + //String connectionId = null; + //api.deleteDialogflowConnection(connectionId); + // TODO: test validations + } + + /** + * Retrieve stored Dialogflow Connection + * + * Return details of the Dialogflow connection associated with the given CallControl connection. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getDialogflowConnectionTest() throws ApiException { + //String connectionId = null; + //DialogflowConnectionResponse response = api.getDialogflowConnection(connectionId); + // TODO: test validations + } + + /** + * Update stored Dialogflow Connection + * + * Updates a stored Dialogflow Connection. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateDialogflowConnectionTest() throws ApiException { + //String connectionId = null; + //DialogflowConnection dialogflowConnection = null; + //DialogflowConnectionResponse response = api.updateDialogflowConnection(connectionId, dialogflowConnection); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/FqdNsApiTest.java b/src/test/java/com/telnyx/sdk/api/FqdNsApiTest.java index 55aef0c8..a1a0250d 100644 --- a/src/test/java/com/telnyx/sdk/api/FqdNsApiTest.java +++ b/src/test/java/com/telnyx/sdk/api/FqdNsApiTest.java @@ -27,7 +27,7 @@ */ public class FqdNsApiTest { - private final FqdNsApi api = new FqdNsApi(); + private final FqdnsApi api = new FqdnsApi(); private final FqdnConnectionsApi fqdnConnectionsApi = new FqdnConnectionsApi(); private Fqdn existingFqdn; private FqdnConnection existingFqdnConnection; diff --git a/src/test/java/com/telnyx/sdk/api/IPsApiTest.java b/src/test/java/com/telnyx/sdk/api/IPsApiTest.java index 4b00a7cf..f430fc31 100644 --- a/src/test/java/com/telnyx/sdk/api/IPsApiTest.java +++ b/src/test/java/com/telnyx/sdk/api/IPsApiTest.java @@ -42,7 +42,7 @@ */ public class IPsApiTest { - private final IPsApi api = new IPsApi(); + private final IpsApi api = new IpsApi(); @Before public void setup() { diff --git a/src/test/java/com/telnyx/sdk/api/MobileApplicationsApiTest.java b/src/test/java/com/telnyx/sdk/api/MobileApplicationsApiTest.java index 3eabddc8..d25fe6a7 100644 --- a/src/test/java/com/telnyx/sdk/api/MobileApplicationsApiTest.java +++ b/src/test/java/com/telnyx/sdk/api/MobileApplicationsApiTest.java @@ -18,9 +18,7 @@ import com.telnyx.sdk.model.CreateMobileApplicationRequest; import com.telnyx.sdk.model.Errors; import com.telnyx.sdk.model.MobileApplicationResponse; -import com.telnyx.sdk.model.OneOfCreateIosPushCredentialRequestCreateAndroidPushCredentialRequest; import com.telnyx.sdk.model.PushCredentialResponse; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; import java.util.UUID; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/com/telnyx/sdk/api/NetworksApiTest.java b/src/test/java/com/telnyx/sdk/api/NetworksApiTest.java new file mode 100644 index 00000000..3aa94191 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/NetworksApiTest.java @@ -0,0 +1,140 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.Errors; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.NetworkCreate; +import com.telnyx.sdk.model.NetworkCreate200Response; +import com.telnyx.sdk.model.NetworkInterfaceList200Response; +import com.telnyx.sdk.model.NetworkList200Response; +import java.util.UUID; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for NetworksApi + */ +public class NetworksApiTest { + + private final NetworksApi api = new NetworksApi(); + + /** + * Create a Network + * + * Create a new Network. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void networkCreateTest() throws ApiException { + //NetworkCreate networkCreate = null; + //NetworkCreate200Response response = api.networkCreate(networkCreate); + // TODO: test validations + } + + /** + * Delete a Network + * + * Delete a Network. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void networkDeleteTest() throws ApiException { + //UUID id = null; + //NetworkCreate200Response response = api.networkDelete(id); + // TODO: test validations + } + + /** + * Retrieve a Network + * + * Retrieve a Network. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void networkGetTest() throws ApiException { + //UUID id = null; + //NetworkCreate200Response response = api.networkGet(id); + // TODO: test validations + } + + /** + * List all Interfaces for a Network. + * + * List all Interfaces for a Network. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void networkInterfaceListTest() throws ApiException { + //UUID id = null; + //Integer pageNumber = null; + //Integer pageSize = null; + //String filterName = null; + //String filterType = null; + //InterfaceStatus filterStatus = null; + //NetworkInterfaceList200Response response = api.networkInterfaceList(id, pageNumber, pageSize, filterName, filterType, filterStatus); + // TODO: test validations + } + + /** + * List all Networks + * + * List all Networks. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void networkListTest() throws ApiException { + //Integer pageNumber = null; + //Integer pageSize = null; + //String filterName = null; + //NetworkList200Response response = api.networkList(pageNumber, pageSize, filterName); + // TODO: test validations + } + + /** + * Update a Network + * + * Update a Network. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void networkUpdateTest() throws ApiException { + //UUID id = null; + //NetworkCreate networkCreate = null; + //NetworkCreate200Response response = api.networkUpdate(id, networkCreate); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/PortingOrderApiTest.java b/src/test/java/com/telnyx/sdk/api/PortingOrderApiTest.java index 526238ab..e6c6b629 100644 --- a/src/test/java/com/telnyx/sdk/api/PortingOrderApiTest.java +++ b/src/test/java/com/telnyx/sdk/api/PortingOrderApiTest.java @@ -34,7 +34,6 @@ import com.telnyx.sdk.model.ShowPortingOrderComment; import com.telnyx.sdk.model.ShowPortingOrdersActivationJob; import com.telnyx.sdk.model.SubRequestByPortingOrder; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; import java.util.UUID; import com.telnyx.sdk.model.UpdatePortingOrder; import org.junit.Assert; diff --git a/src/test/java/com/telnyx/sdk/api/PublicInternetGatewaysApiTest.java b/src/test/java/com/telnyx/sdk/api/PublicInternetGatewaysApiTest.java new file mode 100644 index 00000000..5eb20368 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/PublicInternetGatewaysApiTest.java @@ -0,0 +1,102 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.Errors; +import com.telnyx.sdk.model.PublicInternetGatewayCreate; +import com.telnyx.sdk.model.PublicInternetGatewayCreate202Response; +import com.telnyx.sdk.model.PublicInternetGatewayList200Response; +import java.util.UUID; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for PublicInternetGatewaysApi + */ +public class PublicInternetGatewaysApiTest { + + private final PublicInternetGatewaysApi api = new PublicInternetGatewaysApi(); + + /** + * Create a Public Internet Gateway + * + * Create a new Public Internet Gateway. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void publicInternetGatewayCreateTest() throws ApiException { + //PublicInternetGatewayCreate publicInternetGatewayCreate = null; + //PublicInternetGatewayCreate202Response response = api.publicInternetGatewayCreate(publicInternetGatewayCreate); + // TODO: test validations + } + + /** + * Delete a Public Internet Gateway + * + * Delete a Public Internet Gateway. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void publicInternetGatewayDeleteTest() throws ApiException { + //UUID id = null; + //PublicInternetGatewayCreate202Response response = api.publicInternetGatewayDelete(id); + // TODO: test validations + } + + /** + * Retrieve a Public Internet Gateway + * + * Retrieve a Public Internet Gateway. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void publicInternetGatewayGetTest() throws ApiException { + //UUID id = null; + //PublicInternetGatewayCreate202Response response = api.publicInternetGatewayGet(id); + // TODO: test validations + } + + /** + * List all Public Internet Gateways + * + * List all Public Internet Gateways. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void publicInternetGatewayListTest() throws ApiException { + //Integer pageNumber = null; + //Integer pageSize = null; + //String filterNetworkId = null; + //PublicInternetGatewayList200Response response = api.publicInternetGatewayList(pageNumber, pageSize, filterNetworkId); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/PushCredentialsApiTest.java b/src/test/java/com/telnyx/sdk/api/PushCredentialsApiTest.java index c888d278..e7b9213b 100644 --- a/src/test/java/com/telnyx/sdk/api/PushCredentialsApiTest.java +++ b/src/test/java/com/telnyx/sdk/api/PushCredentialsApiTest.java @@ -17,9 +17,7 @@ import com.telnyx.sdk.auth.*; import com.telnyx.sdk.model.Errors; import java.time.LocalDate; -import com.telnyx.sdk.model.OneOfCreateIosPushCredentialRequestCreateAndroidPushCredentialRequest; import com.telnyx.sdk.model.PushCredentialResponse; -import com.telnyx.sdk.model.UNKNOWN_BASE_TYPE; import java.util.UUID; import org.junit.Assert; import org.junit.Ignore; diff --git a/src/test/java/com/telnyx/sdk/api/RegionsApiTest.java b/src/test/java/com/telnyx/sdk/api/RegionsApiTest.java new file mode 100644 index 00000000..d93550dd --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/RegionsApiTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.Errors; +import com.telnyx.sdk.model.RegionList200Response; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for RegionsApi + */ +public class RegionsApiTest { + + private final RegionsApi api = new RegionsApi(); + + /** + * List all Regions + * + * List all regions and the interfaces that region supports + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void regionListTest() throws ApiException { + //RegionList200Response response = api.regionList(); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/TeXmlRestCommandsApiTest.java b/src/test/java/com/telnyx/sdk/api/TeXmlRestCommandsApiTest.java new file mode 100644 index 00000000..c770883f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/TeXmlRestCommandsApiTest.java @@ -0,0 +1,55 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.TeXmlRESTCommandResponse; +import com.telnyx.sdk.model.UpdateCallRequest; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for TeXmlRestCommandsApi + */ +public class TeXmlRestCommandsApiTest { + + private final TeXmlRestCommandsApi api = new TeXmlRestCommandsApi(); + + /** + * Update call + * + * Update TeXml call + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void updateTeXMLCallTest() throws ApiException { + //String callSid = null; + //UpdateCallRequest updateCallRequest = null; + //TeXmlRESTCommandResponse response = api.updateTeXMLCall(callSid) + // .updateCallRequest(updateCallRequest) + // .execute(); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/VirtualCrossConnectsApiTest.java b/src/test/java/com/telnyx/sdk/api/VirtualCrossConnectsApiTest.java new file mode 100644 index 00000000..9aa65dc1 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/VirtualCrossConnectsApiTest.java @@ -0,0 +1,169 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.Errors; +import java.util.UUID; +import com.telnyx.sdk.model.VirtaulCrossConnectList200Response; +import com.telnyx.sdk.model.VirtaulCrossConnectRegionList200Response; +import com.telnyx.sdk.model.VirtualCrossConnectCreate; +import com.telnyx.sdk.model.VirtualCrossConnectCreate200Response; +import com.telnyx.sdk.model.VirtualCrossConnectPatch; +import com.telnyx.sdk.model.VirtualCrossConnectRegionGet200Response; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for VirtualCrossConnectsApi + */ +public class VirtualCrossConnectsApiTest { + + private final VirtualCrossConnectsApi api = new VirtualCrossConnectsApi(); + + /** + * List all Virtual Cross Connects + * + * List all Virtual Cross Connects. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtaulCrossConnectListTest() throws ApiException { + //Integer pageNumber = null; + //Integer pageSize = null; + //String filterNetworkId = null; + //VirtaulCrossConnectList200Response response = api.virtaulCrossConnectList(pageNumber, pageSize, filterNetworkId); + // TODO: test validations + } + + /** + * List all Virtual Cross Connect Cloud Regions + * + * List all Virtual Cross Connects Cloud Regions.<br /><br />This endpoint shows which cloud regions are available for the `region_code` your Virtual Cross Connect will be provisioned in. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtaulCrossConnectRegionListTest() throws ApiException { + //Integer pageNumber = null; + //Integer pageSize = null; + //String filterRegionCode = null; + //String filterCloudProvider = null; + //VirtaulCrossConnectRegionList200Response response = api.virtaulCrossConnectRegionList(pageNumber, pageSize, filterRegionCode, filterCloudProvider); + // TODO: test validations + } + + /** + * Create a Virtual Cross Connect + * + * Create a new Virtual Cross Connect.<br /><br />For AWS and GCE, you have the option of creating the primary connection first and the secondary connection later. You also have the option of disabling the primary and/or secondary connections at any time and later re-enabling them. With Azure, you do not have this option. Azure requires both the primary and secondary connections to be created at the same time and they can not be independantly disabled. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtualCrossConnectCreateTest() throws ApiException { + //VirtualCrossConnectCreate virtualCrossConnectCreate = null; + //VirtualCrossConnectCreate200Response response = api.virtualCrossConnectCreate(virtualCrossConnectCreate); + // TODO: test validations + } + + /** + * Delete a Virtual Cross Connect + * + * Delete a Virtual Cross Connect. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtualCrossConnectDeleteTest() throws ApiException { + //UUID id = null; + //VirtualCrossConnectCreate200Response response = api.virtualCrossConnectDelete(id); + // TODO: test validations + } + + /** + * Retrieve a Virtual Cross Connect + * + * Retrieve a Virtual Cross Connect. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtualCrossConnectGetTest() throws ApiException { + //UUID id = null; + //VirtualCrossConnectCreate200Response response = api.virtualCrossConnectGet(id); + // TODO: test validations + } + + /** + * Provision a Virtual Cross Connect + * + * Provision a new Virtual Cross Connect.<br /><br />This endpoint is only necessary for GCE cloud regions. Once you have patched your Cloud IPs, you must POST this request to trigger the provision. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtualCrossConnectProvisionTest() throws ApiException { + //UUID id = null; + //VirtualCrossConnectCreate200Response response = api.virtualCrossConnectProvision(id); + // TODO: test validations + } + + /** + * Retrieve a Virtual Cross Connect Cloud Regions + * + * Retrieve a Virtual Cross Connect Cloud Regions. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtualCrossConnectRegionGetTest() throws ApiException { + //UUID id = null; + //VirtualCrossConnectRegionGet200Response response = api.virtualCrossConnectRegionGet(id); + // TODO: test validations + } + + /** + * Update the Virtual Cross Connect + * + * Update the Virtual Cross Connect.<br /><br />Cloud IPs can only be patched during the `created` state, as GCE will only inform you of your generated IP once the pending connection requested has been accepted. Once the Virtual Cross Connect has moved to `provisioning`, the IPs can no longer be patched.<br /><br />Once the Virtual Cross Connect has moved to `provisioned` and you are ready to enable routing, you can toggle the routing announcements to `true`. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void virtualCrossConnectUpdateTest() throws ApiException { + //UUID id = null; + //VirtualCrossConnectPatch virtualCrossConnectPatch = null; + //VirtualCrossConnectCreate200Response response = api.virtualCrossConnectUpdate(id, virtualCrossConnectPatch); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/WdrDetailReportsApiTest.java b/src/test/java/com/telnyx/sdk/api/WdrDetailReportsApiTest.java new file mode 100644 index 00000000..f9835e32 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/WdrDetailReportsApiTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.ExternalWdrGetDetailResponse; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for WdrDetailReportsApi + */ +public class WdrDetailReportsApiTest { + + private final WdrDetailReportsApi api = new WdrDetailReportsApi(); + + /** + * + * + * Fetch all Wdr records + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void getPaginatedWdrsTest() throws ApiException { + //String startDate = null; + //String endDate = null; + //String id = null; + //String mcc = null; + //String mnc = null; + //String imsi = null; + //String simGroupName = null; + //String simGroupId = null; + //String simCardId = null; + //String phoneNumber = null; + //Integer pageNumber = null; + //Integer pageSize = null; + //ExternalWdrGetDetailResponse response = api.getPaginatedWdrs(startDate, endDate, id, mcc, mnc, imsi, simGroupName, simGroupId, simCardId, phoneNumber, pageNumber, pageSize); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApiTest.java b/src/test/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApiTest.java new file mode 100644 index 00000000..65a37c5a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/WhatsAppMessageTemplateApiTest.java @@ -0,0 +1,105 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.CreateWhatsappMessageTemplateRequestBody; +import com.telnyx.sdk.model.Errors; +import java.util.UUID; +import com.telnyx.sdk.model.WhatsAppMessageTemplate1; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for WhatsAppMessageTemplateApi + */ +public class WhatsAppMessageTemplateApiTest { + + private final WhatsAppMessageTemplateApi api = new WhatsAppMessageTemplateApi(); + + /** + * Create WhatsApp Message Templates + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void createWhatsappMessageTemplatesTest() throws ApiException { + //UUID id = null; + //CreateWhatsappMessageTemplateRequestBody createWhatsappMessageTemplateRequestBody = null; + //WhatsAppMessageTemplate1 response = api.createWhatsappMessageTemplates(id, createWhatsappMessageTemplateRequestBody); + // TODO: test validations + } + + /** + * Delete WhatsApp Message Templates + * + * Deletes all of the message templates with the given name and business account + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void deleteWhatsappMessageTemplatesTest() throws ApiException { + //UUID id = null; + //String name = null; + //api.deleteWhatsappMessageTemplates(id, name); + // TODO: test validations + } + + /** + * List WhatsApp Message Templates + * + * + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void listWhatsappMessageTemplatesTest() throws ApiException { + //UUID id = null; + //String category = null; + //String language = null; + //String name = null; + //String qualityScore = null; + //String rejectedReason = null; + //String limit = null; + //String before = null; + //String after = null; + //String status = null; + //WhatsAppMessageTemplate response = api.listWhatsappMessageTemplates(id) + // .category(category) + // .language(language) + // .name(name) + // .qualityScore(qualityScore) + // .rejectedReason(rejectedReason) + // .limit(limit) + // .before(before) + // .after(after) + // .status(status) + // .execute(); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/api/WireGuardInterfacesApiTest.java b/src/test/java/com/telnyx/sdk/api/WireGuardInterfacesApiTest.java new file mode 100644 index 00000000..5c8ba739 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/api/WireGuardInterfacesApiTest.java @@ -0,0 +1,236 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.api; + +import com.telnyx.sdk.*; +import com.telnyx.sdk.auth.*; +import com.telnyx.sdk.model.Errors; +import java.util.UUID; +import com.telnyx.sdk.model.WireguardInterfaceCreate; +import com.telnyx.sdk.model.WireguardInterfaceCreate202Response; +import com.telnyx.sdk.model.WireguardInterfaceList200Response; +import com.telnyx.sdk.model.WireguardPeerAllowedIPGet200Response; +import com.telnyx.sdk.model.WireguardPeerAllowedIPList200Response; +import com.telnyx.sdk.model.WireguardPeerCreate; +import com.telnyx.sdk.model.WireguardPeerCreate202Response; +import com.telnyx.sdk.model.WireguardPeerList200Response; +import com.telnyx.sdk.model.WireguardPeerPatch; +import org.junit.Assert; +import org.junit.Ignore; +import org.junit.Test; + + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for WireGuardInterfacesApi + */ +public class WireGuardInterfacesApiTest { + + private final WireGuardInterfacesApi api = new WireGuardInterfacesApi(); + + /** + * Create a WireGuard Interface + * + * Create a new WireGuard Interface. Current limitation of 10 interfaces per user can be created. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardInterfaceCreateTest() throws ApiException { + //WireguardInterfaceCreate wireguardInterfaceCreate = null; + //WireguardInterfaceCreate202Response response = api.wireguardInterfaceCreate(wireguardInterfaceCreate); + // TODO: test validations + } + + /** + * Delete a WireGuard Interface + * + * Delete a WireGuard Interface. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardInterfaceDeleteTest() throws ApiException { + //UUID id = null; + //WireguardInterfaceCreate202Response response = api.wireguardInterfaceDelete(id); + // TODO: test validations + } + + /** + * Retrieve a WireGuard Interfaces + * + * Retrieve a WireGuard Interfaces. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardInterfaceGetTest() throws ApiException { + //UUID id = null; + //WireguardInterfaceCreate202Response response = api.wireguardInterfaceGet(id); + // TODO: test validations + } + + /** + * List all WireGuard Interfaces + * + * List all WireGuard Interfaces. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardInterfaceListTest() throws ApiException { + //Integer pageNumber = null; + //Integer pageSize = null; + //String filterNetworkId = null; + //WireguardInterfaceList200Response response = api.wireguardInterfaceList(pageNumber, pageSize, filterNetworkId); + // TODO: test validations + } + + /** + * Retrieve the Allowed IP + * + * Retrieve the Allowed IP. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerAllowedIPGetTest() throws ApiException { + //UUID id = null; + //UUID childId = null; + //WireguardPeerAllowedIPGet200Response response = api.wireguardPeerAllowedIPGet(id, childId); + // TODO: test validations + } + + /** + * List all Allowed IPs for a WireGuard Peer + * + * List all Allowed IPs for a WireGuard peer. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerAllowedIPListTest() throws ApiException { + //UUID id = null; + //Integer pageNumber = null; + //Integer pageSize = null; + //WireguardPeerAllowedIPList200Response response = api.wireguardPeerAllowedIPList(id, pageNumber, pageSize); + // TODO: test validations + } + + /** + * Retrieve Wireguard config template for Peer + * + * Retrieve Wireguard config template for Peer + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerConfigTest() throws ApiException { + //UUID id = null; + //String response = api.wireguardPeerConfig(id); + // TODO: test validations + } + + /** + * Create a WireGuard Peer + * + * Create a new WireGuard Peer. Current limitation of 5 peers per interface can be created. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerCreateTest() throws ApiException { + //UUID id = null; + //WireguardPeerCreate wireguardPeerCreate = null; + //WireguardPeerCreate202Response response = api.wireguardPeerCreate(id, wireguardPeerCreate); + // TODO: test validations + } + + /** + * Delete the WireGuard Peer + * + * Delete the WireGuard peer. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerDeleteTest() throws ApiException { + //UUID id = null; + //WireguardPeerCreate202Response response = api.wireguardPeerDelete(id); + // TODO: test validations + } + + /** + * Retrieve the WireGuard Peer + * + * Retrieve the WireGuard peer. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerGetTest() throws ApiException { + //UUID id = null; + //WireguardPeerCreate202Response response = api.wireguardPeerGet(id); + // TODO: test validations + } + + /** + * List all WireGuard Peers + * + * List all WireGuard peers. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerListTest() throws ApiException { + //UUID id = null; + //Integer pageNumber = null; + //Integer pageSize = null; + //UUID filterWireguardInterfaceId = null; + //WireguardPeerList200Response response = api.wireguardPeerList(id, pageNumber, pageSize, filterWireguardInterfaceId); + // TODO: test validations + } + + /** + * Update the WireGuard Peer + * + * Update the WireGuard peer. + * + * @throws ApiException + * if the Api call fails + */ + @Test + public void wireguardPeerUpdateTest() throws ApiException { + //UUID id = null; + //WireguardPeerPatch wireguardPeerPatch = null; + //WireguardPeerCreate202Response response = api.wireguardPeerUpdate(id, wireguardPeerPatch); + // TODO: test validations + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ActionTest.java b/src/test/java/com/telnyx/sdk/model/ActionTest.java new file mode 100644 index 00000000..44cc97ce --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ActionTest.java @@ -0,0 +1,87 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveAction; +import com.telnyx.sdk.model.InteractiveButton; +import com.telnyx.sdk.model.InteractiveSection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Action + */ +public class ActionTest { + private final Action model = new Action(); + + /** + * Model tests for Action + */ + @Test + public void testAction() { + // TODO: test Action + } + + /** + * Test the property 'button' + */ + @Test + public void buttonTest() { + // TODO: test button + } + + /** + * Test the property 'buttons' + */ + @Test + public void buttonsTest() { + // TODO: test buttons + } + + /** + * Test the property 'sections' + */ + @Test + public void sectionsTest() { + // TODO: test sections + } + + /** + * Test the property 'catalogId' + */ + @Test + public void catalogIdTest() { + // TODO: test catalogId + } + + /** + * Test the property 'productRetailerId' + */ + @Test + public void productRetailerIdTest() { + // TODO: test productRetailerId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ActionsParticipantsRequestTest.java b/src/test/java/com/telnyx/sdk/model/ActionsParticipantsRequestTest.java index acbcf58f..9a4d5d9d 100644 --- a/src/test/java/com/telnyx/sdk/model/ActionsParticipantsRequestTest.java +++ b/src/test/java/com/telnyx/sdk/model/ActionsParticipantsRequestTest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.OneOfstringarray; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; diff --git a/src/test/java/com/telnyx/sdk/model/ActivatePortingOrder202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ActivatePortingOrder202ResponseTest.java new file mode 100644 index 00000000..83b443f4 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ActivatePortingOrder202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrdersActivationJob; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ActivatePortingOrder202Response + */ +public class ActivatePortingOrder202ResponseTest { + private final ActivatePortingOrder202Response model = new ActivatePortingOrder202Response(); + + /** + * Model tests for ActivatePortingOrder202Response + */ + @Test + public void testActivatePortingOrder202Response() { + // TODO: test ActivatePortingOrder202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/AssignPhoneNumberRequestTest.java b/src/test/java/com/telnyx/sdk/model/AssignPhoneNumberRequestTest.java new file mode 100644 index 00000000..26e4a4b8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/AssignPhoneNumberRequestTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for AssignPhoneNumberRequest + */ +public class AssignPhoneNumberRequestTest { + private final AssignPhoneNumberRequest model = new AssignPhoneNumberRequest(); + + /** + * Model tests for AssignPhoneNumberRequest + */ + @Test + public void testAssignPhoneNumberRequest() { + // TODO: test AssignPhoneNumberRequest + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BodyTest.java b/src/test/java/com/telnyx/sdk/model/BodyTest.java new file mode 100644 index 00000000..e7abf08b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BodyTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveBody; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Body + */ +public class BodyTest { + private final Body model = new Body(); + + /** + * Model tests for Body + */ + @Test + public void testBody() { + // TODO: test Body + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BulkSIMCardActionDetailedTest.java b/src/test/java/com/telnyx/sdk/model/BulkSIMCardActionDetailedTest.java new file mode 100644 index 00000000..92682c6b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BulkSIMCardActionDetailedTest.java @@ -0,0 +1,102 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardActionsSummary; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkSIMCardActionDetailed + */ +public class BulkSIMCardActionDetailedTest { + private final BulkSIMCardActionDetailed model = new BulkSIMCardActionDetailed(); + + /** + * Model tests for BulkSIMCardActionDetailed + */ + @Test + public void testBulkSIMCardActionDetailed() { + // TODO: test BulkSIMCardActionDetailed + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'actionType' + */ + @Test + public void actionTypeTest() { + // TODO: test actionType + } + + /** + * Test the property 'settings' + */ + @Test + public void settingsTest() { + // TODO: test settings + } + + /** + * Test the property 'simCardActionsSummary' + */ + @Test + public void simCardActionsSummaryTest() { + // TODO: test simCardActionsSummary + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BulkSIMCardActionTest.java b/src/test/java/com/telnyx/sdk/model/BulkSIMCardActionTest.java new file mode 100644 index 00000000..893bdd0e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BulkSIMCardActionTest.java @@ -0,0 +1,91 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkSIMCardAction + */ +public class BulkSIMCardActionTest { + private final BulkSIMCardAction model = new BulkSIMCardAction(); + + /** + * Model tests for BulkSIMCardAction + */ + @Test + public void testBulkSIMCardAction() { + // TODO: test BulkSIMCardAction + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'actionType' + */ + @Test + public void actionTypeTest() { + // TODO: test actionType + } + + /** + * Test the property 'settings' + */ + @Test + public void settingsTest() { + // TODO: test settings + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202ResponseTest.java new file mode 100644 index 00000000..193f340e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferences202ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Error; +import com.telnyx.sdk.model.SIMCardNetworkPreferenceWithOTAUpdates; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkSIMCardNetworkPreferences202Response + */ +public class BulkSIMCardNetworkPreferences202ResponseTest { + private final BulkSIMCardNetworkPreferences202Response model = new BulkSIMCardNetworkPreferences202Response(); + + /** + * Model tests for BulkSIMCardNetworkPreferences202Response + */ + @Test + public void testBulkSIMCardNetworkPreferences202Response() { + // TODO: test BulkSIMCardNetworkPreferences202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequestTest.java b/src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequestTest.java new file mode 100644 index 00000000..a7d0d25b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BulkSIMCardNetworkPreferencesRequestTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MobileOperatorNetworkPreferencesRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkSIMCardNetworkPreferencesRequest + */ +public class BulkSIMCardNetworkPreferencesRequestTest { + private final BulkSIMCardNetworkPreferencesRequest model = new BulkSIMCardNetworkPreferencesRequest(); + + /** + * Model tests for BulkSIMCardNetworkPreferencesRequest + */ + @Test + public void testBulkSIMCardNetworkPreferencesRequest() { + // TODO: test BulkSIMCardNetworkPreferencesRequest + } + + /** + * Test the property 'simCardIds' + */ + @Test + public void simCardIdsTest() { + // TODO: test simCardIds + } + + /** + * Test the property 'mobileOperatorNetworksPreferences' + */ + @Test + public void mobileOperatorNetworksPreferencesTest() { + // TODO: test mobileOperatorNetworksPreferences + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BulkSetPublicIPs202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/BulkSetPublicIPs202ResponseTest.java new file mode 100644 index 00000000..6299d6d4 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BulkSetPublicIPs202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BulkSIMCardAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkSetPublicIPs202Response + */ +public class BulkSetPublicIPs202ResponseTest { + private final BulkSetPublicIPs202Response model = new BulkSetPublicIPs202Response(); + + /** + * Model tests for BulkSetPublicIPs202Response + */ + @Test + public void testBulkSetPublicIPs202Response() { + // TODO: test BulkSetPublicIPs202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BulkSetPublicIPsRequestTest.java b/src/test/java/com/telnyx/sdk/model/BulkSetPublicIPsRequestTest.java new file mode 100644 index 00000000..8bc85e8b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BulkSetPublicIPsRequestTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkSetPublicIPsRequest + */ +public class BulkSetPublicIPsRequestTest { + private final BulkSetPublicIPsRequest model = new BulkSetPublicIPsRequest(); + + /** + * Model tests for BulkSetPublicIPsRequest + */ + @Test + public void testBulkSetPublicIPsRequest() { + // TODO: test BulkSetPublicIPsRequest + } + + /** + * Test the property 'simCardIds' + */ + @Test + public void simCardIdsTest() { + // TODO: test simCardIds + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BulkSimCardActionGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/BulkSimCardActionGet200ResponseTest.java new file mode 100644 index 00000000..42a6e132 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BulkSimCardActionGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BulkSIMCardActionDetailed; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BulkSimCardActionGet200Response + */ +public class BulkSimCardActionGet200ResponseTest { + private final BulkSimCardActionGet200Response model = new BulkSimCardActionGet200Response(); + + /** + * Model tests for BulkSimCardActionGet200Response + */ + @Test + public void testBulkSimCardActionGet200Response() { + // TODO: test BulkSimCardActionGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/BusinessIdentityContactsInnerTest.java b/src/test/java/com/telnyx/sdk/model/BusinessIdentityContactsInnerTest.java new file mode 100644 index 00000000..b899932a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/BusinessIdentityContactsInnerTest.java @@ -0,0 +1,99 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for BusinessIdentityContactsInner + */ +public class BusinessIdentityContactsInnerTest { + private final BusinessIdentityContactsInner model = new BusinessIdentityContactsInner(); + + /** + * Model tests for BusinessIdentityContactsInner + */ + @Test + public void testBusinessIdentityContactsInner() { + // TODO: test BusinessIdentityContactsInner + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'firstName' + */ + @Test + public void firstNameTest() { + // TODO: test firstName + } + + /** + * Test the property 'jobTitle' + */ + @Test + public void jobTitleTest() { + // TODO: test jobTitle + } + + /** + * Test the property 'lastName' + */ + @Test + public void lastNameTest() { + // TODO: test lastName + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ButtonComponentTypeTest.java b/src/test/java/com/telnyx/sdk/model/ButtonComponentTypeTest.java new file mode 100644 index 00000000..fe734cbe --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ButtonComponentTypeTest.java @@ -0,0 +1,34 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import io.swagger.annotations.ApiModel; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ButtonComponentType + */ +public class ButtonComponentTypeTest { + /** + * Model tests for ButtonComponentType + */ + @Test + public void testButtonComponentType() { + // TODO: test ButtonComponentType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ButtonParameterTest.java b/src/test/java/com/telnyx/sdk/model/ButtonParameterTest.java new file mode 100644 index 00000000..b55d63c5 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ButtonParameterTest.java @@ -0,0 +1,70 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ButtonParameter + */ +public class ButtonParameterTest { + private final ButtonParameter model = new ButtonParameter(); + + /** + * Model tests for ButtonParameter + */ + @Test + public void testButtonParameter() { + // TODO: test ButtonParameter + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'payload' + */ + @Test + public void payloadTest() { + // TODO: test payload + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ButtonParameterTypeTest.java b/src/test/java/com/telnyx/sdk/model/ButtonParameterTypeTest.java new file mode 100644 index 00000000..6bf3fc22 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ButtonParameterTypeTest.java @@ -0,0 +1,34 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import io.swagger.annotations.ApiModel; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ButtonParameterType + */ +public class ButtonParameterTypeTest { + /** + * Model tests for ButtonParameterType + */ + @Test + public void testButtonParameterType() { + // TODO: test ButtonParameterType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ButtonSubtypeTest.java b/src/test/java/com/telnyx/sdk/model/ButtonSubtypeTest.java new file mode 100644 index 00000000..898f8ac1 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ButtonSubtypeTest.java @@ -0,0 +1,34 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import io.swagger.annotations.ApiModel; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ButtonSubtype + */ +public class ButtonSubtypeTest { + /** + * Model tests for ButtonSubtype + */ + @Test + public void testButtonSubtype() { + // TODO: test ButtonSubtype + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ButtonTest.java b/src/test/java/com/telnyx/sdk/model/ButtonTest.java new file mode 100644 index 00000000..59a440f6 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ButtonTest.java @@ -0,0 +1,69 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonParameter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Button + */ +public class ButtonTest { + private final Button model = new Button(); + + /** + * Model tests for Button + */ + @Test + public void testButton() { + // TODO: test Button + } + + /** + * Test the property 'subType' + */ + @Test + public void subTypeTest() { + // TODO: test subType + } + + /** + * Test the property 'index' + */ + @Test + public void indexTest() { + // TODO: test index + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInnerTest.java b/src/test/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInnerTest.java new file mode 100644 index 00000000..fa299768 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CallCostPayloadCostPartsInnerTest.java @@ -0,0 +1,83 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallCostPayloadCostPartsInner + */ +public class CallCostPayloadCostPartsInnerTest { + private final CallCostPayloadCostPartsInner model = new CallCostPayloadCostPartsInner(); + + /** + * Model tests for CallCostPayloadCostPartsInner + */ + @Test + public void testCallCostPayloadCostPartsInner() { + // TODO: test CallCostPayloadCostPartsInner + } + + /** + * Test the property 'billedDurationSecs' + */ + @Test + public void billedDurationSecsTest() { + // TODO: test billedDurationSecs + } + + /** + * Test the property 'callPart' + */ + @Test + public void callPartTest() { + // TODO: test callPart + } + + /** + * Test the property 'cost' + */ + @Test + public void costTest() { + // TODO: test cost + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** + * Test the property 'rate' + */ + @Test + public void rateTest() { + // TODO: test rate + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CallStreamingFailedEventTest.java b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedEventTest.java new file mode 100644 index 00000000..8a77ea07 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedEventTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallStreamingFailed; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallStreamingFailedEvent + */ +public class CallStreamingFailedEventTest { + private final CallStreamingFailedEvent model = new CallStreamingFailedEvent(); + + /** + * Model tests for CallStreamingFailedEvent + */ + @Test + public void testCallStreamingFailedEvent() { + // TODO: test CallStreamingFailedEvent + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParamsTest.java b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParamsTest.java new file mode 100644 index 00000000..bbadb3d3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadStreamParamsTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallStreamingFailedPayloadStreamParams + */ +public class CallStreamingFailedPayloadStreamParamsTest { + private final CallStreamingFailedPayloadStreamParams model = new CallStreamingFailedPayloadStreamParams(); + + /** + * Model tests for CallStreamingFailedPayloadStreamParams + */ + @Test + public void testCallStreamingFailedPayloadStreamParams() { + // TODO: test CallStreamingFailedPayloadStreamParams + } + + /** + * Test the property 'streamUrl' + */ + @Test + public void streamUrlTest() { + // TODO: test streamUrl + } + + /** + * Test the property 'track' + */ + @Test + public void trackTest() { + // TODO: test track + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadTest.java b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadTest.java new file mode 100644 index 00000000..64f7f06c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedPayloadTest.java @@ -0,0 +1,116 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallStreamingFailedPayloadStreamParams; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallStreamingFailedPayload + */ +public class CallStreamingFailedPayloadTest { + private final CallStreamingFailedPayload model = new CallStreamingFailedPayload(); + + /** + * Model tests for CallStreamingFailedPayload + */ + @Test + public void testCallStreamingFailedPayload() { + // TODO: test CallStreamingFailedPayload + } + + /** + * Test the property 'callControlId' + */ + @Test + public void callControlIdTest() { + // TODO: test callControlId + } + + /** + * Test the property 'connectionId' + */ + @Test + public void connectionIdTest() { + // TODO: test connectionId + } + + /** + * Test the property 'callLegId' + */ + @Test + public void callLegIdTest() { + // TODO: test callLegId + } + + /** + * Test the property 'callSessionId' + */ + @Test + public void callSessionIdTest() { + // TODO: test callSessionId + } + + /** + * Test the property 'clientState' + */ + @Test + public void clientStateTest() { + // TODO: test clientState + } + + /** + * Test the property 'failureReason' + */ + @Test + public void failureReasonTest() { + // TODO: test failureReason + } + + /** + * Test the property 'streamId' + */ + @Test + public void streamIdTest() { + // TODO: test streamId + } + + /** + * Test the property 'streamParams' + */ + @Test + public void streamParamsTest() { + // TODO: test streamParams + } + + /** + * Test the property 'streamType' + */ + @Test + public void streamTypeTest() { + // TODO: test streamType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CallStreamingFailedTest.java b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedTest.java new file mode 100644 index 00000000..8b0c2d92 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CallStreamingFailedTest.java @@ -0,0 +1,85 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallStreamingFailedPayload; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CallStreamingFailed + */ +public class CallStreamingFailedTest { + private final CallStreamingFailed model = new CallStreamingFailed(); + + /** + * Model tests for CallStreamingFailed + */ + @Test + public void testCallStreamingFailed() { + // TODO: test CallStreamingFailed + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'eventType' + */ + @Test + public void eventTypeTest() { + // TODO: test eventType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'occurredAt' + */ + @Test + public void occurredAtTest() { + // TODO: test occurredAt + } + + /** + * Test the property 'payload' + */ + @Test + public void payloadTest() { + // TODO: test payload + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CancelPortingOrder200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CancelPortingOrder200ResponseTest.java new file mode 100644 index 00000000..7a26f384 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CancelPortingOrder200ResponseTest.java @@ -0,0 +1,60 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import com.telnyx.sdk.model.UpdatePortingOrder200ResponseMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CancelPortingOrder200Response + */ +public class CancelPortingOrder200ResponseTest { + private final CancelPortingOrder200Response model = new CancelPortingOrder200Response(); + + /** + * Model tests for CancelPortingOrder200Response + */ + @Test + public void testCancelPortingOrder200Response() { + // TODO: test CancelPortingOrder200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ConfirmPortingOrder200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ConfirmPortingOrder200ResponseTest.java new file mode 100644 index 00000000..8bab2dbc --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ConfirmPortingOrder200ResponseTest.java @@ -0,0 +1,60 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import com.telnyx.sdk.model.UpdatePortingOrder200ResponseMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ConfirmPortingOrder200Response + */ +public class ConfirmPortingOrder200ResponseTest { + private final ConfirmPortingOrder200Response model = new ConfirmPortingOrder200Response(); + + /** + * Model tests for ConfirmPortingOrder200Response + */ + @Test + public void testConfirmPortingOrder200Response() { + // TODO: test ConfirmPortingOrder200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ContactTest.java b/src/test/java/com/telnyx/sdk/model/ContactTest.java index 206ffa91..545dafa5 100644 --- a/src/test/java/com/telnyx/sdk/model/ContactTest.java +++ b/src/test/java/com/telnyx/sdk/model/ContactTest.java @@ -19,7 +19,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Email; -import com.telnyx.sdk.model.Name; import com.telnyx.sdk.model.Organization; import com.telnyx.sdk.model.Phone; import com.telnyx.sdk.model.Url; diff --git a/src/test/java/com/telnyx/sdk/model/CreateAuthenticationProvider200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateAuthenticationProvider200ResponseTest.java new file mode 100644 index 00000000..054183e7 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateAuthenticationProvider200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.AuthenticationProvider; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateAuthenticationProvider200Response + */ +public class CreateAuthenticationProvider200ResponseTest { + private final CreateAuthenticationProvider200Response model = new CreateAuthenticationProvider200Response(); + + /** + * Model tests for CreateAuthenticationProvider200Response + */ + @Test + public void testCreateAuthenticationProvider200Response() { + // TODO: test CreateAuthenticationProvider200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateBillingGroup200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateBillingGroup200ResponseTest.java new file mode 100644 index 00000000..391b2805 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateBillingGroup200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BillingGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateBillingGroup200Response + */ +public class CreateBillingGroup200ResponseTest { + private final CreateBillingGroup200Response model = new CreateBillingGroup200Response(); + + /** + * Model tests for CreateBillingGroup200Response + */ + @Test + public void testCreateBillingGroup200Response() { + // TODO: test CreateBillingGroup200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateComment200ResponseDataTest.java b/src/test/java/com/telnyx/sdk/model/CreateComment200ResponseDataTest.java new file mode 100644 index 00000000..c2aeae48 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateComment200ResponseDataTest.java @@ -0,0 +1,116 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Comment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateComment200ResponseData + */ +public class CreateComment200ResponseDataTest { + private final CreateComment200ResponseData model = new CreateComment200ResponseData(); + + /** + * Model tests for CreateComment200ResponseData + */ + @Test + public void testCreateComment200ResponseData() { + // TODO: test CreateComment200ResponseData + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'body' + */ + @Test + public void bodyTest() { + // TODO: test body + } + + /** + * Test the property 'commenter' + */ + @Test + public void commenterTest() { + // TODO: test commenter + } + + /** + * Test the property 'commenterType' + */ + @Test + public void commenterTypeTest() { + // TODO: test commenterType + } + + /** + * Test the property 'commentRecordType' + */ + @Test + public void commentRecordTypeTest() { + // TODO: test commentRecordType + } + + /** + * Test the property 'commentRecordId' + */ + @Test + public void commentRecordIdTest() { + // TODO: test commentRecordId + } + + /** + * Test the property 'readAt' + */ + @Test + public void readAtTest() { + // TODO: test readAt + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateComment200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateComment200ResponseTest.java new file mode 100644 index 00000000..52dcbd92 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateComment200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CreateComment200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateComment200Response + */ +public class CreateComment200ResponseTest { + private final CreateComment200Response model = new CreateComment200Response(); + + /** + * Model tests for CreateComment200Response + */ + @Test + public void testCreateComment200Response() { + // TODO: test CreateComment200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201ResponseTest.java new file mode 100644 index 00000000..4ddae357 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequest201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerServiceRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateCustomerServiceRequest201Response + */ +public class CreateCustomerServiceRequest201ResponseTest { + private final CreateCustomerServiceRequest201Response model = new CreateCustomerServiceRequest201Response(); + + /** + * Model tests for CreateCustomerServiceRequest201Response + */ + @Test + public void testCreateCustomerServiceRequest201Response() { + // TODO: test CreateCustomerServiceRequest201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequestTest.java b/src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequestTest.java new file mode 100644 index 00000000..63171db0 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateCustomerServiceRequestRequestTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateCustomerServiceRequestRequest + */ +public class CreateCustomerServiceRequestRequestTest { + private final CreateCustomerServiceRequestRequest model = new CreateCustomerServiceRequestRequest(); + + /** + * Model tests for CreateCustomerServiceRequestRequest + */ + @Test + public void testCreateCustomerServiceRequestRequest() { + // TODO: test CreateCustomerServiceRequestRequest + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + + /** + * Test the property 'webhookUrl' + */ + @Test + public void webhookUrlTest() { + // TODO: test webhookUrl + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateDocument200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateDocument200ResponseTest.java new file mode 100644 index 00000000..b3eedda2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateDocument200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocServiceDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateDocument200Response + */ +public class CreateDocument200ResponseTest { + private final CreateDocument200Response model = new CreateDocument200Response(); + + /** + * Model tests for CreateDocument200Response + */ + @Test + public void testCreateDocument200Response() { + // TODO: test CreateDocument200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201ResponseTest.java new file mode 100644 index 00000000..f07ad3be --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyAddress201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyAddress; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateDyanmicEmergencyAddress201Response + */ +public class CreateDyanmicEmergencyAddress201ResponseTest { + private final CreateDyanmicEmergencyAddress201Response model = new CreateDyanmicEmergencyAddress201Response(); + + /** + * Model tests for CreateDyanmicEmergencyAddress201Response + */ + @Test + public void testCreateDyanmicEmergencyAddress201Response() { + // TODO: test CreateDyanmicEmergencyAddress201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201ResponseTest.java new file mode 100644 index 00000000..bbcf4cc9 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateDyanmicEmergencyEndpoint201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyEndpoint; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateDyanmicEmergencyEndpoint201Response + */ +public class CreateDyanmicEmergencyEndpoint201ResponseTest { + private final CreateDyanmicEmergencyEndpoint201Response model = new CreateDyanmicEmergencyEndpoint201Response(); + + /** + * Model tests for CreateDyanmicEmergencyEndpoint201Response + */ + @Test + public void testCreateDyanmicEmergencyEndpoint201Response() { + // TODO: test CreateDyanmicEmergencyEndpoint201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200ResponseTest.java new file mode 100644 index 00000000..59e0136f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateInventoryCoverageRequest200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InventoryCoverage; +import com.telnyx.sdk.model.InventoryCoverageMetadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateInventoryCoverageRequest200Response + */ +public class CreateInventoryCoverageRequest200ResponseTest { + private final CreateInventoryCoverageRequest200Response model = new CreateInventoryCoverageRequest200Response(); + + /** + * Model tests for CreateInventoryCoverageRequest200Response + */ + @Test + public void testCreateInventoryCoverageRequest200Response() { + // TODO: test CreateInventoryCoverageRequest200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200ResponseTest.java new file mode 100644 index 00000000..8f526139 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateLedgerBillingGroupReport200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.LedgerBillingGroupReport; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateLedgerBillingGroupReport200Response + */ +public class CreateLedgerBillingGroupReport200ResponseTest { + private final CreateLedgerBillingGroupReport200Response model = new CreateLedgerBillingGroupReport200Response(); + + /** + * Model tests for CreateLedgerBillingGroupReport200Response + */ + @Test + public void testCreateLedgerBillingGroupReport200Response() { + // TODO: test CreateLedgerBillingGroupReport200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateManagedAccount200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateManagedAccount200ResponseTest.java new file mode 100644 index 00000000..51f81a00 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateManagedAccount200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ManagedAccount; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateManagedAccount200Response + */ +public class CreateManagedAccount200ResponseTest { + private final CreateManagedAccount200Response model = new CreateManagedAccount200Response(); + + /** + * Model tests for CreateManagedAccount200Response + */ + @Test + public void testCreateManagedAccount200Response() { + // TODO: test CreateManagedAccount200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateManagedAccount422ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateManagedAccount422ResponseTest.java new file mode 100644 index 00000000..30cf0bb9 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateManagedAccount422ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnprocessableEntityError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateManagedAccount422Response + */ +public class CreateManagedAccount422ResponseTest { + private final CreateManagedAccount422Response model = new CreateManagedAccount422Response(); + + /** + * Model tests for CreateManagedAccount422Response + */ + @Test + public void testCreateManagedAccount422Response() { + // TODO: test CreateManagedAccount422Response + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateNotificationChannels200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateNotificationChannels200ResponseTest.java new file mode 100644 index 00000000..e51f3104 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateNotificationChannels200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationChannel; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateNotificationChannels200Response + */ +public class CreateNotificationChannels200ResponseTest { + private final CreateNotificationChannels200Response model = new CreateNotificationChannels200Response(); + + /** + * Model tests for CreateNotificationChannels200Response + */ + @Test + public void testCreateNotificationChannels200Response() { + // TODO: test CreateNotificationChannels200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateNotificationProfile200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateNotificationProfile200ResponseTest.java new file mode 100644 index 00000000..0dab68f8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateNotificationProfile200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationProfile; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateNotificationProfile200Response + */ +public class CreateNotificationProfile200ResponseTest { + private final CreateNotificationProfile200Response model = new CreateNotificationProfile200Response(); + + /** + * Model tests for CreateNotificationProfile200Response + */ + @Test + public void testCreateNotificationProfile200Response() { + // TODO: test CreateNotificationProfile200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateNotificationSetting200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateNotificationSetting200ResponseTest.java new file mode 100644 index 00000000..5498581b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateNotificationSetting200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationSetting; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateNotificationSetting200Response + */ +public class CreateNotificationSetting200ResponseTest { + private final CreateNotificationSetting200Response model = new CreateNotificationSetting200Response(); + + /** + * Model tests for CreateNotificationSetting200Response + */ + @Test + public void testCreateNotificationSetting200Response() { + // TODO: test CreateNotificationSetting200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequestTest.java b/src/test/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequestTest.java index 585afd99..b526656c 100644 --- a/src/test/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequestTest.java +++ b/src/test/java/com/telnyx/sdk/model/CreateOrUpdateBusinessIdentityRequestTest.java @@ -19,12 +19,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Address; -import com.telnyx.sdk.model.BusinessDescription; -import com.telnyx.sdk.model.BusinessEmail; -import com.telnyx.sdk.model.BusinessPhoneNumber; -import com.telnyx.sdk.model.Contacts; -import com.telnyx.sdk.model.SubmissionAcknowledgement; -import com.telnyx.sdk.model.WebsiteUrl; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.junit.Assert; diff --git a/src/test/java/com/telnyx/sdk/model/CreatePortingOrder201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreatePortingOrder201ResponseTest.java new file mode 100644 index 00000000..0cf63711 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreatePortingOrder201ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreatePortingOrder201Response + */ +public class CreatePortingOrder201ResponseTest { + private final CreatePortingOrder201Response model = new CreatePortingOrder201Response(); + + /** + * Model tests for CreatePortingOrder201Response + */ + @Test + public void testCreatePortingOrder201Response() { + // TODO: test CreatePortingOrder201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreatePortingOrderComment201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreatePortingOrderComment201ResponseTest.java new file mode 100644 index 00000000..f0951a2b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreatePortingOrderComment201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrdersComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreatePortingOrderComment201Response + */ +public class CreatePortingOrderComment201ResponseTest { + private final CreatePortingOrderComment201Response model = new CreatePortingOrderComment201Response(); + + /** + * Model tests for CreatePortingOrderComment201Response + */ + @Test + public void testCreatePortingOrderComment201Response() { + // TODO: test CreatePortingOrderComment201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202ResponseTest.java new file mode 100644 index 00000000..bea6ed8b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGateway202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PrivateWirelessGateway; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreatePrivateWirelessGateway202Response + */ +public class CreatePrivateWirelessGateway202ResponseTest { + private final CreatePrivateWirelessGateway202Response model = new CreatePrivateWirelessGateway202Response(); + + /** + * Model tests for CreatePrivateWirelessGateway202Response + */ + @Test + public void testCreatePrivateWirelessGateway202Response() { + // TODO: test CreatePrivateWirelessGateway202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequestTest.java b/src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequestTest.java new file mode 100644 index 00000000..bd65f627 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreatePrivateWirelessGatewayRequestTest.java @@ -0,0 +1,59 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreatePrivateWirelessGatewayRequest + */ +public class CreatePrivateWirelessGatewayRequestTest { + private final CreatePrivateWirelessGatewayRequest model = new CreatePrivateWirelessGatewayRequest(); + + /** + * Model tests for CreatePrivateWirelessGatewayRequest + */ + @Test + public void testCreatePrivateWirelessGatewayRequest() { + // TODO: test CreatePrivateWirelessGatewayRequest + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreatePushCredentialRequestTest.java b/src/test/java/com/telnyx/sdk/model/CreatePushCredentialRequestTest.java new file mode 100644 index 00000000..87994d86 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreatePushCredentialRequestTest.java @@ -0,0 +1,84 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CreateAndroidPushCredentialRequest; +import com.telnyx.sdk.model.CreateIosPushCredentialRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreatePushCredentialRequest + */ +public class CreatePushCredentialRequestTest { + private final CreatePushCredentialRequest model = new CreatePushCredentialRequest(); + + /** + * Model tests for CreatePushCredentialRequest + */ + @Test + public void testCreatePushCredentialRequest() { + // TODO: test CreatePushCredentialRequest + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'certificate' + */ + @Test + public void certificateTest() { + // TODO: test certificate + } + + /** + * Test the property 'privateKey' + */ + @Test + public void privateKeyTest() { + // TODO: test privateKey + } + + /** + * Test the property 'alias' + */ + @Test + public void aliasTest() { + // TODO: test alias + } + + /** + * Test the property 'serverKey' + */ + @Test + public void serverKeyTest() { + // TODO: test serverKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateRoom201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateRoom201ResponseTest.java new file mode 100644 index 00000000..63633f0c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateRoom201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Room; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateRoom201Response + */ +public class CreateRoom201ResponseTest { + private final CreateRoom201Response model = new CreateRoom201Response(); + + /** + * Model tests for CreateRoom201Response + */ + @Test + public void testCreateRoom201Response() { + // TODO: test CreateRoom201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseDataTest.java b/src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseDataTest.java new file mode 100644 index 00000000..111424db --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseDataTest.java @@ -0,0 +1,74 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateRoomClientToken201ResponseData + */ +public class CreateRoomClientToken201ResponseDataTest { + private final CreateRoomClientToken201ResponseData model = new CreateRoomClientToken201ResponseData(); + + /** + * Model tests for CreateRoomClientToken201ResponseData + */ + @Test + public void testCreateRoomClientToken201ResponseData() { + // TODO: test CreateRoomClientToken201ResponseData + } + + /** + * Test the property 'token' + */ + @Test + public void tokenTest() { + // TODO: test token + } + + /** + * Test the property 'tokenExpiresAt' + */ + @Test + public void tokenExpiresAtTest() { + // TODO: test tokenExpiresAt + } + + /** + * Test the property 'refreshToken' + */ + @Test + public void refreshTokenTest() { + // TODO: test refreshToken + } + + /** + * Test the property 'refreshTokenExpiresAt' + */ + @Test + public void refreshTokenExpiresAtTest() { + // TODO: test refreshTokenExpiresAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseTest.java new file mode 100644 index 00000000..68521041 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateRoomClientToken201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CreateRoomClientToken201ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateRoomClientToken201Response + */ +public class CreateRoomClientToken201ResponseTest { + private final CreateRoomClientToken201Response model = new CreateRoomClientToken201Response(); + + /** + * Model tests for CreateRoomClientToken201Response + */ + @Test + public void testCreateRoomClientToken201Response() { + // TODO: test CreateRoomClientToken201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateRoomComposition202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateRoomComposition202ResponseTest.java new file mode 100644 index 00000000..c2524703 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateRoomComposition202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomComposition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateRoomComposition202Response + */ +public class CreateRoomComposition202ResponseTest { + private final CreateRoomComposition202Response model = new CreateRoomComposition202Response(); + + /** + * Model tests for CreateRoomComposition202Response + */ + @Test + public void testCreateRoomComposition202Response() { + // TODO: test CreateRoomComposition202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequestTest.java b/src/test/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequestTest.java index 225a3945..ab408be0 100644 --- a/src/test/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequestTest.java +++ b/src/test/java/com/telnyx/sdk/model/CreateVerifiedCallsDisplayProfileRequestTest.java @@ -18,10 +18,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.CallReasons; -import com.telnyx.sdk.model.DisplayName; -import com.telnyx.sdk.model.LogoUrl; -import com.telnyx.sdk.model.PhoneNumbers; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.UUID; diff --git a/src/test/java/com/telnyx/sdk/model/CreateWdrReport201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/CreateWdrReport201ResponseTest.java new file mode 100644 index 00000000..3b759e72 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateWdrReport201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WdrReport; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateWdrReport201Response + */ +public class CreateWdrReport201ResponseTest { + private final CreateWdrReport201Response model = new CreateWdrReport201Response(); + + /** + * Model tests for CreateWdrReport201Response + */ + @Test + public void testCreateWdrReport201Response() { + // TODO: test CreateWdrReport201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBodyTest.java b/src/test/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBodyTest.java new file mode 100644 index 00000000..1136117a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CreateWhatsappMessageTemplateRequestBodyTest.java @@ -0,0 +1,74 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CreateWhatsappMessageTemplateRequestBody + */ +public class CreateWhatsappMessageTemplateRequestBodyTest { + private final CreateWhatsappMessageTemplateRequestBody model = new CreateWhatsappMessageTemplateRequestBody(); + + /** + * Model tests for CreateWhatsappMessageTemplateRequestBody + */ + @Test + public void testCreateWhatsappMessageTemplateRequestBody() { + // TODO: test CreateWhatsappMessageTemplateRequestBody + } + + /** + * Test the property 'category' + */ + @Test + public void categoryTest() { + // TODO: test category + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'components' + */ + @Test + public void componentsTest() { + // TODO: test components + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CredentialsResponseTest.java b/src/test/java/com/telnyx/sdk/model/CredentialsResponseTest.java index a11dc611..4df18f21 100644 --- a/src/test/java/com/telnyx/sdk/model/CredentialsResponseTest.java +++ b/src/test/java/com/telnyx/sdk/model/CredentialsResponseTest.java @@ -18,7 +18,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.ConnectionId; import com.telnyx.sdk.model.GCSConfiguration; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; diff --git a/src/test/java/com/telnyx/sdk/model/CursorPaginationCursorsTest.java b/src/test/java/com/telnyx/sdk/model/CursorPaginationCursorsTest.java new file mode 100644 index 00000000..63aac39b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CursorPaginationCursorsTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CursorPaginationCursors + */ +public class CursorPaginationCursorsTest { + private final CursorPaginationCursors model = new CursorPaginationCursors(); + + /** + * Model tests for CursorPaginationCursors + */ + @Test + public void testCursorPaginationCursors() { + // TODO: test CursorPaginationCursors + } + + /** + * Test the property 'before' + */ + @Test + public void beforeTest() { + // TODO: test before + } + + /** + * Test the property 'after' + */ + @Test + public void afterTest() { + // TODO: test after + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CursorPaginationTest.java b/src/test/java/com/telnyx/sdk/model/CursorPaginationTest.java new file mode 100644 index 00000000..f32cc63f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CursorPaginationTest.java @@ -0,0 +1,67 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CursorPaginationCursors; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CursorPagination + */ +public class CursorPaginationTest { + private final CursorPagination model = new CursorPagination(); + + /** + * Model tests for CursorPagination + */ + @Test + public void testCursorPagination() { + // TODO: test CursorPagination + } + + /** + * Test the property 'cursors' + */ + @Test + public void cursorsTest() { + // TODO: test cursors + } + + /** + * Test the property 'next' + */ + @Test + public void nextTest() { + // TODO: test next + } + + /** + * Test the property 'previous' + */ + @Test + public void previousTest() { + // TODO: test previous + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponseTest.java b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponseTest.java new file mode 100644 index 00000000..a2d54b03 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsGetIPResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.IpItem; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CustomerFacingFQDNsGetIPResponse + */ +public class CustomerFacingFQDNsGetIPResponseTest { + private final CustomerFacingFQDNsGetIPResponse model = new CustomerFacingFQDNsGetIPResponse(); + + /** + * Model tests for CustomerFacingFQDNsGetIPResponse + */ + @Test + public void testCustomerFacingFQDNsGetIPResponse() { + // TODO: test CustomerFacingFQDNsGetIPResponse + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponseTest.java b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponseTest.java new file mode 100644 index 00000000..f616b113 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsListResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerFacingFQDNsResponseSchema; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CustomerFacingFQDNsListResponse + */ +public class CustomerFacingFQDNsListResponseTest { + private final CustomerFacingFQDNsListResponse model = new CustomerFacingFQDNsListResponse(); + + /** + * Model tests for CustomerFacingFQDNsListResponse + */ + @Test + public void testCustomerFacingFQDNsListResponse() { + // TODO: test CustomerFacingFQDNsListResponse + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatchTest.java b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatchTest.java new file mode 100644 index 00000000..62ba631a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPatchTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CustomerFacingFQDNsPatch + */ +public class CustomerFacingFQDNsPatchTest { + private final CustomerFacingFQDNsPatch model = new CustomerFacingFQDNsPatch(); + + /** + * Model tests for CustomerFacingFQDNsPatch + */ + @Test + public void testCustomerFacingFQDNsPatch() { + // TODO: test CustomerFacingFQDNsPatch + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPostTest.java b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPostTest.java new file mode 100644 index 00000000..33b430c1 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsPostTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CustomerFacingFQDNsPost + */ +public class CustomerFacingFQDNsPostTest { + private final CustomerFacingFQDNsPost model = new CustomerFacingFQDNsPost(); + + /** + * Model tests for CustomerFacingFQDNsPost + */ + @Test + public void testCustomerFacingFQDNsPost() { + // TODO: test CustomerFacingFQDNsPost + } + + /** + * Test the property 'fqdn' + */ + @Test + public void fqdnTest() { + // TODO: test fqdn + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchemaTest.java b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchemaTest.java new file mode 100644 index 00000000..35d8a031 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CustomerFacingFQDNsResponseSchemaTest.java @@ -0,0 +1,83 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CustomerFacingFQDNsResponseSchema + */ +public class CustomerFacingFQDNsResponseSchemaTest { + private final CustomerFacingFQDNsResponseSchema model = new CustomerFacingFQDNsResponseSchema(); + + /** + * Model tests for CustomerFacingFQDNsResponseSchema + */ + @Test + public void testCustomerFacingFQDNsResponseSchema() { + // TODO: test CustomerFacingFQDNsResponseSchema + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'fqdn' + */ + @Test + public void fqdnTest() { + // TODO: test fqdn + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequestTest.java b/src/test/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequestTest.java new file mode 100644 index 00000000..93948e4b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/CustomerServiceRequestsGetRequestTest.java @@ -0,0 +1,60 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CallbackWebhookMeta; +import com.telnyx.sdk.model.CustomerServiceRequestStatusChangedEvent; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for CustomerServiceRequestsGetRequest + */ +public class CustomerServiceRequestsGetRequestTest { + private final CustomerServiceRequestsGetRequest model = new CustomerServiceRequestsGetRequest(); + + /** + * Model tests for CustomerServiceRequestsGetRequest + */ + @Test + public void testCustomerServiceRequestsGetRequest() { + // TODO: test CustomerServiceRequestsGetRequest + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/DialogflowConfigTest.java b/src/test/java/com/telnyx/sdk/model/DialogflowConfigTest.java new file mode 100644 index 00000000..3d21bc6f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/DialogflowConfigTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DialogflowConfig + */ +public class DialogflowConfigTest { + private final DialogflowConfig model = new DialogflowConfig(); + + /** + * Model tests for DialogflowConfig + */ + @Test + public void testDialogflowConfig() { + // TODO: test DialogflowConfig + } + + /** + * Test the property 'analyzeSentiment' + */ + @Test + public void analyzeSentimentTest() { + // TODO: test analyzeSentiment + } + + /** + * Test the property 'partialAutomatedAgentReply' + */ + @Test + public void partialAutomatedAgentReplyTest() { + // TODO: test partialAutomatedAgentReply + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/DialogflowConnectionResponseTest.java b/src/test/java/com/telnyx/sdk/model/DialogflowConnectionResponseTest.java new file mode 100644 index 00000000..3147001f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/DialogflowConnectionResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DialogflowConnection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DialogflowConnectionResponse + */ +public class DialogflowConnectionResponseTest { + private final DialogflowConnectionResponse model = new DialogflowConnectionResponse(); + + /** + * Model tests for DialogflowConnectionResponse + */ + @Test + public void testDialogflowConnectionResponse() { + // TODO: test DialogflowConnectionResponse + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/DialogflowConnectionTest.java b/src/test/java/com/telnyx/sdk/model/DialogflowConnectionTest.java new file mode 100644 index 00000000..7beb6638 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/DialogflowConnectionTest.java @@ -0,0 +1,82 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DialogflowConnection + */ +public class DialogflowConnectionTest { + private final DialogflowConnection model = new DialogflowConnection(); + + /** + * Model tests for DialogflowConnection + */ + @Test + public void testDialogflowConnection() { + // TODO: test DialogflowConnection + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'connectionId' + */ + @Test + public void connectionIdTest() { + // TODO: test connectionId + } + + /** + * Test the property 'conversationProfileId' + */ + @Test + public void conversationProfileIdTest() { + // TODO: test conversationProfileId + } + + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + + /** + * Test the property 'serviceAccount' + */ + @Test + public void serviceAccountTest() { + // TODO: test serviceAccount + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200ResponseTest.java new file mode 100644 index 00000000..33ff7892 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/DocReqsListRequirementTypes200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirementType; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DocReqsListRequirementTypes200Response + */ +public class DocReqsListRequirementTypes200ResponseTest { + private final DocReqsListRequirementTypes200Response model = new DocReqsListRequirementTypes200Response(); + + /** + * Model tests for DocReqsListRequirementTypes200Response + */ + @Test + public void testDocReqsListRequirementTypes200Response() { + // TODO: test DocReqsListRequirementTypes200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200ResponseTest.java new file mode 100644 index 00000000..ce2b1d4a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/DocReqsRetrieveDocumentRequirements200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirement; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DocReqsRetrieveDocumentRequirements200Response + */ +public class DocReqsRetrieveDocumentRequirements200ResponseTest { + private final DocReqsRetrieveDocumentRequirements200Response model = new DocReqsRetrieveDocumentRequirements200Response(); + + /** + * Model tests for DocReqsRetrieveDocumentRequirements200Response + */ + @Test + public void testDocReqsRetrieveDocumentRequirements200Response() { + // TODO: test DocReqsRetrieveDocumentRequirements200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200ResponseTest.java new file mode 100644 index 00000000..77aad551 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/DocReqsRetrieveRequirementType200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirementType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for DocReqsRetrieveRequirementType200Response + */ +public class DocReqsRetrieveRequirementType200ResponseTest { + private final DocReqsRetrieveRequirementType200Response model = new DocReqsRetrieveRequirementType200Response(); + + /** + * Model tests for DocReqsRetrieveRequirementType200Response + */ + @Test + public void testDocReqsRetrieveRequirementType200Response() { + // TODO: test DocReqsRetrieveRequirementType200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/Document1Test.java b/src/test/java/com/telnyx/sdk/model/Document1Test.java new file mode 100644 index 00000000..253afe6d --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/Document1Test.java @@ -0,0 +1,75 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Document; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Document1 + */ +public class Document1Test { + private final Document1 model = new Document1(); + + /** + * Model tests for Document1 + */ + @Test + public void testDocument1() { + // TODO: test Document1 + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'link' + */ + @Test + public void linkTest() { + // TODO: test link + } + + /** + * Test the property 'caption' + */ + @Test + public void captionTest() { + // TODO: test caption + } + + /** + * Test the property 'filename' + */ + @Test + public void filenameTest() { + // TODO: test filename + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/EndSession200ResponseDataTest.java b/src/test/java/com/telnyx/sdk/model/EndSession200ResponseDataTest.java new file mode 100644 index 00000000..4ea7e146 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/EndSession200ResponseDataTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for EndSession200ResponseData + */ +public class EndSession200ResponseDataTest { + private final EndSession200ResponseData model = new EndSession200ResponseData(); + + /** + * Model tests for EndSession200ResponseData + */ + @Test + public void testEndSession200ResponseData() { + // TODO: test EndSession200ResponseData + } + + /** + * Test the property 'result' + */ + @Test + public void resultTest() { + // TODO: test result + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/EndSession200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/EndSession200ResponseTest.java new file mode 100644 index 00000000..5cf2c45f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/EndSession200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.EndSession200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for EndSession200Response + */ +public class EndSession200ResponseTest { + private final EndSession200Response model = new EndSession200Response(); + + /** + * Model tests for EndSession200Response + */ + @Test + public void testEndSession200Response() { + // TODO: test EndSession200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/FindAuthenticationProviders200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/FindAuthenticationProviders200ResponseTest.java new file mode 100644 index 00000000..853cde63 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/FindAuthenticationProviders200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.AuthenticationProvider; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FindAuthenticationProviders200Response + */ +public class FindAuthenticationProviders200ResponseTest { + private final FindAuthenticationProviders200Response model = new FindAuthenticationProviders200Response(); + + /** + * Model tests for FindAuthenticationProviders200Response + */ + @Test + public void testFindAuthenticationProviders200Response() { + // TODO: test FindAuthenticationProviders200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/FindNotificationsEvents200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/FindNotificationsEvents200ResponseTest.java new file mode 100644 index 00000000..60521d2f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/FindNotificationsEvents200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationEvent; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FindNotificationsEvents200Response + */ +public class FindNotificationsEvents200ResponseTest { + private final FindNotificationsEvents200Response model = new FindNotificationsEvents200Response(); + + /** + * Model tests for FindNotificationsEvents200Response + */ + @Test + public void testFindNotificationsEvents200Response() { + // TODO: test FindNotificationsEvents200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200ResponseTest.java new file mode 100644 index 00000000..b58be794 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/FindNotificationsEventsConditions200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationEventCondition; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FindNotificationsEventsConditions200Response + */ +public class FindNotificationsEventsConditions200ResponseTest { + private final FindNotificationsEventsConditions200Response model = new FindNotificationsEventsConditions200Response(); + + /** + * Model tests for FindNotificationsEventsConditions200Response + */ + @Test + public void testFindNotificationsEventsConditions200Response() { + // TODO: test FindNotificationsEventsConditions200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/FindNotificationsProfiles200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/FindNotificationsProfiles200ResponseTest.java new file mode 100644 index 00000000..e4c4f8bd --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/FindNotificationsProfiles200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationProfile; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FindNotificationsProfiles200Response + */ +public class FindNotificationsProfiles200ResponseTest { + private final FindNotificationsProfiles200Response model = new FindNotificationsProfiles200Response(); + + /** + * Model tests for FindNotificationsProfiles200Response + */ + @Test + public void testFindNotificationsProfiles200Response() { + // TODO: test FindNotificationsProfiles200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/FindPortoutComments200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/FindPortoutComments200ResponseTest.java new file mode 100644 index 00000000..1c011715 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/FindPortoutComments200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Metadata; +import com.telnyx.sdk.model.PortoutComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FindPortoutComments200Response + */ +public class FindPortoutComments200ResponseTest { + private final FindPortoutComments200Response model = new FindPortoutComments200Response(); + + /** + * Model tests for FindPortoutComments200Response + */ + @Test + public void testFindPortoutComments200Response() { + // TODO: test FindPortoutComments200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/FindPortoutRequest200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/FindPortoutRequest200ResponseTest.java new file mode 100644 index 00000000..2967beef --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/FindPortoutRequest200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortoutDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for FindPortoutRequest200Response + */ +public class FindPortoutRequest200ResponseTest { + private final FindPortoutRequest200Response model = new FindPortoutRequest200Response(); + + /** + * Model tests for FindPortoutRequest200Response + */ + @Test + public void testFindPortoutRequest200Response() { + // TODO: test FindPortoutRequest200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/FooterTest.java b/src/test/java/com/telnyx/sdk/model/FooterTest.java new file mode 100644 index 00000000..6d9b8e97 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/FooterTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveFooter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Footer + */ +public class FooterTest { + private final Footer model = new Footer(); + + /** + * Model tests for Footer + */ + @Test + public void testFooter() { + // TODO: test Footer + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GatherRequestTest.java b/src/test/java/com/telnyx/sdk/model/GatherRequestTest.java new file mode 100644 index 00000000..6ba4e1c2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GatherRequestTest.java @@ -0,0 +1,114 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GatherRequest + */ +public class GatherRequestTest { + private final GatherRequest model = new GatherRequest(); + + /** + * Model tests for GatherRequest + */ + @Test + public void testGatherRequest() { + // TODO: test GatherRequest + } + + /** + * Test the property 'minimumDigits' + */ + @Test + public void minimumDigitsTest() { + // TODO: test minimumDigits + } + + /** + * Test the property 'maximumDigits' + */ + @Test + public void maximumDigitsTest() { + // TODO: test maximumDigits + } + + /** + * Test the property 'timeoutMillis' + */ + @Test + public void timeoutMillisTest() { + // TODO: test timeoutMillis + } + + /** + * Test the property 'interDigitTimeoutMillis' + */ + @Test + public void interDigitTimeoutMillisTest() { + // TODO: test interDigitTimeoutMillis + } + + /** + * Test the property 'initialTimeoutMillis' + */ + @Test + public void initialTimeoutMillisTest() { + // TODO: test initialTimeoutMillis + } + + /** + * Test the property 'terminatingDigit' + */ + @Test + public void terminatingDigitTest() { + // TODO: test terminatingDigit + } + + /** + * Test the property 'validDigits' + */ + @Test + public void validDigitsTest() { + // TODO: test validDigits + } + + /** + * Test the property 'clientState' + */ + @Test + public void clientStateTest() { + // TODO: test clientState + } + + /** + * Test the property 'commandId' + */ + @Test + public void commandIdTest() { + // TODO: test commandId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetChannelZones200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetChannelZones200ResponseTest.java new file mode 100644 index 00000000..d642e937 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetChannelZones200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GcbChannelZone; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetChannelZones200Response + */ +public class GetChannelZones200ResponseTest { + private final GetChannelZones200Response model = new GetChannelZones200Response(); + + /** + * Model tests for GetChannelZones200Response + */ + @Test + public void testGetChannelZones200Response() { + // TODO: test GetChannelZones200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetCustomerServiceRequest404ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetCustomerServiceRequest404ResponseTest.java new file mode 100644 index 00000000..89e8ac96 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetCustomerServiceRequest404ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ResourceNotFoundError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetCustomerServiceRequest404Response + */ +public class GetCustomerServiceRequest404ResponseTest { + private final GetCustomerServiceRequest404Response model = new GetCustomerServiceRequest404Response(); + + /** + * Model tests for GetCustomerServiceRequest404Response + */ + @Test + public void testGetCustomerServiceRequest404Response() { + // TODO: test GetCustomerServiceRequest404Response + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetPhoneNumbers200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetPhoneNumbers200ResponseTest.java new file mode 100644 index 00000000..5ff9d47d --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetPhoneNumbers200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GcbPhoneNumber; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetPhoneNumbers200Response + */ +public class GetPhoneNumbers200ResponseTest { + private final GetPhoneNumbers200Response model = new GetPhoneNumbers200Response(); + + /** + * Model tests for GetPhoneNumbers200Response + */ + @Test + public void testGetPhoneNumbers200Response() { + // TODO: test GetPhoneNumbers200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201ResponseTest.java new file mode 100644 index 00000000..849d83c0 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetPortRequestSupportingDocuments201ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortOutSupportingDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetPortRequestSupportingDocuments201Response + */ +public class GetPortRequestSupportingDocuments201ResponseTest { + private final GetPortRequestSupportingDocuments201Response model = new GetPortRequestSupportingDocuments201Response(); + + /** + * Model tests for GetPortRequestSupportingDocuments201Response + */ + @Test + public void testGetPortRequestSupportingDocuments201Response() { + // TODO: test GetPortRequestSupportingDocuments201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMetaTest.java b/src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMetaTest.java new file mode 100644 index 00000000..476c82fc --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseMetaTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetPortingOrder200ResponseMeta + */ +public class GetPortingOrder200ResponseMetaTest { + private final GetPortingOrder200ResponseMeta model = new GetPortingOrder200ResponseMeta(); + + /** + * Model tests for GetPortingOrder200ResponseMeta + */ + @Test + public void testGetPortingOrder200ResponseMeta() { + // TODO: test GetPortingOrder200ResponseMeta + } + + /** + * Test the property 'phoneNumbersUrl' + */ + @Test + public void phoneNumbersUrlTest() { + // TODO: test phoneNumbersUrl + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseTest.java new file mode 100644 index 00000000..c9b896c8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetPortingOrder200ResponseTest.java @@ -0,0 +1,60 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GetPortingOrder200ResponseMeta; +import com.telnyx.sdk.model.PortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetPortingOrder200Response + */ +public class GetPortingOrder200ResponseTest { + private final GetPortingOrder200Response model = new GetPortingOrder200Response(); + + /** + * Model tests for GetPortingOrder200Response + */ + @Test + public void testGetPortingOrder200Response() { + // TODO: test GetPortingOrder200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200ResponseTest.java new file mode 100644 index 00000000..3b989e83 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetPortingOrderSubRequest200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.GetSubRequestByPortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetPortingOrderSubRequest200Response + */ +public class GetPortingOrderSubRequest200ResponseTest { + private final GetPortingOrderSubRequest200Response model = new GetPortingOrderSubRequest200Response(); + + /** + * Model tests for GetPortingOrderSubRequest200Response + */ + @Test + public void testGetPortingOrderSubRequest200Response() { + // TODO: test GetPortingOrderSubRequest200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200ResponseTest.java new file mode 100644 index 00000000..629b1ed1 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetPrivateWirelessGateways200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PrivateWirelessGateway; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetPrivateWirelessGateways200Response + */ +public class GetPrivateWirelessGateways200ResponseTest { + private final GetPrivateWirelessGateways200Response model = new GetPrivateWirelessGateways200Response(); + + /** + * Model tests for GetPrivateWirelessGateways200Response + */ + @Test + public void testGetPrivateWirelessGateways200Response() { + // TODO: test GetPrivateWirelessGateways200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetUserBalance200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetUserBalance200ResponseTest.java new file mode 100644 index 00000000..d118066f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetUserBalance200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UserBalance; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetUserBalance200Response + */ +public class GetUserBalance200ResponseTest { + private final GetUserBalance200Response model = new GetUserBalance200Response(); + + /** + * Model tests for GetUserBalance200Response + */ + @Test + public void testGetUserBalance200Response() { + // TODO: test GetUserBalance200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetWdrReports200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetWdrReports200ResponseTest.java new file mode 100644 index 00000000..65c5f189 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetWdrReports200ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WdrReport; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetWdrReports200Response + */ +public class GetWdrReports200ResponseTest { + private final GetWdrReports200Response model = new GetWdrReports200Response(); + + /** + * Model tests for GetWdrReports200Response + */ + @Test + public void testGetWdrReports200Response() { + // TODO: test GetWdrReports200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetWebhookDeliveries200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetWebhookDeliveries200ResponseTest.java new file mode 100644 index 00000000..c0d8f52e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetWebhookDeliveries200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMetaSimple; +import com.telnyx.sdk.model.WebhookDelivery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetWebhookDeliveries200Response + */ +public class GetWebhookDeliveries200ResponseTest { + private final GetWebhookDeliveries200Response model = new GetWebhookDeliveries200Response(); + + /** + * Model tests for GetWebhookDeliveries200Response + */ + @Test + public void testGetWebhookDeliveries200Response() { + // TODO: test GetWebhookDeliveries200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/GetWebhookDelivery200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/GetWebhookDelivery200ResponseTest.java new file mode 100644 index 00000000..c6b976cd --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/GetWebhookDelivery200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WebhookDelivery; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for GetWebhookDelivery200Response + */ +public class GetWebhookDelivery200ResponseTest { + private final GetWebhookDelivery200Response model = new GetWebhookDelivery200Response(); + + /** + * Model tests for GetWebhookDelivery200Response + */ + @Test + public void testGetWebhookDelivery200Response() { + // TODO: test GetWebhookDelivery200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/HeaderTest.java b/src/test/java/com/telnyx/sdk/model/HeaderTest.java new file mode 100644 index 00000000..3a34e6e0 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/HeaderTest.java @@ -0,0 +1,86 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Document1; +import com.telnyx.sdk.model.Image1; +import com.telnyx.sdk.model.InteractiveHeader; +import com.telnyx.sdk.model.Video1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Header + */ +public class HeaderTest { + private final Header model = new Header(); + + /** + * Model tests for Header + */ + @Test + public void testHeader() { + // TODO: test Header + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'video' + */ + @Test + public void videoTest() { + // TODO: test video + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/HttpRequestTest.java b/src/test/java/com/telnyx/sdk/model/HttpRequestTest.java new file mode 100644 index 00000000..1ce51d02 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/HttpRequestTest.java @@ -0,0 +1,60 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for HttpRequest + */ +public class HttpRequestTest { + private final HttpRequest model = new HttpRequest(); + + /** + * Model tests for HttpRequest + */ + @Test + public void testHttpRequest() { + // TODO: test HttpRequest + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/HttpResponseTest.java b/src/test/java/com/telnyx/sdk/model/HttpResponseTest.java new file mode 100644 index 00000000..596ca570 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/HttpResponseTest.java @@ -0,0 +1,68 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for HttpResponse + */ +public class HttpResponseTest { + private final HttpResponse model = new HttpResponse(); + + /** + * Model tests for HttpResponse + */ + @Test + public void testHttpResponse() { + // TODO: test HttpResponse + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'headers' + */ + @Test + public void headersTest() { + // TODO: test headers + } + + /** + * Test the property 'body' + */ + @Test + public void bodyTest() { + // TODO: test body + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/Image1Test.java b/src/test/java/com/telnyx/sdk/model/Image1Test.java new file mode 100644 index 00000000..d8012ab2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/Image1Test.java @@ -0,0 +1,67 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Image; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Image1 + */ +public class Image1Test { + private final Image1 model = new Image1(); + + /** + * Model tests for Image1 + */ + @Test + public void testImage1() { + // TODO: test Image1 + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'link' + */ + @Test + public void linkTest() { + // TODO: test link + } + + /** + * Test the property 'caption' + */ + @Test + public void captionTest() { + // TODO: test caption + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadCcInnerTest.java b/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadCcInnerTest.java new file mode 100644 index 00000000..5f33c156 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadCcInnerTest.java @@ -0,0 +1,74 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InboundMessagePayloadCcInner + */ +public class InboundMessagePayloadCcInnerTest { + private final InboundMessagePayloadCcInner model = new InboundMessagePayloadCcInner(); + + /** + * Model tests for InboundMessagePayloadCcInner + */ + @Test + public void testInboundMessagePayloadCcInner() { + // TODO: test InboundMessagePayloadCcInner + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'carrier' + */ + @Test + public void carrierTest() { + // TODO: test carrier + } + + /** + * Test the property 'lineType' + */ + @Test + public void lineTypeTest() { + // TODO: test lineType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInnerTest.java b/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInnerTest.java new file mode 100644 index 00000000..02574209 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadMediaInnerTest.java @@ -0,0 +1,74 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InboundMessagePayloadMediaInner + */ +public class InboundMessagePayloadMediaInnerTest { + private final InboundMessagePayloadMediaInner model = new InboundMessagePayloadMediaInner(); + + /** + * Model tests for InboundMessagePayloadMediaInner + */ + @Test + public void testInboundMessagePayloadMediaInner() { + // TODO: test InboundMessagePayloadMediaInner + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'size' + */ + @Test + public void sizeTest() { + // TODO: test size + } + + /** + * Test the property 'hashSha256' + */ + @Test + public void hashSha256Test() { + // TODO: test hashSha256 + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadToInnerTest.java b/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadToInnerTest.java new file mode 100644 index 00000000..a9bdde16 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InboundMessagePayloadToInnerTest.java @@ -0,0 +1,74 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InboundMessagePayloadToInner + */ +public class InboundMessagePayloadToInnerTest { + private final InboundMessagePayloadToInner model = new InboundMessagePayloadToInner(); + + /** + * Model tests for InboundMessagePayloadToInner + */ + @Test + public void testInboundMessagePayloadToInner() { + // TODO: test InboundMessagePayloadToInner + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'carrier' + */ + @Test + public void carrierTest() { + // TODO: test carrier + } + + /** + * Test the property 'lineType' + */ + @Test + public void lineTypeTest() { + // TODO: test lineType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveActionTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveActionTest.java new file mode 100644 index 00000000..bef8d2bf --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveActionTest.java @@ -0,0 +1,86 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveButton; +import com.telnyx.sdk.model.InteractiveSection; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveAction + */ +public class InteractiveActionTest { + private final InteractiveAction model = new InteractiveAction(); + + /** + * Model tests for InteractiveAction + */ + @Test + public void testInteractiveAction() { + // TODO: test InteractiveAction + } + + /** + * Test the property 'button' + */ + @Test + public void buttonTest() { + // TODO: test button + } + + /** + * Test the property 'buttons' + */ + @Test + public void buttonsTest() { + // TODO: test buttons + } + + /** + * Test the property 'sections' + */ + @Test + public void sectionsTest() { + // TODO: test sections + } + + /** + * Test the property 'catalogId' + */ + @Test + public void catalogIdTest() { + // TODO: test catalogId + } + + /** + * Test the property 'productRetailerId' + */ + @Test + public void productRetailerIdTest() { + // TODO: test productRetailerId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveBodyTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveBodyTest.java new file mode 100644 index 00000000..273fb7ca --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveBodyTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveBody + */ +public class InteractiveBodyTest { + private final InteractiveBody model = new InteractiveBody(); + + /** + * Model tests for InteractiveBody + */ + @Test + public void testInteractiveBody() { + // TODO: test InteractiveBody + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveButtonReplyTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveButtonReplyTest.java new file mode 100644 index 00000000..7d6a15e2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveButtonReplyTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveButtonReply + */ +public class InteractiveButtonReplyTest { + private final InteractiveButtonReply model = new InteractiveButtonReply(); + + /** + * Model tests for InteractiveButtonReply + */ + @Test + public void testInteractiveButtonReply() { + // TODO: test InteractiveButtonReply + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveButtonTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveButtonTest.java new file mode 100644 index 00000000..813d5121 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveButtonTest.java @@ -0,0 +1,64 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveButtonType; +import com.telnyx.sdk.model.Reply; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveButton + */ +public class InteractiveButtonTest { + private final InteractiveButton model = new InteractiveButton(); + + /** + * Model tests for InteractiveButton + */ + @Test + public void testInteractiveButton() { + // TODO: test InteractiveButton + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'reply' + */ + @Test + public void replyTest() { + // TODO: test reply + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveButtonTypeTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveButtonTypeTest.java new file mode 100644 index 00000000..b597b3c2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveButtonTypeTest.java @@ -0,0 +1,34 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import io.swagger.annotations.ApiModel; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveButtonType + */ +public class InteractiveButtonTypeTest { + /** + * Model tests for InteractiveButtonType + */ + @Test + public void testInteractiveButtonType() { + // TODO: test InteractiveButtonType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveFooterTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveFooterTest.java new file mode 100644 index 00000000..720e8fbf --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveFooterTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveFooter + */ +public class InteractiveFooterTest { + private final InteractiveFooter model = new InteractiveFooter(); + + /** + * Model tests for InteractiveFooter + */ + @Test + public void testInteractiveFooter() { + // TODO: test InteractiveFooter + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveHeaderTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveHeaderTest.java new file mode 100644 index 00000000..ca742dc6 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveHeaderTest.java @@ -0,0 +1,85 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Document1; +import com.telnyx.sdk.model.Image1; +import com.telnyx.sdk.model.Video1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveHeader + */ +public class InteractiveHeaderTest { + private final InteractiveHeader model = new InteractiveHeader(); + + /** + * Model tests for InteractiveHeader + */ + @Test + public void testInteractiveHeader() { + // TODO: test InteractiveHeader + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'video' + */ + @Test + public void videoTest() { + // TODO: test video + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveProductTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveProductTest.java new file mode 100644 index 00000000..8502e0ca --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveProductTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveProduct + */ +public class InteractiveProductTest { + private final InteractiveProduct model = new InteractiveProduct(); + + /** + * Model tests for InteractiveProduct + */ + @Test + public void testInteractiveProduct() { + // TODO: test InteractiveProduct + } + + /** + * Test the property 'productRetailerId' + */ + @Test + public void productRetailerIdTest() { + // TODO: test productRetailerId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveSectionRowTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveSectionRowTest.java new file mode 100644 index 00000000..0186cf34 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveSectionRowTest.java @@ -0,0 +1,66 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveSectionRow + */ +public class InteractiveSectionRowTest { + private final InteractiveSectionRow model = new InteractiveSectionRow(); + + /** + * Model tests for InteractiveSectionRow + */ + @Test + public void testInteractiveSectionRow() { + // TODO: test InteractiveSectionRow + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveSectionTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveSectionTest.java new file mode 100644 index 00000000..8a8d5af3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveSectionTest.java @@ -0,0 +1,70 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveProduct; +import com.telnyx.sdk.model.InteractiveSectionRow; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveSection + */ +public class InteractiveSectionTest { + private final InteractiveSection model = new InteractiveSection(); + + /** + * Model tests for InteractiveSection + */ + @Test + public void testInteractiveSection() { + // TODO: test InteractiveSection + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'rows' + */ + @Test + public void rowsTest() { + // TODO: test rows + } + + /** + * Test the property 'productItems' + */ + @Test + public void productItemsTest() { + // TODO: test productItems + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveTest.java new file mode 100644 index 00000000..fb8cdc26 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveTest.java @@ -0,0 +1,87 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Action; +import com.telnyx.sdk.model.Body; +import com.telnyx.sdk.model.Footer; +import com.telnyx.sdk.model.Header; +import com.telnyx.sdk.model.InteractiveType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Interactive + */ +public class InteractiveTest { + private final Interactive model = new Interactive(); + + /** + * Model tests for Interactive + */ + @Test + public void testInteractive() { + // TODO: test Interactive + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'header' + */ + @Test + public void headerTest() { + // TODO: test header + } + + /** + * Test the property 'body' + */ + @Test + public void bodyTest() { + // TODO: test body + } + + /** + * Test the property 'footer' + */ + @Test + public void footerTest() { + // TODO: test footer + } + + /** + * Test the property 'action' + */ + @Test + public void actionTest() { + // TODO: test action + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InteractiveTypeTest.java b/src/test/java/com/telnyx/sdk/model/InteractiveTypeTest.java new file mode 100644 index 00000000..e35d798f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InteractiveTypeTest.java @@ -0,0 +1,34 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import io.swagger.annotations.ApiModel; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InteractiveType + */ +public class InteractiveTypeTest { + /** + * Model tests for InteractiveType + */ + @Test + public void testInteractiveType() { + // TODO: test InteractiveType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/InterfaceStatusTest.java b/src/test/java/com/telnyx/sdk/model/InterfaceStatusTest.java new file mode 100644 index 00000000..e011aea7 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/InterfaceStatusTest.java @@ -0,0 +1,34 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import io.swagger.annotations.ApiModel; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for InterfaceStatus + */ +public class InterfaceStatusTest { + /** + * Model tests for InterfaceStatus + */ + @Test + public void testInterfaceStatus() { + // TODO: test InterfaceStatus + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/IpItemTest.java b/src/test/java/com/telnyx/sdk/model/IpItemTest.java new file mode 100644 index 00000000..7045f6a1 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/IpItemTest.java @@ -0,0 +1,75 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for IpItem + */ +public class IpItemTest { + private final IpItem model = new IpItem(); + + /** + * Model tests for IpItem + */ + @Test + public void testIpItem() { + // TODO: test IpItem + } + + /** + * Test the property 'ipAddress' + */ + @Test + public void ipAddressTest() { + // TODO: test ipAddress + } + + /** + * Test the property 'fqdn' + */ + @Test + public void fqdnTest() { + // TODO: test fqdn + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListAllowedFocWindows200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListAllowedFocWindows200ResponseTest.java new file mode 100644 index 00000000..e1ebe199 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListAllowedFocWindows200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrdersAllowedFocWindow; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListAllowedFocWindows200Response + */ +public class ListAllowedFocWindows200ResponseTest { + private final ListAllowedFocWindows200Response model = new ListAllowedFocWindows200Response(); + + /** + * Model tests for ListAllowedFocWindows200Response + */ + @Test + public void testListAllowedFocWindows200Response() { + // TODO: test ListAllowedFocWindows200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListBillingGroups200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListBillingGroups200ResponseTest.java new file mode 100644 index 00000000..f92e95ec --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListBillingGroups200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BillingGroup; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListBillingGroups200Response + */ +public class ListBillingGroups200ResponseTest { + private final ListBillingGroups200Response model = new ListBillingGroups200Response(); + + /** + * Model tests for ListBillingGroups200Response + */ + @Test + public void testListBillingGroups200Response() { + // TODO: test ListBillingGroups200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListBulkSIMCardActions200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListBulkSIMCardActions200ResponseTest.java new file mode 100644 index 00000000..51447be1 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListBulkSIMCardActions200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.BulkSIMCardActionDetailed; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListBulkSIMCardActions200Response + */ +public class ListBulkSIMCardActions200ResponseTest { + private final ListBulkSIMCardActions200Response model = new ListBulkSIMCardActions200Response(); + + /** + * Model tests for ListBulkSIMCardActions200Response + */ + @Test + public void testListBulkSIMCardActions200Response() { + // TODO: test ListBulkSIMCardActions200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListComments200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListComments200ResponseTest.java new file mode 100644 index 00000000..1df89507 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListComments200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Comment; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListComments200Response + */ +public class ListComments200ResponseTest { + private final ListComments200Response model = new ListComments200Response(); + + /** + * Model tests for ListComments200Response + */ + @Test + public void testListComments200Response() { + // TODO: test ListComments200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests200ResponseTest.java new file mode 100644 index 00000000..d4d9969b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerServiceRequest; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListCustomerServiceRequests200Response + */ +public class ListCustomerServiceRequests200ResponseTest { + private final ListCustomerServiceRequests200Response model = new ListCustomerServiceRequests200Response(); + + /** + * Model tests for ListCustomerServiceRequests200Response + */ + @Test + public void testListCustomerServiceRequests200Response() { + // TODO: test ListCustomerServiceRequests200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests401ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests401ResponseTest.java new file mode 100644 index 00000000..556748f3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests401ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnauthorizedError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListCustomerServiceRequests401Response + */ +public class ListCustomerServiceRequests401ResponseTest { + private final ListCustomerServiceRequests401Response model = new ListCustomerServiceRequests401Response(); + + /** + * Model tests for ListCustomerServiceRequests401Response + */ + @Test + public void testListCustomerServiceRequests401Response() { + // TODO: test ListCustomerServiceRequests401Response + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests403ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests403ResponseTest.java new file mode 100644 index 00000000..5fe3e80f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests403ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ForbiddenError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListCustomerServiceRequests403Response + */ +public class ListCustomerServiceRequests403ResponseTest { + private final ListCustomerServiceRequests403Response model = new ListCustomerServiceRequests403Response(); + + /** + * Model tests for ListCustomerServiceRequests403Response + */ + @Test + public void testListCustomerServiceRequests403Response() { + // TODO: test ListCustomerServiceRequests403Response + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests422ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests422ResponseTest.java new file mode 100644 index 00000000..cbad619b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests422ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnprocessableEntityError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListCustomerServiceRequests422Response + */ +public class ListCustomerServiceRequests422ResponseTest { + private final ListCustomerServiceRequests422Response model = new ListCustomerServiceRequests422Response(); + + /** + * Model tests for ListCustomerServiceRequests422Response + */ + @Test + public void testListCustomerServiceRequests422Response() { + // TODO: test ListCustomerServiceRequests422Response + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests500ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests500ResponseTest.java new file mode 100644 index 00000000..a8bc2e40 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListCustomerServiceRequests500ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UnexpectedError; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListCustomerServiceRequests500Response + */ +public class ListCustomerServiceRequests500ResponseTest { + private final ListCustomerServiceRequests500Response model = new ListCustomerServiceRequests500Response(); + + /** + * Model tests for ListCustomerServiceRequests500Response + */ + @Test + public void testListCustomerServiceRequests500Response() { + // TODO: test ListCustomerServiceRequests500Response + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListDocumentLinks200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListDocumentLinks200ResponseTest.java new file mode 100644 index 00000000..7ffa4fe2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListDocumentLinks200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocServiceDocumentLink; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListDocumentLinks200Response + */ +public class ListDocumentLinks200ResponseTest { + private final ListDocumentLinks200Response model = new ListDocumentLinks200Response(); + + /** + * Model tests for ListDocumentLinks200Response + */ + @Test + public void testListDocumentLinks200Response() { + // TODO: test ListDocumentLinks200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListDocuments200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListDocuments200ResponseTest.java new file mode 100644 index 00000000..c756d2ac --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListDocuments200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocServiceDocument; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListDocuments200Response + */ +public class ListDocuments200ResponseTest { + private final ListDocuments200Response model = new ListDocuments200Response(); + + /** + * Model tests for ListDocuments200Response + */ + @Test + public void testListDocuments200Response() { + // TODO: test ListDocuments200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200ResponseTest.java new file mode 100644 index 00000000..320ad129 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyAddresses200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyAddress; +import com.telnyx.sdk.model.Metadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListDyanmicEmergencyAddresses200Response + */ +public class ListDyanmicEmergencyAddresses200ResponseTest { + private final ListDyanmicEmergencyAddresses200Response model = new ListDyanmicEmergencyAddresses200Response(); + + /** + * Model tests for ListDyanmicEmergencyAddresses200Response + */ + @Test + public void testListDyanmicEmergencyAddresses200Response() { + // TODO: test ListDyanmicEmergencyAddresses200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200ResponseTest.java new file mode 100644 index 00000000..e23d37ac --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListDyanmicEmergencyEndpoints200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DynamicEmergencyEndpoint; +import com.telnyx.sdk.model.Metadata; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListDyanmicEmergencyEndpoints200Response + */ +public class ListDyanmicEmergencyEndpoints200ResponseTest { + private final ListDyanmicEmergencyEndpoints200Response model = new ListDyanmicEmergencyEndpoints200Response(); + + /** + * Model tests for ListDyanmicEmergencyEndpoints200Response + */ + @Test + public void testListDyanmicEmergencyEndpoints200Response() { + // TODO: test ListDyanmicEmergencyEndpoints200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListManagedAccounts200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListManagedAccounts200ResponseTest.java new file mode 100644 index 00000000..a99c7c13 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListManagedAccounts200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ManagedAccount; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListManagedAccounts200Response + */ +public class ListManagedAccounts200ResponseTest { + private final ListManagedAccounts200Response model = new ListManagedAccounts200Response(); + + /** + * Model tests for ListManagedAccounts200Response + */ + @Test + public void testListManagedAccounts200Response() { + // TODO: test ListManagedAccounts200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListNotificationChannels200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListNotificationChannels200ResponseTest.java new file mode 100644 index 00000000..a087771c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListNotificationChannels200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationChannel; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListNotificationChannels200Response + */ +public class ListNotificationChannels200ResponseTest { + private final ListNotificationChannels200Response model = new ListNotificationChannels200Response(); + + /** + * Model tests for ListNotificationChannels200Response + */ + @Test + public void testListNotificationChannels200Response() { + // TODO: test ListNotificationChannels200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListNotificationSettings200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListNotificationSettings200ResponseTest.java new file mode 100644 index 00000000..95bda8d0 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListNotificationSettings200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NotificationSetting; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListNotificationSettings200Response + */ +public class ListNotificationSettings200ResponseTest { + private final ListNotificationSettings200Response model = new ListNotificationSettings200Response(); + + /** + * Model tests for ListNotificationSettings200Response + */ + @Test + public void testListNotificationSettings200Response() { + // TODO: test ListNotificationSettings200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseDataTest.java b/src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseDataTest.java new file mode 100644 index 00000000..831b22ac --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseDataTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListOutboundChannels200ResponseData + */ +public class ListOutboundChannels200ResponseDataTest { + private final ListOutboundChannels200ResponseData model = new ListOutboundChannels200ResponseData(); + + /** + * Model tests for ListOutboundChannels200ResponseData + */ + @Test + public void testListOutboundChannels200ResponseData() { + // TODO: test ListOutboundChannels200ResponseData + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseTest.java new file mode 100644 index 00000000..9bc15fe9 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListOutboundChannels200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ListOutboundChannels200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListOutboundChannels200Response + */ +public class ListOutboundChannels200ResponseTest { + private final ListOutboundChannels200Response model = new ListOutboundChannels200Response(); + + /** + * Model tests for ListOutboundChannels200Response + */ + @Test + public void testListOutboundChannels200Response() { + // TODO: test ListOutboundChannels200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortingOrderDocuments200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortingOrderDocuments200ResponseTest.java new file mode 100644 index 00000000..c9b1fa2b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortingOrderDocuments200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrderDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortingOrderDocuments200Response + */ +public class ListPortingOrderDocuments200ResponseTest { + private final ListPortingOrderDocuments200Response model = new ListPortingOrderDocuments200Response(); + + /** + * Model tests for ListPortingOrderDocuments200Response + */ + @Test + public void testListPortingOrderDocuments200Response() { + // TODO: test ListPortingOrderDocuments200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortingOrderRequirements200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortingOrderRequirements200ResponseTest.java new file mode 100644 index 00000000..3ffd9e53 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortingOrderRequirements200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrderRequirementDetail; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortingOrderRequirements200Response + */ +public class ListPortingOrderRequirements200ResponseTest { + private final ListPortingOrderRequirements200Response model = new ListPortingOrderRequirements200Response(); + + /** + * Model tests for ListPortingOrderRequirements200Response + */ + @Test + public void testListPortingOrderRequirements200Response() { + // TODO: test ListPortingOrderRequirements200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortingOrders200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortingOrders200ResponseTest.java new file mode 100644 index 00000000..ec2903ae --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortingOrders200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortingOrders200Response + */ +public class ListPortingOrders200ResponseTest { + private final ListPortingOrders200Response model = new ListPortingOrders200Response(); + + /** + * Model tests for ListPortingOrders200Response + */ + @Test + public void testListPortingOrders200Response() { + // TODO: test ListPortingOrders200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200ResponseTest.java new file mode 100644 index 00000000..d3c4aeef --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortingOrdersActivationJobs200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrdersActivationJob; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortingOrdersActivationJobs200Response + */ +public class ListPortingOrdersActivationJobs200ResponseTest { + private final ListPortingOrdersActivationJobs200Response model = new ListPortingOrdersActivationJobs200Response(); + + /** + * Model tests for ListPortingOrdersActivationJobs200Response + */ + @Test + public void testListPortingOrdersActivationJobs200Response() { + // TODO: test ListPortingOrdersActivationJobs200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortingOrdersComments200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortingOrdersComments200ResponseTest.java new file mode 100644 index 00000000..2f8e5352 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortingOrdersComments200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingOrdersComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortingOrdersComments200Response + */ +public class ListPortingOrdersComments200ResponseTest { + private final ListPortingOrdersComments200Response model = new ListPortingOrdersComments200Response(); + + /** + * Model tests for ListPortingOrdersComments200Response + */ + @Test + public void testListPortingOrdersComments200Response() { + // TODO: test ListPortingOrdersComments200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200ResponseTest.java new file mode 100644 index 00000000..45d8cc38 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortingOrdersExceptionTypes200ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrdersExceptionType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortingOrdersExceptionTypes200Response + */ +public class ListPortingOrdersExceptionTypes200ResponseTest { + private final ListPortingOrdersExceptionTypes200Response model = new ListPortingOrdersExceptionTypes200Response(); + + /** + * Model tests for ListPortingOrdersExceptionTypes200Response + */ + @Test + public void testListPortingOrdersExceptionTypes200Response() { + // TODO: test ListPortingOrdersExceptionTypes200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200ResponseTest.java new file mode 100644 index 00000000..f0350ba3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortingPhoneNumbers200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PortingPhoneNumber; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortingPhoneNumbers200Response + */ +public class ListPortingPhoneNumbers200ResponseTest { + private final ListPortingPhoneNumbers200Response model = new ListPortingPhoneNumbers200Response(); + + /** + * Model tests for ListPortingPhoneNumbers200Response + */ + @Test + public void testListPortingPhoneNumbers200Response() { + // TODO: test ListPortingPhoneNumbers200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListPortoutRequest200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListPortoutRequest200ResponseTest.java new file mode 100644 index 00000000..ac67641e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListPortoutRequest200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Metadata; +import com.telnyx.sdk.model.PortoutDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListPortoutRequest200Response + */ +public class ListPortoutRequest200ResponseTest { + private final ListPortoutRequest200Response model = new ListPortoutRequest200Response(); + + /** + * Model tests for ListPortoutRequest200Response + */ + @Test + public void testListPortoutRequest200Response() { + // TODO: test ListPortoutRequest200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListRegulartoryRequirements200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListRegulartoryRequirements200ResponseTest.java new file mode 100644 index 00000000..5a40d65e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListRegulartoryRequirements200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RegulatoryRequirements; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListRegulartoryRequirements200Response + */ +public class ListRegulartoryRequirements200ResponseTest { + private final ListRegulartoryRequirements200Response model = new ListRegulartoryRequirements200Response(); + + /** + * Model tests for ListRegulartoryRequirements200Response + */ + @Test + public void testListRegulartoryRequirements200Response() { + // TODO: test ListRegulartoryRequirements200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListRequirements200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListRequirements200ResponseTest.java new file mode 100644 index 00000000..e57ff5d9 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListRequirements200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.DocReqsRequirement; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListRequirements200Response + */ +public class ListRequirements200ResponseTest { + private final ListRequirements200Response model = new ListRequirements200Response(); + + /** + * Model tests for ListRequirements200Response + */ + @Test + public void testListRequirements200Response() { + // TODO: test ListRequirements200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListRoomCompositions200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListRoomCompositions200ResponseTest.java new file mode 100644 index 00000000..1e403729 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListRoomCompositions200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomComposition; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListRoomCompositions200Response + */ +public class ListRoomCompositions200ResponseTest { + private final ListRoomCompositions200Response model = new ListRoomCompositions200Response(); + + /** + * Model tests for ListRoomCompositions200Response + */ + @Test + public void testListRoomCompositions200Response() { + // TODO: test ListRoomCompositions200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListRoomParticipants200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListRoomParticipants200ResponseTest.java new file mode 100644 index 00000000..436d9a0a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListRoomParticipants200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomParticipant; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListRoomParticipants200Response + */ +public class ListRoomParticipants200ResponseTest { + private final ListRoomParticipants200Response model = new ListRoomParticipants200Response(); + + /** + * Model tests for ListRoomParticipants200Response + */ + @Test + public void testListRoomParticipants200Response() { + // TODO: test ListRoomParticipants200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListRoomRecordings200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListRoomRecordings200ResponseTest.java new file mode 100644 index 00000000..9f7a903f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListRoomRecordings200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomRecording; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListRoomRecordings200Response + */ +public class ListRoomRecordings200ResponseTest { + private final ListRoomRecordings200Response model = new ListRoomRecordings200Response(); + + /** + * Model tests for ListRoomRecordings200Response + */ + @Test + public void testListRoomRecordings200Response() { + // TODO: test ListRoomRecordings200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListRoomSessions200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListRoomSessions200ResponseTest.java new file mode 100644 index 00000000..be9c5106 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListRoomSessions200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.RoomSession; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListRoomSessions200Response + */ +public class ListRoomSessions200ResponseTest { + private final ListRoomSessions200Response model = new ListRoomSessions200Response(); + + /** + * Model tests for ListRoomSessions200Response + */ + @Test + public void testListRoomSessions200Response() { + // TODO: test ListRoomSessions200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListRooms200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListRooms200ResponseTest.java new file mode 100644 index 00000000..42e54d7f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListRooms200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.Room; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListRooms200Response + */ +public class ListRooms200ResponseTest { + private final ListRooms200Response model = new ListRooms200Response(); + + /** + * Model tests for ListRooms200Response + */ + @Test + public void testListRooms200Response() { + // TODO: test ListRooms200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListSIMCardActions200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListSIMCardActions200ResponseTest.java new file mode 100644 index 00000000..09b97f36 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListSIMCardActions200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SIMCardAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListSIMCardActions200Response + */ +public class ListSIMCardActions200ResponseTest { + private final ListSIMCardActions200Response model = new ListSIMCardActions200Response(); + + /** + * Model tests for ListSIMCardActions200Response + */ + @Test + public void testListSIMCardActions200Response() { + // TODO: test ListSIMCardActions200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200ResponseTest.java new file mode 100644 index 00000000..6a0cf9ca --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListSimCardDataUsageNotifications200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SimCardDataUsageNotification; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListSimCardDataUsageNotifications200Response + */ +public class ListSimCardDataUsageNotifications200ResponseTest { + private final ListSimCardDataUsageNotifications200Response model = new ListSimCardDataUsageNotifications200Response(); + + /** + * Model tests for ListSimCardDataUsageNotifications200Response + */ + @Test + public void testListSimCardDataUsageNotifications200Response() { + // TODO: test ListSimCardDataUsageNotifications200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ListTagsResponseDataInnerTest.java b/src/test/java/com/telnyx/sdk/model/ListTagsResponseDataInnerTest.java new file mode 100644 index 00000000..fb1b1253 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ListTagsResponseDataInnerTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ListTagsResponseDataInner + */ +public class ListTagsResponseDataInnerTest { + private final ListTagsResponseDataInner model = new ListTagsResponseDataInner(); + + /** + * Model tests for ListTagsResponseDataInner + */ + @Test + public void testListTagsResponseDataInner() { + // TODO: test ListTagsResponseDataInner + } + + /** + * Test the property 'tag' + */ + @Test + public void tagTest() { + // TODO: test tag + } + + /** + * Test the property 'amount' + */ + @Test + public void amountTest() { + // TODO: test amount + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseDataTest.java b/src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseDataTest.java new file mode 100644 index 00000000..8af469e0 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseDataTest.java @@ -0,0 +1,116 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ReadComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MarkCommentRead200ResponseData + */ +public class MarkCommentRead200ResponseDataTest { + private final MarkCommentRead200ResponseData model = new MarkCommentRead200ResponseData(); + + /** + * Model tests for MarkCommentRead200ResponseData + */ + @Test + public void testMarkCommentRead200ResponseData() { + // TODO: test MarkCommentRead200ResponseData + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'body' + */ + @Test + public void bodyTest() { + // TODO: test body + } + + /** + * Test the property 'commenter' + */ + @Test + public void commenterTest() { + // TODO: test commenter + } + + /** + * Test the property 'commenterType' + */ + @Test + public void commenterTypeTest() { + // TODO: test commenterType + } + + /** + * Test the property 'commentRecordType' + */ + @Test + public void commentRecordTypeTest() { + // TODO: test commentRecordType + } + + /** + * Test the property 'commentRecordId' + */ + @Test + public void commentRecordIdTest() { + // TODO: test commentRecordId + } + + /** + * Test the property 'readAt' + */ + @Test + public void readAtTest() { + // TODO: test readAt + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseTest.java new file mode 100644 index 00000000..8cdc5182 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/MarkCommentRead200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MarkCommentRead200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MarkCommentRead200Response + */ +public class MarkCommentRead200ResponseTest { + private final MarkCommentRead200Response model = new MarkCommentRead200Response(); + + /** + * Model tests for MarkCommentRead200Response + */ + @Test + public void testMarkCommentRead200Response() { + // TODO: test MarkCommentRead200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200ResponseTest.java new file mode 100644 index 00000000..ba5543d3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/MobileOperatorNetworksGet200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MobileOperatorNetwork; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for MobileOperatorNetworksGet200Response + */ +public class MobileOperatorNetworksGet200ResponseTest { + private final MobileOperatorNetworksGet200Response model = new MobileOperatorNetworksGet200Response(); + + /** + * Model tests for MobileOperatorNetworksGet200Response + */ + @Test + public void testMobileOperatorNetworksGet200Response() { + // TODO: test MobileOperatorNetworksGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ModelInterfaceTest.java b/src/test/java/com/telnyx/sdk/model/ModelInterfaceTest.java new file mode 100644 index 00000000..652e48bb --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ModelInterfaceTest.java @@ -0,0 +1,68 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ModelInterface + */ +public class ModelInterfaceTest { + private final ModelInterface model = new ModelInterface(); + + /** + * Model tests for ModelInterface + */ + @Test + public void testModelInterface() { + // TODO: test ModelInterface + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/Network1Test.java b/src/test/java/com/telnyx/sdk/model/Network1Test.java new file mode 100644 index 00000000..372289f3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/Network1Test.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Network1 + */ +public class Network1Test { + private final Network1 model = new Network1(); + + /** + * Model tests for Network1 + */ + @Test + public void testNetwork1() { + // TODO: test Network1 + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NetworkCreate200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/NetworkCreate200ResponseTest.java new file mode 100644 index 00000000..d6e4d560 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NetworkCreate200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NetworkCreate200Response + */ +public class NetworkCreate200ResponseTest { + private final NetworkCreate200Response model = new NetworkCreate200Response(); + + /** + * Model tests for NetworkCreate200Response + */ + @Test + public void testNetworkCreate200Response() { + // TODO: test NetworkCreate200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NetworkCreateTest.java b/src/test/java/com/telnyx/sdk/model/NetworkCreateTest.java new file mode 100644 index 00000000..90deb9b8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NetworkCreateTest.java @@ -0,0 +1,84 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NetworkCreate + */ +public class NetworkCreateTest { + private final NetworkCreate model = new NetworkCreate(); + + /** + * Model tests for NetworkCreate + */ + @Test + public void testNetworkCreate() { + // TODO: test NetworkCreate + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NetworkInterface1Test.java b/src/test/java/com/telnyx/sdk/model/NetworkInterface1Test.java new file mode 100644 index 00000000..14a052b5 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NetworkInterface1Test.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NetworkInterface1 + */ +public class NetworkInterface1Test { + private final NetworkInterface1 model = new NetworkInterface1(); + + /** + * Model tests for NetworkInterface1 + */ + @Test + public void testNetworkInterface1() { + // TODO: test NetworkInterface1 + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NetworkInterfaceList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/NetworkInterfaceList200ResponseTest.java new file mode 100644 index 00000000..9b6a0dc7 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NetworkInterfaceList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.NetworkInterface; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NetworkInterfaceList200Response + */ +public class NetworkInterfaceList200ResponseTest { + private final NetworkInterfaceList200Response model = new NetworkInterfaceList200Response(); + + /** + * Model tests for NetworkInterfaceList200Response + */ + @Test + public void testNetworkInterfaceList200Response() { + // TODO: test NetworkInterfaceList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NetworkInterfaceTest.java b/src/test/java/com/telnyx/sdk/model/NetworkInterfaceTest.java new file mode 100644 index 00000000..35a38bc8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NetworkInterfaceTest.java @@ -0,0 +1,129 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.NetworkInterface1; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NetworkInterface + */ +public class NetworkInterfaceTest { + private final NetworkInterface model = new NetworkInterface(); + + /** + * Model tests for NetworkInterface + */ + @Test + public void testNetworkInterface() { + // TODO: test NetworkInterface + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + + /** + * Test the property 'region' + */ + @Test + public void regionTest() { + // TODO: test region + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NetworkList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/NetworkList200ResponseTest.java new file mode 100644 index 00000000..3aaf27c4 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NetworkList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network; +import com.telnyx.sdk.model.PaginationMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NetworkList200Response + */ +public class NetworkList200ResponseTest { + private final NetworkList200Response model = new NetworkList200Response(); + + /** + * Model tests for NetworkList200Response + */ + @Test + public void testNetworkList200Response() { + // TODO: test NetworkList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NetworkTest.java b/src/test/java/com/telnyx/sdk/model/NetworkTest.java new file mode 100644 index 00000000..5292c877 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NetworkTest.java @@ -0,0 +1,85 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Network1; +import com.telnyx.sdk.model.Record; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Network + */ +public class NetworkTest { + private final Network model = new Network(); + + /** + * Model tests for Network + */ + @Test + public void testNetwork() { + // TODO: test Network + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NotificationEventConditionParametersInnerTest.java b/src/test/java/com/telnyx/sdk/model/NotificationEventConditionParametersInnerTest.java new file mode 100644 index 00000000..7aed6784 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NotificationEventConditionParametersInnerTest.java @@ -0,0 +1,66 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NotificationEventConditionParametersInner + */ +public class NotificationEventConditionParametersInnerTest { + private final NotificationEventConditionParametersInner model = new NotificationEventConditionParametersInner(); + + /** + * Model tests for NotificationEventConditionParametersInner + */ + @Test + public void testNotificationEventConditionParametersInner() { + // TODO: test NotificationEventConditionParametersInner + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'optional' + */ + @Test + public void optionalTest() { + // TODO: test optional + } + + /** + * Test the property 'dataType' + */ + @Test + public void dataTypeTest() { + // TODO: test dataType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/NotificationSettingParametersInnerTest.java b/src/test/java/com/telnyx/sdk/model/NotificationSettingParametersInnerTest.java new file mode 100644 index 00000000..b032f8d8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/NotificationSettingParametersInnerTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for NotificationSettingParametersInner + */ +public class NotificationSettingParametersInnerTest { + private final NotificationSettingParametersInner model = new NotificationSettingParametersInner(); + + /** + * Model tests for NotificationSettingParametersInner + */ + @Test + public void testNotificationSettingParametersInner() { + // TODO: test NotificationSettingParametersInner + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/OTAUpdateGET200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/OTAUpdateGET200ResponseTest.java new file mode 100644 index 00000000..1a541e1e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/OTAUpdateGET200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CompleteOTAUpdate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for OTAUpdateGET200Response + */ +public class OTAUpdateGET200ResponseTest { + private final OTAUpdateGET200Response model = new OTAUpdateGET200Response(); + + /** + * Model tests for OTAUpdateGET200Response + */ + @Test + public void testOTAUpdateGET200Response() { + // TODO: test OTAUpdateGET200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/OTAUpdatesList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/OTAUpdatesList200ResponseTest.java new file mode 100644 index 00000000..580d36e3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/OTAUpdatesList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SimplifiedOTAUpdate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for OTAUpdatesList200Response + */ +public class OTAUpdatesList200ResponseTest { + private final OTAUpdatesList200Response model = new OTAUpdatesList200Response(); + + /** + * Model tests for OTAUpdatesList200Response + */ + @Test + public void testOTAUpdatesList200Response() { + // TODO: test OTAUpdatesList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInnerTest.java b/src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInnerTest.java new file mode 100644 index 00000000..b61c37bc --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadMediaInnerTest.java @@ -0,0 +1,78 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import com.fasterxml.jackson.annotation.JsonIgnore; +import org.openapitools.jackson.nullable.JsonNullable; +import java.util.NoSuchElementException; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for OutboundMessagePayloadMediaInner + */ +public class OutboundMessagePayloadMediaInnerTest { + private final OutboundMessagePayloadMediaInner model = new OutboundMessagePayloadMediaInner(); + + /** + * Model tests for OutboundMessagePayloadMediaInner + */ + @Test + public void testOutboundMessagePayloadMediaInner() { + // TODO: test OutboundMessagePayloadMediaInner + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'contentType' + */ + @Test + public void contentTypeTest() { + // TODO: test contentType + } + + /** + * Test the property 'sha256' + */ + @Test + public void sha256Test() { + // TODO: test sha256 + } + + /** + * Test the property 'size' + */ + @Test + public void sizeTest() { + // TODO: test size + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadToInnerTest.java b/src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadToInnerTest.java new file mode 100644 index 00000000..25e3f5a6 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/OutboundMessagePayloadToInnerTest.java @@ -0,0 +1,74 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for OutboundMessagePayloadToInner + */ +public class OutboundMessagePayloadToInnerTest { + private final OutboundMessagePayloadToInner model = new OutboundMessagePayloadToInner(); + + /** + * Model tests for OutboundMessagePayloadToInner + */ + @Test + public void testOutboundMessagePayloadToInner() { + // TODO: test OutboundMessagePayloadToInner + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'carrier' + */ + @Test + public void carrierTest() { + // TODO: test carrier + } + + /** + * Test the property 'lineType' + */ + @Test + public void lineTypeTest() { + // TODO: test lineType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PWGAssignedResourcesSummaryTest.java b/src/test/java/com/telnyx/sdk/model/PWGAssignedResourcesSummaryTest.java new file mode 100644 index 00000000..7446249e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PWGAssignedResourcesSummaryTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PWGAssignedResourcesSummary + */ +public class PWGAssignedResourcesSummaryTest { + private final PWGAssignedResourcesSummary model = new PWGAssignedResourcesSummary(); + + /** + * Model tests for PWGAssignedResourcesSummary + */ + @Test + public void testPWGAssignedResourcesSummary() { + // TODO: test PWGAssignedResourcesSummary + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'count' + */ + @Test + public void countTest() { + // TODO: test count + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PatchGroupRequestTest.java b/src/test/java/com/telnyx/sdk/model/PatchGroupRequestTest.java new file mode 100644 index 00000000..6031130c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PatchGroupRequestTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PatchGroupRequest + */ +public class PatchGroupRequestTest { + private final PatchGroupRequest model = new PatchGroupRequest(); + + /** + * Model tests for PatchGroupRequest + */ + @Test + public void testPatchGroupRequest() { + // TODO: test PatchGroupRequest + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementTypeTest.java b/src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementTypeTest.java new file mode 100644 index 00000000..e00bfabe --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailRequirementTypeTest.java @@ -0,0 +1,90 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PortingOrderRequirementDetailRequirementType + */ +public class PortingOrderRequirementDetailRequirementTypeTest { + private final PortingOrderRequirementDetailRequirementType model = new PortingOrderRequirementDetailRequirementType(); + + /** + * Model tests for PortingOrderRequirementDetailRequirementType + */ + @Test + public void testPortingOrderRequirementDetailRequirementType() { + // TODO: test PortingOrderRequirementDetailRequirementType + } + + /** + * Test the property 'acceptanceCriteria' + */ + @Test + public void acceptanceCriteriaTest() { + // TODO: test acceptanceCriteria + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'example' + */ + @Test + public void exampleTest() { + // TODO: test example + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailTest.java b/src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailTest.java new file mode 100644 index 00000000..090b7cbf --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PortingOrderRequirementDetailTest.java @@ -0,0 +1,83 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrderRequirementDetailRequirementType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PortingOrderRequirementDetail + */ +public class PortingOrderRequirementDetailTest { + private final PortingOrderRequirementDetail model = new PortingOrderRequirementDetail(); + + /** + * Model tests for PortingOrderRequirementDetail + */ + @Test + public void testPortingOrderRequirementDetail() { + // TODO: test PortingOrderRequirementDetail + } + + /** + * Test the property 'fieldType' + */ + @Test + public void fieldTypeTest() { + // TODO: test fieldType + } + + /** + * Test the property 'fieldValue' + */ + @Test + public void fieldValueTest() { + // TODO: test fieldValue + } + + /** + * Test the property 'requirementType' + */ + @Test + public void requirementTypeTest() { + // TODO: test requirementType + } + + /** + * Test the property 'requirementStatus' + */ + @Test + public void requirementStatusTest() { + // TODO: test requirementStatus + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PostPortRequestComment201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/PostPortRequestComment201ResponseTest.java new file mode 100644 index 00000000..2dd4ddea --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PostPortRequestComment201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortoutComment; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostPortRequestComment201Response + */ +public class PostPortRequestComment201ResponseTest { + private final PostPortRequestComment201Response model = new PostPortRequestComment201Response(); + + /** + * Model tests for PostPortRequestComment201Response + */ + @Test + public void testPostPortRequestComment201Response() { + // TODO: test PostPortRequestComment201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PostPortRequestCommentRequestTest.java b/src/test/java/com/telnyx/sdk/model/PostPortRequestCommentRequestTest.java new file mode 100644 index 00000000..7060e436 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PostPortRequestCommentRequestTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostPortRequestCommentRequest + */ +public class PostPortRequestCommentRequestTest { + private final PostPortRequestCommentRequest model = new PostPortRequestCommentRequest(); + + /** + * Model tests for PostPortRequestCommentRequest + */ + @Test + public void testPostPortRequestCommentRequest() { + // TODO: test PostPortRequestCommentRequest + } + + /** + * Test the property 'body' + */ + @Test + public void bodyTest() { + // TODO: test body + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInnerTest.java b/src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInnerTest.java new file mode 100644 index 00000000..cf1c880b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestDocumentsInnerTest.java @@ -0,0 +1,59 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostPortRequestSupportingDocumentsRequestDocumentsInner + */ +public class PostPortRequestSupportingDocumentsRequestDocumentsInnerTest { + private final PostPortRequestSupportingDocumentsRequestDocumentsInner model = new PostPortRequestSupportingDocumentsRequestDocumentsInner(); + + /** + * Model tests for PostPortRequestSupportingDocumentsRequestDocumentsInner + */ + @Test + public void testPostPortRequestSupportingDocumentsRequestDocumentsInner() { + // TODO: test PostPortRequestSupportingDocumentsRequestDocumentsInner + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestTest.java b/src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestTest.java new file mode 100644 index 00000000..b2e7f475 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PostPortRequestSupportingDocumentsRequestTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PostPortRequestSupportingDocumentsRequestDocumentsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostPortRequestSupportingDocumentsRequest + */ +public class PostPortRequestSupportingDocumentsRequestTest { + private final PostPortRequestSupportingDocumentsRequest model = new PostPortRequestSupportingDocumentsRequest(); + + /** + * Model tests for PostPortRequestSupportingDocumentsRequest + */ + @Test + public void testPostPortRequestSupportingDocumentsRequest() { + // TODO: test PostPortRequestSupportingDocumentsRequest + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PostPortabilityCheck201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/PostPortabilityCheck201ResponseTest.java new file mode 100644 index 00000000..b47eaeef --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PostPortabilityCheck201ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortabilityCheckDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostPortabilityCheck201Response + */ +public class PostPortabilityCheck201ResponseTest { + private final PostPortabilityCheck201Response model = new PostPortabilityCheck201Response(); + + /** + * Model tests for PostPortabilityCheck201Response + */ + @Test + public void testPostPortabilityCheck201Response() { + // TODO: test PostPortabilityCheck201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PostPortabilityCheckRequestTest.java b/src/test/java/com/telnyx/sdk/model/PostPortabilityCheckRequestTest.java new file mode 100644 index 00000000..524da5ef --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PostPortabilityCheckRequestTest.java @@ -0,0 +1,52 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostPortabilityCheckRequest + */ +public class PostPortabilityCheckRequestTest { + private final PostPortabilityCheckRequest model = new PostPortabilityCheckRequest(); + + /** + * Model tests for PostPortabilityCheckRequest + */ + @Test + public void testPostPortabilityCheckRequest() { + // TODO: test PostPortabilityCheckRequest + } + + /** + * Test the property 'phoneNumbers' + */ + @Test + public void phoneNumbersTest() { + // TODO: test phoneNumbers + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequestTest.java b/src/test/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequestTest.java new file mode 100644 index 00000000..19111af4 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PostValidateRegistrationCodesRequestTest.java @@ -0,0 +1,52 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PostValidateRegistrationCodesRequest + */ +public class PostValidateRegistrationCodesRequestTest { + private final PostValidateRegistrationCodesRequest model = new PostValidateRegistrationCodesRequest(); + + /** + * Model tests for PostValidateRegistrationCodesRequest + */ + @Test + public void testPostValidateRegistrationCodesRequest() { + // TODO: test PostValidateRegistrationCodesRequest + } + + /** + * Test the property 'registrationCodes' + */ + @Test + public void registrationCodesTest() { + // TODO: test registrationCodes + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PublicInternetGateway1Test.java b/src/test/java/com/telnyx/sdk/model/PublicInternetGateway1Test.java new file mode 100644 index 00000000..9910426e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PublicInternetGateway1Test.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicInternetGateway1 + */ +public class PublicInternetGateway1Test { + private final PublicInternetGateway1 model = new PublicInternetGateway1(); + + /** + * Model tests for PublicInternetGateway1 + */ + @Test + public void testPublicInternetGateway1() { + // TODO: test PublicInternetGateway1 + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'publicIp' + */ + @Test + public void publicIpTest() { + // TODO: test publicIp + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202ResponseTest.java new file mode 100644 index 00000000..4a23fb3b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreate202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PublicInternetGatewayRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicInternetGatewayCreate202Response + */ +public class PublicInternetGatewayCreate202ResponseTest { + private final PublicInternetGatewayCreate202Response model = new PublicInternetGatewayCreate202Response(); + + /** + * Model tests for PublicInternetGatewayCreate202Response + */ + @Test + public void testPublicInternetGatewayCreate202Response() { + // TODO: test PublicInternetGatewayCreate202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreateTest.java b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreateTest.java new file mode 100644 index 00000000..db015cab --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayCreateTest.java @@ -0,0 +1,118 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.PublicInternetGateway; +import com.telnyx.sdk.model.RegionIn; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicInternetGatewayCreate + */ +public class PublicInternetGatewayCreateTest { + private final PublicInternetGatewayCreate model = new PublicInternetGatewayCreate(); + + /** + * Model tests for PublicInternetGatewayCreate + */ + @Test + public void testPublicInternetGatewayCreate() { + // TODO: test PublicInternetGatewayCreate + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'publicIp' + */ + @Test + public void publicIpTest() { + // TODO: test publicIp + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayList200ResponseTest.java new file mode 100644 index 00000000..62767e78 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.PublicInternetGatewayRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicInternetGatewayList200Response + */ +public class PublicInternetGatewayList200ResponseTest { + private final PublicInternetGatewayList200Response model = new PublicInternetGatewayList200Response(); + + /** + * Model tests for PublicInternetGatewayList200Response + */ + @Test + public void testPublicInternetGatewayList200Response() { + // TODO: test PublicInternetGatewayList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayReadTest.java b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayReadTest.java new file mode 100644 index 00000000..3d9c0ee4 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayReadTest.java @@ -0,0 +1,127 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.PublicInternetGateway; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicInternetGatewayRead + */ +public class PublicInternetGatewayReadTest { + private final PublicInternetGatewayRead model = new PublicInternetGatewayRead(); + + /** + * Model tests for PublicInternetGatewayRead + */ + @Test + public void testPublicInternetGatewayRead() { + // TODO: test PublicInternetGatewayRead + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'publicIp' + */ + @Test + public void publicIpTest() { + // TODO: test publicIp + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + + /** + * Test the property 'region' + */ + @Test + public void regionTest() { + // TODO: test region + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayTest.java b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayTest.java new file mode 100644 index 00000000..c63501e8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/PublicInternetGatewayTest.java @@ -0,0 +1,111 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.PublicInternetGateway1; +import com.telnyx.sdk.model.Record; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for PublicInternetGateway + */ +public class PublicInternetGatewayTest { + private final PublicInternetGateway model = new PublicInternetGateway(); + + /** + * Model tests for PublicInternetGateway + */ + @Test + public void testPublicInternetGateway() { + // TODO: test PublicInternetGateway + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'publicIp' + */ + @Test + public void publicIpTest() { + // TODO: test publicIp + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RecordTest.java b/src/test/java/com/telnyx/sdk/model/RecordTest.java new file mode 100644 index 00000000..43027b9f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RecordTest.java @@ -0,0 +1,75 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Record + */ +public class RecordTest { + private final Record model = new Record(); + + /** + * Model tests for Record + */ + @Test + public void testRecord() { + // TODO: test Record + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseDataTest.java b/src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseDataTest.java new file mode 100644 index 00000000..8fec33dc --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseDataTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RefreshRoomClientToken201ResponseData + */ +public class RefreshRoomClientToken201ResponseDataTest { + private final RefreshRoomClientToken201ResponseData model = new RefreshRoomClientToken201ResponseData(); + + /** + * Model tests for RefreshRoomClientToken201ResponseData + */ + @Test + public void testRefreshRoomClientToken201ResponseData() { + // TODO: test RefreshRoomClientToken201ResponseData + } + + /** + * Test the property 'token' + */ + @Test + public void tokenTest() { + // TODO: test token + } + + /** + * Test the property 'tokenExpiresAt' + */ + @Test + public void tokenExpiresAtTest() { + // TODO: test tokenExpiresAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseTest.java new file mode 100644 index 00000000..1822b809 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RefreshRoomClientToken201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RefreshRoomClientToken201ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RefreshRoomClientToken201Response + */ +public class RefreshRoomClientToken201ResponseTest { + private final RefreshRoomClientToken201Response model = new RefreshRoomClientToken201Response(); + + /** + * Model tests for RefreshRoomClientToken201Response + */ + @Test + public void testRefreshRoomClientToken201Response() { + // TODO: test RefreshRoomClientToken201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegionInTest.java b/src/test/java/com/telnyx/sdk/model/RegionInTest.java new file mode 100644 index 00000000..093c351f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegionInTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegionIn + */ +public class RegionInTest { + private final RegionIn model = new RegionIn(); + + /** + * Model tests for RegionIn + */ + @Test + public void testRegionIn() { + // TODO: test RegionIn + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegionList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/RegionList200ResponseTest.java new file mode 100644 index 00000000..caf22d59 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegionList200ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Region; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegionList200Response + */ +public class RegionList200ResponseTest { + private final RegionList200Response model = new RegionList200Response(); + + /** + * Model tests for RegionList200Response + */ + @Test + public void testRegionList200Response() { + // TODO: test RegionList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegionOutRegionTest.java b/src/test/java/com/telnyx/sdk/model/RegionOutRegionTest.java new file mode 100644 index 00000000..d4d18b85 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegionOutRegionTest.java @@ -0,0 +1,66 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegionOutRegion + */ +public class RegionOutRegionTest { + private final RegionOutRegion model = new RegionOutRegion(); + + /** + * Model tests for RegionOutRegion + */ + @Test + public void testRegionOutRegion() { + // TODO: test RegionOutRegion + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegionOutTest.java b/src/test/java/com/telnyx/sdk/model/RegionOutTest.java new file mode 100644 index 00000000..db59d079 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegionOutTest.java @@ -0,0 +1,59 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RegionOutRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegionOut + */ +public class RegionOutTest { + private final RegionOut model = new RegionOut(); + + /** + * Model tests for RegionOut + */ + @Test + public void testRegionOut() { + // TODO: test RegionOut + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + + /** + * Test the property 'region' + */ + @Test + public void regionTest() { + // TODO: test region + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegionTest.java b/src/test/java/com/telnyx/sdk/model/RegionTest.java new file mode 100644 index 00000000..aafc02bf --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegionTest.java @@ -0,0 +1,92 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Region + */ +public class RegionTest { + private final Region model = new Region(); + + /** + * Model tests for Region + */ + @Test + public void testRegion() { + // TODO: test Region + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'supportedInterfaces' + */ + @Test + public void supportedInterfacesTest() { + // TODO: test supportedInterfaces + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInnerTest.java b/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInnerTest.java new file mode 100644 index 00000000..4eed9da2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegionInformationInnerTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegulatoryRequirementsRegionInformationInner + */ +public class RegulatoryRequirementsRegionInformationInnerTest { + private final RegulatoryRequirementsRegionInformationInner model = new RegulatoryRequirementsRegionInformationInner(); + + /** + * Model tests for RegulatoryRequirementsRegionInformationInner + */ + @Test + public void testRegulatoryRequirementsRegionInformationInner() { + // TODO: test RegulatoryRequirementsRegionInformationInner + } + + /** + * Test the property 'regionName' + */ + @Test + public void regionNameTest() { + // TODO: test regionName + } + + /** + * Test the property 'regionType' + */ + @Test + public void regionTypeTest() { + // TODO: test regionType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteriaTest.java b/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteriaTest.java new file mode 100644 index 00000000..d7912950 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteriaTest.java @@ -0,0 +1,66 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria + */ +public class RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteriaTest { + private final RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria model = new RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria(); + + /** + * Model tests for RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria + */ + @Test + public void testRegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria() { + // TODO: test RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria + } + + /** + * Test the property 'localityLimit' + */ + @Test + public void localityLimitTest() { + // TODO: test localityLimit + } + + /** + * Test the property 'fieldValue' + */ + @Test + public void fieldValueTest() { + // TODO: test fieldValue + } + + /** + * Test the property 'fieldType' + */ + @Test + public void fieldTypeTest() { + // TODO: test fieldType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerTest.java b/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerTest.java new file mode 100644 index 00000000..fe1494b7 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/RegulatoryRequirementsRegulatoryRequirementsInnerTest.java @@ -0,0 +1,100 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RegulatoryRequirementsRegulatoryRequirementsInnerAcceptanceCriteria; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for RegulatoryRequirementsRegulatoryRequirementsInner + */ +public class RegulatoryRequirementsRegulatoryRequirementsInnerTest { + private final RegulatoryRequirementsRegulatoryRequirementsInner model = new RegulatoryRequirementsRegulatoryRequirementsInner(); + + /** + * Model tests for RegulatoryRequirementsRegulatoryRequirementsInner + */ + @Test + public void testRegulatoryRequirementsRegulatoryRequirementsInner() { + // TODO: test RegulatoryRequirementsRegulatoryRequirementsInner + } + + /** + * Test the property 'description' + */ + @Test + public void descriptionTest() { + // TODO: test description + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'example' + */ + @Test + public void exampleTest() { + // TODO: test example + } + + /** + * Test the property 'label' + */ + @Test + public void labelTest() { + // TODO: test label + } + + /** + * Test the property 'fieldType' + */ + @Test + public void fieldTypeTest() { + // TODO: test fieldType + } + + /** + * Test the property 'acceptanceCriteria' + */ + @Test + public void acceptanceCriteriaTest() { + // TODO: test acceptanceCriteria + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ReplyTest.java b/src/test/java/com/telnyx/sdk/model/ReplyTest.java new file mode 100644 index 00000000..e54f1800 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ReplyTest.java @@ -0,0 +1,59 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InteractiveButtonReply; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Reply + */ +public class ReplyTest { + private final Reply model = new Reply(); + + /** + * Model tests for Reply + */ + @Test + public void testReply() { + // TODO: test Reply + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SIMCardActionsSummaryTest.java b/src/test/java/com/telnyx/sdk/model/SIMCardActionsSummaryTest.java new file mode 100644 index 00000000..07cee0ff --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SIMCardActionsSummaryTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SIMCardActionsSummary + */ +public class SIMCardActionsSummaryTest { + private final SIMCardActionsSummary model = new SIMCardActionsSummary(); + + /** + * Model tests for SIMCardActionsSummary + */ + @Test + public void testSIMCardActionsSummary() { + // TODO: test SIMCardActionsSummary + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'count' + */ + @Test + public void countTest() { + // TODO: test count + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200ResponseTest.java new file mode 100644 index 00000000..f544299d --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardDeviceDetails; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SIMCardDeviceDetailsGet200Response + */ +public class SIMCardDeviceDetailsGet200ResponseTest { + private final SIMCardDeviceDetailsGet200Response model = new SIMCardDeviceDetailsGet200Response(); + + /** + * Model tests for SIMCardDeviceDetailsGet200Response + */ + @Test + public void testSIMCardDeviceDetailsGet200Response() { + // TODO: test SIMCardDeviceDetailsGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsTest.java b/src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsTest.java new file mode 100644 index 00000000..86a9e1d9 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SIMCardDeviceDetailsTest.java @@ -0,0 +1,90 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SIMCardDeviceDetails + */ +public class SIMCardDeviceDetailsTest { + private final SIMCardDeviceDetails model = new SIMCardDeviceDetails(); + + /** + * Model tests for SIMCardDeviceDetails + */ + @Test + public void testSIMCardDeviceDetails() { + // TODO: test SIMCardDeviceDetails + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'imei' + */ + @Test + public void imeiTest() { + // TODO: test imei + } + + /** + * Test the property 'modelName' + */ + @Test + public void modelNameTest() { + // TODO: test modelName + } + + /** + * Test the property 'brandName' + */ + @Test + public void brandNameTest() { + // TODO: test brandName + } + + /** + * Test the property 'deviceType' + */ + @Test + public void deviceTypeTest() { + // TODO: test deviceType + } + + /** + * Test the property 'operatingSystem' + */ + @Test + public void operatingSystemTest() { + // TODO: test operatingSystem + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200ResponseTest.java new file mode 100644 index 00000000..5c1eccdf --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardNetworkPreferenceWithOTAUpdates; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SIMCardNetworkPreferencesGet200Response + */ +public class SIMCardNetworkPreferencesGet200ResponseTest { + private final SIMCardNetworkPreferencesGet200Response model = new SIMCardNetworkPreferencesGet200Response(); + + /** + * Model tests for SIMCardNetworkPreferencesGet200Response + */ + @Test + public void testSIMCardNetworkPreferencesGet200Response() { + // TODO: test SIMCardNetworkPreferencesGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequestTest.java b/src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequestTest.java new file mode 100644 index 00000000..d9b40d3a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SIMCardNetworkPreferencesPutRequestTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.MobileOperatorNetworkPreferencesRequest; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SIMCardNetworkPreferencesPutRequest + */ +public class SIMCardNetworkPreferencesPutRequestTest { + private final SIMCardNetworkPreferencesPutRequest model = new SIMCardNetworkPreferencesPutRequest(); + + /** + * Model tests for SIMCardNetworkPreferencesPutRequest + */ + @Test + public void testSIMCardNetworkPreferencesPutRequest() { + // TODO: test SIMCardNetworkPreferencesPutRequest + } + + /** + * Test the property 'mobileOperatorNetworksPreferences' + */ + @Test + public void mobileOperatorNetworksPreferencesTest() { + // TODO: test mobileOperatorNetworksPreferences + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SIMCardPublicIPGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SIMCardPublicIPGet200ResponseTest.java new file mode 100644 index 00000000..7acf0764 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SIMCardPublicIPGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardPublicIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SIMCardPublicIPGet200Response + */ +public class SIMCardPublicIPGet200ResponseTest { + private final SIMCardPublicIPGet200Response model = new SIMCardPublicIPGet200Response(); + + /** + * Model tests for SIMCardPublicIPGet200Response + */ + @Test + public void testSIMCardPublicIPGet200Response() { + // TODO: test SIMCardPublicIPGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SearchedSIMCardGroupTest.java b/src/test/java/com/telnyx/sdk/model/SearchedSIMCardGroupTest.java new file mode 100644 index 00000000..748c631c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SearchedSIMCardGroupTest.java @@ -0,0 +1,125 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ConsumedData; +import com.telnyx.sdk.model.SIMCardGroupDataLimit; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SearchedSIMCardGroup + */ +public class SearchedSIMCardGroupTest { + private final SearchedSIMCardGroup model = new SearchedSIMCardGroup(); + + /** + * Model tests for SearchedSIMCardGroup + */ + @Test + public void testSearchedSIMCardGroup() { + // TODO: test SearchedSIMCardGroup + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property '_default' + */ + @Test + public void _defaultTest() { + // TODO: test _default + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'dataLimit' + */ + @Test + public void dataLimitTest() { + // TODO: test dataLimit + } + + /** + * Test the property 'consumedData' + */ + @Test + public void consumedDataTest() { + // TODO: test consumedData + } + + /** + * Test the property 'simCardCount' + */ + @Test + public void simCardCountTest() { + // TODO: test simCardCount + } + + /** + * Test the property 'privateWirelessGatewayId' + */ + @Test + public void privateWirelessGatewayIdTest() { + // TODO: test privateWirelessGatewayId + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequestTest.java b/src/test/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequestTest.java new file mode 100644 index 00000000..78147570 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SetSIMCardGroupPrivateWirelessGatewayRequestTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SetSIMCardGroupPrivateWirelessGatewayRequest + */ +public class SetSIMCardGroupPrivateWirelessGatewayRequestTest { + private final SetSIMCardGroupPrivateWirelessGatewayRequest model = new SetSIMCardGroupPrivateWirelessGatewayRequest(); + + /** + * Model tests for SetSIMCardGroupPrivateWirelessGatewayRequest + */ + @Test + public void testSetSIMCardGroupPrivateWirelessGatewayRequest() { + // TODO: test SetSIMCardGroupPrivateWirelessGatewayRequest + } + + /** + * Test the property 'privateWirelessGatewayId' + */ + @Test + public void privateWirelessGatewayIdTest() { + // TODO: test privateWirelessGatewayId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardActionGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardActionGet200ResponseTest.java new file mode 100644 index 00000000..8349d926 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardActionGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardActionGet200Response + */ +public class SimCardActionGet200ResponseTest { + private final SimCardActionGet200Response model = new SimCardActionGet200Response(); + + /** + * Model tests for SimCardActionGet200Response + */ + @Test + public void testSimCardActionGet200Response() { + // TODO: test SimCardActionGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201ResponseTest.java new file mode 100644 index 00000000..f341d131 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPost201ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SimCardDataUsageNotification; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardDataUsageNotificationsPost201Response + */ +public class SimCardDataUsageNotificationsPost201ResponseTest { + private final SimCardDataUsageNotificationsPost201Response model = new SimCardDataUsageNotificationsPost201Response(); + + /** + * Model tests for SimCardDataUsageNotificationsPost201Response + */ + @Test + public void testSimCardDataUsageNotificationsPost201Response() { + // TODO: test SimCardDataUsageNotificationsPost201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestTest.java b/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestTest.java new file mode 100644 index 00000000..dc1ec200 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestTest.java @@ -0,0 +1,60 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SimCardDataUsageNotificationsPostRequestThreshold; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardDataUsageNotificationsPostRequest + */ +public class SimCardDataUsageNotificationsPostRequestTest { + private final SimCardDataUsageNotificationsPostRequest model = new SimCardDataUsageNotificationsPostRequest(); + + /** + * Model tests for SimCardDataUsageNotificationsPostRequest + */ + @Test + public void testSimCardDataUsageNotificationsPostRequest() { + // TODO: test SimCardDataUsageNotificationsPostRequest + } + + /** + * Test the property 'simCardId' + */ + @Test + public void simCardIdTest() { + // TODO: test simCardId + } + + /** + * Test the property 'threshold' + */ + @Test + public void thresholdTest() { + // TODO: test threshold + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThresholdTest.java b/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThresholdTest.java new file mode 100644 index 00000000..e86a0e73 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardDataUsageNotificationsPostRequestThresholdTest.java @@ -0,0 +1,59 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardDataUsageNotificationsPostRequestThreshold + */ +public class SimCardDataUsageNotificationsPostRequestThresholdTest { + private final SimCardDataUsageNotificationsPostRequestThreshold model = new SimCardDataUsageNotificationsPostRequestThreshold(); + + /** + * Model tests for SimCardDataUsageNotificationsPostRequestThreshold + */ + @Test + public void testSimCardDataUsageNotificationsPostRequestThreshold() { + // TODO: test SimCardDataUsageNotificationsPostRequestThreshold + } + + /** + * Test the property 'amount' + */ + @Test + public void amountTest() { + // TODO: test amount + } + + /** + * Test the property 'unit' + */ + @Test + public void unitTest() { + // TODO: test unit + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardGet200ResponseTest.java new file mode 100644 index 00000000..fc9da476 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCard; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardGet200Response + */ +public class SimCardGet200ResponseTest { + private final SimCardGet200Response model = new SimCardGet200Response(); + + /** + * Model tests for SimCardGet200Response + */ + @Test + public void testSimCardGet200Response() { + // TODO: test SimCardGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardGroupActionGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardGroupActionGet200ResponseTest.java new file mode 100644 index 00000000..ade058ef --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardGroupActionGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardGroupAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardGroupActionGet200Response + */ +public class SimCardGroupActionGet200ResponseTest { + private final SimCardGroupActionGet200Response model = new SimCardGroupActionGet200Response(); + + /** + * Model tests for SimCardGroupActionGet200Response + */ + @Test + public void testSimCardGroupActionGet200Response() { + // TODO: test SimCardGroupActionGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardGroupActionsGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardGroupActionsGet200ResponseTest.java new file mode 100644 index 00000000..fc0509e5 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardGroupActionsGet200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SIMCardGroupAction; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardGroupActionsGet200Response + */ +public class SimCardGroupActionsGet200ResponseTest { + private final SimCardGroupActionsGet200Response model = new SimCardGroupActionsGet200Response(); + + /** + * Model tests for SimCardGroupActionsGet200Response + */ + @Test + public void testSimCardGroupActionsGet200Response() { + // TODO: test SimCardGroupActionsGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardGroupsGetAll200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardGroupsGetAll200ResponseTest.java new file mode 100644 index 00000000..7b665267 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardGroupsGetAll200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SearchedSIMCardGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardGroupsGetAll200Response + */ +public class SimCardGroupsGetAll200ResponseTest { + private final SimCardGroupsGetAll200Response model = new SimCardGroupsGetAll200Response(); + + /** + * Model tests for SimCardGroupsGetAll200Response + */ + @Test + public void testSimCardGroupsGetAll200Response() { + // TODO: test SimCardGroupsGetAll200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardGroupsPost200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardGroupsPost200ResponseTest.java new file mode 100644 index 00000000..55688550 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardGroupsPost200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardGroup; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardGroupsPost200Response + */ +public class SimCardGroupsPost200ResponseTest { + private final SimCardGroupsPost200Response model = new SimCardGroupsPost200Response(); + + /** + * Model tests for SimCardGroupsPost200Response + */ + @Test + public void testSimCardGroupsPost200Response() { + // TODO: test SimCardGroupsPost200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardOrdersGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardOrdersGet200ResponseTest.java new file mode 100644 index 00000000..7cc5a9be --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardOrdersGet200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SIMCardOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardOrdersGet200Response + */ +public class SimCardOrdersGet200ResponseTest { + private final SimCardOrdersGet200Response model = new SimCardOrdersGet200Response(); + + /** + * Model tests for SimCardOrdersGet200Response + */ + @Test + public void testSimCardOrdersGet200Response() { + // TODO: test SimCardOrdersGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardOrdersPost200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardOrdersPost200ResponseTest.java new file mode 100644 index 00000000..9f387478 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardOrdersPost200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardOrder; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardOrdersPost200Response + */ +public class SimCardOrdersPost200ResponseTest { + private final SimCardOrdersPost200Response model = new SimCardOrdersPost200Response(); + + /** + * Model tests for SimCardOrdersPost200Response + */ + @Test + public void testSimCardOrdersPost200Response() { + // TODO: test SimCardOrdersPost200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardOrdersPreview202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardOrdersPreview202ResponseTest.java new file mode 100644 index 00000000..80027f2b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardOrdersPreview202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.SIMCardOrderPreview; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardOrdersPreview202Response + */ +public class SimCardOrdersPreview202ResponseTest { + private final SimCardOrdersPreview202Response model = new SimCardOrdersPreview202Response(); + + /** + * Model tests for SimCardOrdersPreview202Response + */ + @Test + public void testSimCardOrdersPreview202Response() { + // TODO: test SimCardOrdersPreview202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequestTest.java b/src/test/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequestTest.java new file mode 100644 index 00000000..daf52994 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardOrdersPreviewRequestTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardOrdersPreviewRequest + */ +public class SimCardOrdersPreviewRequestTest { + private final SimCardOrdersPreviewRequest model = new SimCardOrdersPreviewRequest(); + + /** + * Model tests for SimCardOrdersPreviewRequest + */ + @Test + public void testSimCardOrdersPreviewRequest() { + // TODO: test SimCardOrdersPreviewRequest + } + + /** + * Test the property 'quantity' + */ + @Test + public void quantityTest() { + // TODO: test quantity + } + + /** + * Test the property 'addressId' + */ + @Test + public void addressIdTest() { + // TODO: test addressId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardRegister202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardRegister202ResponseTest.java new file mode 100644 index 00000000..338ee2bf --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardRegister202ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Error; +import com.telnyx.sdk.model.SimpleSIMCard; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardRegister202Response + */ +public class SimCardRegister202ResponseTest { + private final SimCardRegister202Response model = new SimCardRegister202Response(); + + /** + * Model tests for SimCardRegister202Response + */ + @Test + public void testSimCardRegister202Response() { + // TODO: test SimCardRegister202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SimCardsGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/SimCardsGet200ResponseTest.java new file mode 100644 index 00000000..a0339623 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SimCardsGet200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.SimpleSIMCard; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SimCardsGet200Response + */ +public class SimCardsGet200ResponseTest { + private final SimCardsGet200Response model = new SimCardsGet200Response(); + + /** + * Model tests for SimCardsGet200Response + */ + @Test + public void testSimCardsGet200Response() { + // TODO: test SimCardsGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommandTest.java b/src/test/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommandTest.java new file mode 100644 index 00000000..f0ff3116 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SuccessfulResponseUponAcceptingCancelFaxCommandTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SuccessfulResponseUponAcceptingCancelFaxCommand + */ +public class SuccessfulResponseUponAcceptingCancelFaxCommandTest { + private final SuccessfulResponseUponAcceptingCancelFaxCommand model = new SuccessfulResponseUponAcceptingCancelFaxCommand(); + + /** + * Model tests for SuccessfulResponseUponAcceptingCancelFaxCommand + */ + @Test + public void testSuccessfulResponseUponAcceptingCancelFaxCommand() { + // TODO: test SuccessfulResponseUponAcceptingCancelFaxCommand + } + + /** + * Test the property 'result' + */ + @Test + public void resultTest() { + // TODO: test result + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSentTest.java b/src/test/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSentTest.java new file mode 100644 index 00000000..f0ea47e7 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSentTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Message; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent + */ +public class SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSentTest { + private final SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent model = new SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent(); + + /** + * Model tests for SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent + */ + @Test + public void testSuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent() { + // TODO: test SuccessfulResponseWithDetailsAboutTheWhatsAppMessageSent + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/TeXmlRESTCommandResponseTest.java b/src/test/java/com/telnyx/sdk/model/TeXmlRESTCommandResponseTest.java new file mode 100644 index 00000000..5cdea9a2 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/TeXmlRESTCommandResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateCommandResult; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TeXmlRESTCommandResponse + */ +public class TeXmlRESTCommandResponseTest { + private final TeXmlRESTCommandResponse model = new TeXmlRESTCommandResponse(); + + /** + * Model tests for TeXmlRESTCommandResponse + */ + @Test + public void testTeXmlRESTCommandResponse() { + // TODO: test TeXmlRESTCommandResponse + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/TemplateButtonComponentTest.java b/src/test/java/com/telnyx/sdk/model/TemplateButtonComponentTest.java new file mode 100644 index 00000000..652a1178 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/TemplateButtonComponentTest.java @@ -0,0 +1,78 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonComponentType; +import com.telnyx.sdk.model.ButtonSubtype; +import com.telnyx.sdk.model.TemplateButtonParameter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TemplateButtonComponent + */ +public class TemplateButtonComponentTest { + private final TemplateButtonComponent model = new TemplateButtonComponent(); + + /** + * Model tests for TemplateButtonComponent + */ + @Test + public void testTemplateButtonComponent() { + // TODO: test TemplateButtonComponent + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'subType' + */ + @Test + public void subTypeTest() { + // TODO: test subType + } + + /** + * Test the property 'index' + */ + @Test + public void indexTest() { + // TODO: test index + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/TemplateButtonParameterTest.java b/src/test/java/com/telnyx/sdk/model/TemplateButtonParameterTest.java new file mode 100644 index 00000000..76c32823 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/TemplateButtonParameterTest.java @@ -0,0 +1,67 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonParameterType; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TemplateButtonParameter + */ +public class TemplateButtonParameterTest { + private final TemplateButtonParameter model = new TemplateButtonParameter(); + + /** + * Model tests for TemplateButtonParameter + */ + @Test + public void testTemplateButtonParameter() { + // TODO: test TemplateButtonParameter + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'payload' + */ + @Test + public void payloadTest() { + // TODO: test payload + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/TemplateComponentTest.java b/src/test/java/com/telnyx/sdk/model/TemplateComponentTest.java new file mode 100644 index 00000000..cf00f726 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/TemplateComponentTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.TemplateComponentType; +import com.telnyx.sdk.model.TemplateParameters; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TemplateComponent + */ +public class TemplateComponentTest { + private final TemplateComponent model = new TemplateComponent(); + + /** + * Model tests for TemplateComponent + */ + @Test + public void testTemplateComponent() { + // TODO: test TemplateComponent + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/TemplateComponentTypeTest.java b/src/test/java/com/telnyx/sdk/model/TemplateComponentTypeTest.java new file mode 100644 index 00000000..b3a94c6e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/TemplateComponentTypeTest.java @@ -0,0 +1,34 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import io.swagger.annotations.ApiModel; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TemplateComponentType + */ +public class TemplateComponentTypeTest { + /** + * Model tests for TemplateComponentType + */ + @Test + public void testTemplateComponentType() { + // TODO: test TemplateComponentType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/TemplateComponentsTest.java b/src/test/java/com/telnyx/sdk/model/TemplateComponentsTest.java new file mode 100644 index 00000000..68e27b5f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/TemplateComponentsTest.java @@ -0,0 +1,82 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.ButtonComponentType; +import com.telnyx.sdk.model.ButtonSubtype; +import com.telnyx.sdk.model.TemplateButtonComponent; +import com.telnyx.sdk.model.TemplateButtonParameter; +import com.telnyx.sdk.model.TemplateComponent; +import com.telnyx.sdk.model.TemplateParameters; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TemplateComponents + */ +public class TemplateComponentsTest { + private final TemplateComponents model = new TemplateComponents(); + + /** + * Model tests for TemplateComponents + */ + @Test + public void testTemplateComponents() { + // TODO: test TemplateComponents + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'parameters' + */ + @Test + public void parametersTest() { + // TODO: test parameters + } + + /** + * Test the property 'subType' + */ + @Test + public void subTypeTest() { + // TODO: test subType + } + + /** + * Test the property 'index' + */ + @Test + public void indexTest() { + // TODO: test index + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/TemplateParametersTest.java b/src/test/java/com/telnyx/sdk/model/TemplateParametersTest.java new file mode 100644 index 00000000..c56234f1 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/TemplateParametersTest.java @@ -0,0 +1,103 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Currency; +import com.telnyx.sdk.model.DateTimeObject; +import com.telnyx.sdk.model.Document; +import com.telnyx.sdk.model.Image; +import com.telnyx.sdk.model.Video; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for TemplateParameters + */ +public class TemplateParametersTest { + private final TemplateParameters model = new TemplateParameters(); + + /** + * Model tests for TemplateParameters + */ + @Test + public void testTemplateParameters() { + // TODO: test TemplateParameters + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** + * Test the property 'dateTime' + */ + @Test + public void dateTimeTest() { + // TODO: test dateTime + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'document' + */ + @Test + public void documentTest() { + // TODO: test document + } + + /** + * Test the property 'video' + */ + @Test + public void videoTest() { + // TODO: test video + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateCallRequestTest.java b/src/test/java/com/telnyx/sdk/model/UpdateCallRequestTest.java new file mode 100644 index 00000000..0a14ecae --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateCallRequestTest.java @@ -0,0 +1,106 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateCallRequest + */ +public class UpdateCallRequestTest { + private final UpdateCallRequest model = new UpdateCallRequest(); + + /** + * Model tests for UpdateCallRequest + */ + @Test + public void testUpdateCallRequest() { + // TODO: test UpdateCallRequest + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'method' + */ + @Test + public void methodTest() { + // TODO: test method + } + + /** + * Test the property 'fallbackUrl' + */ + @Test + public void fallbackUrlTest() { + // TODO: test fallbackUrl + } + + /** + * Test the property 'fallbackMethod' + */ + @Test + public void fallbackMethodTest() { + // TODO: test fallbackMethod + } + + /** + * Test the property 'statusCallback' + */ + @Test + public void statusCallbackTest() { + // TODO: test statusCallback + } + + /** + * Test the property 'statusCallbackMethod' + */ + @Test + public void statusCallbackMethodTest() { + // TODO: test statusCallbackMethod + } + + /** + * Test the property 'texml' + */ + @Test + public void texmlTest() { + // TODO: test texml + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateCommandResultTest.java b/src/test/java/com/telnyx/sdk/model/UpdateCommandResultTest.java new file mode 100644 index 00000000..466932f8 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateCommandResultTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateCommandResult + */ +public class UpdateCommandResultTest { + private final UpdateCommandResult model = new UpdateCommandResult(); + + /** + * Model tests for UpdateCommandResult + */ + @Test + public void testUpdateCommandResult() { + // TODO: test UpdateCommandResult + } + + /** + * Test the property 'sid' + */ + @Test + public void sidTest() { + // TODO: test sid + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseDataTest.java b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseDataTest.java new file mode 100644 index 00000000..ae46ead0 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseDataTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateOutboundChannels200ResponseData + */ +public class UpdateOutboundChannels200ResponseDataTest { + private final UpdateOutboundChannels200ResponseData model = new UpdateOutboundChannels200ResponseData(); + + /** + * Model tests for UpdateOutboundChannels200ResponseData + */ + @Test + public void testUpdateOutboundChannels200ResponseData() { + // TODO: test UpdateOutboundChannels200ResponseData + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseTest.java new file mode 100644 index 00000000..c29bd6f3 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannels200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateOutboundChannels200ResponseData; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateOutboundChannels200Response + */ +public class UpdateOutboundChannels200ResponseTest { + private final UpdateOutboundChannels200Response model = new UpdateOutboundChannels200Response(); + + /** + * Model tests for UpdateOutboundChannels200Response + */ + @Test + public void testUpdateOutboundChannels200Response() { + // TODO: test UpdateOutboundChannels200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSourceTest.java b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSourceTest.java new file mode 100644 index 00000000..98a94eaf --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerSourceTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateOutboundChannelsDefaultResponseErrorsInnerSource + */ +public class UpdateOutboundChannelsDefaultResponseErrorsInnerSourceTest { + private final UpdateOutboundChannelsDefaultResponseErrorsInnerSource model = new UpdateOutboundChannelsDefaultResponseErrorsInnerSource(); + + /** + * Model tests for UpdateOutboundChannelsDefaultResponseErrorsInnerSource + */ + @Test + public void testUpdateOutboundChannelsDefaultResponseErrorsInnerSource() { + // TODO: test UpdateOutboundChannelsDefaultResponseErrorsInnerSource + } + + /** + * Test the property 'pointer' + */ + @Test + public void pointerTest() { + // TODO: test pointer + } + + /** + * Test the property 'parameter' + */ + @Test + public void parameterTest() { + // TODO: test parameter + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerTest.java b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerTest.java new file mode 100644 index 00000000..0b4bea80 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseErrorsInnerTest.java @@ -0,0 +1,83 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInnerSource; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateOutboundChannelsDefaultResponseErrorsInner + */ +public class UpdateOutboundChannelsDefaultResponseErrorsInnerTest { + private final UpdateOutboundChannelsDefaultResponseErrorsInner model = new UpdateOutboundChannelsDefaultResponseErrorsInner(); + + /** + * Model tests for UpdateOutboundChannelsDefaultResponseErrorsInner + */ + @Test + public void testUpdateOutboundChannelsDefaultResponseErrorsInner() { + // TODO: test UpdateOutboundChannelsDefaultResponseErrorsInner + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'title' + */ + @Test + public void titleTest() { + // TODO: test title + } + + /** + * Test the property 'detail' + */ + @Test + public void detailTest() { + // TODO: test detail + } + + /** + * Test the property 'source' + */ + @Test + public void sourceTest() { + // TODO: test source + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseTest.java b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseTest.java new file mode 100644 index 00000000..4a59fe6b --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsDefaultResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UpdateOutboundChannelsDefaultResponseErrorsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateOutboundChannelsDefaultResponse + */ +public class UpdateOutboundChannelsDefaultResponseTest { + private final UpdateOutboundChannelsDefaultResponse model = new UpdateOutboundChannelsDefaultResponse(); + + /** + * Model tests for UpdateOutboundChannelsDefaultResponse + */ + @Test + public void testUpdateOutboundChannelsDefaultResponse() { + // TODO: test UpdateOutboundChannelsDefaultResponse + } + + /** + * Test the property 'errors' + */ + @Test + public void errorsTest() { + // TODO: test errors + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequestTest.java b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequestTest.java new file mode 100644 index 00000000..5965b8de --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdateOutboundChannelsRequestTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdateOutboundChannelsRequest + */ +public class UpdateOutboundChannelsRequestTest { + private final UpdateOutboundChannelsRequest model = new UpdateOutboundChannelsRequest(); + + /** + * Model tests for UpdateOutboundChannelsRequest + */ + @Test + public void testUpdateOutboundChannelsRequest() { + // TODO: test UpdateOutboundChannelsRequest + } + + /** + * Test the property 'channels' + */ + @Test + public void channelsTest() { + // TODO: test channels + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMetaTest.java b/src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMetaTest.java new file mode 100644 index 00000000..bac69816 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseMetaTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdatePortingOrder200ResponseMeta + */ +public class UpdatePortingOrder200ResponseMetaTest { + private final UpdatePortingOrder200ResponseMeta model = new UpdatePortingOrder200ResponseMeta(); + + /** + * Model tests for UpdatePortingOrder200ResponseMeta + */ + @Test + public void testUpdatePortingOrder200ResponseMeta() { + // TODO: test UpdatePortingOrder200ResponseMeta + } + + /** + * Test the property 'phoneNumbersUrl' + */ + @Test + public void phoneNumbersUrlTest() { + // TODO: test phoneNumbersUrl + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseTest.java new file mode 100644 index 00000000..cec2a096 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdatePortingOrder200ResponseTest.java @@ -0,0 +1,60 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrder; +import com.telnyx.sdk.model.UpdatePortingOrder200ResponseMeta; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdatePortingOrder200Response + */ +public class UpdatePortingOrder200ResponseTest { + private final UpdatePortingOrder200Response model = new UpdatePortingOrder200Response(); + + /** + * Model tests for UpdatePortingOrder200Response + */ + @Test + public void testUpdatePortingOrder200Response() { + // TODO: test UpdatePortingOrder200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdatePortoutRequestRequestTest.java b/src/test/java/com/telnyx/sdk/model/UpdatePortoutRequestRequestTest.java new file mode 100644 index 00000000..effa4f85 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UpdatePortoutRequestRequestTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UpdatePortoutRequestRequest + */ +public class UpdatePortoutRequestRequestTest { + private final UpdatePortoutRequestRequest model = new UpdatePortoutRequestRequest(); + + /** + * Model tests for UpdatePortoutRequestRequest + */ + @Test + public void testUpdatePortoutRequestRequest() { + // TODO: test UpdatePortoutRequestRequest + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequestTest.java b/src/test/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequestTest.java index 2ae41ec4..b25e4d9e 100644 --- a/src/test/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequestTest.java +++ b/src/test/java/com/telnyx/sdk/model/UpdateVerifiedCallsDisplayProfileRequestTest.java @@ -18,8 +18,6 @@ import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; -import com.telnyx.sdk.model.CallReasons; -import com.telnyx.sdk.model.PhoneNumbers; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import org.junit.Assert; diff --git a/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201ResponseTest.java new file mode 100644 index 00000000..e1cb1dfa --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocuments201ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PortingOrderDocument; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UploadPortingOrderDocuments201Response + */ +public class UploadPortingOrderDocuments201ResponseTest { + private final UploadPortingOrderDocuments201Response model = new UploadPortingOrderDocuments201Response(); + + /** + * Model tests for UploadPortingOrderDocuments201Response + */ + @Test + public void testUploadPortingOrderDocuments201Response() { + // TODO: test UploadPortingOrderDocuments201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInnerTest.java b/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInnerTest.java new file mode 100644 index 00000000..d32faa20 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestDocumentsInnerTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UploadPortingOrderDocumentsRequestDocumentsInner + */ +public class UploadPortingOrderDocumentsRequestDocumentsInnerTest { + private final UploadPortingOrderDocumentsRequestDocumentsInner model = new UploadPortingOrderDocumentsRequestDocumentsInner(); + + /** + * Model tests for UploadPortingOrderDocumentsRequestDocumentsInner + */ + @Test + public void testUploadPortingOrderDocumentsRequestDocumentsInner() { + // TODO: test UploadPortingOrderDocumentsRequestDocumentsInner + } + + /** + * Test the property 'documentType' + */ + @Test + public void documentTypeTest() { + // TODO: test documentType + } + + /** + * Test the property 'documentId' + */ + @Test + public void documentIdTest() { + // TODO: test documentId + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestTest.java b/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestTest.java new file mode 100644 index 00000000..cfc19e30 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/UploadPortingOrderDocumentsRequestTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.UploadPortingOrderDocumentsRequestDocumentsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for UploadPortingOrderDocumentsRequest + */ +public class UploadPortingOrderDocumentsRequestTest { + private final UploadPortingOrderDocumentsRequest model = new UploadPortingOrderDocumentsRequest(); + + /** + * Model tests for UploadPortingOrderDocumentsRequest + */ + @Test + public void testUploadPortingOrderDocumentsRequest() { + // TODO: test UploadPortingOrderDocumentsRequest + } + + /** + * Test the property 'documents' + */ + @Test + public void documentsTest() { + // TODO: test documents + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ValidateAddressResultTest.java b/src/test/java/com/telnyx/sdk/model/ValidateAddressResultTest.java index ef48acb6..f1056148 100644 --- a/src/test/java/com/telnyx/sdk/model/ValidateAddressResultTest.java +++ b/src/test/java/com/telnyx/sdk/model/ValidateAddressResultTest.java @@ -19,7 +19,6 @@ import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import com.telnyx.sdk.model.Error; -import com.telnyx.sdk.model.ValidateAddress; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.util.ArrayList; diff --git a/src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInnerTest.java b/src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInnerTest.java new file mode 100644 index 00000000..4f09a39d --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfileCallReasonsInnerTest.java @@ -0,0 +1,99 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VerifiedCallsDisplayProfileCallReasonsInner + */ +public class VerifiedCallsDisplayProfileCallReasonsInnerTest { + private final VerifiedCallsDisplayProfileCallReasonsInner model = new VerifiedCallsDisplayProfileCallReasonsInner(); + + /** + * Model tests for VerifiedCallsDisplayProfileCallReasonsInner + */ + @Test + public void testVerifiedCallsDisplayProfileCallReasonsInner() { + // TODO: test VerifiedCallsDisplayProfileCallReasonsInner + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'reason' + */ + @Test + public void reasonTest() { + // TODO: test reason + } + + /** + * Test the property 'googleVerificationStatus' + */ + @Test + public void googleVerificationStatusTest() { + // TODO: test googleVerificationStatus + } + + /** + * Test the property 'googleApprovalInfo' + */ + @Test + public void googleApprovalInfoTest() { + // TODO: test googleApprovalInfo + } + + /** + * Test the property 'displayProfileId' + */ + @Test + public void displayProfileIdTest() { + // TODO: test displayProfileId + } + + /** + * Test the property 'delete' + */ + @Test + public void deleteTest() { + // TODO: test delete + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInnerTest.java b/src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInnerTest.java new file mode 100644 index 00000000..9aa71fad --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VerifiedCallsDisplayProfilePhoneNumbersInnerTest.java @@ -0,0 +1,99 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VerifiedCallsDisplayProfilePhoneNumbersInner + */ +public class VerifiedCallsDisplayProfilePhoneNumbersInnerTest { + private final VerifiedCallsDisplayProfilePhoneNumbersInner model = new VerifiedCallsDisplayProfilePhoneNumbersInner(); + + /** + * Model tests for VerifiedCallsDisplayProfilePhoneNumbersInner + */ + @Test + public void testVerifiedCallsDisplayProfilePhoneNumbersInner() { + // TODO: test VerifiedCallsDisplayProfilePhoneNumbersInner + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'phoneNumber' + */ + @Test + public void phoneNumberTest() { + // TODO: test phoneNumber + } + + /** + * Test the property 'googleVerificationStatus' + */ + @Test + public void googleVerificationStatusTest() { + // TODO: test googleVerificationStatus + } + + /** + * Test the property 'googleApprovalInfo' + */ + @Test + public void googleApprovalInfoTest() { + // TODO: test googleApprovalInfo + } + + /** + * Test the property 'displayProfileId' + */ + @Test + public void displayProfileIdTest() { + // TODO: test displayProfileId + } + + /** + * Test the property 'delete' + */ + @Test + public void deleteTest() { + // TODO: test delete + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201ResponseTest.java b/src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201ResponseTest.java new file mode 100644 index 00000000..69d33e2e --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverage201ResponseTest.java @@ -0,0 +1,53 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CustomerServiceRequestPhoneNumberCoverage; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VerifyPhoneNumberCoverage201Response + */ +public class VerifyPhoneNumberCoverage201ResponseTest { + private final VerifyPhoneNumberCoverage201Response model = new VerifyPhoneNumberCoverage201Response(); + + /** + * Model tests for VerifyPhoneNumberCoverage201Response + */ + @Test + public void testVerifyPhoneNumberCoverage201Response() { + // TODO: test VerifyPhoneNumberCoverage201Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequestTest.java b/src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequestTest.java new file mode 100644 index 00000000..7ad9f2df --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VerifyPhoneNumberCoverageRequestTest.java @@ -0,0 +1,52 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VerifyPhoneNumberCoverageRequest + */ +public class VerifyPhoneNumberCoverageRequestTest { + private final VerifyPhoneNumberCoverageRequest model = new VerifyPhoneNumberCoverageRequest(); + + /** + * Model tests for VerifyPhoneNumberCoverageRequest + */ + @Test + public void testVerifyPhoneNumberCoverageRequest() { + // TODO: test VerifyPhoneNumberCoverageRequest + } + + /** + * Test the property 'phoneNumbers' + */ + @Test + public void phoneNumbersTest() { + // TODO: test phoneNumbers + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/Video1Test.java b/src/test/java/com/telnyx/sdk/model/Video1Test.java new file mode 100644 index 00000000..a402683c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/Video1Test.java @@ -0,0 +1,67 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Video; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for Video1 + */ +public class Video1Test { + private final Video1 model = new Video1(); + + /** + * Model tests for Video1 + */ + @Test + public void testVideo1() { + // TODO: test Video1 + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'link' + */ + @Test + public void linkTest() { + // TODO: test link + } + + /** + * Test the property 'caption' + */ + @Test + public void captionTest() { + // TODO: test caption + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ViewRoomParticipant200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ViewRoomParticipant200ResponseTest.java new file mode 100644 index 00000000..3bdc3132 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ViewRoomParticipant200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomParticipant; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ViewRoomParticipant200Response + */ +public class ViewRoomParticipant200ResponseTest { + private final ViewRoomParticipant200Response model = new ViewRoomParticipant200Response(); + + /** + * Model tests for ViewRoomParticipant200Response + */ + @Test + public void testViewRoomParticipant200Response() { + // TODO: test ViewRoomParticipant200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ViewRoomRecording200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ViewRoomRecording200ResponseTest.java new file mode 100644 index 00000000..f7bcb231 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ViewRoomRecording200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomRecording; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ViewRoomRecording200Response + */ +public class ViewRoomRecording200ResponseTest { + private final ViewRoomRecording200Response model = new ViewRoomRecording200Response(); + + /** + * Model tests for ViewRoomRecording200Response + */ + @Test + public void testViewRoomRecording200Response() { + // TODO: test ViewRoomRecording200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/ViewRoomSession200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/ViewRoomSession200ResponseTest.java new file mode 100644 index 00000000..d8cdce08 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/ViewRoomSession200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.RoomSession; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for ViewRoomSession200Response + */ +public class ViewRoomSession200ResponseTest { + private final ViewRoomSession200Response model = new ViewRoomSession200Response(); + + /** + * Model tests for ViewRoomSession200Response + */ + @Test + public void testViewRoomSession200Response() { + // TODO: test ViewRoomSession200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectList200ResponseTest.java new file mode 100644 index 00000000..5067d76c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.VirtualCrossConnectCombined; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtaulCrossConnectList200Response + */ +public class VirtaulCrossConnectList200ResponseTest { + private final VirtaulCrossConnectList200Response model = new VirtaulCrossConnectList200Response(); + + /** + * Model tests for VirtaulCrossConnectList200Response + */ + @Test + public void testVirtaulCrossConnectList200Response() { + // TODO: test VirtaulCrossConnectList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200ResponseTest.java new file mode 100644 index 00000000..9afc356d --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtaulCrossConnectRegionList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.VirtualCrossConnectRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtaulCrossConnectRegionList200Response + */ +public class VirtaulCrossConnectRegionList200ResponseTest { + private final VirtaulCrossConnectRegionList200Response model = new VirtaulCrossConnectRegionList200Response(); + + /** + * Model tests for VirtaulCrossConnectRegionList200Response + */ + @Test + public void testVirtaulCrossConnectRegionList200Response() { + // TODO: test VirtaulCrossConnectRegionList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnect1Test.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnect1Test.java new file mode 100644 index 00000000..f89f9fb6 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnect1Test.java @@ -0,0 +1,163 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnect1 + */ +public class VirtualCrossConnect1Test { + private final VirtualCrossConnect1 model = new VirtualCrossConnect1(); + + /** + * Model tests for VirtualCrossConnect1 + */ + @Test + public void testVirtualCrossConnect1() { + // TODO: test VirtualCrossConnect1 + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + + /** + * Test the property 'bgpAsn' + */ + @Test + public void bgpAsnTest() { + // TODO: test bgpAsn + } + + /** + * Test the property 'bandwidthMbps' + */ + @Test + public void bandwidthMbpsTest() { + // TODO: test bandwidthMbps + } + + /** + * Test the property 'primaryEnabled' + */ + @Test + public void primaryEnabledTest() { + // TODO: test primaryEnabled + } + + /** + * Test the property 'primaryCloudAccountId' + */ + @Test + public void primaryCloudAccountIdTest() { + // TODO: test primaryCloudAccountId + } + + /** + * Test the property 'primaryTelnyxIp' + */ + @Test + public void primaryTelnyxIpTest() { + // TODO: test primaryTelnyxIp + } + + /** + * Test the property 'primaryCloudIp' + */ + @Test + public void primaryCloudIpTest() { + // TODO: test primaryCloudIp + } + + /** + * Test the property 'primaryBgpKey' + */ + @Test + public void primaryBgpKeyTest() { + // TODO: test primaryBgpKey + } + + /** + * Test the property 'secondaryEnabled' + */ + @Test + public void secondaryEnabledTest() { + // TODO: test secondaryEnabled + } + + /** + * Test the property 'secondaryCloudAccountId' + */ + @Test + public void secondaryCloudAccountIdTest() { + // TODO: test secondaryCloudAccountId + } + + /** + * Test the property 'secondaryTelnyxIp' + */ + @Test + public void secondaryTelnyxIpTest() { + // TODO: test secondaryTelnyxIp + } + + /** + * Test the property 'secondaryCloudIp' + */ + @Test + public void secondaryCloudIpTest() { + // TODO: test secondaryCloudIp + } + + /** + * Test the property 'secondaryBgpKey' + */ + @Test + public void secondaryBgpKeyTest() { + // TODO: test secondaryBgpKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCombinedTest.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCombinedTest.java new file mode 100644 index 00000000..657de8f4 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCombinedTest.java @@ -0,0 +1,249 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import com.telnyx.sdk.model.VirtualCrossConnectCreate; +import com.telnyx.sdk.model.VirtualCrossConnectPatch; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectCombined + */ +public class VirtualCrossConnectCombinedTest { + private final VirtualCrossConnectCombined model = new VirtualCrossConnectCombined(); + + /** + * Model tests for VirtualCrossConnectCombined + */ + @Test + public void testVirtualCrossConnectCombined() { + // TODO: test VirtualCrossConnectCombined + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + + /** + * Test the property 'bgpAsn' + */ + @Test + public void bgpAsnTest() { + // TODO: test bgpAsn + } + + /** + * Test the property 'bandwidthMbps' + */ + @Test + public void bandwidthMbpsTest() { + // TODO: test bandwidthMbps + } + + /** + * Test the property 'primaryEnabled' + */ + @Test + public void primaryEnabledTest() { + // TODO: test primaryEnabled + } + + /** + * Test the property 'primaryCloudAccountId' + */ + @Test + public void primaryCloudAccountIdTest() { + // TODO: test primaryCloudAccountId + } + + /** + * Test the property 'primaryTelnyxIp' + */ + @Test + public void primaryTelnyxIpTest() { + // TODO: test primaryTelnyxIp + } + + /** + * Test the property 'primaryCloudIp' + */ + @Test + public void primaryCloudIpTest() { + // TODO: test primaryCloudIp + } + + /** + * Test the property 'primaryBgpKey' + */ + @Test + public void primaryBgpKeyTest() { + // TODO: test primaryBgpKey + } + + /** + * Test the property 'secondaryEnabled' + */ + @Test + public void secondaryEnabledTest() { + // TODO: test secondaryEnabled + } + + /** + * Test the property 'secondaryCloudAccountId' + */ + @Test + public void secondaryCloudAccountIdTest() { + // TODO: test secondaryCloudAccountId + } + + /** + * Test the property 'secondaryTelnyxIp' + */ + @Test + public void secondaryTelnyxIpTest() { + // TODO: test secondaryTelnyxIp + } + + /** + * Test the property 'secondaryCloudIp' + */ + @Test + public void secondaryCloudIpTest() { + // TODO: test secondaryCloudIp + } + + /** + * Test the property 'secondaryBgpKey' + */ + @Test + public void secondaryBgpKeyTest() { + // TODO: test secondaryBgpKey + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + + /** + * Test the property 'primaryRoutingAnnouncement' + */ + @Test + public void primaryRoutingAnnouncementTest() { + // TODO: test primaryRoutingAnnouncement + } + + /** + * Test the property 'secondaryRoutingAnnouncement' + */ + @Test + public void secondaryRoutingAnnouncementTest() { + // TODO: test secondaryRoutingAnnouncement + } + + /** + * Test the property 'region' + */ + @Test + public void regionTest() { + // TODO: test region + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200ResponseTest.java new file mode 100644 index 00000000..d7816155 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreate200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.VirtualCrossConnectCombined; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectCreate200Response + */ +public class VirtualCrossConnectCreate200ResponseTest { + private final VirtualCrossConnectCreate200Response model = new VirtualCrossConnectCreate200Response(); + + /** + * Model tests for VirtualCrossConnectCreate200Response + */ + @Test + public void testVirtualCrossConnectCreate200Response() { + // TODO: test VirtualCrossConnectCreate200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreateTest.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreateTest.java new file mode 100644 index 00000000..b480f412 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectCreateTest.java @@ -0,0 +1,223 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionIn; +import com.telnyx.sdk.model.VirtualCrossConnect; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectCreate + */ +public class VirtualCrossConnectCreateTest { + private final VirtualCrossConnectCreate model = new VirtualCrossConnectCreate(); + + /** + * Model tests for VirtualCrossConnectCreate + */ + @Test + public void testVirtualCrossConnectCreate() { + // TODO: test VirtualCrossConnectCreate + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + + /** + * Test the property 'bgpAsn' + */ + @Test + public void bgpAsnTest() { + // TODO: test bgpAsn + } + + /** + * Test the property 'bandwidthMbps' + */ + @Test + public void bandwidthMbpsTest() { + // TODO: test bandwidthMbps + } + + /** + * Test the property 'primaryEnabled' + */ + @Test + public void primaryEnabledTest() { + // TODO: test primaryEnabled + } + + /** + * Test the property 'primaryCloudAccountId' + */ + @Test + public void primaryCloudAccountIdTest() { + // TODO: test primaryCloudAccountId + } + + /** + * Test the property 'primaryTelnyxIp' + */ + @Test + public void primaryTelnyxIpTest() { + // TODO: test primaryTelnyxIp + } + + /** + * Test the property 'primaryCloudIp' + */ + @Test + public void primaryCloudIpTest() { + // TODO: test primaryCloudIp + } + + /** + * Test the property 'primaryBgpKey' + */ + @Test + public void primaryBgpKeyTest() { + // TODO: test primaryBgpKey + } + + /** + * Test the property 'secondaryEnabled' + */ + @Test + public void secondaryEnabledTest() { + // TODO: test secondaryEnabled + } + + /** + * Test the property 'secondaryCloudAccountId' + */ + @Test + public void secondaryCloudAccountIdTest() { + // TODO: test secondaryCloudAccountId + } + + /** + * Test the property 'secondaryTelnyxIp' + */ + @Test + public void secondaryTelnyxIpTest() { + // TODO: test secondaryTelnyxIp + } + + /** + * Test the property 'secondaryCloudIp' + */ + @Test + public void secondaryCloudIpTest() { + // TODO: test secondaryCloudIp + } + + /** + * Test the property 'secondaryBgpKey' + */ + @Test + public void secondaryBgpKeyTest() { + // TODO: test secondaryBgpKey + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1Test.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1Test.java new file mode 100644 index 00000000..6156887f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatch1Test.java @@ -0,0 +1,90 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectPatch1 + */ +public class VirtualCrossConnectPatch1Test { + private final VirtualCrossConnectPatch1 model = new VirtualCrossConnectPatch1(); + + /** + * Model tests for VirtualCrossConnectPatch1 + */ + @Test + public void testVirtualCrossConnectPatch1() { + // TODO: test VirtualCrossConnectPatch1 + } + + /** + * Test the property 'primaryEnabled' + */ + @Test + public void primaryEnabledTest() { + // TODO: test primaryEnabled + } + + /** + * Test the property 'primaryRoutingAnnouncement' + */ + @Test + public void primaryRoutingAnnouncementTest() { + // TODO: test primaryRoutingAnnouncement + } + + /** + * Test the property 'primaryCloudIp' + */ + @Test + public void primaryCloudIpTest() { + // TODO: test primaryCloudIp + } + + /** + * Test the property 'secondaryEnabled' + */ + @Test + public void secondaryEnabledTest() { + // TODO: test secondaryEnabled + } + + /** + * Test the property 'secondaryRoutingAnnouncement' + */ + @Test + public void secondaryRoutingAnnouncementTest() { + // TODO: test secondaryRoutingAnnouncement + } + + /** + * Test the property 'secondaryCloudIp' + */ + @Test + public void secondaryCloudIpTest() { + // TODO: test secondaryCloudIp + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatchTest.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatchTest.java new file mode 100644 index 00000000..e30c1b59 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectPatchTest.java @@ -0,0 +1,91 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.VirtualCrossConnectPatch1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectPatch + */ +public class VirtualCrossConnectPatchTest { + private final VirtualCrossConnectPatch model = new VirtualCrossConnectPatch(); + + /** + * Model tests for VirtualCrossConnectPatch + */ + @Test + public void testVirtualCrossConnectPatch() { + // TODO: test VirtualCrossConnectPatch + } + + /** + * Test the property 'primaryEnabled' + */ + @Test + public void primaryEnabledTest() { + // TODO: test primaryEnabled + } + + /** + * Test the property 'primaryRoutingAnnouncement' + */ + @Test + public void primaryRoutingAnnouncementTest() { + // TODO: test primaryRoutingAnnouncement + } + + /** + * Test the property 'primaryCloudIp' + */ + @Test + public void primaryCloudIpTest() { + // TODO: test primaryCloudIp + } + + /** + * Test the property 'secondaryEnabled' + */ + @Test + public void secondaryEnabledTest() { + // TODO: test secondaryEnabled + } + + /** + * Test the property 'secondaryRoutingAnnouncement' + */ + @Test + public void secondaryRoutingAnnouncementTest() { + // TODO: test secondaryRoutingAnnouncement + } + + /** + * Test the property 'secondaryCloudIp' + */ + @Test + public void secondaryCloudIpTest() { + // TODO: test secondaryCloudIp + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1Test.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1Test.java new file mode 100644 index 00000000..c1c0f0fa --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegion1Test.java @@ -0,0 +1,85 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectRegion1 + */ +public class VirtualCrossConnectRegion1Test { + private final VirtualCrossConnectRegion1 model = new VirtualCrossConnectRegion1(); + + /** + * Model tests for VirtualCrossConnectRegion1 + */ + @Test + public void testVirtualCrossConnectRegion1() { + // TODO: test VirtualCrossConnectRegion1 + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + + /** + * Test the property 'bandwidthMbps' + */ + @Test + public void bandwidthMbpsTest() { + // TODO: test bandwidthMbps + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200ResponseTest.java new file mode 100644 index 00000000..c72f6163 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.VirtualCrossConnectRegion; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectRegionGet200Response + */ +public class VirtualCrossConnectRegionGet200ResponseTest { + private final VirtualCrossConnectRegionGet200Response model = new VirtualCrossConnectRegionGet200Response(); + + /** + * Model tests for VirtualCrossConnectRegionGet200Response + */ + @Test + public void testVirtualCrossConnectRegionGet200Response() { + // TODO: test VirtualCrossConnectRegionGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionTest.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionTest.java new file mode 100644 index 00000000..37c89550 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectRegionTest.java @@ -0,0 +1,112 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.VirtualCrossConnectRegion1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnectRegion + */ +public class VirtualCrossConnectRegionTest { + private final VirtualCrossConnectRegion model = new VirtualCrossConnectRegion(); + + /** + * Model tests for VirtualCrossConnectRegion + */ + @Test + public void testVirtualCrossConnectRegion() { + // TODO: test VirtualCrossConnectRegion + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + + /** + * Test the property 'bandwidthMbps' + */ + @Test + public void bandwidthMbpsTest() { + // TODO: test bandwidthMbps + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectTest.java b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectTest.java new file mode 100644 index 00000000..94877517 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/VirtualCrossConnectTest.java @@ -0,0 +1,216 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.VirtualCrossConnect1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.math.BigDecimal; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for VirtualCrossConnect + */ +public class VirtualCrossConnectTest { + private final VirtualCrossConnect model = new VirtualCrossConnect(); + + /** + * Model tests for VirtualCrossConnect + */ + @Test + public void testVirtualCrossConnect() { + // TODO: test VirtualCrossConnect + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'cloudProvider' + */ + @Test + public void cloudProviderTest() { + // TODO: test cloudProvider + } + + /** + * Test the property 'cloudRegion' + */ + @Test + public void cloudRegionTest() { + // TODO: test cloudRegion + } + + /** + * Test the property 'bgpAsn' + */ + @Test + public void bgpAsnTest() { + // TODO: test bgpAsn + } + + /** + * Test the property 'bandwidthMbps' + */ + @Test + public void bandwidthMbpsTest() { + // TODO: test bandwidthMbps + } + + /** + * Test the property 'primaryEnabled' + */ + @Test + public void primaryEnabledTest() { + // TODO: test primaryEnabled + } + + /** + * Test the property 'primaryCloudAccountId' + */ + @Test + public void primaryCloudAccountIdTest() { + // TODO: test primaryCloudAccountId + } + + /** + * Test the property 'primaryTelnyxIp' + */ + @Test + public void primaryTelnyxIpTest() { + // TODO: test primaryTelnyxIp + } + + /** + * Test the property 'primaryCloudIp' + */ + @Test + public void primaryCloudIpTest() { + // TODO: test primaryCloudIp + } + + /** + * Test the property 'primaryBgpKey' + */ + @Test + public void primaryBgpKeyTest() { + // TODO: test primaryBgpKey + } + + /** + * Test the property 'secondaryEnabled' + */ + @Test + public void secondaryEnabledTest() { + // TODO: test secondaryEnabled + } + + /** + * Test the property 'secondaryCloudAccountId' + */ + @Test + public void secondaryCloudAccountIdTest() { + // TODO: test secondaryCloudAccountId + } + + /** + * Test the property 'secondaryTelnyxIp' + */ + @Test + public void secondaryTelnyxIpTest() { + // TODO: test secondaryTelnyxIp + } + + /** + * Test the property 'secondaryCloudIp' + */ + @Test + public void secondaryCloudIpTest() { + // TODO: test secondaryCloudIp + } + + /** + * Test the property 'secondaryBgpKey' + */ + @Test + public void secondaryBgpKeyTest() { + // TODO: test secondaryBgpKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecordTest.java b/src/test/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecordTest.java new file mode 100644 index 00000000..ad6a5df9 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WhatsAppConversationDetailRecordTest.java @@ -0,0 +1,107 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.time.OffsetDateTime; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WhatsAppConversationDetailRecord + */ +public class WhatsAppConversationDetailRecordTest { + private final WhatsAppConversationDetailRecord model = new WhatsAppConversationDetailRecord(); + + /** + * Model tests for WhatsAppConversationDetailRecord + */ + @Test + public void testWhatsAppConversationDetailRecord() { + // TODO: test WhatsAppConversationDetailRecord + } + + /** + * Test the property 'recipientRegionCode' + */ + @Test + public void recipientRegionCodeTest() { + // TODO: test recipientRegionCode + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'whatsappFee' + */ + @Test + public void whatsappFeeTest() { + // TODO: test whatsappFee + } + + /** + * Test the property 'conversationId' + */ + @Test + public void conversationIdTest() { + // TODO: test conversationId + } + + /** + * Test the property 'conversationOrigin' + */ + @Test + public void conversationOriginTest() { + // TODO: test conversationOrigin + } + + /** + * Test the property 'whatsappBusinessAccountId' + */ + @Test + public void whatsappBusinessAccountIdTest() { + // TODO: test whatsappBusinessAccountId + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1Test.java b/src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1Test.java new file mode 100644 index 00000000..035fc2af --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplate1Test.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WhatsAppMessageTemplate1 + */ +public class WhatsAppMessageTemplate1Test { + private final WhatsAppMessageTemplate1 model = new WhatsAppMessageTemplate1(); + + /** + * Model tests for WhatsAppMessageTemplate1 + */ + @Test + public void testWhatsAppMessageTemplate1() { + // TODO: test WhatsAppMessageTemplate1 + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplateTest.java b/src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplateTest.java new file mode 100644 index 00000000..84956b3a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WhatsAppMessageTemplateTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.CursorPagination; +import com.telnyx.sdk.model.WhatsappMessageTemplate; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WhatsAppMessageTemplate + */ +public class WhatsAppMessageTemplateTest { + private final WhatsappMessageTemplate model = new WhatsappMessageTemplate(); + + /** + * Model tests for WhatsAppMessageTemplate + */ + @Test + public void testWhatsAppMessageTemplate() { + // TODO: test WhatsAppMessageTemplate + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInnerTest.java b/src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInnerTest.java new file mode 100644 index 00000000..a2dd6e58 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateComponentsInnerTest.java @@ -0,0 +1,66 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WhatsappMessageTemplateComponentsInner + */ +public class WhatsappMessageTemplateComponentsInnerTest { + private final WhatsappMessageTemplateComponentsInner model = new WhatsappMessageTemplateComponentsInner(); + + /** + * Model tests for WhatsappMessageTemplateComponentsInner + */ + @Test + public void testWhatsappMessageTemplateComponentsInner() { + // TODO: test WhatsappMessageTemplateComponentsInner + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'format' + */ + @Test + public void formatTest() { + // TODO: test format + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScoreTest.java b/src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScoreTest.java new file mode 100644 index 00000000..e55b008d --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WhatsappMessageTemplateQualityScoreTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WhatsappMessageTemplateQualityScore + */ +public class WhatsappMessageTemplateQualityScoreTest { + private final WhatsappMessageTemplateQualityScore model = new WhatsappMessageTemplateQualityScore(); + + /** + * Model tests for WhatsappMessageTemplateQualityScore + */ + @Test + public void testWhatsappMessageTemplateQualityScore() { + // TODO: test WhatsappMessageTemplateQualityScore + } + + /** + * Test the property 'score' + */ + @Test + public void scoreTest() { + // TODO: test score + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettingsTest.java b/src/test/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettingsTest.java new file mode 100644 index 00000000..1898700d --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WhatsappPhoneNumberWhatsappSettingsTest.java @@ -0,0 +1,74 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WhatsappPhoneNumberWhatsappSettings + */ +public class WhatsappPhoneNumberWhatsappSettingsTest { + private final WhatsappPhoneNumberWhatsappSettings model = new WhatsappPhoneNumberWhatsappSettings(); + + /** + * Model tests for WhatsappPhoneNumberWhatsappSettings + */ + @Test + public void testWhatsappPhoneNumberWhatsappSettings() { + // TODO: test WhatsappPhoneNumberWhatsappSettings + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'displayName' + */ + @Test + public void displayNameTest() { + // TODO: test displayName + } + + /** + * Test the property 'displayNameStatus' + */ + @Test + public void displayNameStatusTest() { + // TODO: test displayNameStatus + } + + /** + * Test the property 'qualityRating' + */ + @Test + public void qualityRatingTest() { + // TODO: test qualityRating + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardAllowedIPTest.java b/src/test/java/com/telnyx/sdk/model/WireguardAllowedIPTest.java new file mode 100644 index 00000000..17301ccc --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardAllowedIPTest.java @@ -0,0 +1,58 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardAllowedIP + */ +public class WireguardAllowedIPTest { + private final WireguardAllowedIP model = new WireguardAllowedIP(); + + /** + * Model tests for WireguardAllowedIP + */ + @Test + public void testWireguardAllowedIP() { + // TODO: test WireguardAllowedIP + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'ipAddress' + */ + @Test + public void ipAddressTest() { + // TODO: test ipAddress + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardInterface1Test.java b/src/test/java/com/telnyx/sdk/model/WireguardInterface1Test.java new file mode 100644 index 00000000..410e1b75 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardInterface1Test.java @@ -0,0 +1,66 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardInterface1 + */ +public class WireguardInterface1Test { + private final WireguardInterface1 model = new WireguardInterface1(); + + /** + * Model tests for WireguardInterface1 + */ + @Test + public void testWireguardInterface1() { + // TODO: test WireguardInterface1 + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'endpoint' + */ + @Test + public void endpointTest() { + // TODO: test endpoint + } + + /** + * Test the property 'publicKey' + */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreate202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreate202ResponseTest.java new file mode 100644 index 00000000..bfda9246 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreate202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardInterfaceRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardInterfaceCreate202Response + */ +public class WireguardInterfaceCreate202ResponseTest { + private final WireguardInterfaceCreate202Response model = new WireguardInterfaceCreate202Response(); + + /** + * Model tests for WireguardInterfaceCreate202Response + */ + @Test + public void testWireguardInterfaceCreate202Response() { + // TODO: test WireguardInterfaceCreate202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreateTest.java b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreateTest.java new file mode 100644 index 00000000..247e41af --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceCreateTest.java @@ -0,0 +1,126 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionIn; +import com.telnyx.sdk.model.WireguardInterface; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardInterfaceCreate + */ +public class WireguardInterfaceCreateTest { + private final WireguardInterfaceCreate model = new WireguardInterfaceCreate(); + + /** + * Model tests for WireguardInterfaceCreate + */ + @Test + public void testWireguardInterfaceCreate() { + // TODO: test WireguardInterfaceCreate + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'endpoint' + */ + @Test + public void endpointTest() { + // TODO: test endpoint + } + + /** + * Test the property 'publicKey' + */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardInterfaceList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceList200ResponseTest.java new file mode 100644 index 00000000..bcb17212 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WireguardInterfaceRead; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardInterfaceList200Response + */ +public class WireguardInterfaceList200ResponseTest { + private final WireguardInterfaceList200Response model = new WireguardInterfaceList200Response(); + + /** + * Model tests for WireguardInterfaceList200Response + */ + @Test + public void testWireguardInterfaceList200Response() { + // TODO: test WireguardInterfaceList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardInterfaceReadTest.java b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceReadTest.java new file mode 100644 index 00000000..8c45654f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceReadTest.java @@ -0,0 +1,135 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.RegionOut; +import com.telnyx.sdk.model.RegionOutRegion; +import com.telnyx.sdk.model.WireguardInterface; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardInterfaceRead + */ +public class WireguardInterfaceReadTest { + private final WireguardInterfaceRead model = new WireguardInterfaceRead(); + + /** + * Model tests for WireguardInterfaceRead + */ + @Test + public void testWireguardInterfaceRead() { + // TODO: test WireguardInterfaceRead + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'endpoint' + */ + @Test + public void endpointTest() { + // TODO: test endpoint + } + + /** + * Test the property 'publicKey' + */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + + /** + * Test the property 'regionCode' + */ + @Test + public void regionCodeTest() { + // TODO: test regionCode + } + + /** + * Test the property 'region' + */ + @Test + public void regionTest() { + // TODO: test region + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardInterfaceTest.java b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceTest.java new file mode 100644 index 00000000..79845845 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardInterfaceTest.java @@ -0,0 +1,119 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.InterfaceStatus; +import com.telnyx.sdk.model.ModelInterface; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.WireguardInterface1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardInterface + */ +public class WireguardInterfaceTest { + private final WireguardInterface model = new WireguardInterface(); + + /** + * Model tests for WireguardInterface + */ + @Test + public void testWireguardInterface() { + // TODO: test WireguardInterface + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'networkId' + */ + @Test + public void networkIdTest() { + // TODO: test networkId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'status' + */ + @Test + public void statusTest() { + // TODO: test status + } + + /** + * Test the property 'endpoint' + */ + @Test + public void endpointTest() { + // TODO: test endpoint + } + + /** + * Test the property 'publicKey' + */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeer1Test.java b/src/test/java/com/telnyx/sdk/model/WireguardPeer1Test.java new file mode 100644 index 00000000..0c4f4349 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeer1Test.java @@ -0,0 +1,75 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeer1 + */ +public class WireguardPeer1Test { + private final WireguardPeer1 model = new WireguardPeer1(); + + /** + * Model tests for WireguardPeer1 + */ + @Test + public void testWireguardPeer1() { + // TODO: test WireguardPeer1 + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'lastSeen' + */ + @Test + public void lastSeenTest() { + // TODO: test lastSeen + } + + /** + * Test the property 'wireguardInterfaceId' + */ + @Test + public void wireguardInterfaceIdTest() { + // TODO: test wireguardInterfaceId + } + + /** + * Test the property 'privateKey' + */ + @Test + public void privateKeyTest() { + // TODO: test privateKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreateTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreateTest.java new file mode 100644 index 00000000..d6504d15 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPCreateTest.java @@ -0,0 +1,84 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeerAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerAllowedIPCreate + */ +public class WireguardPeerAllowedIPCreateTest { + private final WireguardPeerAllowedIPCreate model = new WireguardPeerAllowedIPCreate(); + + /** + * Model tests for WireguardPeerAllowedIPCreate + */ + @Test + public void testWireguardPeerAllowedIPCreate() { + // TODO: test WireguardPeerAllowedIPCreate + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'ipAddress' + */ + @Test + public void ipAddressTest() { + // TODO: test ipAddress + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200ResponseTest.java new file mode 100644 index 00000000..6de0581f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPGet200ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeerAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerAllowedIPGet200Response + */ +public class WireguardPeerAllowedIPGet200ResponseTest { + private final WireguardPeerAllowedIPGet200Response model = new WireguardPeerAllowedIPGet200Response(); + + /** + * Model tests for WireguardPeerAllowedIPGet200Response + */ + @Test + public void testWireguardPeerAllowedIPGet200Response() { + // TODO: test WireguardPeerAllowedIPGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200ResponseTest.java new file mode 100644 index 00000000..43c107e0 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WireguardPeerAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerAllowedIPList200Response + */ +public class WireguardPeerAllowedIPList200ResponseTest { + private final WireguardPeerAllowedIPList200Response model = new WireguardPeerAllowedIPList200Response(); + + /** + * Model tests for WireguardPeerAllowedIPList200Response + */ + @Test + public void testWireguardPeerAllowedIPList200Response() { + // TODO: test WireguardPeerAllowedIPList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPTest.java new file mode 100644 index 00000000..4fbb78bd --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerAllowedIPTest.java @@ -0,0 +1,85 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.WireguardAllowedIP; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerAllowedIP + */ +public class WireguardPeerAllowedIPTest { + private final WireguardPeerAllowedIP model = new WireguardPeerAllowedIP(); + + /** + * Model tests for WireguardPeerAllowedIP + */ + @Test + public void testWireguardPeerAllowedIP() { + // TODO: test WireguardPeerAllowedIP + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'ipAddress' + */ + @Test + public void ipAddressTest() { + // TODO: test ipAddress + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerCreate202ResponseTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerCreate202ResponseTest.java new file mode 100644 index 00000000..1f1cc587 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerCreate202ResponseTest.java @@ -0,0 +1,51 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerCreate202Response + */ +public class WireguardPeerCreate202ResponseTest { + private final WireguardPeerCreate202Response model = new WireguardPeerCreate202Response(); + + /** + * Model tests for WireguardPeerCreate202Response + */ + @Test + public void testWireguardPeerCreate202Response() { + // TODO: test WireguardPeerCreate202Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerCreateTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerCreateTest.java new file mode 100644 index 00000000..4d402c55 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerCreateTest.java @@ -0,0 +1,108 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.WireguardPeer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerCreate + */ +public class WireguardPeerCreateTest { + private final WireguardPeerCreate model = new WireguardPeerCreate(); + + /** + * Model tests for WireguardPeerCreate + */ + @Test + public void testWireguardPeerCreate() { + // TODO: test WireguardPeerCreate + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'publicKey' + */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + + /** + * Test the property 'lastSeen' + */ + @Test + public void lastSeenTest() { + // TODO: test lastSeen + } + + /** + * Test the property 'wireguardInterfaceId' + */ + @Test + public void wireguardInterfaceIdTest() { + // TODO: test wireguardInterfaceId + } + + /** + * Test the property 'privateKey' + */ + @Test + public void privateKeyTest() { + // TODO: test privateKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerList200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerList200ResponseTest.java new file mode 100644 index 00000000..c24f6723 --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerList200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WireguardPeer; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerList200Response + */ +public class WireguardPeerList200ResponseTest { + private final WireguardPeerList200Response model = new WireguardPeerList200Response(); + + /** + * Model tests for WireguardPeerList200Response + */ + @Test + public void testWireguardPeerList200Response() { + // TODO: test WireguardPeerList200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerPatchTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerPatchTest.java new file mode 100644 index 00000000..1db4f85f --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerPatchTest.java @@ -0,0 +1,50 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeerPatch + */ +public class WireguardPeerPatchTest { + private final WireguardPeerPatch model = new WireguardPeerPatch(); + + /** + * Model tests for WireguardPeerPatch + */ + @Test + public void testWireguardPeerPatch() { + // TODO: test WireguardPeerPatch + } + + /** + * Test the property 'publicKey' + */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WireguardPeerTest.java b/src/test/java/com/telnyx/sdk/model/WireguardPeerTest.java new file mode 100644 index 00000000..3165eb7c --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WireguardPeerTest.java @@ -0,0 +1,110 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.Record; +import com.telnyx.sdk.model.WireguardPeer1; +import com.telnyx.sdk.model.WireguardPeerPatch; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.UUID; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WireguardPeer + */ +public class WireguardPeerTest { + private final WireguardPeer model = new WireguardPeer(); + + /** + * Model tests for WireguardPeer + */ + @Test + public void testWireguardPeer() { + // TODO: test WireguardPeer + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'recordType' + */ + @Test + public void recordTypeTest() { + // TODO: test recordType + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + + /** + * Test the property 'publicKey' + */ + @Test + public void publicKeyTest() { + // TODO: test publicKey + } + + /** + * Test the property 'lastSeen' + */ + @Test + public void lastSeenTest() { + // TODO: test lastSeen + } + + /** + * Test the property 'wireguardInterfaceId' + */ + @Test + public void wireguardInterfaceIdTest() { + // TODO: test wireguardInterfaceId + } + + /** + * Test the property 'privateKey' + */ + @Test + public void privateKeyTest() { + // TODO: test privateKey + } + +} diff --git a/src/test/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200ResponseTest.java b/src/test/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200ResponseTest.java new file mode 100644 index 00000000..0691564a --- /dev/null +++ b/src/test/java/com/telnyx/sdk/model/WirelessConnectivityLogsGet200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * Telnyx API + * SIP trunking, SMS, MMS, Call Control and Telephony Data Services. + * + * The version of the OpenAPI document: 2.0.0 + * Contact: support@telnyx.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.telnyx.sdk.model; + +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import com.telnyx.sdk.model.PaginationMeta; +import com.telnyx.sdk.model.WirelessConnectivityLog; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.util.ArrayList; +import java.util.List; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +/** + * Model tests for WirelessConnectivityLogsGet200Response + */ +public class WirelessConnectivityLogsGet200ResponseTest { + private final WirelessConnectivityLogsGet200Response model = new WirelessConnectivityLogsGet200Response(); + + /** + * Model tests for WirelessConnectivityLogsGet200Response + */ + @Test + public void testWirelessConnectivityLogsGet200Response() { + // TODO: test WirelessConnectivityLogsGet200Response + } + + /** + * Test the property 'data' + */ + @Test + public void dataTest() { + // TODO: test data + } + + /** + * Test the property 'meta' + */ + @Test + public void metaTest() { + // TODO: test meta + } + +}