From 898098c7ded862968cde65da3fbf9f0defaa2c80 Mon Sep 17 00:00:00 2001 From: Mikhail Nosov Date: Thu, 9 Feb 2023 14:19:27 +0000 Subject: [PATCH] Version 1.0.2 released --- README.md | 4 +- pom.xml | 2 +- .../apiclient/VoximplantAPIClient.java | 263 +++++++- .../apiclient/VoximplantAPIClientImpl.java | 1 - .../request/A2PGetSmsHistoryRequest.java | 37 +- .../apiclient/request/A2PSendSmsRequest.java | 49 +- .../request/ActivateCallerIDRequest.java | 13 +- ...ctivateOutboundTestPhoneNumberRequest.java | 65 ++ .../request/AddAdminRoleRequest.java | 45 +- .../request/AddAdminUserRequest.java | 41 +- .../request/AddApplicationRequest.java | 1 + .../AddAuthorizedAccountIPRequest.java | 39 +- .../apiclient/request/AddCallerIDRequest.java | 5 +- .../request/AddDialogflowKeyRequest.java | 17 +- .../AddOutboundTestPhoneNumberRequest.java | 63 ++ .../request/AddPstnBlackListItemRequest.java | 1 + .../request/AddPushCredentialRequest.java | 147 ++++- .../apiclient/request/AddQueueRequest.java | 39 +- .../apiclient/request/AddRuleRequest.java | 33 +- .../apiclient/request/AddScenarioRequest.java | 23 +- .../request/AddSipWhiteListItemRequest.java | 35 +- .../apiclient/request/AddSkillRequest.java | 5 +- .../apiclient/request/AddSubUserRequest.java | 35 +- .../apiclient/request/AddUserRequest.java | 29 +- .../request/AttachAdminRoleRequest.java | 39 +- .../request/AttachPhoneNumberRequest.java | 33 +- .../request/BindDialogflowKeysRequest.java | 13 +- .../BindPhoneNumberToApplicationRequest.java | 37 +- .../request/BindPushCredentialRequest.java | 17 +- .../request/BindScenarioRequest.java | 37 +- .../request/BindSipRegistrationRequest.java | 29 +- .../apiclient/request/BindSkillRequest.java | 53 +- .../request/BindUserToQueueRequest.java | 43 +- .../request/ChangeAccountPlanRequest.java | 95 +++ .../request/ChargeAccountRequest.java | 23 +- .../CheckAuthorizedAccountIPRequest.java | 5 +- .../apiclient/request/ControlSmsRequest.java | 9 +- .../apiclient/request/CreateKeyRequest.java | 21 +- .../request/CreateManualCallListRequest.java | 37 +- .../request/CreateSipRegistrationRequest.java | 59 +- .../request/DeactivatePhoneNumberRequest.java | 15 +- .../request/DelAdminRoleRequest.java | 11 +- .../request/DelAdminUserRequest.java | 11 +- .../request/DelApplicationRequest.java | 17 +- .../DelAuthorizedAccountIPRequest.java | 13 +- .../apiclient/request/DelCallerIDRequest.java | 9 +- .../request/DelDialogflowKeyRequest.java | 5 +- .../request/DelKeyValueItemRequest.java | 123 ++++ .../DelOutboundTestPhoneNumberRequest.java | 33 + .../request/DelPstnBlackListItemRequest.java | 5 +- .../request/DelPushCredentialRequest.java | 5 +- .../apiclient/request/DelQueueRequest.java | 9 +- .../apiclient/request/DelRuleRequest.java | 31 +- .../apiclient/request/DelScenarioRequest.java | 15 +- .../request/DelSipWhiteListItemRequest.java | 5 +- .../apiclient/request/DelSkillRequest.java | 9 +- .../apiclient/request/DelSubUserRequest.java | 5 +- .../apiclient/request/DelUserRequest.java | 23 +- .../apiclient/request/DeleteKeyRequest.java | 5 +- .../request/DeleteRecordRequest.java | 17 +- .../request/DeleteSipRegistrationRequest.java | 1 + .../request/GetACDHistoryRequest.java | 49 +- .../GetACDOperatorStatisticsRequest.java | 49 +- ...GetACDOperatorStatusStatisticsRequest.java | 27 +- .../request/GetACDQueueStatisticsRequest.java | 39 +- .../apiclient/request/GetACDStateRequest.java | 7 +- .../request/GetAccountDocumentsRequest.java | 21 +- .../request/GetAccountInfoRequest.java | 5 +- .../request/GetAccountInvoicesRequest.java | 129 ++++ ...GetAccountPhoneNumberCountriesRequest.java | 63 ++ .../request/GetAccountPlansRequest.java | 95 +++ .../GetActualPhoneNumberRegionRequest.java | 47 +- .../request/GetAdminRolesRequest.java | 61 +- .../request/GetAdminUsersRequest.java | 33 +- .../request/GetApplicationsRequest.java | 115 +--- .../apiclient/request/GetAuditLogRequest.java | 49 +- .../GetAuthorizedAccountIPsRequest.java | 51 +- .../GetAvailableAdminRoleEntriesRequest.java | 1 + .../request/GetAvailablePlansRequest.java | 95 +++ .../GetAvailableRegulationsRequest.java | 13 +- .../request/GetCallHistoryRequest.java | 147 +++-- .../request/GetCallListDetailsRequest.java | 9 +- .../request/GetCallListsRequest.java | 29 +- .../request/GetCallerIDsRequest.java | 25 +- .../request/GetChildrenAccountsRequest.java | 51 +- .../request/GetCountriesRequest.java | 5 +- .../request/GetCurrencyRateRequest.java | 5 +- .../request/GetDialogflowKeysRequest.java | 17 +- .../request/GetHistoryReportsRequest.java | 37 +- .../apiclient/request/GetKeyRolesRequest.java | 9 +- .../request/GetKeyValueItemRequest.java | 123 ++++ .../request/GetKeyValueItemsRequest.java | 189 ++++++ .../request/GetKeyValueKeysRequest.java | 189 ++++++ .../apiclient/request/GetKeysRequest.java | 17 +- .../GetMoneyAmountToChargeRequest.java | 5 +- .../request/GetNewPhoneNumbersRequest.java | 25 +- .../GetOutboundTestPhoneNumbersRequest.java | 33 + .../GetPhoneNumberCategoriesRequest.java | 19 +- .../GetPhoneNumberCountryStatesRequest.java | 13 +- .../request/GetPhoneNumberRegionsRequest.java | 33 +- .../request/GetPhoneNumbersRequest.java | 139 +++-- .../request/GetPstnBlackListRequest.java | 17 +- .../request/GetPushCredentialRequest.java | 33 +- .../apiclient/request/GetQueuesRequest.java | 67 +- .../request/GetRecordStoragesRequest.java | 13 +- .../apiclient/request/GetRegionsRequest.java | 17 +- .../request/GetRegulationsAddressRequest.java | 29 +- .../request/GetResourcePriceRequest.java | 25 +- .../request/GetRoleGroupsRequest.java | 1 + .../apiclient/request/GetRolesRequest.java | 5 +- .../apiclient/request/GetRulesRequest.java | 31 +- .../apiclient/request/GetSQStateRequest.java | 189 ++++++ .../request/GetScenariosRequest.java | 13 +- .../request/GetSipRegistrationsRequest.java | 93 +-- .../request/GetSipWhiteListRequest.java | 9 +- .../apiclient/request/GetSkillsRequest.java | 17 +- .../GetSmartQueueDayHistoryRequest.java | 577 ++++++++++++++++++ .../GetSmartQueueRealtimeMetricsRequest.java | 577 ++++++++++++++++++ .../request/GetSmsHistoryRequest.java | 37 +- .../request/GetSubUserRolesRequest.java | 9 +- .../apiclient/request/GetSubUsersRequest.java | 13 +- .../request/GetSubscriptionPriceRequest.java | 21 +- .../request/GetTransactionHistoryRequest.java | 137 +++-- .../apiclient/request/GetUsersRequest.java | 77 +-- .../apiclient/request/GetZIPCodesRequest.java | 13 +- ...java => LinkRegulationAddressRequest.java} | 9 +- .../request/RecoverCallListRequest.java | 5 +- .../request/RemoveKeyRolesRequest.java | 13 +- .../request/RemoveSubUserRolesRequest.java | 17 +- .../request/ReorderRulesRequest.java | 5 +- .../request/ReorderScenariosRequest.java | 13 +- .../RequestSmartQueueHistoryRequest.java | 577 ++++++++++++++++++ .../apiclient/request/SQ_AddQueueRequest.java | 473 ++++++++++++++ .../apiclient/request/SQ_AddSkillRequest.java | 155 +++++ .../request/SQ_BindAgentRequest.java | 251 ++++++++ .../request/SQ_BindSkillRequest.java | 223 +++++++ .../apiclient/request/SQ_DelQueueRequest.java | 159 +++++ .../apiclient/request/SQ_DelSkillRequest.java | 159 +++++ ...DeleteAgentCustomStatusMappingRequest.java | 93 +++ ...SQ_GetAgentCustomStatusMappingRequest.java | 63 ++ .../request/SQ_GetAgentsRequest.java | 569 +++++++++++++++++ .../request/SQ_GetQueuesRequest.java | 401 ++++++++++++ .../request/SQ_GetSkillsRequest.java | 371 +++++++++++ ...SQ_SetAgentCustomStatusMappingRequest.java | 123 ++++ .../request/SQ_SetAgentInfoRequest.java | 221 +++++++ .../request/SQ_SetQueueInfoRequest.java | 535 ++++++++++++++++ .../request/SQ_SetSkillInfoRequest.java | 215 +++++++ .../request/SQ_UnbindAgentRequest.java | 223 +++++++ .../request/SQ_UnbindSkillRequest.java | 223 +++++++ .../request/SendSmsMessageRequest.java | 51 +- .../request/SetAccountInfoRequest.java | 131 +++- .../request/SetAdminRoleInfoRequest.java | 53 +- .../request/SetAdminUserInfoRequest.java | 25 +- .../request/SetApplicationInfoRequest.java | 11 +- .../request/SetChildAccountInfoRequest.java | 77 +-- .../request/SetDialogflowKeyRequest.java | 9 +- .../apiclient/request/SetKeyRolesRequest.java | 13 +- .../request/SetKeyValueItemRequest.java | 235 +++++++ .../request/SetPhoneNumberInfoRequest.java | 159 +++++ .../request/SetPstnBlackListItemRequest.java | 9 +- .../request/SetPushCredentialRequest.java | 149 ++++- .../request/SetQueueInfoRequest.java | 41 +- .../apiclient/request/SetRuleInfoRequest.java | 17 +- .../request/SetScenarioInfoRequest.java | 15 +- .../request/SetSipWhiteListItemRequest.java | 31 + .../request/SetSkillInfoRequest.java | 13 +- .../request/SetSubUserInfoRequest.java | 21 +- .../request/SetSubUserRolesRequest.java | 13 +- .../apiclient/request/SetUserInfoRequest.java | 39 +- .../request/StartConferenceRequest.java | 51 +- .../request/StartNextCallTaskRequest.java | 11 +- .../request/StartScenariosRequest.java | 51 +- .../StopCallListProcessingRequest.java | 5 +- .../request/TransferMoneyToUserRequest.java | 37 +- .../apiclient/request/UpdateKeyRequest.java | 5 +- .../request/UpdateSipRegistrationRequest.java | 29 +- .../request/VerifyCallerIDRequest.java | 9 +- .../VerifyOutboundTestPhoneNumberRequest.java | 33 + ...allback.java => A2PActivatedCallback.java} | 22 +- .../response/A2PGetSmsHistoryResponse.java | 2 +- .../response/A2PSendSmsResponse.java | 2 +- .../response/A2PSmsDeliveryCallback.java | 8 +- .../apiclient/response/A2PSmsHistoryType.java | 57 +- .../ACDAfterServiceOperatorStateType.java | 10 +- .../apiclient/response/ACDLock.java | 2 +- .../response/ACDLockedOperatorStateType.java | 16 +- .../apiclient/response/ACDOperatorCall.java | 10 +- .../ACDOperatorStatusStatisticsType.java | 2 +- .../response/ACDQueueOperatorInfoType.java | 6 +- .../apiclient/response/ACDQueueStateType.java | 8 +- .../response/ACDReadyOperatorStateType.java | 8 +- .../response/ACDServicingCallStateType.java | 14 +- .../response/ACDSessionEventInfoType.java | 8 +- .../response/ACDSessionInfoType.java | 22 +- .../apiclient/response/ACDStateType.java | 2 +- .../response/ACDStatisticsCalls.java | 4 +- .../response/ACDWaitingCallStateType.java | 16 +- .../apiclient/response/API_Error.java | 4 +- .../apiclient/response/AccountCallback.java | 315 +++++++--- .../apiclient/response/AccountCallbacks.java | 8 +- .../AccountDocumentStatusUpdatedCallback.java | 164 +++++ .../AccountDocumentUploadedCallback.java | 32 +- .../AccountDocumentVerifiedCallback.java | 36 +- .../apiclient/response/AccountInfoType.java | 79 ++- .../apiclient/response/AccountInvocie.java | 181 ++++++ .../response/AccountIsFrozenCallback.java | 2 +- .../response/AccountIsUnfrozenCallback.java | 2 +- .../response/AccountPlanPackageType.java | 16 +- .../apiclient/response/AccountPlanType.java | 10 +- .../response/AccountVerificationDocument.java | 8 +- .../response/AccountVerificationType.java | 4 +- .../response/AccountVerifications.java | 4 +- ...tivateOutboundTestPhoneNumberResponse.java | 60 ++ .../response/ActivateSuccessfulCallback.java | 4 +- .../response/AddAdminRoleResponse.java | 2 +- .../response/AddAdminUserResponse.java | 4 +- .../response/AddApplicationResponse.java | 2 +- .../response/AddCallerIDResponse.java | 2 +- .../AddOutboundTestPhoneNumberResponse.java | 60 ++ .../AddPstnBlackListItemResponse.java | 2 +- .../apiclient/response/AddQueueResponse.java | 2 +- .../apiclient/response/AddRuleResponse.java | 2 +- .../response/AddScenarioResponse.java | 2 +- .../response/AddSipWhiteListItemResponse.java | 2 +- .../apiclient/response/AddUserResponse.java | 2 +- .../apiclient/response/AdminRoleType.java | 12 +- .../apiclient/response/AdminUserType.java | 12 +- .../AllocateAlfaBankPaymentResultType.java | 4 +- .../response/ApplicationInfoType.java | 26 +- .../response/AttachPhoneNumberResponse.java | 2 +- .../response/AttachedPhoneInfoType.java | 197 +++++- .../apiclient/response/AuditLogInfoType.java | 12 +- .../response/AuthorizedAccountIPType.java | 4 +- .../apiclient/response/BalanceIsChanged.java | 2 +- .../BankCardBillingLimitInfoType.java | 8 +- .../apiclient/response/BankCardErrorType.java | 6 +- .../apiclient/response/BankCardType.java | 20 +- .../response/BillingLimitInfoType.java | 8 +- .../apiclient/response/BillingLimitsType.java | 6 +- .../CalculatedCallHistoryDataType.java | 6 +- .../CalculatedTransactionHistoryDataType.java | 14 +- .../response/CallHistoryReportCallback.java | 6 +- .../apiclient/response/CallInfoType.java | 25 +- .../response/CallListDetailType.java | 28 +- .../apiclient/response/CallListType.java | 18 +- .../response/CallSessionInfoType.java | 73 ++- .../apiclient/response/CallerIDInfoType.java | 12 +- .../response/CardExpiredCallback.java | 2 +- .../response/CardExpiresInMonthCallback.java | 4 +- .../response/CardPaymentCallback.java | 8 +- .../response/CardPaymentFailedCallback.java | 2 +- .../response/CertificateExpiredCallback.java | 34 ++ .../response/CertificateInfoType.java | 117 ++++ .../response/ChangeAccountPlanResponse.java | 81 +++ .../response/ChargeAccountResponse.java | 2 +- .../response/ChargeAccountResult.java | 4 +- .../apiclient/response/ChargedPhoneType.java | 8 +- .../CheckAuthorizedAccountIPResponse.java | 4 +- .../ChildAccountSubscriptionTemplateType.java | 8 +- .../ChildAccountSubscriptionType.java | 14 +- .../response/ClonedACDQueueType.java | 4 +- .../response/ClonedACDSkillType.java | 4 +- .../apiclient/response/ClonedAccountType.java | 24 +- .../response/ClonedAdminRoleType.java | 4 +- .../response/ClonedAdminUserType.java | 6 +- .../response/ClonedApplicationType.java | 6 +- .../apiclient/response/ClonedRuleType.java | 4 +- .../response/ClonedScenarioType.java | 4 +- .../apiclient/response/ClonedUserType.java | 4 +- .../apiclient/response/ContactInfoType.java | 14 +- .../apiclient/response/ContractInfoType.java | 2 +- .../response/ContractorInfoType.java | 18 +- .../ContractorInvoiceServiceType.java | 4 +- .../response/ContractorInvoiceType.java | 8 +- .../CreateManualCallListResponse.java | 4 +- .../CreateSipRegistrationResponse.java | 4 +- .../DelAuthorizedAccountIPResponse.java | 2 +- .../response/DelKeyValueItemResponse.java | 57 ++ .../DelOutboundTestPhoneNumberResponse.java | 60 ++ .../apiclient/response/DialogflowKey.java | 4 +- .../apiclient/response/DialogflowKeyInfo.java | 4 +- .../apiclient/response/ExchangeRates.java | 6 +- .../response/ExpiredAgreementCallback.java | 7 +- .../response/ExpiredCallerIDCallback.java | 4 +- .../response/ExpiredCertificateCallback.java | 53 ++ .../response/ExpiringAgreementCallback.java | 25 +- .../response/ExpiringCallerIDCallback.java | 6 +- .../response/ExpiringCertificateCallback.java | 53 ++ .../apiclient/response/FailedSms.java | 6 +- .../response/GetACDHistoryResponse.java | 4 +- .../response/GetAccountDocumentsResponse.java | 2 +- .../response/GetAccountInfoResponse.java | 4 +- .../response/GetAccountInvoicesResponse.java | 102 ++++ ...etAccountPhoneNumberCountriesResponse.java | 58 ++ .../response/GetAccountPlansResponse.java | 55 ++ .../response/GetAdminRolesResponse.java | 4 +- .../response/GetAdminUsersResponse.java | 4 +- .../response/GetApplicationsResponse.java | 4 +- .../response/GetAuditLogResponse.java | 8 +- .../GetAuthorizedAccountIPsResponse.java | 4 +- .../GetAutochargeConfigResultType.java | 8 +- .../GetAvailableAdminRoleEntriesResponse.java | 2 +- .../response/GetAvailablePlansResponse.java | 55 ++ .../GetAvailableRegulationsResponse.java | 6 +- .../response/GetCallHistoryResponse.java | 10 +- .../response/GetCallListDetailsResponse.java | 4 +- .../response/GetCallListsResponse.java | 6 +- .../response/GetCallerIDsResponse.java | 4 +- .../response/GetChildrenAccountsResponse.java | 4 +- .../response/GetCurrencyRateResponse.java | 2 +- .../response/GetHistoryReportsResponse.java | 4 +- .../response/GetKeyValueItemResponse.java | 60 ++ .../response/GetKeyValueItemsResponse.java | 60 ++ .../response/GetKeyValueKeysResponse.java | 60 ++ .../GetMaxBankCardPaymentResultType.java | 7 +- .../GetMoneyAmountToChargeResult.java | 14 +- .../response/GetNewPhoneNumbersResponse.java | 4 +- .../GetOutboundTestPhoneNumbersResponse.java | 55 ++ .../response/GetPhoneNumbersResponse.java | 9 +- .../response/GetPstnBlackListResponse.java | 4 +- .../apiclient/response/GetQueuesResponse.java | 4 +- .../GetRegulationsAddressResponse.java | 4 +- .../response/GetResourcePriceResponse.java | 2 +- .../apiclient/response/GetRulesResponse.java | 4 +- .../apiclient/response/GetSQAgentsResult.java | 178 ++++++ .../apiclient/response/GetSQQueuesResult.java | 310 ++++++++++ .../apiclient/response/GetSQSkillsResult.java | 140 +++++ .../response/GetSQStateResponse.java | 55 ++ .../response/GetScenariosResponse.java | 4 +- .../response/GetSipWhiteListResponse.java | 4 +- .../apiclient/response/GetSkillsResponse.java | 4 +- .../GetSmartQueueDayHistoryResponse.java | 76 +++ .../GetSmartQueueRealtimeMetricsResponse.java | 76 +++ .../response/GetSmsHistoryResponse.java | 2 +- .../GetSubscriptionPriceResponse.java | 2 +- .../GetTransactionHistoryResponse.java | 8 +- .../apiclient/response/GetUsersResponse.java | 6 +- .../response/GetZIPCodesResponse.java | 4 +- .../apiclient/response/HistoryReportType.java | 24 +- .../response/InboundSmsCallback.java | 18 +- .../response/InboundSmsCallbackItem.java | 6 +- .../apiclient/response/InvoicePeriod.java | 77 +++ .../response/InvoiceReceivedCallback.java | 162 +++++ .../response/InvoiceSpendingDetails.java | 96 +++ .../response/InvoiceTaxesDetails.java | 181 ++++++ .../response/InvoiceTotalDetails.java | 138 +++++ .../apiclient/response/InvoiceUnits.java | 8 +- .../apiclient/response/JSFailCallback.java | 4 +- .../apiclient/response/KeyInfo.java | 8 +- .../apiclient/response/KeyValueItems.java | 97 +++ .../apiclient/response/KeyValueKeys.java | 75 +++ ...sificationUnit.java => KeyValuePairs.java} | 58 +- .../apiclient/response/KeyView.java | 8 +- ...ava => LinkRegulationAddressResponse.java} | 2 +- .../apiclient/response/MGPInfo.java | 12 +- .../apiclient/response/MGPTemplateInfo.java | 8 +- .../response/MinBalanceCallback.java | 6 +- .../response/MultipleNumbersPrice.java | 6 +- .../response/NewAttachedPhoneInfoType.java | 10 +- .../response/NewInvoiceCallback.java | 4 +- .../response/NewInvoiceCallbackItem.java | 14 +- .../apiclient/response/NewPhoneInfoType.java | 12 +- .../response/NextChargeAlertCallback.java | 78 +++ .../OutboundTestPhonenumberInfoType.java | 96 +++ .../PhoneNumberCountryCategoryInfoType.java | 10 +- .../response/PhoneNumberCountryInfoType.java | 30 +- .../PhoneNumberCountryRegionInfoType.java | 46 +- .../PhoneNumberCountryStateInfoType.java | 4 +- .../response/PlanConfigCallback.java | 8 +- .../apiclient/response/PlanPackageConfig.java | 10 +- .../apiclient/response/PlanPackageType.java | 12 +- .../apiclient/response/PlanType.java | 10 +- .../apiclient/response/PriceGroup.java | 10 +- .../response/PstnBlackListInfoType.java | 4 +- .../response/PushCredentialContent.java | 54 +- .../response/PushCredentialInfo.java | 20 +- .../apiclient/response/QueueInfoType.java | 45 +- .../apiclient/response/QueueSkills.java | 4 +- .../apiclient/response/QueueUsers.java | 2 +- .../response/RecordStorageInfoType.java | 6 +- .../apiclient/response/RecordType.java | 21 +- .../apiclient/response/RegulationAddress.java | 30 +- ...tionAddressDocumentsRequestedCallback.java | 163 +++++ .../RegulationAddressUploadedCallback.java | 8 +- .../RegulationAddressVerifiedCallback.java | 13 +- .../response/RegulationRegionRecord.java | 2 +- .../RenewedSubscriptionsCallback.java | 4 +- .../RenewedSubscriptionsCallbackItem.java | 24 +- .../RequestSmartQueueHistoryResponse.java | 81 +++ .../ResetAccountPasswordRequestCallback.java | 4 +- .../apiclient/response/ResourcePrice.java | 4 +- .../apiclient/response/ResourceUsageType.java | 18 +- .../RestoredAgreementStatusCallback.java | 9 +- .../response/RobokassaPaymentCallback.java | 8 +- .../apiclient/response/RoleGroupView.java | 4 +- .../apiclient/response/RoleView.java | 12 +- .../apiclient/response/RuleInfoType.java | 14 +- .../response/SIPRegistrationFailCallback.java | 24 +- ... SIPRegistrationIsFailedCallbackItem.java} | 58 +- ...IPRegistrationIsRecoveredCallbackItem.java | 54 ++ .../SIPRegistrationRecoveredCallback.java | 53 ++ .../response/SIPRegistrationType.java | 37 +- .../response/SQAgentBindingModes.java | 118 ++++ .../response/SQAgentSelectionStrategies.java | 204 +++++++ .../response/SQSkillBindingModes.java | 96 +++ .../response/SQTaskSelectionStrategies.java | 78 +++ .../response/SQ_AddQueueResponse.java | 60 ++ .../response/SQ_AddSkillResponse.java | 60 ++ .../response/SQ_BindAgentResponse.java | 60 ++ .../response/SQ_BindSkillResponse.java | 60 ++ .../response/SQ_DelQueueResponse.java | 60 ++ .../response/SQ_DelSkillResponse.java | 60 ++ ...eleteAgentCustomStatusMappingResponse.java | 60 ++ ...Q_GetAgentCustomStatusMappingResponse.java | 81 +++ .../response/SQ_GetAgentsResponse.java | 60 ++ .../response/SQ_GetQueuesResponse.java | 60 ++ .../response/SQ_GetSkillsResponse.java | 60 ++ ...Q_SetAgentCustomStatusMappingResponse.java | 60 ++ .../response/SQ_SetAgentInfoResponse.java | 60 ++ .../response/SQ_SetQueueInfoResponse.java | 60 ++ .../response/SQ_SetSkillInfoResponse.java | 60 ++ .../response/SQ_UnbindAgentResponse.java | 60 ++ .../response/SQ_UnbindSkillResponse.java | 60 ++ .../apiclient/response/ScenarioInfoType.java | 8 +- .../response/SendSmsMessageResponse.java | 23 +- .../response/SetApplicationInfoResponse.java | 2 +- .../response/SetKeyValueItemResponse.java | 60 ++ .../response/SetPhoneNumberInfoResponse.java | 60 ++ .../response/ShortAccountInfoType.java | 8 +- .../response/SipWhiteListInfoType.java | 23 +- .../apiclient/response/SkillInfoType.java | 4 +- .../response/SmartQueueAgent_Skill.java | 96 +++ .../response/SmartQueueMetricsGroups.java | 12 +- .../SmartQueueMetricsGroupsValues.java | 6 +- .../response/SmartQueueMetricsResult.java | 15 +- .../apiclient/response/SmartQueueState.java | 113 ++++ .../response/SmartQueueState_Agent.java | 134 ++++ .../SmartQueueState_Agent_Status.java | 77 +++ .../SmartQueueState_Agent_Status_Type.java | 78 +++ .../response/SmartQueueState_Task.java | 179 ++++++ .../response/SmartQueueTask_Skill.java | 75 +++ .../apiclient/response/SmsHistoryType.java | 59 +- .../apiclient/response/SmsTransaction.java | 20 +- .../response/StagnantAccountCallback.java | 4 +- .../response/StartConferenceResponse.java | 32 +- .../response/StartNextCallTaskResponse.java | 2 +- .../response/StartScenariosResponse.java | 36 +- .../StopCallListProcessingResponse.java | 2 +- .../apiclient/response/SubUserID.java | 2 +- .../apiclient/response/SubUserView.java | 8 +- .../response/SubscriptionCallbackDetails.java | 96 +++ ...bscriptionCallbackDetailsPhoneNumbers.java | 75 +++ ...iptionCallbackDetailsSipRegistrations.java | 54 ++ .../SubscriptionIsDetachedCallback.java | 4 +- .../SubscriptionIsDetachedCallbackItem.java | 22 +- .../SubscriptionIsFrozenCallback.java | 4 +- .../SubscriptionIsFrozenCallbackItem.java | 24 +- .../response/SubscriptionTemplateType.java | 89 ++- .../response/SubscriptionsToChargeType.java | 8 +- .../TransactionHistoryReportCallback.java | 8 +- .../response/TransactionInfoType.java | 30 +- .../TranscriptionCompleteCallback.java | 4 +- .../TranscriptionCompleteCallbackItem.java | 9 +- .../response/TransferMoneyToUserResponse.java | 2 +- ...nverifiedSubscriptionDetachedCallback.java | 6 +- ...ifiedSubscriptionDetachedCallbackItem.java | 22 +- .../apiclient/response/UserInfoType.java | 29 +- ...VerifyOutboundTestPhoneNumberResponse.java | 61 ++ .../response/WireTransferCallback.java | 8 +- ...ctivateOutboundTestPhoneNumberExample.java | 32 + .../AddOutboundTestPhoneNumberExample.java | 32 + .../apiexamples/AddSubUserExample.java | 2 +- .../apiexamples/AddUserExample.java | 2 +- .../apiexamples/ChangeAccountPlanExample.java | 33 + .../apiexamples/DelKeyValueItemExample.java | 33 + .../DelOutboundTestPhoneNumberExample.java | 31 + .../apiexamples/DelSubUserExample.java | 2 +- .../apiexamples/GetACDHistoryExample.java | 2 +- .../GetACDOperatorStatisticsExample.java | 14 +- .../GetACDQueueStatisticsExample.java | 10 +- .../apiexamples/GetAccountInfoExample.java | 31 + .../GetAccountInvoicesExample.java | 31 + ...GetAccountPhoneNumberCountriesExample.java | 33 + .../apiexamples/GetAccountPlansExample.java | 31 + .../apiexamples/GetAvailablePlansExample.java | 32 + .../GetAvailableRegulationsExample.java | 2 +- .../apiexamples/GetCallHistoryExample.java | 2 +- .../GetCallListDetailsExample.java | 2 +- .../apiexamples/GetCallListsExample.java | 2 +- .../apiexamples/GetCountriesExample.java | 2 +- .../apiexamples/GetKeyValueItemExample.java | 33 + .../apiexamples/GetKeyValueItemsExample.java | 33 + .../apiexamples/GetKeyValueKeysExample.java | 32 + .../GetOutboundTestPhoneNumbersExample.java | 31 + .../GetPhoneNumberCategoriesExample.java | 2 +- .../apiexamples/GetPhoneNumbersExample.java | 2 +- .../GetRegulationsAddressExample.java | 2 +- .../apiexamples/GetResourcePriceExample.java | 2 +- .../apiexamples/GetRulesExample.java | 2 +- .../apiexamples/GetSQStateExample.java | 33 + .../GetSipRegistrationsExample.java | 2 +- .../GetSmartQueueDayHistoryExample.java | 34 ++ .../GetSmartQueueRealtimeMetricsExample.java | 34 ++ .../apiexamples/GetSubUsersExample.java | 2 +- .../apiexamples/GetZIPCodesExample.java | 2 +- ...java => LinkRegulationAddressExample.java} | 10 +- .../apiexamples/RecoverCallListExample.java | 2 +- .../RemoveSubUserRolesExample.java | 2 +- .../apiexamples/ReorderRulesExample.java | 2 +- .../RequestSmartQueueHistoryExample.java | 42 ++ .../apiexamples/SQ_AddQueueExample.java | 35 ++ .../apiexamples/SQ_AddSkillExample.java | 33 + .../apiexamples/SQ_BindAgentExample.java | 34 ++ .../apiexamples/SQ_BindSkillExample.java | 34 ++ .../apiexamples/SQ_DelQueueExample.java | 33 + .../apiexamples/SQ_DelSkillExample.java | 33 + ...DeleteAgentCustomStatusMappingExample.java | 33 + ...SQ_GetAgentCustomStatusMappingExample.java | 32 + .../apiexamples/SQ_GetAgentsExample.java | 34 ++ .../apiexamples/SQ_GetQueuesExample.java | 33 + .../apiexamples/SQ_GetSkillsExample.java | 33 + ...SQ_SetAgentCustomStatusMappingExample.java | 35 ++ .../apiexamples/SQ_SetAgentInfoExample.java | 34 ++ .../apiexamples/SQ_SetQueueInfoExample.java | 34 ++ .../apiexamples/SQ_SetSkillInfoExample.java | 34 ++ .../apiexamples/SQ_UnbindAgentExample.java | 34 ++ .../apiexamples/SQ_UnbindSkillExample.java | 34 ++ .../apiexamples/SetKeyValueItemExample.java | 35 ++ .../SetPhoneNumberInfoExample.java | 32 + .../apiexamples/SetSubUserInfoExample.java | 2 +- .../apiexamples/SetSubUserRolesExample.java | 2 +- .../apiexamples/StartNextCallTaskExample.java | 2 +- .../StopCallListProcessingExample.java | 2 +- .../VerifyOutboundTestPhoneNumberExample.java | 31 + 534 files changed, 20288 insertions(+), 2779 deletions(-) create mode 100644 src/main/java/com/voximplant/apiclient/request/ActivateOutboundTestPhoneNumberRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/AddOutboundTestPhoneNumberRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/ChangeAccountPlanRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/DelKeyValueItemRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/DelOutboundTestPhoneNumberRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetAccountInvoicesRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetAccountPhoneNumberCountriesRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetAccountPlansRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetAvailablePlansRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetKeyValueItemRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetKeyValueItemsRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetKeyValueKeysRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetOutboundTestPhoneNumbersRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetSQStateRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetSmartQueueDayHistoryRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/GetSmartQueueRealtimeMetricsRequest.java rename src/main/java/com/voximplant/apiclient/request/{LinkregulationAddressRequest.java => LinkRegulationAddressRequest.java} (91%) create mode 100644 src/main/java/com/voximplant/apiclient/request/RequestSmartQueueHistoryRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_AddQueueRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_AddSkillRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_BindAgentRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_BindSkillRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_DelQueueRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_DelSkillRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_DeleteAgentCustomStatusMappingRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_GetAgentCustomStatusMappingRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_GetAgentsRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_GetQueuesRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_GetSkillsRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_SetAgentCustomStatusMappingRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_SetAgentInfoRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_SetQueueInfoRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_SetSkillInfoRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_UnbindAgentRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SQ_UnbindSkillRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SetKeyValueItemRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/SetPhoneNumberInfoRequest.java create mode 100644 src/main/java/com/voximplant/apiclient/request/VerifyOutboundTestPhoneNumberRequest.java rename src/main/java/com/voximplant/apiclient/response/{ClassificationCompleteCallback.java => A2PActivatedCallback.java} (65%) create mode 100644 src/main/java/com/voximplant/apiclient/response/AccountDocumentStatusUpdatedCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/AccountInvocie.java create mode 100644 src/main/java/com/voximplant/apiclient/response/ActivateOutboundTestPhoneNumberResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/AddOutboundTestPhoneNumberResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/CertificateExpiredCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/CertificateInfoType.java create mode 100644 src/main/java/com/voximplant/apiclient/response/ChangeAccountPlanResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/DelKeyValueItemResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/DelOutboundTestPhoneNumberResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/ExpiredCertificateCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/ExpiringCertificateCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetAccountInvoicesResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetAccountPhoneNumberCountriesResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetAccountPlansResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetAvailablePlansResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetKeyValueItemResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetKeyValueItemsResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetKeyValueKeysResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetOutboundTestPhoneNumbersResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetSQAgentsResult.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetSQQueuesResult.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetSQSkillsResult.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetSQStateResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetSmartQueueDayHistoryResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/GetSmartQueueRealtimeMetricsResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/InvoicePeriod.java create mode 100644 src/main/java/com/voximplant/apiclient/response/InvoiceReceivedCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/InvoiceSpendingDetails.java create mode 100644 src/main/java/com/voximplant/apiclient/response/InvoiceTaxesDetails.java create mode 100644 src/main/java/com/voximplant/apiclient/response/InvoiceTotalDetails.java create mode 100644 src/main/java/com/voximplant/apiclient/response/KeyValueItems.java create mode 100644 src/main/java/com/voximplant/apiclient/response/KeyValueKeys.java rename src/main/java/com/voximplant/apiclient/response/{ClassificationUnit.java => KeyValuePairs.java} (59%) rename src/main/java/com/voximplant/apiclient/response/{LinkregulationAddressResponse.java => LinkRegulationAddressResponse.java} (95%) create mode 100644 src/main/java/com/voximplant/apiclient/response/NextChargeAlertCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/OutboundTestPhonenumberInfoType.java create mode 100644 src/main/java/com/voximplant/apiclient/response/RegulationAddressDocumentsRequestedCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/RequestSmartQueueHistoryResponse.java rename src/main/java/com/voximplant/apiclient/response/{ClassificationCompleteCallbackItem.java => SIPRegistrationIsFailedCallbackItem.java} (54%) create mode 100644 src/main/java/com/voximplant/apiclient/response/SIPRegistrationIsRecoveredCallbackItem.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SIPRegistrationRecoveredCallback.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQAgentBindingModes.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQAgentSelectionStrategies.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQSkillBindingModes.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQTaskSelectionStrategies.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_AddQueueResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_AddSkillResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_BindAgentResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_BindSkillResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_DelQueueResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_DelSkillResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_DeleteAgentCustomStatusMappingResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_GetAgentCustomStatusMappingResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_GetAgentsResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_GetQueuesResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_GetSkillsResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_SetAgentCustomStatusMappingResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_SetAgentInfoResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_SetQueueInfoResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_SetSkillInfoResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_UnbindAgentResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SQ_UnbindSkillResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SetKeyValueItemResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SetPhoneNumberInfoResponse.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SmartQueueAgent_Skill.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SmartQueueState.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status_Type.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SmartQueueState_Task.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SmartQueueTask_Skill.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetails.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsPhoneNumbers.java create mode 100644 src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsSipRegistrations.java create mode 100644 src/main/java/com/voximplant/apiclient/response/VerifyOutboundTestPhoneNumberResponse.java create mode 100644 src/main/java/com/voximplant/apiexamples/ActivateOutboundTestPhoneNumberExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/AddOutboundTestPhoneNumberExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/ChangeAccountPlanExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/DelKeyValueItemExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/DelOutboundTestPhoneNumberExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetAccountInfoExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetAccountInvoicesExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetAccountPhoneNumberCountriesExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetAccountPlansExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetAvailablePlansExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetKeyValueItemExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetKeyValueItemsExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetKeyValueKeysExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetOutboundTestPhoneNumbersExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetSQStateExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetSmartQueueDayHistoryExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/GetSmartQueueRealtimeMetricsExample.java rename src/main/java/com/voximplant/apiexamples/{LinkregulationAddressExample.java => LinkRegulationAddressExample.java} (69%) create mode 100644 src/main/java/com/voximplant/apiexamples/RequestSmartQueueHistoryExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_AddQueueExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_AddSkillExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_BindAgentExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_BindSkillExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_DelQueueExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_DelSkillExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_DeleteAgentCustomStatusMappingExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_GetAgentCustomStatusMappingExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_GetAgentsExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_GetQueuesExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_GetSkillsExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_SetAgentCustomStatusMappingExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_SetAgentInfoExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_SetQueueInfoExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_SetSkillInfoExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_UnbindAgentExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SQ_UnbindSkillExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SetKeyValueItemExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/SetPhoneNumberInfoExample.java create mode 100644 src/main/java/com/voximplant/apiexamples/VerifyOutboundTestPhoneNumberExample.java diff --git a/README.md b/README.md index 1c6c6d6..6a0c556 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Voximplant API client library -#### Version 1.0 +#### Version 1.0.2 ## Prerequisites @@ -18,7 +18,7 @@ Setup a `maven` dependency for your project: org.voximplant apiclient - 1.0.1 + 1.0.2 ``` diff --git a/pom.xml b/pom.xml index 5ab1e9b..e1aa988 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ com.voximplant apiclient - 1.0.1 + 1.0.2 jar voximplant-apiclient diff --git a/src/main/java/com/voximplant/apiclient/VoximplantAPIClient.java b/src/main/java/com/voximplant/apiclient/VoximplantAPIClient.java index e4dc168..0339aa0 100644 --- a/src/main/java/com/voximplant/apiclient/VoximplantAPIClient.java +++ b/src/main/java/com/voximplant/apiclient/VoximplantAPIClient.java @@ -99,6 +99,27 @@ public ChargeAccountResponse chargeAccount(ChargeAccountRequest req) throws java return mapper.readValue(impl.performRequest("ChargeAccount", RequestSerializer.serialize(req)), ChargeAccountResponse.class); } + public ChangeAccountPlanResponse changeAccountPlan(ChangeAccountPlanRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("ChangeAccountPlan", RequestSerializer.serialize(req)), ChangeAccountPlanResponse.class); + } + + public GetAccountPlansResponse getAccountPlans(GetAccountPlansRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetAccountPlans", RequestSerializer.serialize(req)), GetAccountPlansResponse.class); + } + + public GetAvailablePlansResponse getAvailablePlans(GetAvailablePlansRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetAvailablePlans", RequestSerializer.serialize(req)), GetAvailablePlansResponse.class); + } + public AddApplicationResponse addApplication(AddApplicationRequest req) throws java.io.IOException, ClientException { ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -449,6 +470,13 @@ public DeactivatePhoneNumberResponse deactivatePhoneNumber(DeactivatePhoneNumber return mapper.readValue(impl.performRequest("DeactivatePhoneNumber", RequestSerializer.serialize(req)), DeactivatePhoneNumberResponse.class); } + public SetPhoneNumberInfoResponse setPhoneNumberInfo(SetPhoneNumberInfoRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SetPhoneNumberInfo", RequestSerializer.serialize(req)), SetPhoneNumberInfoResponse.class); + } + public GetPhoneNumbersResponse getPhoneNumbers(GetPhoneNumbersRequest req) throws java.io.IOException, ClientException { ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -526,6 +554,41 @@ public VerifyCallerIDResponse verifyCallerID(VerifyCallerIDRequest req) throws j return mapper.readValue(impl.performRequest("VerifyCallerID", RequestSerializer.serialize(req)), VerifyCallerIDResponse.class); } + public AddOutboundTestPhoneNumberResponse addOutboundTestPhoneNumber(AddOutboundTestPhoneNumberRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("AddOutboundTestPhoneNumber", RequestSerializer.serialize(req)), AddOutboundTestPhoneNumberResponse.class); + } + + public VerifyOutboundTestPhoneNumberResponse verifyOutboundTestPhoneNumber(VerifyOutboundTestPhoneNumberRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("VerifyOutboundTestPhoneNumber", RequestSerializer.serialize(req)), VerifyOutboundTestPhoneNumberResponse.class); + } + + public ActivateOutboundTestPhoneNumberResponse activateOutboundTestPhoneNumber(ActivateOutboundTestPhoneNumberRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("ActivateOutboundTestPhoneNumber", RequestSerializer.serialize(req)), ActivateOutboundTestPhoneNumberResponse.class); + } + + public DelOutboundTestPhoneNumberResponse delOutboundTestPhoneNumber(DelOutboundTestPhoneNumberRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("DelOutboundTestPhoneNumber", RequestSerializer.serialize(req)), DelOutboundTestPhoneNumberResponse.class); + } + + public GetOutboundTestPhoneNumbersResponse getOutboundTestPhoneNumbers(GetOutboundTestPhoneNumbersRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetOutboundTestPhoneNumbers", RequestSerializer.serialize(req)), GetOutboundTestPhoneNumbersResponse.class); + } + public AddQueueResponse addQueue(AddQueueRequest req) throws java.io.IOException, ClientException { ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -589,6 +652,55 @@ public GetACDOperatorStatusStatisticsResponse getACDOperatorStatusStatistics(Get return mapper.readValue(impl.performRequest("GetACDOperatorStatusStatistics", RequestSerializer.serialize(req)), GetACDOperatorStatusStatisticsResponse.class); } + public GetSmartQueueRealtimeMetricsResponse getSmartQueueRealtimeMetrics(GetSmartQueueRealtimeMetricsRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetSmartQueueRealtimeMetrics", RequestSerializer.serialize(req)), GetSmartQueueRealtimeMetricsResponse.class); + } + + public GetSmartQueueDayHistoryResponse getSmartQueueDayHistory(GetSmartQueueDayHistoryRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetSmartQueueDayHistory", RequestSerializer.serialize(req)), GetSmartQueueDayHistoryResponse.class); + } + + public RequestSmartQueueHistoryResponse requestSmartQueueHistory(RequestSmartQueueHistoryRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("RequestSmartQueueHistory", RequestSerializer.serialize(req)), RequestSmartQueueHistoryResponse.class); + } + + public GetSQStateResponse getSQState(GetSQStateRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetSQState", RequestSerializer.serialize(req)), GetSQStateResponse.class); + } + + public SQ_SetAgentCustomStatusMappingResponse sQ_SetAgentCustomStatusMapping(SQ_SetAgentCustomStatusMappingRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_SetAgentCustomStatusMapping", RequestSerializer.serialize(req)), SQ_SetAgentCustomStatusMappingResponse.class); + } + + public SQ_GetAgentCustomStatusMappingResponse sQ_GetAgentCustomStatusMapping(SQ_GetAgentCustomStatusMappingRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_GetAgentCustomStatusMapping", RequestSerializer.serialize(req)), SQ_GetAgentCustomStatusMappingResponse.class); + } + + public SQ_DeleteAgentCustomStatusMappingResponse sQ_DeleteAgentCustomStatusMapping(SQ_DeleteAgentCustomStatusMappingRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_DeleteAgentCustomStatusMapping", RequestSerializer.serialize(req)), SQ_DeleteAgentCustomStatusMappingResponse.class); + } + public AddSkillResponse addSkill(AddSkillRequest req) throws java.io.IOException, ClientException { ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -729,11 +841,11 @@ public CheckAuthorizedAccountIPResponse checkAuthorizedAccountIP(CheckAuthorized return mapper.readValue(impl.performRequest("CheckAuthorizedAccountIP", RequestSerializer.serialize(req)), CheckAuthorizedAccountIPResponse.class); } - public LinkregulationAddressResponse linkregulationAddress(LinkregulationAddressRequest req) throws java.io.IOException, ClientException { + public LinkRegulationAddressResponse linkRegulationAddress(LinkRegulationAddressRequest req) throws java.io.IOException, ClientException { ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); - return mapper.readValue(impl.performRequest("LinkregulationAddress", RequestSerializer.serialize(req)), LinkregulationAddressResponse.class); + return mapper.readValue(impl.performRequest("LinkRegulationAddress", RequestSerializer.serialize(req)), LinkRegulationAddressResponse.class); } public GetZIPCodesResponse getZIPCodes(GetZIPCodesRequest req) throws java.io.IOException, ClientException { @@ -764,6 +876,13 @@ public GetCountriesResponse getCountries(GetCountriesRequest req) throws java.io return mapper.readValue(impl.performRequest("GetCountries", RequestSerializer.serialize(req)), GetCountriesResponse.class); } + public GetAccountPhoneNumberCountriesResponse getAccountPhoneNumberCountries(GetAccountPhoneNumberCountriesRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetAccountPhoneNumberCountries", RequestSerializer.serialize(req)), GetAccountPhoneNumberCountriesResponse.class); + } + public GetRegionsResponse getRegions(GetRegionsRequest req) throws java.io.IOException, ClientException { ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -981,6 +1100,48 @@ public GetRoleGroupsResponse getRoleGroups(GetRoleGroupsRequest req) throws java return mapper.readValue(impl.performRequest("GetRoleGroups", RequestSerializer.serialize(req)), GetRoleGroupsResponse.class); } + public SetKeyValueItemResponse setKeyValueItem(SetKeyValueItemRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SetKeyValueItem", RequestSerializer.serialize(req)), SetKeyValueItemResponse.class); + } + + public DelKeyValueItemResponse delKeyValueItem(DelKeyValueItemRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("DelKeyValueItem", RequestSerializer.serialize(req)), DelKeyValueItemResponse.class); + } + + public GetKeyValueItemResponse getKeyValueItem(GetKeyValueItemRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetKeyValueItem", RequestSerializer.serialize(req)), GetKeyValueItemResponse.class); + } + + public GetKeyValueItemsResponse getKeyValueItems(GetKeyValueItemsRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetKeyValueItems", RequestSerializer.serialize(req)), GetKeyValueItemsResponse.class); + } + + public GetKeyValueKeysResponse getKeyValueKeys(GetKeyValueKeysRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetKeyValueKeys", RequestSerializer.serialize(req)), GetKeyValueKeysResponse.class); + } + + public GetAccountInvoicesResponse getAccountInvoices(GetAccountInvoicesRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("GetAccountInvoices", RequestSerializer.serialize(req)), GetAccountInvoicesResponse.class); + } + public GetSmsHistoryResponse getSmsHistory(GetSmsHistoryRequest req) throws java.io.IOException, ClientException { ObjectMapper mapper = new ObjectMapper(); mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); @@ -994,4 +1155,102 @@ public A2PGetSmsHistoryResponse a2PGetSmsHistory(A2PGetSmsHistoryRequest req) th mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); return mapper.readValue(impl.performRequest("A2PGetSmsHistory", RequestSerializer.serialize(req)), A2PGetSmsHistoryResponse.class); } + + public SQ_AddQueueResponse sQ_AddQueue(SQ_AddQueueRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_AddQueue", RequestSerializer.serialize(req)), SQ_AddQueueResponse.class); + } + + public SQ_SetQueueInfoResponse sQ_SetQueueInfo(SQ_SetQueueInfoRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_SetQueueInfo", RequestSerializer.serialize(req)), SQ_SetQueueInfoResponse.class); + } + + public SQ_DelQueueResponse sQ_DelQueue(SQ_DelQueueRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_DelQueue", RequestSerializer.serialize(req)), SQ_DelQueueResponse.class); + } + + public SQ_GetQueuesResponse sQ_GetQueues(SQ_GetQueuesRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_GetQueues", RequestSerializer.serialize(req)), SQ_GetQueuesResponse.class); + } + + public SQ_AddSkillResponse sQ_AddSkill(SQ_AddSkillRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_AddSkill", RequestSerializer.serialize(req)), SQ_AddSkillResponse.class); + } + + public SQ_DelSkillResponse sQ_DelSkill(SQ_DelSkillRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_DelSkill", RequestSerializer.serialize(req)), SQ_DelSkillResponse.class); + } + + public SQ_SetSkillInfoResponse sQ_SetSkillInfo(SQ_SetSkillInfoRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_SetSkillInfo", RequestSerializer.serialize(req)), SQ_SetSkillInfoResponse.class); + } + + public SQ_BindSkillResponse sQ_BindSkill(SQ_BindSkillRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_BindSkill", RequestSerializer.serialize(req)), SQ_BindSkillResponse.class); + } + + public SQ_UnbindSkillResponse sQ_UnbindSkill(SQ_UnbindSkillRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_UnbindSkill", RequestSerializer.serialize(req)), SQ_UnbindSkillResponse.class); + } + + public SQ_GetSkillsResponse sQ_GetSkills(SQ_GetSkillsRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_GetSkills", RequestSerializer.serialize(req)), SQ_GetSkillsResponse.class); + } + + public SQ_BindAgentResponse sQ_BindAgent(SQ_BindAgentRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_BindAgent", RequestSerializer.serialize(req)), SQ_BindAgentResponse.class); + } + + public SQ_UnbindAgentResponse sQ_UnbindAgent(SQ_UnbindAgentRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_UnbindAgent", RequestSerializer.serialize(req)), SQ_UnbindAgentResponse.class); + } + + public SQ_GetAgentsResponse sQ_GetAgents(SQ_GetAgentsRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_GetAgents", RequestSerializer.serialize(req)), SQ_GetAgentsResponse.class); + } + + public SQ_SetAgentInfoResponse sQ_SetAgentInfo(SQ_SetAgentInfoRequest req) throws java.io.IOException, ClientException { + ObjectMapper mapper = new ObjectMapper(); + mapper.configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); + mapper.setPropertyNamingStrategy(PropertyNamingStrategy.SNAKE_CASE); + return mapper.readValue(impl.performRequest("SQ_SetAgentInfo", RequestSerializer.serialize(req)), SQ_SetAgentInfoResponse.class); + } } \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/VoximplantAPIClientImpl.java b/src/main/java/com/voximplant/apiclient/VoximplantAPIClientImpl.java index e3bfb55..c7295ea 100644 --- a/src/main/java/com/voximplant/apiclient/VoximplantAPIClientImpl.java +++ b/src/main/java/com/voximplant/apiclient/VoximplantAPIClientImpl.java @@ -71,7 +71,6 @@ private String generateAuthHeader() { builder.setHeader(headers); builder.signWith(SignatureAlgorithm.RS256, this.privateKey); String ss = builder.compact(); - System.out.println("token generated"); return "Bearer "+ss; } diff --git a/src/main/java/com/voximplant/apiclient/request/A2PGetSmsHistoryRequest.java b/src/main/java/com/voximplant/apiclient/request/A2PGetSmsHistoryRequest.java index 34d8597..f679347 100644 --- a/src/main/java/com/voximplant/apiclient/request/A2PGetSmsHistoryRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/A2PGetSmsHistoryRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class A2PGetSmsHistoryRequest implements Alignable { @RequestField(name="source_number") /** - * The source phone number. + * The source phone number */ public String getSourceNumber() { return this.sourceNumber; @@ -29,7 +30,7 @@ public boolean hasSourceNumber() { } /** - * The source phone number. + * The source phone number */ public A2PGetSmsHistoryRequest setSourceNumber(String d) { this.sourceNumber = d; @@ -40,7 +41,7 @@ public A2PGetSmsHistoryRequest setSourceNumber(String d) { @RequestField(name="destination_number") /** - * The destination phone number. + * The destination phone number */ public String getDestinationNumber() { return this.destinationNumber; @@ -51,7 +52,7 @@ public boolean hasDestinationNumber() { } /** - * The destination phone number. + * The destination phone number */ public A2PGetSmsHistoryRequest setDestinationNumber(String d) { this.destinationNumber = d; @@ -62,8 +63,8 @@ public A2PGetSmsHistoryRequest setDestinationNumber(String d) { @RequestField(name="count") /** - * Maximum number of resulting rows fetched. Must be not more than 1000. - * If left blank, then the default value of 1000 will be used. + * Maximum number of resulting rows fetched. Must be not bigger than + * 1000. If left blank, then the default value of 1000 will be used */ public Long getCount() { return this.count; @@ -74,8 +75,8 @@ public boolean hasCount() { } /** - * Maximum number of resulting rows fetched. Must be not more than 1000. - * If left blank, then the default value of 1000 will be used. + * Maximum number of resulting rows fetched. Must be not bigger than + * 1000. If left blank, then the default value of 1000 will be used */ public A2PGetSmsHistoryRequest setCount(long d) { this.count = Long.valueOf(d); @@ -86,7 +87,7 @@ public A2PGetSmsHistoryRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -97,7 +98,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public A2PGetSmsHistoryRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -111,7 +112,7 @@ public A2PGetSmsHistoryRequest setOffset(long d) { @SerializeUsing(serializer = TimestampSerializer.class) /** * Date from which the search is to start. Format is 'yyyy-MM-dd - * HH:mm:ss'. + * HH:mm:ss' */ public Date getFromDate() { return this.fromDate; @@ -123,7 +124,7 @@ public boolean hasFromDate() { /** * Date from which the search is to start. Format is 'yyyy-MM-dd - * HH:mm:ss'. + * HH:mm:ss' */ public A2PGetSmsHistoryRequest setFromDate(Date d) { this.fromDate = d; @@ -136,7 +137,7 @@ public A2PGetSmsHistoryRequest setFromDate(Date d) { @RequestField(name="to_date") @SerializeUsing(serializer = TimestampSerializer.class) /** - * Date from which the search is to end. Format is 'yyyy-MM-dd HH:mm:ss'. + * Date from which the search is to end. Format is 'yyyy-MM-dd HH:mm:ss' */ public Date getToDate() { return this.toDate; @@ -147,7 +148,7 @@ public boolean hasToDate() { } /** - * Date from which the search is to end. Format is 'yyyy-MM-dd HH:mm:ss'. + * Date from which the search is to end. Format is 'yyyy-MM-dd HH:mm:ss' */ public A2PGetSmsHistoryRequest setToDate(Date d) { this.toDate = d; @@ -158,7 +159,7 @@ public A2PGetSmsHistoryRequest setToDate(Date d) { @RequestField(name="output") /** - * The output format. The possible values are: json, csv. + * The output format. The possible values are json, csv */ public String getOutput() { return this.output; @@ -169,7 +170,7 @@ public boolean hasOutput() { } /** - * The output format. The possible values are: json, csv. + * The output format. The possible values are json, csv */ public A2PGetSmsHistoryRequest setOutput(String d) { this.output = d; @@ -181,7 +182,7 @@ public A2PGetSmsHistoryRequest setOutput(String d) { @RequestField(name="delivery_status") /** * The delivery status ID: QUEUED - 1, DISPATCHED - 2, ABORTED - 3, - * REJECTED - 4, DELIVERED - 5, FAILED - 6, EXPIRED - 7, UNKNOWN - 8. + * REJECTED - 4, DELIVERED - 5, FAILED - 6, EXPIRED - 7, UNKNOWN - 8 */ public Long getDeliveryStatus() { return this.deliveryStatus; @@ -193,7 +194,7 @@ public boolean hasDeliveryStatus() { /** * The delivery status ID: QUEUED - 1, DISPATCHED - 2, ABORTED - 3, - * REJECTED - 4, DELIVERED - 5, FAILED - 6, EXPIRED - 7, UNKNOWN - 8. + * REJECTED - 4, DELIVERED - 5, FAILED - 6, EXPIRED - 7, UNKNOWN - 8 */ public A2PGetSmsHistoryRequest setDeliveryStatus(long d) { this.deliveryStatus = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/A2PSendSmsRequest.java b/src/main/java/com/voximplant/apiclient/request/A2PSendSmsRequest.java index 97bbdf1..7daa9e8 100644 --- a/src/main/java/com/voximplant/apiclient/request/A2PSendSmsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/A2PSendSmsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class A2PSendSmsRequest implements Alignable { @RequestField(name="src_number") /** - * The source phone number. + * The source phone number */ public String getSrcNumber() { return this.srcNumber; @@ -29,7 +30,7 @@ public boolean hasSrcNumber() { } /** - * The source phone number. + * The source phone number */ public A2PSendSmsRequest setSrcNumber(String d) { this.srcNumber = d; @@ -40,7 +41,8 @@ public A2PSendSmsRequest setSrcNumber(String d) { @RequestField(name="dst_numbers") /** - * The destination phone numbers separated by the ';' symbol. + * The destination phone numbers separated by semicolon (;). The maximum + * number of these phone numbers is 100 */ public MultiArgument getDstNumbers() { return this.dstNumbers; @@ -51,7 +53,8 @@ public boolean hasDstNumbers() { } /** - * The destination phone numbers separated by the ';' symbol. + * The destination phone numbers separated by semicolon (;). The maximum + * number of these phone numbers is 100 */ public A2PSendSmsRequest setDstNumbers(MultiArgument d) { this.dstNumbers = d; @@ -62,7 +65,9 @@ public A2PSendSmsRequest setDstNumbers(MultiArgument d) { @RequestField(name="text") /** - * The message text, up to 1600 characters. + * The message text, up to 1600 characters. We split long messages + * greater than 160 GSM-7 characters or 70 UTF-16 characters into + * multiple segments. Each segment is charged as one message */ public String getText() { return this.text; @@ -73,13 +78,37 @@ public boolean hasText() { } /** - * The message text, up to 1600 characters. + * The message text, up to 1600 characters. We split long messages + * greater than 160 GSM-7 characters or 70 UTF-16 characters into + * multiple segments. Each segment is charged as one message */ public A2PSendSmsRequest setText(String d) { this.text = d; return this; } + private Boolean storeBody; + + @RequestField(name="store_body") + /** + * Set to true to store outbound message texts. Default value is false + */ + public Boolean getStoreBody() { + return this.storeBody; + } + + public boolean hasStoreBody() { + return this.storeBody != null; + } + + /** + * Set to true to store outbound message texts. Default value is false + */ + public A2PSendSmsRequest setStoreBody(boolean d) { + this.storeBody = Boolean.valueOf(d); + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -113,6 +142,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (storeBody != null) { + sb.append(aligned) + .append("\"storeBody\": \"") + .append(storeBody) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/ActivateCallerIDRequest.java b/src/main/java/com/voximplant/apiclient/request/ActivateCallerIDRequest.java index e269e10..f146fff 100644 --- a/src/main/java/com/voximplant/apiclient/request/ActivateCallerIDRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/ActivateCallerIDRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class ActivateCallerIDRequest implements Alignable { @RequestField(name="callerid_id") /** - * The id of the callerID object. + * The id of the callerID object */ public Long getCalleridId() { return this.calleridId; @@ -29,7 +30,7 @@ public boolean hasCalleridId() { } /** - * The id of the callerID object. + * The id of the callerID object */ public ActivateCallerIDRequest setCalleridId(long d) { this.calleridId = Long.valueOf(d); @@ -40,7 +41,7 @@ public ActivateCallerIDRequest setCalleridId(long d) { @RequestField(name="callerid_number") /** - * The callerID number that can be used instead of callerid_id. + * The callerID number that can be used instead of callerid_id */ public String getCalleridNumber() { return this.calleridNumber; @@ -51,7 +52,7 @@ public boolean hasCalleridNumber() { } /** - * The callerID number that can be used instead of callerid_id. + * The callerID number that can be used instead of callerid_id */ public ActivateCallerIDRequest setCalleridNumber(String d) { this.calleridNumber = d; @@ -62,7 +63,7 @@ public ActivateCallerIDRequest setCalleridNumber(String d) { @RequestField(name="verification_code") /** - * The verification code, see the VerifyCallerID function. + * The verification code, see the VerifyCallerID function */ public String getVerificationCode() { return this.verificationCode; @@ -73,7 +74,7 @@ public boolean hasVerificationCode() { } /** - * The verification code, see the VerifyCallerID function. + * The verification code, see the VerifyCallerID function */ public ActivateCallerIDRequest setVerificationCode(String d) { this.verificationCode = d; diff --git a/src/main/java/com/voximplant/apiclient/request/ActivateOutboundTestPhoneNumberRequest.java b/src/main/java/com/voximplant/apiclient/request/ActivateOutboundTestPhoneNumberRequest.java new file mode 100644 index 0000000..dffed48 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/ActivateOutboundTestPhoneNumberRequest.java @@ -0,0 +1,65 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class ActivateOutboundTestPhoneNumberRequest implements Alignable { + private String verificationCode; + + @RequestField(name="verification_code") + /** + * The verification code, see the [VerifyOutboundTestPhoneNumber] + * function + */ + public String getVerificationCode() { + return this.verificationCode; + } + + public boolean hasVerificationCode() { + return this.verificationCode != null; + } + + /** + * The verification code, see the [VerifyOutboundTestPhoneNumber] + * function + */ + public ActivateOutboundTestPhoneNumberRequest setVerificationCode(String d) { + this.verificationCode = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (verificationCode != null) { + sb.append(aligned) + .append("\"verificationCode\": \"") + .append(verificationCode) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/AddAdminRoleRequest.java b/src/main/java/com/voximplant/apiclient/request/AddAdminRoleRequest.java index 146f7b0..32f1290 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddAdminRoleRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddAdminRoleRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddAdminRoleRequest implements Alignable { @RequestField(name="admin_role_name") /** - * The admin role name. The length must be less than 50. + * The admin role name. The length must be less than 50 */ public String getAdminRoleName() { return this.adminRoleName; @@ -29,7 +30,7 @@ public boolean hasAdminRoleName() { } /** - * The admin role name. The length must be less than 50. + * The admin role name. The length must be less than 50 */ public AddAdminRoleRequest setAdminRoleName(String d) { this.adminRoleName = d; @@ -41,7 +42,7 @@ public AddAdminRoleRequest setAdminRoleName(String d) { @RequestField(name="admin_role_active") /** * The admin role enable flag. If false the allowed and denied entries - * have no affect. + * have no affect */ public Boolean getAdminRoleActive() { return this.adminRoleActive; @@ -53,7 +54,7 @@ public boolean hasAdminRoleActive() { /** * The admin role enable flag. If false the allowed and denied entries - * have no affect. + * have no affect */ public AddAdminRoleRequest setAdminRoleActive(boolean d) { this.adminRoleActive = Boolean.valueOf(d); @@ -64,10 +65,10 @@ public AddAdminRoleRequest setAdminRoleActive(boolean d) { @RequestField(name="like_admin_role_id") /** - * The admin role ID list separated by the ';' symbol or the 'all' - * value. The list specifies the roles from which the new role - * automatically copies all permissions (allowed_entries and - * denied_entries). + * The admin role ID list separated by semicolon (;). Use the 'all' + * value to select all admin roles. The list specifies the roles from + * which the new role automatically copies all permissions + * (allowed_entries and denied_entries) */ public MultiArgument getLikeAdminRoleId() { return this.likeAdminRoleId; @@ -78,10 +79,10 @@ public boolean hasLikeAdminRoleId() { } /** - * The admin role ID list separated by the ';' symbol or the 'all' - * value. The list specifies the roles from which the new role - * automatically copies all permissions (allowed_entries and - * denied_entries). + * The admin role ID list separated by semicolon (;). Use the 'all' + * value to select all admin roles. The list specifies the roles from + * which the new role automatically copies all permissions + * (allowed_entries and denied_entries) */ public AddAdminRoleRequest setLikeAdminRoleId(MultiArgument d) { this.likeAdminRoleId = d; @@ -95,7 +96,7 @@ public AddAdminRoleRequest setLikeAdminRoleId(MultiArgument d) { * The admin role name that can be used instead of * like_admin_role_id. The name specifies a role from which the * new role automatically copies all permissions (allowed_entries and - * denied_entries). + * denied_entries) */ public MultiArgument getLikeAdminRoleName() { return this.likeAdminRoleName; @@ -109,7 +110,7 @@ public boolean hasLikeAdminRoleName() { * The admin role name that can be used instead of * like_admin_role_id. The name specifies a role from which the * new role automatically copies all permissions (allowed_entries and - * denied_entries). + * denied_entries) */ public AddAdminRoleRequest setLikeAdminRoleName(MultiArgument d) { this.likeAdminRoleName = d; @@ -120,8 +121,8 @@ public AddAdminRoleRequest setLikeAdminRoleName(MultiArgument d) { @RequestField(name="allowed_entries") /** - * The list of allowed access entries separated by the ';' symbol (the - * API function names). + * The list of allowed access entries separated by semicolon (;) (the + * API function names) */ public MultiArgument getAllowedEntries() { return this.allowedEntries; @@ -132,8 +133,8 @@ public boolean hasAllowedEntries() { } /** - * The list of allowed access entries separated by the ';' symbol (the - * API function names). + * The list of allowed access entries separated by semicolon (;) (the + * API function names) */ public AddAdminRoleRequest setAllowedEntries(MultiArgument d) { this.allowedEntries = d; @@ -144,8 +145,8 @@ public AddAdminRoleRequest setAllowedEntries(MultiArgument d) { @RequestField(name="denied_entries") /** - * The list of denied access entries separated by the ';' symbol (the - * API function names). + * The list of denied access entries separated by semicolon (;) (the API + * function names) */ public MultiArgument getDeniedEntries() { return this.deniedEntries; @@ -156,8 +157,8 @@ public boolean hasDeniedEntries() { } /** - * The list of denied access entries separated by the ';' symbol (the - * API function names). + * The list of denied access entries separated by semicolon (;) (the API + * function names) */ public AddAdminRoleRequest setDeniedEntries(MultiArgument d) { this.deniedEntries = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AddAdminUserRequest.java b/src/main/java/com/voximplant/apiclient/request/AddAdminUserRequest.java index b666a59..68bda2a 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddAdminUserRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddAdminUserRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddAdminUserRequest implements Alignable { @RequestField(name="new_admin_user_name") /** - * The admin user name. The length must be less than 50. + * The admin user name. The length must be less than 50 */ public String getNewAdminUserName() { return this.newAdminUserName; @@ -29,7 +30,7 @@ public boolean hasNewAdminUserName() { } /** - * The admin user name. The length must be less than 50. + * The admin user name. The length must be less than 50 */ public AddAdminUserRequest setNewAdminUserName(String d) { this.newAdminUserName = d; @@ -40,7 +41,7 @@ public AddAdminUserRequest setNewAdminUserName(String d) { @RequestField(name="admin_user_display_name") /** - * The admin user display name. The length must be less than 256. + * The admin user display name. The length must be less than 256 */ public String getAdminUserDisplayName() { return this.adminUserDisplayName; @@ -51,7 +52,7 @@ public boolean hasAdminUserDisplayName() { } /** - * The admin user display name. The length must be less than 256. + * The admin user display name. The length must be less than 256 */ public AddAdminUserRequest setAdminUserDisplayName(String d) { this.adminUserDisplayName = d; @@ -62,7 +63,7 @@ public AddAdminUserRequest setAdminUserDisplayName(String d) { @RequestField(name="new_admin_user_password") /** - * The admin user password. The length must be at least 6 symbols. + * The admin user password. The length must be at least 6 symbols */ public String getNewAdminUserPassword() { return this.newAdminUserPassword; @@ -73,7 +74,7 @@ public boolean hasNewAdminUserPassword() { } /** - * The admin user password. The length must be at least 6 symbols. + * The admin user password. The length must be at least 6 symbols */ public AddAdminUserRequest setNewAdminUserPassword(String d) { this.newAdminUserPassword = d; @@ -84,7 +85,7 @@ public AddAdminUserRequest setNewAdminUserPassword(String d) { @RequestField(name="admin_user_active") /** - * The admin user enable flag. + * The admin user enable flag */ public Boolean getAdminUserActive() { return this.adminUserActive; @@ -95,7 +96,7 @@ public boolean hasAdminUserActive() { } /** - * The admin user enable flag. + * The admin user enable flag */ public AddAdminUserRequest setAdminUserActive(boolean d) { this.adminUserActive = Boolean.valueOf(d); @@ -107,9 +108,9 @@ public AddAdminUserRequest setAdminUserActive(boolean d) { @RequestField(name="admin_role_id") /** * The role(s) ID created via Managing - * Admin Roles methods. The attaching admin role ID list separated - * by the ';' symbol or the 'all' value. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The attaching admin role ID list separated by semicolon (;). + * Use the 'all' value to select all admin roles */ public String getAdminRoleId() { return this.adminRoleId; @@ -121,9 +122,9 @@ public boolean hasAdminRoleId() { /** * The role(s) ID created via Managing - * Admin Roles methods. The attaching admin role ID list separated - * by the ';' symbol or the 'all' value. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The attaching admin role ID list separated by semicolon (;). + * Use the 'all' value to select all admin roles */ public AddAdminUserRequest setAdminRoleId(String d) { this.adminRoleId = d; @@ -135,9 +136,9 @@ public AddAdminUserRequest setAdminRoleId(String d) { @RequestField(name="admin_role_name") /** * The role(s) name(s) created via Managing - * Admin Roles methods. The attaching admin role name that can be - * used instead of admin_role_id. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The attaching admin role name that can be used instead of + * admin_role_id */ public MultiArgument getAdminRoleName() { return this.adminRoleName; @@ -149,9 +150,9 @@ public boolean hasAdminRoleName() { /** * The role(s) name(s) created via Managing - * Admin Roles methods. The attaching admin role name that can be - * used instead of admin_role_id. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The attaching admin role name that can be used instead of + * admin_role_id */ public AddAdminUserRequest setAdminRoleName(MultiArgument d) { this.adminRoleName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AddApplicationRequest.java b/src/main/java/com/voximplant/apiclient/request/AddApplicationRequest.java index 9227489..92d16d2 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddApplicationRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddApplicationRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; diff --git a/src/main/java/com/voximplant/apiclient/request/AddAuthorizedAccountIPRequest.java b/src/main/java/com/voximplant/apiclient/request/AddAuthorizedAccountIPRequest.java index 9c3d6d1..afb9ad3 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddAuthorizedAccountIPRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddAuthorizedAccountIPRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddAuthorizedAccountIPRequest implements Alignable { @RequestField(name="authorized_ip") /** - * The authorized IP4 or network. + * The authorized IP4 or network */ public String getAuthorizedIp() { return this.authorizedIp; @@ -29,7 +30,7 @@ public boolean hasAuthorizedIp() { } /** - * The authorized IP4 or network. + * The authorized IP4 or network */ public AddAuthorizedAccountIPRequest setAuthorizedIp(String d) { this.authorizedIp = d; @@ -40,7 +41,7 @@ public AddAuthorizedAccountIPRequest setAuthorizedIp(String d) { @RequestField(name="allowed") /** - * Set false to add the IP to the blacklist. + * Set false to add the IP to the blacklist */ public Boolean getAllowed() { return this.allowed; @@ -51,13 +52,35 @@ public boolean hasAllowed() { } /** - * Set false to add the IP to the blacklist. + * Set false to add the IP to the blacklist */ public AddAuthorizedAccountIPRequest setAllowed(boolean d) { this.allowed = Boolean.valueOf(d); return this; } + private String description; + + @RequestField(name="description") + /** + * The IP address description + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * The IP address description + */ + public AddAuthorizedAccountIPRequest setDescription(String d) { + this.description = d; + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -83,6 +106,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/AddCallerIDRequest.java b/src/main/java/com/voximplant/apiclient/request/AddCallerIDRequest.java index f7c3888..87749bf 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddCallerIDRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddCallerIDRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddCallerIDRequest implements Alignable { @RequestField(name="callerid_number") /** - * The callerID number in E.164 format. + * The callerID number in E.164 format */ public String getCalleridNumber() { return this.calleridNumber; @@ -29,7 +30,7 @@ public boolean hasCalleridNumber() { } /** - * The callerID number in E.164 format. + * The callerID number in E.164 format */ public AddCallerIDRequest setCalleridNumber(String d) { this.calleridNumber = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AddDialogflowKeyRequest.java b/src/main/java/com/voximplant/apiclient/request/AddDialogflowKeyRequest.java index 8492f42..b9e7104 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddDialogflowKeyRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddDialogflowKeyRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddDialogflowKeyRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public String getApplicationId() { return this.applicationId; @@ -29,7 +30,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public AddDialogflowKeyRequest setApplicationId(String d) { this.applicationId = d; @@ -40,7 +41,7 @@ public AddDialogflowKeyRequest setApplicationId(String d) { @RequestField(name="application_name") /** - * The application name. Can be used instead of application_id. + * The application name. Can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -51,7 +52,7 @@ public boolean hasApplicationName() { } /** - * The application name. Can be used instead of application_id. + * The application name. Can be used instead of application_id */ public AddDialogflowKeyRequest setApplicationName(String d) { this.applicationName = d; @@ -62,7 +63,7 @@ public AddDialogflowKeyRequest setApplicationName(String d) { @RequestField(name="json_credentials") /** - * Dialogflow credentials, provided by JWK (Json web key). + * Dialogflow credentials, provided by JWK (Json web key) */ public String getJsonCredentials() { return this.jsonCredentials; @@ -73,7 +74,7 @@ public boolean hasJsonCredentials() { } /** - * Dialogflow credentials, provided by JWK (Json web key). + * Dialogflow credentials, provided by JWK (Json web key) */ public AddDialogflowKeyRequest setJsonCredentials(String d) { this.jsonCredentials = d; @@ -84,7 +85,7 @@ public AddDialogflowKeyRequest setJsonCredentials(String d) { @RequestField(name="description") /** - * The Dialogflow keys's description. + * The Dialogflow keys's description */ public String getDescription() { return this.description; @@ -95,7 +96,7 @@ public boolean hasDescription() { } /** - * The Dialogflow keys's description. + * The Dialogflow keys's description */ public AddDialogflowKeyRequest setDescription(String d) { this.description = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AddOutboundTestPhoneNumberRequest.java b/src/main/java/com/voximplant/apiclient/request/AddOutboundTestPhoneNumberRequest.java new file mode 100644 index 0000000..507e1a4 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/AddOutboundTestPhoneNumberRequest.java @@ -0,0 +1,63 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class AddOutboundTestPhoneNumberRequest implements Alignable { + private String phoneNumber; + + @RequestField(name="phone_number") + /** + * The personal phone number in the E.164 format + */ + public String getPhoneNumber() { + return this.phoneNumber; + } + + public boolean hasPhoneNumber() { + return this.phoneNumber != null; + } + + /** + * The personal phone number in the E.164 format + */ + public AddOutboundTestPhoneNumberRequest setPhoneNumber(String d) { + this.phoneNumber = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (phoneNumber != null) { + sb.append(aligned) + .append("\"phoneNumber\": \"") + .append(phoneNumber) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/AddPstnBlackListItemRequest.java b/src/main/java/com/voximplant/apiclient/request/AddPstnBlackListItemRequest.java index c8307c9..65c076a 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddPstnBlackListItemRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddPstnBlackListItemRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; diff --git a/src/main/java/com/voximplant/apiclient/request/AddPushCredentialRequest.java b/src/main/java/com/voximplant/apiclient/request/AddPushCredentialRequest.java index 0358cc1..bb017bf 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddPushCredentialRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddPushCredentialRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,8 +19,8 @@ public class AddPushCredentialRequest implements Alignable { @RequestField(name="push_provider_name") /** - * The push provider name. The possible values are: APPLE, APPLE_VOIP, - * GOOGLE. + * The push provider name. The possible values are APPLE, APPLE_VOIP, + * GOOGLE, HUAWEI */ public String getPushProviderName() { return this.pushProviderName; @@ -30,8 +31,8 @@ public boolean hasPushProviderName() { } /** - * The push provider name. The possible values are: APPLE, APPLE_VOIP, - * GOOGLE. + * The push provider name. The possible values are APPLE, APPLE_VOIP, + * GOOGLE, HUAWEI */ public AddPushCredentialRequest setPushProviderName(String d) { this.pushProviderName = d; @@ -42,7 +43,7 @@ public AddPushCredentialRequest setPushProviderName(String d) { @RequestField(name="push_provider_id") /** - * The push provider id. + * The push provider id. Can be used instead of push_provider_name */ public Long getPushProviderId() { return this.pushProviderId; @@ -53,7 +54,7 @@ public boolean hasPushProviderId() { } /** - * The push provider id. + * The push provider id. Can be used instead of push_provider_name */ public AddPushCredentialRequest setPushProviderId(long d) { this.pushProviderId = Long.valueOf(d); @@ -64,7 +65,7 @@ public AddPushCredentialRequest setPushProviderId(long d) { @RequestField(name="application_id") /** - * The application id. + * The application id */ public Long getApplicationId() { return this.applicationId; @@ -75,7 +76,7 @@ public boolean hasApplicationId() { } /** - * The application id. + * The application id */ public AddPushCredentialRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -86,8 +87,7 @@ public AddPushCredentialRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -98,8 +98,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public AddPushCredentialRequest setApplicationName(String d) { this.applicationName = d; @@ -110,7 +109,7 @@ public AddPushCredentialRequest setApplicationName(String d) { @RequestField(name="credential_bundle") /** - * The bundle of Android/iOS application. + * The bundle of Android/iOS/Huawei application */ public String getCredentialBundle() { return this.credentialBundle; @@ -121,7 +120,7 @@ public boolean hasCredentialBundle() { } /** - * The bundle of Android/iOS application. + * The bundle of Android/iOS/Huawei application */ public AddPushCredentialRequest setCredentialBundle(String d) { this.credentialBundle = d; @@ -132,7 +131,7 @@ public AddPushCredentialRequest setCredentialBundle(String d) { @RequestField(name="cert_content") /** - * Public and private keys in PKCS12 format. + * Public and private keys in PKCS12 format. Credentials for APPLE push */ public String getCertContent() { return this.certContent; @@ -143,7 +142,7 @@ public boolean hasCertContent() { } /** - * Public and private keys in PKCS12 format. + * Public and private keys in PKCS12 format. Credentials for APPLE push */ public AddPushCredentialRequest setCertContent(String d) { this.certContent = d; @@ -155,6 +154,7 @@ public AddPushCredentialRequest setCertContent(String d) { @RequestField(name="cert_file_name") /** * The parameter is required, when set 'cert_content' as POST body. + * Credentials for APPLE push */ public String getCertFileName() { return this.certFileName; @@ -166,6 +166,7 @@ public boolean hasCertFileName() { /** * The parameter is required, when set 'cert_content' as POST body. + * Credentials for APPLE push */ public AddPushCredentialRequest setCertFileName(String d) { this.certFileName = d; @@ -176,7 +177,7 @@ public AddPushCredentialRequest setCertFileName(String d) { @RequestField(name="cert_password") /** - * The secret password for private key. + * The secret password for private key. Credentials for APPLE push */ public String getCertPassword() { return this.certPassword; @@ -187,7 +188,7 @@ public boolean hasCertPassword() { } /** - * The secret password for private key. + * The secret password for private key. Credentials for APPLE push */ public AddPushCredentialRequest setCertPassword(String d) { this.certPassword = d; @@ -198,7 +199,8 @@ public AddPushCredentialRequest setCertPassword(String d) { @RequestField(name="is_dev_mode") /** - * Set true for use this certificate in apple's sandbox environment + * Set true to use this certificate in apple's sandbox environment. + * Credentials for APPLE push */ public Boolean getIsDevMode() { return this.isDevMode; @@ -209,7 +211,8 @@ public boolean hasIsDevMode() { } /** - * Set true for use this certificate in apple's sandbox environment + * Set true to use this certificate in apple's sandbox environment. + * Credentials for APPLE push */ public AddPushCredentialRequest setIsDevMode(boolean d) { this.isDevMode = Boolean.valueOf(d); @@ -220,7 +223,7 @@ public AddPushCredentialRequest setIsDevMode(boolean d) { @RequestField(name="sender_id") /** - * The sender id, provided by Google. + * The sender id, provided by Google. Credentials for GOOGLE push */ public String getSenderId() { return this.senderId; @@ -231,7 +234,7 @@ public boolean hasSenderId() { } /** - * The sender id, provided by Google. + * The sender id, provided by Google. Credentials for GOOGLE push */ public AddPushCredentialRequest setSenderId(String d) { this.senderId = d; @@ -242,7 +245,7 @@ public AddPushCredentialRequest setSenderId(String d) { @RequestField(name="server_key") /** - * The server key, provided by Google. + * The server key, provided by Google. Credentials for GOOGLE push */ public String getServerKey() { return this.serverKey; @@ -253,7 +256,7 @@ public boolean hasServerKey() { } /** - * The server key, provided by Google. + * The server key, provided by Google. Credentials for GOOGLE push */ public AddPushCredentialRequest setServerKey(String d) { this.serverKey = d; @@ -264,7 +267,8 @@ public AddPushCredentialRequest setServerKey(String d) { @RequestField(name="service_account_file") /** - * The service account key file, provided by Google. + * The service account key file, provided by Google. Can be used instead + * of server_key. Credentials for GOOGLE push */ public String getServiceAccountFile() { return this.serviceAccountFile; @@ -275,13 +279,80 @@ public boolean hasServiceAccountFile() { } /** - * The service account key file, provided by Google. + * The service account key file, provided by Google. Can be used instead + * of server_key. Credentials for GOOGLE push */ public AddPushCredentialRequest setServiceAccountFile(String d) { this.serviceAccountFile = d; return this; } + private String huaweiClientId; + + @RequestField(name="huawei_client_id") + /** + * The client id, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiClientId() { + return this.huaweiClientId; + } + + public boolean hasHuaweiClientId() { + return this.huaweiClientId != null; + } + + /** + * The client id, provided by Huawei. Credentials for HUAWEI push + */ + public AddPushCredentialRequest setHuaweiClientId(String d) { + this.huaweiClientId = d; + return this; + } + + private String huaweiClientSecret; + + @RequestField(name="huawei_client_secret") + /** + * The client secret, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiClientSecret() { + return this.huaweiClientSecret; + } + + public boolean hasHuaweiClientSecret() { + return this.huaweiClientSecret != null; + } + + /** + * The client secret, provided by Huawei. Credentials for HUAWEI push + */ + public AddPushCredentialRequest setHuaweiClientSecret(String d) { + this.huaweiClientSecret = d; + return this; + } + + private String huaweiApplicationId; + + @RequestField(name="huawei_application_id") + /** + * The application id, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiApplicationId() { + return this.huaweiApplicationId; + } + + public boolean hasHuaweiApplicationId() { + return this.huaweiApplicationId != null; + } + + /** + * The application id, provided by Huawei. Credentials for HUAWEI push + */ + public AddPushCredentialRequest setHuaweiApplicationId(String d) { + this.huaweiApplicationId = d; + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -387,6 +458,30 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (huaweiClientId != null) { + sb.append(aligned) + .append("\"huaweiClientId\": \"") + .append(huaweiClientId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (huaweiClientSecret != null) { + sb.append(aligned) + .append("\"huaweiClientSecret\": \"") + .append(huaweiClientSecret) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (huaweiApplicationId != null) { + sb.append(aligned) + .append("\"huaweiApplicationId\": \"") + .append(huaweiApplicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/AddQueueRequest.java b/src/main/java/com/voximplant/apiclient/request/AddQueueRequest.java index 358bb5c..f2f724f 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddQueueRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddQueueRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddQueueRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -29,7 +30,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public AddQueueRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -40,8 +41,7 @@ public AddQueueRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -52,8 +52,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public AddQueueRequest setApplicationName(String d) { this.applicationName = d; @@ -64,7 +63,7 @@ public AddQueueRequest setApplicationName(String d) { @RequestField(name="acd_queue_name") /** - * The queue name. The length must be less than 100. + * The queue name. The length must be less than 100 */ public String getAcdQueueName() { return this.acdQueueName; @@ -75,7 +74,7 @@ public boolean hasAcdQueueName() { } /** - * The queue name. The length must be less than 100. + * The queue name. The length must be less than 100 */ public AddQueueRequest setAcdQueueName(String d) { this.acdQueueName = d; @@ -86,7 +85,7 @@ public AddQueueRequest setAcdQueueName(String d) { @RequestField(name="acd_queue_priority") /** - * The integer queue priority. The highest priority is 0. + * The integer queue priority. The highest priority is 0 */ public Long getAcdQueuePriority() { return this.acdQueuePriority; @@ -97,7 +96,7 @@ public boolean hasAcdQueuePriority() { } /** - * The integer queue priority. The highest priority is 0. + * The integer queue priority. The highest priority is 0 */ public AddQueueRequest setAcdQueuePriority(long d) { this.acdQueuePriority = Long.valueOf(d); @@ -109,7 +108,7 @@ public AddQueueRequest setAcdQueuePriority(long d) { @RequestField(name="auto_binding") /** * Set false to disable the auto binding of operators to a queue by - * skills comparing. + * skills comparing */ public Boolean getAutoBinding() { return this.autoBinding; @@ -121,7 +120,7 @@ public boolean hasAutoBinding() { /** * Set false to disable the auto binding of operators to a queue by - * skills comparing. + * skills comparing */ public AddQueueRequest setAutoBinding(boolean d) { this.autoBinding = Boolean.valueOf(d); @@ -133,7 +132,7 @@ public AddQueueRequest setAutoBinding(boolean d) { @RequestField(name="service_probability") /** * The value in the range of [0.5 ... 1.0]. The value 1.0 means the - * service probability 100% in challenge with a lower priority queue. + * service probability 100% in challenge with a lower priority queue */ public Long getServiceProbability() { return this.serviceProbability; @@ -145,7 +144,7 @@ public boolean hasServiceProbability() { /** * The value in the range of [0.5 ... 1.0]. The value 1.0 means the - * service probability 100% in challenge with a lower priority queue. + * service probability 100% in challenge with a lower priority queue */ public AddQueueRequest setServiceProbability(long d) { this.serviceProbability = Long.valueOf(d); @@ -156,7 +155,7 @@ public AddQueueRequest setServiceProbability(long d) { @RequestField(name="max_queue_size") /** - * The max queue size. + * The max queue size */ public Long getMaxQueueSize() { return this.maxQueueSize; @@ -167,7 +166,7 @@ public boolean hasMaxQueueSize() { } /** - * The max queue size. + * The max queue size */ public AddQueueRequest setMaxQueueSize(long d) { this.maxQueueSize = Long.valueOf(d); @@ -180,7 +179,7 @@ public AddQueueRequest setMaxQueueSize(long d) { /** * The max predicted waiting time in minutes. The client is rejected if * the predicted waiting time is greater than the max predicted waiting - * time. + * time */ public Long getMaxWaitingTime() { return this.maxWaitingTime; @@ -193,7 +192,7 @@ public boolean hasMaxWaitingTime() { /** * The max predicted waiting time in minutes. The client is rejected if * the predicted waiting time is greater than the max predicted waiting - * time. + * time */ public AddQueueRequest setMaxWaitingTime(long d) { this.maxWaitingTime = Long.valueOf(d); @@ -205,7 +204,7 @@ public AddQueueRequest setMaxWaitingTime(long d) { @RequestField(name="average_service_time") /** * The average service time in seconds. Specify the parameter to correct - * or initialize the waiting time prediction. + * or initialize the waiting time prediction */ public Long getAverageServiceTime() { return this.averageServiceTime; @@ -217,7 +216,7 @@ public boolean hasAverageServiceTime() { /** * The average service time in seconds. Specify the parameter to correct - * or initialize the waiting time prediction. + * or initialize the waiting time prediction */ public AddQueueRequest setAverageServiceTime(long d) { this.averageServiceTime = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/AddRuleRequest.java b/src/main/java/com/voximplant/apiclient/request/AddRuleRequest.java index 8b6c2f2..c4235e6 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddRuleRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddRuleRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddRuleRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -29,7 +30,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public AddRuleRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -40,7 +41,7 @@ public AddRuleRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name, can be used instead of application_id. + * The application name, can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -51,7 +52,7 @@ public boolean hasApplicationName() { } /** - * The application name, can be used instead of application_id. + * The application name, can be used instead of application_id */ public AddRuleRequest setApplicationName(String d) { this.applicationName = d; @@ -84,7 +85,7 @@ public AddRuleRequest setRuleName(String d) { @RequestField(name="rule_pattern") /** - * The rule pattern regex. The length must be less than 64 KB. + * The rule pattern regex. The length must be less than 64 KB */ public String getRulePattern() { return this.rulePattern; @@ -95,7 +96,7 @@ public boolean hasRulePattern() { } /** - * The rule pattern regex. The length must be less than 64 KB. + * The rule pattern regex. The length must be less than 64 KB */ public AddRuleRequest setRulePattern(String d) { this.rulePattern = d; @@ -106,7 +107,7 @@ public AddRuleRequest setRulePattern(String d) { @RequestField(name="rule_pattern_exclude") /** - * The exclude pattern regex. The length must be less than 64 KB. + * The exclude pattern regex. The length must be less than 64 KB */ public String getRulePatternExclude() { return this.rulePatternExclude; @@ -117,7 +118,7 @@ public boolean hasRulePatternExclude() { } /** - * The exclude pattern regex. The length must be less than 64 KB. + * The exclude pattern regex. The length must be less than 64 KB */ public AddRuleRequest setRulePatternExclude(String d) { this.rulePatternExclude = d; @@ -128,7 +129,7 @@ public AddRuleRequest setRulePatternExclude(String d) { @RequestField(name="video_conference") /** - * Is video conference required? + * Video conference is required */ public Boolean getVideoConference() { return this.videoConference; @@ -139,7 +140,7 @@ public boolean hasVideoConference() { } /** - * Is video conference required? + * Video conference is required */ public AddRuleRequest setVideoConference(boolean d) { this.videoConference = Boolean.valueOf(d); @@ -150,7 +151,7 @@ public AddRuleRequest setVideoConference(boolean d) { @RequestField(name="scenario_id") /** - * The scenario ID list separated by the ';' symbol. + * The scenario ID list separated by semicolon (;) */ public MultiArgument getScenarioId() { return this.scenarioId; @@ -161,7 +162,7 @@ public boolean hasScenarioId() { } /** - * The scenario ID list separated by the ';' symbol. + * The scenario ID list separated by semicolon (;) */ public AddRuleRequest setScenarioId(MultiArgument d) { this.scenarioId = d; @@ -172,8 +173,8 @@ public AddRuleRequest setScenarioId(MultiArgument d) { @RequestField(name="scenario_name") /** - * The scenario name list separated by the ';' symbol. Can be used - * instead of scenario_id. + * The scenario name list separated by semicolon (;). Can be used + * instead of scenario_id */ public MultiArgument getScenarioName() { return this.scenarioName; @@ -184,8 +185,8 @@ public boolean hasScenarioName() { } /** - * The scenario name list separated by the ';' symbol. Can be used - * instead of scenario_id. + * The scenario name list separated by semicolon (;). Can be used + * instead of scenario_id */ public AddRuleRequest setScenarioName(MultiArgument d) { this.scenarioName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AddScenarioRequest.java b/src/main/java/com/voximplant/apiclient/request/AddScenarioRequest.java index efc3b25..a909524 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddScenarioRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddScenarioRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -40,7 +41,8 @@ public AddScenarioRequest setScenarioName(String d) { @RequestField(name="scenario_script") /** - * The scenario text. The length must be less than 128 KB. + * The scenario text. Use the application/x-www-form-urlencoded content + * type with UTF-8 encoding. The length must be less than 128 KB */ public String getScenarioScript() { return this.scenarioScript; @@ -51,7 +53,8 @@ public boolean hasScenarioScript() { } /** - * The scenario text. The length must be less than 128 KB. + * The scenario text. Use the application/x-www-form-urlencoded content + * type with UTF-8 encoding. The length must be less than 128 KB */ public AddScenarioRequest setScenarioScript(String d) { this.scenarioScript = d; @@ -62,7 +65,9 @@ public AddScenarioRequest setScenarioScript(String d) { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID. The new scenario binds to the specified rule. Please + * note, if you do not bind the scenario to any rule, you cannot execute + * the scenario */ public Long getRuleId() { return this.ruleId; @@ -73,7 +78,9 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID. The new scenario binds to the specified rule. Please + * note, if you do not bind the scenario to any rule, you cannot execute + * the scenario */ public AddScenarioRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -84,7 +91,7 @@ public AddScenarioRequest setRuleId(long d) { @RequestField(name="rule_name") /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public String getRuleName() { return this.ruleName; @@ -95,7 +102,7 @@ public boolean hasRuleName() { } /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public AddScenarioRequest setRuleName(String d) { this.ruleName = d; @@ -106,7 +113,7 @@ public AddScenarioRequest setRuleName(String d) { @RequestField(name="rewrite") /** - * Is the existing scenario rewrite? + * Rewrite the existing scenario */ public Boolean getRewrite() { return this.rewrite; @@ -117,7 +124,7 @@ public boolean hasRewrite() { } /** - * Is the existing scenario rewrite? + * Rewrite the existing scenario */ public AddScenarioRequest setRewrite(boolean d) { this.rewrite = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/AddSipWhiteListItemRequest.java b/src/main/java/com/voximplant/apiclient/request/AddSipWhiteListItemRequest.java index dc60de4..af0e313 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddSipWhiteListItemRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddSipWhiteListItemRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -19,7 +20,7 @@ public class AddSipWhiteListItemRequest implements Alignable { @RequestField(name="sip_whitelist_network") /** * The network address in format A.B.C.D/L or A.B.C.D/a.b.c.d (example - * 192.168.1.5/16). + * 192.168.1.5/16) */ public String getSipWhitelistNetwork() { return this.sipWhitelistNetwork; @@ -31,13 +32,35 @@ public boolean hasSipWhitelistNetwork() { /** * The network address in format A.B.C.D/L or A.B.C.D/a.b.c.d (example - * 192.168.1.5/16). + * 192.168.1.5/16) */ public AddSipWhiteListItemRequest setSipWhitelistNetwork(String d) { this.sipWhitelistNetwork = d; return this; } + private String description; + + @RequestField(name="description") + /** + * The network address description + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * The network address description + */ + public AddSipWhiteListItemRequest setDescription(String d) { + this.description = d; + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -55,6 +78,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/AddSkillRequest.java b/src/main/java/com/voximplant/apiclient/request/AddSkillRequest.java index fef3334..1910b55 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddSkillRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddSkillRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AddSkillRequest implements Alignable { @RequestField(name="skill_name") /** - * The ACD operator skill name. The length must be less than 512. + * The ACD operator skill name. The length must be less than 512 */ public String getSkillName() { return this.skillName; @@ -29,7 +30,7 @@ public boolean hasSkillName() { } /** - * The ACD operator skill name. The length must be less than 512. + * The ACD operator skill name. The length must be less than 512 */ public AddSkillRequest setSkillName(String d) { this.skillName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AddSubUserRequest.java b/src/main/java/com/voximplant/apiclient/request/AddSubUserRequest.java index 3bb0948..3bda574 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddSubUserRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddSubUserRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,10 +19,9 @@ public class AddSubUserRequest implements Alignable { @RequestField(name="new_subuser_name") /** - * Login of a new subuser for authentication, - * should be unique within the Voximplant account. The login specified - * is always converted to lowercase. + * The new subuser login for managent api authentication, should be + * unique within the Voximplant account. The login specified is always + * converted to lowercase */ public String getNewSubuserName() { return this.newSubuserName; @@ -32,10 +32,9 @@ public boolean hasNewSubuserName() { } /** - * Login of a new subuser for authentication, - * should be unique within the Voximplant account. The login specified - * is always converted to lowercase. + * The new subuser login for managent api authentication, should be + * unique within the Voximplant account. The login specified is always + * converted to lowercase */ public AddSubUserRequest setNewSubuserName(String d) { this.newSubuserName = d; @@ -46,7 +45,9 @@ public AddSubUserRequest setNewSubuserName(String d) { @RequestField(name="new_subuser_password") /** - * Password of a new subuser, plain text. + * The new subuser password. Must be at least 8 characters long and + * contain at least one uppercase and lowercase letter, one number, and + * one special character */ public String getNewSubuserPassword() { return this.newSubuserPassword; @@ -57,7 +58,9 @@ public boolean hasNewSubuserPassword() { } /** - * Password of a new subuser, plain text. + * The new subuser password. Must be at least 8 characters long and + * contain at least one uppercase and lowercase letter, one number, and + * one special character */ public AddSubUserRequest setNewSubuserPassword(String d) { this.newSubuserPassword = d; @@ -68,7 +71,7 @@ public AddSubUserRequest setNewSubuserPassword(String d) { @RequestField(name="role_id") /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public MultiArgument getRoleId() { return this.roleId; @@ -79,7 +82,7 @@ public boolean hasRoleId() { } /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public AddSubUserRequest setRoleId(MultiArgument d) { this.roleId = d; @@ -90,7 +93,7 @@ public AddSubUserRequest setRoleId(MultiArgument d) { @RequestField(name="role_name") /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public MultiArgument getRoleName() { return this.roleName; @@ -101,7 +104,7 @@ public boolean hasRoleName() { } /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public AddSubUserRequest setRoleName(MultiArgument d) { this.roleName = d; @@ -112,7 +115,7 @@ public AddSubUserRequest setRoleName(MultiArgument d) { @RequestField(name="description") /** - * Description of a new subuser. + * Description of a new subuser */ public String getDescription() { return this.description; @@ -123,7 +126,7 @@ public boolean hasDescription() { } /** - * Description of a new subuser. + * Description of a new subuser */ public AddSubUserRequest setDescription(String d) { this.description = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AddUserRequest.java b/src/main/java/com/voximplant/apiclient/request/AddUserRequest.java index 9eb6e4a..a3c12bf 100644 --- a/src/main/java/com/voximplant/apiclient/request/AddUserRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AddUserRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -40,7 +41,7 @@ public AddUserRequest setUserName(String d) { @RequestField(name="user_display_name") /** - * The user display name. The length must be less than 256. + * The user display name. The length must be less than 256 */ public String getUserDisplayName() { return this.userDisplayName; @@ -51,7 +52,7 @@ public boolean hasUserDisplayName() { } /** - * The user display name. The length must be less than 256. + * The user display name. The length must be less than 256 */ public AddUserRequest setUserDisplayName(String d) { this.userDisplayName = d; @@ -62,7 +63,9 @@ public AddUserRequest setUserDisplayName(String d) { @RequestField(name="user_password") /** - * The user password. The length must be at least 6 symbols. + * The user password. Must be at least 8 characters long and contain at + * least one uppercase and lowercase letter, one number, and one special + * character */ public String getUserPassword() { return this.userPassword; @@ -73,7 +76,9 @@ public boolean hasUserPassword() { } /** - * The user password. The length must be at least 6 symbols. + * The user password. Must be at least 8 characters long and contain at + * least one uppercase and lowercase letter, one number, and one special + * character */ public AddUserRequest setUserPassword(String d) { this.userPassword = d; @@ -85,7 +90,7 @@ public AddUserRequest setUserPassword(String d) { @RequestField(name="application_id") /** * The application ID which a new user will be bound to. Can be used - * instead of the application_name parameter. + * instead of the application_name parameter */ public Long getApplicationId() { return this.applicationId; @@ -97,7 +102,7 @@ public boolean hasApplicationId() { /** * The application ID which a new user will be bound to. Can be used - * instead of the application_name parameter. + * instead of the application_name parameter */ public AddUserRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -109,7 +114,7 @@ public AddUserRequest setApplicationId(long d) { @RequestField(name="application_name") /** * The application name which a new user will be bound to. Can be used - * instead of the application_id parameter. + * instead of the application_id parameter */ public String getApplicationName() { return this.applicationName; @@ -121,7 +126,7 @@ public boolean hasApplicationName() { /** * The application name which a new user will be bound to. Can be used - * instead of the application_id parameter. + * instead of the application_id parameter */ public AddUserRequest setApplicationName(String d) { this.applicationName = d; @@ -133,7 +138,7 @@ public AddUserRequest setApplicationName(String d) { @RequestField(name="parent_accounting") /** * 'True' if the user will use the parent account's money, 'false' if - * the user will have a separate balance. + * the user will have a separate balance */ public Boolean getParentAccounting() { return this.parentAccounting; @@ -145,7 +150,7 @@ public boolean hasParentAccounting() { /** * 'True' if the user will use the parent account's money, 'false' if - * the user will have a separate balance. + * the user will have a separate balance */ public AddUserRequest setParentAccounting(boolean d) { this.parentAccounting = Boolean.valueOf(d); @@ -156,7 +161,7 @@ public AddUserRequest setParentAccounting(boolean d) { @RequestField(name="mobile_phone") /** - * The user mobile phone. The length must be less than 50. + * The user mobile phone. The length must be less than 50 */ public String getMobilePhone() { return this.mobilePhone; @@ -167,7 +172,7 @@ public boolean hasMobilePhone() { } /** - * The user mobile phone. The length must be less than 50. + * The user mobile phone. The length must be less than 50 */ public AddUserRequest setMobilePhone(String d) { this.mobilePhone = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AttachAdminRoleRequest.java b/src/main/java/com/voximplant/apiclient/request/AttachAdminRoleRequest.java index eecc9e3..3b628df 100644 --- a/src/main/java/com/voximplant/apiclient/request/AttachAdminRoleRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AttachAdminRoleRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class AttachAdminRoleRequest implements Alignable { @RequestField(name="required_admin_user_id") /** - * The admin user ID list separated by the ';' symbol or the 'all' value. + * The admin user ID list separated by semicolon (;). Use the 'all' + * value to select all admin users */ public MultiArgument getRequiredAdminUserId() { return this.requiredAdminUserId; @@ -29,7 +31,8 @@ public boolean hasRequiredAdminUserId() { } /** - * The admin user ID list separated by the ';' symbol or the 'all' value. + * The admin user ID list separated by semicolon (;). Use the 'all' + * value to select all admin users */ public AttachAdminRoleRequest setRequiredAdminUserId(MultiArgument d) { this.requiredAdminUserId = d; @@ -41,7 +44,7 @@ public AttachAdminRoleRequest setRequiredAdminUserId(MultiArgument d) { @RequestField(name="required_admin_user_name") /** * The admin user name to bind, can be used instead of - * required_admin_user_id. + * required_admin_user_id */ public MultiArgument getRequiredAdminUserName() { return this.requiredAdminUserName; @@ -53,7 +56,7 @@ public boolean hasRequiredAdminUserName() { /** * The admin user name to bind, can be used instead of - * required_admin_user_id. + * required_admin_user_id */ public AttachAdminRoleRequest setRequiredAdminUserName(MultiArgument d) { this.requiredAdminUserName = d; @@ -65,9 +68,9 @@ public AttachAdminRoleRequest setRequiredAdminUserName(MultiArgument d) @RequestField(name="admin_role_id") /** * The role(s) ID created via Managing - * Admin Roles methods. The attached admin role ID list separated by - * the ';' symbol or the 'all' value. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The attached admin role ID list separated by semicolon (;). + * Use the 'all' value to select alladmin roles */ public MultiArgument getAdminRoleId() { return this.adminRoleId; @@ -79,9 +82,9 @@ public boolean hasAdminRoleId() { /** * The role(s) ID created via Managing - * Admin Roles methods. The attached admin role ID list separated by - * the ';' symbol or the 'all' value. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The attached admin role ID list separated by semicolon (;). + * Use the 'all' value to select alladmin roles */ public AttachAdminRoleRequest setAdminRoleId(MultiArgument d) { this.adminRoleId = d; @@ -93,9 +96,9 @@ public AttachAdminRoleRequest setAdminRoleId(MultiArgument d) { @RequestField(name="admin_role_name") /** * The role(s) name(s) created via Managing - * Admin Roles methods. The admin role name to attach, can be used - * instead of admin_role_id. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The admin role name to attach, can be used instead of + * admin_role_id */ public MultiArgument getAdminRoleName() { return this.adminRoleName; @@ -107,9 +110,9 @@ public boolean hasAdminRoleName() { /** * The role(s) name(s) created via Managing - * Admin Roles methods. The admin role name to attach, can be used - * instead of admin_role_id. + * href='/docs/references/httpapi/adminroles'>Managing Admin Roles + * methods. The admin role name to attach, can be used instead of + * admin_role_id */ public AttachAdminRoleRequest setAdminRoleName(MultiArgument d) { this.adminRoleName = d; @@ -120,7 +123,7 @@ public AttachAdminRoleRequest setAdminRoleName(MultiArgument d) { @RequestField(name="mode") /** - * The merge mode. The following values are possible: add, del, set. + * The merge mode. The following values are possible: add, del, set */ public String getMode() { return this.mode; @@ -131,7 +134,7 @@ public boolean hasMode() { } /** - * The merge mode. The following values are possible: add, del, set. + * The merge mode. The following values are possible: add, del, set */ public AttachAdminRoleRequest setMode(String d) { this.mode = d; diff --git a/src/main/java/com/voximplant/apiclient/request/AttachPhoneNumberRequest.java b/src/main/java/com/voximplant/apiclient/request/AttachPhoneNumberRequest.java index 9b225f1..80ac1fc 100644 --- a/src/main/java/com/voximplant/apiclient/request/AttachPhoneNumberRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/AttachPhoneNumberRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class AttachPhoneNumberRequest implements Alignable { @RequestField(name="phone_count") /** - * The phone count to attach. + * The phone count to attach */ public Long getPhoneCount() { return this.phoneCount; @@ -29,7 +30,7 @@ public boolean hasPhoneCount() { } /** - * The phone count to attach. + * The phone count to attach */ public AttachPhoneNumberRequest setPhoneCount(long d) { this.phoneCount = Long.valueOf(d); @@ -41,7 +42,7 @@ public AttachPhoneNumberRequest setPhoneCount(long d) { @RequestField(name="phone_number") /** * The phone number that can be used instead of phone_count. See - * the [GetNewPhoneNumbers] method. + * the [GetNewPhoneNumbers] method */ public MultiArgument getPhoneNumber() { return this.phoneNumber; @@ -53,7 +54,7 @@ public boolean hasPhoneNumber() { /** * The phone number that can be used instead of phone_count. See - * the [GetNewPhoneNumbers] method. + * the [GetNewPhoneNumbers] method */ public AttachPhoneNumberRequest setPhoneNumber(MultiArgument d) { this.phoneNumber = d; @@ -64,7 +65,7 @@ public AttachPhoneNumberRequest setPhoneNumber(MultiArgument d) { @RequestField(name="country_code") /** - * The country code. + * The country code */ public String getCountryCode() { return this.countryCode; @@ -75,7 +76,7 @@ public boolean hasCountryCode() { } /** - * The country code. + * The country code */ public AttachPhoneNumberRequest setCountryCode(String d) { this.countryCode = d; @@ -86,7 +87,7 @@ public AttachPhoneNumberRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -97,7 +98,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public AttachPhoneNumberRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -109,7 +110,7 @@ public AttachPhoneNumberRequest setPhoneCategoryName(String d) { @RequestField(name="country_state") /** * The country state. See the [GetPhoneNumberCategories] and - * [GetPhoneNumberCountryStates] methods. + * [GetPhoneNumberCountryStates] methods */ public String getCountryState() { return this.countryState; @@ -121,7 +122,7 @@ public boolean hasCountryState() { /** * The country state. See the [GetPhoneNumberCategories] and - * [GetPhoneNumberCountryStates] methods. + * [GetPhoneNumberCountryStates] methods */ public AttachPhoneNumberRequest setCountryState(String d) { this.countryState = d; @@ -132,7 +133,7 @@ public AttachPhoneNumberRequest setCountryState(String d) { @RequestField(name="phone_region_id") /** - * The phone region ID. See the [GetPhoneNumberRegions] method. + * The phone region ID. See the [GetPhoneNumberRegions] method */ public Long getPhoneRegionId() { return this.phoneRegionId; @@ -143,7 +144,7 @@ public boolean hasPhoneRegionId() { } /** - * The phone region ID. See the [GetPhoneNumberRegions] method. + * The phone region ID. See the [GetPhoneNumberRegions] method */ public AttachPhoneNumberRequest setPhoneRegionId(long d) { this.phoneRegionId = Long.valueOf(d); @@ -154,7 +155,7 @@ public AttachPhoneNumberRequest setPhoneRegionId(long d) { @RequestField(name="regulation_address_id") /** - * The phone regulation address ID. + * The phone regulation address ID */ public Long getRegulationAddressId() { return this.regulationAddressId; @@ -165,7 +166,7 @@ public boolean hasRegulationAddressId() { } /** - * The phone regulation address ID. + * The phone regulation address ID */ public AttachPhoneNumberRequest setRegulationAddressId(long d) { this.regulationAddressId = Long.valueOf(d); @@ -176,7 +177,7 @@ public AttachPhoneNumberRequest setRegulationAddressId(long d) { @RequestField(name="force_verification") /** - * The force verification flag. + * The force verification flag */ public Boolean getForceVerification() { return this.forceVerification; @@ -187,7 +188,7 @@ public boolean hasForceVerification() { } /** - * The force verification flag. + * The force verification flag */ public AttachPhoneNumberRequest setForceVerification(boolean d) { this.forceVerification = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/BindDialogflowKeysRequest.java b/src/main/java/com/voximplant/apiclient/request/BindDialogflowKeysRequest.java index ba2ea88..2c997fc 100644 --- a/src/main/java/com/voximplant/apiclient/request/BindDialogflowKeysRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/BindDialogflowKeysRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -40,8 +41,8 @@ public BindDialogflowKeysRequest setDialogflowKeyId(long d) { @RequestField(name="application_id") /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public MultiArgument getApplicationId() { return this.applicationId; @@ -52,8 +53,8 @@ public boolean hasApplicationId() { } /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public BindDialogflowKeysRequest setApplicationId(MultiArgument d) { this.applicationId = d; @@ -64,7 +65,7 @@ public BindDialogflowKeysRequest setApplicationId(MultiArgument d) { @RequestField(name="bind") /** - * Set to false to unbind. Default value is true. + * Set to false to unbind. Default value is true */ public Boolean getBind() { return this.bind; @@ -75,7 +76,7 @@ public boolean hasBind() { } /** - * Set to false to unbind. Default value is true. + * Set to false to unbind. Default value is true */ public BindDialogflowKeysRequest setBind(boolean d) { this.bind = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/BindPhoneNumberToApplicationRequest.java b/src/main/java/com/voximplant/apiclient/request/BindPhoneNumberToApplicationRequest.java index a6aed36..0dbd259 100644 --- a/src/main/java/com/voximplant/apiclient/request/BindPhoneNumberToApplicationRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/BindPhoneNumberToApplicationRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class BindPhoneNumberToApplicationRequest implements Alignable { @RequestField(name="phone_id") /** - * The phone ID list separated by the ';' symbol or the 'all' value. + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids */ public MultiArgument getPhoneId() { return this.phoneId; @@ -29,7 +31,8 @@ public boolean hasPhoneId() { } /** - * The phone ID list separated by the ';' symbol or the 'all' value. + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids */ public BindPhoneNumberToApplicationRequest setPhoneId(MultiArgument d) { this.phoneId = d; @@ -40,8 +43,8 @@ public BindPhoneNumberToApplicationRequest setPhoneId(MultiArgument d) { @RequestField(name="phone_number") /** - * The phone number list separated by the ';' symbol that can be used - * instead of phone_id. + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id */ public MultiArgument getPhoneNumber() { return this.phoneNumber; @@ -52,8 +55,8 @@ public boolean hasPhoneNumber() { } /** - * The phone number list separated by the ';' symbol that can be used - * instead of phone_id. + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id */ public BindPhoneNumberToApplicationRequest setPhoneNumber(MultiArgument d) { this.phoneNumber = d; @@ -64,7 +67,7 @@ public BindPhoneNumberToApplicationRequest setPhoneNumber(MultiArgument @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -75,7 +78,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public BindPhoneNumberToApplicationRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -86,8 +89,7 @@ public BindPhoneNumberToApplicationRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -98,8 +100,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public BindPhoneNumberToApplicationRequest setApplicationName(String d) { this.applicationName = d; @@ -110,7 +111,7 @@ public BindPhoneNumberToApplicationRequest setApplicationName(String d) { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID */ public Long getRuleId() { return this.ruleId; @@ -121,7 +122,7 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID */ public BindPhoneNumberToApplicationRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -132,7 +133,7 @@ public BindPhoneNumberToApplicationRequest setRuleId(long d) { @RequestField(name="rule_name") /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public String getRuleName() { return this.ruleName; @@ -143,7 +144,7 @@ public boolean hasRuleName() { } /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public BindPhoneNumberToApplicationRequest setRuleName(String d) { this.ruleName = d; @@ -154,7 +155,7 @@ public BindPhoneNumberToApplicationRequest setRuleName(String d) { @RequestField(name="bind") /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public Boolean getBind() { return this.bind; @@ -165,7 +166,7 @@ public boolean hasBind() { } /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public BindPhoneNumberToApplicationRequest setBind(boolean d) { this.bind = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/BindPushCredentialRequest.java b/src/main/java/com/voximplant/apiclient/request/BindPushCredentialRequest.java index 9bf3c9a..2ba3177 100644 --- a/src/main/java/com/voximplant/apiclient/request/BindPushCredentialRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/BindPushCredentialRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class BindPushCredentialRequest implements Alignable { @RequestField(name="push_credential_id") /** - * The push credentials ID list separated by the ';' symbol. + * The push credentials ID list separated by semicolon (;) */ public MultiArgument getPushCredentialId() { return this.pushCredentialId; @@ -29,7 +30,7 @@ public boolean hasPushCredentialId() { } /** - * The push credentials ID list separated by the ';' symbol. + * The push credentials ID list separated by semicolon (;) */ public BindPushCredentialRequest setPushCredentialId(MultiArgument d) { this.pushCredentialId = d; @@ -40,8 +41,8 @@ public BindPushCredentialRequest setPushCredentialId(MultiArgument d) { @RequestField(name="application_id") /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public MultiArgument getApplicationId() { return this.applicationId; @@ -52,8 +53,8 @@ public boolean hasApplicationId() { } /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public BindPushCredentialRequest setApplicationId(MultiArgument d) { this.applicationId = d; @@ -64,7 +65,7 @@ public BindPushCredentialRequest setApplicationId(MultiArgument d) { @RequestField(name="bind") /** - * Set to false for unbind. Default value is true. + * Set to false for unbind. Default value is true */ public Boolean getBind() { return this.bind; @@ -75,7 +76,7 @@ public boolean hasBind() { } /** - * Set to false for unbind. Default value is true. + * Set to false for unbind. Default value is true */ public BindPushCredentialRequest setBind(boolean d) { this.bind = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/BindScenarioRequest.java b/src/main/java/com/voximplant/apiclient/request/BindScenarioRequest.java index fca6eaa..d2d2c8f 100644 --- a/src/main/java/com/voximplant/apiclient/request/BindScenarioRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/BindScenarioRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class BindScenarioRequest implements Alignable { @RequestField(name="scenario_id") /** - * The scenario ID list separated by the ';' symbol. + * The scenario ID list separated by semicolon (;) */ public MultiArgument getScenarioId() { return this.scenarioId; @@ -29,7 +30,7 @@ public boolean hasScenarioId() { } /** - * The scenario ID list separated by the ';' symbol. + * The scenario ID list separated by semicolon (;) */ public BindScenarioRequest setScenarioId(MultiArgument d) { this.scenarioId = d; @@ -40,8 +41,8 @@ public BindScenarioRequest setScenarioId(MultiArgument d) { @RequestField(name="scenario_name") /** - * The scenario name list separated by the ';' symbol. Can be used - * instead of scenario_id. + * The scenario name list separated by semicolon (;). Can be used + * instead of scenario_id */ public MultiArgument getScenarioName() { return this.scenarioName; @@ -52,8 +53,8 @@ public boolean hasScenarioName() { } /** - * The scenario name list separated by the ';' symbol. Can be used - * instead of scenario_id. + * The scenario name list separated by semicolon (;). Can be used + * instead of scenario_id */ public BindScenarioRequest setScenarioName(MultiArgument d) { this.scenarioName = d; @@ -64,7 +65,8 @@ public BindScenarioRequest setScenarioName(MultiArgument d) { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID to bind the scenario. The rule and the scenario need to + * be in the same application */ public Long getRuleId() { return this.ruleId; @@ -75,7 +77,8 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID to bind the scenario. The rule and the scenario need to + * be in the same application */ public BindScenarioRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -86,7 +89,7 @@ public BindScenarioRequest setRuleId(long d) { @RequestField(name="rule_name") /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public String getRuleName() { return this.ruleName; @@ -97,7 +100,7 @@ public boolean hasRuleName() { } /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public BindScenarioRequest setRuleName(String d) { this.ruleName = d; @@ -108,7 +111,7 @@ public BindScenarioRequest setRuleName(String d) { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -119,7 +122,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public BindScenarioRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -130,8 +133,7 @@ public BindScenarioRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -142,8 +144,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public BindScenarioRequest setApplicationName(String d) { this.applicationName = d; @@ -154,7 +155,7 @@ public BindScenarioRequest setApplicationName(String d) { @RequestField(name="bind") /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public Boolean getBind() { return this.bind; @@ -165,7 +166,7 @@ public boolean hasBind() { } /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public BindScenarioRequest setBind(boolean d) { this.bind = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/BindSipRegistrationRequest.java b/src/main/java/com/voximplant/apiclient/request/BindSipRegistrationRequest.java index 314aaa4..07f09b1 100644 --- a/src/main/java/com/voximplant/apiclient/request/BindSipRegistrationRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/BindSipRegistrationRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -41,7 +42,7 @@ public BindSipRegistrationRequest setSipRegistrationId(long d) { @RequestField(name="application_id") /** * The application ID which the SIP registration will be bound to. Can - * be used instead of the application_name parameter. + * be used instead of the application_name parameter */ public Long getApplicationId() { return this.applicationId; @@ -53,7 +54,7 @@ public boolean hasApplicationId() { /** * The application ID which the SIP registration will be bound to. Can - * be used instead of the application_name parameter. + * be used instead of the application_name parameter */ public BindSipRegistrationRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -65,7 +66,7 @@ public BindSipRegistrationRequest setApplicationId(long d) { @RequestField(name="application_name") /** * The application name which the SIP registration will be bound to. Can - * be used instead of the application_id parameter. + * be used instead of the application_id parameter */ public String getApplicationName() { return this.applicationName; @@ -77,7 +78,7 @@ public boolean hasApplicationName() { /** * The application name which the SIP registration will be bound to. Can - * be used instead of the application_id parameter. + * be used instead of the application_id parameter */ public BindSipRegistrationRequest setApplicationName(String d) { this.applicationName = d; @@ -89,7 +90,7 @@ public BindSipRegistrationRequest setApplicationName(String d) { @RequestField(name="rule_id") /** * The rule ID which the SIP registration will be bound to. Can be used - * instead of the rule_name parameter. + * instead of the rule_name parameter */ public Long getRuleId() { return this.ruleId; @@ -101,7 +102,7 @@ public boolean hasRuleId() { /** * The rule ID which the SIP registration will be bound to. Can be used - * instead of the rule_name parameter. + * instead of the rule_name parameter */ public BindSipRegistrationRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -113,7 +114,7 @@ public BindSipRegistrationRequest setRuleId(long d) { @RequestField(name="rule_name") /** * The rule name which the SIP registration will be bound to. Can be - * used instead of the rule_id parameter. + * used instead of the rule_id parameter */ public String getRuleName() { return this.ruleName; @@ -125,7 +126,7 @@ public boolean hasRuleName() { /** * The rule name which the SIP registration will be bound to. Can be - * used instead of the rule_id parameter. + * used instead of the rule_id parameter */ public BindSipRegistrationRequest setRuleName(String d) { this.ruleName = d; @@ -137,7 +138,7 @@ public BindSipRegistrationRequest setRuleName(String d) { @RequestField(name="user_id") /** * The user ID which the SIP registration will be bound to. Can be used - * instead of the user_name parameter. + * instead of the user_name parameter */ public Long getUserId() { return this.userId; @@ -149,7 +150,7 @@ public boolean hasUserId() { /** * The user ID which the SIP registration will be bound to. Can be used - * instead of the user_name parameter. + * instead of the user_name parameter */ public BindSipRegistrationRequest setUserId(long d) { this.userId = Long.valueOf(d); @@ -161,7 +162,7 @@ public BindSipRegistrationRequest setUserId(long d) { @RequestField(name="user_name") /** * The user name which the SIP registration will be bound to. Can be - * used instead of the user_id parameter. + * used instead of the user_id parameter */ public String getUserName() { return this.userName; @@ -173,7 +174,7 @@ public boolean hasUserName() { /** * The user name which the SIP registration will be bound to. Can be - * used instead of the user_id parameter. + * used instead of the user_id parameter */ public BindSipRegistrationRequest setUserName(String d) { this.userName = d; @@ -184,7 +185,7 @@ public BindSipRegistrationRequest setUserName(String d) { @RequestField(name="bind") /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public Boolean getBind() { return this.bind; @@ -195,7 +196,7 @@ public boolean hasBind() { } /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public BindSipRegistrationRequest setBind(boolean d) { this.bind = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/BindSkillRequest.java b/src/main/java/com/voximplant/apiclient/request/BindSkillRequest.java index 23e1c33..98251a4 100644 --- a/src/main/java/com/voximplant/apiclient/request/BindSkillRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/BindSkillRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class BindSkillRequest implements Alignable { @RequestField(name="skill_id") /** - * The skill ID list separated by the ';' symbol or the 'all' value. + * The skill ID list separated by semicolon (;). Use the 'all' value to + * select all skills */ public MultiArgument getSkillId() { return this.skillId; @@ -29,7 +31,8 @@ public boolean hasSkillId() { } /** - * The skill ID list separated by the ';' symbol or the 'all' value. + * The skill ID list separated by semicolon (;). Use the 'all' value to + * select all skills */ public BindSkillRequest setSkillId(MultiArgument d) { this.skillId = d; @@ -40,8 +43,8 @@ public BindSkillRequest setSkillId(MultiArgument d) { @RequestField(name="skill_name") /** - * The skill name list separated by the ';' symbol. Can be used instead - * of skill_id. + * The skill name list separated by semicolon (;). Can be used instead + * of skill_id */ public MultiArgument getSkillName() { return this.skillName; @@ -52,8 +55,8 @@ public boolean hasSkillName() { } /** - * The skill name list separated by the ';' symbol. Can be used instead - * of skill_id. + * The skill name list separated by semicolon (;). Can be used instead + * of skill_id */ public BindSkillRequest setSkillName(MultiArgument d) { this.skillName = d; @@ -64,7 +67,8 @@ public BindSkillRequest setSkillName(MultiArgument d) { @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public MultiArgument getUserId() { return this.userId; @@ -75,7 +79,8 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public BindSkillRequest setUserId(MultiArgument d) { this.userId = d; @@ -86,8 +91,8 @@ public BindSkillRequest setUserId(MultiArgument d) { @RequestField(name="user_name") /** - * The user name list separated by the ';' symbol. user_name can - * be used instead of user_id. + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id */ public MultiArgument getUserName() { return this.userName; @@ -98,8 +103,8 @@ public boolean hasUserName() { } /** - * The user name list separated by the ';' symbol. user_name can - * be used instead of user_id. + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id */ public BindSkillRequest setUserName(MultiArgument d) { this.userName = d; @@ -110,7 +115,8 @@ public BindSkillRequest setUserName(MultiArgument d) { @RequestField(name="acd_queue_id") /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public MultiArgument getAcdQueueId() { return this.acdQueueId; @@ -121,7 +127,8 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public BindSkillRequest setAcdQueueId(MultiArgument d) { this.acdQueueId = d; @@ -133,7 +140,7 @@ public BindSkillRequest setAcdQueueId(MultiArgument d) { @RequestField(name="acd_queue_name") /** * The ACD queue name that can be used instead of acd_queue_id. - * The ACD queue name list separated by the ';' symbol. + * The ACD queue name list separated by semicolon (;) */ public MultiArgument getAcdQueueName() { return this.acdQueueName; @@ -145,7 +152,7 @@ public boolean hasAcdQueueName() { /** * The ACD queue name that can be used instead of acd_queue_id. - * The ACD queue name list separated by the ';' symbol. + * The ACD queue name list separated by semicolon (;) */ public BindSkillRequest setAcdQueueName(MultiArgument d) { this.acdQueueName = d; @@ -157,7 +164,7 @@ public BindSkillRequest setAcdQueueName(MultiArgument d) { @RequestField(name="application_id") /** * The application ID. It is required if the user_name is - * specified. + * specified */ public Long getApplicationId() { return this.applicationId; @@ -169,7 +176,7 @@ public boolean hasApplicationId() { /** * The application ID. It is required if the user_name is - * specified. + * specified */ public BindSkillRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -180,8 +187,7 @@ public BindSkillRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -192,8 +198,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public BindSkillRequest setApplicationName(String d) { this.applicationName = d; @@ -204,7 +209,7 @@ public BindSkillRequest setApplicationName(String d) { @RequestField(name="bind") /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public Boolean getBind() { return this.bind; @@ -215,7 +220,7 @@ public boolean hasBind() { } /** - * Bind or unbind? + * Bind or unbind (set true or false respectively) */ public BindSkillRequest setBind(boolean d) { this.bind = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/BindUserToQueueRequest.java b/src/main/java/com/voximplant/apiclient/request/BindUserToQueueRequest.java index 23d880f..2fc95e3 100644 --- a/src/main/java/com/voximplant/apiclient/request/BindUserToQueueRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/BindUserToQueueRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class BindUserToQueueRequest implements Alignable { @RequestField(name="bind") /** - * Bind or unbind users. + * Bind or unbind users */ public Boolean getBind() { return this.bind; @@ -29,7 +30,7 @@ public boolean hasBind() { } /** - * Bind or unbind users. + * Bind or unbind users */ public BindUserToQueueRequest setBind(boolean d) { this.bind = Boolean.valueOf(d); @@ -40,7 +41,7 @@ public BindUserToQueueRequest setBind(boolean d) { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -51,7 +52,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public BindUserToQueueRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -62,8 +63,7 @@ public BindUserToQueueRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -74,8 +74,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public BindUserToQueueRequest setApplicationName(String d) { this.applicationName = d; @@ -86,8 +85,8 @@ public BindUserToQueueRequest setApplicationName(String d) { @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol or the 'all' value to - * specify all users bound to the application. + * The user ID list separated by semicolon (;). Use the 'all' value to + * specify all users bound to the application */ public MultiArgument getUserId() { return this.userId; @@ -98,8 +97,8 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol or the 'all' value to - * specify all users bound to the application. + * The user ID list separated by semicolon (;). Use the 'all' value to + * specify all users bound to the application */ public BindUserToQueueRequest setUserId(MultiArgument d) { this.userId = d; @@ -110,8 +109,8 @@ public BindUserToQueueRequest setUserId(MultiArgument d) { @RequestField(name="user_name") /** - * The user name list separated by the ';' symbol. user_name can - * be used instead of user_id. + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id */ public MultiArgument getUserName() { return this.userName; @@ -122,8 +121,8 @@ public boolean hasUserName() { } /** - * The user name list separated by the ';' symbol. user_name can - * be used instead of user_id. + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id */ public BindUserToQueueRequest setUserName(MultiArgument d) { this.userName = d; @@ -134,8 +133,8 @@ public BindUserToQueueRequest setUserName(MultiArgument d) { @RequestField(name="acd_queue_id") /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value - * to specify all queues bound to the application. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to specify all queues bound to the application */ public MultiArgument getAcdQueueId() { return this.acdQueueId; @@ -146,8 +145,8 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value - * to specify all queues bound to the application. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to specify all queues bound to the application */ public BindUserToQueueRequest setAcdQueueId(MultiArgument d) { this.acdQueueId = d; @@ -159,7 +158,7 @@ public BindUserToQueueRequest setAcdQueueId(MultiArgument d) { @RequestField(name="acd_queue_name") /** * The queue name that can be used instead of acd_queue_id. The - * queue name list separated by the ';' symbol. + * queue name list separated by semicolon (;) */ public MultiArgument getAcdQueueName() { return this.acdQueueName; @@ -171,7 +170,7 @@ public boolean hasAcdQueueName() { /** * The queue name that can be used instead of acd_queue_id. The - * queue name list separated by the ';' symbol. + * queue name list separated by semicolon (;) */ public BindUserToQueueRequest setAcdQueueName(MultiArgument d) { this.acdQueueName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/ChangeAccountPlanRequest.java b/src/main/java/com/voximplant/apiclient/request/ChangeAccountPlanRequest.java new file mode 100644 index 0000000..2d4c004 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/ChangeAccountPlanRequest.java @@ -0,0 +1,95 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class ChangeAccountPlanRequest implements Alignable { + private String planType; + + @RequestField(name="plan_type") + /** + * The plan type to config. The possible values are IM, MAU + */ + public String getPlanType() { + return this.planType; + } + + public boolean hasPlanType() { + return this.planType != null; + } + + /** + * The plan type to config. The possible values are IM, MAU + */ + public ChangeAccountPlanRequest setPlanType(String d) { + this.planType = d; + return this; + } + + private Long planSubscriptionTemplateId; + + @RequestField(name="plan_subscription_template_id") + /** + * The new plan ID with a price larger than the current plan's (see + * [GetAvailablePlans]) + */ + public Long getPlanSubscriptionTemplateId() { + return this.planSubscriptionTemplateId; + } + + public boolean hasPlanSubscriptionTemplateId() { + return this.planSubscriptionTemplateId != null; + } + + /** + * The new plan ID with a price larger than the current plan's (see + * [GetAvailablePlans]) + */ + public ChangeAccountPlanRequest setPlanSubscriptionTemplateId(long d) { + this.planSubscriptionTemplateId = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (planType != null) { + sb.append(aligned) + .append("\"planType\": \"") + .append(planType) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (planSubscriptionTemplateId != null) { + sb.append(aligned) + .append("\"planSubscriptionTemplateId\": \"") + .append(planSubscriptionTemplateId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/ChargeAccountRequest.java b/src/main/java/com/voximplant/apiclient/request/ChargeAccountRequest.java index c3e9cf1..c47d893 100644 --- a/src/main/java/com/voximplant/apiclient/request/ChargeAccountRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/ChargeAccountRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,8 +19,9 @@ public class ChargeAccountRequest implements Alignable { @RequestField(name="phone_id") /** - * The phone ID list separated by the ';' symbol or the 'all' value. You - * should specify the phones having the auto_charge=false. + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids. You should specify the phones having the + * auto_charge=false */ public MultiArgument getPhoneId() { return this.phoneId; @@ -30,8 +32,9 @@ public boolean hasPhoneId() { } /** - * The phone ID list separated by the ';' symbol or the 'all' value. You - * should specify the phones having the auto_charge=false. + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids. You should specify the phones having the + * auto_charge=false */ public ChargeAccountRequest setPhoneId(MultiArgument d) { this.phoneId = d; @@ -42,9 +45,9 @@ public ChargeAccountRequest setPhoneId(MultiArgument d) { @RequestField(name="phone_number") /** - * The phone number list separated by the ';' symbol or the 'all' value. - * Can be used instead of phone_id. You should specify the phones - * having the auto_charge=false. + * The phone number list separated by semicolon (;). Use the 'all' value + * to select all phone numbers. Can be used instead of phone_id. + * You should specify the phones having the auto_charge=false */ public MultiArgument getPhoneNumber() { return this.phoneNumber; @@ -55,9 +58,9 @@ public boolean hasPhoneNumber() { } /** - * The phone number list separated by the ';' symbol or the 'all' value. - * Can be used instead of phone_id. You should specify the phones - * having the auto_charge=false. + * The phone number list separated by semicolon (;). Use the 'all' value + * to select all phone numbers. Can be used instead of phone_id. + * You should specify the phones having the auto_charge=false */ public ChargeAccountRequest setPhoneNumber(MultiArgument d) { this.phoneNumber = d; diff --git a/src/main/java/com/voximplant/apiclient/request/CheckAuthorizedAccountIPRequest.java b/src/main/java/com/voximplant/apiclient/request/CheckAuthorizedAccountIPRequest.java index 4fe7b63..4f2cab4 100644 --- a/src/main/java/com/voximplant/apiclient/request/CheckAuthorizedAccountIPRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/CheckAuthorizedAccountIPRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class CheckAuthorizedAccountIPRequest implements Alignable { @RequestField(name="authorized_ip") /** - * The IP4 to test. + * The IP4 to test */ public String getAuthorizedIp() { return this.authorizedIp; @@ -29,7 +30,7 @@ public boolean hasAuthorizedIp() { } /** - * The IP4 to test. + * The IP4 to test */ public CheckAuthorizedAccountIPRequest setAuthorizedIp(String d) { this.authorizedIp = d; diff --git a/src/main/java/com/voximplant/apiclient/request/ControlSmsRequest.java b/src/main/java/com/voximplant/apiclient/request/ControlSmsRequest.java index 0cd292f..2c00805 100644 --- a/src/main/java/com/voximplant/apiclient/request/ControlSmsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/ControlSmsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class ControlSmsRequest implements Alignable { @RequestField(name="phone_number") /** - * The phone number. + * The phone number */ public String getPhoneNumber() { return this.phoneNumber; @@ -29,7 +30,7 @@ public boolean hasPhoneNumber() { } /** - * The phone number. + * The phone number */ public ControlSmsRequest setPhoneNumber(String d) { this.phoneNumber = d; @@ -41,7 +42,7 @@ public ControlSmsRequest setPhoneNumber(String d) { @RequestField(name="command") /** * The SMS control command. The following values are possible: enable, - * disable. + * disable */ public String getCommand() { return this.command; @@ -53,7 +54,7 @@ public boolean hasCommand() { /** * The SMS control command. The following values are possible: enable, - * disable. + * disable */ public ControlSmsRequest setCommand(String d) { this.command = d; diff --git a/src/main/java/com/voximplant/apiclient/request/CreateKeyRequest.java b/src/main/java/com/voximplant/apiclient/request/CreateKeyRequest.java index cc8d7db..14a4a77 100644 --- a/src/main/java/com/voximplant/apiclient/request/CreateKeyRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/CreateKeyRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class CreateKeyRequest implements Alignable { @RequestField(name="description") /** - * The key's description. + * The key's description */ public String getDescription() { return this.description; @@ -29,7 +30,7 @@ public boolean hasDescription() { } /** - * The key's description. + * The key's description */ public CreateKeyRequest setDescription(String d) { this.description = d; @@ -40,8 +41,8 @@ public CreateKeyRequest setDescription(String d) { @RequestField(name="role_id") /** - * The role ID list separated by the ';' symbol. Use it instead of - * **role_name**, but not combine with. + * The role ID list separated by semicolon (;). Use it instead of + * **role_name**, but not combine with */ public MultiArgument getRoleId() { return this.roleId; @@ -52,8 +53,8 @@ public boolean hasRoleId() { } /** - * The role ID list separated by the ';' symbol. Use it instead of - * **role_name**, but not combine with. + * The role ID list separated by semicolon (;). Use it instead of + * **role_name**, but not combine with */ public CreateKeyRequest setRoleId(MultiArgument d) { this.roleId = d; @@ -64,8 +65,8 @@ public CreateKeyRequest setRoleId(MultiArgument d) { @RequestField(name="role_name") /** - * The role name list separated by the ';' symbol. Use it instead of - * **role_id**, but not combine with. + * The role name list separated by semicolon (;). Use it instead of + * **role_id**, but not combine with */ public MultiArgument getRoleName() { return this.roleName; @@ -76,8 +77,8 @@ public boolean hasRoleName() { } /** - * The role name list separated by the ';' symbol. Use it instead of - * **role_id**, but not combine with. + * The role name list separated by semicolon (;). Use it instead of + * **role_id**, but not combine with */ public CreateKeyRequest setRoleName(MultiArgument d) { this.roleName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/CreateManualCallListRequest.java b/src/main/java/com/voximplant/apiclient/request/CreateManualCallListRequest.java index 7762973..0622875 100644 --- a/src/main/java/com/voximplant/apiclient/request/CreateManualCallListRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/CreateManualCallListRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class CreateManualCallListRequest implements Alignable { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID */ public Long getRuleId() { return this.ruleId; @@ -29,7 +30,7 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID */ public CreateManualCallListRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -41,7 +42,7 @@ public CreateManualCallListRequest setRuleId(long d) { @RequestField(name="priority") /** * Call list priority. The value is in the range of [0 ... 2^31] where - * zero is the highest priority. + * zero is the highest priority */ public Long getPriority() { return this.priority; @@ -53,7 +54,7 @@ public boolean hasPriority() { /** * Call list priority. The value is in the range of [0 ... 2^31] where - * zero is the highest priority. + * zero is the highest priority */ public CreateManualCallListRequest setPriority(long d) { this.priority = Long.valueOf(d); @@ -64,7 +65,7 @@ public CreateManualCallListRequest setPriority(long d) { @RequestField(name="max_simultaneous") /** - * Number simultaneously processed tasks. + * Number of simultaneously processed tasks */ public Long getMaxSimultaneous() { return this.maxSimultaneous; @@ -75,7 +76,7 @@ public boolean hasMaxSimultaneous() { } /** - * Number simultaneously processed tasks. + * Number of simultaneously processed tasks */ public CreateManualCallListRequest setMaxSimultaneous(long d) { this.maxSimultaneous = Long.valueOf(d); @@ -108,7 +109,7 @@ public CreateManualCallListRequest setNumAttempts(long d) { @RequestField(name="name") /** - * File name. + * File name */ public String getName() { return this.name; @@ -119,7 +120,7 @@ public boolean hasName() { } /** - * File name. + * File name */ public CreateManualCallListRequest setName(String d) { this.name = d; @@ -132,7 +133,7 @@ public CreateManualCallListRequest setName(String d) { /** * Send as "body" part of the HTTP request or as multiform. The sending * "file_content" via URL is at its own risk because the network devices - * tend to drop HTTP requests with large headers. + * tend to drop HTTP requests with large headers */ public String getFileContent() { return this.fileContent; @@ -145,7 +146,7 @@ public boolean hasFileContent() { /** * Send as "body" part of the HTTP request or as multiform. The sending * "file_content" via URL is at its own risk because the network devices - * tend to drop HTTP requests with large headers. + * tend to drop HTTP requests with large headers */ public CreateManualCallListRequest setFileContent(String d) { this.fileContent = d; @@ -156,7 +157,7 @@ public CreateManualCallListRequest setFileContent(String d) { @RequestField(name="interval_seconds") /** - * Interval between call attempts in seconds. The default is 0. + * Interval between call attempts in seconds. The default is 0 */ public Long getIntervalSeconds() { return this.intervalSeconds; @@ -167,7 +168,7 @@ public boolean hasIntervalSeconds() { } /** - * Interval between call attempts in seconds. The default is 0. + * Interval between call attempts in seconds. The default is 0 */ public CreateManualCallListRequest setIntervalSeconds(long d) { this.intervalSeconds = Long.valueOf(d); @@ -178,7 +179,7 @@ public CreateManualCallListRequest setIntervalSeconds(long d) { @RequestField(name="encoding") /** - * Encoding file. The default is UTF-8. + * Encoding file. The default is UTF-8 */ public String getEncoding() { return this.encoding; @@ -189,7 +190,7 @@ public boolean hasEncoding() { } /** - * Encoding file. The default is UTF-8. + * Encoding file. The default is UTF-8 */ public CreateManualCallListRequest setEncoding(String d) { this.encoding = d; @@ -222,7 +223,7 @@ public CreateManualCallListRequest setDelimiter(String d) { @RequestField(name="escape") /** - * Escape character for parsing csv. + * Escape character for parsing csv */ public String getEscape() { return this.escape; @@ -233,7 +234,7 @@ public boolean hasEscape() { } /** - * Escape character for parsing csv. + * Escape character for parsing csv */ public CreateManualCallListRequest setEscape(String d) { this.escape = d; @@ -245,7 +246,7 @@ public CreateManualCallListRequest setEscape(String d) { @RequestField(name="reference_ip") /** * Specifies the IP from the geolocation of the call list subscribers. - * It allows selecting the nearest server for serving subscribers. + * It allows selecting the nearest server for serving subscribers */ public String getReferenceIp() { return this.referenceIp; @@ -257,7 +258,7 @@ public boolean hasReferenceIp() { /** * Specifies the IP from the geolocation of the call list subscribers. - * It allows selecting the nearest server for serving subscribers. + * It allows selecting the nearest server for serving subscribers */ public CreateManualCallListRequest setReferenceIp(String d) { this.referenceIp = d; diff --git a/src/main/java/com/voximplant/apiclient/request/CreateSipRegistrationRequest.java b/src/main/java/com/voximplant/apiclient/request/CreateSipRegistrationRequest.java index 0da21ad..193bcf1 100644 --- a/src/main/java/com/voximplant/apiclient/request/CreateSipRegistrationRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/CreateSipRegistrationRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class CreateSipRegistrationRequest implements Alignable { @RequestField(name="sip_username") /** - * The user name. + * The user name */ public String getSipUsername() { return this.sipUsername; @@ -29,7 +30,7 @@ public boolean hasSipUsername() { } /** - * The user name. + * The user name */ public CreateSipRegistrationRequest setSipUsername(String d) { this.sipUsername = d; @@ -128,7 +129,8 @@ public CreateSipRegistrationRequest setPassword(String d) { @RequestField(name="is_persistent") /** - * Is SIP registration persistent or on the user logon? + * SIP registration is persistent. Set false to activate it only on the + * user login */ public Boolean getIsPersistent() { return this.isPersistent; @@ -139,7 +141,8 @@ public boolean hasIsPersistent() { } /** - * Is SIP registration persistent or on the user logon? + * SIP registration is persistent. Set false to activate it only on the + * user login */ public CreateSipRegistrationRequest setIsPersistent(boolean d) { this.isPersistent = Boolean.valueOf(d); @@ -150,8 +153,8 @@ public CreateSipRegistrationRequest setIsPersistent(boolean d) { @RequestField(name="application_id") /** - * The application ID which new SIP registration will be bound to. Can - * be used instead of the application_name parameter. + * The application ID which a new SIP registration will be bound to. Can + * be used instead of the application_name parameter */ public Long getApplicationId() { return this.applicationId; @@ -162,8 +165,8 @@ public boolean hasApplicationId() { } /** - * The application ID which new SIP registration will be bound to. Can - * be used instead of the application_name parameter. + * The application ID which a new SIP registration will be bound to. Can + * be used instead of the application_name parameter */ public CreateSipRegistrationRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -174,8 +177,8 @@ public CreateSipRegistrationRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name which new SIP registration will be bound to. Can - * be used instead of the application_id parameter. + * The application name which a new SIP registration will be bound to. + * Can be used instead of the application_id parameter */ public String getApplicationName() { return this.applicationName; @@ -186,8 +189,8 @@ public boolean hasApplicationName() { } /** - * The application name which new SIP registration will be bound to. Can - * be used instead of the application_id parameter. + * The application name which a new SIP registration will be bound to. + * Can be used instead of the application_id parameter */ public CreateSipRegistrationRequest setApplicationName(String d) { this.applicationName = d; @@ -198,8 +201,8 @@ public CreateSipRegistrationRequest setApplicationName(String d) { @RequestField(name="rule_id") /** - * The rule ID which new SIP registration will be bound to. Can be used - * instead of the rule_name parameter. + * The rule ID which a new SIP registration will be bound to. Can be + * used instead of the rule_name parameter */ public Long getRuleId() { return this.ruleId; @@ -210,8 +213,8 @@ public boolean hasRuleId() { } /** - * The rule ID which new SIP registration will be bound to. Can be used - * instead of the rule_name parameter. + * The rule ID which a new SIP registration will be bound to. Can be + * used instead of the rule_name parameter */ public CreateSipRegistrationRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -222,8 +225,8 @@ public CreateSipRegistrationRequest setRuleId(long d) { @RequestField(name="rule_name") /** - * The rule name which new SIP registration will be bound to. Can be - * used instead of the rule_id parameter. + * The rule name which a new SIP registration will be bound to. Can be + * used instead of the rule_id parameter */ public String getRuleName() { return this.ruleName; @@ -234,8 +237,8 @@ public boolean hasRuleName() { } /** - * The rule name which new SIP registration will be bound to. Can be - * used instead of the rule_id parameter. + * The rule name which a new SIP registration will be bound to. Can be + * used instead of the rule_id parameter */ public CreateSipRegistrationRequest setRuleName(String d) { this.ruleName = d; @@ -246,8 +249,8 @@ public CreateSipRegistrationRequest setRuleName(String d) { @RequestField(name="user_id") /** - * The user ID which new SIP registration will be bound to. Can be used - * instead of the user_name parameter. + * The user ID which a new SIP registration will be bound to. Can be + * used instead of the user_name parameter */ public Long getUserId() { return this.userId; @@ -258,8 +261,8 @@ public boolean hasUserId() { } /** - * The user ID which new SIP registration will be bound to. Can be used - * instead of the user_name parameter. + * The user ID which a new SIP registration will be bound to. Can be + * used instead of the user_name parameter */ public CreateSipRegistrationRequest setUserId(long d) { this.userId = Long.valueOf(d); @@ -270,8 +273,8 @@ public CreateSipRegistrationRequest setUserId(long d) { @RequestField(name="user_name") /** - * The user name which new SIP registration will be bound to. Can be - * used instead of the user_id parameter. + * The user name which a new SIP registration will be bound to. Can be + * used instead of the user_id parameter */ public String getUserName() { return this.userName; @@ -282,8 +285,8 @@ public boolean hasUserName() { } /** - * The user name which new SIP registration will be bound to. Can be - * used instead of the user_id parameter. + * The user name which a new SIP registration will be bound to. Can be + * used instead of the user_id parameter */ public CreateSipRegistrationRequest setUserName(String d) { this.userName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DeactivatePhoneNumberRequest.java b/src/main/java/com/voximplant/apiclient/request/DeactivatePhoneNumberRequest.java index b307f0d..18aaa9b 100644 --- a/src/main/java/com/voximplant/apiclient/request/DeactivatePhoneNumberRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DeactivatePhoneNumberRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class DeactivatePhoneNumberRequest implements Alignable { @RequestField(name="phone_id") /** - * The phone ID list separated by the ';' symbol or the 'all' value. + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids */ public MultiArgument getPhoneId() { return this.phoneId; @@ -29,7 +31,8 @@ public boolean hasPhoneId() { } /** - * The phone ID list separated by the ';' symbol or the 'all' value. + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids */ public DeactivatePhoneNumberRequest setPhoneId(MultiArgument d) { this.phoneId = d; @@ -40,8 +43,8 @@ public DeactivatePhoneNumberRequest setPhoneId(MultiArgument d) { @RequestField(name="phone_number") /** - * The phone number list separated by the ';' symbol that can be used - * instead of phone_id. + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id */ public MultiArgument getPhoneNumber() { return this.phoneNumber; @@ -52,8 +55,8 @@ public boolean hasPhoneNumber() { } /** - * The phone number list separated by the ';' symbol that can be used - * instead of phone_id. + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id */ public DeactivatePhoneNumberRequest setPhoneNumber(MultiArgument d) { this.phoneNumber = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelAdminRoleRequest.java b/src/main/java/com/voximplant/apiclient/request/DelAdminRoleRequest.java index 123ca0c..9dbf725 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelAdminRoleRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelAdminRoleRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class DelAdminRoleRequest implements Alignable { @RequestField(name="admin_role_id") /** - * The admin role ID list separated by the ';' symbol or the 'all' value. + * The admin role ID list separated by semicolon (;). Use the 'all' + * value to select all admin roles */ public MultiArgument getAdminRoleId() { return this.adminRoleId; @@ -29,7 +31,8 @@ public boolean hasAdminRoleId() { } /** - * The admin role ID list separated by the ';' symbol or the 'all' value. + * The admin role ID list separated by semicolon (;). Use the 'all' + * value to select all admin roles */ public DelAdminRoleRequest setAdminRoleId(MultiArgument d) { this.adminRoleId = d; @@ -41,7 +44,7 @@ public DelAdminRoleRequest setAdminRoleId(MultiArgument d) { @RequestField(name="admin_role_name") /** * The admin role name to delete, can be used instead of - * admin_role_id. + * admin_role_id */ public MultiArgument getAdminRoleName() { return this.adminRoleName; @@ -53,7 +56,7 @@ public boolean hasAdminRoleName() { /** * The admin role name to delete, can be used instead of - * admin_role_id. + * admin_role_id */ public DelAdminRoleRequest setAdminRoleName(MultiArgument d) { this.adminRoleName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelAdminUserRequest.java b/src/main/java/com/voximplant/apiclient/request/DelAdminUserRequest.java index 1f0ddb7..5733b08 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelAdminUserRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelAdminUserRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class DelAdminUserRequest implements Alignable { @RequestField(name="required_admin_user_id") /** - * The admin user ID list separated by the ';' symbol or the 'all' value. + * The admin user ID list separated by semicolon (;). Use the 'all' + * value to select all admin users */ public MultiArgument getRequiredAdminUserId() { return this.requiredAdminUserId; @@ -29,7 +31,8 @@ public boolean hasRequiredAdminUserId() { } /** - * The admin user ID list separated by the ';' symbol or the 'all' value. + * The admin user ID list separated by semicolon (;). Use the 'all' + * value to select all admin users */ public DelAdminUserRequest setRequiredAdminUserId(MultiArgument d) { this.requiredAdminUserId = d; @@ -41,7 +44,7 @@ public DelAdminUserRequest setRequiredAdminUserId(MultiArgument d) { @RequestField(name="required_admin_user_name") /** * The admin user name to delete, can be used instead of - * required_admin_user_id. + * required_admin_user_id */ public MultiArgument getRequiredAdminUserName() { return this.requiredAdminUserName; @@ -53,7 +56,7 @@ public boolean hasRequiredAdminUserName() { /** * The admin user name to delete, can be used instead of - * required_admin_user_id. + * required_admin_user_id */ public DelAdminUserRequest setRequiredAdminUserName(MultiArgument d) { this.requiredAdminUserName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelApplicationRequest.java b/src/main/java/com/voximplant/apiclient/request/DelApplicationRequest.java index 9d7fd3c..f0a4c08 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelApplicationRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelApplicationRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,8 +19,8 @@ public class DelApplicationRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public MultiArgument getApplicationId() { return this.applicationId; @@ -30,8 +31,8 @@ public boolean hasApplicationId() { } /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public DelApplicationRequest setApplicationId(MultiArgument d) { this.applicationId = d; @@ -42,8 +43,8 @@ public DelApplicationRequest setApplicationId(MultiArgument d) { @RequestField(name="application_name") /** - * The application name list separated by the ';' symbol. Can be used - * instead of appliction_id. + * The application name list separated by semicolon (;). Can be used + * instead of application_id */ public MultiArgument getApplicationName() { return this.applicationName; @@ -54,8 +55,8 @@ public boolean hasApplicationName() { } /** - * The application name list separated by the ';' symbol. Can be used - * instead of appliction_id. + * The application name list separated by semicolon (;). Can be used + * instead of application_id */ public DelApplicationRequest setApplicationName(MultiArgument d) { this.applicationName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelAuthorizedAccountIPRequest.java b/src/main/java/com/voximplant/apiclient/request/DelAuthorizedAccountIPRequest.java index 7cc184e..1312470 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelAuthorizedAccountIPRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelAuthorizedAccountIPRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -19,7 +20,7 @@ public class DelAuthorizedAccountIPRequest implements Alignable { @RequestField(name="authorized_ip") /** * The authorized IP4 or network to remove. Set to 'all' to remove all - * items. + * items */ public String getAuthorizedIp() { return this.authorizedIp; @@ -31,7 +32,7 @@ public boolean hasAuthorizedIp() { /** * The authorized IP4 or network to remove. Set to 'all' to remove all - * items. + * items */ public DelAuthorizedAccountIPRequest setAuthorizedIp(String d) { this.authorizedIp = d; @@ -43,7 +44,7 @@ public DelAuthorizedAccountIPRequest setAuthorizedIp(String d) { @RequestField(name="contains_ip") /** * Specify the parameter to remove the networks that contains the - * particular IP4. Can be used instead of autharized_ip. + * particular IP4. Can be used instead of autharized_ip */ public String getContainsIp() { return this.containsIp; @@ -55,7 +56,7 @@ public boolean hasContainsIp() { /** * Specify the parameter to remove the networks that contains the - * particular IP4. Can be used instead of autharized_ip. + * particular IP4. Can be used instead of autharized_ip */ public DelAuthorizedAccountIPRequest setContainsIp(String d) { this.containsIp = d; @@ -68,7 +69,7 @@ public DelAuthorizedAccountIPRequest setContainsIp(String d) { /** * Set true to remove the network from the white list. Set false to * remove the network from the black list. Omit the parameter to remove - * the network from all lists. + * the network from all lists */ public Boolean getAllowed() { return this.allowed; @@ -81,7 +82,7 @@ public boolean hasAllowed() { /** * Set true to remove the network from the white list. Set false to * remove the network from the black list. Omit the parameter to remove - * the network from all lists. + * the network from all lists */ public DelAuthorizedAccountIPRequest setAllowed(boolean d) { this.allowed = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/DelCallerIDRequest.java b/src/main/java/com/voximplant/apiclient/request/DelCallerIDRequest.java index 3491620..1580d16 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelCallerIDRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelCallerIDRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelCallerIDRequest implements Alignable { @RequestField(name="callerid_id") /** - * The id of the callerID object. + * The id of the callerID object */ public Long getCalleridId() { return this.calleridId; @@ -29,7 +30,7 @@ public boolean hasCalleridId() { } /** - * The id of the callerID object. + * The id of the callerID object */ public DelCallerIDRequest setCalleridId(long d) { this.calleridId = Long.valueOf(d); @@ -40,7 +41,7 @@ public DelCallerIDRequest setCalleridId(long d) { @RequestField(name="callerid_number") /** - * The callerID number that can be used instead of callerid_id. + * The callerID number that can be used instead of callerid_id */ public String getCalleridNumber() { return this.calleridNumber; @@ -51,7 +52,7 @@ public boolean hasCalleridNumber() { } /** - * The callerID number that can be used instead of callerid_id. + * The callerID number that can be used instead of callerid_id */ public DelCallerIDRequest setCalleridNumber(String d) { this.calleridNumber = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelDialogflowKeyRequest.java b/src/main/java/com/voximplant/apiclient/request/DelDialogflowKeyRequest.java index 3c9a1c7..8f4dcd2 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelDialogflowKeyRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelDialogflowKeyRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelDialogflowKeyRequest implements Alignable { @RequestField(name="dialogflow_key_id") /** - * The Dialogflow key's ID. + * The Dialogflow key's ID */ public Long getDialogflowKeyId() { return this.dialogflowKeyId; @@ -29,7 +30,7 @@ public boolean hasDialogflowKeyId() { } /** - * The Dialogflow key's ID. + * The Dialogflow key's ID */ public DelDialogflowKeyRequest setDialogflowKeyId(long d) { this.dialogflowKeyId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/DelKeyValueItemRequest.java b/src/main/java/com/voximplant/apiclient/request/DelKeyValueItemRequest.java new file mode 100644 index 0000000..564335a --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/DelKeyValueItemRequest.java @@ -0,0 +1,123 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class DelKeyValueItemRequest implements Alignable { + private String key; + + @RequestField(name="key") + /** + * Key, up to 200 characters + */ + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + /** + * Key, up to 200 characters + */ + public DelKeyValueItemRequest setKey(String d) { + this.key = d; + return this; + } + + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID + */ + public DelKeyValueItemRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name + */ + public DelKeyValueItemRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (key != null) { + sb.append(aligned) + .append("\"key\": \"") + .append(key) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/DelOutboundTestPhoneNumberRequest.java b/src/main/java/com/voximplant/apiclient/request/DelOutboundTestPhoneNumberRequest.java new file mode 100644 index 0000000..78cbcaa --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/DelOutboundTestPhoneNumberRequest.java @@ -0,0 +1,33 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class DelOutboundTestPhoneNumberRequest implements Alignable { + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/DelPstnBlackListItemRequest.java b/src/main/java/com/voximplant/apiclient/request/DelPstnBlackListItemRequest.java index a97c543..8c16dc0 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelPstnBlackListItemRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelPstnBlackListItemRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelPstnBlackListItemRequest implements Alignable { @RequestField(name="pstn_blacklist_id") /** - * The PSTN black list item ID. + * The PSTN black list item ID */ public Long getPstnBlacklistId() { return this.pstnBlacklistId; @@ -29,7 +30,7 @@ public boolean hasPstnBlacklistId() { } /** - * The PSTN black list item ID. + * The PSTN black list item ID */ public DelPstnBlackListItemRequest setPstnBlacklistId(long d) { this.pstnBlacklistId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/DelPushCredentialRequest.java b/src/main/java/com/voximplant/apiclient/request/DelPushCredentialRequest.java index e132db0..b7e9ae1 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelPushCredentialRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelPushCredentialRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelPushCredentialRequest implements Alignable { @RequestField(name="push_credential_id") /** - * The push credentials id. + * The push credentials id */ public Long getPushCredentialId() { return this.pushCredentialId; @@ -29,7 +30,7 @@ public boolean hasPushCredentialId() { } /** - * The push credentials id. + * The push credentials id */ public DelPushCredentialRequest setPushCredentialId(long d) { this.pushCredentialId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/DelQueueRequest.java b/src/main/java/com/voximplant/apiclient/request/DelQueueRequest.java index d9a5a45..a7281da 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelQueueRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelQueueRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelQueueRequest implements Alignable { @RequestField(name="acd_queue_id") /** - * The ACD queue ID list separated by the ';' symbol. + * The ACD queue ID list separated by semicolon (;) */ public MultiArgument getAcdQueueId() { return this.acdQueueId; @@ -29,7 +30,7 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID list separated by the ';' symbol. + * The ACD queue ID list separated by semicolon (;) */ public DelQueueRequest setAcdQueueId(MultiArgument d) { this.acdQueueId = d; @@ -41,7 +42,7 @@ public DelQueueRequest setAcdQueueId(MultiArgument d) { @RequestField(name="acd_queue_name") /** * The ACD queue name that can be used instead of acd_queue_id. - * The ACD queue name list separated by the ';' symbol. + * The ACD queue name list separated by semicolon (;) */ public MultiArgument getAcdQueueName() { return this.acdQueueName; @@ -53,7 +54,7 @@ public boolean hasAcdQueueName() { /** * The ACD queue name that can be used instead of acd_queue_id. - * The ACD queue name list separated by the ';' symbol. + * The ACD queue name list separated by semicolon (;) */ public DelQueueRequest setAcdQueueName(MultiArgument d) { this.acdQueueName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelRuleRequest.java b/src/main/java/com/voximplant/apiclient/request/DelRuleRequest.java index 94d47ad..bd63865 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelRuleRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelRuleRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class DelRuleRequest implements Alignable { @RequestField(name="rule_id") /** - * The rule ID list separated by the ';' symbol or the 'all' value. + * The rule ID list separated by semicolon (;). Use the 'all' value to + * select all rules */ public MultiArgument getRuleId() { return this.ruleId; @@ -29,7 +31,8 @@ public boolean hasRuleId() { } /** - * The rule ID list separated by the ';' symbol or the 'all' value. + * The rule ID list separated by semicolon (;). Use the 'all' value to + * select all rules */ public DelRuleRequest setRuleId(MultiArgument d) { this.ruleId = d; @@ -40,8 +43,8 @@ public DelRuleRequest setRuleId(MultiArgument d) { @RequestField(name="rule_name") /** - * The rule name list separated by the ';' symbol. Can be used instead - * of rule_id. + * The rule name list separated by semicolon (;). Can be used instead of + * rule_id */ public MultiArgument getRuleName() { return this.ruleName; @@ -52,8 +55,8 @@ public boolean hasRuleName() { } /** - * The rule name list separated by the ';' symbol. Can be used instead - * of rule_id. + * The rule name list separated by semicolon (;). Can be used instead of + * rule_id */ public DelRuleRequest setRuleName(MultiArgument d) { this.ruleName = d; @@ -64,8 +67,8 @@ public DelRuleRequest setRuleName(MultiArgument d) { @RequestField(name="application_id") /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public MultiArgument getApplicationId() { return this.applicationId; @@ -76,8 +79,8 @@ public boolean hasApplicationId() { } /** - * The application ID list separated by the ';' symbol or the 'all' - * value. + * The application ID list separated by semicolon (;). Use the 'all' + * value to select all applications */ public DelRuleRequest setApplicationId(MultiArgument d) { this.applicationId = d; @@ -88,8 +91,8 @@ public DelRuleRequest setApplicationId(MultiArgument d) { @RequestField(name="application_name") /** - * The application name list separated by the ';' symbol. Can be used - * instead of application_id. + * The application name list separated by semicolon (;). Can be used + * instead of application_id */ public MultiArgument getApplicationName() { return this.applicationName; @@ -100,8 +103,8 @@ public boolean hasApplicationName() { } /** - * The application name list separated by the ';' symbol. Can be used - * instead of application_id. + * The application name list separated by semicolon (;). Can be used + * instead of application_id */ public DelRuleRequest setApplicationName(MultiArgument d) { this.applicationName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelScenarioRequest.java b/src/main/java/com/voximplant/apiclient/request/DelScenarioRequest.java index c8099ec..4aaa49e 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelScenarioRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelScenarioRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class DelScenarioRequest implements Alignable { @RequestField(name="scenario_id") /** - * The scenario ID list separated by the ';' symbol or the 'all' value. + * The scenario ID list separated by semicolon (;). Use the 'all' value + * to delete all scenarios in all applications */ public MultiArgument getScenarioId() { return this.scenarioId; @@ -29,7 +31,8 @@ public boolean hasScenarioId() { } /** - * The scenario ID list separated by the ';' symbol or the 'all' value. + * The scenario ID list separated by semicolon (;). Use the 'all' value + * to delete all scenarios in all applications */ public DelScenarioRequest setScenarioId(MultiArgument d) { this.scenarioId = d; @@ -40,8 +43,8 @@ public DelScenarioRequest setScenarioId(MultiArgument d) { @RequestField(name="scenario_name") /** - * The scenario name list separated by the ';' symbol. Can be used - * instead of scenario_id. + * The scenario name list separated by semicolon (;). Can be used + * instead of scenario_id */ public MultiArgument getScenarioName() { return this.scenarioName; @@ -52,8 +55,8 @@ public boolean hasScenarioName() { } /** - * The scenario name list separated by the ';' symbol. Can be used - * instead of scenario_id. + * The scenario name list separated by semicolon (;). Can be used + * instead of scenario_id */ public DelScenarioRequest setScenarioName(MultiArgument d) { this.scenarioName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelSipWhiteListItemRequest.java b/src/main/java/com/voximplant/apiclient/request/DelSipWhiteListItemRequest.java index 71075a2..b3a296a 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelSipWhiteListItemRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelSipWhiteListItemRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelSipWhiteListItemRequest implements Alignable { @RequestField(name="sip_whitelist_id") /** - * The SIP white list item ID to delete. + * The SIP white list item ID to delete */ public Long getSipWhitelistId() { return this.sipWhitelistId; @@ -29,7 +30,7 @@ public boolean hasSipWhitelistId() { } /** - * The SIP white list item ID to delete. + * The SIP white list item ID to delete */ public DelSipWhiteListItemRequest setSipWhitelistId(long d) { this.sipWhitelistId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/DelSkillRequest.java b/src/main/java/com/voximplant/apiclient/request/DelSkillRequest.java index ec1356b..e8a2cdc 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelSkillRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelSkillRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelSkillRequest implements Alignable { @RequestField(name="skill_id") /** - * The skill ID. + * The skill ID */ public Long getSkillId() { return this.skillId; @@ -29,7 +30,7 @@ public boolean hasSkillId() { } /** - * The skill ID. + * The skill ID */ public DelSkillRequest setSkillId(long d) { this.skillId = Long.valueOf(d); @@ -40,7 +41,7 @@ public DelSkillRequest setSkillId(long d) { @RequestField(name="skill_name") /** - * The skill name that can be used instead of skill_id. + * The skill name that can be used instead of skill_id */ public String getSkillName() { return this.skillName; @@ -51,7 +52,7 @@ public boolean hasSkillName() { } /** - * The skill name that can be used instead of skill_id. + * The skill name that can be used instead of skill_id */ public DelSkillRequest setSkillName(String d) { this.skillName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DelSubUserRequest.java b/src/main/java/com/voximplant/apiclient/request/DelSubUserRequest.java index 0965f59..52bb1c1 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelSubUserRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelSubUserRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DelSubUserRequest implements Alignable { @RequestField(name="subuser_id") /** - * The subuser's ID. + * The subuser's ID */ public Long getSubuserId() { return this.subuserId; @@ -29,7 +30,7 @@ public boolean hasSubuserId() { } /** - * The subuser's ID. + * The subuser's ID */ public DelSubUserRequest setSubuserId(long d) { this.subuserId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/DelUserRequest.java b/src/main/java/com/voximplant/apiclient/request/DelUserRequest.java index 0102798..074185c 100644 --- a/src/main/java/com/voximplant/apiclient/request/DelUserRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DelUserRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class DelUserRequest implements Alignable { @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public MultiArgument getUserId() { return this.userId; @@ -29,7 +31,8 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public DelUserRequest setUserId(MultiArgument d) { this.userId = d; @@ -40,8 +43,8 @@ public DelUserRequest setUserId(MultiArgument d) { @RequestField(name="user_name") /** - * The user name list separated by the ';' symbol that can be used - * instead of user_id. + * The user name list separated by semicolon (;) that can be used + * instead of user_id */ public MultiArgument getUserName() { return this.userName; @@ -52,8 +55,8 @@ public boolean hasUserName() { } /** - * The user name list separated by the ';' symbol that can be used - * instead of user_id. + * The user name list separated by semicolon (;) that can be used + * instead of user_id */ public DelUserRequest setUserName(MultiArgument d) { this.userName = d; @@ -65,7 +68,7 @@ public DelUserRequest setUserName(MultiArgument d) { @RequestField(name="application_id") /** * Delete the specified users bound to the application ID. It is - * required if the user_name is specified. + * required if the user_name is specified */ public Long getApplicationId() { return this.applicationId; @@ -77,7 +80,7 @@ public boolean hasApplicationId() { /** * Delete the specified users bound to the application ID. It is - * required if the user_name is specified. + * required if the user_name is specified */ public DelUserRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -89,7 +92,7 @@ public DelUserRequest setApplicationId(long d) { @RequestField(name="application_name") /** * Delete the specified users bound to the application name. Can be used - * instead of the application_id parameter. + * instead of the application_id parameter */ public String getApplicationName() { return this.applicationName; @@ -101,7 +104,7 @@ public boolean hasApplicationName() { /** * Delete the specified users bound to the application name. Can be used - * instead of the application_id parameter. + * instead of the application_id parameter */ public DelUserRequest setApplicationName(String d) { this.applicationName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DeleteKeyRequest.java b/src/main/java/com/voximplant/apiclient/request/DeleteKeyRequest.java index f549653..c160977 100644 --- a/src/main/java/com/voximplant/apiclient/request/DeleteKeyRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DeleteKeyRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class DeleteKeyRequest implements Alignable { @RequestField(name="key_id") /** - * The key's ID. + * The key's ID */ public String getKeyId() { return this.keyId; @@ -29,7 +30,7 @@ public boolean hasKeyId() { } /** - * The key's ID. + * The key's ID */ public DeleteKeyRequest setKeyId(String d) { this.keyId = d; diff --git a/src/main/java/com/voximplant/apiclient/request/DeleteRecordRequest.java b/src/main/java/com/voximplant/apiclient/request/DeleteRecordRequest.java index cfc6fc7..bb2e039 100644 --- a/src/main/java/com/voximplant/apiclient/request/DeleteRecordRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DeleteRecordRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,9 @@ public class DeleteRecordRequest implements Alignable { @RequestField(name="record_url") /** - * Url to remove. + * The record URL to remove. You can retrieve the record URL via the CallSessionInfoType.records + * method */ public String getRecordUrl() { return this.recordUrl; @@ -29,7 +32,9 @@ public boolean hasRecordUrl() { } /** - * Url to remove. + * The record URL to remove. You can retrieve the record URL via the CallSessionInfoType.records + * method */ public DeleteRecordRequest setRecordUrl(String d) { this.recordUrl = d; @@ -40,7 +45,9 @@ public DeleteRecordRequest setRecordUrl(String d) { @RequestField(name="record_id") /** - * The record id for remove. + * The record ID to remove. You can retrieve the record ID via the CallSessionInfoType.records + * method */ public Long getRecordId() { return this.recordId; @@ -51,7 +58,9 @@ public boolean hasRecordId() { } /** - * The record id for remove. + * The record ID to remove. You can retrieve the record ID via the CallSessionInfoType.records + * method */ public DeleteRecordRequest setRecordId(long d) { this.recordId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/DeleteSipRegistrationRequest.java b/src/main/java/com/voximplant/apiclient/request/DeleteSipRegistrationRequest.java index 05812f8..ded00f8 100644 --- a/src/main/java/com/voximplant/apiclient/request/DeleteSipRegistrationRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/DeleteSipRegistrationRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; diff --git a/src/main/java/com/voximplant/apiclient/request/GetACDHistoryRequest.java b/src/main/java/com/voximplant/apiclient/request/GetACDHistoryRequest.java index b2ae63c..7bab722 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetACDHistoryRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetACDHistoryRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -66,7 +67,7 @@ public GetACDHistoryRequest setToDate(Date d) { @RequestField(name="acd_session_history_id") /** - * The ACD session history ID list separated by the ';' symbol. + * The ACD session history ID list separated by semicolon (;) */ public MultiArgument getAcdSessionHistoryId() { return this.acdSessionHistoryId; @@ -77,7 +78,7 @@ public boolean hasAcdSessionHistoryId() { } /** - * The ACD session history ID list separated by the ';' symbol. + * The ACD session history ID list separated by semicolon (;) */ public GetACDHistoryRequest setAcdSessionHistoryId(MultiArgument d) { this.acdSessionHistoryId = d; @@ -88,7 +89,7 @@ public GetACDHistoryRequest setAcdSessionHistoryId(MultiArgument d) { @RequestField(name="acd_request_id") /** - * The ACD request ID list separated by the ';' symbol. + * The ACD request ID list separated by semicolon (;) */ public MultiArgument getAcdRequestId() { return this.acdRequestId; @@ -99,7 +100,7 @@ public boolean hasAcdRequestId() { } /** - * The ACD request ID list separated by the ';' symbol. + * The ACD request ID list separated by semicolon (;) */ public GetACDHistoryRequest setAcdRequestId(MultiArgument d) { this.acdRequestId = d; @@ -110,7 +111,7 @@ public GetACDHistoryRequest setAcdRequestId(MultiArgument d) { @RequestField(name="acd_queue_id") /** - * The ACD queue ID list to filter separated by the ';' symbol. + * The ACD queue ID list to filter separated by semicolon (;) */ public MultiArgument getAcdQueueId() { return this.acdQueueId; @@ -121,7 +122,7 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID list to filter separated by the ';' symbol. + * The ACD queue ID list to filter separated by semicolon (;) */ public GetACDHistoryRequest setAcdQueueId(MultiArgument d) { this.acdQueueId = d; @@ -132,7 +133,7 @@ public GetACDHistoryRequest setAcdQueueId(MultiArgument d) { @RequestField(name="user_id") /** - * The user ID list to filter separated by the ';' symbol. + * The user ID list to filter separated by semicolon (;) */ public MultiArgument getUserId() { return this.userId; @@ -143,7 +144,7 @@ public boolean hasUserId() { } /** - * The user ID list to filter separated by the ';' symbol. + * The user ID list to filter separated by semicolon (;) */ public GetACDHistoryRequest setUserId(MultiArgument d) { this.userId = d; @@ -154,7 +155,7 @@ public GetACDHistoryRequest setUserId(MultiArgument d) { @RequestField(name="operator_hangup") /** - * Set true to get the calls terminated by the operator. + * Set true to get the calls terminated by the operator */ public Boolean getOperatorHangup() { return this.operatorHangup; @@ -165,7 +166,7 @@ public boolean hasOperatorHangup() { } /** - * Set true to get the calls terminated by the operator. + * Set true to get the calls terminated by the operator */ public GetACDHistoryRequest setOperatorHangup(boolean d) { this.operatorHangup = Boolean.valueOf(d); @@ -176,7 +177,7 @@ public GetACDHistoryRequest setOperatorHangup(boolean d) { @RequestField(name="unserviced") /** - * The unserviced calls by the operator. + * The unserviced calls by the operator */ public Boolean getUnserviced() { return this.unserviced; @@ -187,7 +188,7 @@ public boolean hasUnserviced() { } /** - * The unserviced calls by the operator. + * The unserviced calls by the operator */ public GetACDHistoryRequest setUnserviced(boolean d) { this.unserviced = Boolean.valueOf(d); @@ -198,7 +199,7 @@ public GetACDHistoryRequest setUnserviced(boolean d) { @RequestField(name="min_waiting_time") /** - * The min waiting time filter. + * The min waiting time filter */ public Long getMinWaitingTime() { return this.minWaitingTime; @@ -209,7 +210,7 @@ public boolean hasMinWaitingTime() { } /** - * The min waiting time filter. + * The min waiting time filter */ public GetACDHistoryRequest setMinWaitingTime(long d) { this.minWaitingTime = Long.valueOf(d); @@ -221,7 +222,7 @@ public GetACDHistoryRequest setMinWaitingTime(long d) { @RequestField(name="rejected") /** * The rejected calls by the 'max_queue_size', 'max_waiting_time' - * threshold. + * threshold */ public Boolean getRejected() { return this.rejected; @@ -233,7 +234,7 @@ public boolean hasRejected() { /** * The rejected calls by the 'max_queue_size', 'max_waiting_time' - * threshold. + * threshold */ public GetACDHistoryRequest setRejected(boolean d) { this.rejected = Boolean.valueOf(d); @@ -244,7 +245,7 @@ public GetACDHistoryRequest setRejected(boolean d) { @RequestField(name="with_events") /** - * Set true to get the bound events. + * Set true to get the bound events */ public Boolean getWithEvents() { return this.withEvents; @@ -255,7 +256,7 @@ public boolean hasWithEvents() { } /** - * Set true to get the bound events. + * Set true to get the bound events */ public GetACDHistoryRequest setWithEvents(boolean d) { this.withEvents = Boolean.valueOf(d); @@ -288,7 +289,7 @@ public GetACDHistoryRequest setWithHeader(boolean d) { @RequestField(name="desc_order") /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public Boolean getDescOrder() { return this.descOrder; @@ -299,7 +300,7 @@ public boolean hasDescOrder() { } /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public GetACDHistoryRequest setDescOrder(boolean d) { this.descOrder = Boolean.valueOf(d); @@ -310,7 +311,7 @@ public GetACDHistoryRequest setDescOrder(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -321,7 +322,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetACDHistoryRequest setCount(long d) { this.count = Long.valueOf(d); @@ -332,7 +333,7 @@ public GetACDHistoryRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -343,7 +344,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetACDHistoryRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatisticsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatisticsRequest.java index b2ada41..5e32d12 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatisticsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatisticsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -47,7 +48,7 @@ public GetACDOperatorStatisticsRequest setFromDate(Date d) { @SerializeUsing(serializer = TimestampSerializer.class) /** * Date and time of statistics interval begin. Time zone is UTC, format - * is 24-h 'YYYY-MM-DD HH:mm:ss'. + * is 24-h 'YYYY-MM-DD HH:mm:ss' */ public Date getToDate() { return this.toDate; @@ -59,7 +60,7 @@ public boolean hasToDate() { /** * Date and time of statistics interval begin. Time zone is UTC, format - * is 24-h 'YYYY-MM-DD HH:mm:ss'. + * is 24-h 'YYYY-MM-DD HH:mm:ss' */ public GetACDOperatorStatisticsRequest setToDate(Date d) { this.toDate = d; @@ -70,7 +71,8 @@ public GetACDOperatorStatisticsRequest setToDate(Date d) { @RequestField(name="acd_queue_id") /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public MultiArgument getAcdQueueId() { return this.acdQueueId; @@ -81,7 +83,8 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public GetACDOperatorStatisticsRequest setAcdQueueId(MultiArgument d) { this.acdQueueId = d; @@ -92,7 +95,8 @@ public GetACDOperatorStatisticsRequest setAcdQueueId(MultiArgument d) { @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public MultiArgument getUserId() { return this.userId; @@ -103,7 +107,8 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public GetACDOperatorStatisticsRequest setUserId(MultiArgument d) { this.userId = d; @@ -120,7 +125,7 @@ public GetACDOperatorStatisticsRequest setUserId(MultiArgument d) { * for 'AfterCallWork', 'TDT' for 'TotalDialingTime', 'THT' for * 'TotalHandlingTime', 'TTT' for 'TotalTalkTime', 'TACW' for * 'TotalAfterCallWork', 'AC' for 'AnsweredCalls', 'UAC' for - * 'UnansweredCalls'. + * 'UnansweredCalls' */ public Boolean getAbbreviation() { return this.abbreviation; @@ -137,7 +142,7 @@ public boolean hasAbbreviation() { * for 'AfterCallWork', 'TDT' for 'TotalDialingTime', 'THT' for * 'TotalHandlingTime', 'TTT' for 'TotalTalkTime', 'TACW' for * 'TotalAfterCallWork', 'AC' for 'AnsweredCalls', 'UAC' for - * 'UnansweredCalls'. + * 'UnansweredCalls' */ public GetACDOperatorStatisticsRequest setAbbreviation(boolean d) { this.abbreviation = Boolean.valueOf(d); @@ -148,11 +153,11 @@ public GetACDOperatorStatisticsRequest setAbbreviation(boolean d) { @RequestField(name="report") /** - * List of item names abbreviations separated by the ';' symbol. - * Returned JSON will include keys only for the selected items. Special - * 'all' value defines all possible items, see - * [ACDOperatorStatisticsType] for a complete list. See 'abbreviation' - * description for complete abbreviation list. + * List of item names abbreviations separated by semicolon (;). Returned + * JSON will include keys only for the selected items. Special 'all' + * value defines all possible items, see [ACDOperatorStatisticsType] for + * a complete list. See 'abbreviation' description for complete + * abbreviation list */ public MultiArgument getReport() { return this.report; @@ -163,11 +168,11 @@ public boolean hasReport() { } /** - * List of item names abbreviations separated by the ';' symbol. - * Returned JSON will include keys only for the selected items. Special - * 'all' value defines all possible items, see - * [ACDOperatorStatisticsType] for a complete list. See 'abbreviation' - * description for complete abbreviation list. + * List of item names abbreviations separated by semicolon (;). Returned + * JSON will include keys only for the selected items. Special 'all' + * value defines all possible items, see [ACDOperatorStatisticsType] for + * a complete list. See 'abbreviation' description for complete + * abbreviation list */ public GetACDOperatorStatisticsRequest setReport(MultiArgument d) { this.report = d; @@ -182,7 +187,7 @@ public GetACDOperatorStatisticsRequest setReport(MultiArgument d) { * the criteria is a day number. If set to 'hour_of_day', the criteria * is a 60-minute interval within a day. If set to 'hour', the criteria * is both day number and 60-minute interval within that day. If set to - * 'none', records are not grouped by date and time. + * 'none', records are not grouped by date and time */ public String getAggregation() { return this.aggregation; @@ -197,7 +202,7 @@ public boolean hasAggregation() { * the criteria is a day number. If set to 'hour_of_day', the criteria * is a 60-minute interval within a day. If set to 'hour', the criteria * is both day number and 60-minute interval within that day. If set to - * 'none', records are not grouped by date and time. + * 'none', records are not grouped by date and time */ public GetACDOperatorStatisticsRequest setAggregation(String d) { this.aggregation = d; @@ -213,7 +218,7 @@ public GetACDOperatorStatisticsRequest setAggregation(String d) { * date according to the 'aggregation' parameter. If set to * 'aggregation', first-level array in the resulting JSON will group * records according to the 'aggregation' parameter, and second-level - * array will group them by the user ID. + * array will group them by the user ID */ public String getGroup() { return this.group; @@ -229,7 +234,7 @@ public boolean hasGroup() { * date according to the 'aggregation' parameter. If set to * 'aggregation', first-level array in the resulting JSON will group * records according to the 'aggregation' parameter, and second-level - * array will group them by the user ID. + * array will group them by the user ID */ public GetACDOperatorStatisticsRequest setGroup(String d) { this.group = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatusStatisticsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatusStatisticsRequest.java index 047cbd1..270f5f5 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatusStatisticsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetACDOperatorStatusStatisticsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -47,7 +48,7 @@ public GetACDOperatorStatusStatisticsRequest setFromDate(Date d) { @SerializeUsing(serializer = TimestampSerializer.class) /** * Date and time of statistics interval begin. Time zone is UTC, format - * is 24-h 'YYYY-MM-DD HH:mm:ss'. + * is 24-h 'YYYY-MM-DD HH:mm:ss' */ public Date getToDate() { return this.toDate; @@ -59,7 +60,7 @@ public boolean hasToDate() { /** * Date and time of statistics interval begin. Time zone is UTC, format - * is 24-h 'YYYY-MM-DD HH:mm:ss'. + * is 24-h 'YYYY-MM-DD HH:mm:ss' */ public GetACDOperatorStatusStatisticsRequest setToDate(Date d) { this.toDate = d; @@ -70,9 +71,9 @@ public GetACDOperatorStatusStatisticsRequest setToDate(Date d) { @RequestField(name="acd_status") /** - * The ACD status list separated by the ';' symbol. The following values + * The ACD status list separated by semicolon (;). The following values * are possible: OFFLINE, ONLINE, READY, BANNED, IN_SERVICE, - * AFTER_SERVICE, TIMEOUT, DND. + * AFTER_SERVICE, TIMEOUT, DND */ public MultiArgument getAcdStatus() { return this.acdStatus; @@ -83,9 +84,9 @@ public boolean hasAcdStatus() { } /** - * The ACD status list separated by the ';' symbol. The following values + * The ACD status list separated by semicolon (;). The following values * are possible: OFFLINE, ONLINE, READY, BANNED, IN_SERVICE, - * AFTER_SERVICE, TIMEOUT, DND. + * AFTER_SERVICE, TIMEOUT, DND */ public GetACDOperatorStatusStatisticsRequest setAcdStatus(MultiArgument d) { this.acdStatus = d; @@ -96,7 +97,8 @@ public GetACDOperatorStatusStatisticsRequest setAcdStatus(MultiArgument @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public MultiArgument getUserId() { return this.userId; @@ -107,7 +109,8 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public GetACDOperatorStatusStatisticsRequest setUserId(MultiArgument d) { this.userId = d; @@ -122,7 +125,7 @@ public GetACDOperatorStatusStatisticsRequest setUserId(MultiArgument d) * the criteria is a day number. If set to 'hour_of_day', the criteria * is a 60-minute interval within a day. If set to 'hour', the criteria * is both day number and 60-minute interval within that day. If set to - * 'none', records are not grouped by date and time. + * 'none', records are not grouped by date and time */ public String getAggregation() { return this.aggregation; @@ -137,7 +140,7 @@ public boolean hasAggregation() { * the criteria is a day number. If set to 'hour_of_day', the criteria * is a 60-minute interval within a day. If set to 'hour', the criteria * is both day number and 60-minute interval within that day. If set to - * 'none', records are not grouped by date and time. + * 'none', records are not grouped by date and time */ public GetACDOperatorStatusStatisticsRequest setAggregation(String d) { this.aggregation = d; @@ -153,7 +156,7 @@ public GetACDOperatorStatusStatisticsRequest setAggregation(String d) { * date according to the 'aggregation' parameter. If set to * 'aggregation', first-level array in the resulting JSON will group * records according to the 'aggregation' parameter, and second-level - * array will group them by the user ID. + * array will group them by the user ID */ public String getGroup() { return this.group; @@ -169,7 +172,7 @@ public boolean hasGroup() { * date according to the 'aggregation' parameter. If set to * 'aggregation', first-level array in the resulting JSON will group * records according to the 'aggregation' parameter, and second-level - * array will group them by the user ID. + * array will group them by the user ID */ public GetACDOperatorStatusStatisticsRequest setGroup(String d) { this.group = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetACDQueueStatisticsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetACDQueueStatisticsRequest.java index 2ba25a6..612ddf0 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetACDQueueStatisticsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetACDQueueStatisticsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -47,7 +48,7 @@ public GetACDQueueStatisticsRequest setFromDate(Date d) { @SerializeUsing(serializer = TimestampSerializer.class) /** * Date and time of statistics interval begin. Time zone is UTC, format - * is 24-h 'YYYY-MM-DD HH:mm:ss'. + * is 24-h 'YYYY-MM-DD HH:mm:ss' */ public Date getToDate() { return this.toDate; @@ -59,7 +60,7 @@ public boolean hasToDate() { /** * Date and time of statistics interval begin. Time zone is UTC, format - * is 24-h 'YYYY-MM-DD HH:mm:ss'. + * is 24-h 'YYYY-MM-DD HH:mm:ss' */ public GetACDQueueStatisticsRequest setToDate(Date d) { this.toDate = d; @@ -80,7 +81,7 @@ public GetACDQueueStatisticsRequest setToDate(Date d) { * 'ServiceLevel', 'TWT' is for 'TotalWaitingTime', 'TST' is for * 'TotalSubmissionTime', 'TAT' is for 'TotalAbandonmentTime', 'THT' is * for 'TotalHandlingTime', 'TTT' is for 'TotalTalkTime', 'TACW' is for - * 'TotalAfterCallWork'. + * 'TotalAfterCallWork' */ public Boolean getAbbreviation() { return this.abbreviation; @@ -101,7 +102,7 @@ public boolean hasAbbreviation() { * 'ServiceLevel', 'TWT' is for 'TotalWaitingTime', 'TST' is for * 'TotalSubmissionTime', 'TAT' is for 'TotalAbandonmentTime', 'THT' is * for 'TotalHandlingTime', 'TTT' is for 'TotalTalkTime', 'TACW' is for - * 'TotalAfterCallWork'. + * 'TotalAfterCallWork' */ public GetACDQueueStatisticsRequest setAbbreviation(boolean d) { this.abbreviation = Boolean.valueOf(d); @@ -112,7 +113,8 @@ public GetACDQueueStatisticsRequest setAbbreviation(boolean d) { @RequestField(name="acd_queue_id") /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public MultiArgument getAcdQueueId() { return this.acdQueueId; @@ -123,7 +125,8 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public GetACDQueueStatisticsRequest setAcdQueueId(MultiArgument d) { this.acdQueueId = d; @@ -134,11 +137,11 @@ public GetACDQueueStatisticsRequest setAcdQueueId(MultiArgument d) { @RequestField(name="report") /** - * List of item names abbreviations separated by the ';' symbol. - * Returned JSON will include keys only for the selected items. Special - * 'all' value defines all possible items, see [ACDQueueStatisticsType] - * for a complete list. See 'abbreviation' description for complete - * abbreviation list. + * List of item names abbreviations separated by semicolon (;). Returned + * JSON will include keys only for the selected items. Special 'all' + * value defines all possible items, see [ACDQueueStatisticsType] for a + * complete list. See 'abbreviation' description for complete + * abbreviation list */ public MultiArgument getReport() { return this.report; @@ -149,11 +152,11 @@ public boolean hasReport() { } /** - * List of item names abbreviations separated by the ';' symbol. - * Returned JSON will include keys only for the selected items. Special - * 'all' value defines all possible items, see [ACDQueueStatisticsType] - * for a complete list. See 'abbreviation' description for complete - * abbreviation list. + * List of item names abbreviations separated by semicolon (;). Returned + * JSON will include keys only for the selected items. Special 'all' + * value defines all possible items, see [ACDQueueStatisticsType] for a + * complete list. See 'abbreviation' description for complete + * abbreviation list */ public GetACDQueueStatisticsRequest setReport(MultiArgument d) { this.report = d; @@ -168,7 +171,7 @@ public GetACDQueueStatisticsRequest setReport(MultiArgument d) { * the criteria is a day number. If set to 'hour_of_day', the criteria * is a 60-minute interval within a day. If set to 'hour', the criteria * is both day number and 60-minute interval within that day. If set to - * 'none', records are not grouped by date and time. + * 'none', records are not grouped by date and time */ public String getAggregation() { return this.aggregation; @@ -183,7 +186,7 @@ public boolean hasAggregation() { * the criteria is a day number. If set to 'hour_of_day', the criteria * is a 60-minute interval within a day. If set to 'hour', the criteria * is both day number and 60-minute interval within that day. If set to - * 'none', records are not grouped by date and time. + * 'none', records are not grouped by date and time */ public GetACDQueueStatisticsRequest setAggregation(String d) { this.aggregation = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetACDStateRequest.java b/src/main/java/com/voximplant/apiclient/request/GetACDStateRequest.java index 983b5dc..db79baa 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetACDStateRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetACDStateRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class GetACDStateRequest implements Alignable { @RequestField(name="acd_queue_id") /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public MultiArgument getAcdQueueId() { return this.acdQueueId; @@ -29,7 +31,8 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID list separated by the ';' symbol or the 'all' value. + * The ACD queue ID list separated by semicolon (;). Use the 'all' value + * to select all ACD queues */ public GetACDStateRequest setAcdQueueId(MultiArgument d) { this.acdQueueId = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetAccountDocumentsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAccountDocumentsRequest.java index 41d462d..88602dc 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAccountDocumentsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAccountDocumentsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -42,7 +43,7 @@ public GetAccountDocumentsRequest setWithDetails(boolean d) { @RequestField(name="verification_name") /** - * The required account verification name to filter. + * The required account verification name to filter */ public String getVerificationName() { return this.verificationName; @@ -53,7 +54,7 @@ public boolean hasVerificationName() { } /** - * The required account verification name to filter. + * The required account verification name to filter */ public GetAccountDocumentsRequest setVerificationName(String d) { this.verificationName = d; @@ -64,7 +65,7 @@ public GetAccountDocumentsRequest setVerificationName(String d) { @RequestField(name="verification_status") /** - * The account verification status list separated by the ';' symbol. The + * The account verification status list separated by semicolon (;). The * following values are possible: REQUIRED, IN_PROGRESS, VERIFIED */ public MultiArgument getVerificationStatus() { @@ -76,7 +77,7 @@ public boolean hasVerificationStatus() { } /** - * The account verification status list separated by the ';' symbol. The + * The account verification status list separated by semicolon (;). The * following values are possible: REQUIRED, IN_PROGRESS, VERIFIED */ public GetAccountDocumentsRequest setVerificationStatus(MultiArgument d) { @@ -140,8 +141,8 @@ public GetAccountDocumentsRequest setToUnverifiedHoldUntil(Date d) { @RequestField(name="child_account_id") /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public MultiArgument getChildAccountId() { return this.childAccountId; @@ -152,8 +153,8 @@ public boolean hasChildAccountId() { } /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public GetAccountDocumentsRequest setChildAccountId(MultiArgument d) { this.childAccountId = d; @@ -164,7 +165,7 @@ public GetAccountDocumentsRequest setChildAccountId(MultiArgument d) { @RequestField(name="children_verifications_only") /** - * Set true to get the children account verifications only. + * Set true to get the children account verifications only */ public Boolean getChildrenVerificationsOnly() { return this.childrenVerificationsOnly; @@ -175,7 +176,7 @@ public boolean hasChildrenVerificationsOnly() { } /** - * Set true to get the children account verifications only. + * Set true to get the children account verifications only */ public GetAccountDocumentsRequest setChildrenVerificationsOnly(boolean d) { this.childrenVerificationsOnly = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetAccountInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAccountInfoRequest.java index 6fe89f1..8a9a2f3 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAccountInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAccountInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetAccountInfoRequest implements Alignable { @RequestField(name="return_live_balance") /** - * Set true to get the account's live balance. + * Set true to get the account's live balance */ public Boolean getReturnLiveBalance() { return this.returnLiveBalance; @@ -29,7 +30,7 @@ public boolean hasReturnLiveBalance() { } /** - * Set true to get the account's live balance. + * Set true to get the account's live balance */ public GetAccountInfoRequest setReturnLiveBalance(boolean d) { this.returnLiveBalance = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetAccountInvoicesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAccountInvoicesRequest.java new file mode 100644 index 0000000..e40ce70 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetAccountInvoicesRequest.java @@ -0,0 +1,129 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetAccountInvoicesRequest implements Alignable { + private String status; + + @RequestField(name="status") + /** + * Status to filter invoices. Possible values: new, taxed, accepted, + * committed, cancelled, numbered + */ + public String getStatus() { + return this.status; + } + + public boolean hasStatus() { + return this.status != null; + } + + /** + * Status to filter invoices. Possible values: new, taxed, accepted, + * committed, cancelled, numbered + */ + public GetAccountInvoicesRequest setStatus(String d) { + this.status = d; + return this; + } + + private Long count; + + @RequestField(name="count") + /** + * Number of invooces to show per page. Default value is 20 + */ + public Long getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + + /** + * Number of invooces to show per page. Default value is 20 + */ + public GetAccountInvoicesRequest setCount(long d) { + this.count = Long.valueOf(d); + return this; + } + + private Long offset; + + @RequestField(name="offset") + /** + * Number of invoices to skip (e.g. if you set count = 20 and offset = 0 + * the first time, the next time, offset has to be equal to 20 to skip + * the items shown earlier). Default value is 0 + */ + public Long getOffset() { + return this.offset; + } + + public boolean hasOffset() { + return this.offset != null; + } + + /** + * Number of invoices to skip (e.g. if you set count = 20 and offset = 0 + * the first time, the next time, offset has to be equal to 20 to skip + * the items shown earlier). Default value is 0 + */ + public GetAccountInvoicesRequest setOffset(long d) { + this.offset = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (status != null) { + sb.append(aligned) + .append("\"status\": \"") + .append(status) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (count != null) { + sb.append(aligned) + .append("\"count\": \"") + .append(count) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (offset != null) { + sb.append(aligned) + .append("\"offset\": \"") + .append(offset) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetAccountPhoneNumberCountriesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAccountPhoneNumberCountriesRequest.java new file mode 100644 index 0000000..dc4318b --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetAccountPhoneNumberCountriesRequest.java @@ -0,0 +1,63 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetAccountPhoneNumberCountriesRequest implements Alignable { + private MultiArgument applicationId; + + @RequestField(name="application_id") + /** + * The application ID list separated by semicolon (;) to filter + */ + public MultiArgument getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID list separated by semicolon (;) to filter + */ + public GetAccountPhoneNumberCountriesRequest setApplicationId(MultiArgument d) { + this.applicationId = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetAccountPlansRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAccountPlansRequest.java new file mode 100644 index 0000000..0c76205 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetAccountPlansRequest.java @@ -0,0 +1,95 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetAccountPlansRequest implements Alignable { + private MultiArgument planType; + + @RequestField(name="plan_type") + /** + * The plan type list separated by semicolon (;). The possible values + * are IM, MAU + */ + public MultiArgument getPlanType() { + return this.planType; + } + + public boolean hasPlanType() { + return this.planType != null; + } + + /** + * The plan type list separated by semicolon (;). The possible values + * are IM, MAU + */ + public GetAccountPlansRequest setPlanType(MultiArgument d) { + this.planType = d; + return this; + } + + private MultiArgument planSubscriptionTemplateId; + + @RequestField(name="plan_subscription_template_id") + /** + * The plan ID list separated by semicolon (;) + */ + public MultiArgument getPlanSubscriptionTemplateId() { + return this.planSubscriptionTemplateId; + } + + public boolean hasPlanSubscriptionTemplateId() { + return this.planSubscriptionTemplateId != null; + } + + /** + * The plan ID list separated by semicolon (;) + */ + public GetAccountPlansRequest setPlanSubscriptionTemplateId(MultiArgument d) { + this.planSubscriptionTemplateId = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (planType != null) { + sb.append(aligned) + .append("\"planType\": \"") + .append(planType) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (planSubscriptionTemplateId != null) { + sb.append(aligned) + .append("\"planSubscriptionTemplateId\": \"") + .append(planSubscriptionTemplateId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetActualPhoneNumberRegionRequest.java b/src/main/java/com/voximplant/apiclient/request/GetActualPhoneNumberRegionRequest.java index 309d235..7b3cdcc 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetActualPhoneNumberRegionRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetActualPhoneNumberRegionRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetActualPhoneNumberRegionRequest implements Alignable { @RequestField(name="country_code") /** - * The country code. + * The country code */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code. + * The country code */ public GetActualPhoneNumberRegionRequest setCountryCode(String d) { this.countryCode = d; @@ -40,7 +41,7 @@ public GetActualPhoneNumberRegionRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -51,18 +52,40 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public GetActualPhoneNumberRegionRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; return this; } + private String countryState; + + @RequestField(name="country_state") + /** + * The country state code (example: AL, CA, ... ) + */ + public String getCountryState() { + return this.countryState; + } + + public boolean hasCountryState() { + return this.countryState != null; + } + + /** + * The country state code (example: AL, CA, ... ) + */ + public GetActualPhoneNumberRegionRequest setCountryState(String d) { + this.countryState = d; + return this; + } + private Long phoneRegionId; @RequestField(name="phone_region_id") /** - * The phone region ID to filter. + * The phone region ID to filter */ public Long getPhoneRegionId() { return this.phoneRegionId; @@ -73,7 +96,7 @@ public boolean hasPhoneRegionId() { } /** - * The phone region ID to filter. + * The phone region ID to filter */ public GetActualPhoneNumberRegionRequest setPhoneRegionId(long d) { this.phoneRegionId = Long.valueOf(d); @@ -84,7 +107,7 @@ public GetActualPhoneNumberRegionRequest setPhoneRegionId(long d) { @RequestField(name="locale") /** - * The 2-letter locale code. Supported values are EN, RU. + * The 2-letter locale code. Supported values are EN, RU */ public String getLocale() { return this.locale; @@ -95,7 +118,7 @@ public boolean hasLocale() { } /** - * The 2-letter locale code. Supported values are EN, RU. + * The 2-letter locale code. Supported values are EN, RU */ public GetActualPhoneNumberRegionRequest setLocale(String d) { this.locale = d; @@ -127,6 +150,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (countryState != null) { + sb.append(aligned) + .append("\"countryState\": \"") + .append(countryState) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (phoneRegionId != null) { sb.append(aligned) .append("\"phoneRegionId\": \"") diff --git a/src/main/java/com/voximplant/apiclient/request/GetAdminRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAdminRolesRequest.java index c98743a..8c5b230 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAdminRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAdminRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetAdminRolesRequest implements Alignable { @RequestField(name="admin_role_id") /** - * The admin role ID to filter. + * The admin role ID to filter */ public Long getAdminRoleId() { return this.adminRoleId; @@ -29,7 +30,7 @@ public boolean hasAdminRoleId() { } /** - * The admin role ID to filter. + * The admin role ID to filter */ public GetAdminRolesRequest setAdminRoleId(long d) { this.adminRoleId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetAdminRolesRequest setAdminRoleId(long d) { @RequestField(name="admin_role_name") /** - * The admin role name part to filter. + * The admin role name part to filter */ public String getAdminRoleName() { return this.adminRoleName; @@ -51,7 +52,7 @@ public boolean hasAdminRoleName() { } /** - * The admin role name part to filter. + * The admin role name part to filter */ public GetAdminRolesRequest setAdminRoleName(String d) { this.adminRoleName = d; @@ -62,7 +63,7 @@ public GetAdminRolesRequest setAdminRoleName(String d) { @RequestField(name="admin_role_active") /** - * The admin role active flag to filter. + * The admin role active flag to filter */ public Boolean getAdminRoleActive() { return this.adminRoleActive; @@ -73,7 +74,7 @@ public boolean hasAdminRoleActive() { } /** - * The admin role active flag to filter. + * The admin role active flag to filter */ public GetAdminRolesRequest setAdminRoleActive(boolean d) { this.adminRoleActive = Boolean.valueOf(d); @@ -84,7 +85,7 @@ public GetAdminRolesRequest setAdminRoleActive(boolean d) { @RequestField(name="with_entries") /** - * Set true to get the permissions. + * Set true to get the permissions */ public Boolean getWithEntries() { return this.withEntries; @@ -95,7 +96,7 @@ public boolean hasWithEntries() { } /** - * Set true to get the permissions. + * Set true to get the permissions */ public GetAdminRolesRequest setWithEntries(boolean d) { this.withEntries = Boolean.valueOf(d); @@ -106,7 +107,7 @@ public GetAdminRolesRequest setWithEntries(boolean d) { @RequestField(name="with_account_roles") /** - * Set false to omit the account roles. + * Set false to omit the account roles */ public Boolean getWithAccountRoles() { return this.withAccountRoles; @@ -117,7 +118,7 @@ public boolean hasWithAccountRoles() { } /** - * Set false to omit the account roles. + * Set false to omit the account roles */ public GetAdminRolesRequest setWithAccountRoles(boolean d) { this.withAccountRoles = Boolean.valueOf(d); @@ -128,7 +129,7 @@ public GetAdminRolesRequest setWithAccountRoles(boolean d) { @RequestField(name="with_parent_roles") /** - * Set false to omit the parent roles. + * Set false to omit the parent roles */ public Boolean getWithParentRoles() { return this.withParentRoles; @@ -139,7 +140,7 @@ public boolean hasWithParentRoles() { } /** - * Set false to omit the parent roles. + * Set false to omit the parent roles */ public GetAdminRolesRequest setWithParentRoles(boolean d) { this.withParentRoles = Boolean.valueOf(d); @@ -150,7 +151,7 @@ public GetAdminRolesRequest setWithParentRoles(boolean d) { @RequestField(name="with_system_roles") /** - * Set false to omit the system roles. + * Set false to omit the system roles */ public Boolean getWithSystemRoles() { return this.withSystemRoles; @@ -161,7 +162,7 @@ public boolean hasWithSystemRoles() { } /** - * Set false to omit the system roles. + * Set false to omit the system roles */ public GetAdminRolesRequest setWithSystemRoles(boolean d) { this.withSystemRoles = Boolean.valueOf(d); @@ -172,8 +173,8 @@ public GetAdminRolesRequest setWithSystemRoles(boolean d) { @RequestField(name="included_admin_user_id") /** - * The attached admin user ID list separated by the ';' symbol or the - * 'all' value. + * The attached admin user ID list separated by semicolon (;). Use the + * 'all' value to select all admin users */ public MultiArgument getIncludedAdminUserId() { return this.includedAdminUserId; @@ -184,8 +185,8 @@ public boolean hasIncludedAdminUserId() { } /** - * The attached admin user ID list separated by the ';' symbol or the - * 'all' value. + * The attached admin user ID list separated by semicolon (;). Use the + * 'all' value to select all admin users */ public GetAdminRolesRequest setIncludedAdminUserId(MultiArgument d) { this.includedAdminUserId = d; @@ -196,8 +197,8 @@ public GetAdminRolesRequest setIncludedAdminUserId(MultiArgument d) { @RequestField(name="excluded_admin_user_id") /** - * The not attached admin user ID list separated by the ';' symbol or - * the 'all' value. + * Not attached admin user ID list separated by semicolon (;). Use the + * 'all' value to select all admin users */ public MultiArgument getExcludedAdminUserId() { return this.excludedAdminUserId; @@ -208,8 +209,8 @@ public boolean hasExcludedAdminUserId() { } /** - * The not attached admin user ID list separated by the ';' symbol or - * the 'all' value. + * Not attached admin user ID list separated by semicolon (;). Use the + * 'all' value to select all admin users */ public GetAdminRolesRequest setExcludedAdminUserId(MultiArgument d) { this.excludedAdminUserId = d; @@ -220,7 +221,7 @@ public GetAdminRolesRequest setExcludedAdminUserId(MultiArgument d) { @RequestField(name="full_admin_users_matching") /** - * Set false to get roles with partial admin user list matching. + * Set false to get roles with partial admin user list matching */ public String getFullAdminUsersMatching() { return this.fullAdminUsersMatching; @@ -231,7 +232,7 @@ public boolean hasFullAdminUsersMatching() { } /** - * Set false to get roles with partial admin user list matching. + * Set false to get roles with partial admin user list matching */ public GetAdminRolesRequest setFullAdminUsersMatching(String d) { this.fullAdminUsersMatching = d; @@ -242,7 +243,7 @@ public GetAdminRolesRequest setFullAdminUsersMatching(String d) { @RequestField(name="showing_admin_user_id") /** - * The admin user to show in the 'admin_users' field output. + * The admin user to show in the 'admin_users' field output */ public Long getShowingAdminUserId() { return this.showingAdminUserId; @@ -253,7 +254,7 @@ public boolean hasShowingAdminUserId() { } /** - * The admin user to show in the 'admin_users' field output. + * The admin user to show in the 'admin_users' field output */ public GetAdminRolesRequest setShowingAdminUserId(long d) { this.showingAdminUserId = Long.valueOf(d); @@ -264,7 +265,7 @@ public GetAdminRolesRequest setShowingAdminUserId(long d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -275,7 +276,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetAdminRolesRequest setCount(long d) { this.count = Long.valueOf(d); @@ -286,7 +287,7 @@ public GetAdminRolesRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -297,7 +298,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetAdminRolesRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetAdminUsersRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAdminUsersRequest.java index 4c79f7a..18e2f93 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAdminUsersRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAdminUsersRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetAdminUsersRequest implements Alignable { @RequestField(name="required_admin_user_id") /** - * The admin user ID to filter. + * The admin user ID to filter */ public Long getRequiredAdminUserId() { return this.requiredAdminUserId; @@ -29,7 +30,7 @@ public boolean hasRequiredAdminUserId() { } /** - * The admin user ID to filter. + * The admin user ID to filter */ public GetAdminUsersRequest setRequiredAdminUserId(long d) { this.requiredAdminUserId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetAdminUsersRequest setRequiredAdminUserId(long d) { @RequestField(name="required_admin_user_name") /** - * The admin user name part to filter. + * The admin user name part to filter */ public String getRequiredAdminUserName() { return this.requiredAdminUserName; @@ -51,7 +52,7 @@ public boolean hasRequiredAdminUserName() { } /** - * The admin user name part to filter. + * The admin user name part to filter */ public GetAdminUsersRequest setRequiredAdminUserName(String d) { this.requiredAdminUserName = d; @@ -62,7 +63,7 @@ public GetAdminUsersRequest setRequiredAdminUserName(String d) { @RequestField(name="admin_user_display_name") /** - * The admin user display name part to filter. + * The admin user display name part to filter */ public String getAdminUserDisplayName() { return this.adminUserDisplayName; @@ -73,7 +74,7 @@ public boolean hasAdminUserDisplayName() { } /** - * The admin user display name part to filter. + * The admin user display name part to filter */ public GetAdminUsersRequest setAdminUserDisplayName(String d) { this.adminUserDisplayName = d; @@ -84,7 +85,7 @@ public GetAdminUsersRequest setAdminUserDisplayName(String d) { @RequestField(name="admin_user_active") /** - * The admin user active flag to filter. + * The admin user active flag to filter */ public Boolean getAdminUserActive() { return this.adminUserActive; @@ -95,7 +96,7 @@ public boolean hasAdminUserActive() { } /** - * The admin user active flag to filter. + * The admin user active flag to filter */ public GetAdminUsersRequest setAdminUserActive(boolean d) { this.adminUserActive = Boolean.valueOf(d); @@ -106,7 +107,7 @@ public GetAdminUsersRequest setAdminUserActive(boolean d) { @RequestField(name="with_roles") /** - * Set true to get the attached admin roles. + * Set true to get the attached admin roles */ public Boolean getWithRoles() { return this.withRoles; @@ -117,7 +118,7 @@ public boolean hasWithRoles() { } /** - * Set true to get the attached admin roles. + * Set true to get the attached admin roles */ public GetAdminUsersRequest setWithRoles(boolean d) { this.withRoles = Boolean.valueOf(d); @@ -128,7 +129,7 @@ public GetAdminUsersRequest setWithRoles(boolean d) { @RequestField(name="with_access_entries") /** - * Set true to get the admin user permissions. + * Set true to get the admin user permissions */ public Boolean getWithAccessEntries() { return this.withAccessEntries; @@ -139,7 +140,7 @@ public boolean hasWithAccessEntries() { } /** - * Set true to get the admin user permissions. + * Set true to get the admin user permissions */ public GetAdminUsersRequest setWithAccessEntries(boolean d) { this.withAccessEntries = Boolean.valueOf(d); @@ -150,7 +151,7 @@ public GetAdminUsersRequest setWithAccessEntries(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -161,7 +162,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetAdminUsersRequest setCount(long d) { this.count = Long.valueOf(d); @@ -172,7 +173,7 @@ public GetAdminUsersRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -183,7 +184,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetAdminUsersRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetApplicationsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetApplicationsRequest.java index cabcf41..d7dc48e 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetApplicationsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetApplicationsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetApplicationsRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID to filter. + * The application ID to filter */ public Long getApplicationId() { return this.applicationId; @@ -29,7 +30,7 @@ public boolean hasApplicationId() { } /** - * The application ID to filter. + * The application ID to filter */ public GetApplicationsRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetApplicationsRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name part to filter. + * The application name part to filter */ public String getApplicationName() { return this.applicationName; @@ -51,84 +52,18 @@ public boolean hasApplicationName() { } /** - * The application name part to filter. + * The application name part to filter */ public GetApplicationsRequest setApplicationName(String d) { this.applicationName = d; return this; } - private Long userId; - - @RequestField(name="user_id") - /** - * The user ID to filter. - */ - public Long getUserId() { - return this.userId; - } - - public boolean hasUserId() { - return this.userId != null; - } - - /** - * The user ID to filter. - */ - public GetApplicationsRequest setUserId(long d) { - this.userId = Long.valueOf(d); - return this; - } - - private Long excludedUserId; - - @RequestField(name="excluded_user_id") - /** - * The excluded user ID to filter. - */ - public Long getExcludedUserId() { - return this.excludedUserId; - } - - public boolean hasExcludedUserId() { - return this.excludedUserId != null; - } - - /** - * The excluded user ID to filter. - */ - public GetApplicationsRequest setExcludedUserId(long d) { - this.excludedUserId = Long.valueOf(d); - return this; - } - - private Long showingUserId; - - @RequestField(name="showing_user_id") - /** - * Specify the user ID value to show it in the 'users' array output. - */ - public Long getShowingUserId() { - return this.showingUserId; - } - - public boolean hasShowingUserId() { - return this.showingUserId != null; - } - - /** - * Specify the user ID value to show it in the 'users' array output. - */ - public GetApplicationsRequest setShowingUserId(long d) { - this.showingUserId = Long.valueOf(d); - return this; - } - private Boolean withRules; @RequestField(name="with_rules") /** - * Set true to get bound rules info. + * Set true to get bound rules info */ public Boolean getWithRules() { return this.withRules; @@ -139,7 +74,7 @@ public boolean hasWithRules() { } /** - * Set true to get bound rules info. + * Set true to get bound rules info */ public GetApplicationsRequest setWithRules(boolean d) { this.withRules = Boolean.valueOf(d); @@ -150,7 +85,7 @@ public GetApplicationsRequest setWithRules(boolean d) { @RequestField(name="with_scenarios") /** - * Set true to get bound rules and scenarios info. + * Set true to get bound rules and scenarios info */ public Boolean getWithScenarios() { return this.withScenarios; @@ -161,7 +96,7 @@ public boolean hasWithScenarios() { } /** - * Set true to get bound rules and scenarios info. + * Set true to get bound rules and scenarios info */ public GetApplicationsRequest setWithScenarios(boolean d) { this.withScenarios = Boolean.valueOf(d); @@ -172,7 +107,7 @@ public GetApplicationsRequest setWithScenarios(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -183,7 +118,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetApplicationsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -194,7 +129,7 @@ public GetApplicationsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -205,7 +140,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetApplicationsRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -237,30 +172,6 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } - if (userId != null) { - sb.append(aligned) - .append("\"userId\": \"") - .append(userId) - .append('"') - .append(',') - .append(System.lineSeparator()); - } - if (excludedUserId != null) { - sb.append(aligned) - .append("\"excludedUserId\": \"") - .append(excludedUserId) - .append('"') - .append(',') - .append(System.lineSeparator()); - } - if (showingUserId != null) { - sb.append(aligned) - .append("\"showingUserId\": \"") - .append(showingUserId) - .append('"') - .append(',') - .append(System.lineSeparator()); - } if (withRules != null) { sb.append(aligned) .append("\"withRules\": \"") diff --git a/src/main/java/com/voximplant/apiclient/request/GetAuditLogRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAuditLogRequest.java index bff6f89..f60d8be 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAuditLogRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAuditLogRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -66,7 +67,7 @@ public GetAuditLogRequest setToDate(Date d) { @RequestField(name="timezone") /** - * The selected timezone or the 'auto' value (the account location). + * The selected timezone or the 'auto' value (the account location) */ public String getTimezone() { return this.timezone; @@ -77,7 +78,7 @@ public boolean hasTimezone() { } /** - * The selected timezone or the 'auto' value (the account location). + * The selected timezone or the 'auto' value (the account location) */ public GetAuditLogRequest setTimezone(String d) { this.timezone = d; @@ -88,7 +89,7 @@ public GetAuditLogRequest setTimezone(String d) { @RequestField(name="audit_log_id") /** - * The audit history ID list separated by the ';' symbol. + * The audit history ID list separated by semicolon (;) */ public MultiArgument getAuditLogId() { return this.auditLogId; @@ -99,7 +100,7 @@ public boolean hasAuditLogId() { } /** - * The audit history ID list separated by the ';' symbol. + * The audit history ID list separated by semicolon (;) */ public GetAuditLogRequest setAuditLogId(MultiArgument d) { this.auditLogId = d; @@ -110,7 +111,7 @@ public GetAuditLogRequest setAuditLogId(MultiArgument d) { @RequestField(name="filtered_admin_user_id") /** - * The admin user ID to filter. + * The admin user ID to filter */ public String getFilteredAdminUserId() { return this.filteredAdminUserId; @@ -121,7 +122,7 @@ public boolean hasFilteredAdminUserId() { } /** - * The admin user ID to filter. + * The admin user ID to filter */ public GetAuditLogRequest setFilteredAdminUserId(String d) { this.filteredAdminUserId = d; @@ -132,7 +133,7 @@ public GetAuditLogRequest setFilteredAdminUserId(String d) { @RequestField(name="filtered_ip") /** - * The IP list separated by the ';' symbol to filter. + * The IP list separated by semicolon (;) to filter */ public MultiArgument getFilteredIp() { return this.filteredIp; @@ -143,7 +144,7 @@ public boolean hasFilteredIp() { } /** - * The IP list separated by the ';' symbol to filter. + * The IP list separated by semicolon (;) to filter */ public GetAuditLogRequest setFilteredIp(MultiArgument d) { this.filteredIp = d; @@ -154,7 +155,7 @@ public GetAuditLogRequest setFilteredIp(MultiArgument d) { @RequestField(name="filtered_cmd") /** - * The function list separated by the ';' symbol to filter. + * The function list separated by semicolon (;) to filter */ public MultiArgument getFilteredCmd() { return this.filteredCmd; @@ -165,7 +166,7 @@ public boolean hasFilteredCmd() { } /** - * The function list separated by the ';' symbol to filter. + * The function list separated by semicolon (;) to filter */ public GetAuditLogRequest setFilteredCmd(MultiArgument d) { this.filteredCmd = d; @@ -177,7 +178,7 @@ public GetAuditLogRequest setFilteredCmd(MultiArgument d) { @RequestField(name="advanced_filters") /** * A relation ID to filter (for example: a phone_number value, a user_id - * value, an application_id value). + * value, an application_id value) */ public String getAdvancedFilters() { return this.advancedFilters; @@ -189,7 +190,7 @@ public boolean hasAdvancedFilters() { /** * A relation ID to filter (for example: a phone_number value, a user_id - * value, an application_id value). + * value, an application_id value) */ public GetAuditLogRequest setAdvancedFilters(String d) { this.advancedFilters = d; @@ -222,7 +223,7 @@ public GetAuditLogRequest setWithHeader(boolean d) { @RequestField(name="desc_order") /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public Boolean getDescOrder() { return this.descOrder; @@ -233,7 +234,7 @@ public boolean hasDescOrder() { } /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public GetAuditLogRequest setDescOrder(boolean d) { this.descOrder = Boolean.valueOf(d); @@ -244,7 +245,7 @@ public GetAuditLogRequest setDescOrder(boolean d) { @RequestField(name="with_total_count") /** - * Set false to omit the 'total_count' and increase performance. + * Set false to omit the 'total_count' and increase performance */ public Boolean getWithTotalCount() { return this.withTotalCount; @@ -255,7 +256,7 @@ public boolean hasWithTotalCount() { } /** - * Set false to omit the 'total_count' and increase performance. + * Set false to omit the 'total_count' and increase performance */ public GetAuditLogRequest setWithTotalCount(boolean d) { this.withTotalCount = Boolean.valueOf(d); @@ -266,7 +267,7 @@ public GetAuditLogRequest setWithTotalCount(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -277,7 +278,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetAuditLogRequest setCount(long d) { this.count = Long.valueOf(d); @@ -288,7 +289,7 @@ public GetAuditLogRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -299,7 +300,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetAuditLogRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -310,7 +311,7 @@ public GetAuditLogRequest setOffset(long d) { @RequestField(name="output") /** - * The output format. The following values available: json, csv. + * The output format. The following values available: json, csv */ public String getOutput() { return this.output; @@ -321,7 +322,7 @@ public boolean hasOutput() { } /** - * The output format. The following values available: json, csv. + * The output format. The following values available: json, csv */ public GetAuditLogRequest setOutput(String d) { this.output = d; @@ -334,7 +335,7 @@ public GetAuditLogRequest setOutput(String d) { /** * Set true to get records in the asynchronous mode (for csv output * only). If it's true, the request is available via [GetHistoryReports] - * and [DownloadHistoryReport] methods. + * and [DownloadHistoryReport] methods */ public Boolean getIsAsync() { return this.isAsync; @@ -347,7 +348,7 @@ public boolean hasIsAsync() { /** * Set true to get records in the asynchronous mode (for csv output * only). If it's true, the request is available via [GetHistoryReports] - * and [DownloadHistoryReport] methods. + * and [DownloadHistoryReport] methods */ public GetAuditLogRequest setIsAsync(boolean d) { this.isAsync = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetAuthorizedAccountIPsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAuthorizedAccountIPsRequest.java index 5e3a88c..84d1825 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAuthorizedAccountIPsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAuthorizedAccountIPsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetAuthorizedAccountIPsRequest implements Alignable { @RequestField(name="authorized_ip") /** - * The authorized IP4 or network to filter. + * The authorized IP4 or network to filter */ public String getAuthorizedIp() { return this.authorizedIp; @@ -29,7 +30,7 @@ public boolean hasAuthorizedIp() { } /** - * The authorized IP4 or network to filter. + * The authorized IP4 or network to filter */ public GetAuthorizedAccountIPsRequest setAuthorizedIp(String d) { this.authorizedIp = d; @@ -40,7 +41,7 @@ public GetAuthorizedAccountIPsRequest setAuthorizedIp(String d) { @RequestField(name="allowed") /** - * The allowed flag to filter. + * The allowed flag to filter */ public Boolean getAllowed() { return this.allowed; @@ -51,7 +52,7 @@ public boolean hasAllowed() { } /** - * The allowed flag to filter. + * The allowed flag to filter */ public GetAuthorizedAccountIPsRequest setAllowed(boolean d) { this.allowed = Boolean.valueOf(d); @@ -63,7 +64,7 @@ public GetAuthorizedAccountIPsRequest setAllowed(boolean d) { @RequestField(name="contains_ip") /** * Specify the parameter to filter the networks that contains the - * particular IP4. + * particular IP4 */ public String getContainsIp() { return this.containsIp; @@ -75,7 +76,7 @@ public boolean hasContainsIp() { /** * Specify the parameter to filter the networks that contains the - * particular IP4. + * particular IP4 */ public GetAuthorizedAccountIPsRequest setContainsIp(String d) { this.containsIp = d; @@ -86,7 +87,7 @@ public GetAuthorizedAccountIPsRequest setContainsIp(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -97,7 +98,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetAuthorizedAccountIPsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -108,7 +109,7 @@ public GetAuthorizedAccountIPsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -119,13 +120,35 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetAuthorizedAccountIPsRequest setOffset(long d) { this.offset = Long.valueOf(d); return this; } + private String description; + + @RequestField(name="description") + /** + * The IP address description + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * The IP address description + */ + public GetAuthorizedAccountIPsRequest setDescription(String d) { + this.description = d; + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -175,6 +198,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/GetAvailableAdminRoleEntriesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAvailableAdminRoleEntriesRequest.java index c65324e..132a093 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAvailableAdminRoleEntriesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAvailableAdminRoleEntriesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; diff --git a/src/main/java/com/voximplant/apiclient/request/GetAvailablePlansRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAvailablePlansRequest.java new file mode 100644 index 0000000..13f799c --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetAvailablePlansRequest.java @@ -0,0 +1,95 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetAvailablePlansRequest implements Alignable { + private MultiArgument planType; + + @RequestField(name="plan_type") + /** + * The plan type list separated by semicolon (;). The possible values + * are IM, MAU + */ + public MultiArgument getPlanType() { + return this.planType; + } + + public boolean hasPlanType() { + return this.planType != null; + } + + /** + * The plan type list separated by semicolon (;). The possible values + * are IM, MAU + */ + public GetAvailablePlansRequest setPlanType(MultiArgument d) { + this.planType = d; + return this; + } + + private MultiArgument planSubscriptionTemplateId; + + @RequestField(name="plan_subscription_template_id") + /** + * The plan ID list separated by semicolon (;) + */ + public MultiArgument getPlanSubscriptionTemplateId() { + return this.planSubscriptionTemplateId; + } + + public boolean hasPlanSubscriptionTemplateId() { + return this.planSubscriptionTemplateId != null; + } + + /** + * The plan ID list separated by semicolon (;) + */ + public GetAvailablePlansRequest setPlanSubscriptionTemplateId(MultiArgument d) { + this.planSubscriptionTemplateId = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (planType != null) { + sb.append(aligned) + .append("\"planType\": \"") + .append(planType) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (planSubscriptionTemplateId != null) { + sb.append(aligned) + .append("\"planSubscriptionTemplateId\": \"") + .append(planSubscriptionTemplateId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetAvailableRegulationsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetAvailableRegulationsRequest.java index 317678d..69bc13c 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetAvailableRegulationsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetAvailableRegulationsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetAvailableRegulationsRequest implements Alignable { @RequestField(name="country_code") /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public GetAvailableRegulationsRequest setCountryCode(String d) { this.countryCode = d; @@ -40,7 +41,7 @@ public GetAvailableRegulationsRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -51,7 +52,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public GetAvailableRegulationsRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -62,7 +63,7 @@ public GetAvailableRegulationsRequest setPhoneCategoryName(String d) { @RequestField(name="phone_region_code") /** - * The phone region code. See the [GetRegions] method. + * The phone region code. See the [GetRegions] method */ public String getPhoneRegionCode() { return this.phoneRegionCode; @@ -73,7 +74,7 @@ public boolean hasPhoneRegionCode() { } /** - * The phone region code. See the [GetRegions] method. + * The phone region code. See the [GetRegions] method */ public GetAvailableRegulationsRequest setPhoneRegionCode(String d) { this.phoneRegionCode = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetCallHistoryRequest.java b/src/main/java/com/voximplant/apiclient/request/GetCallHistoryRequest.java index e835c74..d33b756 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetCallHistoryRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetCallHistoryRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -70,7 +71,7 @@ public GetCallHistoryRequest setToDate(Date d) { @RequestField(name="timezone") /** - * The selected timezone or the 'auto' value (the account location). + * The selected timezone or the 'auto' value (the account location) */ public String getTimezone() { return this.timezone; @@ -81,7 +82,7 @@ public boolean hasTimezone() { } /** - * The selected timezone or the 'auto' value (the account location). + * The selected timezone or the 'auto' value (the account location) */ public GetCallHistoryRequest setTimezone(String d) { this.timezone = d; @@ -92,11 +93,16 @@ public GetCallHistoryRequest setTimezone(String d) { @RequestField(name="call_session_history_id") /** - * The call session history ID list separated by the ';' symbol. The - * sessions IDs can be accessed in JS scenario via the sessionID - * property of the AppEvents.Started - * event + * To get the call history for the specific sessions, pass the session + * IDs to this parameter separated by a semicolon (;). You can find the + * session ID in the AppEvents.Started + * event's sessionID property in a scenario, or retrieve it from + * the call_session_history_id value returned from the StartScenarios + * or StartConference + * methods */ public MultiArgument getCallSessionHistoryId() { return this.callSessionHistoryId; @@ -107,11 +113,16 @@ public boolean hasCallSessionHistoryId() { } /** - * The call session history ID list separated by the ';' symbol. The - * sessions IDs can be accessed in JS scenario via the sessionID - * property of the AppEvents.Started - * event + * To get the call history for the specific sessions, pass the session + * IDs to this parameter separated by a semicolon (;). You can find the + * session ID in the AppEvents.Started + * event's sessionID property in a scenario, or retrieve it from + * the call_session_history_id value returned from the StartScenarios + * or StartConference + * methods */ public GetCallHistoryRequest setCallSessionHistoryId(MultiArgument d) { this.callSessionHistoryId = d; @@ -122,7 +133,8 @@ public GetCallHistoryRequest setCallSessionHistoryId(MultiArgument d) { @RequestField(name="application_id") /** - * The application ID. + * To receive the call history for a specific application, pass the + * application ID to this parameter */ public Long getApplicationId() { return this.applicationId; @@ -133,7 +145,8 @@ public boolean hasApplicationId() { } /** - * The application ID. + * To receive the call history for a specific application, pass the + * application ID to this parameter */ public GetCallHistoryRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -144,7 +157,7 @@ public GetCallHistoryRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name, can be used instead of application_id. + * The application name, can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -155,7 +168,7 @@ public boolean hasApplicationName() { } /** - * The application name, can be used instead of application_id. + * The application name, can be used instead of application_id */ public GetCallHistoryRequest setApplicationName(String d) { this.applicationName = d; @@ -166,8 +179,9 @@ public GetCallHistoryRequest setApplicationName(String d) { @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol. If it's specified, the - * output will contain the calls from the listed users only. + * To receive the call history for a specific users, pass the user ID + * list separated by semicolon (;). If it's specified, the output + * contains the calls from the listed users only */ public MultiArgument getUserId() { return this.userId; @@ -178,8 +192,9 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol. If it's specified, the - * output will contain the calls from the listed users only. + * To receive the call history for a specific users, pass the user ID + * list separated by semicolon (;). If it's specified, the output + * contains the calls from the listed users only */ public GetCallHistoryRequest setUserId(MultiArgument d) { this.userId = d; @@ -190,7 +205,9 @@ public GetCallHistoryRequest setUserId(MultiArgument d) { @RequestField(name="rule_name") /** - * The rule name to filter. + * To receive the call history for a specific routing rule, pass the + * rule name to this parameter. Applies only if you set application_id + * or application_name */ public String getRuleName() { return this.ruleName; @@ -201,7 +218,9 @@ public boolean hasRuleName() { } /** - * The rule name to filter. + * To receive the call history for a specific routing rule, pass the + * rule name to this parameter. Applies only if you set application_id + * or application_name */ public GetCallHistoryRequest setRuleName(String d) { this.ruleName = d; @@ -212,7 +231,9 @@ public GetCallHistoryRequest setRuleName(String d) { @RequestField(name="remote_number") /** - * The remote number list separated by the ';' symbol. + * To receive a call history for a specific remote numbers, pass the + * number list separated by semicolon (;). A remote number is a number + * on the client side */ public MultiArgument getRemoteNumber() { return this.remoteNumber; @@ -223,7 +244,9 @@ public boolean hasRemoteNumber() { } /** - * The remote number list separated by the ';' symbol. + * To receive a call history for a specific remote numbers, pass the + * number list separated by semicolon (;). A remote number is a number + * on the client side */ public GetCallHistoryRequest setRemoteNumber(MultiArgument d) { this.remoteNumber = d; @@ -234,7 +257,9 @@ public GetCallHistoryRequest setRemoteNumber(MultiArgument d) { @RequestField(name="local_number") /** - * The local number list separated by the ';' symbol. + * To receive a call history for a specific local numbers, pass the + * number list separated by semicolon (;). A local number is a number on + * the platform side */ public MultiArgument getLocalNumber() { return this.localNumber; @@ -245,7 +270,9 @@ public boolean hasLocalNumber() { } /** - * The local number list separated by the ';' symbol. + * To receive a call history for a specific local numbers, pass the + * number list separated by semicolon (;). A local number is a number on + * the platform side */ public GetCallHistoryRequest setLocalNumber(MultiArgument d) { this.localNumber = d; @@ -256,7 +283,8 @@ public GetCallHistoryRequest setLocalNumber(MultiArgument d) { @RequestField(name="call_session_history_custom_data") /** - * The custom_data to filter sessions. + * To filter the call history by the custom_data passed to the call + * sessions, pass the custom data to this parameter */ public String getCallSessionHistoryCustomData() { return this.callSessionHistoryCustomData; @@ -267,7 +295,8 @@ public boolean hasCallSessionHistoryCustomData() { } /** - * The custom_data to filter sessions. + * To filter the call history by the custom_data passed to the call + * sessions, pass the custom data to this parameter */ public GetCallHistoryRequest setCallSessionHistoryCustomData(String d) { this.callSessionHistoryCustomData = d; @@ -278,7 +307,9 @@ public GetCallHistoryRequest setCallSessionHistoryCustomData(String d) { @RequestField(name="with_calls") /** - * Set true to get the bound calls. + * Specifies whether to receive a list of sessions with all calls within + * the sessions, including phone numbers, call cost and other + * information */ public Boolean getWithCalls() { return this.withCalls; @@ -289,7 +320,9 @@ public boolean hasWithCalls() { } /** - * Set true to get the bound calls. + * Specifies whether to receive a list of sessions with all calls within + * the sessions, including phone numbers, call cost and other + * information */ public GetCallHistoryRequest setWithCalls(boolean d) { this.withCalls = Boolean.valueOf(d); @@ -300,7 +333,7 @@ public GetCallHistoryRequest setWithCalls(boolean d) { @RequestField(name="with_records") /** - * Set true to get the bound records. + * Specifies whether to get the calls' records */ public Boolean getWithRecords() { return this.withRecords; @@ -311,7 +344,7 @@ public boolean hasWithRecords() { } /** - * Set true to get the bound records. + * Specifies whether to get the calls' records */ public GetCallHistoryRequest setWithRecords(boolean d) { this.withRecords = Boolean.valueOf(d); @@ -322,7 +355,7 @@ public GetCallHistoryRequest setWithRecords(boolean d) { @RequestField(name="with_other_resources") /** - * Set true to get other resources usage (see [ResourceUsageType]). + * Set true to get other resources usage (see [ResourceUsageType]) */ public Boolean getWithOtherResources() { return this.withOtherResources; @@ -333,7 +366,7 @@ public boolean hasWithOtherResources() { } /** - * Set true to get other resources usage (see [ResourceUsageType]). + * Set true to get other resources usage (see [ResourceUsageType]) */ public GetCallHistoryRequest setWithOtherResources(boolean d) { this.withOtherResources = Boolean.valueOf(d); @@ -344,8 +377,8 @@ public GetCallHistoryRequest setWithOtherResources(boolean d) { @RequestField(name="child_account_id") /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public MultiArgument getChildAccountId() { return this.childAccountId; @@ -356,8 +389,8 @@ public boolean hasChildAccountId() { } /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public GetCallHistoryRequest setChildAccountId(MultiArgument d) { this.childAccountId = d; @@ -368,7 +401,7 @@ public GetCallHistoryRequest setChildAccountId(MultiArgument d) { @RequestField(name="children_calls_only") /** - * Set true to get the children account calls only. + * Set true to get the children account calls only */ public Boolean getChildrenCallsOnly() { return this.childrenCallsOnly; @@ -379,7 +412,7 @@ public boolean hasChildrenCallsOnly() { } /** - * Set true to get the children account calls only. + * Set true to get the children account calls only */ public GetCallHistoryRequest setChildrenCallsOnly(boolean d) { this.childrenCallsOnly = Boolean.valueOf(d); @@ -412,7 +445,7 @@ public GetCallHistoryRequest setWithHeader(boolean d) { @RequestField(name="desc_order") /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public Boolean getDescOrder() { return this.descOrder; @@ -423,7 +456,7 @@ public boolean hasDescOrder() { } /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public GetCallHistoryRequest setDescOrder(boolean d) { this.descOrder = Boolean.valueOf(d); @@ -434,7 +467,7 @@ public GetCallHistoryRequest setDescOrder(boolean d) { @RequestField(name="with_total_count") /** - * Set false to omit the 'total_count' and increase performance. + * Set false to omit the 'total_count' and increase performance */ public Boolean getWithTotalCount() { return this.withTotalCount; @@ -445,7 +478,7 @@ public boolean hasWithTotalCount() { } /** - * Set false to omit the 'total_count' and increase performance. + * Set false to omit the 'total_count' and increase performance */ public GetCallHistoryRequest setWithTotalCount(boolean d) { this.withTotalCount = Boolean.valueOf(d); @@ -456,7 +489,8 @@ public GetCallHistoryRequest setWithTotalCount(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The number of returning records. In the synchronous mode, the maximum + * value is 1000 */ public Long getCount() { return this.count; @@ -467,7 +501,8 @@ public boolean hasCount() { } /** - * The max returning record count. + * The number of returning records. In the synchronous mode, the maximum + * value is 1000 */ public GetCallHistoryRequest setCount(long d) { this.count = Long.valueOf(d); @@ -478,7 +513,8 @@ public GetCallHistoryRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The number of records to skip in the output with a maximum value of + * 10000 */ public Long getOffset() { return this.offset; @@ -489,7 +525,8 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The number of records to skip in the output with a maximum value of + * 10000 */ public GetCallHistoryRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -500,7 +537,7 @@ public GetCallHistoryRequest setOffset(long d) { @RequestField(name="output") /** - * The output format. The following values available: json, csv. + * The output format. The following values available: json, csv */ public String getOutput() { return this.output; @@ -511,7 +548,7 @@ public boolean hasOutput() { } /** - * The output format. The following values available: json, csv. + * The output format. The following values available: json, csv */ public GetCallHistoryRequest setOutput(String d) { this.output = d; @@ -523,8 +560,9 @@ public GetCallHistoryRequest setOutput(String d) { @RequestField(name="is_async") /** * Set true to get records in the asynchronous mode (for csv output - * only). If it's true, the request is available via [GetHistoryReports] - * and [DownloadHistoryReport] methods. + * only). Use this mode to download large amounts of data. See + * the [GetHistoryReports], [DownloadHistoryReport] functions for + * details */ public Boolean getIsAsync() { return this.isAsync; @@ -536,8 +574,9 @@ public boolean hasIsAsync() { /** * Set true to get records in the asynchronous mode (for csv output - * only). If it's true, the request is available via [GetHistoryReports] - * and [DownloadHistoryReport] methods. + * only). Use this mode to download large amounts of data. See + * the [GetHistoryReports], [DownloadHistoryReport] functions for + * details */ public GetCallHistoryRequest setIsAsync(boolean d) { this.isAsync = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetCallListDetailsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetCallListDetailsRequest.java index e948c4e..cfb6bc3 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetCallListDetailsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetCallListDetailsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetCallListDetailsRequest implements Alignable { @RequestField(name="list_id") /** - * The list ID. + * The list ID */ public Long getListId() { return this.listId; @@ -29,7 +30,7 @@ public boolean hasListId() { } /** - * The list ID. + * The list ID */ public GetCallListDetailsRequest setListId(long d) { this.listId = Long.valueOf(d); @@ -62,7 +63,7 @@ public GetCallListDetailsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -73,7 +74,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetCallListDetailsRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetCallListsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetCallListsRequest.java index 7b9b34d..753875d 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetCallListsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetCallListsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,8 +19,8 @@ public class GetCallListsRequest implements Alignable { @RequestField(name="list_id") /** - * The list ID to filter. Can be a list separated by the ';' symbol or - * the 'all' value. + * The list ID to filter. Can be a list separated by semicolon (;). Use + * the 'all' value to select all lists */ public MultiArgument getListId() { return this.listId; @@ -30,8 +31,8 @@ public boolean hasListId() { } /** - * The list ID to filter. Can be a list separated by the ';' symbol or - * the 'all' value. + * The list ID to filter. Can be a list separated by semicolon (;). Use + * the 'all' value to select all lists */ public GetCallListsRequest setListId(MultiArgument d) { this.listId = d; @@ -134,7 +135,7 @@ public GetCallListsRequest setToDate(Date d) { @RequestField(name="type_list") /** - * The type of the call list. The possible values are: AUTOMATIC and + * The type of the call list. The possible values are AUTOMATIC and * MANUAL */ public String getTypeList() { @@ -146,7 +147,7 @@ public boolean hasTypeList() { } /** - * The type of the call list. The possible values are: AUTOMATIC and + * The type of the call list. The possible values are AUTOMATIC and * MANUAL */ public GetCallListsRequest setTypeList(String d) { @@ -158,7 +159,7 @@ public GetCallListsRequest setTypeList(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -169,7 +170,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetCallListsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -180,7 +181,7 @@ public GetCallListsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -191,7 +192,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetCallListsRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -202,8 +203,8 @@ public GetCallListsRequest setOffset(long d) { @RequestField(name="application_id") /** - * The application ID to filter. Can be a list separated by the ';' - * symbol or the 'all' value. + * The application ID to filter. Can be a list separated by semicolon + * (;). Use the 'all' value to select all applications */ public MultiArgument getApplicationId() { return this.applicationId; @@ -214,8 +215,8 @@ public boolean hasApplicationId() { } /** - * The application ID to filter. Can be a list separated by the ';' - * symbol or the 'all' value. + * The application ID to filter. Can be a list separated by semicolon + * (;). Use the 'all' value to select all applications */ public GetCallListsRequest setApplicationId(MultiArgument d) { this.applicationId = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetCallerIDsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetCallerIDsRequest.java index aa17fd5..213189f 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetCallerIDsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetCallerIDsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetCallerIDsRequest implements Alignable { @RequestField(name="callerid_id") /** - * The id of the callerID object to filter. + * The id of the callerID object to filter */ public Long getCalleridId() { return this.calleridId; @@ -29,7 +30,7 @@ public boolean hasCalleridId() { } /** - * The id of the callerID object to filter. + * The id of the callerID object to filter */ public GetCallerIDsRequest setCalleridId(long d) { this.calleridId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetCallerIDsRequest setCalleridId(long d) { @RequestField(name="callerid_number") /** - * The phone number to filter. + * The phone number to filter */ public String getCalleridNumber() { return this.calleridNumber; @@ -51,7 +52,7 @@ public boolean hasCalleridNumber() { } /** - * The phone number to filter. + * The phone number to filter */ public GetCallerIDsRequest setCalleridNumber(String d) { this.calleridNumber = d; @@ -62,7 +63,7 @@ public GetCallerIDsRequest setCalleridNumber(String d) { @RequestField(name="active") /** - * The active flag to filter. + * The active flag to filter */ public Boolean getActive() { return this.active; @@ -73,7 +74,7 @@ public boolean hasActive() { } /** - * The active flag to filter. + * The active flag to filter */ public GetCallerIDsRequest setActive(boolean d) { this.active = Boolean.valueOf(d); @@ -85,7 +86,7 @@ public GetCallerIDsRequest setActive(boolean d) { @RequestField(name="order_by") /** * The following values are available: 'caller_number' (ascent order), - * 'verified_until' (ascent order). + * 'verified_until' (ascent order) */ public String getOrderBy() { return this.orderBy; @@ -97,7 +98,7 @@ public boolean hasOrderBy() { /** * The following values are available: 'caller_number' (ascent order), - * 'verified_until' (ascent order). + * 'verified_until' (ascent order) */ public GetCallerIDsRequest setOrderBy(String d) { this.orderBy = d; @@ -108,7 +109,7 @@ public GetCallerIDsRequest setOrderBy(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -119,7 +120,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetCallerIDsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -130,7 +131,7 @@ public GetCallerIDsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -141,7 +142,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetCallerIDsRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetChildrenAccountsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetChildrenAccountsRequest.java index 06c81bb..90ab112 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetChildrenAccountsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetChildrenAccountsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class GetChildrenAccountsRequest implements Alignable { @RequestField(name="child_account_id") /** - * The account ID list separated by the ';' symbol or the 'all' value. + * The account ID list separated by semicolon (;). Use the 'all' value + * to select all accounts */ public MultiArgument getChildAccountId() { return this.childAccountId; @@ -29,7 +31,8 @@ public boolean hasChildAccountId() { } /** - * The account ID list separated by the ';' symbol or the 'all' value. + * The account ID list separated by semicolon (;). Use the 'all' value + * to select all accounts */ public GetChildrenAccountsRequest setChildAccountId(MultiArgument d) { this.childAccountId = d; @@ -40,7 +43,7 @@ public GetChildrenAccountsRequest setChildAccountId(MultiArgument d) { @RequestField(name="child_account_name") /** - * The child account name part to filter. + * The child account name part to filter */ public String getChildAccountName() { return this.childAccountName; @@ -51,7 +54,7 @@ public boolean hasChildAccountName() { } /** - * The child account name part to filter. + * The child account name part to filter */ public GetChildrenAccountsRequest setChildAccountName(String d) { this.childAccountName = d; @@ -62,7 +65,7 @@ public GetChildrenAccountsRequest setChildAccountName(String d) { @RequestField(name="child_account_email") /** - * The child ccount email to filter. + * The child ccount email to filter */ public String getChildAccountEmail() { return this.childAccountEmail; @@ -73,7 +76,7 @@ public boolean hasChildAccountEmail() { } /** - * The child ccount email to filter. + * The child ccount email to filter */ public GetChildrenAccountsRequest setChildAccountEmail(String d) { this.childAccountEmail = d; @@ -84,7 +87,7 @@ public GetChildrenAccountsRequest setChildAccountEmail(String d) { @RequestField(name="active") /** - * The active flag to filter. + * The active flag to filter */ public Boolean getActive() { return this.active; @@ -95,7 +98,7 @@ public boolean hasActive() { } /** - * The active flag to filter. + * The active flag to filter */ public GetChildrenAccountsRequest setActive(boolean d) { this.active = Boolean.valueOf(d); @@ -106,7 +109,7 @@ public GetChildrenAccountsRequest setActive(boolean d) { @RequestField(name="frozen") /** - * The frozen flag to filter. + * The frozen flag to filter */ public Boolean getFrozen() { return this.frozen; @@ -117,7 +120,7 @@ public boolean hasFrozen() { } /** - * The frozen flag to filter. + * The frozen flag to filter */ public GetChildrenAccountsRequest setFrozen(boolean d) { this.frozen = Boolean.valueOf(d); @@ -128,7 +131,7 @@ public GetChildrenAccountsRequest setFrozen(boolean d) { @RequestField(name="ignore_invalid_accounts") /** - * Set true to ignore the invalid 'child_account_id' items. + * Set true to ignore the invalid 'child_account_id' items */ public Boolean getIgnoreInvalidAccounts() { return this.ignoreInvalidAccounts; @@ -139,7 +142,7 @@ public boolean hasIgnoreInvalidAccounts() { } /** - * Set true to ignore the invalid 'child_account_id' items. + * Set true to ignore the invalid 'child_account_id' items */ public GetChildrenAccountsRequest setIgnoreInvalidAccounts(boolean d) { this.ignoreInvalidAccounts = Boolean.valueOf(d); @@ -150,7 +153,7 @@ public GetChildrenAccountsRequest setIgnoreInvalidAccounts(boolean d) { @RequestField(name="brief_output") /** - * Set true to output the account_id only. + * Set true to output the account_id only */ public Boolean getBriefOutput() { return this.briefOutput; @@ -161,7 +164,7 @@ public boolean hasBriefOutput() { } /** - * Set true to output the account_id only. + * Set true to output the account_id only */ public GetChildrenAccountsRequest setBriefOutput(boolean d) { this.briefOutput = Boolean.valueOf(d); @@ -172,7 +175,7 @@ public GetChildrenAccountsRequest setBriefOutput(boolean d) { @RequestField(name="medium_output") /** - * Set true to output the account_id, account_name, account_email only. + * Set true to output the account_id, account_name, account_email only */ public Boolean getMediumOutput() { return this.mediumOutput; @@ -183,7 +186,7 @@ public boolean hasMediumOutput() { } /** - * Set true to output the account_id, account_name, account_email only. + * Set true to output the account_id, account_name, account_email only */ public GetChildrenAccountsRequest setMediumOutput(boolean d) { this.mediumOutput = Boolean.valueOf(d); @@ -194,7 +197,7 @@ public GetChildrenAccountsRequest setMediumOutput(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -205,7 +208,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetChildrenAccountsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -216,7 +219,7 @@ public GetChildrenAccountsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -227,7 +230,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetChildrenAccountsRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -239,7 +242,7 @@ public GetChildrenAccountsRequest setOffset(long d) { @RequestField(name="order_by") /** * The following values are available: 'child_account_id', - * 'child_account_name' and 'child_account_email'. + * 'child_account_name' and 'child_account_email' */ public String getOrderBy() { return this.orderBy; @@ -251,7 +254,7 @@ public boolean hasOrderBy() { /** * The following values are available: 'child_account_id', - * 'child_account_name' and 'child_account_email'. + * 'child_account_name' and 'child_account_email' */ public GetChildrenAccountsRequest setOrderBy(String d) { this.orderBy = d; @@ -262,7 +265,7 @@ public GetChildrenAccountsRequest setOrderBy(String d) { @RequestField(name="return_live_balance") /** - * Set true to get the user live balance. + * Set true to get the user live balance */ public Boolean getReturnLiveBalance() { return this.returnLiveBalance; @@ -273,7 +276,7 @@ public boolean hasReturnLiveBalance() { } /** - * Set true to get the user live balance. + * Set true to get the user live balance */ public GetChildrenAccountsRequest setReturnLiveBalance(boolean d) { this.returnLiveBalance = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetCountriesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetCountriesRequest.java index b8bfd95..fa89f2e 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetCountriesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetCountriesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetCountriesRequest implements Alignable { @RequestField(name="country_code") /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public GetCountriesRequest setCountryCode(String d) { this.countryCode = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetCurrencyRateRequest.java b/src/main/java/com/voximplant/apiclient/request/GetCurrencyRateRequest.java index f839d3c..99348fc 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetCurrencyRateRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetCurrencyRateRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetCurrencyRateRequest implements Alignable { @RequestField(name="currency") /** - * The currency code list separated by the ';' symbol. Examples: RUR, + * The currency code list separated by semicolon (;). Examples: RUR, * EUR, USD */ public MultiArgument getCurrency() { @@ -30,7 +31,7 @@ public boolean hasCurrency() { } /** - * The currency code list separated by the ';' symbol. Examples: RUR, + * The currency code list separated by semicolon (;). Examples: RUR, * EUR, USD */ public GetCurrencyRateRequest setCurrency(MultiArgument d) { diff --git a/src/main/java/com/voximplant/apiclient/request/GetDialogflowKeysRequest.java b/src/main/java/com/voximplant/apiclient/request/GetDialogflowKeysRequest.java index 363f7f3..5fa5049 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetDialogflowKeysRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetDialogflowKeysRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetDialogflowKeysRequest implements Alignable { @RequestField(name="dialogflow_key_id") /** - * The Dialogflow key's ID. + * The Dialogflow key's ID */ public Long getDialogflowKeyId() { return this.dialogflowKeyId; @@ -29,7 +30,7 @@ public boolean hasDialogflowKeyId() { } /** - * The Dialogflow key's ID. + * The Dialogflow key's ID */ public GetDialogflowKeysRequest setDialogflowKeyId(long d) { this.dialogflowKeyId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetDialogflowKeysRequest setDialogflowKeyId(long d) { @RequestField(name="application_name") /** - * The name of the bound application. + * The name of the bound application */ public String getApplicationName() { return this.applicationName; @@ -51,7 +52,7 @@ public boolean hasApplicationName() { } /** - * The name of the bound application. + * The name of the bound application */ public GetDialogflowKeysRequest setApplicationName(String d) { this.applicationName = d; @@ -62,7 +63,7 @@ public GetDialogflowKeysRequest setApplicationName(String d) { @RequestField(name="application_id") /** - * The id of the bound application. + * The id of the bound application */ public Long getApplicationId() { return this.applicationId; @@ -73,7 +74,7 @@ public boolean hasApplicationId() { } /** - * The id of the bound application. + * The id of the bound application */ public GetDialogflowKeysRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetDialogflowKeysRequest setApplicationId(long d) { @RequestField(name="with_secret_info") /** - * Set true to get the json web key. + * Set true to get the json web key */ public Boolean getWithSecretInfo() { return this.withSecretInfo; @@ -95,7 +96,7 @@ public boolean hasWithSecretInfo() { } /** - * Set true to get the json web key. + * Set true to get the json web key */ public GetDialogflowKeysRequest setWithSecretInfo(boolean d) { this.withSecretInfo = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetHistoryReportsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetHistoryReportsRequest.java index a717d03..58cdcdc 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetHistoryReportsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetHistoryReportsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -40,9 +41,9 @@ public GetHistoryReportsRequest setHistoryReportId(long d) { @RequestField(name="history_type") /** - * The history report type list separated by the ';' symbol or the 'all' - * value. The following values are possible: calls, transactions, audit, - * call_list. + * The history report type list separated by semicolon (;). Use the + * 'all' value to select all history report types. The following values + * are possible: calls, transactions, audit, call_list */ public MultiArgument getHistoryType() { return this.historyType; @@ -53,9 +54,9 @@ public boolean hasHistoryType() { } /** - * The history report type list separated by the ';' symbol or the 'all' - * value. The following values are possible: calls, transactions, audit, - * call_list. + * The history report type list separated by semicolon (;). Use the + * 'all' value to select all history report types. The following values + * are possible: calls, transactions, audit, call_list */ public GetHistoryReportsRequest setHistoryType(MultiArgument d) { this.historyType = d; @@ -114,7 +115,7 @@ public GetHistoryReportsRequest setCreatedTo(Date d) { @RequestField(name="is_completed") /** - * Is report completed? + * Report is completed */ public Boolean getIsCompleted() { return this.isCompleted; @@ -125,7 +126,7 @@ public boolean hasIsCompleted() { } /** - * Is report completed? + * Report is completed */ public GetHistoryReportsRequest setIsCompleted(boolean d) { this.isCompleted = Boolean.valueOf(d); @@ -136,7 +137,7 @@ public GetHistoryReportsRequest setIsCompleted(boolean d) { @RequestField(name="desc_order") /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public Boolean getDescOrder() { return this.descOrder; @@ -147,7 +148,7 @@ public boolean hasDescOrder() { } /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public GetHistoryReportsRequest setDescOrder(boolean d) { this.descOrder = Boolean.valueOf(d); @@ -158,7 +159,7 @@ public GetHistoryReportsRequest setDescOrder(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -169,7 +170,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetHistoryReportsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -180,7 +181,7 @@ public GetHistoryReportsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -191,7 +192,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetHistoryReportsRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -202,8 +203,8 @@ public GetHistoryReportsRequest setOffset(long d) { @RequestField(name="application_id") /** - * The application ID to filter. Can be a list separated by the ';' - * symbol or the 'all' value. + * The application ID to filter. Can be a list separated by semicolon + * (;). Use the 'all' value to select all applications */ public MultiArgument getApplicationId() { return this.applicationId; @@ -214,8 +215,8 @@ public boolean hasApplicationId() { } /** - * The application ID to filter. Can be a list separated by the ';' - * symbol or the 'all' value. + * The application ID to filter. Can be a list separated by semicolon + * (;). Use the 'all' value to select all applications */ public GetHistoryReportsRequest setApplicationId(MultiArgument d) { this.applicationId = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetKeyRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetKeyRolesRequest.java index 6e24fd6..aa2278c 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetKeyRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetKeyRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetKeyRolesRequest implements Alignable { @RequestField(name="key_id") /** - * The key's ID. + * The key's ID */ public String getKeyId() { return this.keyId; @@ -29,7 +30,7 @@ public boolean hasKeyId() { } /** - * The key's ID. + * The key's ID */ public GetKeyRolesRequest setKeyId(String d) { this.keyId = d; @@ -40,7 +41,7 @@ public GetKeyRolesRequest setKeyId(String d) { @RequestField(name="with_expanded_roles") /** - * Show the roles' additional properties. + * Show the roles' additional properties */ public Boolean getWithExpandedRoles() { return this.withExpandedRoles; @@ -51,7 +52,7 @@ public boolean hasWithExpandedRoles() { } /** - * Show the roles' additional properties. + * Show the roles' additional properties */ public GetKeyRolesRequest setWithExpandedRoles(boolean d) { this.withExpandedRoles = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetKeyValueItemRequest.java b/src/main/java/com/voximplant/apiclient/request/GetKeyValueItemRequest.java new file mode 100644 index 0000000..201a5b2 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetKeyValueItemRequest.java @@ -0,0 +1,123 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetKeyValueItemRequest implements Alignable { + private String key; + + @RequestField(name="key") + /** + * Key, up to 200 characters + */ + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + /** + * Key, up to 200 characters + */ + public GetKeyValueItemRequest setKey(String d) { + this.key = d; + return this; + } + + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID + */ + public GetKeyValueItemRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name + */ + public GetKeyValueItemRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (key != null) { + sb.append(aligned) + .append("\"key\": \"") + .append(key) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetKeyValueItemsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetKeyValueItemsRequest.java new file mode 100644 index 0000000..761798b --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetKeyValueItemsRequest.java @@ -0,0 +1,189 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetKeyValueItemsRequest implements Alignable { + private String key; + + @RequestField(name="key") + /** + * Namespace that keys should contain, up to 200 characters + */ + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + /** + * Namespace that keys should contain, up to 200 characters + */ + public GetKeyValueItemsRequest setKey(String d) { + this.key = d; + return this; + } + + private Long count; + + @RequestField(name="count") + /** + * Number of items to show per page with a maximum value of 50. Default + * value is 10 + */ + public Long getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + + /** + * Number of items to show per page with a maximum value of 50. Default + * value is 10 + */ + public GetKeyValueItemsRequest setCount(long d) { + this.count = Long.valueOf(d); + return this; + } + + private Long offset; + + @RequestField(name="offset") + /** + * Number of items to skip (e.g. if you set count = 20 and offset = 0 + * the first time, the next time, offset has to be equal to 20 to skip + * the items shown earlier). Default value is 0 + */ + public Long getOffset() { + return this.offset; + } + + public boolean hasOffset() { + return this.offset != null; + } + + /** + * Number of items to skip (e.g. if you set count = 20 and offset = 0 + * the first time, the next time, offset has to be equal to 20 to skip + * the items shown earlier). Default value is 0 + */ + public GetKeyValueItemsRequest setOffset(long d) { + this.offset = Long.valueOf(d); + return this; + } + + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID + */ + public GetKeyValueItemsRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name + */ + public GetKeyValueItemsRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (key != null) { + sb.append(aligned) + .append("\"key\": \"") + .append(key) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (count != null) { + sb.append(aligned) + .append("\"count\": \"") + .append(count) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (offset != null) { + sb.append(aligned) + .append("\"offset\": \"") + .append(offset) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetKeyValueKeysRequest.java b/src/main/java/com/voximplant/apiclient/request/GetKeyValueKeysRequest.java new file mode 100644 index 0000000..0b30998 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetKeyValueKeysRequest.java @@ -0,0 +1,189 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetKeyValueKeysRequest implements Alignable { + private String key; + + @RequestField(name="key") + /** + * Namespace that keys should contain, up to 200 characters + */ + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + /** + * Namespace that keys should contain, up to 200 characters + */ + public GetKeyValueKeysRequest setKey(String d) { + this.key = d; + return this; + } + + private Long count; + + @RequestField(name="count") + /** + * Number of items to show per page with a maximum value of 50. Default + * value is 10 + */ + public Long getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + + /** + * Number of items to show per page with a maximum value of 50. Default + * value is 10 + */ + public GetKeyValueKeysRequest setCount(long d) { + this.count = Long.valueOf(d); + return this; + } + + private Long offset; + + @RequestField(name="offset") + /** + * Number of items to skip (e.g. if you set count = 20 and offset = 0 + * the first time, the next time, offset has to be equal to 20 to skip + * the items shown earlier). Default value is 0 + */ + public Long getOffset() { + return this.offset; + } + + public boolean hasOffset() { + return this.offset != null; + } + + /** + * Number of items to skip (e.g. if you set count = 20 and offset = 0 + * the first time, the next time, offset has to be equal to 20 to skip + * the items shown earlier). Default value is 0 + */ + public GetKeyValueKeysRequest setOffset(long d) { + this.offset = Long.valueOf(d); + return this; + } + + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID + */ + public GetKeyValueKeysRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name + */ + public GetKeyValueKeysRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (key != null) { + sb.append(aligned) + .append("\"key\": \"") + .append(key) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (count != null) { + sb.append(aligned) + .append("\"count\": \"") + .append(count) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (offset != null) { + sb.append(aligned) + .append("\"offset\": \"") + .append(offset) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetKeysRequest.java b/src/main/java/com/voximplant/apiclient/request/GetKeysRequest.java index 4d2c8b8..83b7567 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetKeysRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetKeysRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetKeysRequest implements Alignable { @RequestField(name="key_id") /** - * The key's ID. + * The key's ID */ public String getKeyId() { return this.keyId; @@ -29,7 +30,7 @@ public boolean hasKeyId() { } /** - * The key's ID. + * The key's ID */ public GetKeysRequest setKeyId(String d) { this.keyId = d; @@ -40,7 +41,7 @@ public GetKeysRequest setKeyId(String d) { @RequestField(name="with_roles") /** - * Show roles for the key. + * Show roles for the key */ public Boolean getWithRoles() { return this.withRoles; @@ -51,7 +52,7 @@ public boolean hasWithRoles() { } /** - * Show roles for the key. + * Show roles for the key */ public GetKeysRequest setWithRoles(boolean d) { this.withRoles = Boolean.valueOf(d); @@ -62,7 +63,7 @@ public GetKeysRequest setWithRoles(boolean d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -73,7 +74,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetKeysRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetKeysRequest setOffset(long d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -95,7 +96,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetKeysRequest setCount(long d) { this.count = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetMoneyAmountToChargeRequest.java b/src/main/java/com/voximplant/apiclient/request/GetMoneyAmountToChargeRequest.java index 5fc3723..b47b5af 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetMoneyAmountToChargeRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetMoneyAmountToChargeRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetMoneyAmountToChargeRequest implements Alignable { @RequestField(name="currency") /** - * The currency name. Examples: USD, RUR, EUR. + * The currency name. Examples: USD, RUR, EUR */ public String getCurrency() { return this.currency; @@ -29,7 +30,7 @@ public boolean hasCurrency() { } /** - * The currency name. Examples: USD, RUR, EUR. + * The currency name. Examples: USD, RUR, EUR */ public GetMoneyAmountToChargeRequest setCurrency(String d) { this.currency = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetNewPhoneNumbersRequest.java b/src/main/java/com/voximplant/apiclient/request/GetNewPhoneNumbersRequest.java index 16ebb09..d220269 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetNewPhoneNumbersRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetNewPhoneNumbersRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetNewPhoneNumbersRequest implements Alignable { @RequestField(name="country_code") /** - * The country code. + * The country code */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code. + * The country code */ public GetNewPhoneNumbersRequest setCountryCode(String d) { this.countryCode = d; @@ -40,7 +41,7 @@ public GetNewPhoneNumbersRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the GetPhoneNumberCategories function. + * The phone category name. See the [GetPhoneNumberCategories] function */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -51,7 +52,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the GetPhoneNumberCategories function. + * The phone category name. See the [GetPhoneNumberCategories] function */ public GetNewPhoneNumbersRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -63,7 +64,7 @@ public GetNewPhoneNumbersRequest setPhoneCategoryName(String d) { @RequestField(name="country_state") /** * The country state. See the GetPhoneNumberCategories and - * GetPhoneNumberCountryStates functions. + * GetPhoneNumberCountryStates functions */ public String getCountryState() { return this.countryState; @@ -75,7 +76,7 @@ public boolean hasCountryState() { /** * The country state. See the GetPhoneNumberCategories and - * GetPhoneNumberCountryStates functions. + * GetPhoneNumberCountryStates functions */ public GetNewPhoneNumbersRequest setCountryState(String d) { this.countryState = d; @@ -86,7 +87,7 @@ public GetNewPhoneNumbersRequest setCountryState(String d) { @RequestField(name="phone_region_id") /** - * The phone region ID. See the [GetPhoneNumberRegions] method. + * The phone region ID. See the [GetPhoneNumberRegions] method */ public Long getPhoneRegionId() { return this.phoneRegionId; @@ -97,7 +98,7 @@ public boolean hasPhoneRegionId() { } /** - * The phone region ID. See the [GetPhoneNumberRegions] method. + * The phone region ID. See the [GetPhoneNumberRegions] method */ public GetNewPhoneNumbersRequest setPhoneRegionId(long d) { this.phoneRegionId = Long.valueOf(d); @@ -108,7 +109,7 @@ public GetNewPhoneNumbersRequest setPhoneRegionId(long d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -119,7 +120,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetNewPhoneNumbersRequest setCount(long d) { this.count = Long.valueOf(d); @@ -130,7 +131,7 @@ public GetNewPhoneNumbersRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -141,7 +142,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetNewPhoneNumbersRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetOutboundTestPhoneNumbersRequest.java b/src/main/java/com/voximplant/apiclient/request/GetOutboundTestPhoneNumbersRequest.java new file mode 100644 index 0000000..730b99c --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetOutboundTestPhoneNumbersRequest.java @@ -0,0 +1,33 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetOutboundTestPhoneNumbersRequest implements Alignable { + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCategoriesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCategoriesRequest.java index c6f2bc3..827d697 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCategoriesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCategoriesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -14,13 +15,13 @@ import com.voximplant.apiclient.util.TimestampSerializer; public class GetPhoneNumberCategoriesRequest implements Alignable { - private String countryCode; + private MultiArgument countryCode; @RequestField(name="country_code") /** - * The country code. + * Country code list separated by semicolon (;) */ - public String getCountryCode() { + public MultiArgument getCountryCode() { return this.countryCode; } @@ -29,9 +30,9 @@ public boolean hasCountryCode() { } /** - * The country code. + * Country code list separated by semicolon (;) */ - public GetPhoneNumberCategoriesRequest setCountryCode(String d) { + public GetPhoneNumberCategoriesRequest setCountryCode(MultiArgument d) { this.countryCode = d; return this; } @@ -42,7 +43,7 @@ public GetPhoneNumberCategoriesRequest setCountryCode(String d) { /** * Flag allows you to display phone number categories only of the * sandbox, real or all .The following values are possible: 'all', - * 'true', 'false'. + * 'true', 'false' */ public String getSandbox() { return this.sandbox; @@ -55,7 +56,7 @@ public boolean hasSandbox() { /** * Flag allows you to display phone number categories only of the * sandbox, real or all .The following values are possible: 'all', - * 'true', 'false'. + * 'true', 'false' */ public GetPhoneNumberCategoriesRequest setSandbox(String d) { this.sandbox = d; @@ -66,7 +67,7 @@ public GetPhoneNumberCategoriesRequest setSandbox(String d) { @RequestField(name="locale") /** - * The 2-letter locale code. Supported values are EN, RU. + * The 2-letter locale code. Supported values are EN, RU */ public String getLocale() { return this.locale; @@ -77,7 +78,7 @@ public boolean hasLocale() { } /** - * The 2-letter locale code. Supported values are EN, RU. + * The 2-letter locale code. Supported values are EN, RU */ public GetPhoneNumberCategoriesRequest setLocale(String d) { this.locale = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCountryStatesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCountryStatesRequest.java index eb25413..0c63fa0 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCountryStatesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberCountryStatesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetPhoneNumberCountryStatesRequest implements Alignable { @RequestField(name="country_code") /** - * The country code. + * The country code */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code. + * The country code */ public GetPhoneNumberCountryStatesRequest setCountryCode(String d) { this.countryCode = d; @@ -40,7 +41,7 @@ public GetPhoneNumberCountryStatesRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the GetPhoneNumberCategories function. + * The phone category name. See the GetPhoneNumberCategories function */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -51,7 +52,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the GetPhoneNumberCategories function. + * The phone category name. See the GetPhoneNumberCategories function */ public GetPhoneNumberCountryStatesRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -62,7 +63,7 @@ public GetPhoneNumberCountryStatesRequest setPhoneCategoryName(String d) { @RequestField(name="country_state") /** - * The country state code (example: AL, CA, ... ). + * The country state code (example: AL, CA, ... ) */ public String getCountryState() { return this.countryState; @@ -73,7 +74,7 @@ public boolean hasCountryState() { } /** - * The country state code (example: AL, CA, ... ). + * The country state code (example: AL, CA, ... ) */ public GetPhoneNumberCountryStatesRequest setCountryState(String d) { this.countryState = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberRegionsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberRegionsRequest.java index cb31d0f..41e7cf5 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberRegionsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumberRegionsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetPhoneNumberRegionsRequest implements Alignable { @RequestField(name="country_code") /** - * The country code. + * The country code */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code. + * The country code */ public GetPhoneNumberRegionsRequest setCountryCode(String d) { this.countryCode = d; @@ -40,7 +41,7 @@ public GetPhoneNumberRegionsRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -51,7 +52,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public GetPhoneNumberRegionsRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -62,7 +63,7 @@ public GetPhoneNumberRegionsRequest setPhoneCategoryName(String d) { @RequestField(name="country_state") /** - * The country state code (example: AL, CA, ... ). + * The country state code (example: AL, CA, ... ) */ public String getCountryState() { return this.countryState; @@ -73,7 +74,7 @@ public boolean hasCountryState() { } /** - * The country state code (example: AL, CA, ... ). + * The country state code (example: AL, CA, ... ) */ public GetPhoneNumberRegionsRequest setCountryState(String d) { this.countryState = d; @@ -85,7 +86,7 @@ public GetPhoneNumberRegionsRequest setCountryState(String d) { @RequestField(name="omit_empty") /** * Set to 'false' to show all the regions (with and without phone - * numbers in stock). + * numbers in stock) */ public Boolean getOmitEmpty() { return this.omitEmpty; @@ -97,7 +98,7 @@ public boolean hasOmitEmpty() { /** * Set to 'false' to show all the regions (with and without phone - * numbers in stock). + * numbers in stock) */ public GetPhoneNumberRegionsRequest setOmitEmpty(boolean d) { this.omitEmpty = Boolean.valueOf(d); @@ -108,7 +109,7 @@ public GetPhoneNumberRegionsRequest setOmitEmpty(boolean d) { @RequestField(name="phone_region_id") /** - * The phone region ID to filter. + * The phone region ID to filter */ public Long getPhoneRegionId() { return this.phoneRegionId; @@ -119,7 +120,7 @@ public boolean hasPhoneRegionId() { } /** - * The phone region ID to filter. + * The phone region ID to filter */ public GetPhoneNumberRegionsRequest setPhoneRegionId(long d) { this.phoneRegionId = Long.valueOf(d); @@ -130,7 +131,7 @@ public GetPhoneNumberRegionsRequest setPhoneRegionId(long d) { @RequestField(name="phone_region_name") /** - * The phone region name to filter. + * The phone region name to filter */ public String getPhoneRegionName() { return this.phoneRegionName; @@ -141,7 +142,7 @@ public boolean hasPhoneRegionName() { } /** - * The phone region name to filter. + * The phone region name to filter */ public GetPhoneNumberRegionsRequest setPhoneRegionName(String d) { this.phoneRegionName = d; @@ -152,7 +153,7 @@ public GetPhoneNumberRegionsRequest setPhoneRegionName(String d) { @RequestField(name="phone_region_code") /** - * The region phone prefix to filter. + * The region phone prefix to filter */ public String getPhoneRegionCode() { return this.phoneRegionCode; @@ -163,7 +164,7 @@ public boolean hasPhoneRegionCode() { } /** - * The region phone prefix to filter. + * The region phone prefix to filter */ public GetPhoneNumberRegionsRequest setPhoneRegionCode(String d) { this.phoneRegionCode = d; @@ -174,7 +175,7 @@ public GetPhoneNumberRegionsRequest setPhoneRegionCode(String d) { @RequestField(name="locale") /** - * The 2-letter locale code. Supported values are EN, RU. + * The 2-letter locale code. Supported values are EN, RU */ public String getLocale() { return this.locale; @@ -185,7 +186,7 @@ public boolean hasLocale() { } /** - * The 2-letter locale code. Supported values are EN, RU. + * The 2-letter locale code. Supported values are EN, RU */ public GetPhoneNumberRegionsRequest setLocale(String d) { this.locale = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumbersRequest.java b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumbersRequest.java index cf0dedd..e537aa1 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetPhoneNumbersRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetPhoneNumbersRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -14,13 +15,13 @@ import com.voximplant.apiclient.util.TimestampSerializer; public class GetPhoneNumbersRequest implements Alignable { - private Long phoneId; + private MultiArgument phoneId; @RequestField(name="phone_id") /** * The particular phone ID to filter */ - public Long getPhoneId() { + public MultiArgument getPhoneId() { return this.phoneId; } @@ -31,8 +32,32 @@ public boolean hasPhoneId() { /** * The particular phone ID to filter */ - public GetPhoneNumbersRequest setPhoneId(long d) { - this.phoneId = Long.valueOf(d); + public GetPhoneNumbersRequest setPhoneId(MultiArgument d) { + this.phoneId = d; + return this; + } + + private MultiArgument phoneNumber; + + @RequestField(name="phone_number") + /** + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id + */ + public MultiArgument getPhoneNumber() { + return this.phoneNumber; + } + + public boolean hasPhoneNumber() { + return this.phoneNumber != null; + } + + /** + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id + */ + public GetPhoneNumbersRequest setPhoneNumber(MultiArgument d) { + this.phoneNumber = d; return this; } @@ -40,7 +65,7 @@ public GetPhoneNumbersRequest setPhoneId(long d) { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -51,7 +76,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public GetPhoneNumbersRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -62,8 +87,7 @@ public GetPhoneNumbersRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -74,8 +98,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public GetPhoneNumbersRequest setApplicationName(String d) { this.applicationName = d; @@ -86,7 +109,7 @@ public GetPhoneNumbersRequest setApplicationName(String d) { @RequestField(name="is_bound_to_application") /** - * Is a phone bound to an application. + * Is a phone bound to an application */ public Boolean getIsBoundToApplication() { return this.isBoundToApplication; @@ -97,7 +120,7 @@ public boolean hasIsBoundToApplication() { } /** - * Is a phone bound to an application. + * Is a phone bound to an application */ public GetPhoneNumbersRequest setIsBoundToApplication(boolean d) { this.isBoundToApplication = Boolean.valueOf(d); @@ -130,7 +153,7 @@ public GetPhoneNumbersRequest setPhoneTemplate(String d) { @RequestField(name="country_code") /** - * The country code list separated by the ';' symbol. + * The country code list separated by semicolon (;) */ public MultiArgument getCountryCode() { return this.countryCode; @@ -141,7 +164,7 @@ public boolean hasCountryCode() { } /** - * The country code list separated by the ';' symbol. + * The country code list separated by semicolon (;) */ public GetPhoneNumbersRequest setCountryCode(MultiArgument d) { this.countryCode = d; @@ -152,7 +175,7 @@ public GetPhoneNumbersRequest setCountryCode(MultiArgument d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -163,7 +186,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public GetPhoneNumbersRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -174,7 +197,7 @@ public GetPhoneNumbersRequest setPhoneCategoryName(String d) { @RequestField(name="canceled") /** - * The flag of the canceled (deleted) subscription to filter. + * The flag of the canceled (deleted) subscription to filter */ public Boolean getCanceled() { return this.canceled; @@ -185,7 +208,7 @@ public boolean hasCanceled() { } /** - * The flag of the canceled (deleted) subscription to filter. + * The flag of the canceled (deleted) subscription to filter */ public GetPhoneNumbersRequest setCanceled(boolean d) { this.canceled = Boolean.valueOf(d); @@ -196,7 +219,7 @@ public GetPhoneNumbersRequest setCanceled(boolean d) { @RequestField(name="deactivated") /** - * The flag of the deactivated (frozen) subscription to filter. + * The flag of the deactivated (frozen) subscription to filter */ public Boolean getDeactivated() { return this.deactivated; @@ -207,7 +230,7 @@ public boolean hasDeactivated() { } /** - * The flag of the deactivated (frozen) subscription to filter. + * The flag of the deactivated (frozen) subscription to filter */ public GetPhoneNumbersRequest setDeactivated(boolean d) { this.deactivated = Boolean.valueOf(d); @@ -218,7 +241,7 @@ public GetPhoneNumbersRequest setDeactivated(boolean d) { @RequestField(name="auto_charge") /** - * The auto_charge flag to filter. + * The auto_charge flag to filter */ public Boolean getAutoCharge() { return this.autoCharge; @@ -229,7 +252,7 @@ public boolean hasAutoCharge() { } /** - * The auto_charge flag to filter. + * The auto_charge flag to filter */ public GetPhoneNumbersRequest setAutoCharge(boolean d) { this.autoCharge = Boolean.valueOf(d); @@ -336,8 +359,8 @@ public GetPhoneNumbersRequest setToPhonePurchaseDate(Date d) { @RequestField(name="child_account_id") /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public MultiArgument getChildAccountId() { return this.childAccountId; @@ -348,8 +371,8 @@ public boolean hasChildAccountId() { } /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public GetPhoneNumbersRequest setChildAccountId(MultiArgument d) { this.childAccountId = d; @@ -360,7 +383,7 @@ public GetPhoneNumbersRequest setChildAccountId(MultiArgument d) { @RequestField(name="children_phones_only") /** - * Set true to get the children phones only. + * Set true to get the children phones only */ public Boolean getChildrenPhonesOnly() { return this.childrenPhonesOnly; @@ -371,7 +394,7 @@ public boolean hasChildrenPhonesOnly() { } /** - * Set true to get the children phones only. + * Set true to get the children phones only */ public GetPhoneNumbersRequest setChildrenPhonesOnly(boolean d) { this.childrenPhonesOnly = Boolean.valueOf(d); @@ -382,7 +405,7 @@ public GetPhoneNumbersRequest setChildrenPhonesOnly(boolean d) { @RequestField(name="verification_name") /** - * The required account verification name to filter. + * The required account verification name to filter */ public String getVerificationName() { return this.verificationName; @@ -393,7 +416,7 @@ public boolean hasVerificationName() { } /** - * The required account verification name to filter. + * The required account verification name to filter */ public GetPhoneNumbersRequest setVerificationName(String d) { this.verificationName = d; @@ -404,7 +427,7 @@ public GetPhoneNumbersRequest setVerificationName(String d) { @RequestField(name="verification_status") /** - * The account verification status list separated by the ';' symbol. The + * The account verification status list separated by semicolon (;). The * following values are possible: REQUIRED, IN_PROGRESS, VERIFIED */ public MultiArgument getVerificationStatus() { @@ -416,7 +439,7 @@ public boolean hasVerificationStatus() { } /** - * The account verification status list separated by the ';' symbol. The + * The account verification status list separated by semicolon (;). The * following values are possible: REQUIRED, IN_PROGRESS, VERIFIED */ public GetPhoneNumbersRequest setVerificationStatus(MultiArgument d) { @@ -476,7 +499,7 @@ public GetPhoneNumbersRequest setToUnverifiedHoldUntil(Date d) { @RequestField(name="can_be_used") /** - * Can the unverified account use the phone? + * Unverified account can use the phone */ public Boolean getCanBeUsed() { return this.canBeUsed; @@ -487,7 +510,7 @@ public boolean hasCanBeUsed() { } /** - * Can the unverified account use the phone? + * Unverified account can use the phone */ public GetPhoneNumbersRequest setCanBeUsed(boolean d) { this.canBeUsed = Boolean.valueOf(d); @@ -503,7 +526,7 @@ public GetPhoneNumbersRequest setCanBeUsed(boolean d) { * 'deactivated' (deactivated first, active last), 'purchase_date' * (descent order), 'phone_next_renewal' (ascent order), * 'verification_status', 'unverified_hold_until' (ascent order), - * 'verification_name'. + * 'verification_name' */ public String getOrderBy() { return this.orderBy; @@ -519,7 +542,7 @@ public boolean hasOrderBy() { * 'deactivated' (deactivated first, active last), 'purchase_date' * (descent order), 'phone_next_renewal' (ascent order), * 'verification_status', 'unverified_hold_until' (ascent order), - * 'verification_name'. + * 'verification_name' */ public GetPhoneNumbersRequest setOrderBy(String d) { this.orderBy = d; @@ -532,7 +555,7 @@ public GetPhoneNumbersRequest setOrderBy(String d) { /** * Flag allows you to display only the numbers of the sandbox, real * numbers, or all numbers. The following values are possible: 'all', - * 'true', 'false'. + * 'true', 'false' */ public String getSandbox() { return this.sandbox; @@ -545,7 +568,7 @@ public boolean hasSandbox() { /** * Flag allows you to display only the numbers of the sandbox, real * numbers, or all numbers. The following values are possible: 'all', - * 'true', 'false'. + * 'true', 'false' */ public GetPhoneNumbersRequest setSandbox(String d) { this.sandbox = d; @@ -556,7 +579,7 @@ public GetPhoneNumbersRequest setSandbox(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -567,7 +590,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetPhoneNumbersRequest setCount(long d) { this.count = Long.valueOf(d); @@ -578,7 +601,7 @@ public GetPhoneNumbersRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -589,7 +612,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetPhoneNumbersRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -600,7 +623,7 @@ public GetPhoneNumbersRequest setOffset(long d) { @RequestField(name="sms_supported") /** - * The flag of the SMS support. + * The flag of the SMS support */ public Boolean getSmsSupported() { return this.smsSupported; @@ -611,7 +634,7 @@ public boolean hasSmsSupported() { } /** - * The flag of the SMS support. + * The flag of the SMS support */ public GetPhoneNumbersRequest setSmsSupported(boolean d) { this.smsSupported = Boolean.valueOf(d); @@ -622,7 +645,7 @@ public GetPhoneNumbersRequest setSmsSupported(boolean d) { @RequestField(name="phone_region_name") /** - * The region names list separated by the ';' symbol. + * The region names list separated by semicolon (;) */ public MultiArgument getPhoneRegionName() { return this.phoneRegionName; @@ -633,7 +656,7 @@ public boolean hasPhoneRegionName() { } /** - * The region names list separated by the ';' symbol. + * The region names list separated by semicolon (;) */ public GetPhoneNumbersRequest setPhoneRegionName(MultiArgument d) { this.phoneRegionName = d; @@ -644,7 +667,7 @@ public GetPhoneNumbersRequest setPhoneRegionName(MultiArgument d) { @RequestField(name="rule_id") /** - * The rule ID list separated by the ';' symbol. + * The rule ID list separated by semicolon (;) */ public MultiArgument getRuleId() { return this.ruleId; @@ -655,7 +678,7 @@ public boolean hasRuleId() { } /** - * The rule ID list separated by the ';' symbol. + * The rule ID list separated by semicolon (;) */ public GetPhoneNumbersRequest setRuleId(MultiArgument d) { this.ruleId = d; @@ -666,8 +689,8 @@ public GetPhoneNumbersRequest setRuleId(MultiArgument d) { @RequestField(name="rule_name") /** - * The rule names list separated by the ';' symbol. Can be used only if - * __application_id__ or __application_name__ is specified. + * The rule names list separated by semicolon (;). Can be used only if + * __application_id__ or __application_name__ is specified */ public MultiArgument getRuleName() { return this.ruleName; @@ -678,8 +701,8 @@ public boolean hasRuleName() { } /** - * The rule names list separated by the ';' symbol. Can be used only if - * __application_id__ or __application_name__ is specified. + * The rule names list separated by semicolon (;). Can be used only if + * __application_id__ or __application_name__ is specified */ public GetPhoneNumbersRequest setRuleName(MultiArgument d) { this.ruleName = d; @@ -690,7 +713,7 @@ public GetPhoneNumbersRequest setRuleName(MultiArgument d) { @RequestField(name="is_bound_to_rule") /** - * Is the number bound to any rule? + * Number is bound to some rule */ public Boolean getIsBoundToRule() { return this.isBoundToRule; @@ -701,7 +724,7 @@ public boolean hasIsBoundToRule() { } /** - * Is the number bound to any rule? + * Number is bound to some rule */ public GetPhoneNumbersRequest setIsBoundToRule(boolean d) { this.isBoundToRule = Boolean.valueOf(d); @@ -725,6 +748,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (phoneNumber != null) { + sb.append(aligned) + .append("\"phoneNumber\": \"") + .append(phoneNumber) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (applicationId != null) { sb.append(aligned) .append("\"applicationId\": \"") diff --git a/src/main/java/com/voximplant/apiclient/request/GetPstnBlackListRequest.java b/src/main/java/com/voximplant/apiclient/request/GetPstnBlackListRequest.java index 77fc5fd..01d558b 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetPstnBlackListRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetPstnBlackListRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetPstnBlackListRequest implements Alignable { @RequestField(name="pstn_blacklist_id") /** - * The PSTN black list item ID for filter. + * The PSTN black list item ID for filter */ public Long getPstnBlacklistId() { return this.pstnBlacklistId; @@ -29,7 +30,7 @@ public boolean hasPstnBlacklistId() { } /** - * The PSTN black list item ID for filter. + * The PSTN black list item ID for filter */ public GetPstnBlackListRequest setPstnBlacklistId(long d) { this.pstnBlacklistId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetPstnBlackListRequest setPstnBlacklistId(long d) { @RequestField(name="pstn_blacklist_phone") /** - * The phone number in format e164 for filter. + * The phone number in format e164 for filter */ public String getPstnBlacklistPhone() { return this.pstnBlacklistPhone; @@ -51,7 +52,7 @@ public boolean hasPstnBlacklistPhone() { } /** - * The phone number in format e164 for filter. + * The phone number in format e164 for filter */ public GetPstnBlackListRequest setPstnBlacklistPhone(String d) { this.pstnBlacklistPhone = d; @@ -62,7 +63,7 @@ public GetPstnBlackListRequest setPstnBlacklistPhone(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -73,7 +74,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetPstnBlackListRequest setCount(long d) { this.count = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetPstnBlackListRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -95,7 +96,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetPstnBlackListRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetPushCredentialRequest.java b/src/main/java/com/voximplant/apiclient/request/GetPushCredentialRequest.java index 2f40a2e..ac52065 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetPushCredentialRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetPushCredentialRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetPushCredentialRequest implements Alignable { @RequestField(name="push_credential_id") /** - * The push credentials id. + * The push credentials id */ public Long getPushCredentialId() { return this.pushCredentialId; @@ -29,7 +30,7 @@ public boolean hasPushCredentialId() { } /** - * The push credentials id. + * The push credentials id */ public GetPushCredentialRequest setPushCredentialId(long d) { this.pushCredentialId = Long.valueOf(d); @@ -40,8 +41,8 @@ public GetPushCredentialRequest setPushCredentialId(long d) { @RequestField(name="push_provider_name") /** - * The push provider name. The possible values are: APPLE, APPLE_VOIP, - * GOOGLE. + * The push provider name. The possible values are APPLE, APPLE_VOIP, + * GOOGLE, HUAWEI */ public String getPushProviderName() { return this.pushProviderName; @@ -52,8 +53,8 @@ public boolean hasPushProviderName() { } /** - * The push provider name. The possible values are: APPLE, APPLE_VOIP, - * GOOGLE. + * The push provider name. The possible values are APPLE, APPLE_VOIP, + * GOOGLE, HUAWEI */ public GetPushCredentialRequest setPushProviderName(String d) { this.pushProviderName = d; @@ -64,7 +65,7 @@ public GetPushCredentialRequest setPushProviderName(String d) { @RequestField(name="push_provider_id") /** - * The push provider id. + * The push provider id. Can be used instead of push_provider_name */ public Long getPushProviderId() { return this.pushProviderId; @@ -75,7 +76,7 @@ public boolean hasPushProviderId() { } /** - * The push provider id. + * The push provider id. Can be used instead of push_provider_name */ public GetPushCredentialRequest setPushProviderId(long d) { this.pushProviderId = Long.valueOf(d); @@ -86,7 +87,7 @@ public GetPushCredentialRequest setPushProviderId(long d) { @RequestField(name="application_name") /** - * The name of the bound application. + * The name of the bound application */ public String getApplicationName() { return this.applicationName; @@ -97,7 +98,7 @@ public boolean hasApplicationName() { } /** - * The name of the bound application. + * The name of the bound application */ public GetPushCredentialRequest setApplicationName(String d) { this.applicationName = d; @@ -108,7 +109,7 @@ public GetPushCredentialRequest setApplicationName(String d) { @RequestField(name="application_id") /** - * The id of the bound application. + * The id of the bound application */ public Long getApplicationId() { return this.applicationId; @@ -119,7 +120,7 @@ public boolean hasApplicationId() { } /** - * The id of the bound application. + * The id of the bound application */ public GetPushCredentialRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -130,7 +131,7 @@ public GetPushCredentialRequest setApplicationId(long d) { @RequestField(name="with_cert") /** - * Set true to get the user's certificate. + * Set true to get the user's certificate */ public Boolean getWithCert() { return this.withCert; @@ -141,7 +142,7 @@ public boolean hasWithCert() { } /** - * Set true to get the user's certificate. + * Set true to get the user's certificate */ public GetPushCredentialRequest setWithCert(boolean d) { this.withCert = Boolean.valueOf(d); @@ -152,7 +153,7 @@ public GetPushCredentialRequest setWithCert(boolean d) { @RequestField(name="with_secret_info") /** - * Set true to get the certificate's password. + * Set true to get the certificate's password */ public Boolean getWithSecretInfo() { return this.withSecretInfo; @@ -163,7 +164,7 @@ public boolean hasWithSecretInfo() { } /** - * Set true to get the certificate's password. + * Set true to get the certificate's password */ public GetPushCredentialRequest setWithSecretInfo(boolean d) { this.withSecretInfo = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetQueuesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetQueuesRequest.java index 3c5048d..a028d9e 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetQueuesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetQueuesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetQueuesRequest implements Alignable { @RequestField(name="acd_queue_id") /** - * The ACD queue ID to filter. + * The ACD queue ID to filter */ public Long getAcdQueueId() { return this.acdQueueId; @@ -29,7 +30,7 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID to filter. + * The ACD queue ID to filter */ public GetQueuesRequest setAcdQueueId(long d) { this.acdQueueId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetQueuesRequest setAcdQueueId(long d) { @RequestField(name="acd_queue_name") /** - * The ACD queue name part to filter. + * The ACD queue name part to filter */ public String getAcdQueueName() { return this.acdQueueName; @@ -51,7 +52,7 @@ public boolean hasAcdQueueName() { } /** - * The ACD queue name part to filter. + * The ACD queue name part to filter */ public GetQueuesRequest setAcdQueueName(String d) { this.acdQueueName = d; @@ -62,7 +63,7 @@ public GetQueuesRequest setAcdQueueName(String d) { @RequestField(name="application_id") /** - * The application ID to filter. + * The application ID to filter */ public Long getApplicationId() { return this.applicationId; @@ -73,7 +74,7 @@ public boolean hasApplicationId() { } /** - * The application ID to filter. + * The application ID to filter */ public GetQueuesRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetQueuesRequest setApplicationId(long d) { @RequestField(name="skill_id") /** - * The skill ID to filter. + * The skill ID to filter */ public Long getSkillId() { return this.skillId; @@ -95,7 +96,7 @@ public boolean hasSkillId() { } /** - * The skill ID to filter. + * The skill ID to filter */ public GetQueuesRequest setSkillId(long d) { this.skillId = Long.valueOf(d); @@ -106,7 +107,7 @@ public GetQueuesRequest setSkillId(long d) { @RequestField(name="excluded_skill_id") /** - * The excluded skill ID to filter. + * The excluded skill ID to filter */ public Long getExcludedSkillId() { return this.excludedSkillId; @@ -117,7 +118,7 @@ public boolean hasExcludedSkillId() { } /** - * The excluded skill ID to filter. + * The excluded skill ID to filter */ public GetQueuesRequest setExcludedSkillId(long d) { this.excludedSkillId = Long.valueOf(d); @@ -128,7 +129,7 @@ public GetQueuesRequest setExcludedSkillId(long d) { @RequestField(name="with_skills") /** - * Set true to get the bound skills. + * Set true to get the bound skills */ public Boolean getWithSkills() { return this.withSkills; @@ -139,7 +140,7 @@ public boolean hasWithSkills() { } /** - * Set true to get the bound skills. + * Set true to get the bound skills */ public GetQueuesRequest setWithSkills(boolean d) { this.withSkills = Boolean.valueOf(d); @@ -150,7 +151,7 @@ public GetQueuesRequest setWithSkills(boolean d) { @RequestField(name="showing_skill_id") /** - * The skill to show in the 'skills' field output. + * The skill to show in the 'skills' field output */ public Long getShowingSkillId() { return this.showingSkillId; @@ -161,7 +162,7 @@ public boolean hasShowingSkillId() { } /** - * The skill to show in the 'skills' field output. + * The skill to show in the 'skills' field output */ public GetQueuesRequest setShowingSkillId(long d) { this.showingSkillId = Long.valueOf(d); @@ -172,7 +173,7 @@ public GetQueuesRequest setShowingSkillId(long d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -183,7 +184,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetQueuesRequest setCount(long d) { this.count = Long.valueOf(d); @@ -194,7 +195,7 @@ public GetQueuesRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -205,13 +206,35 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetQueuesRequest setOffset(long d) { this.offset = Long.valueOf(d); return this; } + private Boolean withOperatorcount; + + @RequestField(name="with_operatorcount") + /** + * Number of agents bound to the queue + */ + public Boolean getWithOperatorcount() { + return this.withOperatorcount; + } + + public boolean hasWithOperatorcount() { + return this.withOperatorcount != null; + } + + /** + * Number of agents bound to the queue + */ + public GetQueuesRequest setWithOperatorcount(boolean d) { + this.withOperatorcount = Boolean.valueOf(d); + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -293,6 +316,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (withOperatorcount != null) { + sb.append(aligned) + .append("\"withOperatorcount\": \"") + .append(withOperatorcount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/GetRecordStoragesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetRecordStoragesRequest.java index 4e6b66e..cd43947 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetRecordStoragesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetRecordStoragesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetRecordStoragesRequest implements Alignable { @RequestField(name="record_storage_id") /** - * The record storage ID list separated by the ';' symbol. + * The record storage ID list separated by semicolon (;) */ public MultiArgument getRecordStorageId() { return this.recordStorageId; @@ -29,7 +30,7 @@ public boolean hasRecordStorageId() { } /** - * The record storage ID list separated by the ';' symbol. + * The record storage ID list separated by semicolon (;) */ public GetRecordStoragesRequest setRecordStorageId(MultiArgument d) { this.recordStorageId = d; @@ -40,7 +41,7 @@ public GetRecordStoragesRequest setRecordStorageId(MultiArgument d) { @RequestField(name="record_storage_name") /** - * The record storage name list separated by the ';' symbol. + * The record storage name list separated by semicolon (;) */ public MultiArgument getRecordStorageName() { return this.recordStorageName; @@ -51,7 +52,7 @@ public boolean hasRecordStorageName() { } /** - * The record storage name list separated by the ';' symbol. + * The record storage name list separated by semicolon (;) */ public GetRecordStoragesRequest setRecordStorageName(MultiArgument d) { this.recordStorageName = d; @@ -63,7 +64,7 @@ public GetRecordStoragesRequest setRecordStorageName(MultiArgument d) { @RequestField(name="with_private") /** * Set true to get the private record storages. If set to true, there is - * the __is_public : bool__ parameter in a response. + * the __is_public : bool__ parameter in a response */ public Boolean getWithPrivate() { return this.withPrivate; @@ -75,7 +76,7 @@ public boolean hasWithPrivate() { /** * Set true to get the private record storages. If set to true, there is - * the __is_public : bool__ parameter in a response. + * the __is_public : bool__ parameter in a response */ public GetRecordStoragesRequest setWithPrivate(boolean d) { this.withPrivate = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetRegionsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetRegionsRequest.java index 292729d..5a00760 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetRegionsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetRegionsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetRegionsRequest implements Alignable { @RequestField(name="country_code") /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public GetRegionsRequest setCountryCode(String d) { this.countryCode = d; @@ -40,7 +41,7 @@ public GetRegionsRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -51,7 +52,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public GetRegionsRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -84,7 +85,7 @@ public GetRegionsRequest setCityName(String d) { @RequestField(name="count") /** - * The returned regions count. + * The returned regions count */ public Long getCount() { return this.count; @@ -95,7 +96,7 @@ public boolean hasCount() { } /** - * The returned regions count. + * The returned regions count */ public GetRegionsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -106,7 +107,7 @@ public GetRegionsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -117,7 +118,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetRegionsRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetRegulationsAddressRequest.java b/src/main/java/com/voximplant/apiclient/request/GetRegulationsAddressRequest.java index 9177410..0aa55a4 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetRegulationsAddressRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetRegulationsAddressRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetRegulationsAddressRequest implements Alignable { @RequestField(name="country_code") /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public GetRegulationsAddressRequest setCountryCode(String d) { this.countryCode = d; @@ -40,7 +41,7 @@ public GetRegulationsAddressRequest setCountryCode(String d) { @RequestField(name="phone_category_name") /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -51,7 +52,7 @@ public boolean hasPhoneCategoryName() { } /** - * The phone category name. See the [GetPhoneNumberCategories] method. + * The phone category name. See the [GetPhoneNumberCategories] method */ public GetRegulationsAddressRequest setPhoneCategoryName(String d) { this.phoneCategoryName = d; @@ -62,7 +63,7 @@ public GetRegulationsAddressRequest setPhoneCategoryName(String d) { @RequestField(name="phone_region_code") /** - * The phone region code. See the [GetRegions] method. + * The phone region code. See the [GetRegions] method */ public String getPhoneRegionCode() { return this.phoneRegionCode; @@ -73,7 +74,7 @@ public boolean hasPhoneRegionCode() { } /** - * The phone region code. See the [GetRegions] method. + * The phone region code. See the [GetRegions] method */ public GetRegulationsAddressRequest setPhoneRegionCode(String d) { this.phoneRegionCode = d; @@ -84,7 +85,7 @@ public GetRegulationsAddressRequest setPhoneRegionCode(String d) { @RequestField(name="regulation_address_id") /** - * The regulation address ID. + * The regulation address ID */ public Long getRegulationAddressId() { return this.regulationAddressId; @@ -95,7 +96,7 @@ public boolean hasRegulationAddressId() { } /** - * The regulation address ID. + * The regulation address ID */ public GetRegulationsAddressRequest setRegulationAddressId(long d) { this.regulationAddressId = Long.valueOf(d); @@ -106,7 +107,7 @@ public GetRegulationsAddressRequest setRegulationAddressId(long d) { @RequestField(name="verification_id") /** - * The regulation address type ID. + * The regulation address type ID */ public Long getVerificationId() { return this.verificationId; @@ -117,7 +118,7 @@ public boolean hasVerificationId() { } /** - * The regulation address type ID. + * The regulation address type ID */ public GetRegulationsAddressRequest setVerificationId(long d) { this.verificationId = Long.valueOf(d); @@ -128,7 +129,7 @@ public GetRegulationsAddressRequest setVerificationId(long d) { @RequestField(name="verified") /** - * Show only verified regulation address. + * Show only verified regulation address */ public Boolean getVerified() { return this.verified; @@ -139,7 +140,7 @@ public boolean hasVerified() { } /** - * Show only verified regulation address. + * Show only verified regulation address */ public GetRegulationsAddressRequest setVerified(boolean d) { this.verified = Boolean.valueOf(d); @@ -150,7 +151,7 @@ public GetRegulationsAddressRequest setVerified(boolean d) { @RequestField(name="in_progress") /** - * Show only in progress regulation address. + * Show only in progress regulation address */ public Boolean getInProgress() { return this.inProgress; @@ -161,7 +162,7 @@ public boolean hasInProgress() { } /** - * Show only in progress regulation address. + * Show only in progress regulation address */ public GetRegulationsAddressRequest setInProgress(boolean d) { this.inProgress = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetResourcePriceRequest.java b/src/main/java/com/voximplant/apiclient/request/GetResourcePriceRequest.java index e4c93f3..7244ba2 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetResourcePriceRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetResourcePriceRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,8 +19,8 @@ public class GetResourcePriceRequest implements Alignable { @RequestField(name="resource_type") /** - * The resource type list separated by the ';' symbol. The possible - * values are: AUDIOHDCONFERENCE, AUDIOHDRECORD, AUDIORECORD, CALLLIST, + * The resource type list separated by semicolon (;). The possible + * values are AUDIOHDCONFERENCE, AUDIOHDRECORD, AUDIORECORD, CALLLIST, * CALLSESSION, DIALOGFLOW, IM, PSTN_IN_ALASKA, PSTN_IN_GB, * PSTN_IN_GEOGRAPHIC, PSTN_IN_GEO_PH, PSTN_IN_RU, PSTN_IN_RU_TOLLFREE, * PSTN_INTERNATIONAL, PSTNINTEST, PSTN_IN_TF_AR, PSTN_IN_TF_AT, @@ -43,8 +44,8 @@ public boolean hasResourceType() { } /** - * The resource type list separated by the ';' symbol. The possible - * values are: AUDIOHDCONFERENCE, AUDIOHDRECORD, AUDIORECORD, CALLLIST, + * The resource type list separated by semicolon (;). The possible + * values are AUDIOHDCONFERENCE, AUDIOHDRECORD, AUDIORECORD, CALLLIST, * CALLSESSION, DIALOGFLOW, IM, PSTN_IN_ALASKA, PSTN_IN_GB, * PSTN_IN_GEOGRAPHIC, PSTN_IN_GEO_PH, PSTN_IN_RU, PSTN_IN_RU_TOLLFREE, * PSTN_INTERNATIONAL, PSTNINTEST, PSTN_IN_TF_AR, PSTN_IN_TF_AT, @@ -68,7 +69,7 @@ public GetResourcePriceRequest setResourceType(MultiArgument d) { @RequestField(name="price_group_id") /** - * The price group ID list separated by the ';' symbol. + * The price group ID list separated by semicolon (;) */ public MultiArgument getPriceGroupId() { return this.priceGroupId; @@ -79,7 +80,7 @@ public boolean hasPriceGroupId() { } /** - * The price group ID list separated by the ';' symbol. + * The price group ID list separated by semicolon (;) */ public GetResourcePriceRequest setPriceGroupId(MultiArgument d) { this.priceGroupId = d; @@ -90,7 +91,7 @@ public GetResourcePriceRequest setPriceGroupId(MultiArgument d) { @RequestField(name="price_group_name") /** - * The price group name template to filter. + * The price group name template to filter */ public String getPriceGroupName() { return this.priceGroupName; @@ -101,7 +102,7 @@ public boolean hasPriceGroupName() { } /** - * The price group name template to filter. + * The price group name template to filter */ public GetResourcePriceRequest setPriceGroupName(String d) { this.priceGroupName = d; @@ -112,8 +113,8 @@ public GetResourcePriceRequest setPriceGroupName(String d) { @RequestField(name="resource_param") /** - * The resource parameter list separated by the ';' symbol. Example: a - * phone number list. + * The resource parameter list separated by semicolon (;). Example: a + * phone number list */ public MultiArgument getResourceParam() { return this.resourceParam; @@ -124,8 +125,8 @@ public boolean hasResourceParam() { } /** - * The resource parameter list separated by the ';' symbol. Example: a - * phone number list. + * The resource parameter list separated by semicolon (;). Example: a + * phone number list */ public GetResourcePriceRequest setResourceParam(MultiArgument d) { this.resourceParam = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetRoleGroupsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetRoleGroupsRequest.java index a465556..2ea7159 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetRoleGroupsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetRoleGroupsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; diff --git a/src/main/java/com/voximplant/apiclient/request/GetRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetRolesRequest.java index 5334053..3014614 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetRolesRequest implements Alignable { @RequestField(name="group_name") /** - * The role group. + * The role group */ public String getGroupName() { return this.groupName; @@ -29,7 +30,7 @@ public boolean hasGroupName() { } /** - * The role group. + * The role group */ public GetRolesRequest setGroupName(String d) { this.groupName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetRulesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetRulesRequest.java index d12d38a..4a745f0 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetRulesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetRulesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetRulesRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -29,7 +30,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public GetRulesRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -40,8 +41,7 @@ public GetRulesRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -52,8 +52,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public GetRulesRequest setApplicationName(String d) { this.applicationName = d; @@ -86,7 +85,7 @@ public GetRulesRequest setRuleId(long d) { @RequestField(name="rule_name") /** - * The rule name part to filter. + * The rule name part to filter */ public String getRuleName() { return this.ruleName; @@ -97,7 +96,7 @@ public boolean hasRuleName() { } /** - * The rule name part to filter. + * The rule name part to filter */ public GetRulesRequest setRuleName(String d) { this.ruleName = d; @@ -108,7 +107,7 @@ public GetRulesRequest setRuleName(String d) { @RequestField(name="video_conference") /** - * The video conference flag to filter. + * The video conference flag to filter */ public Boolean getVideoConference() { return this.videoConference; @@ -119,7 +118,7 @@ public boolean hasVideoConference() { } /** - * The video conference flag to filter. + * The video conference flag to filter */ public GetRulesRequest setVideoConference(boolean d) { this.videoConference = Boolean.valueOf(d); @@ -152,7 +151,7 @@ public GetRulesRequest setTemplate(String d) { @RequestField(name="with_scenarios") /** - * Set true to get bound scenarios info. + * Set true to get bound scenarios info */ public Boolean getWithScenarios() { return this.withScenarios; @@ -163,7 +162,7 @@ public boolean hasWithScenarios() { } /** - * Set true to get bound scenarios info. + * Set true to get bound scenarios info */ public GetRulesRequest setWithScenarios(boolean d) { this.withScenarios = Boolean.valueOf(d); @@ -174,7 +173,7 @@ public GetRulesRequest setWithScenarios(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -185,7 +184,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetRulesRequest setCount(long d) { this.count = Long.valueOf(d); @@ -196,7 +195,7 @@ public GetRulesRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -207,7 +206,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetRulesRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetSQStateRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSQStateRequest.java new file mode 100644 index 0000000..3475aae --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetSQStateRequest.java @@ -0,0 +1,189 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetSQStateRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID to search by + */ + public GetSQStateRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public GetSQStateRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * The smart queue ID list separated by semicolon (;). Use the 'all' + * value to select all smart queues + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * The smart queue ID list separated by semicolon (;). Use the 'all' + * value to select all smart queues + */ + public GetSQStateRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public GetSQStateRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + private String timezone; + + @RequestField(name="timezone") + /** + * The selected timezone or the 'auto' value (the account location) + */ + public String getTimezone() { + return this.timezone; + } + + public boolean hasTimezone() { + return this.timezone != null; + } + + /** + * The selected timezone or the 'auto' value (the account location) + */ + public GetSQStateRequest setTimezone(String d) { + this.timezone = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (timezone != null) { + sb.append(aligned) + .append("\"timezone\": \"") + .append(timezone) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetScenariosRequest.java b/src/main/java/com/voximplant/apiclient/request/GetScenariosRequest.java index 9175165..a8e967a 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetScenariosRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetScenariosRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -42,7 +43,7 @@ public GetScenariosRequest setScenarioId(long d) { /** * The scenario name to filter. Can be used instead of * scenario_id. All scenarios containing this param in their - * names will be returned. The parameter is case insensitive. + * names will be returned. The parameter is case insensitive */ public String getScenarioName() { return this.scenarioName; @@ -55,7 +56,7 @@ public boolean hasScenarioName() { /** * The scenario name to filter. Can be used instead of * scenario_id. All scenarios containing this param in their - * names will be returned. The parameter is case insensitive. + * names will be returned. The parameter is case insensitive */ public GetScenariosRequest setScenarioName(String d) { this.scenarioName = d; @@ -90,7 +91,7 @@ public GetScenariosRequest setWithScript(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -101,7 +102,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetScenariosRequest setCount(long d) { this.count = Long.valueOf(d); @@ -112,7 +113,7 @@ public GetScenariosRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -123,7 +124,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetScenariosRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetSipRegistrationsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSipRegistrationsRequest.java index 48aaee0..063c7d0 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetSipRegistrationsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetSipRegistrationsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetSipRegistrationsRequest implements Alignable { @RequestField(name="sip_registration_id") /** - * The SIP registration ID. + * The SIP registration ID */ public Long getSipRegistrationId() { return this.sipRegistrationId; @@ -29,7 +30,7 @@ public boolean hasSipRegistrationId() { } /** - * The SIP registration ID. + * The SIP registration ID */ public GetSipRegistrationsRequest setSipRegistrationId(long d) { this.sipRegistrationId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetSipRegistrationsRequest setSipRegistrationId(long d) { @RequestField(name="sip_username") /** - * The SIP user name to filter. + * The SIP user name to filter */ public String getSipUsername() { return this.sipUsername; @@ -51,7 +52,7 @@ public boolean hasSipUsername() { } /** - * The SIP user name to filter. + * The SIP user name to filter */ public GetSipRegistrationsRequest setSipUsername(String d) { this.sipUsername = d; @@ -62,7 +63,7 @@ public GetSipRegistrationsRequest setSipUsername(String d) { @RequestField(name="deactivated") /** - * Set true to show the frozen SIP registrations only. + * Set true to show the frozen SIP registrations only */ public Boolean getDeactivated() { return this.deactivated; @@ -73,7 +74,7 @@ public boolean hasDeactivated() { } /** - * Set true to show the frozen SIP registrations only. + * Set true to show the frozen SIP registrations only */ public GetSipRegistrationsRequest setDeactivated(boolean d) { this.deactivated = Boolean.valueOf(d); @@ -84,7 +85,7 @@ public GetSipRegistrationsRequest setDeactivated(boolean d) { @RequestField(name="successful") /** - * Set false to show the unsuccessful SIP registrations only. + * Set false to show the unsuccessful SIP registrations only */ public Boolean getSuccessful() { return this.successful; @@ -95,7 +96,7 @@ public boolean hasSuccessful() { } /** - * Set false to show the unsuccessful SIP registrations only. + * Set false to show the unsuccessful SIP registrations only */ public GetSipRegistrationsRequest setSuccessful(boolean d) { this.successful = Boolean.valueOf(d); @@ -106,7 +107,7 @@ public GetSipRegistrationsRequest setSuccessful(boolean d) { @RequestField(name="is_persistent") /** - * The persistent flag to filter. + * The persistent flag to filter */ public Boolean getIsPersistent() { return this.isPersistent; @@ -117,7 +118,7 @@ public boolean hasIsPersistent() { } /** - * The persistent flag to filter. + * The persistent flag to filter */ public GetSipRegistrationsRequest setIsPersistent(boolean d) { this.isPersistent = Boolean.valueOf(d); @@ -128,8 +129,8 @@ public GetSipRegistrationsRequest setIsPersistent(boolean d) { @RequestField(name="application_id") /** - * The application ID list separated by the ';' symbol to filter. Can be - * used instead of appliction_name. + * The application ID list separated by semicolon (;) to filter. Can be + * used instead of application_name */ public MultiArgument getApplicationId() { return this.applicationId; @@ -140,8 +141,8 @@ public boolean hasApplicationId() { } /** - * The application ID list separated by the ';' symbol to filter. Can be - * used instead of appliction_name. + * The application ID list separated by semicolon (;) to filter. Can be + * used instead of application_name */ public GetSipRegistrationsRequest setApplicationId(MultiArgument d) { this.applicationId = d; @@ -152,8 +153,8 @@ public GetSipRegistrationsRequest setApplicationId(MultiArgument d) { @RequestField(name="application_name") /** - * The application name list separated by the ';' symbol to filter. Can - * be used instead of appliction_id. + * The application name list separated by semicolon (;) to filter. Can + * be used instead of application_id */ public MultiArgument getApplicationName() { return this.applicationName; @@ -164,8 +165,8 @@ public boolean hasApplicationName() { } /** - * The application name list separated by the ';' symbol to filter. Can - * be used instead of appliction_id. + * The application name list separated by semicolon (;) to filter. Can + * be used instead of application_id */ public GetSipRegistrationsRequest setApplicationName(MultiArgument d) { this.applicationName = d; @@ -176,7 +177,7 @@ public GetSipRegistrationsRequest setApplicationName(MultiArgument d) { @RequestField(name="is_bound_to_application") /** - * Is a SIP registration bound to an application. + * Is a SIP registration bound to an application */ public Boolean getIsBoundToApplication() { return this.isBoundToApplication; @@ -187,7 +188,7 @@ public boolean hasIsBoundToApplication() { } /** - * Is a SIP registration bound to an application. + * Is a SIP registration bound to an application */ public GetSipRegistrationsRequest setIsBoundToApplication(boolean d) { this.isBoundToApplication = Boolean.valueOf(d); @@ -198,8 +199,8 @@ public GetSipRegistrationsRequest setIsBoundToApplication(boolean d) { @RequestField(name="rule_id") /** - * The rule ID list separated by the ';' symbol to filter. Can be used - * instead of rule_name. + * The rule ID list separated by semicolon (;) to filter. Can be used + * instead of rule_name */ public MultiArgument getRuleId() { return this.ruleId; @@ -210,8 +211,8 @@ public boolean hasRuleId() { } /** - * The rule ID list separated by the ';' symbol to filter. Can be used - * instead of rule_name. + * The rule ID list separated by semicolon (;) to filter. Can be used + * instead of rule_name */ public GetSipRegistrationsRequest setRuleId(MultiArgument d) { this.ruleId = d; @@ -222,8 +223,8 @@ public GetSipRegistrationsRequest setRuleId(MultiArgument d) { @RequestField(name="rule_name") /** - * The rule name list separated by the ';' symbol to filter. Can be used - * instead of rule_id. + * The rule name list separated by semicolon (;) to filter. Can be used + * instead of rule_id */ public MultiArgument getRuleName() { return this.ruleName; @@ -234,8 +235,8 @@ public boolean hasRuleName() { } /** - * The rule name list separated by the ';' symbol to filter. Can be used - * instead of rule_id. + * The rule name list separated by semicolon (;) to filter. Can be used + * instead of rule_id */ public GetSipRegistrationsRequest setRuleName(MultiArgument d) { this.ruleName = d; @@ -246,8 +247,8 @@ public GetSipRegistrationsRequest setRuleName(MultiArgument d) { @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol to filter. Can be used - * instead of user_name. + * The user ID list separated by semicolon (;) to filter. Can be used + * instead of user_name */ public MultiArgument getUserId() { return this.userId; @@ -258,8 +259,8 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol to filter. Can be used - * instead of user_name. + * The user ID list separated by semicolon (;) to filter. Can be used + * instead of user_name */ public GetSipRegistrationsRequest setUserId(MultiArgument d) { this.userId = d; @@ -270,8 +271,8 @@ public GetSipRegistrationsRequest setUserId(MultiArgument d) { @RequestField(name="user_name") /** - * The user name list separated by the ';' symbol to filter. Can be used - * instead of user_id. + * The user name list separated by semicolon (;) to filter. Can be used + * instead of user_id */ public MultiArgument getUserName() { return this.userName; @@ -282,8 +283,8 @@ public boolean hasUserName() { } /** - * The user name list separated by the ';' symbol to filter. Can be used - * instead of user_id. + * The user name list separated by semicolon (;) to filter. Can be used + * instead of user_id */ public GetSipRegistrationsRequest setUserName(MultiArgument d) { this.userName = d; @@ -294,7 +295,7 @@ public GetSipRegistrationsRequest setUserName(MultiArgument d) { @RequestField(name="proxy") /** - * The list of proxy servers to use, divided by the ';' symbol. + * The list of proxy servers to use, divided by semicolon (;) */ public MultiArgument getProxy() { return this.proxy; @@ -305,7 +306,7 @@ public boolean hasProxy() { } /** - * The list of proxy servers to use, divided by the ';' symbol. + * The list of proxy servers to use, divided by semicolon (;) */ public GetSipRegistrationsRequest setProxy(MultiArgument d) { this.proxy = d; @@ -316,7 +317,7 @@ public GetSipRegistrationsRequest setProxy(MultiArgument d) { @RequestField(name="in_progress") /** - * Is the SIP registration is still in progress or not? + * SIP registration is still in progress */ public Boolean getInProgress() { return this.inProgress; @@ -327,7 +328,7 @@ public boolean hasInProgress() { } /** - * Is the SIP registration is still in progress or not? + * SIP registration is still in progress */ public GetSipRegistrationsRequest setInProgress(boolean d) { this.inProgress = Boolean.valueOf(d); @@ -341,7 +342,7 @@ public GetSipRegistrationsRequest setInProgress(boolean d) { * The list of SIP response codes. The __code1:code2__ means a range * from __code1__ to __code2__ including; the __code1;code2__ meanse * either __code1__ or __code2__. You can combine ranges, e.g., - * __code1;code2:code3__. + * __code1;code2:code3__ */ public String getStatusCode() { return this.statusCode; @@ -355,7 +356,7 @@ public boolean hasStatusCode() { * The list of SIP response codes. The __code1:code2__ means a range * from __code1__ to __code2__ including; the __code1;code2__ meanse * either __code1__ or __code2__. You can combine ranges, e.g., - * __code1;code2:code3__. + * __code1;code2:code3__ */ public GetSipRegistrationsRequest setStatusCode(String d) { this.statusCode = d; @@ -366,7 +367,7 @@ public GetSipRegistrationsRequest setStatusCode(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -377,7 +378,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetSipRegistrationsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -388,7 +389,7 @@ public GetSipRegistrationsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -399,7 +400,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetSipRegistrationsRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetSipWhiteListRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSipWhiteListRequest.java index 2017bcc..2f2db95 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetSipWhiteListRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetSipWhiteListRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -40,7 +41,7 @@ public GetSipWhiteListRequest setSipWhitelistId(long d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -51,7 +52,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetSipWhiteListRequest setCount(long d) { this.count = Long.valueOf(d); @@ -62,7 +63,7 @@ public GetSipWhiteListRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -73,7 +74,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetSipWhiteListRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetSkillsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSkillsRequest.java index 92d0c64..d28328d 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetSkillsRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetSkillsRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetSkillsRequest implements Alignable { @RequestField(name="skill_id") /** - * The skill ID to filter. + * The skill ID to filter */ public Long getSkillId() { return this.skillId; @@ -29,7 +30,7 @@ public boolean hasSkillId() { } /** - * The skill ID to filter. + * The skill ID to filter */ public GetSkillsRequest setSkillId(long d) { this.skillId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetSkillsRequest setSkillId(long d) { @RequestField(name="skill_name") /** - * The skill name part to filter. + * The skill name part to filter */ public String getSkillName() { return this.skillName; @@ -51,7 +52,7 @@ public boolean hasSkillName() { } /** - * The skill name part to filter. + * The skill name part to filter */ public GetSkillsRequest setSkillName(String d) { this.skillName = d; @@ -62,7 +63,7 @@ public GetSkillsRequest setSkillName(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -73,7 +74,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetSkillsRequest setCount(long d) { this.count = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetSkillsRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -95,7 +96,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetSkillsRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetSmartQueueDayHistoryRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSmartQueueDayHistoryRequest.java new file mode 100644 index 0000000..aa8bf24 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetSmartQueueDayHistoryRequest.java @@ -0,0 +1,577 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetSmartQueueDayHistoryRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID to search by + */ + public GetSmartQueueDayHistoryRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public GetSmartQueueDayHistoryRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * The user ID list with a maximum of 5 values separated by semicolon + * (;). Use the 'all' value to select all users. Can operate as a filter + * for the **occupancy_rate**, **sum_agents_online_time**, + * **sum_agents_ready_time**, **sum_agents_dialing_time**, + * **sum_agents_in_service_time**, **sum_agents_afterservice_time**, + * **sum_agents_dnd_time**, **sum_agents_banned_time**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * The user ID list with a maximum of 5 values separated by semicolon + * (;). Use the 'all' value to select all users. Can operate as a filter + * for the **occupancy_rate**, **sum_agents_online_time**, + * **sum_agents_ready_time**, **sum_agents_dialing_time**, + * **sum_agents_in_service_time**, **sum_agents_afterservice_time**, + * **sum_agents_dnd_time**, **sum_agents_banned_time**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public GetSmartQueueDayHistoryRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id + */ + public GetSmartQueueDayHistoryRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * The smart queue ID list with a maximum of 5 values separated by + * semicolon (;). Can operate as filter for the + * **calls_blocked_percentage**, **count_blocked_calls**, + * **average_abandonment_rate**, **count_abandonment_calls**, + * **service_level**, **occupancy_rate**, **min_time_in_queue**, + * **max_time_in_queue**, **average_time_in_queue**, + * **min_answer_speed**, **max_answer_speed**, **average_answer_speed**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * The smart queue ID list with a maximum of 5 values separated by + * semicolon (;). Can operate as filter for the + * **calls_blocked_percentage**, **count_blocked_calls**, + * **average_abandonment_rate**, **count_abandonment_calls**, + * **service_level**, **occupancy_rate**, **min_time_in_queue**, + * **max_time_in_queue**, **average_time_in_queue**, + * **min_answer_speed**, **max_answer_speed**, **average_answer_speed**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public GetSmartQueueDayHistoryRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public GetSmartQueueDayHistoryRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date fromDate; + + @RequestField(name="from_date") + @SerializeUsing(serializer = TimestampSerializer.class) + /** + * The from date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time minus 1 day + */ + public Date getFromDate() { + return this.fromDate; + } + + public boolean hasFromDate() { + return this.fromDate != null; + } + + /** + * The from date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time minus 1 day + */ + public GetSmartQueueDayHistoryRequest setFromDate(Date d) { + this.fromDate = d; + return this; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date toDate; + + @RequestField(name="to_date") + @SerializeUsing(serializer = TimestampSerializer.class) + /** + * The to date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time + */ + public Date getToDate() { + return this.toDate; + } + + public boolean hasToDate() { + return this.toDate != null; + } + + /** + * The to date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time + */ + public GetSmartQueueDayHistoryRequest setToDate(Date d) { + this.toDate = d; + return this; + } + + private String timezone; + + @RequestField(name="timezone") + /** + * The selected timezone or the 'auto' value (the account location) + */ + public String getTimezone() { + return this.timezone; + } + + public boolean hasTimezone() { + return this.timezone != null; + } + + /** + * The selected timezone or the 'auto' value (the account location) + */ + public GetSmartQueueDayHistoryRequest setTimezone(String d) { + this.timezone = d; + return this; + } + + private String interval; + + @RequestField(name="interval") + /** + * Interval format: YYYY-MM-DD HH:mm:ss. Default is 1 day + */ + public String getInterval() { + return this.interval; + } + + public boolean hasInterval() { + return this.interval != null; + } + + /** + * Interval format: YYYY-MM-DD HH:mm:ss. Default is 1 day + */ + public GetSmartQueueDayHistoryRequest setInterval(String d) { + this.interval = d; + return this; + } + + private MultiArgument reportType; + + @RequestField(name="report_type") + /** + * The report type. Possible values are: calls_blocked_percentage, + * count_blocked_calls, im_blocked_chats_percentage, + * im_count_blocked_chats, im_answered_chats_rate, + * average_abandonment_rate, count_abandonment_calls, service_level, + * im_service_level, occupancy_rate, im_agent_occupancy_rate, + * agent_utilization_rate, im_agent_utilization_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_in_service_incoming_time, + * sum_agents_in_service_outcoming_time, sum_agents_afterservice_time, + * sum_agents_dnd_time, sum_agents_custom_1_time, + * sum_agents_custom_2_time, sum_agents_custom_3_time, + * sum_agents_custom_4_time, sum_agents_custom_5_time, + * sum_agents_custom_6_time, sum_agents_custom_7_time, + * sum_agents_custom_8_time, sum_agents_custom_9_time, + * sum_agents_custom_10_time, sum_agents_banned_time, + * im_sum_agents_online_time, im_sum_agents_ready_time, + * im_sum_agents_in_service_time, im_sum_agents_dnd_time, + * im_sum_agents_custom_1_time, im_sum_agents_custom_2_time, + * im_sum_agents_custom_3_time, im_sum_agents_custom_4_time, + * im_sum_agents_custom_5_time, im_sum_agents_custom_6_time, + * im_sum_agents_custom_7_time, im_sum_agents_custom_8_time, + * im_sum_agents_custom_9_time, im_sum_agents_custom_10_time, + * im_sum_agents_banned_time, average_agents_idle_time, + * max_agents_idle_time, min_agents_idle_time, + * percentile_0_25_agents_idle_time, percentile_0_50_agents_idle_time, + * percentile_0_75_agents_idle_time, min_time_in_queue, + * max_time_in_queue, average_time_in_queue, min_answer_speed, + * max_answer_speed, average_answer_speed, im_min_answer_speed, + * im_max_answer_speed, im_average_answer_speed, min_handle_time, + * max_handle_time, average_handle_time, count_handled_calls, + * min_after_call_worktime, max_after_call_worktime, + * average_after_call_worktime, count_agent_unanswered_calls, + * im_count_agent_unanswered_chats, min_reaction_time, + * max_reaction_time, average_reaction_time, im_min_reaction_time, + * im_max_reaction_time, im_average_reaction_time, + * im_count_abandonment_chats, im_count_lost_chats, im_lost_chats_rate + */ + public MultiArgument getReportType() { + return this.reportType; + } + + public boolean hasReportType() { + return this.reportType != null; + } + + /** + * The report type. Possible values are: calls_blocked_percentage, + * count_blocked_calls, im_blocked_chats_percentage, + * im_count_blocked_chats, im_answered_chats_rate, + * average_abandonment_rate, count_abandonment_calls, service_level, + * im_service_level, occupancy_rate, im_agent_occupancy_rate, + * agent_utilization_rate, im_agent_utilization_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_in_service_incoming_time, + * sum_agents_in_service_outcoming_time, sum_agents_afterservice_time, + * sum_agents_dnd_time, sum_agents_custom_1_time, + * sum_agents_custom_2_time, sum_agents_custom_3_time, + * sum_agents_custom_4_time, sum_agents_custom_5_time, + * sum_agents_custom_6_time, sum_agents_custom_7_time, + * sum_agents_custom_8_time, sum_agents_custom_9_time, + * sum_agents_custom_10_time, sum_agents_banned_time, + * im_sum_agents_online_time, im_sum_agents_ready_time, + * im_sum_agents_in_service_time, im_sum_agents_dnd_time, + * im_sum_agents_custom_1_time, im_sum_agents_custom_2_time, + * im_sum_agents_custom_3_time, im_sum_agents_custom_4_time, + * im_sum_agents_custom_5_time, im_sum_agents_custom_6_time, + * im_sum_agents_custom_7_time, im_sum_agents_custom_8_time, + * im_sum_agents_custom_9_time, im_sum_agents_custom_10_time, + * im_sum_agents_banned_time, average_agents_idle_time, + * max_agents_idle_time, min_agents_idle_time, + * percentile_0_25_agents_idle_time, percentile_0_50_agents_idle_time, + * percentile_0_75_agents_idle_time, min_time_in_queue, + * max_time_in_queue, average_time_in_queue, min_answer_speed, + * max_answer_speed, average_answer_speed, im_min_answer_speed, + * im_max_answer_speed, im_average_answer_speed, min_handle_time, + * max_handle_time, average_handle_time, count_handled_calls, + * min_after_call_worktime, max_after_call_worktime, + * average_after_call_worktime, count_agent_unanswered_calls, + * im_count_agent_unanswered_chats, min_reaction_time, + * max_reaction_time, average_reaction_time, im_min_reaction_time, + * im_max_reaction_time, im_average_reaction_time, + * im_count_abandonment_chats, im_count_lost_chats, im_lost_chats_rate + */ + public GetSmartQueueDayHistoryRequest setReportType(MultiArgument d) { + this.reportType = d; + return this; + } + + private String groupBy; + + @RequestField(name="group_by") + /** + * Group the result by **agent** or *queue*. The **agent** grouping is + * allowed only for 1 queue and for the occupancy_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_afterservice_time, sum_agents_dnd_time, + * sum_agents_banned_time, min_handle_time, max_handle_time, + * average_handle_time, count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types. + * The **queue** grouping allowed for the calls_blocked_percentage, + * count_blocked_calls, average_abandonment_rate, + * count_abandonment_calls, service_level, occupancy_rate, + * min_time_in_queue, max_time_in_queue, average_time_in_queue, + * min_answer_speed, max_answer_speed, average_answer_speed, + * min_handle_time, max_handle_time, average_handle_time, + * count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types + */ + public String getGroupBy() { + return this.groupBy; + } + + public boolean hasGroupBy() { + return this.groupBy != null; + } + + /** + * Group the result by **agent** or *queue*. The **agent** grouping is + * allowed only for 1 queue and for the occupancy_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_afterservice_time, sum_agents_dnd_time, + * sum_agents_banned_time, min_handle_time, max_handle_time, + * average_handle_time, count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types. + * The **queue** grouping allowed for the calls_blocked_percentage, + * count_blocked_calls, average_abandonment_rate, + * count_abandonment_calls, service_level, occupancy_rate, + * min_time_in_queue, max_time_in_queue, average_time_in_queue, + * min_answer_speed, max_answer_speed, average_answer_speed, + * min_handle_time, max_handle_time, average_handle_time, + * count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types + */ + public GetSmartQueueDayHistoryRequest setGroupBy(String d) { + this.groupBy = d; + return this; + } + + private Long maxWaitingSec; + + @RequestField(name="max_waiting_sec") + /** + * Maximum waiting time. Required for the **service_level** report type + */ + public Long getMaxWaitingSec() { + return this.maxWaitingSec; + } + + public boolean hasMaxWaitingSec() { + return this.maxWaitingSec != null; + } + + /** + * Maximum waiting time. Required for the **service_level** report type + */ + public GetSmartQueueDayHistoryRequest setMaxWaitingSec(long d) { + this.maxWaitingSec = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (fromDate != null) { + sb.append(aligned) + .append("\"fromDate\": \"") + .append(fromDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (toDate != null) { + sb.append(aligned) + .append("\"toDate\": \"") + .append(toDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (timezone != null) { + sb.append(aligned) + .append("\"timezone\": \"") + .append(timezone) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (interval != null) { + sb.append(aligned) + .append("\"interval\": \"") + .append(interval) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (reportType != null) { + sb.append(aligned) + .append("\"reportType\": \"") + .append(reportType) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (groupBy != null) { + sb.append(aligned) + .append("\"groupBy\": \"") + .append(groupBy) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (maxWaitingSec != null) { + sb.append(aligned) + .append("\"maxWaitingSec\": \"") + .append(maxWaitingSec) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetSmartQueueRealtimeMetricsRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSmartQueueRealtimeMetricsRequest.java new file mode 100644 index 0000000..b258d8f --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/GetSmartQueueRealtimeMetricsRequest.java @@ -0,0 +1,577 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class GetSmartQueueRealtimeMetricsRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID to search by + */ + public GetSmartQueueRealtimeMetricsRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public GetSmartQueueRealtimeMetricsRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * The user ID list with a maximum of 5 values separated by semicolon + * (;). Use the 'all' value to select all users. Can operate as a filter + * for the **occupancy_rate**, **sum_agents_online_time**, + * **sum_agents_ready_time**, **sum_agents_dialing_time**, + * **sum_agents_in_service_time**, **sum_agents_afterservice_time**, + * **sum_agents_dnd_time**, **sum_agents_banned_time**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * The user ID list with a maximum of 5 values separated by semicolon + * (;). Use the 'all' value to select all users. Can operate as a filter + * for the **occupancy_rate**, **sum_agents_online_time**, + * **sum_agents_ready_time**, **sum_agents_dialing_time**, + * **sum_agents_in_service_time**, **sum_agents_afterservice_time**, + * **sum_agents_dnd_time**, **sum_agents_banned_time**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public GetSmartQueueRealtimeMetricsRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * The user name list separated by semicolon (;). user_name can + * be used instead of user_id + */ + public GetSmartQueueRealtimeMetricsRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * The smart queue ID list with a maximum of 5 values separated by + * semicolon (;). Can operate as filter for the + * **calls_blocked_percentage**, **count_blocked_calls**, + * **average_abandonment_rate**, **count_abandonment_calls**, + * **service_level**, **occupancy_rate**, **min_time_in_queue**, + * **max_time_in_queue**, **average_time_in_queue**, + * **min_answer_speed**, **max_answer_speed**, **average_answer_speed**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * The smart queue ID list with a maximum of 5 values separated by + * semicolon (;). Can operate as filter for the + * **calls_blocked_percentage**, **count_blocked_calls**, + * **average_abandonment_rate**, **count_abandonment_calls**, + * **service_level**, **occupancy_rate**, **min_time_in_queue**, + * **max_time_in_queue**, **average_time_in_queue**, + * **min_answer_speed**, **max_answer_speed**, **average_answer_speed**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public GetSmartQueueRealtimeMetricsRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public GetSmartQueueRealtimeMetricsRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date fromDate; + + @RequestField(name="from_date") + @SerializeUsing(serializer = TimestampSerializer.class) + /** + * The from date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time minus 30 minutes + */ + public Date getFromDate() { + return this.fromDate; + } + + public boolean hasFromDate() { + return this.fromDate != null; + } + + /** + * The from date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time minus 30 minutes + */ + public GetSmartQueueRealtimeMetricsRequest setFromDate(Date d) { + this.fromDate = d; + return this; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date toDate; + + @RequestField(name="to_date") + @SerializeUsing(serializer = TimestampSerializer.class) + /** + * The to date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time + */ + public Date getToDate() { + return this.toDate; + } + + public boolean hasToDate() { + return this.toDate != null; + } + + /** + * The to date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time + */ + public GetSmartQueueRealtimeMetricsRequest setToDate(Date d) { + this.toDate = d; + return this; + } + + private String timezone; + + @RequestField(name="timezone") + /** + * The selected timezone or the 'auto' value (the account location) + */ + public String getTimezone() { + return this.timezone; + } + + public boolean hasTimezone() { + return this.timezone != null; + } + + /** + * The selected timezone or the 'auto' value (the account location) + */ + public GetSmartQueueRealtimeMetricsRequest setTimezone(String d) { + this.timezone = d; + return this; + } + + private String interval; + + @RequestField(name="interval") + /** + * Interval format: YYYY-MM-DD HH:mm:ss. Default is 30 minutes + */ + public String getInterval() { + return this.interval; + } + + public boolean hasInterval() { + return this.interval != null; + } + + /** + * Interval format: YYYY-MM-DD HH:mm:ss. Default is 30 minutes + */ + public GetSmartQueueRealtimeMetricsRequest setInterval(String d) { + this.interval = d; + return this; + } + + private MultiArgument reportType; + + @RequestField(name="report_type") + /** + * The report type. Possible values are: calls_blocked_percentage, + * count_blocked_calls, im_blocked_chats_percentage, + * im_count_blocked_chats, im_answered_chats_rate, + * average_abandonment_rate, count_abandonment_calls, service_level, + * im_service_level, occupancy_rate, im_agent_occupancy_rate, + * agent_utilization_rate, im_agent_utilization_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_in_service_incoming_time, + * sum_agents_in_service_outcoming_time, sum_agents_afterservice_time, + * sum_agents_dnd_time, sum_agents_custom_1_time, + * sum_agents_custom_2_time, sum_agents_custom_3_time, + * sum_agents_custom_4_time, sum_agents_custom_5_time, + * sum_agents_custom_6_time, sum_agents_custom_7_time, + * sum_agents_custom_8_time, sum_agents_custom_9_time, + * sum_agents_custom_10_time, sum_agents_banned_time, + * im_sum_agents_online_time, im_sum_agents_ready_time, + * im_sum_agents_in_service_time, im_sum_agents_dnd_time, + * im_sum_agents_custom_1_time, im_sum_agents_custom_2_time, + * im_sum_agents_custom_3_time, im_sum_agents_custom_4_time, + * im_sum_agents_custom_5_time, im_sum_agents_custom_6_time, + * im_sum_agents_custom_7_time, im_sum_agents_custom_8_time, + * im_sum_agents_custom_9_time, im_sum_agents_custom_10_time, + * im_sum_agents_banned_time, average_agents_idle_time, + * max_agents_idle_time, min_agents_idle_time, + * percentile_0_25_agents_idle_time, percentile_0_50_agents_idle_time, + * percentile_0_75_agents_idle_time, min_time_in_queue, + * max_time_in_queue, average_time_in_queue, min_answer_speed, + * max_answer_speed, average_answer_speed, im_min_answer_speed, + * im_max_answer_speed, im_average_answer_speed, min_handle_time, + * max_handle_time, average_handle_time, count_handled_calls, + * min_after_call_worktime, max_after_call_worktime, + * average_after_call_worktime, count_agent_unanswered_calls, + * im_count_agent_unanswered_chats, min_reaction_time, + * max_reaction_time, average_reaction_time, im_min_reaction_time, + * im_max_reaction_time, im_average_reaction_time, + * im_count_abandonment_chats, im_count_lost_chats, im_lost_chats_rate + */ + public MultiArgument getReportType() { + return this.reportType; + } + + public boolean hasReportType() { + return this.reportType != null; + } + + /** + * The report type. Possible values are: calls_blocked_percentage, + * count_blocked_calls, im_blocked_chats_percentage, + * im_count_blocked_chats, im_answered_chats_rate, + * average_abandonment_rate, count_abandonment_calls, service_level, + * im_service_level, occupancy_rate, im_agent_occupancy_rate, + * agent_utilization_rate, im_agent_utilization_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_in_service_incoming_time, + * sum_agents_in_service_outcoming_time, sum_agents_afterservice_time, + * sum_agents_dnd_time, sum_agents_custom_1_time, + * sum_agents_custom_2_time, sum_agents_custom_3_time, + * sum_agents_custom_4_time, sum_agents_custom_5_time, + * sum_agents_custom_6_time, sum_agents_custom_7_time, + * sum_agents_custom_8_time, sum_agents_custom_9_time, + * sum_agents_custom_10_time, sum_agents_banned_time, + * im_sum_agents_online_time, im_sum_agents_ready_time, + * im_sum_agents_in_service_time, im_sum_agents_dnd_time, + * im_sum_agents_custom_1_time, im_sum_agents_custom_2_time, + * im_sum_agents_custom_3_time, im_sum_agents_custom_4_time, + * im_sum_agents_custom_5_time, im_sum_agents_custom_6_time, + * im_sum_agents_custom_7_time, im_sum_agents_custom_8_time, + * im_sum_agents_custom_9_time, im_sum_agents_custom_10_time, + * im_sum_agents_banned_time, average_agents_idle_time, + * max_agents_idle_time, min_agents_idle_time, + * percentile_0_25_agents_idle_time, percentile_0_50_agents_idle_time, + * percentile_0_75_agents_idle_time, min_time_in_queue, + * max_time_in_queue, average_time_in_queue, min_answer_speed, + * max_answer_speed, average_answer_speed, im_min_answer_speed, + * im_max_answer_speed, im_average_answer_speed, min_handle_time, + * max_handle_time, average_handle_time, count_handled_calls, + * min_after_call_worktime, max_after_call_worktime, + * average_after_call_worktime, count_agent_unanswered_calls, + * im_count_agent_unanswered_chats, min_reaction_time, + * max_reaction_time, average_reaction_time, im_min_reaction_time, + * im_max_reaction_time, im_average_reaction_time, + * im_count_abandonment_chats, im_count_lost_chats, im_lost_chats_rate + */ + public GetSmartQueueRealtimeMetricsRequest setReportType(MultiArgument d) { + this.reportType = d; + return this; + } + + private String groupBy; + + @RequestField(name="group_by") + /** + * Group the result by **agent** or *queue*. The **agent** grouping is + * allowed for 1 queue and for the occupancy_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_afterservice_time, sum_agents_dnd_time, + * sum_agents_banned_time, min_handle_time, max_handle_time, + * average_handle_time, count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types. + * The **queue** grouping allowed for the calls_blocked_percentage, + * count_blocked_calls, average_abandonment_rate, + * count_abandonment_calls, service_level, occupancy_rate, + * min_time_in_queue, max_time_in_queue, average_time_in_queue, + * min_answer_speed, max_answer_speed, average_answer_speed, + * min_handle_time, max_handle_time, average_handle_time, + * count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types + */ + public String getGroupBy() { + return this.groupBy; + } + + public boolean hasGroupBy() { + return this.groupBy != null; + } + + /** + * Group the result by **agent** or *queue*. The **agent** grouping is + * allowed for 1 queue and for the occupancy_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_afterservice_time, sum_agents_dnd_time, + * sum_agents_banned_time, min_handle_time, max_handle_time, + * average_handle_time, count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types. + * The **queue** grouping allowed for the calls_blocked_percentage, + * count_blocked_calls, average_abandonment_rate, + * count_abandonment_calls, service_level, occupancy_rate, + * min_time_in_queue, max_time_in_queue, average_time_in_queue, + * min_answer_speed, max_answer_speed, average_answer_speed, + * min_handle_time, max_handle_time, average_handle_time, + * count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types + */ + public GetSmartQueueRealtimeMetricsRequest setGroupBy(String d) { + this.groupBy = d; + return this; + } + + private Long maxWaitingSec; + + @RequestField(name="max_waiting_sec") + /** + * Maximum waiting time. Required for the **service_level** report type + */ + public Long getMaxWaitingSec() { + return this.maxWaitingSec; + } + + public boolean hasMaxWaitingSec() { + return this.maxWaitingSec != null; + } + + /** + * Maximum waiting time. Required for the **service_level** report type + */ + public GetSmartQueueRealtimeMetricsRequest setMaxWaitingSec(long d) { + this.maxWaitingSec = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (fromDate != null) { + sb.append(aligned) + .append("\"fromDate\": \"") + .append(fromDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (toDate != null) { + sb.append(aligned) + .append("\"toDate\": \"") + .append(toDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (timezone != null) { + sb.append(aligned) + .append("\"timezone\": \"") + .append(timezone) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (interval != null) { + sb.append(aligned) + .append("\"interval\": \"") + .append(interval) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (reportType != null) { + sb.append(aligned) + .append("\"reportType\": \"") + .append(reportType) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (groupBy != null) { + sb.append(aligned) + .append("\"groupBy\": \"") + .append(groupBy) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (maxWaitingSec != null) { + sb.append(aligned) + .append("\"maxWaitingSec\": \"") + .append(maxWaitingSec) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/GetSmsHistoryRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSmsHistoryRequest.java index 93f937b..5bcccde 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetSmsHistoryRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetSmsHistoryRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetSmsHistoryRequest implements Alignable { @RequestField(name="source_number") /** - * The source phone number. + * The source phone number */ public String getSourceNumber() { return this.sourceNumber; @@ -29,7 +30,7 @@ public boolean hasSourceNumber() { } /** - * The source phone number. + * The source phone number */ public GetSmsHistoryRequest setSourceNumber(String d) { this.sourceNumber = d; @@ -40,7 +41,7 @@ public GetSmsHistoryRequest setSourceNumber(String d) { @RequestField(name="destination_number") /** - * The destination phone number. + * The destination phone number */ public String getDestinationNumber() { return this.destinationNumber; @@ -51,7 +52,7 @@ public boolean hasDestinationNumber() { } /** - * The destination phone number. + * The destination phone number */ public GetSmsHistoryRequest setDestinationNumber(String d) { this.destinationNumber = d; @@ -63,7 +64,7 @@ public GetSmsHistoryRequest setDestinationNumber(String d) { @RequestField(name="direction") /** * Sent or received SMS. Possible values: 'IN', 'OUT', 'in, 'out'. Leave - * blank to get both incoming and outgoing messages. + * blank to get both incoming and outgoing messages */ public String getDirection() { return this.direction; @@ -75,7 +76,7 @@ public boolean hasDirection() { /** * Sent or received SMS. Possible values: 'IN', 'OUT', 'in, 'out'. Leave - * blank to get both incoming and outgoing messages. + * blank to get both incoming and outgoing messages */ public GetSmsHistoryRequest setDirection(String d) { this.direction = d; @@ -86,8 +87,8 @@ public GetSmsHistoryRequest setDirection(String d) { @RequestField(name="count") /** - * Maximum number of resulting rows fetched. Must be not more than 1000. - * If left blank, then the default value of 1000 will be used. + * Maximum number of resulting rows fetched. Must be not bigger than + * 1000. If left blank, then the default value of 1000 will be used */ public Long getCount() { return this.count; @@ -98,8 +99,8 @@ public boolean hasCount() { } /** - * Maximum number of resulting rows fetched. Must be not more than 1000. - * If left blank, then the default value of 1000 will be used. + * Maximum number of resulting rows fetched. Must be not bigger than + * 1000. If left blank, then the default value of 1000 will be used */ public GetSmsHistoryRequest setCount(long d) { this.count = Long.valueOf(d); @@ -110,7 +111,7 @@ public GetSmsHistoryRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -121,7 +122,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetSmsHistoryRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -134,7 +135,7 @@ public GetSmsHistoryRequest setOffset(long d) { @RequestField(name="from_date") @SerializeUsing(serializer = TimestampSerializer.class) /** - * Date from which to perform search. Format is 'yyyy-MM-dd HH:mm:ss'. + * Date from which to perform search. Format is 'yyyy-MM-dd HH:mm:ss' */ public Date getFromDate() { return this.fromDate; @@ -145,7 +146,7 @@ public boolean hasFromDate() { } /** - * Date from which to perform search. Format is 'yyyy-MM-dd HH:mm:ss'. + * Date from which to perform search. Format is 'yyyy-MM-dd HH:mm:ss' */ public GetSmsHistoryRequest setFromDate(Date d) { this.fromDate = d; @@ -158,7 +159,7 @@ public GetSmsHistoryRequest setFromDate(Date d) { @RequestField(name="to_date") @SerializeUsing(serializer = TimestampSerializer.class) /** - * Date until which to perform search. Format is 'yyyy-MM-dd HH:mm:ss'. + * Date until which to perform search. Format is 'yyyy-MM-dd HH:mm:ss' */ public Date getToDate() { return this.toDate; @@ -169,7 +170,7 @@ public boolean hasToDate() { } /** - * Date until which to perform search. Format is 'yyyy-MM-dd HH:mm:ss'. + * Date until which to perform search. Format is 'yyyy-MM-dd HH:mm:ss' */ public GetSmsHistoryRequest setToDate(Date d) { this.toDate = d; @@ -180,7 +181,7 @@ public GetSmsHistoryRequest setToDate(Date d) { @RequestField(name="output") /** - * The output format. The following values available: json, csv. + * The output format. The following values available: json, csv */ public String getOutput() { return this.output; @@ -191,7 +192,7 @@ public boolean hasOutput() { } /** - * The output format. The following values available: json, csv. + * The output format. The following values available: json, csv */ public GetSmsHistoryRequest setOutput(String d) { this.output = d; diff --git a/src/main/java/com/voximplant/apiclient/request/GetSubUserRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSubUserRolesRequest.java index bdfe675..686154b 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetSubUserRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetSubUserRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetSubUserRolesRequest implements Alignable { @RequestField(name="subuser_id") /** - * The subuser's ID. + * The subuser's ID */ public Long getSubuserId() { return this.subuserId; @@ -29,7 +30,7 @@ public boolean hasSubuserId() { } /** - * The subuser's ID. + * The subuser's ID */ public GetSubUserRolesRequest setSubuserId(long d) { this.subuserId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetSubUserRolesRequest setSubuserId(long d) { @RequestField(name="with_expanded_roles") /** - * Show the roles' additional properties. + * Show the roles' additional properties */ public Boolean getWithExpandedRoles() { return this.withExpandedRoles; @@ -51,7 +52,7 @@ public boolean hasWithExpandedRoles() { } /** - * Show the roles' additional properties. + * Show the roles' additional properties */ public GetSubUserRolesRequest setWithExpandedRoles(boolean d) { this.withExpandedRoles = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetSubUsersRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSubUsersRequest.java index 2f476e3..3020529 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetSubUsersRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetSubUsersRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetSubUsersRequest implements Alignable { @RequestField(name="subuser_id") /** - * The subuser's ID. + * The subuser's ID */ public Long getSubuserId() { return this.subuserId; @@ -29,7 +30,7 @@ public boolean hasSubuserId() { } /** - * The subuser's ID. + * The subuser's ID */ public GetSubUsersRequest setSubuserId(long d) { this.subuserId = Long.valueOf(d); @@ -62,7 +63,7 @@ public GetSubUsersRequest setWithRoles(boolean d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -73,7 +74,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetSubUsersRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetSubUsersRequest setOffset(long d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -95,7 +96,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetSubUsersRequest setCount(long d) { this.count = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetSubscriptionPriceRequest.java b/src/main/java/com/voximplant/apiclient/request/GetSubscriptionPriceRequest.java index 71705df..12aadb4 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetSubscriptionPriceRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetSubscriptionPriceRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetSubscriptionPriceRequest implements Alignable { @RequestField(name="subscription_template_id") /** - * The subscription template ID list separated by the ';' symbol. + * The subscription template ID list separated by semicolon (;) */ public MultiArgument getSubscriptionTemplateId() { return this.subscriptionTemplateId; @@ -29,7 +30,7 @@ public boolean hasSubscriptionTemplateId() { } /** - * The subscription template ID list separated by the ';' symbol. + * The subscription template ID list separated by semicolon (;) */ public GetSubscriptionPriceRequest setSubscriptionTemplateId(MultiArgument d) { this.subscriptionTemplateId = d; @@ -41,7 +42,7 @@ public GetSubscriptionPriceRequest setSubscriptionTemplateId(MultiArgument @RequestField(name="subscription_template_type") /** * The subscription template type. The following values are possible: - * PHONE_NUM, SIP_REGISTRATION. + * PHONE_NUM, SIP_REGISTRATION */ public String getSubscriptionTemplateType() { return this.subscriptionTemplateType; @@ -53,7 +54,7 @@ public boolean hasSubscriptionTemplateType() { /** * The subscription template type. The following values are possible: - * PHONE_NUM, SIP_REGISTRATION. + * PHONE_NUM, SIP_REGISTRATION */ public GetSubscriptionPriceRequest setSubscriptionTemplateType(String d) { this.subscriptionTemplateType = d; @@ -65,7 +66,7 @@ public GetSubscriptionPriceRequest setSubscriptionTemplateType(String d) { @RequestField(name="subscription_template_name") /** * The subscription template name (example: SIP registration, Phone GB, - * Phone RU 495, ...). + * Phone RU 495, ...) */ public String getSubscriptionTemplateName() { return this.subscriptionTemplateName; @@ -77,7 +78,7 @@ public boolean hasSubscriptionTemplateName() { /** * The subscription template name (example: SIP registration, Phone GB, - * Phone RU 495, ...). + * Phone RU 495, ...) */ public GetSubscriptionPriceRequest setSubscriptionTemplateName(String d) { this.subscriptionTemplateName = d; @@ -88,7 +89,7 @@ public GetSubscriptionPriceRequest setSubscriptionTemplateName(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -99,7 +100,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetSubscriptionPriceRequest setCount(long d) { this.count = Long.valueOf(d); @@ -110,7 +111,7 @@ public GetSubscriptionPriceRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -121,7 +122,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetSubscriptionPriceRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetTransactionHistoryRequest.java b/src/main/java/com/voximplant/apiclient/request/GetTransactionHistoryRequest.java index 253a282..11e224e 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetTransactionHistoryRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetTransactionHistoryRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -70,7 +71,7 @@ public GetTransactionHistoryRequest setToDate(Date d) { @RequestField(name="timezone") /** - * The selected timezone or the 'auto' value (the account location). + * The selected timezone or the 'auto' value (the account location) */ public String getTimezone() { return this.timezone; @@ -81,7 +82,7 @@ public boolean hasTimezone() { } /** - * The selected timezone or the 'auto' value (the account location). + * The selected timezone or the 'auto' value (the account location) */ public GetTransactionHistoryRequest setTimezone(String d) { this.timezone = d; @@ -92,7 +93,7 @@ public GetTransactionHistoryRequest setTimezone(String d) { @RequestField(name="transaction_id") /** - * The transaction ID list separated by the ';' symbol. + * The transaction ID list separated by semicolon (;) */ public MultiArgument getTransactionId() { return this.transactionId; @@ -103,7 +104,7 @@ public boolean hasTransactionId() { } /** - * The transaction ID list separated by the ';' symbol. + * The transaction ID list separated by semicolon (;) */ public GetTransactionHistoryRequest setTransactionId(MultiArgument d) { this.transactionId = d; @@ -114,7 +115,7 @@ public GetTransactionHistoryRequest setTransactionId(MultiArgument d) { @RequestField(name="payment_reference") /** - * The external payment reference to filter. + * The external payment reference to filter */ public String getPaymentReference() { return this.paymentReference; @@ -125,7 +126,7 @@ public boolean hasPaymentReference() { } /** - * The external payment reference to filter. + * The external payment reference to filter */ public GetTransactionHistoryRequest setPaymentReference(String d) { this.paymentReference = d; @@ -136,12 +137,23 @@ public GetTransactionHistoryRequest setPaymentReference(String d) { @RequestField(name="transaction_type") /** - * The transaction type list separated by the ';' symbol. The following - * values are possible: periodic_charge, resource_charge, - * money_distribution, subscription_charge, - * subscription_installation_charge, card_periodic_payment, - * card_overrun_payment, card_payment, robokassa_payment, gift, - * add_money, subscription_cancel, adjustment, wire_transfer, refund. + * The transaction type list separated by semicolon (;). The following + * values are possible: resource_charge, money_distribution, + * subscription_charge, subscription_installation_charge, + * card_periodic_payment, card_overrun_payment, card_payment, + * rub_card_periodic_payment, rub_card_overrun_payment, + * rub_card_payment, robokassa_payment, gift, promo, adjustment, + * wire_transfer, us_wire_transfer, refund, discount, mgp_charge, + * mgp_startup, mgp_business, mgp_big_business, mgp_enterprise, + * mgp_large_enterprise, techsupport_charge, tax_charge, + * monthly_fee_charge, grace_credit_payment, grace_credit_provision, + * mau_charge, mau_overrun, im_charge, im_overrun, fmc_charge, + * sip_registration_charge, development_fee, money_transfer_to_child, + * money_transfer_to_parent, money_acceptance_from_child, + * money_acceptance_from_parent, phone_number_installation, + * phone_number_charge, toll_free_phone_number_installation, + * toll_free_phone_number_charge, services, user_money_transfer, + * paypal_payment, paypal_overrun_payment, paypal_periodic_payment */ public MultiArgument getTransactionType() { return this.transactionType; @@ -152,12 +164,23 @@ public boolean hasTransactionType() { } /** - * The transaction type list separated by the ';' symbol. The following - * values are possible: periodic_charge, resource_charge, - * money_distribution, subscription_charge, - * subscription_installation_charge, card_periodic_payment, - * card_overrun_payment, card_payment, robokassa_payment, gift, - * add_money, subscription_cancel, adjustment, wire_transfer, refund. + * The transaction type list separated by semicolon (;). The following + * values are possible: resource_charge, money_distribution, + * subscription_charge, subscription_installation_charge, + * card_periodic_payment, card_overrun_payment, card_payment, + * rub_card_periodic_payment, rub_card_overrun_payment, + * rub_card_payment, robokassa_payment, gift, promo, adjustment, + * wire_transfer, us_wire_transfer, refund, discount, mgp_charge, + * mgp_startup, mgp_business, mgp_big_business, mgp_enterprise, + * mgp_large_enterprise, techsupport_charge, tax_charge, + * monthly_fee_charge, grace_credit_payment, grace_credit_provision, + * mau_charge, mau_overrun, im_charge, im_overrun, fmc_charge, + * sip_registration_charge, development_fee, money_transfer_to_child, + * money_transfer_to_parent, money_acceptance_from_child, + * money_acceptance_from_parent, phone_number_installation, + * phone_number_charge, toll_free_phone_number_installation, + * toll_free_phone_number_charge, services, user_money_transfer, + * paypal_payment, paypal_overrun_payment, paypal_periodic_payment */ public GetTransactionHistoryRequest setTransactionType(MultiArgument d) { this.transactionType = d; @@ -168,7 +191,7 @@ public GetTransactionHistoryRequest setTransactionType(MultiArgument d) @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol. + * The user ID list separated by semicolon (;) */ public MultiArgument getUserId() { return this.userId; @@ -179,7 +202,7 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol. + * The user ID list separated by semicolon (;) */ public GetTransactionHistoryRequest setUserId(MultiArgument d) { this.userId = d; @@ -190,8 +213,8 @@ public GetTransactionHistoryRequest setUserId(MultiArgument d) { @RequestField(name="child_account_id") /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public MultiArgument getChildAccountId() { return this.childAccountId; @@ -202,8 +225,8 @@ public boolean hasChildAccountId() { } /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public GetTransactionHistoryRequest setChildAccountId(MultiArgument d) { this.childAccountId = d; @@ -214,7 +237,7 @@ public GetTransactionHistoryRequest setChildAccountId(MultiArgument d) { @RequestField(name="children_transactions_only") /** - * Set true to get the children account transactions only. + * Set true to get the children account transactions only */ public Boolean getChildrenTransactionsOnly() { return this.childrenTransactionsOnly; @@ -225,7 +248,7 @@ public boolean hasChildrenTransactionsOnly() { } /** - * Set true to get the children account transactions only. + * Set true to get the children account transactions only */ public GetTransactionHistoryRequest setChildrenTransactionsOnly(boolean d) { this.childrenTransactionsOnly = Boolean.valueOf(d); @@ -236,7 +259,7 @@ public GetTransactionHistoryRequest setChildrenTransactionsOnly(boolean d) { @RequestField(name="users_transactions_only") /** - * Set true to get the users' transactions only. + * Set true to get the users' transactions only */ public Boolean getUsersTransactionsOnly() { return this.usersTransactionsOnly; @@ -247,7 +270,7 @@ public boolean hasUsersTransactionsOnly() { } /** - * Set true to get the users' transactions only. + * Set true to get the users' transactions only */ public GetTransactionHistoryRequest setUsersTransactionsOnly(boolean d) { this.usersTransactionsOnly = Boolean.valueOf(d); @@ -258,7 +281,7 @@ public GetTransactionHistoryRequest setUsersTransactionsOnly(boolean d) { @RequestField(name="desc_order") /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public Boolean getDescOrder() { return this.descOrder; @@ -269,7 +292,7 @@ public boolean hasDescOrder() { } /** - * Set true to get records in the descent order. + * Set true to get records in the descent order */ public GetTransactionHistoryRequest setDescOrder(boolean d) { this.descOrder = Boolean.valueOf(d); @@ -280,7 +303,8 @@ public GetTransactionHistoryRequest setDescOrder(boolean d) { @RequestField(name="count") /** - * The max returning record count. + * The number of returning records. In the synchronous mode, the maximum + * value is 1000 */ public Long getCount() { return this.count; @@ -291,7 +315,8 @@ public boolean hasCount() { } /** - * The max returning record count. + * The number of returning records. In the synchronous mode, the maximum + * value is 1000 */ public GetTransactionHistoryRequest setCount(long d) { this.count = Long.valueOf(d); @@ -302,7 +327,8 @@ public GetTransactionHistoryRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The number of records to skip in the output with a maximum value of + * 10000 */ public Long getOffset() { return this.offset; @@ -313,7 +339,8 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The number of records to skip in the output with a maximum value of + * 10000 */ public GetTransactionHistoryRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -347,8 +374,9 @@ public GetTransactionHistoryRequest setOutput(String d) { @RequestField(name="is_async") /** * Set true to get records in the asynchronous mode (for csv output - * only). See the [GetHistoryReports], [DownloadHistoryReport] - * functions. + * only). Use this mode to download large amounts of data. See + * the [GetHistoryReports], [DownloadHistoryReport] functions for + * details */ public Boolean getIsAsync() { return this.isAsync; @@ -360,14 +388,39 @@ public boolean hasIsAsync() { /** * Set true to get records in the asynchronous mode (for csv output - * only). See the [GetHistoryReports], [DownloadHistoryReport] - * functions. + * only). Use this mode to download large amounts of data. See + * the [GetHistoryReports], [DownloadHistoryReport] functions for + * details */ public GetTransactionHistoryRequest setIsAsync(boolean d) { this.isAsync = Boolean.valueOf(d); return this; } + private Boolean isUncommitted; + + @RequestField(name="is_uncommitted") + /** + * Set true to get transactions on hold (transactions for which money is + * reserved but not yet withdrawn from the account) + */ + public Boolean getIsUncommitted() { + return this.isUncommitted; + } + + public boolean hasIsUncommitted() { + return this.isUncommitted != null; + } + + /** + * Set true to get transactions on hold (transactions for which money is + * reserved but not yet withdrawn from the account) + */ + public GetTransactionHistoryRequest setIsUncommitted(boolean d) { + this.isUncommitted = Boolean.valueOf(d); + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -497,6 +550,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (isUncommitted != null) { + sb.append(aligned) + .append("\"isUncommitted\": \"") + .append(isUncommitted) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/GetUsersRequest.java b/src/main/java/com/voximplant/apiclient/request/GetUsersRequest.java index 1a034fe..2b236c4 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetUsersRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetUsersRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetUsersRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID to filter. + * The application ID to filter */ public Long getApplicationId() { return this.applicationId; @@ -29,7 +30,7 @@ public boolean hasApplicationId() { } /** - * The application ID to filter. + * The application ID to filter */ public GetUsersRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -40,7 +41,7 @@ public GetUsersRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name part to filter. + * The application name part to filter */ public String getApplicationName() { return this.applicationName; @@ -51,7 +52,7 @@ public boolean hasApplicationName() { } /** - * The application name part to filter. + * The application name part to filter */ public GetUsersRequest setApplicationName(String d) { this.applicationName = d; @@ -62,7 +63,7 @@ public GetUsersRequest setApplicationName(String d) { @RequestField(name="skill_id") /** - * The skill ID to filter. + * The skill ID to filter */ public Long getSkillId() { return this.skillId; @@ -73,7 +74,7 @@ public boolean hasSkillId() { } /** - * The skill ID to filter. + * The skill ID to filter */ public GetUsersRequest setSkillId(long d) { this.skillId = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetUsersRequest setSkillId(long d) { @RequestField(name="excluded_skill_id") /** - * The excluded skill ID to filter. + * The excluded skill ID to filter */ public Long getExcludedSkillId() { return this.excludedSkillId; @@ -95,7 +96,7 @@ public boolean hasExcludedSkillId() { } /** - * The excluded skill ID to filter. + * The excluded skill ID to filter */ public GetUsersRequest setExcludedSkillId(long d) { this.excludedSkillId = Long.valueOf(d); @@ -106,7 +107,7 @@ public GetUsersRequest setExcludedSkillId(long d) { @RequestField(name="acd_queue_id") /** - * The ACD queue ID to filter. + * The ACD queue ID to filter */ public Long getAcdQueueId() { return this.acdQueueId; @@ -117,7 +118,7 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID to filter. + * The ACD queue ID to filter */ public GetUsersRequest setAcdQueueId(long d) { this.acdQueueId = Long.valueOf(d); @@ -128,7 +129,7 @@ public GetUsersRequest setAcdQueueId(long d) { @RequestField(name="excluded_acd_queue_id") /** - * The excluded ACD queue ID to filter. + * The excluded ACD queue ID to filter */ public Long getExcludedAcdQueueId() { return this.excludedAcdQueueId; @@ -139,7 +140,7 @@ public boolean hasExcludedAcdQueueId() { } /** - * The excluded ACD queue ID to filter. + * The excluded ACD queue ID to filter */ public GetUsersRequest setExcludedAcdQueueId(long d) { this.excludedAcdQueueId = Long.valueOf(d); @@ -150,7 +151,7 @@ public GetUsersRequest setExcludedAcdQueueId(long d) { @RequestField(name="user_id") /** - * The user ID to filter. + * The user ID to filter */ public Long getUserId() { return this.userId; @@ -161,7 +162,7 @@ public boolean hasUserId() { } /** - * The user ID to filter. + * The user ID to filter */ public GetUsersRequest setUserId(long d) { this.userId = Long.valueOf(d); @@ -172,7 +173,7 @@ public GetUsersRequest setUserId(long d) { @RequestField(name="user_name") /** - * The user name part to filter. + * The user name part to filter */ public String getUserName() { return this.userName; @@ -183,7 +184,7 @@ public boolean hasUserName() { } /** - * The user name part to filter. + * The user name part to filter */ public GetUsersRequest setUserName(String d) { this.userName = d; @@ -194,7 +195,7 @@ public GetUsersRequest setUserName(String d) { @RequestField(name="user_active") /** - * The user active flag to filter. + * The user active flag to filter */ public Boolean getUserActive() { return this.userActive; @@ -205,7 +206,7 @@ public boolean hasUserActive() { } /** - * The user active flag to filter. + * The user active flag to filter */ public GetUsersRequest setUserActive(boolean d) { this.userActive = Boolean.valueOf(d); @@ -216,7 +217,7 @@ public GetUsersRequest setUserActive(boolean d) { @RequestField(name="user_display_name") /** - * The user display name part to filter. + * The user display name part to filter */ public String getUserDisplayName() { return this.userDisplayName; @@ -227,7 +228,7 @@ public boolean hasUserDisplayName() { } /** - * The user display name part to filter. + * The user display name part to filter */ public GetUsersRequest setUserDisplayName(String d) { this.userDisplayName = d; @@ -238,7 +239,7 @@ public GetUsersRequest setUserDisplayName(String d) { @RequestField(name="with_skills") /** - * Set true to get the bound skills. + * Set true to get the bound skills */ public Boolean getWithSkills() { return this.withSkills; @@ -249,7 +250,7 @@ public boolean hasWithSkills() { } /** - * Set true to get the bound skills. + * Set true to get the bound skills */ public GetUsersRequest setWithSkills(boolean d) { this.withSkills = Boolean.valueOf(d); @@ -260,7 +261,7 @@ public GetUsersRequest setWithSkills(boolean d) { @RequestField(name="with_queues") /** - * Set true to get the bound queues. + * Set true to get the bound queues */ public Boolean getWithQueues() { return this.withQueues; @@ -271,7 +272,7 @@ public boolean hasWithQueues() { } /** - * Set true to get the bound queues. + * Set true to get the bound queues */ public GetUsersRequest setWithQueues(boolean d) { this.withQueues = Boolean.valueOf(d); @@ -282,9 +283,9 @@ public GetUsersRequest setWithQueues(boolean d) { @RequestField(name="acd_status") /** - * The ACD status list separated by the ';' symbol to filter. The + * The ACD status list separated by semicolon (;) to filter. The * following values are possible: OFFLINE, ONLINE, READY, BANNED, - * IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND. + * IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND */ public MultiArgument getAcdStatus() { return this.acdStatus; @@ -295,9 +296,9 @@ public boolean hasAcdStatus() { } /** - * The ACD status list separated by the ';' symbol to filter. The + * The ACD status list separated by semicolon (;) to filter. The * following values are possible: OFFLINE, ONLINE, READY, BANNED, - * IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND. + * IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND */ public GetUsersRequest setAcdStatus(MultiArgument d) { this.acdStatus = d; @@ -308,7 +309,7 @@ public GetUsersRequest setAcdStatus(MultiArgument d) { @RequestField(name="showing_skill_id") /** - * The skill to show in the 'skills' field output. + * The skill to show in the 'skills' field output */ public Long getShowingSkillId() { return this.showingSkillId; @@ -319,7 +320,7 @@ public boolean hasShowingSkillId() { } /** - * The skill to show in the 'skills' field output. + * The skill to show in the 'skills' field output */ public GetUsersRequest setShowingSkillId(long d) { this.showingSkillId = Long.valueOf(d); @@ -330,7 +331,7 @@ public GetUsersRequest setShowingSkillId(long d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -341,7 +342,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetUsersRequest setCount(long d) { this.count = Long.valueOf(d); @@ -352,7 +353,7 @@ public GetUsersRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -363,7 +364,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetUsersRequest setOffset(long d) { this.offset = Long.valueOf(d); @@ -375,7 +376,7 @@ public GetUsersRequest setOffset(long d) { @RequestField(name="order_by") /** * The following values are available: 'user_id', 'user_name' and - * 'user_display_name'. + * 'user_display_name' */ public String getOrderBy() { return this.orderBy; @@ -387,7 +388,7 @@ public boolean hasOrderBy() { /** * The following values are available: 'user_id', 'user_name' and - * 'user_display_name'. + * 'user_display_name' */ public GetUsersRequest setOrderBy(String d) { this.orderBy = d; @@ -398,7 +399,7 @@ public GetUsersRequest setOrderBy(String d) { @RequestField(name="return_live_balance") /** - * Set true to get the user live balance. + * Set true to get the user live balance */ public Boolean getReturnLiveBalance() { return this.returnLiveBalance; @@ -409,7 +410,7 @@ public boolean hasReturnLiveBalance() { } /** - * Set true to get the user live balance. + * Set true to get the user live balance */ public GetUsersRequest setReturnLiveBalance(boolean d) { this.returnLiveBalance = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/GetZIPCodesRequest.java b/src/main/java/com/voximplant/apiclient/request/GetZIPCodesRequest.java index 3de780f..d42d9b1 100644 --- a/src/main/java/com/voximplant/apiclient/request/GetZIPCodesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/GetZIPCodesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class GetZIPCodesRequest implements Alignable { @RequestField(name="country_code") /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public String getCountryCode() { return this.countryCode; @@ -29,7 +30,7 @@ public boolean hasCountryCode() { } /** - * The country code according to the ISO 3166-1 alpha-2. + * The country code according to the ISO 3166-1 alpha-2 */ public GetZIPCodesRequest setCountryCode(String d) { this.countryCode = d; @@ -62,7 +63,7 @@ public GetZIPCodesRequest setPhoneRegionCode(String d) { @RequestField(name="count") /** - * The max returning record count. + * The max returning record count */ public Long getCount() { return this.count; @@ -73,7 +74,7 @@ public boolean hasCount() { } /** - * The max returning record count. + * The max returning record count */ public GetZIPCodesRequest setCount(long d) { this.count = Long.valueOf(d); @@ -84,7 +85,7 @@ public GetZIPCodesRequest setCount(long d) { @RequestField(name="offset") /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public Long getOffset() { return this.offset; @@ -95,7 +96,7 @@ public boolean hasOffset() { } /** - * The first N records will be skipped in the output. + * The first N records will be skipped in the output */ public GetZIPCodesRequest setOffset(long d) { this.offset = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/LinkregulationAddressRequest.java b/src/main/java/com/voximplant/apiclient/request/LinkRegulationAddressRequest.java similarity index 91% rename from src/main/java/com/voximplant/apiclient/request/LinkregulationAddressRequest.java rename to src/main/java/com/voximplant/apiclient/request/LinkRegulationAddressRequest.java index 8782d61..5fa0a5b 100644 --- a/src/main/java/com/voximplant/apiclient/request/LinkregulationAddressRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/LinkRegulationAddressRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -13,7 +14,7 @@ import com.voximplant.apiclient.util.SerializeUsing; import com.voximplant.apiclient.util.TimestampSerializer; -public class LinkregulationAddressRequest implements Alignable { +public class LinkRegulationAddressRequest implements Alignable { private Long regulationAddressId; @RequestField(name="regulation_address_id") @@ -31,7 +32,7 @@ public boolean hasRegulationAddressId() { /** * The regulation address ID */ - public LinkregulationAddressRequest setRegulationAddressId(long d) { + public LinkRegulationAddressRequest setRegulationAddressId(long d) { this.regulationAddressId = Long.valueOf(d); return this; } @@ -53,7 +54,7 @@ public boolean hasPhoneId() { /** * The phone ID for link */ - public LinkregulationAddressRequest setPhoneId(long d) { + public LinkRegulationAddressRequest setPhoneId(long d) { this.phoneId = Long.valueOf(d); return this; } @@ -75,7 +76,7 @@ public boolean hasPhoneNumber() { /** * The phone number for link */ - public LinkregulationAddressRequest setPhoneNumber(String d) { + public LinkRegulationAddressRequest setPhoneNumber(String d) { this.phoneNumber = d; return this; } diff --git a/src/main/java/com/voximplant/apiclient/request/RecoverCallListRequest.java b/src/main/java/com/voximplant/apiclient/request/RecoverCallListRequest.java index 420e8ad..6377573 100644 --- a/src/main/java/com/voximplant/apiclient/request/RecoverCallListRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/RecoverCallListRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class RecoverCallListRequest implements Alignable { @RequestField(name="list_id") /** - * The list Id. + * The list Id */ public Long getListId() { return this.listId; @@ -29,7 +30,7 @@ public boolean hasListId() { } /** - * The list Id. + * The list Id */ public RecoverCallListRequest setListId(long d) { this.listId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/RemoveKeyRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/RemoveKeyRolesRequest.java index c72339b..c696186 100644 --- a/src/main/java/com/voximplant/apiclient/request/RemoveKeyRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/RemoveKeyRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class RemoveKeyRolesRequest implements Alignable { @RequestField(name="key_id") /** - * The key's ID. + * The key's ID */ public String getKeyId() { return this.keyId; @@ -29,7 +30,7 @@ public boolean hasKeyId() { } /** - * The key's ID. + * The key's ID */ public RemoveKeyRolesRequest setKeyId(String d) { this.keyId = d; @@ -40,7 +41,7 @@ public RemoveKeyRolesRequest setKeyId(String d) { @RequestField(name="role_id") /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public MultiArgument getRoleId() { return this.roleId; @@ -51,7 +52,7 @@ public boolean hasRoleId() { } /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public RemoveKeyRolesRequest setRoleId(MultiArgument d) { this.roleId = d; @@ -62,7 +63,7 @@ public RemoveKeyRolesRequest setRoleId(MultiArgument d) { @RequestField(name="role_name") /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public MultiArgument getRoleName() { return this.roleName; @@ -73,7 +74,7 @@ public boolean hasRoleName() { } /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public RemoveKeyRolesRequest setRoleName(MultiArgument d) { this.roleName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/RemoveSubUserRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/RemoveSubUserRolesRequest.java index 2f03889..de566e5 100644 --- a/src/main/java/com/voximplant/apiclient/request/RemoveSubUserRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/RemoveSubUserRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class RemoveSubUserRolesRequest implements Alignable { @RequestField(name="subuser_id") /** - * The subuser's ID. + * The subuser's ID */ public Long getSubuserId() { return this.subuserId; @@ -29,7 +30,7 @@ public boolean hasSubuserId() { } /** - * The subuser's ID. + * The subuser's ID */ public RemoveSubUserRolesRequest setSubuserId(long d) { this.subuserId = Long.valueOf(d); @@ -40,7 +41,7 @@ public RemoveSubUserRolesRequest setSubuserId(long d) { @RequestField(name="role_id") /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public MultiArgument getRoleId() { return this.roleId; @@ -51,7 +52,7 @@ public boolean hasRoleId() { } /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public RemoveSubUserRolesRequest setRoleId(MultiArgument d) { this.roleId = d; @@ -62,7 +63,7 @@ public RemoveSubUserRolesRequest setRoleId(MultiArgument d) { @RequestField(name="role_name") /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public MultiArgument getRoleName() { return this.roleName; @@ -73,7 +74,7 @@ public boolean hasRoleName() { } /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public RemoveSubUserRolesRequest setRoleName(MultiArgument d) { this.roleName = d; @@ -84,7 +85,7 @@ public RemoveSubUserRolesRequest setRoleName(MultiArgument d) { @RequestField(name="force") /** - * Remove roles from all subuser keys. + * Remove roles from all subuser keys */ public Boolean getForce() { return this.force; @@ -95,7 +96,7 @@ public boolean hasForce() { } /** - * Remove roles from all subuser keys. + * Remove roles from all subuser keys */ public RemoveSubUserRolesRequest setForce(boolean d) { this.force = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/ReorderRulesRequest.java b/src/main/java/com/voximplant/apiclient/request/ReorderRulesRequest.java index b4a5aeb..d4a612f 100644 --- a/src/main/java/com/voximplant/apiclient/request/ReorderRulesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/ReorderRulesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class ReorderRulesRequest implements Alignable { @RequestField(name="rule_id") /** - * The rule ID list separated by the ';' symbol. + * The rule ID list separated by semicolon (;) */ public MultiArgument getRuleId() { return this.ruleId; @@ -29,7 +30,7 @@ public boolean hasRuleId() { } /** - * The rule ID list separated by the ';' symbol. + * The rule ID list separated by semicolon (;) */ public ReorderRulesRequest setRuleId(MultiArgument d) { this.ruleId = d; diff --git a/src/main/java/com/voximplant/apiclient/request/ReorderScenariosRequest.java b/src/main/java/com/voximplant/apiclient/request/ReorderScenariosRequest.java index 5958c89..4c22f39 100644 --- a/src/main/java/com/voximplant/apiclient/request/ReorderScenariosRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/ReorderScenariosRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class ReorderScenariosRequest implements Alignable { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID */ public Long getRuleId() { return this.ruleId; @@ -29,7 +30,7 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID */ public ReorderScenariosRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -40,7 +41,7 @@ public ReorderScenariosRequest setRuleId(long d) { @RequestField(name="rule_name") /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public String getRuleName() { return this.ruleName; @@ -51,7 +52,7 @@ public boolean hasRuleName() { } /** - * The rule name that can be used instead of rule_id. + * The rule name that can be used instead of rule_id */ public ReorderScenariosRequest setRuleName(String d) { this.ruleName = d; @@ -62,7 +63,7 @@ public ReorderScenariosRequest setRuleName(String d) { @RequestField(name="scenario_id") /** - * The scenario ID list separated by the ';' symbol. + * The scenario ID list separated by semicolon (;) */ public MultiArgument getScenarioId() { return this.scenarioId; @@ -73,7 +74,7 @@ public boolean hasScenarioId() { } /** - * The scenario ID list separated by the ';' symbol. + * The scenario ID list separated by semicolon (;) */ public ReorderScenariosRequest setScenarioId(MultiArgument d) { this.scenarioId = d; diff --git a/src/main/java/com/voximplant/apiclient/request/RequestSmartQueueHistoryRequest.java b/src/main/java/com/voximplant/apiclient/request/RequestSmartQueueHistoryRequest.java new file mode 100644 index 0000000..89d655d --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/RequestSmartQueueHistoryRequest.java @@ -0,0 +1,577 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class RequestSmartQueueHistoryRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID to search by + */ + public RequestSmartQueueHistoryRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name to search by. Can be used instead of the + * application_id parameter + */ + public RequestSmartQueueHistoryRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * The user ID list with a maximum of 5 values separated by semicolon + * (;). Use the 'all' value to select all users. Can operate as a filter + * for the **occupancy_rate**, **sum_agents_online_time**, + * **sum_agents_ready_time**, **sum_agents_dialing_time**, + * **sum_agents_in_service_time**, **sum_agents_afterservice_time**, + * **sum_agents_dnd_time**, **sum_agents_banned_time**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * The user ID list with a maximum of 5 values separated by semicolon + * (;). Use the 'all' value to select all users. Can operate as a filter + * for the **occupancy_rate**, **sum_agents_online_time**, + * **sum_agents_ready_time**, **sum_agents_dialing_time**, + * **sum_agents_in_service_time**, **sum_agents_afterservice_time**, + * **sum_agents_dnd_time**, **sum_agents_banned_time**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public RequestSmartQueueHistoryRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * The user name list separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * The user name list separated by semicolon (;). Can be used instead of + * user_id + */ + public RequestSmartQueueHistoryRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * The smart queue ID list with a maximum of 5 values separated by + * semicolon (;). Can operate as filter for the + * **calls_blocked_percentage**, **count_blocked_calls**, + * **average_abandonment_rate**, **count_abandonment_calls**, + * **service_level**, **occupancy_rate**, **min_time_in_queue**, + * **max_time_in_queue**, **average_time_in_queue**, + * **min_answer_speed**, **max_answer_speed**, **average_answer_speed**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * The smart queue ID list with a maximum of 5 values separated by + * semicolon (;). Can operate as filter for the + * **calls_blocked_percentage**, **count_blocked_calls**, + * **average_abandonment_rate**, **count_abandonment_calls**, + * **service_level**, **occupancy_rate**, **min_time_in_queue**, + * **max_time_in_queue**, **average_time_in_queue**, + * **min_answer_speed**, **max_answer_speed**, **average_answer_speed**, + * **min_handle_time**, **max_handle_time**, **average_handle_time**, + * **count_handled_calls**, **min_after_call_worktime**, + * **max_after_call_worktime**, **average_after_call_worktime** report + * types + */ + public RequestSmartQueueHistoryRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * The smart queue name list separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public RequestSmartQueueHistoryRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date fromDate; + + @RequestField(name="from_date") + @SerializeUsing(serializer = TimestampSerializer.class) + /** + * The from date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time minus 1 day + */ + public Date getFromDate() { + return this.fromDate; + } + + public boolean hasFromDate() { + return this.fromDate != null; + } + + /** + * The from date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time minus 1 day + */ + public RequestSmartQueueHistoryRequest setFromDate(Date d) { + this.fromDate = d; + return this; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date toDate; + + @RequestField(name="to_date") + @SerializeUsing(serializer = TimestampSerializer.class) + /** + * The to date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time + */ + public Date getToDate() { + return this.toDate; + } + + public boolean hasToDate() { + return this.toDate != null; + } + + /** + * The to date in the selected timezone in 24-h format: YYYY-MM-DD + * HH:mm:ss. Default is the current time + */ + public RequestSmartQueueHistoryRequest setToDate(Date d) { + this.toDate = d; + return this; + } + + private String timezone; + + @RequestField(name="timezone") + /** + * The selected timezone or the 'auto' value (the account location) + */ + public String getTimezone() { + return this.timezone; + } + + public boolean hasTimezone() { + return this.timezone != null; + } + + /** + * The selected timezone or the 'auto' value (the account location) + */ + public RequestSmartQueueHistoryRequest setTimezone(String d) { + this.timezone = d; + return this; + } + + private String interval; + + @RequestField(name="interval") + /** + * Interval format: YYYY-MM-DD HH:mm:ss. Default is 1 day + */ + public String getInterval() { + return this.interval; + } + + public boolean hasInterval() { + return this.interval != null; + } + + /** + * Interval format: YYYY-MM-DD HH:mm:ss. Default is 1 day + */ + public RequestSmartQueueHistoryRequest setInterval(String d) { + this.interval = d; + return this; + } + + private MultiArgument reportType; + + @RequestField(name="report_type") + /** + * The report type. Possible values are: calls_blocked_percentage, + * count_blocked_calls, im_blocked_chats_percentage, + * im_count_blocked_chats, im_answered_chats_rate, + * average_abandonment_rate, count_abandonment_calls, service_level, + * im_service_level, occupancy_rate, im_agent_occupancy_rate, + * agent_utilization_rate, im_agent_utilization_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_in_service_incoming_time, + * sum_agents_in_service_outcoming_time, sum_agents_afterservice_time, + * sum_agents_dnd_time, sum_agents_custom_1_time, + * sum_agents_custom_2_time, sum_agents_custom_3_time, + * sum_agents_custom_4_time, sum_agents_custom_5_time, + * sum_agents_custom_6_time, sum_agents_custom_7_time, + * sum_agents_custom_8_time, sum_agents_custom_9_time, + * sum_agents_custom_10_time, sum_agents_banned_time, + * im_sum_agents_online_time, im_sum_agents_ready_time, + * im_sum_agents_in_service_time, im_sum_agents_dnd_time, + * im_sum_agents_custom_1_time, im_sum_agents_custom_2_time, + * im_sum_agents_custom_3_time, im_sum_agents_custom_4_time, + * im_sum_agents_custom_5_time, im_sum_agents_custom_6_time, + * im_sum_agents_custom_7_time, im_sum_agents_custom_8_time, + * im_sum_agents_custom_9_time, im_sum_agents_custom_10_time, + * im_sum_agents_banned_time, average_agents_idle_time, + * max_agents_idle_time, min_agents_idle_time, + * percentile_0_25_agents_idle_time, percentile_0_50_agents_idle_time, + * percentile_0_75_agents_idle_time, min_time_in_queue, + * max_time_in_queue, average_time_in_queue, min_answer_speed, + * max_answer_speed, average_answer_speed, im_min_answer_speed, + * im_max_answer_speed, im_average_answer_speed, min_handle_time, + * max_handle_time, average_handle_time, count_handled_calls, + * min_after_call_worktime, max_after_call_worktime, + * average_after_call_worktime, count_agent_unanswered_calls, + * im_count_agent_unanswered_chats, min_reaction_time, + * max_reaction_time, average_reaction_time, im_min_reaction_time, + * im_max_reaction_time, im_average_reaction_time, + * im_count_abandonment_chats, im_count_lost_chats, im_lost_chats_rate + */ + public MultiArgument getReportType() { + return this.reportType; + } + + public boolean hasReportType() { + return this.reportType != null; + } + + /** + * The report type. Possible values are: calls_blocked_percentage, + * count_blocked_calls, im_blocked_chats_percentage, + * im_count_blocked_chats, im_answered_chats_rate, + * average_abandonment_rate, count_abandonment_calls, service_level, + * im_service_level, occupancy_rate, im_agent_occupancy_rate, + * agent_utilization_rate, im_agent_utilization_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_in_service_incoming_time, + * sum_agents_in_service_outcoming_time, sum_agents_afterservice_time, + * sum_agents_dnd_time, sum_agents_custom_1_time, + * sum_agents_custom_2_time, sum_agents_custom_3_time, + * sum_agents_custom_4_time, sum_agents_custom_5_time, + * sum_agents_custom_6_time, sum_agents_custom_7_time, + * sum_agents_custom_8_time, sum_agents_custom_9_time, + * sum_agents_custom_10_time, sum_agents_banned_time, + * im_sum_agents_online_time, im_sum_agents_ready_time, + * im_sum_agents_in_service_time, im_sum_agents_dnd_time, + * im_sum_agents_custom_1_time, im_sum_agents_custom_2_time, + * im_sum_agents_custom_3_time, im_sum_agents_custom_4_time, + * im_sum_agents_custom_5_time, im_sum_agents_custom_6_time, + * im_sum_agents_custom_7_time, im_sum_agents_custom_8_time, + * im_sum_agents_custom_9_time, im_sum_agents_custom_10_time, + * im_sum_agents_banned_time, average_agents_idle_time, + * max_agents_idle_time, min_agents_idle_time, + * percentile_0_25_agents_idle_time, percentile_0_50_agents_idle_time, + * percentile_0_75_agents_idle_time, min_time_in_queue, + * max_time_in_queue, average_time_in_queue, min_answer_speed, + * max_answer_speed, average_answer_speed, im_min_answer_speed, + * im_max_answer_speed, im_average_answer_speed, min_handle_time, + * max_handle_time, average_handle_time, count_handled_calls, + * min_after_call_worktime, max_after_call_worktime, + * average_after_call_worktime, count_agent_unanswered_calls, + * im_count_agent_unanswered_chats, min_reaction_time, + * max_reaction_time, average_reaction_time, im_min_reaction_time, + * im_max_reaction_time, im_average_reaction_time, + * im_count_abandonment_chats, im_count_lost_chats, im_lost_chats_rate + */ + public RequestSmartQueueHistoryRequest setReportType(MultiArgument d) { + this.reportType = d; + return this; + } + + private String groupBy; + + @RequestField(name="group_by") + /** + * Group the result by **agent** or *queue*. The **agent** grouping is + * allowed only for 1 queue and for the occupancy_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_afterservice_time, sum_agents_dnd_time, + * sum_agents_banned_time, min_handle_time, max_handle_time, + * average_handle_time, count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types. + * The **queue** grouping allowed for the calls_blocked_percentage, + * count_blocked_calls, average_abandonment_rate, + * count_abandonment_calls, service_level, occupancy_rate, + * min_time_in_queue, max_time_in_queue, average_time_in_queue, + * min_answer_speed, max_answer_speed, average_answer_speed, + * min_handle_time, max_handle_time, average_handle_time, + * count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types + */ + public String getGroupBy() { + return this.groupBy; + } + + public boolean hasGroupBy() { + return this.groupBy != null; + } + + /** + * Group the result by **agent** or *queue*. The **agent** grouping is + * allowed only for 1 queue and for the occupancy_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_afterservice_time, sum_agents_dnd_time, + * sum_agents_banned_time, min_handle_time, max_handle_time, + * average_handle_time, count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types. + * The **queue** grouping allowed for the calls_blocked_percentage, + * count_blocked_calls, average_abandonment_rate, + * count_abandonment_calls, service_level, occupancy_rate, + * min_time_in_queue, max_time_in_queue, average_time_in_queue, + * min_answer_speed, max_answer_speed, average_answer_speed, + * min_handle_time, max_handle_time, average_handle_time, + * count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime report types + */ + public RequestSmartQueueHistoryRequest setGroupBy(String d) { + this.groupBy = d; + return this; + } + + private Long maxWaitingSec; + + @RequestField(name="max_waiting_sec") + /** + * Maximum waiting time. Required for the **service_level** report type + */ + public Long getMaxWaitingSec() { + return this.maxWaitingSec; + } + + public boolean hasMaxWaitingSec() { + return this.maxWaitingSec != null; + } + + /** + * Maximum waiting time. Required for the **service_level** report type + */ + public RequestSmartQueueHistoryRequest setMaxWaitingSec(long d) { + this.maxWaitingSec = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (fromDate != null) { + sb.append(aligned) + .append("\"fromDate\": \"") + .append(fromDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (toDate != null) { + sb.append(aligned) + .append("\"toDate\": \"") + .append(toDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (timezone != null) { + sb.append(aligned) + .append("\"timezone\": \"") + .append(timezone) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (interval != null) { + sb.append(aligned) + .append("\"interval\": \"") + .append(interval) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (reportType != null) { + sb.append(aligned) + .append("\"reportType\": \"") + .append(reportType) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (groupBy != null) { + sb.append(aligned) + .append("\"groupBy\": \"") + .append(groupBy) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (maxWaitingSec != null) { + sb.append(aligned) + .append("\"maxWaitingSec\": \"") + .append(maxWaitingSec) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_AddQueueRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_AddQueueRequest.java new file mode 100644 index 0000000..f673659 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_AddQueueRequest.java @@ -0,0 +1,473 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_AddQueueRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to bind to + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to bind to + */ + public SQ_AddQueueRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to bind to. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to bind to. Can be used instead of + * application_id + */ + public SQ_AddQueueRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private String sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * Unique smart queue name within the application, up to 100 characters + */ + public String getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * Unique smart queue name within the application, up to 100 characters + */ + public SQ_AddQueueRequest setSqQueueName(String d) { + this.sqQueueName = d; + return this; + } + + private String callAgentSelection; + + @RequestField(name="call_agent_selection") + /** + * Agent selection strategy for calls. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME" + */ + public String getCallAgentSelection() { + return this.callAgentSelection; + } + + public boolean hasCallAgentSelection() { + return this.callAgentSelection != null; + } + + /** + * Agent selection strategy for calls. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME" + */ + public SQ_AddQueueRequest setCallAgentSelection(String d) { + this.callAgentSelection = d; + return this; + } + + private String imAgentSelection; + + @RequestField(name="im_agent_selection") + /** + * Agent selection strategy for messages. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME". + * Equals to the **call_agent_selection** value by default + */ + public String getImAgentSelection() { + return this.imAgentSelection; + } + + public boolean hasImAgentSelection() { + return this.imAgentSelection != null; + } + + /** + * Agent selection strategy for messages. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME". + * Equals to the **call_agent_selection** value by default + */ + public SQ_AddQueueRequest setImAgentSelection(String d) { + this.imAgentSelection = d; + return this; + } + + private String callTaskSelection; + + @RequestField(name="call_task_selection") + /** + * Strategy of prioritizing CALL-type requests for service. Accepts one + * of the following values: "MAX_PRIORITY", "MAX_WAITING_TIME" + */ + public String getCallTaskSelection() { + return this.callTaskSelection; + } + + public boolean hasCallTaskSelection() { + return this.callTaskSelection != null; + } + + /** + * Strategy of prioritizing CALL-type requests for service. Accepts one + * of the following values: "MAX_PRIORITY", "MAX_WAITING_TIME" + */ + public SQ_AddQueueRequest setCallTaskSelection(String d) { + this.callTaskSelection = d; + return this; + } + + private String imTaskSelection; + + @RequestField(name="im_task_selection") + /** + * Strategy of prioritizing IM-type requests for service. Accepts one of + * the following values: "MAX_PRIORITY", "MAX_WAITING_TIME". Equals to + * the **call_task_selection** value by default + */ + public String getImTaskSelection() { + return this.imTaskSelection; + } + + public boolean hasImTaskSelection() { + return this.imTaskSelection != null; + } + + /** + * Strategy of prioritizing IM-type requests for service. Accepts one of + * the following values: "MAX_PRIORITY", "MAX_WAITING_TIME". Equals to + * the **call_task_selection** value by default + */ + public SQ_AddQueueRequest setImTaskSelection(String d) { + this.imTaskSelection = d; + return this; + } + + private String fallbackAgentSelection; + + @RequestField(name="fallback_agent_selection") + /** + * Agent selection strategy, applied when it is not possible to wait for + * a suitable free agent. Currently not used + */ + public String getFallbackAgentSelection() { + return this.fallbackAgentSelection; + } + + public boolean hasFallbackAgentSelection() { + return this.fallbackAgentSelection != null; + } + + /** + * Agent selection strategy, applied when it is not possible to wait for + * a suitable free agent. Currently not used + */ + public SQ_AddQueueRequest setFallbackAgentSelection(String d) { + this.fallbackAgentSelection = d; + return this; + } + + private String description; + + @RequestField(name="description") + /** + * Comment, up to 200 characters + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * Comment, up to 200 characters + */ + public SQ_AddQueueRequest setDescription(String d) { + this.description = d; + return this; + } + + private Long callMaxWaitingTime; + + @RequestField(name="call_max_waiting_time") + /** + * Maximum time in minutes that a CALL-type request can remain in the + * queue without being assigned to an agent + */ + public Long getCallMaxWaitingTime() { + return this.callMaxWaitingTime; + } + + public boolean hasCallMaxWaitingTime() { + return this.callMaxWaitingTime != null; + } + + /** + * Maximum time in minutes that a CALL-type request can remain in the + * queue without being assigned to an agent + */ + public SQ_AddQueueRequest setCallMaxWaitingTime(long d) { + this.callMaxWaitingTime = Long.valueOf(d); + return this; + } + + private Long imMaxWaitingTime; + + @RequestField(name="im_max_waiting_time") + /** + * Maximum time in minutes that an IM-type request can remain in the + * queue without being assigned to an agent + */ + public Long getImMaxWaitingTime() { + return this.imMaxWaitingTime; + } + + public boolean hasImMaxWaitingTime() { + return this.imMaxWaitingTime != null; + } + + /** + * Maximum time in minutes that an IM-type request can remain in the + * queue without being assigned to an agent + */ + public SQ_AddQueueRequest setImMaxWaitingTime(long d) { + this.imMaxWaitingTime = Long.valueOf(d); + return this; + } + + private Long callMaxQueueSize; + + @RequestField(name="call_max_queue_size") + /** + * Maximum size of the queue with CALL-type requests + */ + public Long getCallMaxQueueSize() { + return this.callMaxQueueSize; + } + + public boolean hasCallMaxQueueSize() { + return this.callMaxQueueSize != null; + } + + /** + * Maximum size of the queue with CALL-type requests + */ + public SQ_AddQueueRequest setCallMaxQueueSize(long d) { + this.callMaxQueueSize = Long.valueOf(d); + return this; + } + + private Long imMaxQueueSize; + + @RequestField(name="im_max_queue_size") + /** + * Maximum size of the queue with IM-type requests + */ + public Long getImMaxQueueSize() { + return this.imMaxQueueSize; + } + + public boolean hasImMaxQueueSize() { + return this.imMaxQueueSize != null; + } + + /** + * Maximum size of the queue with IM-type requests + */ + public SQ_AddQueueRequest setImMaxQueueSize(long d) { + this.imMaxQueueSize = Long.valueOf(d); + return this; + } + + private Long priority; + + @RequestField(name="priority") + /** + * The queue's priority from 1 to 100 + */ + public Long getPriority() { + return this.priority; + } + + public boolean hasPriority() { + return this.priority != null; + } + + /** + * The queue's priority from 1 to 100 + */ + public SQ_AddQueueRequest setPriority(long d) { + this.priority = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callAgentSelection != null) { + sb.append(aligned) + .append("\"callAgentSelection\": \"") + .append(callAgentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imAgentSelection != null) { + sb.append(aligned) + .append("\"imAgentSelection\": \"") + .append(imAgentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callTaskSelection != null) { + sb.append(aligned) + .append("\"callTaskSelection\": \"") + .append(callTaskSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imTaskSelection != null) { + sb.append(aligned) + .append("\"imTaskSelection\": \"") + .append(imTaskSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (fallbackAgentSelection != null) { + sb.append(aligned) + .append("\"fallbackAgentSelection\": \"") + .append(fallbackAgentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callMaxWaitingTime != null) { + sb.append(aligned) + .append("\"callMaxWaitingTime\": \"") + .append(callMaxWaitingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imMaxWaitingTime != null) { + sb.append(aligned) + .append("\"imMaxWaitingTime\": \"") + .append(imMaxWaitingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callMaxQueueSize != null) { + sb.append(aligned) + .append("\"callMaxQueueSize\": \"") + .append(callMaxQueueSize) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imMaxQueueSize != null) { + sb.append(aligned) + .append("\"imMaxQueueSize\": \"") + .append(imMaxQueueSize) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (priority != null) { + sb.append(aligned) + .append("\"priority\": \"") + .append(priority) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_AddSkillRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_AddSkillRequest.java new file mode 100644 index 0000000..6d45549 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_AddSkillRequest.java @@ -0,0 +1,155 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_AddSkillRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to bind to + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to bind to + */ + public SQ_AddSkillRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to bind to. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to bind to. Can be used instead of + * application_id + */ + public SQ_AddSkillRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private String sqSkillName; + + @RequestField(name="sq_skill_name") + /** + * Unique skill name within the application + */ + public String getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + /** + * Unique skill name within the application + */ + public SQ_AddSkillRequest setSqSkillName(String d) { + this.sqSkillName = d; + return this; + } + + private String description; + + @RequestField(name="description") + /** + * Comment, up to 200 characters + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * Comment, up to 200 characters + */ + public SQ_AddSkillRequest setDescription(String d) { + this.description = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_BindAgentRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_BindAgentRequest.java new file mode 100644 index 0000000..7b21b86 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_BindAgentRequest.java @@ -0,0 +1,251 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_BindAgentRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_BindAgentRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_BindAgentRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private String sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * ID of the smart queue. Pass a list of values divided by ; or the + * "all" keyword + */ + public String getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * ID of the smart queue. Pass a list of values divided by ; or the + * "all" keyword + */ + public SQ_BindAgentRequest setSqQueueId(String d) { + this.sqQueueId = d; + return this; + } + + private String sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * Name of the smart queue. Pass a list of names divided by ; or the + * "all" keyword + */ + public String getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * Name of the smart queue. Pass a list of names divided by ; or the + * "all" keyword + */ + public SQ_BindAgentRequest setSqQueueName(String d) { + this.sqQueueName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public SQ_BindAgentRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public SQ_BindAgentRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private SQAgentBindingModes[] bindMode; + + @RequestField(name="bind_mode") + /** + * Binding mode + */ + public SQAgentBindingModes[] getBindMode() { + return this.bindMode; + } + + public boolean hasBindMode() { + return this.bindMode != null; + } + + /** + * Binding mode + */ + public SQ_BindAgentRequest setBindMode(SQAgentBindingModes[] d) { + this.bindMode = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (bindMode != null) { + sb.append(aligned) + .append("\"SQAgentBindingModes\": ") + .append(StringHelper.arrayToString(bindMode, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_BindSkillRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_BindSkillRequest.java new file mode 100644 index 0000000..3d87c2b --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_BindSkillRequest.java @@ -0,0 +1,223 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_BindSkillRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_BindSkillRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_BindSkillRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public SQ_BindSkillRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public SQ_BindSkillRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private Object sqSkills; + + @RequestField(name="sq_skills") + /** + * Skills to be bound to agents in the json array format. The array + * should contain objects with the + * sq_skill_id/sq_skill_name and sq_skill_level + * keys where skill levels range from 1 to 5 + */ + public Object getSqSkills() { + return this.sqSkills; + } + + public boolean hasSqSkills() { + return this.sqSkills != null; + } + + /** + * Skills to be bound to agents in the json array format. The array + * should contain objects with the + * sq_skill_id/sq_skill_name and sq_skill_level + * keys where skill levels range from 1 to 5 + */ + public SQ_BindSkillRequest setSqSkills(Object d) { + this.sqSkills = d; + return this; + } + + private SQSkillBindingModes[] bindMode; + + @RequestField(name="bind_mode") + /** + * Binding mode + */ + public SQSkillBindingModes[] getBindMode() { + return this.bindMode; + } + + public boolean hasBindMode() { + return this.bindMode != null; + } + + /** + * Binding mode + */ + public SQ_BindSkillRequest setBindMode(SQSkillBindingModes[] d) { + this.bindMode = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkills != null) { + sb.append(aligned) + .append("\"sqSkills\": \"") + .append(sqSkills) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (bindMode != null) { + sb.append(aligned) + .append("\"SQSkillBindingModes\": ") + .append(StringHelper.arrayToString(bindMode, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_DelQueueRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_DelQueueRequest.java new file mode 100644 index 0000000..2fa7a88 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_DelQueueRequest.java @@ -0,0 +1,159 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_DelQueueRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_DelQueueRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_DelQueueRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * List of smart queue IDs separated by semicolon (;). Use 'all' to + * delete all the queues + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * List of smart queue IDs separated by semicolon (;). Use 'all' to + * delete all the queues + */ + public SQ_DelQueueRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public SQ_DelQueueRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_DelSkillRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_DelSkillRequest.java new file mode 100644 index 0000000..f09f34f --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_DelSkillRequest.java @@ -0,0 +1,159 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_DelSkillRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_DelSkillRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_DelSkillRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument sqSkillId; + + @RequestField(name="sq_skill_id") + /** + * List of skill IDs separated by semicolon (;). Use 'all' to delete all + * the skills + */ + public MultiArgument getSqSkillId() { + return this.sqSkillId; + } + + public boolean hasSqSkillId() { + return this.sqSkillId != null; + } + + /** + * List of skill IDs separated by semicolon (;). Use 'all' to delete all + * the skills + */ + public SQ_DelSkillRequest setSqSkillId(MultiArgument d) { + this.sqSkillId = d; + return this; + } + + private MultiArgument sqSkillName; + + @RequestField(name="sq_skill_name") + /** + * List of skill names separated by semicolon (;). Can be used instead + * of sq_skill_id + */ + public MultiArgument getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + /** + * List of skill names separated by semicolon (;). Can be used instead + * of sq_skill_id + */ + public SQ_DelSkillRequest setSqSkillName(MultiArgument d) { + this.sqSkillName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillId != null) { + sb.append(aligned) + .append("\"sqSkillId\": \"") + .append(sqSkillId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_DeleteAgentCustomStatusMappingRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_DeleteAgentCustomStatusMappingRequest.java new file mode 100644 index 0000000..c602a56 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_DeleteAgentCustomStatusMappingRequest.java @@ -0,0 +1,93 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_DeleteAgentCustomStatusMappingRequest implements Alignable { + private String sqStatusName; + + @RequestField(name="sq_status_name") + /** + * Status name + */ + public String getSqStatusName() { + return this.sqStatusName; + } + + public boolean hasSqStatusName() { + return this.sqStatusName != null; + } + + /** + * Status name + */ + public SQ_DeleteAgentCustomStatusMappingRequest setSqStatusName(String d) { + this.sqStatusName = d; + return this; + } + + private Long applicationId; + + @RequestField(name="application_id") + /** + * Application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * Application ID + */ + public SQ_DeleteAgentCustomStatusMappingRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqStatusName != null) { + sb.append(aligned) + .append("\"sqStatusName\": \"") + .append(sqStatusName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_GetAgentCustomStatusMappingRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_GetAgentCustomStatusMappingRequest.java new file mode 100644 index 0000000..75441fa --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_GetAgentCustomStatusMappingRequest.java @@ -0,0 +1,63 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_GetAgentCustomStatusMappingRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * Application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * Application ID + */ + public SQ_GetAgentCustomStatusMappingRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_GetAgentsRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_GetAgentsRequest.java new file mode 100644 index 0000000..0455229 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_GetAgentsRequest.java @@ -0,0 +1,569 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_GetAgentsRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_GetAgentsRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_GetAgentsRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * List of smart queue IDs separated by semicolon (;). Use 'all' to + * select all the queues + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * List of smart queue IDs separated by semicolon (;). Use 'all' to + * select all the queues + */ + public SQ_GetAgentsRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public SQ_GetAgentsRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + private Long excludedSqQueueId; + + @RequestField(name="excluded_sq_queue_id") + /** + * ID of the smart queue to exclude + */ + public Long getExcludedSqQueueId() { + return this.excludedSqQueueId; + } + + public boolean hasExcludedSqQueueId() { + return this.excludedSqQueueId != null; + } + + /** + * ID of the smart queue to exclude + */ + public SQ_GetAgentsRequest setExcludedSqQueueId(long d) { + this.excludedSqQueueId = Long.valueOf(d); + return this; + } + + private String excludedSqQueueName; + + @RequestField(name="excluded_sq_queue_name") + /** + * Name of the smart queue to exclude. Can be used instead of + * excluded_sq_queue_id + */ + public String getExcludedSqQueueName() { + return this.excludedSqQueueName; + } + + public boolean hasExcludedSqQueueName() { + return this.excludedSqQueueName != null; + } + + /** + * Name of the smart queue to exclude. Can be used instead of + * excluded_sq_queue_id + */ + public SQ_GetAgentsRequest setExcludedSqQueueName(String d) { + this.excludedSqQueueName = d; + return this; + } + + private Object sqSkills; + + @RequestField(name="sq_skills") + /** + * Skills to filter in the json array format. The array should contain + * objects with the sq_skill_id/sq_skill_name, + * min_sq_skill_level, and max_sq_skill_level keys where + * skill levels range from 1 to 5 + */ + public Object getSqSkills() { + return this.sqSkills; + } + + public boolean hasSqSkills() { + return this.sqSkills != null; + } + + /** + * Skills to filter in the json array format. The array should contain + * objects with the sq_skill_id/sq_skill_name, + * min_sq_skill_level, and max_sq_skill_level keys where + * skill levels range from 1 to 5 + */ + public SQ_GetAgentsRequest setSqSkills(Object d) { + this.sqSkills = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * List of user IDs separated by semicolon (;) + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * List of user IDs separated by semicolon (;) + */ + public SQ_GetAgentsRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public SQ_GetAgentsRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private String userNameTemplate; + + @RequestField(name="user_name_template") + /** + * Substring of the user name to filter + */ + public String getUserNameTemplate() { + return this.userNameTemplate; + } + + public boolean hasUserNameTemplate() { + return this.userNameTemplate != null; + } + + /** + * Substring of the user name to filter + */ + public SQ_GetAgentsRequest setUserNameTemplate(String d) { + this.userNameTemplate = d; + return this; + } + + private Object sqStatuses; + + @RequestField(name="sq_statuses") + /** + * Filter statuses in the json array format. The array should contain + * objects with the sq_status_type and sq_status_name + * keys. Possible values for sq_status_type are 'CALL' and'IM'. + * Possible values for sq_status_name are 'OFFLINE', 'ONLINE', + * 'READY', 'IN_SERVICE', 'AFTER_SERVICE', 'DND' + */ + public Object getSqStatuses() { + return this.sqStatuses; + } + + public boolean hasSqStatuses() { + return this.sqStatuses != null; + } + + /** + * Filter statuses in the json array format. The array should contain + * objects with the sq_status_type and sq_status_name + * keys. Possible values for sq_status_type are 'CALL' and'IM'. + * Possible values for sq_status_name are 'OFFLINE', 'ONLINE', + * 'READY', 'IN_SERVICE', 'AFTER_SERVICE', 'DND' + */ + public SQ_GetAgentsRequest setSqStatuses(Object d) { + this.sqStatuses = d; + return this; + } + + private Boolean withSqSkills; + + @RequestField(name="with_sq_skills") + /** + * Display agent skills + */ + public Boolean getWithSqSkills() { + return this.withSqSkills; + } + + public boolean hasWithSqSkills() { + return this.withSqSkills != null; + } + + /** + * Display agent skills + */ + public SQ_GetAgentsRequest setWithSqSkills(boolean d) { + this.withSqSkills = Boolean.valueOf(d); + return this; + } + + private Boolean withSqQueues; + + @RequestField(name="with_sq_queues") + /** + * Display agent queues + */ + public Boolean getWithSqQueues() { + return this.withSqQueues; + } + + public boolean hasWithSqQueues() { + return this.withSqQueues != null; + } + + /** + * Display agent queues + */ + public SQ_GetAgentsRequest setWithSqQueues(boolean d) { + this.withSqQueues = Boolean.valueOf(d); + return this; + } + + private Boolean withSqStatuses; + + @RequestField(name="with_sq_statuses") + /** + * Display agent current statuses + */ + public Boolean getWithSqStatuses() { + return this.withSqStatuses; + } + + public boolean hasWithSqStatuses() { + return this.withSqStatuses != null; + } + + /** + * Display agent current statuses + */ + public SQ_GetAgentsRequest setWithSqStatuses(boolean d) { + this.withSqStatuses = Boolean.valueOf(d); + return this; + } + + private Long count; + + @RequestField(name="count") + /** + * Number of items to show in the output + */ + public Long getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + + /** + * Number of items to show in the output + */ + public SQ_GetAgentsRequest setCount(long d) { + this.count = Long.valueOf(d); + return this; + } + + private Long offset; + + @RequestField(name="offset") + /** + * Number of items to skip in the output + */ + public Long getOffset() { + return this.offset; + } + + public boolean hasOffset() { + return this.offset != null; + } + + /** + * Number of items to skip in the output + */ + public SQ_GetAgentsRequest setOffset(long d) { + this.offset = Long.valueOf(d); + return this; + } + + private Boolean handleCalls; + + @RequestField(name="handle_calls") + /** + * The agent can handle calls. When set to false, the agent is excluded + * from the CALL-request distribution + */ + public Boolean getHandleCalls() { + return this.handleCalls; + } + + public boolean hasHandleCalls() { + return this.handleCalls != null; + } + + /** + * The agent can handle calls. When set to false, the agent is excluded + * from the CALL-request distribution + */ + public SQ_GetAgentsRequest setHandleCalls(boolean d) { + this.handleCalls = Boolean.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (excludedSqQueueId != null) { + sb.append(aligned) + .append("\"excludedSqQueueId\": \"") + .append(excludedSqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (excludedSqQueueName != null) { + sb.append(aligned) + .append("\"excludedSqQueueName\": \"") + .append(excludedSqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkills != null) { + sb.append(aligned) + .append("\"sqSkills\": \"") + .append(sqSkills) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userNameTemplate != null) { + sb.append(aligned) + .append("\"userNameTemplate\": \"") + .append(userNameTemplate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqStatuses != null) { + sb.append(aligned) + .append("\"sqStatuses\": \"") + .append(sqStatuses) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (withSqSkills != null) { + sb.append(aligned) + .append("\"withSqSkills\": \"") + .append(withSqSkills) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (withSqQueues != null) { + sb.append(aligned) + .append("\"withSqQueues\": \"") + .append(withSqQueues) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (withSqStatuses != null) { + sb.append(aligned) + .append("\"withSqStatuses\": \"") + .append(withSqStatuses) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (count != null) { + sb.append(aligned) + .append("\"count\": \"") + .append(count) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (offset != null) { + sb.append(aligned) + .append("\"offset\": \"") + .append(offset) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (handleCalls != null) { + sb.append(aligned) + .append("\"handleCalls\": \"") + .append(handleCalls) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_GetQueuesRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_GetQueuesRequest.java new file mode 100644 index 0000000..9c20a58 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_GetQueuesRequest.java @@ -0,0 +1,401 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_GetQueuesRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_GetQueuesRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_GetQueuesRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * List of smart queue IDs separated by semicolon (;) + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * List of smart queue IDs separated by semicolon (;) + */ + public SQ_GetQueuesRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public SQ_GetQueuesRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + private String sqQueueNameTemplate; + + @RequestField(name="sq_queue_name_template") + /** + * Substring of the smart queue name to filter + */ + public String getSqQueueNameTemplate() { + return this.sqQueueNameTemplate; + } + + public boolean hasSqQueueNameTemplate() { + return this.sqQueueNameTemplate != null; + } + + /** + * Substring of the smart queue name to filter + */ + public SQ_GetQueuesRequest setSqQueueNameTemplate(String d) { + this.sqQueueNameTemplate = d; + return this; + } + + private Long userId; + + @RequestField(name="user_id") + /** + * ID of the user that is bound to the queue + */ + public Long getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * ID of the user that is bound to the queue + */ + public SQ_GetQueuesRequest setUserId(long d) { + this.userId = Long.valueOf(d); + return this; + } + + private String userName; + + @RequestField(name="user_name") + /** + * Name of the user that is bound to the queue. Can be used instead of + * user_id + */ + public String getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * Name of the user that is bound to the queue. Can be used instead of + * user_id + */ + public SQ_GetQueuesRequest setUserName(String d) { + this.userName = d; + return this; + } + + private Long excludedUserId; + + @RequestField(name="excluded_user_id") + /** + * ID of the user that is not bound to the queue + */ + public Long getExcludedUserId() { + return this.excludedUserId; + } + + public boolean hasExcludedUserId() { + return this.excludedUserId != null; + } + + /** + * ID of the user that is not bound to the queue + */ + public SQ_GetQueuesRequest setExcludedUserId(long d) { + this.excludedUserId = Long.valueOf(d); + return this; + } + + private String excludedUserName; + + @RequestField(name="excluded_user_name") + /** + * Name of the user that is not bound to the queue. Can be used instead + * of excluded_user_id + */ + public String getExcludedUserName() { + return this.excludedUserName; + } + + public boolean hasExcludedUserName() { + return this.excludedUserName != null; + } + + /** + * Name of the user that is not bound to the queue. Can be used instead + * of excluded_user_id + */ + public SQ_GetQueuesRequest setExcludedUserName(String d) { + this.excludedUserName = d; + return this; + } + + private Long count; + + @RequestField(name="count") + /** + * Number of items to show in the output + */ + public Long getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + + /** + * Number of items to show in the output + */ + public SQ_GetQueuesRequest setCount(long d) { + this.count = Long.valueOf(d); + return this; + } + + private Long offset; + + @RequestField(name="offset") + /** + * Number of items to skip in the output + */ + public Long getOffset() { + return this.offset; + } + + public boolean hasOffset() { + return this.offset != null; + } + + /** + * Number of items to skip in the output + */ + public SQ_GetQueuesRequest setOffset(long d) { + this.offset = Long.valueOf(d); + return this; + } + + private Boolean withAgentcount; + + @RequestField(name="with_agentcount") + /** + * Number of agents bound to the queue + */ + public Boolean getWithAgentcount() { + return this.withAgentcount; + } + + public boolean hasWithAgentcount() { + return this.withAgentcount != null; + } + + /** + * Number of agents bound to the queue + */ + public SQ_GetQueuesRequest setWithAgentcount(boolean d) { + this.withAgentcount = Boolean.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueNameTemplate != null) { + sb.append(aligned) + .append("\"sqQueueNameTemplate\": \"") + .append(sqQueueNameTemplate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (excludedUserId != null) { + sb.append(aligned) + .append("\"excludedUserId\": \"") + .append(excludedUserId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (excludedUserName != null) { + sb.append(aligned) + .append("\"excludedUserName\": \"") + .append(excludedUserName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (count != null) { + sb.append(aligned) + .append("\"count\": \"") + .append(count) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (offset != null) { + sb.append(aligned) + .append("\"offset\": \"") + .append(offset) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (withAgentcount != null) { + sb.append(aligned) + .append("\"withAgentcount\": \"") + .append(withAgentcount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_GetSkillsRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_GetSkillsRequest.java new file mode 100644 index 0000000..083b80f --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_GetSkillsRequest.java @@ -0,0 +1,371 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_GetSkillsRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_GetSkillsRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_GetSkillsRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * List of user IDs separated by semicolon (;) + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * List of user IDs separated by semicolon (;) + */ + public SQ_GetSkillsRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public SQ_GetSkillsRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private MultiArgument sqSkillId; + + @RequestField(name="sq_skill_id") + /** + * List of skill IDs separated by semicolon (;) + */ + public MultiArgument getSqSkillId() { + return this.sqSkillId; + } + + public boolean hasSqSkillId() { + return this.sqSkillId != null; + } + + /** + * List of skill IDs separated by semicolon (;) + */ + public SQ_GetSkillsRequest setSqSkillId(MultiArgument d) { + this.sqSkillId = d; + return this; + } + + private MultiArgument sqSkillName; + + @RequestField(name="sq_skill_name") + /** + * List of skill names separated by semicolon (;). Can be used instead + * of sq_skill_id + */ + public MultiArgument getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + /** + * List of skill names separated by semicolon (;). Can be used instead + * of sq_skill_id + */ + public SQ_GetSkillsRequest setSqSkillName(MultiArgument d) { + this.sqSkillName = d; + return this; + } + + private String sqSkillNameTemplate; + + @RequestField(name="sq_skill_name_template") + /** + * Substring of the skill name to filter, case-insensitive + */ + public String getSqSkillNameTemplate() { + return this.sqSkillNameTemplate; + } + + public boolean hasSqSkillNameTemplate() { + return this.sqSkillNameTemplate != null; + } + + /** + * Substring of the skill name to filter, case-insensitive + */ + public SQ_GetSkillsRequest setSqSkillNameTemplate(String d) { + this.sqSkillNameTemplate = d; + return this; + } + + private Long excludedUserId; + + @RequestField(name="excluded_user_id") + /** + * ID of the user that is not bound to the skill + */ + public Long getExcludedUserId() { + return this.excludedUserId; + } + + public boolean hasExcludedUserId() { + return this.excludedUserId != null; + } + + /** + * ID of the user that is not bound to the skill + */ + public SQ_GetSkillsRequest setExcludedUserId(long d) { + this.excludedUserId = Long.valueOf(d); + return this; + } + + private String excludedUserName; + + @RequestField(name="excluded_user_name") + /** + * Name of the user that is not bound to the skill. Can be used instead + * of excluded_user_id + */ + public String getExcludedUserName() { + return this.excludedUserName; + } + + public boolean hasExcludedUserName() { + return this.excludedUserName != null; + } + + /** + * Name of the user that is not bound to the skill. Can be used instead + * of excluded_user_id + */ + public SQ_GetSkillsRequest setExcludedUserName(String d) { + this.excludedUserName = d; + return this; + } + + private Long count; + + @RequestField(name="count") + /** + * Number of items to show in the output + */ + public Long getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + + /** + * Number of items to show in the output + */ + public SQ_GetSkillsRequest setCount(long d) { + this.count = Long.valueOf(d); + return this; + } + + private Long offset; + + @RequestField(name="offset") + /** + * Number of items to skip in the output + */ + public Long getOffset() { + return this.offset; + } + + public boolean hasOffset() { + return this.offset != null; + } + + /** + * Number of items to skip in the output + */ + public SQ_GetSkillsRequest setOffset(long d) { + this.offset = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillId != null) { + sb.append(aligned) + .append("\"sqSkillId\": \"") + .append(sqSkillId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillNameTemplate != null) { + sb.append(aligned) + .append("\"sqSkillNameTemplate\": \"") + .append(sqSkillNameTemplate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (excludedUserId != null) { + sb.append(aligned) + .append("\"excludedUserId\": \"") + .append(excludedUserId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (excludedUserName != null) { + sb.append(aligned) + .append("\"excludedUserName\": \"") + .append(excludedUserName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (count != null) { + sb.append(aligned) + .append("\"count\": \"") + .append(count) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (offset != null) { + sb.append(aligned) + .append("\"offset\": \"") + .append(offset) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_SetAgentCustomStatusMappingRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_SetAgentCustomStatusMappingRequest.java new file mode 100644 index 0000000..f424464 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_SetAgentCustomStatusMappingRequest.java @@ -0,0 +1,123 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_SetAgentCustomStatusMappingRequest implements Alignable { + private String sqStatusName; + + @RequestField(name="sq_status_name") + /** + * Status name + */ + public String getSqStatusName() { + return this.sqStatusName; + } + + public boolean hasSqStatusName() { + return this.sqStatusName != null; + } + + /** + * Status name + */ + public SQ_SetAgentCustomStatusMappingRequest setSqStatusName(String d) { + this.sqStatusName = d; + return this; + } + + private String customStatusName; + + @RequestField(name="custom_status_name") + /** + * Custom status name + */ + public String getCustomStatusName() { + return this.customStatusName; + } + + public boolean hasCustomStatusName() { + return this.customStatusName != null; + } + + /** + * Custom status name + */ + public SQ_SetAgentCustomStatusMappingRequest setCustomStatusName(String d) { + this.customStatusName = d; + return this; + } + + private Long applicationId; + + @RequestField(name="application_id") + /** + * Application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * Application ID + */ + public SQ_SetAgentCustomStatusMappingRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqStatusName != null) { + sb.append(aligned) + .append("\"sqStatusName\": \"") + .append(sqStatusName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (customStatusName != null) { + sb.append(aligned) + .append("\"customStatusName\": \"") + .append(customStatusName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_SetAgentInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_SetAgentInfoRequest.java new file mode 100644 index 0000000..fcfd288 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_SetAgentInfoRequest.java @@ -0,0 +1,221 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_SetAgentInfoRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_SetAgentInfoRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_SetAgentInfoRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public SQ_SetAgentInfoRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public SQ_SetAgentInfoRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private Long maxSimultaneousConversations; + + @RequestField(name="max_simultaneous_conversations") + /** + * Maximum number of chats that the user processes simultaneously + */ + public Long getMaxSimultaneousConversations() { + return this.maxSimultaneousConversations; + } + + public boolean hasMaxSimultaneousConversations() { + return this.maxSimultaneousConversations != null; + } + + /** + * Maximum number of chats that the user processes simultaneously + */ + public SQ_SetAgentInfoRequest setMaxSimultaneousConversations(long d) { + this.maxSimultaneousConversations = Long.valueOf(d); + return this; + } + + private Boolean handleCalls; + + @RequestField(name="handle_calls") + /** + * The agent can handle calls. When set to false, the agent is excluded + * from the CALL-request distribution + */ + public Boolean getHandleCalls() { + return this.handleCalls; + } + + public boolean hasHandleCalls() { + return this.handleCalls != null; + } + + /** + * The agent can handle calls. When set to false, the agent is excluded + * from the CALL-request distribution + */ + public SQ_SetAgentInfoRequest setHandleCalls(boolean d) { + this.handleCalls = Boolean.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (maxSimultaneousConversations != null) { + sb.append(aligned) + .append("\"maxSimultaneousConversations\": \"") + .append(maxSimultaneousConversations) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (handleCalls != null) { + sb.append(aligned) + .append("\"handleCalls\": \"") + .append(handleCalls) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_SetQueueInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_SetQueueInfoRequest.java new file mode 100644 index 0000000..0fe603d --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_SetQueueInfoRequest.java @@ -0,0 +1,535 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_SetQueueInfoRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_SetQueueInfoRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_SetQueueInfoRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private Long sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * ID of the smart queue to search for + */ + public Long getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * ID of the smart queue to search for + */ + public SQ_SetQueueInfoRequest setSqQueueId(long d) { + this.sqQueueId = Long.valueOf(d); + return this; + } + + private String sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * Name of the smart queue to search for. Can be used instead of + * sq_queue_id + */ + public String getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * Name of the smart queue to search for. Can be used instead of + * sq_queue_id + */ + public SQ_SetQueueInfoRequest setSqQueueName(String d) { + this.sqQueueName = d; + return this; + } + + private String newSqQueueName; + + @RequestField(name="new_sq_queue_name") + /** + * New smart queue name within the application, up to 100 characters + */ + public String getNewSqQueueName() { + return this.newSqQueueName; + } + + public boolean hasNewSqQueueName() { + return this.newSqQueueName != null; + } + + /** + * New smart queue name within the application, up to 100 characters + */ + public SQ_SetQueueInfoRequest setNewSqQueueName(String d) { + this.newSqQueueName = d; + return this; + } + + private String callAgentSelection; + + @RequestField(name="call_agent_selection") + /** + * Agent selection strategy for calls. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME" + */ + public String getCallAgentSelection() { + return this.callAgentSelection; + } + + public boolean hasCallAgentSelection() { + return this.callAgentSelection != null; + } + + /** + * Agent selection strategy for calls. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME" + */ + public SQ_SetQueueInfoRequest setCallAgentSelection(String d) { + this.callAgentSelection = d; + return this; + } + + private String imAgentSelection; + + @RequestField(name="im_agent_selection") + /** + * Agent selection strategy for messages. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME". + * Equals to the **call_agent_selection** value by default + */ + public String getImAgentSelection() { + return this.imAgentSelection; + } + + public boolean hasImAgentSelection() { + return this.imAgentSelection != null; + } + + /** + * Agent selection strategy for messages. Accepts one of the following + * values: "MOST_QUALIFIED", "LEAST_QUALIFIED", "MAX_WAITING_TIME". + * Equals to the **call_agent_selection** value by default + */ + public SQ_SetQueueInfoRequest setImAgentSelection(String d) { + this.imAgentSelection = d; + return this; + } + + private String callTaskSelection; + + @RequestField(name="call_task_selection") + /** + * Strategy of prioritizing CALL-type requests for service. Accepts one + * of the following values: "MAX_PRIORITY", "MAX_WAITING_TIME" + */ + public String getCallTaskSelection() { + return this.callTaskSelection; + } + + public boolean hasCallTaskSelection() { + return this.callTaskSelection != null; + } + + /** + * Strategy of prioritizing CALL-type requests for service. Accepts one + * of the following values: "MAX_PRIORITY", "MAX_WAITING_TIME" + */ + public SQ_SetQueueInfoRequest setCallTaskSelection(String d) { + this.callTaskSelection = d; + return this; + } + + private String imTaskSelection; + + @RequestField(name="im_task_selection") + /** + * Strategy of prioritizing IM-type requests for service. Accepts one of + * the following values: "MAX_PRIORITY", "MAX_WAITING_TIME". Equals to + * the **call_task_selection** value by default + */ + public String getImTaskSelection() { + return this.imTaskSelection; + } + + public boolean hasImTaskSelection() { + return this.imTaskSelection != null; + } + + /** + * Strategy of prioritizing IM-type requests for service. Accepts one of + * the following values: "MAX_PRIORITY", "MAX_WAITING_TIME". Equals to + * the **call_task_selection** value by default + */ + public SQ_SetQueueInfoRequest setImTaskSelection(String d) { + this.imTaskSelection = d; + return this; + } + + private String fallbackAgentSelection; + + @RequestField(name="fallback_agent_selection") + /** + * Agent selection strategy, applied when it is not possible to wait for + * a suitable free agent. Currently not used + */ + public String getFallbackAgentSelection() { + return this.fallbackAgentSelection; + } + + public boolean hasFallbackAgentSelection() { + return this.fallbackAgentSelection != null; + } + + /** + * Agent selection strategy, applied when it is not possible to wait for + * a suitable free agent. Currently not used + */ + public SQ_SetQueueInfoRequest setFallbackAgentSelection(String d) { + this.fallbackAgentSelection = d; + return this; + } + + private String description; + + @RequestField(name="description") + /** + * Comment, up to 200 characters + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * Comment, up to 200 characters + */ + public SQ_SetQueueInfoRequest setDescription(String d) { + this.description = d; + return this; + } + + private Long callMaxWaitingTime; + + @RequestField(name="call_max_waiting_time") + /** + * Maximum time in minutes that a CALL-type request can remain in the + * queue without being assigned to an agent + */ + public Long getCallMaxWaitingTime() { + return this.callMaxWaitingTime; + } + + public boolean hasCallMaxWaitingTime() { + return this.callMaxWaitingTime != null; + } + + /** + * Maximum time in minutes that a CALL-type request can remain in the + * queue without being assigned to an agent + */ + public SQ_SetQueueInfoRequest setCallMaxWaitingTime(long d) { + this.callMaxWaitingTime = Long.valueOf(d); + return this; + } + + private Long imMaxWaitingTime; + + @RequestField(name="im_max_waiting_time") + /** + * Maximum time in minutes that an IM-type request can remain in the + * queue without being assigned to an agent + */ + public Long getImMaxWaitingTime() { + return this.imMaxWaitingTime; + } + + public boolean hasImMaxWaitingTime() { + return this.imMaxWaitingTime != null; + } + + /** + * Maximum time in minutes that an IM-type request can remain in the + * queue without being assigned to an agent + */ + public SQ_SetQueueInfoRequest setImMaxWaitingTime(long d) { + this.imMaxWaitingTime = Long.valueOf(d); + return this; + } + + private Long callMaxQueueSize; + + @RequestField(name="call_max_queue_size") + /** + * Maximum size of the queue with CALL-type requests + */ + public Long getCallMaxQueueSize() { + return this.callMaxQueueSize; + } + + public boolean hasCallMaxQueueSize() { + return this.callMaxQueueSize != null; + } + + /** + * Maximum size of the queue with CALL-type requests + */ + public SQ_SetQueueInfoRequest setCallMaxQueueSize(long d) { + this.callMaxQueueSize = Long.valueOf(d); + return this; + } + + private Long imMaxQueueSize; + + @RequestField(name="im_max_queue_size") + /** + * Maximum size of the queue with IM-type requests + */ + public Long getImMaxQueueSize() { + return this.imMaxQueueSize; + } + + public boolean hasImMaxQueueSize() { + return this.imMaxQueueSize != null; + } + + /** + * Maximum size of the queue with IM-type requests + */ + public SQ_SetQueueInfoRequest setImMaxQueueSize(long d) { + this.imMaxQueueSize = Long.valueOf(d); + return this; + } + + private Long priority; + + @RequestField(name="priority") + /** + * The queue's priority from 1 to 100 + */ + public Long getPriority() { + return this.priority; + } + + public boolean hasPriority() { + return this.priority != null; + } + + /** + * The queue's priority from 1 to 100 + */ + public SQ_SetQueueInfoRequest setPriority(long d) { + this.priority = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (newSqQueueName != null) { + sb.append(aligned) + .append("\"newSqQueueName\": \"") + .append(newSqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callAgentSelection != null) { + sb.append(aligned) + .append("\"callAgentSelection\": \"") + .append(callAgentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imAgentSelection != null) { + sb.append(aligned) + .append("\"imAgentSelection\": \"") + .append(imAgentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callTaskSelection != null) { + sb.append(aligned) + .append("\"callTaskSelection\": \"") + .append(callTaskSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imTaskSelection != null) { + sb.append(aligned) + .append("\"imTaskSelection\": \"") + .append(imTaskSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (fallbackAgentSelection != null) { + sb.append(aligned) + .append("\"fallbackAgentSelection\": \"") + .append(fallbackAgentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callMaxWaitingTime != null) { + sb.append(aligned) + .append("\"callMaxWaitingTime\": \"") + .append(callMaxWaitingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imMaxWaitingTime != null) { + sb.append(aligned) + .append("\"imMaxWaitingTime\": \"") + .append(imMaxWaitingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callMaxQueueSize != null) { + sb.append(aligned) + .append("\"callMaxQueueSize\": \"") + .append(callMaxQueueSize) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imMaxQueueSize != null) { + sb.append(aligned) + .append("\"imMaxQueueSize\": \"") + .append(imMaxQueueSize) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (priority != null) { + sb.append(aligned) + .append("\"priority\": \"") + .append(priority) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_SetSkillInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_SetSkillInfoRequest.java new file mode 100644 index 0000000..66a8443 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_SetSkillInfoRequest.java @@ -0,0 +1,215 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_SetSkillInfoRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_SetSkillInfoRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_SetSkillInfoRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private Long sqSkillId; + + @RequestField(name="sq_skill_id") + /** + * ID of the skill + */ + public Long getSqSkillId() { + return this.sqSkillId; + } + + public boolean hasSqSkillId() { + return this.sqSkillId != null; + } + + /** + * ID of the skill + */ + public SQ_SetSkillInfoRequest setSqSkillId(long d) { + this.sqSkillId = Long.valueOf(d); + return this; + } + + private String sqSkillName; + + @RequestField(name="sq_skill_name") + /** + * Name of the skill. Can be used instead of sq_skill_id + */ + public String getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + /** + * Name of the skill. Can be used instead of sq_skill_id + */ + public SQ_SetSkillInfoRequest setSqSkillName(String d) { + this.sqSkillName = d; + return this; + } + + private String newSqSkillName; + + @RequestField(name="new_sq_skill_name") + /** + * New unique skill name within the application + */ + public String getNewSqSkillName() { + return this.newSqSkillName; + } + + public boolean hasNewSqSkillName() { + return this.newSqSkillName != null; + } + + /** + * New unique skill name within the application + */ + public SQ_SetSkillInfoRequest setNewSqSkillName(String d) { + this.newSqSkillName = d; + return this; + } + + private String description; + + @RequestField(name="description") + /** + * Comment, up to 200 characters + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * Comment, up to 200 characters + */ + public SQ_SetSkillInfoRequest setDescription(String d) { + this.description = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillId != null) { + sb.append(aligned) + .append("\"sqSkillId\": \"") + .append(sqSkillId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (newSqSkillName != null) { + sb.append(aligned) + .append("\"newSqSkillName\": \"") + .append(newSqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_UnbindAgentRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_UnbindAgentRequest.java new file mode 100644 index 0000000..59d6e76 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_UnbindAgentRequest.java @@ -0,0 +1,223 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_UnbindAgentRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_UnbindAgentRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_UnbindAgentRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument sqQueueId; + + @RequestField(name="sq_queue_id") + /** + * List of smart queue IDs separated by semicolon (;). Use 'all' to + * select all the queues + */ + public MultiArgument getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + /** + * List of smart queue IDs separated by semicolon (;). Use 'all' to + * select all the queues + */ + public SQ_UnbindAgentRequest setSqQueueId(MultiArgument d) { + this.sqQueueId = d; + return this; + } + + private MultiArgument sqQueueName; + + @RequestField(name="sq_queue_name") + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public MultiArgument getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + /** + * List of smart queue names separated by semicolon (;). Can be used + * instead of sq_queue_id + */ + public SQ_UnbindAgentRequest setSqQueueName(MultiArgument d) { + this.sqQueueName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public SQ_UnbindAgentRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public SQ_UnbindAgentRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SQ_UnbindSkillRequest.java b/src/main/java/com/voximplant/apiclient/request/SQ_UnbindSkillRequest.java new file mode 100644 index 0000000..0aebf78 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SQ_UnbindSkillRequest.java @@ -0,0 +1,223 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SQ_UnbindSkillRequest implements Alignable { + private Long applicationId; + + @RequestField(name="application_id") + /** + * ID of the application to search by + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * ID of the application to search by + */ + public SQ_UnbindSkillRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * Name of the application to search by. Can be used instead of + * application_id + */ + public SQ_UnbindSkillRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private MultiArgument userId; + + @RequestField(name="user_id") + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public MultiArgument getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + /** + * List of user IDs separated by semicolon (;). Use 'all' to select all + * the users + */ + public SQ_UnbindSkillRequest setUserId(MultiArgument d) { + this.userId = d; + return this; + } + + private MultiArgument userName; + + @RequestField(name="user_name") + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public MultiArgument getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + /** + * List of user names separated by semicolon (;). Can be used instead of + * user_id + */ + public SQ_UnbindSkillRequest setUserName(MultiArgument d) { + this.userName = d; + return this; + } + + private MultiArgument sqSkillId; + + @RequestField(name="sq_skill_id") + /** + * List of skill IDs separated by semicolon (;). Use 'all' to undbind + * all the skills + */ + public MultiArgument getSqSkillId() { + return this.sqSkillId; + } + + public boolean hasSqSkillId() { + return this.sqSkillId != null; + } + + /** + * List of skill IDs separated by semicolon (;). Use 'all' to undbind + * all the skills + */ + public SQ_UnbindSkillRequest setSqSkillId(MultiArgument d) { + this.sqSkillId = d; + return this; + } + + private MultiArgument sqSkillName; + + @RequestField(name="sq_skill_name") + /** + * List of skill names separated by semicolon (;). Can be used instead + * of sq_skill_id + */ + public MultiArgument getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + /** + * List of skill names separated by semicolon (;). Can be used instead + * of sq_skill_id + */ + public SQ_UnbindSkillRequest setSqSkillName(MultiArgument d) { + this.sqSkillName = d; + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillId != null) { + sb.append(aligned) + .append("\"sqSkillId\": \"") + .append(sqSkillId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SendSmsMessageRequest.java b/src/main/java/com/voximplant/apiclient/request/SendSmsMessageRequest.java index e27f1c7..0c32a8b 100644 --- a/src/main/java/com/voximplant/apiclient/request/SendSmsMessageRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SendSmsMessageRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SendSmsMessageRequest implements Alignable { @RequestField(name="source") /** - * The source phone number. + * The source phone number */ public String getSource() { return this.source; @@ -29,7 +30,7 @@ public boolean hasSource() { } /** - * The source phone number. + * The source phone number */ public SendSmsMessageRequest setSource(String d) { this.source = d; @@ -40,7 +41,7 @@ public SendSmsMessageRequest setSource(String d) { @RequestField(name="destination") /** - * The destination phone number. + * The destination phone number */ public String getDestination() { return this.destination; @@ -51,7 +52,7 @@ public boolean hasDestination() { } /** - * The destination phone number. + * The destination phone number */ public SendSmsMessageRequest setDestination(String d) { this.destination = d; @@ -62,9 +63,9 @@ public SendSmsMessageRequest setDestination(String d) { @RequestField(name="sms_body") /** - * The message text, up to 70 characters. The message of 71-140 - * characters is billed like 2 messages; the message of 141-210 - * characters is billed like 3 messages and so on. + * The message text, up to 765 characters. We split long messages + * greater than 160 GSM-7 characters or 70 UTF-16 characters into + * multiple segments. Each segment is charged as one message */ public String getSmsBody() { return this.smsBody; @@ -75,15 +76,37 @@ public boolean hasSmsBody() { } /** - * The message text, up to 70 characters. The message of 71-140 - * characters is billed like 2 messages; the message of 141-210 - * characters is billed like 3 messages and so on. + * The message text, up to 765 characters. We split long messages + * greater than 160 GSM-7 characters or 70 UTF-16 characters into + * multiple segments. Each segment is charged as one message */ public SendSmsMessageRequest setSmsBody(String d) { this.smsBody = d; return this; } + private Boolean storeBody; + + @RequestField(name="store_body") + /** + * Set to true to store outbound message texts. Default value is false + */ + public Boolean getStoreBody() { + return this.storeBody; + } + + public boolean hasStoreBody() { + return this.storeBody != null; + } + + /** + * Set to true to store outbound message texts. Default value is false + */ + public SendSmsMessageRequest setStoreBody(boolean d) { + this.storeBody = Boolean.valueOf(d); + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -117,6 +140,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (storeBody != null) { + sb.append(aligned) + .append("\"storeBody\": \"") + .append(storeBody) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/SetAccountInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetAccountInfoRequest.java index 12ef7d9..6851c2c 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetAccountInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetAccountInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -17,7 +18,10 @@ public class SetAccountInfoRequest implements Alignable { private String newAccountEmail; @RequestField(name="new_account_email") - public String getNewAccountEmail() { + /** + * The new account email + */ + public String getNewAccountEmail() { return this.newAccountEmail; } @@ -25,6 +29,9 @@ public boolean hasNewAccountEmail() { return this.newAccountEmail != null; } + /** + * The new account email + */ public SetAccountInfoRequest setNewAccountEmail(String d) { this.newAccountEmail = d; return this; @@ -34,7 +41,9 @@ public SetAccountInfoRequest setNewAccountEmail(String d) { @RequestField(name="new_account_password") /** - * The password length must be at least 6 symbols. + * The new account password. Must be at least 8 characters long and + * contain at least one uppercase and lowercase letter, one number, and + * one special character */ public String getNewAccountPassword() { return this.newAccountPassword; @@ -45,7 +54,9 @@ public boolean hasNewAccountPassword() { } /** - * The password length must be at least 6 symbols. + * The new account password. Must be at least 8 characters long and + * contain at least one uppercase and lowercase letter, one number, and + * one special character */ public SetAccountInfoRequest setNewAccountPassword(String d) { this.newAccountPassword = d; @@ -164,7 +175,7 @@ public SetAccountInfoRequest setLocation(String d) { @RequestField(name="account_first_name") /** - * The first name. + * The first name */ public String getAccountFirstName() { return this.accountFirstName; @@ -175,7 +186,7 @@ public boolean hasAccountFirstName() { } /** - * The first name. + * The first name */ public SetAccountInfoRequest setAccountFirstName(String d) { this.accountFirstName = d; @@ -186,7 +197,7 @@ public SetAccountInfoRequest setAccountFirstName(String d) { @RequestField(name="account_last_name") /** - * The last name. + * The last name */ public String getAccountLastName() { return this.accountLastName; @@ -197,7 +208,7 @@ public boolean hasAccountLastName() { } /** - * The last name. + * The last name */ public SetAccountInfoRequest setAccountLastName(String d) { this.accountLastName = d; @@ -208,7 +219,7 @@ public SetAccountInfoRequest setAccountLastName(String d) { @RequestField(name="mobile_phone") /** - * The mobile phone linked to the account. + * The mobile phone linked to the account */ public String getMobilePhone() { return this.mobilePhone; @@ -219,7 +230,7 @@ public boolean hasMobilePhone() { } /** - * The mobile phone linked to the account. + * The mobile phone linked to the account */ public SetAccountInfoRequest setMobilePhone(String d) { this.mobilePhone = d; @@ -230,7 +241,7 @@ public SetAccountInfoRequest setMobilePhone(String d) { @RequestField(name="min_balance_to_notify") /** - * The min balance value to notify by email or SMS. + * The min balance value to notify by email or SMS */ public BigDecimal getMinBalanceToNotify() { return this.minBalanceToNotify; @@ -241,7 +252,7 @@ public boolean hasMinBalanceToNotify() { } /** - * The min balance value to notify by email or SMS. + * The min balance value to notify by email or SMS */ public SetAccountInfoRequest setMinBalanceToNotify(BigDecimal d) { this.minBalanceToNotify = d; @@ -252,7 +263,7 @@ public SetAccountInfoRequest setMinBalanceToNotify(BigDecimal d) { @RequestField(name="account_notifications") /** - * Are the Voximplant notifications required? + * Voximplant notifications are required */ public Boolean getAccountNotifications() { return this.accountNotifications; @@ -263,7 +274,7 @@ public boolean hasAccountNotifications() { } /** - * Are the Voximplant notifications required? + * Voximplant notifications are required */ public SetAccountInfoRequest setAccountNotifications(boolean d) { this.accountNotifications = Boolean.valueOf(d); @@ -274,7 +285,7 @@ public SetAccountInfoRequest setAccountNotifications(boolean d) { @RequestField(name="tariff_changing_notifications") /** - * Set to true to receive the emails about the Voximplant plan changing. + * Set to true to receive the emails about the Voximplant plan changing */ public Boolean getTariffChangingNotifications() { return this.tariffChangingNotifications; @@ -285,7 +296,7 @@ public boolean hasTariffChangingNotifications() { } /** - * Set to true to receive the emails about the Voximplant plan changing. + * Set to true to receive the emails about the Voximplant plan changing */ public SetAccountInfoRequest setTariffChangingNotifications(boolean d) { this.tariffChangingNotifications = Boolean.valueOf(d); @@ -296,7 +307,7 @@ public SetAccountInfoRequest setTariffChangingNotifications(boolean d) { @RequestField(name="news_notifications") /** - * Set to true to receive the emails about the Voximplant news. + * Set to true to receive the emails about the Voximplant news */ public Boolean getNewsNotifications() { return this.newsNotifications; @@ -307,7 +318,7 @@ public boolean hasNewsNotifications() { } /** - * Set to true to receive the emails about the Voximplant news. + * Set to true to receive the emails about the Voximplant news */ public SetAccountInfoRequest setNewsNotifications(boolean d) { this.newsNotifications = Boolean.valueOf(d); @@ -318,7 +329,7 @@ public SetAccountInfoRequest setNewsNotifications(boolean d) { @RequestField(name="send_js_error") /** - * Set to true to receive the emails about a JS scenario error. + * Set to true to receive the emails about a JS scenario error */ public Boolean getSendJsError() { return this.sendJsError; @@ -329,7 +340,7 @@ public boolean hasSendJsError() { } /** - * Set to true to receive the emails about a JS scenario error. + * Set to true to receive the emails about a JS scenario error */ public SetAccountInfoRequest setSendJsError(boolean d) { this.sendJsError = Boolean.valueOf(d); @@ -340,7 +351,7 @@ public SetAccountInfoRequest setSendJsError(boolean d) { @RequestField(name="billing_address_name") /** - * The company or businessman name. + * The company or businessman name */ public String getBillingAddressName() { return this.billingAddressName; @@ -351,7 +362,7 @@ public boolean hasBillingAddressName() { } /** - * The company or businessman name. + * The company or businessman name */ public SetAccountInfoRequest setBillingAddressName(String d) { this.billingAddressName = d; @@ -496,7 +507,8 @@ public SetAccountInfoRequest setBillingAddressCountryCode(String d) { @RequestField(name="billing_address_address") /** - * The office address. + * The valid address that needs to be specified to pay for any services. + * It can't be deleted later, only changed */ public String getBillingAddressAddress() { return this.billingAddressAddress; @@ -507,7 +519,8 @@ public boolean hasBillingAddressAddress() { } /** - * The office address. + * The valid address that needs to be specified to pay for any services. + * It can't be deleted later, only changed */ public SetAccountInfoRequest setBillingAddressAddress(String d) { this.billingAddressAddress = d; @@ -518,7 +531,7 @@ public SetAccountInfoRequest setBillingAddressAddress(String d) { @RequestField(name="billing_address_zip") /** - * The office ZIP. + * The office ZIP */ public String getBillingAddressZip() { return this.billingAddressZip; @@ -529,7 +542,7 @@ public boolean hasBillingAddressZip() { } /** - * The office ZIP. + * The office ZIP */ public SetAccountInfoRequest setBillingAddressZip(String d) { this.billingAddressZip = d; @@ -540,7 +553,7 @@ public SetAccountInfoRequest setBillingAddressZip(String d) { @RequestField(name="billing_address_phone") /** - * The office phone number. + * The office phone number */ public String getBillingAddressPhone() { return this.billingAddressPhone; @@ -551,7 +564,7 @@ public boolean hasBillingAddressPhone() { } /** - * The office phone number. + * The office phone number */ public SetAccountInfoRequest setBillingAddressPhone(String d) { this.billingAddressPhone = d; @@ -562,7 +575,7 @@ public SetAccountInfoRequest setBillingAddressPhone(String d) { @RequestField(name="account_custom_data") /** - * The custom data. + * The custom data */ public String getAccountCustomData() { return this.accountCustomData; @@ -573,7 +586,7 @@ public boolean hasAccountCustomData() { } /** - * The custom data. + * The custom data */ public SetAccountInfoRequest setAccountCustomData(String d) { this.accountCustomData = d; @@ -640,6 +653,50 @@ public SetAccountInfoRequest setCallbackSalt(String d) { return this; } + private Boolean storeOutboundSms; + + @RequestField(name="store_outbound_sms") + /** + * Set to true to store outbound message texts. Default value is false + */ + public Boolean getStoreOutboundSms() { + return this.storeOutboundSms; + } + + public boolean hasStoreOutboundSms() { + return this.storeOutboundSms != null; + } + + /** + * Set to true to store outbound message texts. Default value is false + */ + public SetAccountInfoRequest setStoreOutboundSms(boolean d) { + this.storeOutboundSms = Boolean.valueOf(d); + return this; + } + + private Boolean storeInboundSms; + + @RequestField(name="store_inbound_sms") + /** + * Set to true to store inbound message texts. Default value is false + */ + public Boolean getStoreInboundSms() { + return this.storeInboundSms; + } + + public boolean hasStoreInboundSms() { + return this.storeInboundSms != null; + } + + /** + * Set to true to store inbound message texts. Default value is false + */ + public SetAccountInfoRequest setStoreInboundSms(boolean d) { + this.storeInboundSms = Boolean.valueOf(d); + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -809,6 +866,22 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (storeOutboundSms != null) { + sb.append(aligned) + .append("\"storeOutboundSms\": \"") + .append(storeOutboundSms) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (storeInboundSms != null) { + sb.append(aligned) + .append("\"storeInboundSms\": \"") + .append(storeInboundSms) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/SetAdminRoleInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetAdminRoleInfoRequest.java index 6af772d..dce689f 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetAdminRoleInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetAdminRoleInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetAdminRoleInfoRequest implements Alignable { @RequestField(name="admin_role_id") /** - * The admin role to edit. + * The admin role to edit */ public Long getAdminRoleId() { return this.adminRoleId; @@ -29,7 +30,7 @@ public boolean hasAdminRoleId() { } /** - * The admin role to edit. + * The admin role to edit */ public SetAdminRoleInfoRequest setAdminRoleId(long d) { this.adminRoleId = Long.valueOf(d); @@ -40,7 +41,7 @@ public SetAdminRoleInfoRequest setAdminRoleId(long d) { @RequestField(name="admin_role_name") /** - * The admin role to edit, can be used instead of admin_role_id. + * The admin role to edit, can be used instead of admin_role_id */ public String getAdminRoleName() { return this.adminRoleName; @@ -51,7 +52,7 @@ public boolean hasAdminRoleName() { } /** - * The admin role to edit, can be used instead of admin_role_id. + * The admin role to edit, can be used instead of admin_role_id */ public SetAdminRoleInfoRequest setAdminRoleName(String d) { this.adminRoleName = d; @@ -62,7 +63,7 @@ public SetAdminRoleInfoRequest setAdminRoleName(String d) { @RequestField(name="new_admin_role_name") /** - * The new admin role name. The length must be less than 50. + * The new admin role name. The length must be less than 50 */ public String getNewAdminRoleName() { return this.newAdminRoleName; @@ -73,7 +74,7 @@ public boolean hasNewAdminRoleName() { } /** - * The new admin role name. The length must be less than 50. + * The new admin role name. The length must be less than 50 */ public SetAdminRoleInfoRequest setNewAdminRoleName(String d) { this.newAdminRoleName = d; @@ -85,7 +86,7 @@ public SetAdminRoleInfoRequest setNewAdminRoleName(String d) { @RequestField(name="admin_role_active") /** * The admin role enable flag. If false the allowed and denied entries - * have no affect. + * have no affect */ public Boolean getAdminRoleActive() { return this.adminRoleActive; @@ -97,7 +98,7 @@ public boolean hasAdminRoleActive() { /** * The admin role enable flag. If false the allowed and denied entries - * have no affect. + * have no affect */ public SetAdminRoleInfoRequest setAdminRoleActive(boolean d) { this.adminRoleActive = Boolean.valueOf(d); @@ -109,7 +110,7 @@ public SetAdminRoleInfoRequest setAdminRoleActive(boolean d) { @RequestField(name="entry_modification_mode") /** * The modification mode of the permission lists (allowed_entries and - * denied_entries). The following values are possible: add, del, set. + * denied_entries). The following values are possible: add, del, set */ public String getEntryModificationMode() { return this.entryModificationMode; @@ -121,7 +122,7 @@ public boolean hasEntryModificationMode() { /** * The modification mode of the permission lists (allowed_entries and - * denied_entries). The following values are possible: add, del, set. + * denied_entries). The following values are possible: add, del, set */ public SetAdminRoleInfoRequest setEntryModificationMode(String d) { this.entryModificationMode = d; @@ -132,8 +133,8 @@ public SetAdminRoleInfoRequest setEntryModificationMode(String d) { @RequestField(name="allowed_entries") /** - * The list of allowed access entry changes separated by the ';' symbol - * (the API function names). + * The list of allowed access entry changes separated by semicolon (;) + * (the API function names) */ public MultiArgument getAllowedEntries() { return this.allowedEntries; @@ -144,8 +145,8 @@ public boolean hasAllowedEntries() { } /** - * The list of allowed access entry changes separated by the ';' symbol - * (the API function names). + * The list of allowed access entry changes separated by semicolon (;) + * (the API function names) */ public SetAdminRoleInfoRequest setAllowedEntries(MultiArgument d) { this.allowedEntries = d; @@ -156,8 +157,8 @@ public SetAdminRoleInfoRequest setAllowedEntries(MultiArgument d) { @RequestField(name="denied_entries") /** - * The list of denied access entry changes separated by the ';' symbol - * (the API function names). + * The list of denied access entry changes separated by semicolon (;) + * (the API function names) */ public MultiArgument getDeniedEntries() { return this.deniedEntries; @@ -168,8 +169,8 @@ public boolean hasDeniedEntries() { } /** - * The list of denied access entry changes separated by the ';' symbol - * (the API function names). + * The list of denied access entry changes separated by semicolon (;) + * (the API function names) */ public SetAdminRoleInfoRequest setDeniedEntries(MultiArgument d) { this.deniedEntries = d; @@ -180,9 +181,9 @@ public SetAdminRoleInfoRequest setDeniedEntries(MultiArgument d) { @RequestField(name="like_admin_role_id") /** - * The admin role ID list separated by the ';' symbol or the 'all' - * value. The list specifies the roles from which the allowed_entries - * and denied_entries will be merged. + * The admin role ID list separated by semicolon (;). Use the 'all' + * value to select all admin roles. The list specifies the roles from + * which the allowed_entries and denied_entries will be merged */ public MultiArgument getLikeAdminRoleId() { return this.likeAdminRoleId; @@ -193,9 +194,9 @@ public boolean hasLikeAdminRoleId() { } /** - * The admin role ID list separated by the ';' symbol or the 'all' - * value. The list specifies the roles from which the allowed_entries - * and denied_entries will be merged. + * The admin role ID list separated by semicolon (;). Use the 'all' + * value to select all admin roles. The list specifies the roles from + * which the allowed_entries and denied_entries will be merged */ public SetAdminRoleInfoRequest setLikeAdminRoleId(MultiArgument d) { this.likeAdminRoleId = d; @@ -208,7 +209,7 @@ public SetAdminRoleInfoRequest setLikeAdminRoleId(MultiArgument d) { /** * The admin role name, can be used instead of * like_admin_role_id. The name specifies a role from which the - * allowed_entries and denied_entries will be merged. + * allowed_entries and denied_entries will be merged */ public MultiArgument getLikeAdminRoleName() { return this.likeAdminRoleName; @@ -221,7 +222,7 @@ public boolean hasLikeAdminRoleName() { /** * The admin role name, can be used instead of * like_admin_role_id. The name specifies a role from which the - * allowed_entries and denied_entries will be merged. + * allowed_entries and denied_entries will be merged */ public SetAdminRoleInfoRequest setLikeAdminRoleName(MultiArgument d) { this.likeAdminRoleName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetAdminUserInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetAdminUserInfoRequest.java index 837b359..49d7dab 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetAdminUserInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetAdminUserInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetAdminUserInfoRequest implements Alignable { @RequestField(name="required_admin_user_id") /** - * The admin user to edit. + * The admin user to edit */ public Long getRequiredAdminUserId() { return this.requiredAdminUserId; @@ -29,7 +30,7 @@ public boolean hasRequiredAdminUserId() { } /** - * The admin user to edit. + * The admin user to edit */ public SetAdminUserInfoRequest setRequiredAdminUserId(long d) { this.requiredAdminUserId = Long.valueOf(d); @@ -41,7 +42,7 @@ public SetAdminUserInfoRequest setRequiredAdminUserId(long d) { @RequestField(name="required_admin_user_name") /** * The admin user to edit, can be used instead of - * required_admin_user_id. + * required_admin_user_id */ public String getRequiredAdminUserName() { return this.requiredAdminUserName; @@ -53,7 +54,7 @@ public boolean hasRequiredAdminUserName() { /** * The admin user to edit, can be used instead of - * required_admin_user_id. + * required_admin_user_id */ public SetAdminUserInfoRequest setRequiredAdminUserName(String d) { this.requiredAdminUserName = d; @@ -64,7 +65,7 @@ public SetAdminUserInfoRequest setRequiredAdminUserName(String d) { @RequestField(name="new_admin_user_name") /** - * The new admin user name. The length must be less than 50. + * The new admin user name. The length must be less than 50 */ public String getNewAdminUserName() { return this.newAdminUserName; @@ -75,7 +76,7 @@ public boolean hasNewAdminUserName() { } /** - * The new admin user name. The length must be less than 50. + * The new admin user name. The length must be less than 50 */ public SetAdminUserInfoRequest setNewAdminUserName(String d) { this.newAdminUserName = d; @@ -86,7 +87,7 @@ public SetAdminUserInfoRequest setNewAdminUserName(String d) { @RequestField(name="admin_user_display_name") /** - * The new admin user display name. The length must be less than 256. + * The new admin user display name. The length must be less than 256 */ public String getAdminUserDisplayName() { return this.adminUserDisplayName; @@ -97,7 +98,7 @@ public boolean hasAdminUserDisplayName() { } /** - * The new admin user display name. The length must be less than 256. + * The new admin user display name. The length must be less than 256 */ public SetAdminUserInfoRequest setAdminUserDisplayName(String d) { this.adminUserDisplayName = d; @@ -108,7 +109,7 @@ public SetAdminUserInfoRequest setAdminUserDisplayName(String d) { @RequestField(name="new_admin_user_password") /** - * The new admin user password. The length must be at least 6 symbols. + * The new admin user password. The length must be at least 6 symbols */ public String getNewAdminUserPassword() { return this.newAdminUserPassword; @@ -119,7 +120,7 @@ public boolean hasNewAdminUserPassword() { } /** - * The new admin user password. The length must be at least 6 symbols. + * The new admin user password. The length must be at least 6 symbols */ public SetAdminUserInfoRequest setNewAdminUserPassword(String d) { this.newAdminUserPassword = d; @@ -130,7 +131,7 @@ public SetAdminUserInfoRequest setNewAdminUserPassword(String d) { @RequestField(name="admin_user_active") /** - * The admin user enable flag. + * The admin user enable flag */ public Boolean getAdminUserActive() { return this.adminUserActive; @@ -141,7 +142,7 @@ public boolean hasAdminUserActive() { } /** - * The admin user enable flag. + * The admin user enable flag */ public SetAdminUserInfoRequest setAdminUserActive(boolean d) { this.adminUserActive = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/SetApplicationInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetApplicationInfoRequest.java index 1add59f..813dde1 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetApplicationInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetApplicationInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetApplicationInfoRequest implements Alignable { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -29,7 +30,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public SetApplicationInfoRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -40,8 +41,7 @@ public SetApplicationInfoRequest setApplicationId(long d) { @RequestField(name="required_application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getRequiredApplicationName() { return this.requiredApplicationName; @@ -52,8 +52,7 @@ public boolean hasRequiredApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public SetApplicationInfoRequest setRequiredApplicationName(String d) { this.requiredApplicationName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetChildAccountInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetChildAccountInfoRequest.java index a1de6a3..0e8894b 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetChildAccountInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetChildAccountInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,8 +19,8 @@ public class SetChildAccountInfoRequest implements Alignable { @RequestField(name="child_account_id") /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public MultiArgument getChildAccountId() { return this.childAccountId; @@ -30,8 +31,8 @@ public boolean hasChildAccountId() { } /** - * The child account ID list separated by the ';' symbol or the 'all' - * value. + * The child account ID list separated by semicolon (;). Use the 'all' + * value to select all child accounts */ public SetChildAccountInfoRequest setChildAccountId(MultiArgument d) { this.childAccountId = d; @@ -42,8 +43,8 @@ public SetChildAccountInfoRequest setChildAccountId(MultiArgument d) { @RequestField(name="child_account_name") /** - * The child account name list separated by the ';' symbol. Can be used - * instead of child_account_id. + * The child account name list separated by semicolon (;). Can be used + * instead of child_account_id */ public MultiArgument getChildAccountName() { return this.childAccountName; @@ -54,8 +55,8 @@ public boolean hasChildAccountName() { } /** - * The child account name list separated by the ';' symbol. Can be used - * instead of child_account_id. + * The child account name list separated by semicolon (;). Can be used + * instead of child_account_id */ public SetChildAccountInfoRequest setChildAccountName(MultiArgument d) { this.childAccountName = d; @@ -66,8 +67,8 @@ public SetChildAccountInfoRequest setChildAccountName(MultiArgument d) { @RequestField(name="child_account_email") /** - * The child account email list separated by the ';' symbol. Can be used - * instead of child_account_id. + * The child account email list separated by semicolon (;). Can be used + * instead of child_account_id */ public MultiArgument getChildAccountEmail() { return this.childAccountEmail; @@ -78,8 +79,8 @@ public boolean hasChildAccountEmail() { } /** - * The child account email list separated by the ';' symbol. Can be used - * instead of child_account_id. + * The child account email list separated by semicolon (;). Can be used + * instead of child_account_id */ public SetChildAccountInfoRequest setChildAccountEmail(MultiArgument d) { this.childAccountEmail = d; @@ -90,7 +91,7 @@ public SetChildAccountInfoRequest setChildAccountEmail(MultiArgument d) @RequestField(name="new_child_account_email") /** - * The new child account email. + * The new child account email */ public String getNewChildAccountEmail() { return this.newChildAccountEmail; @@ -101,7 +102,7 @@ public boolean hasNewChildAccountEmail() { } /** - * The new child account email. + * The new child account email */ public SetChildAccountInfoRequest setNewChildAccountEmail(String d) { this.newChildAccountEmail = d; @@ -112,7 +113,9 @@ public SetChildAccountInfoRequest setNewChildAccountEmail(String d) { @RequestField(name="new_child_account_password") /** - * The new child account password. + * The new child account password. Must be at least 8 characters long + * and contain at least one uppercase and lowercase letter, one number, + * and one special character */ public String getNewChildAccountPassword() { return this.newChildAccountPassword; @@ -123,7 +126,9 @@ public boolean hasNewChildAccountPassword() { } /** - * The new child account password. + * The new child account password. Must be at least 8 characters long + * and contain at least one uppercase and lowercase letter, one number, + * and one special character */ public SetChildAccountInfoRequest setNewChildAccountPassword(String d) { this.newChildAccountPassword = d; @@ -134,7 +139,7 @@ public SetChildAccountInfoRequest setNewChildAccountPassword(String d) { @RequestField(name="account_notifications") /** - * Are the Voximplant notifications required? + * Voximplant notifications are required */ public Boolean getAccountNotifications() { return this.accountNotifications; @@ -145,7 +150,7 @@ public boolean hasAccountNotifications() { } /** - * Are the Voximplant notifications required? + * Voximplant notifications are required */ public SetChildAccountInfoRequest setAccountNotifications(boolean d) { this.accountNotifications = Boolean.valueOf(d); @@ -156,7 +161,7 @@ public SetChildAccountInfoRequest setAccountNotifications(boolean d) { @RequestField(name="tariff_changing_notifications") /** - * Set to true to receive the emails about the Voximplant plan changing. + * Set to true to receive the emails about the Voximplant plan changing */ public Boolean getTariffChangingNotifications() { return this.tariffChangingNotifications; @@ -167,7 +172,7 @@ public boolean hasTariffChangingNotifications() { } /** - * Set to true to receive the emails about the Voximplant plan changing. + * Set to true to receive the emails about the Voximplant plan changing */ public SetChildAccountInfoRequest setTariffChangingNotifications(boolean d) { this.tariffChangingNotifications = Boolean.valueOf(d); @@ -178,7 +183,7 @@ public SetChildAccountInfoRequest setTariffChangingNotifications(boolean d) { @RequestField(name="news_notifications") /** - * Set to true to receive the emails about the Voximplant news. + * Set to true to receive the emails about the Voximplant news */ public Boolean getNewsNotifications() { return this.newsNotifications; @@ -189,7 +194,7 @@ public boolean hasNewsNotifications() { } /** - * Set to true to receive the emails about the Voximplant news. + * Set to true to receive the emails about the Voximplant news */ public SetChildAccountInfoRequest setNewsNotifications(boolean d) { this.newsNotifications = Boolean.valueOf(d); @@ -200,7 +205,7 @@ public SetChildAccountInfoRequest setNewsNotifications(boolean d) { @RequestField(name="active") /** - * Set false to disable the child account. + * Set false to disable the child account */ public Boolean getActive() { return this.active; @@ -211,7 +216,7 @@ public boolean hasActive() { } /** - * Set false to disable the child account. + * Set false to disable the child account */ public SetChildAccountInfoRequest setActive(boolean d) { this.active = Boolean.valueOf(d); @@ -330,7 +335,7 @@ public SetChildAccountInfoRequest setLocation(String d) { @RequestField(name="min_balance_to_notify") /** - * The min balance value to notify by email or SMS. + * The min balance value to notify by email or SMS */ public BigDecimal getMinBalanceToNotify() { return this.minBalanceToNotify; @@ -341,7 +346,7 @@ public boolean hasMinBalanceToNotify() { } /** - * The min balance value to notify by email or SMS. + * The min balance value to notify by email or SMS */ public SetChildAccountInfoRequest setMinBalanceToNotify(BigDecimal d) { this.minBalanceToNotify = d; @@ -352,7 +357,7 @@ public SetChildAccountInfoRequest setMinBalanceToNotify(BigDecimal d) { @RequestField(name="support_robokassa") /** - * Set to true to allow the robokassa payments. + * Set to true to allow the robokassa payments */ public Boolean getSupportRobokassa() { return this.supportRobokassa; @@ -363,7 +368,7 @@ public boolean hasSupportRobokassa() { } /** - * Set to true to allow the robokassa payments. + * Set to true to allow the robokassa payments */ public SetChildAccountInfoRequest setSupportRobokassa(boolean d) { this.supportRobokassa = Boolean.valueOf(d); @@ -374,7 +379,7 @@ public SetChildAccountInfoRequest setSupportRobokassa(boolean d) { @RequestField(name="support_bank_card") /** - * Set to true to allow the bank card payments. + * Set to true to allow the bank card payments */ public Boolean getSupportBankCard() { return this.supportBankCard; @@ -385,7 +390,7 @@ public boolean hasSupportBankCard() { } /** - * Set to true to allow the bank card payments. + * Set to true to allow the bank card payments */ public SetChildAccountInfoRequest setSupportBankCard(boolean d) { this.supportBankCard = Boolean.valueOf(d); @@ -396,7 +401,7 @@ public SetChildAccountInfoRequest setSupportBankCard(boolean d) { @RequestField(name="support_invoice") /** - * Set to true to allow the bank invoices. + * Set to true to allow the bank invoices */ public Boolean getSupportInvoice() { return this.supportInvoice; @@ -407,7 +412,7 @@ public boolean hasSupportInvoice() { } /** - * Set to true to allow the bank invoices. + * Set to true to allow the bank invoices */ public SetChildAccountInfoRequest setSupportInvoice(boolean d) { this.supportInvoice = Boolean.valueOf(d); @@ -418,7 +423,7 @@ public SetChildAccountInfoRequest setSupportInvoice(boolean d) { @RequestField(name="can_use_restricted") /** - * Set to true to allow use restricted directions. + * Set to true to allow use restricted directions */ public Boolean getCanUseRestricted() { return this.canUseRestricted; @@ -429,7 +434,7 @@ public boolean hasCanUseRestricted() { } /** - * Set to true to allow use restricted directions. + * Set to true to allow use restricted directions */ public SetChildAccountInfoRequest setCanUseRestricted(boolean d) { this.canUseRestricted = Boolean.valueOf(d); @@ -440,7 +445,7 @@ public SetChildAccountInfoRequest setCanUseRestricted(boolean d) { @RequestField(name="min_payment_amount") /** - * The minimum payment amount. + * The minimum payment amount */ public Long getMinPaymentAmount() { return this.minPaymentAmount; @@ -451,7 +456,7 @@ public boolean hasMinPaymentAmount() { } /** - * The minimum payment amount. + * The minimum payment amount */ public SetChildAccountInfoRequest setMinPaymentAmount(long d) { this.minPaymentAmount = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/SetDialogflowKeyRequest.java b/src/main/java/com/voximplant/apiclient/request/SetDialogflowKeyRequest.java index c577b5c..9d63794 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetDialogflowKeyRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetDialogflowKeyRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetDialogflowKeyRequest implements Alignable { @RequestField(name="dialogflow_key_id") /** - * The Dialogflow key's ID. + * The Dialogflow key's ID */ public Long getDialogflowKeyId() { return this.dialogflowKeyId; @@ -29,7 +30,7 @@ public boolean hasDialogflowKeyId() { } /** - * The Dialogflow key's ID. + * The Dialogflow key's ID */ public SetDialogflowKeyRequest setDialogflowKeyId(long d) { this.dialogflowKeyId = Long.valueOf(d); @@ -41,7 +42,7 @@ public SetDialogflowKeyRequest setDialogflowKeyId(long d) { @RequestField(name="description") /** * The Dialogflow keys's description. To clear previously set - * description leave the parameter blank or put whitespaces only. + * description leave the parameter blank or put whitespaces only */ public String getDescription() { return this.description; @@ -53,7 +54,7 @@ public boolean hasDescription() { /** * The Dialogflow keys's description. To clear previously set - * description leave the parameter blank or put whitespaces only. + * description leave the parameter blank or put whitespaces only */ public SetDialogflowKeyRequest setDescription(String d) { this.description = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetKeyRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/SetKeyRolesRequest.java index 2ebdb6b..55c8fc3 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetKeyRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetKeyRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetKeyRolesRequest implements Alignable { @RequestField(name="key_id") /** - * The key's ID. + * The key's ID */ public String getKeyId() { return this.keyId; @@ -29,7 +30,7 @@ public boolean hasKeyId() { } /** - * The key's ID. + * The key's ID */ public SetKeyRolesRequest setKeyId(String d) { this.keyId = d; @@ -40,7 +41,7 @@ public SetKeyRolesRequest setKeyId(String d) { @RequestField(name="role_id") /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public MultiArgument getRoleId() { return this.roleId; @@ -51,7 +52,7 @@ public boolean hasRoleId() { } /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public SetKeyRolesRequest setRoleId(MultiArgument d) { this.roleId = d; @@ -62,7 +63,7 @@ public SetKeyRolesRequest setRoleId(MultiArgument d) { @RequestField(name="role_name") /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public MultiArgument getRoleName() { return this.roleName; @@ -73,7 +74,7 @@ public boolean hasRoleName() { } /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public SetKeyRolesRequest setRoleName(MultiArgument d) { this.roleName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetKeyValueItemRequest.java b/src/main/java/com/voximplant/apiclient/request/SetKeyValueItemRequest.java new file mode 100644 index 0000000..87f843f --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SetKeyValueItemRequest.java @@ -0,0 +1,235 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SetKeyValueItemRequest implements Alignable { + private String key; + + @RequestField(name="key") + /** + * Key, up to 200 characters. A key can contain a namespace that is + * written before the ':' symbol, for example, test:1234. Thus, + * namespace 'test' can be used as a pattern in the + * [GetKeyValueItems](/docs/references/httpapi/keyvaluestorage#getkeyvalueitems) + * and + * [GetKeyValueKeys](/docs/references/httpapi/keyvaluestorage#getkeyvaluekeys) + * methods to find the keys with the same namespace + */ + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + /** + * Key, up to 200 characters. A key can contain a namespace that is + * written before the ':' symbol, for example, test:1234. Thus, + * namespace 'test' can be used as a pattern in the + * [GetKeyValueItems](/docs/references/httpapi/keyvaluestorage#getkeyvalueitems) + * and + * [GetKeyValueKeys](/docs/references/httpapi/keyvaluestorage#getkeyvaluekeys) + * methods to find the keys with the same namespace + */ + public SetKeyValueItemRequest setKey(String d) { + this.key = d; + return this; + } + + private String value; + + @RequestField(name="value") + /** + * Value for the specified key, up to 2000 characters + */ + public String getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + + /** + * Value for the specified key, up to 2000 characters + */ + public SetKeyValueItemRequest setValue(String d) { + this.value = d; + return this; + } + + private Long applicationId; + + @RequestField(name="application_id") + /** + * The application ID + */ + public Long getApplicationId() { + return this.applicationId; + } + + public boolean hasApplicationId() { + return this.applicationId != null; + } + + /** + * The application ID + */ + public SetKeyValueItemRequest setApplicationId(long d) { + this.applicationId = Long.valueOf(d); + return this; + } + + private String applicationName; + + @RequestField(name="application_name") + /** + * The application name + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + + /** + * The application name + */ + public SetKeyValueItemRequest setApplicationName(String d) { + this.applicationName = d; + return this; + } + + private Long ttl; + + @RequestField(name="ttl") + /** + * Key expiry time in seconds. The value is in range of 0..7,776,000 (90 + * days), the default value is 30 days (2,592,000 seconds). The TTL is + * converted to an **expires_at** Unix timestamp field as part of the + * storage object. Note that one of the two parameters (ttl or + * expires_at) must be set + */ + public Long getTtl() { + return this.ttl; + } + + public boolean hasTtl() { + return this.ttl != null; + } + + /** + * Key expiry time in seconds. The value is in range of 0..7,776,000 (90 + * days), the default value is 30 days (2,592,000 seconds). The TTL is + * converted to an **expires_at** Unix timestamp field as part of the + * storage object. Note that one of the two parameters (ttl or + * expires_at) must be set + */ + public SetKeyValueItemRequest setTtl(long d) { + this.ttl = Long.valueOf(d); + return this; + } + + private Long expiresAt; + + @RequestField(name="expires_at") + /** + * Expiration date based on **ttl** (timestamp without milliseconds). + * Note that one of the two parameters (ttl or expires_at) must be set + */ + public Long getExpiresAt() { + return this.expiresAt; + } + + public boolean hasExpiresAt() { + return this.expiresAt != null; + } + + /** + * Expiration date based on **ttl** (timestamp without milliseconds). + * Note that one of the two parameters (ttl or expires_at) must be set + */ + public SetKeyValueItemRequest setExpiresAt(long d) { + this.expiresAt = Long.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (key != null) { + sb.append(aligned) + .append("\"key\": \"") + .append(key) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (value != null) { + sb.append(aligned) + .append("\"value\": \"") + .append(value) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationId != null) { + sb.append(aligned) + .append("\"applicationId\": \"") + .append(applicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (ttl != null) { + sb.append(aligned) + .append("\"ttl\": \"") + .append(ttl) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (expiresAt != null) { + sb.append(aligned) + .append("\"expiresAt\": \"") + .append(expiresAt) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SetPhoneNumberInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetPhoneNumberInfoRequest.java new file mode 100644 index 0000000..75eba2f --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/SetPhoneNumberInfoRequest.java @@ -0,0 +1,159 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class SetPhoneNumberInfoRequest implements Alignable { + private MultiArgument phoneId; + + @RequestField(name="phone_id") + /** + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids + */ + public MultiArgument getPhoneId() { + return this.phoneId; + } + + public boolean hasPhoneId() { + return this.phoneId != null; + } + + /** + * The phone ID list separated by semicolon (;). Use the 'all' value to + * select all phone ids + */ + public SetPhoneNumberInfoRequest setPhoneId(MultiArgument d) { + this.phoneId = d; + return this; + } + + private MultiArgument phoneNumber; + + @RequestField(name="phone_number") + /** + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id + */ + public MultiArgument getPhoneNumber() { + return this.phoneNumber; + } + + public boolean hasPhoneNumber() { + return this.phoneNumber != null; + } + + /** + * The phone number list separated by semicolon (;) that can be used + * instead of phone_id + */ + public SetPhoneNumberInfoRequest setPhoneNumber(MultiArgument d) { + this.phoneNumber = d; + return this; + } + + private String incomingSmsCallbackUrl; + + @RequestField(name="incoming_sms_callback_url") + /** + * If set, the callback of an inbound SMS will be sent to this url, + * otherwise, it will be sent to the general account URL + */ + public String getIncomingSmsCallbackUrl() { + return this.incomingSmsCallbackUrl; + } + + public boolean hasIncomingSmsCallbackUrl() { + return this.incomingSmsCallbackUrl != null; + } + + /** + * If set, the callback of an inbound SMS will be sent to this url, + * otherwise, it will be sent to the general account URL + */ + public SetPhoneNumberInfoRequest setIncomingSmsCallbackUrl(String d) { + this.incomingSmsCallbackUrl = d; + return this; + } + + private Boolean autoCharge; + + @RequestField(name="auto_charge") + /** + * Set true to enable the auto charging + */ + public Boolean getAutoCharge() { + return this.autoCharge; + } + + public boolean hasAutoCharge() { + return this.autoCharge != null; + } + + /** + * Set true to enable the auto charging + */ + public SetPhoneNumberInfoRequest setAutoCharge(boolean d) { + this.autoCharge = Boolean.valueOf(d); + return this; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (phoneId != null) { + sb.append(aligned) + .append("\"phoneId\": \"") + .append(phoneId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (phoneNumber != null) { + sb.append(aligned) + .append("\"phoneNumber\": \"") + .append(phoneNumber) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (incomingSmsCallbackUrl != null) { + sb.append(aligned) + .append("\"incomingSmsCallbackUrl\": \"") + .append(incomingSmsCallbackUrl) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (autoCharge != null) { + sb.append(aligned) + .append("\"autoCharge\": \"") + .append(autoCharge) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/request/SetPstnBlackListItemRequest.java b/src/main/java/com/voximplant/apiclient/request/SetPstnBlackListItemRequest.java index b920195..d52fb20 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetPstnBlackListItemRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetPstnBlackListItemRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetPstnBlackListItemRequest implements Alignable { @RequestField(name="pstn_blacklist_id") /** - * The PSTN black list item ID. + * The PSTN black list item ID */ public Long getPstnBlacklistId() { return this.pstnBlacklistId; @@ -29,7 +30,7 @@ public boolean hasPstnBlacklistId() { } /** - * The PSTN black list item ID. + * The PSTN black list item ID */ public SetPstnBlackListItemRequest setPstnBlacklistId(long d) { this.pstnBlacklistId = Long.valueOf(d); @@ -40,7 +41,7 @@ public SetPstnBlackListItemRequest setPstnBlacklistId(long d) { @RequestField(name="pstn_blacklist_phone") /** - * The new phone number in format e164. + * The new phone number in format e164 */ public String getPstnBlacklistPhone() { return this.pstnBlacklistPhone; @@ -51,7 +52,7 @@ public boolean hasPstnBlacklistPhone() { } /** - * The new phone number in format e164. + * The new phone number in format e164 */ public SetPstnBlackListItemRequest setPstnBlacklistPhone(String d) { this.pstnBlacklistPhone = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetPushCredentialRequest.java b/src/main/java/com/voximplant/apiclient/request/SetPushCredentialRequest.java index 515a904..67ea15b 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetPushCredentialRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetPushCredentialRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetPushCredentialRequest implements Alignable { @RequestField(name="push_credential_id") /** - * The push credentials id. + * The push credentials id */ public Long getPushCredentialId() { return this.pushCredentialId; @@ -29,7 +30,7 @@ public boolean hasPushCredentialId() { } /** - * The push credentials id. + * The push credentials id */ public SetPushCredentialRequest setPushCredentialId(long d) { this.pushCredentialId = Long.valueOf(d); @@ -40,7 +41,7 @@ public SetPushCredentialRequest setPushCredentialId(long d) { @RequestField(name="cert_content") /** - * Public and private keys in PKCS12 format. + * Public and private keys in PKCS12 format. Credentials for APPLE push */ public String getCertContent() { return this.certContent; @@ -51,7 +52,7 @@ public boolean hasCertContent() { } /** - * Public and private keys in PKCS12 format. + * Public and private keys in PKCS12 format. Credentials for APPLE push */ public SetPushCredentialRequest setCertContent(String d) { this.certContent = d; @@ -62,7 +63,7 @@ public SetPushCredentialRequest setCertContent(String d) { @RequestField(name="cert_password") /** - * The secret password for private key. + * The secret password for private key. Credentials for APPLE push */ public String getCertPassword() { return this.certPassword; @@ -73,7 +74,7 @@ public boolean hasCertPassword() { } /** - * The secret password for private key. + * The secret password for private key. Credentials for APPLE push */ public SetPushCredentialRequest setCertPassword(String d) { this.certPassword = d; @@ -84,7 +85,8 @@ public SetPushCredentialRequest setCertPassword(String d) { @RequestField(name="is_dev_mode") /** - * Set true for use this certificate in apple's sandbox environment + * Set true to use this certificate in apple's sandbox environment. + * Credentials for APPLE push */ public Boolean getIsDevMode() { return this.isDevMode; @@ -95,7 +97,8 @@ public boolean hasIsDevMode() { } /** - * Set true for use this certificate in apple's sandbox environment + * Set true to use this certificate in apple's sandbox environment. + * Credentials for APPLE push */ public SetPushCredentialRequest setIsDevMode(boolean d) { this.isDevMode = Boolean.valueOf(d); @@ -106,7 +109,7 @@ public SetPushCredentialRequest setIsDevMode(boolean d) { @RequestField(name="sender_id") /** - * The sender id, provided by Google. + * The sender id, provided by Google. Credentials for GOOGLE push */ public String getSenderId() { return this.senderId; @@ -117,7 +120,7 @@ public boolean hasSenderId() { } /** - * The sender id, provided by Google. + * The sender id, provided by Google. Credentials for GOOGLE push */ public SetPushCredentialRequest setSenderId(String d) { this.senderId = d; @@ -128,7 +131,7 @@ public SetPushCredentialRequest setSenderId(String d) { @RequestField(name="server_key") /** - * The server key, provided by Google. + * The server key, provided by Google. Credentials for GOOGLE push */ public String getServerKey() { return this.serverKey; @@ -139,13 +142,103 @@ public boolean hasServerKey() { } /** - * The server key, provided by Google. + * The server key, provided by Google. Credentials for GOOGLE push */ public SetPushCredentialRequest setServerKey(String d) { this.serverKey = d; return this; } + private String serviceAccountFile; + + @RequestField(name="service_account_file") + /** + * The service account key file, provided by Google. Can be used instead + * of server_key. Credentials for GOOGLE push + */ + public String getServiceAccountFile() { + return this.serviceAccountFile; + } + + public boolean hasServiceAccountFile() { + return this.serviceAccountFile != null; + } + + /** + * The service account key file, provided by Google. Can be used instead + * of server_key. Credentials for GOOGLE push + */ + public SetPushCredentialRequest setServiceAccountFile(String d) { + this.serviceAccountFile = d; + return this; + } + + private String huaweiClientId; + + @RequestField(name="huawei_client_id") + /** + * The client id, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiClientId() { + return this.huaweiClientId; + } + + public boolean hasHuaweiClientId() { + return this.huaweiClientId != null; + } + + /** + * The client id, provided by Huawei. Credentials for HUAWEI push + */ + public SetPushCredentialRequest setHuaweiClientId(String d) { + this.huaweiClientId = d; + return this; + } + + private String huaweiClientSecret; + + @RequestField(name="huawei_client_secret") + /** + * The client secret, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiClientSecret() { + return this.huaweiClientSecret; + } + + public boolean hasHuaweiClientSecret() { + return this.huaweiClientSecret != null; + } + + /** + * The client secret, provided by Huawei. Credentials for HUAWEI push + */ + public SetPushCredentialRequest setHuaweiClientSecret(String d) { + this.huaweiClientSecret = d; + return this; + } + + private String huaweiApplicationId; + + @RequestField(name="huawei_application_id") + /** + * The application id, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiApplicationId() { + return this.huaweiApplicationId; + } + + public boolean hasHuaweiApplicationId() { + return this.huaweiApplicationId != null; + } + + /** + * The application id, provided by Huawei. Credentials for HUAWEI push + */ + public SetPushCredentialRequest setHuaweiApplicationId(String d) { + this.huaweiApplicationId = d; + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -203,6 +296,38 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (serviceAccountFile != null) { + sb.append(aligned) + .append("\"serviceAccountFile\": \"") + .append(serviceAccountFile) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (huaweiClientId != null) { + sb.append(aligned) + .append("\"huaweiClientId\": \"") + .append(huaweiClientId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (huaweiClientSecret != null) { + sb.append(aligned) + .append("\"huaweiClientSecret\": \"") + .append(huaweiClientSecret) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (huaweiApplicationId != null) { + sb.append(aligned) + .append("\"huaweiApplicationId\": \"") + .append(huaweiApplicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/SetQueueInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetQueueInfoRequest.java index f1552fb..a06e004 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetQueueInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetQueueInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetQueueInfoRequest implements Alignable { @RequestField(name="acd_queue_id") /** - * The ACD queue ID. + * The ACD queue ID */ public Long getAcdQueueId() { return this.acdQueueId; @@ -29,7 +30,7 @@ public boolean hasAcdQueueId() { } /** - * The ACD queue ID. + * The ACD queue ID */ public SetQueueInfoRequest setAcdQueueId(long d) { this.acdQueueId = Long.valueOf(d); @@ -40,7 +41,7 @@ public SetQueueInfoRequest setAcdQueueId(long d) { @RequestField(name="acd_queue_name") /** - * The ACD queue name that can be used instead of acd_queue_id. + * The ACD queue name that can be used instead of acd_queue_id */ public String getAcdQueueName() { return this.acdQueueName; @@ -51,7 +52,7 @@ public boolean hasAcdQueueName() { } /** - * The ACD queue name that can be used instead of acd_queue_id. + * The ACD queue name that can be used instead of acd_queue_id */ public SetQueueInfoRequest setAcdQueueName(String d) { this.acdQueueName = d; @@ -62,7 +63,7 @@ public SetQueueInfoRequest setAcdQueueName(String d) { @RequestField(name="new_acd_queue_name") /** - * The new queue name. The length must be less than 100. + * The new queue name. The length must be less than 100 */ public String getNewAcdQueueName() { return this.newAcdQueueName; @@ -73,7 +74,7 @@ public boolean hasNewAcdQueueName() { } /** - * The new queue name. The length must be less than 100. + * The new queue name. The length must be less than 100 */ public SetQueueInfoRequest setNewAcdQueueName(String d) { this.newAcdQueueName = d; @@ -84,7 +85,7 @@ public SetQueueInfoRequest setNewAcdQueueName(String d) { @RequestField(name="acd_queue_priority") /** - * The integer queue priority. The highest priority is 0. + * The integer queue priority. The highest priority is 0 */ public Long getAcdQueuePriority() { return this.acdQueuePriority; @@ -95,7 +96,7 @@ public boolean hasAcdQueuePriority() { } /** - * The integer queue priority. The highest priority is 0. + * The integer queue priority. The highest priority is 0 */ public SetQueueInfoRequest setAcdQueuePriority(long d) { this.acdQueuePriority = Long.valueOf(d); @@ -107,7 +108,7 @@ public SetQueueInfoRequest setAcdQueuePriority(long d) { @RequestField(name="auto_binding") /** * Set false to disable the auto binding of operators to a queue by - * skills comparing. + * skills comparing */ public Boolean getAutoBinding() { return this.autoBinding; @@ -119,7 +120,7 @@ public boolean hasAutoBinding() { /** * Set false to disable the auto binding of operators to a queue by - * skills comparing. + * skills comparing */ public SetQueueInfoRequest setAutoBinding(boolean d) { this.autoBinding = Boolean.valueOf(d); @@ -131,7 +132,7 @@ public SetQueueInfoRequest setAutoBinding(boolean d) { @RequestField(name="service_probability") /** * The value in the range of [0.5 ... 1.0]. The value 1.0 means the - * service probability 100% in challenge with a lower priority queue. + * service probability 100% in challenge with a lower priority queue */ public Long getServiceProbability() { return this.serviceProbability; @@ -143,7 +144,7 @@ public boolean hasServiceProbability() { /** * The value in the range of [0.5 ... 1.0]. The value 1.0 means the - * service probability 100% in challenge with a lower priority queue. + * service probability 100% in challenge with a lower priority queue */ public SetQueueInfoRequest setServiceProbability(long d) { this.serviceProbability = Long.valueOf(d); @@ -154,7 +155,7 @@ public SetQueueInfoRequest setServiceProbability(long d) { @RequestField(name="max_queue_size") /** - * The max queue size. + * The max queue size */ public Long getMaxQueueSize() { return this.maxQueueSize; @@ -165,7 +166,7 @@ public boolean hasMaxQueueSize() { } /** - * The max queue size. + * The max queue size */ public SetQueueInfoRequest setMaxQueueSize(long d) { this.maxQueueSize = Long.valueOf(d); @@ -178,7 +179,7 @@ public SetQueueInfoRequest setMaxQueueSize(long d) { /** * The max predicted waiting time in minutes. The client is rejected if * the predicted waiting time is greater than the max predicted waiting - * time. + * time */ public Long getMaxWaitingTime() { return this.maxWaitingTime; @@ -191,7 +192,7 @@ public boolean hasMaxWaitingTime() { /** * The max predicted waiting time in minutes. The client is rejected if * the predicted waiting time is greater than the max predicted waiting - * time. + * time */ public SetQueueInfoRequest setMaxWaitingTime(long d) { this.maxWaitingTime = Long.valueOf(d); @@ -203,7 +204,7 @@ public SetQueueInfoRequest setMaxWaitingTime(long d) { @RequestField(name="average_service_time") /** * The average service time in seconds. Specify the parameter to correct - * or initialize the waiting time prediction. + * or initialize the waiting time prediction */ public Long getAverageServiceTime() { return this.averageServiceTime; @@ -215,7 +216,7 @@ public boolean hasAverageServiceTime() { /** * The average service time in seconds. Specify the parameter to correct - * or initialize the waiting time prediction. + * or initialize the waiting time prediction */ public SetQueueInfoRequest setAverageServiceTime(long d) { this.averageServiceTime = Long.valueOf(d); @@ -226,7 +227,7 @@ public SetQueueInfoRequest setAverageServiceTime(long d) { @RequestField(name="application_id") /** - * The new application ID. + * The new application ID */ public Long getApplicationId() { return this.applicationId; @@ -237,7 +238,7 @@ public boolean hasApplicationId() { } /** - * The new application ID. + * The new application ID */ public SetQueueInfoRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/SetRuleInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetRuleInfoRequest.java index f757795..1e449eb 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetRuleInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetRuleInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetRuleInfoRequest implements Alignable { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID */ public Long getRuleId() { return this.ruleId; @@ -29,7 +30,7 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID */ public SetRuleInfoRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -62,7 +63,7 @@ public SetRuleInfoRequest setRuleName(String d) { @RequestField(name="rule_pattern") /** - * The new rule pattern regex. The length must be less than 64 KB. + * The new rule pattern regex. The length must be less than 64 KB */ public String getRulePattern() { return this.rulePattern; @@ -73,7 +74,7 @@ public boolean hasRulePattern() { } /** - * The new rule pattern regex. The length must be less than 64 KB. + * The new rule pattern regex. The length must be less than 64 KB */ public SetRuleInfoRequest setRulePattern(String d) { this.rulePattern = d; @@ -84,7 +85,7 @@ public SetRuleInfoRequest setRulePattern(String d) { @RequestField(name="rule_pattern_exclude") /** - * The new exclude pattern regex. The length must be less than 64 KB. + * The new exclude pattern regex. The length must be less than 64 KB */ public String getRulePatternExclude() { return this.rulePatternExclude; @@ -95,7 +96,7 @@ public boolean hasRulePatternExclude() { } /** - * The new exclude pattern regex. The length must be less than 64 KB. + * The new exclude pattern regex. The length must be less than 64 KB */ public SetRuleInfoRequest setRulePatternExclude(String d) { this.rulePatternExclude = d; @@ -106,7 +107,7 @@ public SetRuleInfoRequest setRulePatternExclude(String d) { @RequestField(name="video_conference") /** - * Is video conference required? + * Video conference is required */ public Boolean getVideoConference() { return this.videoConference; @@ -117,7 +118,7 @@ public boolean hasVideoConference() { } /** - * Is video conference required? + * Video conference is required */ public SetRuleInfoRequest setVideoConference(boolean d) { this.videoConference = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/SetScenarioInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetScenarioInfoRequest.java index 17ef2d7..e6b75ff 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetScenarioInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetScenarioInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetScenarioInfoRequest implements Alignable { @RequestField(name="scenario_id") /** - * The scenario ID. + * The scenario ID */ public Long getScenarioId() { return this.scenarioId; @@ -29,7 +30,7 @@ public boolean hasScenarioId() { } /** - * The scenario ID. + * The scenario ID */ public SetScenarioInfoRequest setScenarioId(long d) { this.scenarioId = Long.valueOf(d); @@ -41,7 +42,7 @@ public SetScenarioInfoRequest setScenarioId(long d) { @RequestField(name="required_scenario_name") /** * The name of the scenario to edit, can be used instead of - * scenario_id. + * scenario_id */ public String getRequiredScenarioName() { return this.requiredScenarioName; @@ -53,7 +54,7 @@ public boolean hasRequiredScenarioName() { /** * The name of the scenario to edit, can be used instead of - * scenario_id. + * scenario_id */ public SetScenarioInfoRequest setRequiredScenarioName(String d) { this.requiredScenarioName = d; @@ -86,7 +87,8 @@ public SetScenarioInfoRequest setScenarioName(String d) { @RequestField(name="scenario_script") /** - * The new scenario text. The length must be less than 128 KB. + * The new scenario text. Use the application/x-www-form-urlencoded + * content type with UTF-8 encoding. The length must be less than 128 KB */ public String getScenarioScript() { return this.scenarioScript; @@ -97,7 +99,8 @@ public boolean hasScenarioScript() { } /** - * The new scenario text. The length must be less than 128 KB. + * The new scenario text. Use the application/x-www-form-urlencoded + * content type with UTF-8 encoding. The length must be less than 128 KB */ public SetScenarioInfoRequest setScenarioScript(String d) { this.scenarioScript = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetSipWhiteListItemRequest.java b/src/main/java/com/voximplant/apiclient/request/SetSipWhiteListItemRequest.java index e1aab78..01ec583 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetSipWhiteListItemRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetSipWhiteListItemRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -60,6 +61,28 @@ public SetSipWhiteListItemRequest setSipWhitelistNetwork(String d) { return this; } + private String description; + + @RequestField(name="description") + /** + * The network address description + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + /** + * The network address description + */ + public SetSipWhiteListItemRequest setDescription(String d) { + this.description = d; + return this; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -85,6 +108,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/request/SetSkillInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetSkillInfoRequest.java index 053a3cc..09a20a0 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetSkillInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetSkillInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetSkillInfoRequest implements Alignable { @RequestField(name="skill_id") /** - * The skill ID. + * The skill ID */ public Long getSkillId() { return this.skillId; @@ -29,7 +30,7 @@ public boolean hasSkillId() { } /** - * The skill ID. + * The skill ID */ public SetSkillInfoRequest setSkillId(long d) { this.skillId = Long.valueOf(d); @@ -40,7 +41,7 @@ public SetSkillInfoRequest setSkillId(long d) { @RequestField(name="skill_name") /** - * The skill name that can be used instead of skill_id. + * The skill name that can be used instead of skill_id */ public String getSkillName() { return this.skillName; @@ -51,7 +52,7 @@ public boolean hasSkillName() { } /** - * The skill name that can be used instead of skill_id. + * The skill name that can be used instead of skill_id */ public SetSkillInfoRequest setSkillName(String d) { this.skillName = d; @@ -62,7 +63,7 @@ public SetSkillInfoRequest setSkillName(String d) { @RequestField(name="new_skill_name") /** - * The new skill name. The length must be less than 512. + * The new skill name. The length must be less than 512 */ public String getNewSkillName() { return this.newSkillName; @@ -73,7 +74,7 @@ public boolean hasNewSkillName() { } /** - * The new skill name. The length must be less than 512. + * The new skill name. The length must be less than 512 */ public SetSkillInfoRequest setNewSkillName(String d) { this.newSkillName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetSubUserInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetSubUserInfoRequest.java index 4be2c03..5da1a5c 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetSubUserInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetSubUserInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetSubUserInfoRequest implements Alignable { @RequestField(name="subuser_id") /** - * The subuser's ID. + * The subuser's ID */ public Long getSubuserId() { return this.subuserId; @@ -29,7 +30,7 @@ public boolean hasSubuserId() { } /** - * The subuser's ID. + * The subuser's ID */ public SetSubUserInfoRequest setSubuserId(long d) { this.subuserId = Long.valueOf(d); @@ -41,7 +42,7 @@ public SetSubUserInfoRequest setSubuserId(long d) { @RequestField(name="old_subuser_password") /** * The subuser old password. It is required if __new_subuser_password__ - * is specified. + * is specified */ public String getOldSubuserPassword() { return this.oldSubuserPassword; @@ -53,7 +54,7 @@ public boolean hasOldSubuserPassword() { /** * The subuser old password. It is required if __new_subuser_password__ - * is specified. + * is specified */ public SetSubUserInfoRequest setOldSubuserPassword(String d) { this.oldSubuserPassword = d; @@ -64,7 +65,9 @@ public SetSubUserInfoRequest setOldSubuserPassword(String d) { @RequestField(name="new_subuser_password") /** - * The new user password. The length must be at least 6 symbols. + * The new user password. Must be at least 8 characters long and contain + * at least one uppercase and lowercase letter, one number, and one + * special character */ public String getNewSubuserPassword() { return this.newSubuserPassword; @@ -75,7 +78,9 @@ public boolean hasNewSubuserPassword() { } /** - * The new user password. The length must be at least 6 symbols. + * The new user password. Must be at least 8 characters long and contain + * at least one uppercase and lowercase letter, one number, and one + * special character */ public SetSubUserInfoRequest setNewSubuserPassword(String d) { this.newSubuserPassword = d; @@ -86,7 +91,7 @@ public SetSubUserInfoRequest setNewSubuserPassword(String d) { @RequestField(name="description") /** - * The new subuser description. + * The new subuser description */ public String getDescription() { return this.description; @@ -97,7 +102,7 @@ public boolean hasDescription() { } /** - * The new subuser description. + * The new subuser description */ public SetSubUserInfoRequest setDescription(String d) { this.description = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetSubUserRolesRequest.java b/src/main/java/com/voximplant/apiclient/request/SetSubUserRolesRequest.java index 583f284..980f437 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetSubUserRolesRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetSubUserRolesRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetSubUserRolesRequest implements Alignable { @RequestField(name="subuser_id") /** - * The subuser's ID. + * The subuser's ID */ public Long getSubuserId() { return this.subuserId; @@ -29,7 +30,7 @@ public boolean hasSubuserId() { } /** - * The subuser's ID. + * The subuser's ID */ public SetSubUserRolesRequest setSubuserId(long d) { this.subuserId = Long.valueOf(d); @@ -40,7 +41,7 @@ public SetSubUserRolesRequest setSubuserId(long d) { @RequestField(name="role_id") /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public MultiArgument getRoleId() { return this.roleId; @@ -51,7 +52,7 @@ public boolean hasRoleId() { } /** - * The role id list separated by the ';' symbol. + * The role id list separated by semicolon (;) */ public SetSubUserRolesRequest setRoleId(MultiArgument d) { this.roleId = d; @@ -62,7 +63,7 @@ public SetSubUserRolesRequest setRoleId(MultiArgument d) { @RequestField(name="role_name") /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public MultiArgument getRoleName() { return this.roleName; @@ -73,7 +74,7 @@ public boolean hasRoleName() { } /** - * The role name list separated by the ';' symbol. + * The role name list separated by semicolon (;) */ public SetSubUserRolesRequest setRoleName(MultiArgument d) { this.roleName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/SetUserInfoRequest.java b/src/main/java/com/voximplant/apiclient/request/SetUserInfoRequest.java index e68f022..2c1b12c 100644 --- a/src/main/java/com/voximplant/apiclient/request/SetUserInfoRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/SetUserInfoRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class SetUserInfoRequest implements Alignable { @RequestField(name="user_id") /** - * The user to edit. + * The user to edit */ public Long getUserId() { return this.userId; @@ -29,7 +30,7 @@ public boolean hasUserId() { } /** - * The user to edit. + * The user to edit */ public SetUserInfoRequest setUserId(long d) { this.userId = Long.valueOf(d); @@ -40,7 +41,7 @@ public SetUserInfoRequest setUserId(long d) { @RequestField(name="user_name") /** - * The user name that can be used instead of user_id. + * The user name that can be used instead of user_id */ public String getUserName() { return this.userName; @@ -51,7 +52,7 @@ public boolean hasUserName() { } /** - * The user name that can be used instead of user_id. + * The user name that can be used instead of user_id */ public SetUserInfoRequest setUserName(String d) { this.userName = d; @@ -63,7 +64,7 @@ public SetUserInfoRequest setUserName(String d) { @RequestField(name="application_id") /** * The application ID. It is required if the user_name is - * specified. + * specified */ public Long getApplicationId() { return this.applicationId; @@ -75,7 +76,7 @@ public boolean hasApplicationId() { /** * The application ID. It is required if the user_name is - * specified. + * specified */ public SetUserInfoRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -86,8 +87,7 @@ public SetUserInfoRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -98,8 +98,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public SetUserInfoRequest setApplicationName(String d) { this.applicationName = d; @@ -132,7 +131,7 @@ public SetUserInfoRequest setNewUserName(String d) { @RequestField(name="user_display_name") /** - * The new user display name. The length must be less than 256. + * The new user display name. The length must be less than 256 */ public String getUserDisplayName() { return this.userDisplayName; @@ -143,7 +142,7 @@ public boolean hasUserDisplayName() { } /** - * The new user display name. The length must be less than 256. + * The new user display name. The length must be less than 256 */ public SetUserInfoRequest setUserDisplayName(String d) { this.userDisplayName = d; @@ -154,7 +153,9 @@ public SetUserInfoRequest setUserDisplayName(String d) { @RequestField(name="user_password") /** - * The new user password. The length must be at least 6 symbols. + * The new user password. Must be at least 8 characters long and contain + * at least one uppercase and lowercase letter, one number, and one + * special character */ public String getUserPassword() { return this.userPassword; @@ -165,7 +166,9 @@ public boolean hasUserPassword() { } /** - * The new user password. The length must be at least 6 symbols. + * The new user password. Must be at least 8 characters long and contain + * at least one uppercase and lowercase letter, one number, and one + * special character */ public SetUserInfoRequest setUserPassword(String d) { this.userPassword = d; @@ -177,7 +180,7 @@ public SetUserInfoRequest setUserPassword(String d) { @RequestField(name="parent_accounting") /** * Set 'true' to use the parent account's money, 'false' to use a - * separate user balance. + * separate user balance */ public Boolean getParentAccounting() { return this.parentAccounting; @@ -189,7 +192,7 @@ public boolean hasParentAccounting() { /** * Set 'true' to use the parent account's money, 'false' to use a - * separate user balance. + * separate user balance */ public SetUserInfoRequest setParentAccounting(boolean d) { this.parentAccounting = Boolean.valueOf(d); @@ -244,7 +247,7 @@ public SetUserInfoRequest setUserCustomData(String d) { @RequestField(name="mobile_phone") /** - * The new user mobile phone. The length must be less than 50. + * The new user mobile phone. The length must be less than 50 */ public String getMobilePhone() { return this.mobilePhone; @@ -255,7 +258,7 @@ public boolean hasMobilePhone() { } /** - * The new user mobile phone. The length must be less than 50. + * The new user mobile phone. The length must be less than 50 */ public SetUserInfoRequest setMobilePhone(String d) { this.mobilePhone = d; diff --git a/src/main/java/com/voximplant/apiclient/request/StartConferenceRequest.java b/src/main/java/com/voximplant/apiclient/request/StartConferenceRequest.java index 03950f2..f5fc330 100644 --- a/src/main/java/com/voximplant/apiclient/request/StartConferenceRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/StartConferenceRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class StartConferenceRequest implements Alignable { @RequestField(name="conference_name") /** - * The conference name. The name length must be less than 50 symbols. + * The conference name. The name length must be less than 50 symbols */ public String getConferenceName() { return this.conferenceName; @@ -29,7 +30,7 @@ public boolean hasConferenceName() { } /** - * The conference name. The name length must be less than 50 symbols. + * The conference name. The name length must be less than 50 symbols */ public StartConferenceRequest setConferenceName(String d) { this.conferenceName = d; @@ -40,7 +41,8 @@ public StartConferenceRequest setConferenceName(String d) { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID that needs to be launched. Please note, the necessary + * scenario needs to be attached to the rule */ public Long getRuleId() { return this.ruleId; @@ -51,7 +53,8 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID that needs to be launched. Please note, the necessary + * scenario needs to be attached to the rule */ public StartConferenceRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -62,7 +65,7 @@ public StartConferenceRequest setRuleId(long d) { @RequestField(name="user_id") /** - * The user ID. Run the scripts from the user if set. + * The user ID. Run the scripts from the user if set */ public Long getUserId() { return this.userId; @@ -73,7 +76,7 @@ public boolean hasUserId() { } /** - * The user ID. Run the scripts from the user if set. + * The user ID. Run the scripts from the user if set */ public StartConferenceRequest setUserId(long d) { this.userId = Long.valueOf(d); @@ -85,7 +88,7 @@ public StartConferenceRequest setUserId(long d) { @RequestField(name="user_name") /** * The user name that can be used instead of user_id. Run the - * scripts from the user if set. + * scripts from the user if set */ public String getUserName() { return this.userName; @@ -97,7 +100,7 @@ public boolean hasUserName() { /** * The user name that can be used instead of user_id. Run the - * scripts from the user if set. + * scripts from the user if set */ public StartConferenceRequest setUserName(String d) { this.userName = d; @@ -108,7 +111,7 @@ public StartConferenceRequest setUserName(String d) { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -119,7 +122,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public StartConferenceRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -130,8 +133,7 @@ public StartConferenceRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -142,8 +144,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public StartConferenceRequest setApplicationName(String d) { this.applicationName = d; @@ -154,10 +155,11 @@ public StartConferenceRequest setApplicationName(String d) { @RequestField(name="script_custom_data") /** - * The script custom data (like a script argument). Can be accessed in - * JS scenario via the VoxEngine.customData() - * method + * The script custom data, that can be accessed in the scenario via the + * VoxEngine.customData() + * method. Use the application/x-www-form-urlencoded content type with + * UTF-8 encoding. */ public String getScriptCustomData() { return this.scriptCustomData; @@ -168,10 +170,11 @@ public boolean hasScriptCustomData() { } /** - * The script custom data (like a script argument). Can be accessed in - * JS scenario via the VoxEngine.customData() - * method + * The script custom data, that can be accessed in the scenario via the + * VoxEngine.customData() + * method. Use the application/x-www-form-urlencoded content type with + * UTF-8 encoding. */ public StartConferenceRequest setScriptCustomData(String d) { this.scriptCustomData = d; @@ -183,7 +186,7 @@ public StartConferenceRequest setScriptCustomData(String d) { @RequestField(name="reference_ip") /** * Specifies the IP from the geolocation of predicted subscribers. It - * allows selecting the nearest server for serving subscribers. + * allows selecting the nearest server for serving subscribers */ public String getReferenceIp() { return this.referenceIp; @@ -195,7 +198,7 @@ public boolean hasReferenceIp() { /** * Specifies the IP from the geolocation of predicted subscribers. It - * allows selecting the nearest server for serving subscribers. + * allows selecting the nearest server for serving subscribers */ public StartConferenceRequest setReferenceIp(String d) { this.referenceIp = d; diff --git a/src/main/java/com/voximplant/apiclient/request/StartNextCallTaskRequest.java b/src/main/java/com/voximplant/apiclient/request/StartNextCallTaskRequest.java index 74442e0..544abf4 100644 --- a/src/main/java/com/voximplant/apiclient/request/StartNextCallTaskRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/StartNextCallTaskRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class StartNextCallTaskRequest implements Alignable { @RequestField(name="list_id") /** - * The list of the call list IDs separated by the ';' symbol. + * The list of the call list IDs separated by semicolon (;) */ public MultiArgument getListId() { return this.listId; @@ -29,7 +30,7 @@ public boolean hasListId() { } /** - * The list of the call list IDs separated by the ';' symbol. + * The list of the call list IDs separated by semicolon (;) */ public StartNextCallTaskRequest setListId(MultiArgument d) { this.listId = d; @@ -40,8 +41,7 @@ public StartNextCallTaskRequest setListId(MultiArgument d) { @RequestField(name="custom_params") /** - * The custom param to pass the call initiator parameters to the - * scenario. + * The custom param to pass the call initiator parameters to the scenario */ public String getCustomParams() { return this.customParams; @@ -52,8 +52,7 @@ public boolean hasCustomParams() { } /** - * The custom param to pass the call initiator parameters to the - * scenario. + * The custom param to pass the call initiator parameters to the scenario */ public StartNextCallTaskRequest setCustomParams(String d) { this.customParams = d; diff --git a/src/main/java/com/voximplant/apiclient/request/StartScenariosRequest.java b/src/main/java/com/voximplant/apiclient/request/StartScenariosRequest.java index 18496bc..12d96aa 100644 --- a/src/main/java/com/voximplant/apiclient/request/StartScenariosRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/StartScenariosRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class StartScenariosRequest implements Alignable { @RequestField(name="user_id") /** - * The user ID. Run the scripts from the user if set. + * The user ID. Run the scripts from the user if set */ public Long getUserId() { return this.userId; @@ -29,7 +30,7 @@ public boolean hasUserId() { } /** - * The user ID. Run the scripts from the user if set. + * The user ID. Run the scripts from the user if set */ public StartScenariosRequest setUserId(long d) { this.userId = Long.valueOf(d); @@ -41,7 +42,7 @@ public StartScenariosRequest setUserId(long d) { @RequestField(name="user_name") /** * The user name that can be used instead of user_id. Run the - * scripts from the user if set. + * scripts from the user if set */ public String getUserName() { return this.userName; @@ -53,7 +54,7 @@ public boolean hasUserName() { /** * The user name that can be used instead of user_id. Run the - * scripts from the user if set. + * scripts from the user if set */ public StartScenariosRequest setUserName(String d) { this.userName = d; @@ -64,7 +65,7 @@ public StartScenariosRequest setUserName(String d) { @RequestField(name="application_id") /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -75,7 +76,7 @@ public boolean hasApplicationId() { } /** - * The application ID. + * The application ID */ public StartScenariosRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -86,8 +87,7 @@ public StartScenariosRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -98,8 +98,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public StartScenariosRequest setApplicationName(String d) { this.applicationName = d; @@ -110,7 +109,8 @@ public StartScenariosRequest setApplicationName(String d) { @RequestField(name="rule_id") /** - * The rule ID. + * The rule ID that needs to be launched. Please note, the necessary + * scenario needs to be attached to the rule */ public Long getRuleId() { return this.ruleId; @@ -121,7 +121,8 @@ public boolean hasRuleId() { } /** - * The rule ID. + * The rule ID that needs to be launched. Please note, the necessary + * scenario needs to be attached to the rule */ public StartScenariosRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -132,10 +133,11 @@ public StartScenariosRequest setRuleId(long d) { @RequestField(name="script_custom_data") /** - * The script custom data (like a script argument). Can be accessed in - * JS scenario via the VoxEngine.customData() - * method + * The script custom data, that can be accessed in the scenario via the + * VoxEngine.customData() + * method. Use the application/x-www-form-urlencoded content type with + * UTF-8 encoding. */ public String getScriptCustomData() { return this.scriptCustomData; @@ -146,10 +148,11 @@ public boolean hasScriptCustomData() { } /** - * The script custom data (like a script argument). Can be accessed in - * JS scenario via the VoxEngine.customData() - * method + * The script custom data, that can be accessed in the scenario via the + * VoxEngine.customData() + * method. Use the application/x-www-form-urlencoded content type with + * UTF-8 encoding. */ public StartScenariosRequest setScriptCustomData(String d) { this.scriptCustomData = d; @@ -161,7 +164,7 @@ public StartScenariosRequest setScriptCustomData(String d) { @RequestField(name="reference_ip") /** * Specifies the IP from the geolocation of predicted subscribers. It - * allows selecting the nearest server for serving subscribers. + * allows selecting the nearest server for serving subscribers */ public String getReferenceIp() { return this.referenceIp; @@ -173,7 +176,7 @@ public boolean hasReferenceIp() { /** * Specifies the IP from the geolocation of predicted subscribers. It - * allows selecting the nearest server for serving subscribers. + * allows selecting the nearest server for serving subscribers */ public StartScenariosRequest setReferenceIp(String d) { this.referenceIp = d; @@ -184,7 +187,7 @@ public StartScenariosRequest setReferenceIp(String d) { @RequestField(name="with_check_url") /** - * Set true to get media server session lists url. + * Set true to get media server session lists url */ public Boolean getWithCheckUrl() { return this.withCheckUrl; @@ -195,7 +198,7 @@ public boolean hasWithCheckUrl() { } /** - * Set true to get media server session lists url. + * Set true to get media server session lists url */ public StartScenariosRequest setWithCheckUrl(boolean d) { this.withCheckUrl = Boolean.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/StopCallListProcessingRequest.java b/src/main/java/com/voximplant/apiclient/request/StopCallListProcessingRequest.java index 2d4ed70..e94eef2 100644 --- a/src/main/java/com/voximplant/apiclient/request/StopCallListProcessingRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/StopCallListProcessingRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class StopCallListProcessingRequest implements Alignable { @RequestField(name="list_id") /** - * The list Id. + * The list Id */ public Long getListId() { return this.listId; @@ -29,7 +30,7 @@ public boolean hasListId() { } /** - * The list Id. + * The list Id */ public StopCallListProcessingRequest setListId(long d) { this.listId = Long.valueOf(d); diff --git a/src/main/java/com/voximplant/apiclient/request/TransferMoneyToUserRequest.java b/src/main/java/com/voximplant/apiclient/request/TransferMoneyToUserRequest.java index fa8b9dc..3a31066 100644 --- a/src/main/java/com/voximplant/apiclient/request/TransferMoneyToUserRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/TransferMoneyToUserRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,8 @@ public class TransferMoneyToUserRequest implements Alignable { @RequestField(name="user_id") /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public MultiArgument getUserId() { return this.userId; @@ -29,7 +31,8 @@ public boolean hasUserId() { } /** - * The user ID list separated by the ';' symbol or the 'all' value. + * The user ID list separated by semicolon (;). Use the 'all' value to + * select all users */ public TransferMoneyToUserRequest setUserId(MultiArgument d) { this.userId = d; @@ -40,8 +43,8 @@ public TransferMoneyToUserRequest setUserId(MultiArgument d) { @RequestField(name="user_name") /** - * The user name list separated by the ';' symbol that can be used - * instead of user_id. + * The user name list separated by semicolon (;) that can be used + * instead of user_id */ public MultiArgument getUserName() { return this.userName; @@ -52,8 +55,8 @@ public boolean hasUserName() { } /** - * The user name list separated by the ';' symbol that can be used - * instead of user_id. + * The user name list separated by semicolon (;) that can be used + * instead of user_id */ public TransferMoneyToUserRequest setUserName(MultiArgument d) { this.userName = d; @@ -89,7 +92,7 @@ public TransferMoneyToUserRequest setAmount(BigDecimal d) { @RequestField(name="application_id") /** * The application ID. It is required if the user_name is - * specified. + * specified */ public Long getApplicationId() { return this.applicationId; @@ -101,7 +104,7 @@ public boolean hasApplicationId() { /** * The application ID. It is required if the user_name is - * specified. + * specified */ public TransferMoneyToUserRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -112,8 +115,7 @@ public TransferMoneyToUserRequest setApplicationId(long d) { @RequestField(name="application_name") /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public String getApplicationName() { return this.applicationName; @@ -124,8 +126,7 @@ public boolean hasApplicationName() { } /** - * The application name that can be used instead of - * application_id. + * The application name that can be used instead of application_id */ public TransferMoneyToUserRequest setApplicationName(String d) { this.applicationName = d; @@ -136,7 +137,7 @@ public TransferMoneyToUserRequest setApplicationName(String d) { @RequestField(name="currency") /** - * The amount currency. Examples: RUR, EUR, USD. + * The amount currency. Examples: RUR, EUR, USD */ public String getCurrency() { return this.currency; @@ -147,7 +148,7 @@ public boolean hasCurrency() { } /** - * The amount currency. Examples: RUR, EUR, USD. + * The amount currency. Examples: RUR, EUR, USD */ public TransferMoneyToUserRequest setCurrency(String d) { this.currency = d; @@ -159,7 +160,7 @@ public TransferMoneyToUserRequest setCurrency(String d) { @RequestField(name="strict_mode") /** * Returns error if strict_mode is true and a user or the account hasn't - * enough money. + * enough money */ public Boolean getStrictMode() { return this.strictMode; @@ -171,7 +172,7 @@ public boolean hasStrictMode() { /** * Returns error if strict_mode is true and a user or the account hasn't - * enough money. + * enough money */ public TransferMoneyToUserRequest setStrictMode(boolean d) { this.strictMode = Boolean.valueOf(d); @@ -182,7 +183,7 @@ public TransferMoneyToUserRequest setStrictMode(boolean d) { @RequestField(name="user_transaction_description") /** - * The user transaction description. + * The user transaction description */ public String getUserTransactionDescription() { return this.userTransactionDescription; @@ -193,7 +194,7 @@ public boolean hasUserTransactionDescription() { } /** - * The user transaction description. + * The user transaction description */ public TransferMoneyToUserRequest setUserTransactionDescription(String d) { this.userTransactionDescription = d; diff --git a/src/main/java/com/voximplant/apiclient/request/UpdateKeyRequest.java b/src/main/java/com/voximplant/apiclient/request/UpdateKeyRequest.java index 4ee6a71..81f1028 100644 --- a/src/main/java/com/voximplant/apiclient/request/UpdateKeyRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/UpdateKeyRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -40,7 +41,7 @@ public UpdateKeyRequest setKeyId(String d) { @RequestField(name="description") /** - * The key's description. + * The key's description */ public String getDescription() { return this.description; @@ -51,7 +52,7 @@ public boolean hasDescription() { } /** - * The key's description. + * The key's description */ public UpdateKeyRequest setDescription(String d) { this.description = d; diff --git a/src/main/java/com/voximplant/apiclient/request/UpdateSipRegistrationRequest.java b/src/main/java/com/voximplant/apiclient/request/UpdateSipRegistrationRequest.java index a30341f..fe1dea2 100644 --- a/src/main/java/com/voximplant/apiclient/request/UpdateSipRegistrationRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/UpdateSipRegistrationRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -40,7 +41,7 @@ public UpdateSipRegistrationRequest setSipRegistrationId(long d) { @RequestField(name="sip_username") /** - * The user name. + * The user name */ public String getSipUsername() { return this.sipUsername; @@ -51,7 +52,7 @@ public boolean hasSipUsername() { } /** - * The user name. + * The user name */ public UpdateSipRegistrationRequest setSipUsername(String d) { this.sipUsername = d; @@ -151,7 +152,7 @@ public UpdateSipRegistrationRequest setPassword(String d) { @RequestField(name="application_id") /** * The application ID which the SIP registration will be bound to. Can - * be used instead of the application_name parameter. + * be used instead of the application_name parameter */ public Long getApplicationId() { return this.applicationId; @@ -163,7 +164,7 @@ public boolean hasApplicationId() { /** * The application ID which the SIP registration will be bound to. Can - * be used instead of the application_name parameter. + * be used instead of the application_name parameter */ public UpdateSipRegistrationRequest setApplicationId(long d) { this.applicationId = Long.valueOf(d); @@ -175,7 +176,7 @@ public UpdateSipRegistrationRequest setApplicationId(long d) { @RequestField(name="application_name") /** * The application name which the SIP registration will be bound to. Can - * be used instead of the application_id parameter. + * be used instead of the application_id parameter */ public String getApplicationName() { return this.applicationName; @@ -187,7 +188,7 @@ public boolean hasApplicationName() { /** * The application name which the SIP registration will be bound to. Can - * be used instead of the application_id parameter. + * be used instead of the application_id parameter */ public UpdateSipRegistrationRequest setApplicationName(String d) { this.applicationName = d; @@ -199,7 +200,7 @@ public UpdateSipRegistrationRequest setApplicationName(String d) { @RequestField(name="rule_id") /** * The rule ID which the SIP registration will be bound to. Can be used - * instead of the rule_name parameter. + * instead of the rule_name parameter */ public Long getRuleId() { return this.ruleId; @@ -211,7 +212,7 @@ public boolean hasRuleId() { /** * The rule ID which the SIP registration will be bound to. Can be used - * instead of the rule_name parameter. + * instead of the rule_name parameter */ public UpdateSipRegistrationRequest setRuleId(long d) { this.ruleId = Long.valueOf(d); @@ -223,7 +224,7 @@ public UpdateSipRegistrationRequest setRuleId(long d) { @RequestField(name="rule_name") /** * The rule name which the SIP registration will be bound to. Can be - * used instead of the rule_id parameter. + * used instead of the rule_id parameter */ public String getRuleName() { return this.ruleName; @@ -235,7 +236,7 @@ public boolean hasRuleName() { /** * The rule name which the SIP registration will be bound to. Can be - * used instead of the rule_id parameter. + * used instead of the rule_id parameter */ public UpdateSipRegistrationRequest setRuleName(String d) { this.ruleName = d; @@ -247,7 +248,7 @@ public UpdateSipRegistrationRequest setRuleName(String d) { @RequestField(name="user_id") /** * The user ID which the SIP registration will be bound to. Can be used - * instead of the user_name parameter. + * instead of the user_name parameter */ public Long getUserId() { return this.userId; @@ -259,7 +260,7 @@ public boolean hasUserId() { /** * The user ID which the SIP registration will be bound to. Can be used - * instead of the user_name parameter. + * instead of the user_name parameter */ public UpdateSipRegistrationRequest setUserId(long d) { this.userId = Long.valueOf(d); @@ -271,7 +272,7 @@ public UpdateSipRegistrationRequest setUserId(long d) { @RequestField(name="user_name") /** * The user name which the SIP registration will be bound to. Can be - * used instead of the user_id parameter. + * used instead of the user_id parameter */ public String getUserName() { return this.userName; @@ -283,7 +284,7 @@ public boolean hasUserName() { /** * The user name which the SIP registration will be bound to. Can be - * used instead of the user_id parameter. + * used instead of the user_id parameter */ public UpdateSipRegistrationRequest setUserName(String d) { this.userName = d; diff --git a/src/main/java/com/voximplant/apiclient/request/VerifyCallerIDRequest.java b/src/main/java/com/voximplant/apiclient/request/VerifyCallerIDRequest.java index a0aa6d9..6a41c00 100644 --- a/src/main/java/com/voximplant/apiclient/request/VerifyCallerIDRequest.java +++ b/src/main/java/com/voximplant/apiclient/request/VerifyCallerIDRequest.java @@ -4,6 +4,7 @@ import java.util.Date; import java.util.Map; import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; import com.voximplant.apiclient.util.MultiArgument; import com.fasterxml.jackson.databind.annotation.JsonDeserialize; import com.voximplant.apiclient.util.StringHelper; @@ -18,7 +19,7 @@ public class VerifyCallerIDRequest implements Alignable { @RequestField(name="callerid_id") /** - * The id of the callerID object. + * The id of the callerID object */ public Long getCalleridId() { return this.calleridId; @@ -29,7 +30,7 @@ public boolean hasCalleridId() { } /** - * The id of the callerID object. + * The id of the callerID object */ public VerifyCallerIDRequest setCalleridId(long d) { this.calleridId = Long.valueOf(d); @@ -40,7 +41,7 @@ public VerifyCallerIDRequest setCalleridId(long d) { @RequestField(name="callerid_number") /** - * The callerID number that can be used instead of callerid_id. + * The callerID number that can be used instead of callerid_id */ public String getCalleridNumber() { return this.calleridNumber; @@ -51,7 +52,7 @@ public boolean hasCalleridNumber() { } /** - * The callerID number that can be used instead of callerid_id. + * The callerID number that can be used instead of callerid_id */ public VerifyCallerIDRequest setCalleridNumber(String d) { this.calleridNumber = d; diff --git a/src/main/java/com/voximplant/apiclient/request/VerifyOutboundTestPhoneNumberRequest.java b/src/main/java/com/voximplant/apiclient/request/VerifyOutboundTestPhoneNumberRequest.java new file mode 100644 index 0000000..4fb4d9d --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/request/VerifyOutboundTestPhoneNumberRequest.java @@ -0,0 +1,33 @@ +package com.voximplant.apiclient.request; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.response.*; +import com.voximplant.apiclient.util.MultiArgument; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; +import com.voximplant.apiclient.util.DateSerializer; +import com.voximplant.apiclient.util.RequestField; +import com.voximplant.apiclient.util.SerializeUsing; +import com.voximplant.apiclient.util.TimestampSerializer; + +public class VerifyOutboundTestPhoneNumberRequest implements Alignable { + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ClassificationCompleteCallback.java b/src/main/java/com/voximplant/apiclient/response/A2PActivatedCallback.java similarity index 65% rename from src/main/java/com/voximplant/apiclient/response/ClassificationCompleteCallback.java rename to src/main/java/com/voximplant/apiclient/response/A2PActivatedCallback.java index f292b57..526b2b0 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClassificationCompleteCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/A2PActivatedCallback.java @@ -11,22 +11,22 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when A2P messages are activated. Received as part of the * [AccountCallback] structure. */ -public class ClassificationCompleteCallback implements Alignable { +public class A2PActivatedCallback implements Alignable { - private ClassificationCompleteCallbackItem classificationComplete; + private Boolean a2pEnabled; /** - * The classification info. + * A2P messages are allowed */ - public ClassificationCompleteCallbackItem getClassificationComplete() { - return this.classificationComplete; + public Boolean getA2pEnabled() { + return this.a2pEnabled; } - public boolean hasClassificationComplete() { - return this.classificationComplete != null; + public boolean hasA2pEnabled() { + return this.a2pEnabled != null; } public String toString(int alignment) { @@ -38,10 +38,10 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (classificationComplete != null) { + if (a2pEnabled != null) { sb.append(aligned) - .append("\"classificationComplete\": \"") - .append(classificationComplete) + .append("\"a2pEnabled\": \"") + .append(a2pEnabled) .append('"') .append(',') .append(System.lineSeparator()); diff --git a/src/main/java/com/voximplant/apiclient/response/A2PGetSmsHistoryResponse.java b/src/main/java/com/voximplant/apiclient/response/A2PGetSmsHistoryResponse.java index 2a64878..69d0951 100644 --- a/src/main/java/com/voximplant/apiclient/response/A2PGetSmsHistoryResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/A2PGetSmsHistoryResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * Total number of distinct messages fetched. + * Total number of messages matching the query parameters */ public Long getTotalCount() { return this.totalCount; diff --git a/src/main/java/com/voximplant/apiclient/response/A2PSendSmsResponse.java b/src/main/java/com/voximplant/apiclient/response/A2PSendSmsResponse.java index b420e5e..0f672ed 100644 --- a/src/main/java/com/voximplant/apiclient/response/A2PSendSmsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/A2PSendSmsResponse.java @@ -44,7 +44,7 @@ public boolean hasFailed() { private Long fragmentsCount; /** - * The number of fragments the message is divided into. + * The number of fragments the message is divided into */ public Long getFragmentsCount() { return this.fragmentsCount; diff --git a/src/main/java/com/voximplant/apiclient/response/A2PSmsDeliveryCallback.java b/src/main/java/com/voximplant/apiclient/response/A2PSmsDeliveryCallback.java index 0e76903..f90073c 100644 --- a/src/main/java/com/voximplant/apiclient/response/A2PSmsDeliveryCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/A2PSmsDeliveryCallback.java @@ -18,7 +18,7 @@ public class A2PSmsDeliveryCallback implements Alignable { private Long id; /** - * The SMS delivery ID. + * The SMS delivery ID */ public Long getId() { return this.id; @@ -31,7 +31,7 @@ public boolean hasId() { private String sourceNumber; /** - * The source number. + * The source number */ public String getSourceNumber() { return this.sourceNumber; @@ -44,7 +44,7 @@ public boolean hasSourceNumber() { private String status; /** - * The SMS delivery status. + * The SMS delivery status */ public String getStatus() { return this.status; @@ -57,7 +57,7 @@ public boolean hasStatus() { private String destinationNumbers; /** - * The destination number(s). + * The destination number(s) */ public String getDestinationNumbers() { return this.destinationNumbers; diff --git a/src/main/java/com/voximplant/apiclient/response/A2PSmsHistoryType.java b/src/main/java/com/voximplant/apiclient/response/A2PSmsHistoryType.java index 4febb73..4705db4 100644 --- a/src/main/java/com/voximplant/apiclient/response/A2PSmsHistoryType.java +++ b/src/main/java/com/voximplant/apiclient/response/A2PSmsHistoryType.java @@ -15,23 +15,23 @@ */ public class A2PSmsHistoryType implements Alignable { - private Long id; + private Long messageId; /** - * The message ID. + * Message ID */ - public Long getId() { - return this.id; + public Long getMessageId() { + return this.messageId; } - public boolean hasId() { - return this.id != null; + public boolean hasMessageId() { + return this.messageId != null; } private Long sourceNumber; /** - * SMS source number. + * SMS source number */ public Long getSourceNumber() { return this.sourceNumber; @@ -44,7 +44,7 @@ public boolean hasSourceNumber() { private Long destinationNumber; /** - * SMS destination number. + * SMS destination number */ public Long getDestinationNumber() { return this.destinationNumber; @@ -57,7 +57,7 @@ public boolean hasDestinationNumber() { private Long fragments; /** - * Number of fragments the initial message was divided into. + * Number of fragments the initial message was divided into */ public Long getFragments() { return this.fragments; @@ -70,7 +70,7 @@ public boolean hasFragments() { private BigDecimal cost; /** - * The message cost. + * The message cost */ public BigDecimal getCost() { return this.cost; @@ -80,12 +80,12 @@ public boolean hasCost() { return this.cost != null; } - private Long statusId; + private String statusId; /** - * The message status. 1 - Success, 2 - Error. + * The message status. 1 - Success, 2 - Error */ - public Long getStatusId() { + public String getStatusId() { return this.statusId; } @@ -96,7 +96,7 @@ public boolean hasStatusId() { private String errorMessage; /** - * Error message (if any). + * Error message (if any) */ public String getErrorMessage() { return this.errorMessage; @@ -123,7 +123,7 @@ public boolean hasProcessingDate() { private Long transactionId; /** - * The transaction ID for this message. + * The transaction ID for this message */ public Long getTransactionId() { return this.transactionId; @@ -147,6 +147,19 @@ public boolean hasDeliveryStatus() { return this.deliveryStatus != null; } + private String text; + + /** + * Stored message text + */ + public String getText() { + return this.text; + } + + public boolean hasText() { + return this.text != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -156,10 +169,10 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (id != null) { + if (messageId != null) { sb.append(aligned) - .append("\"id\": \"") - .append(id) + .append("\"messageId\": \"") + .append(messageId) .append('"') .append(',') .append(System.lineSeparator()); @@ -236,6 +249,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (text != null) { + sb.append(aligned) + .append("\"text\": \"") + .append(text) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/ACDAfterServiceOperatorStateType.java b/src/main/java/com/voximplant/apiclient/response/ACDAfterServiceOperatorStateType.java index 029ebca..697e1f7 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDAfterServiceOperatorStateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDAfterServiceOperatorStateType.java @@ -18,7 +18,7 @@ public class ACDAfterServiceOperatorStateType implements Alignable { private Long userId; /** - * The user ID of the operator. + * The user ID of the operator */ public Long getUserId() { return this.userId; @@ -31,7 +31,7 @@ public boolean hasUserId() { private String userName; /** - * The user name of the operator. + * The user name of the operator */ public String getUserName() { return this.userName; @@ -44,7 +44,7 @@ public boolean hasUserName() { private String userDisplayName; /** - * The display user name of the operator. + * The display user name of the operator */ public String getUserDisplayName() { return this.userDisplayName; @@ -58,8 +58,8 @@ public boolean hasUserDisplayName() { /** * The operator status - * string. + * href='/docs/references/websdk/voximplant/operatoracdstatuses'>status + * string */ public String getStatus() { return this.status; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDLock.java b/src/main/java/com/voximplant/apiclient/response/ACDLock.java index 7f3ebb0..491a3b9 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDLock.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDLock.java @@ -19,7 +19,7 @@ public class ACDLock implements Alignable { private String id; /** - * The ACD lock ID. + * The ACD lock ID */ public String getId() { return this.id; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDLockedOperatorStateType.java b/src/main/java/com/voximplant/apiclient/response/ACDLockedOperatorStateType.java index 5379b3c..8c7ea72 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDLockedOperatorStateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDLockedOperatorStateType.java @@ -18,7 +18,7 @@ public class ACDLockedOperatorStateType implements Alignable { private Long userId; /** - * The user ID of the operator. + * The user ID of the operator */ public Long getUserId() { return this.userId; @@ -31,7 +31,7 @@ public boolean hasUserId() { private String userName; /** - * The user name of the operator. + * The user name of the operator */ public String getUserName() { return this.userName; @@ -44,7 +44,7 @@ public boolean hasUserName() { private String userDisplayName; /** - * The display user name of the operator. + * The display user name of the operator */ public String getUserDisplayName() { return this.userDisplayName; @@ -72,7 +72,7 @@ public boolean hasUnreached() { private ACDLock[] locks; /** - * The operator locks. + * The operator locks */ public ACDLock[] getLocks() { return this.locks; @@ -85,7 +85,7 @@ public boolean hasLocks() { private ACDOperatorCall[] acdCalls; /** - * The ACD operator calls. + * The ACD operator calls */ public ACDOperatorCall[] getAcdCalls() { return this.acdCalls; @@ -99,10 +99,10 @@ public boolean hasAcdCalls() { /** * The operator status + * href='/docs/references/websdk/voximplant/operatoracdstatuses'>status * string. 'BANNED' string indicates temporarily banned - * operators. The following values are possible: READY, BANNED. + * href='/docs/guides/smartqueue/acdv1'>banned operators. The + * following values are possible: READY, BANNED */ public String getStatus() { return this.status; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDOperatorCall.java b/src/main/java/com/voximplant/apiclient/response/ACDOperatorCall.java index 2700c52..0291901 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDOperatorCall.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDOperatorCall.java @@ -18,7 +18,7 @@ public class ACDOperatorCall implements Alignable { private Long acdSessionHistoryId; /** - * The ACD session history ID of the request. + * The ACD session history ID of the request */ public Long getAcdSessionHistoryId() { return this.acdSessionHistoryId; @@ -31,7 +31,7 @@ public boolean hasAcdSessionHistoryId() { private String acdRequestId; /** - * The internal ACD session history ID. + * The internal ACD session history ID */ public String getAcdRequestId() { return this.acdRequestId; @@ -44,7 +44,7 @@ public boolean hasAcdRequestId() { private Long acdQueueId; /** - * The ACD queue ID. + * The ACD queue ID */ public Long getAcdQueueId() { return this.acdQueueId; @@ -57,7 +57,7 @@ public boolean hasAcdQueueId() { private String acdQueueName; /** - * The ACD queue name. + * The ACD queue name */ public String getAcdQueueName() { return this.acdQueueName; @@ -70,7 +70,7 @@ public boolean hasAcdQueueName() { private String callerid; /** - * The client callerid. + * The client callerid */ public String getCallerid() { return this.callerid; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDOperatorStatusStatisticsType.java b/src/main/java/com/voximplant/apiclient/response/ACDOperatorStatusStatisticsType.java index d572d7f..c1ed4aa 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDOperatorStatusStatisticsType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDOperatorStatusStatisticsType.java @@ -61,7 +61,7 @@ public boolean hasHour() { private ACDOperatorStatusStatisticsDetail[] acdStatus; /** - * The user statistics. + * The user statistics */ public ACDOperatorStatusStatisticsDetail[] getAcdStatus() { return this.acdStatus; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDQueueOperatorInfoType.java b/src/main/java/com/voximplant/apiclient/response/ACDQueueOperatorInfoType.java index e0c42be..75c8e27 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDQueueOperatorInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDQueueOperatorInfoType.java @@ -18,7 +18,7 @@ public class ACDQueueOperatorInfoType implements Alignable { private Long acdQueueId; /** - * The ACD queue ID. + * The ACD queue ID */ public Long getAcdQueueId() { return this.acdQueueId; @@ -31,7 +31,7 @@ public boolean hasAcdQueueId() { private String acdQueueName; /** - * The ACD queue name. + * The ACD queue name */ public String getAcdQueueName() { return this.acdQueueName; @@ -44,7 +44,7 @@ public boolean hasAcdQueueName() { private Boolean autoLink; /** - * The user is bound to the ACD queue in manual mode if false. + * The user is bound to the ACD queue in manual mode if false */ public Boolean getAutoLink() { return this.autoLink; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDQueueStateType.java b/src/main/java/com/voximplant/apiclient/response/ACDQueueStateType.java index 3b4189c..72916f5 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDQueueStateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDQueueStateType.java @@ -45,7 +45,7 @@ public boolean hasReadyOperators() { private Long readyOperatorsCount; /** - * Number of ready operators. + * Number of ready operators */ public Long getReadyOperatorsCount() { return this.readyOperatorsCount; @@ -73,7 +73,7 @@ public boolean hasLockedOperators() { private Long lockedOperatorsCount; /** - * Number of locked operators. + * Number of locked operators */ public Long getLockedOperatorsCount() { return this.lockedOperatorsCount; @@ -87,7 +87,7 @@ public boolean hasLockedOperatorsCount() { /** * List of operators with the 'AFTER_SERVICE' state. This state is set - * right after a call is ended to indicate a call postprocessing. + * right after a call is ended to indicate a call postprocessing */ public ACDAfterServiceOperatorStateType[] getAfterServiceOperators() { return this.afterServiceOperators; @@ -100,7 +100,7 @@ public boolean hasAfterServiceOperators() { private Long afterServiceOperatorCount; /** - * Number of operators with the 'AFTER SERVICE' state. + * Number of operators with the 'AFTER SERVICE' state */ public Long getAfterServiceOperatorCount() { return this.afterServiceOperatorCount; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDReadyOperatorStateType.java b/src/main/java/com/voximplant/apiclient/response/ACDReadyOperatorStateType.java index 789ba11..93788ec 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDReadyOperatorStateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDReadyOperatorStateType.java @@ -18,7 +18,7 @@ public class ACDReadyOperatorStateType implements Alignable { private Long userId; /** - * The user ID of the operator. + * The user ID of the operator */ public Long getUserId() { return this.userId; @@ -31,7 +31,7 @@ public boolean hasUserId() { private String userName; /** - * The user name of the operator. + * The user name of the operator */ public String getUserName() { return this.userName; @@ -44,7 +44,7 @@ public boolean hasUserName() { private String userDisplayName; /** - * The display user name of the operator. + * The display user name of the operator */ public String getUserDisplayName() { return this.userDisplayName; @@ -59,7 +59,7 @@ public boolean hasUserDisplayName() { /** * The idle duration in seconds. The minimum of the duration after the * last hangup and the duration after the operator status changing to - * READY. + * READY */ public Long getIdleDuration() { return this.idleDuration; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDServicingCallStateType.java b/src/main/java/com/voximplant/apiclient/response/ACDServicingCallStateType.java index cc4583f..9b18a18 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDServicingCallStateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDServicingCallStateType.java @@ -18,7 +18,7 @@ public class ACDServicingCallStateType implements Alignable { private Long userId; /** - * The user ID of the operator. + * The user ID of the operator */ public Long getUserId() { return this.userId; @@ -31,7 +31,7 @@ public boolean hasUserId() { private String userName; /** - * The user name of the operator. + * The user name of the operator */ public String getUserName() { return this.userName; @@ -44,7 +44,7 @@ public boolean hasUserName() { private String userDisplayName; /** - * The display user name of the operator. + * The display user name of the operator */ public String getUserDisplayName() { return this.userDisplayName; @@ -57,7 +57,7 @@ public boolean hasUserDisplayName() { private Long priority; /** - * The request priority. + * The request priority */ public Long getPriority() { return this.priority; @@ -70,7 +70,7 @@ public boolean hasPriority() { private String callerid; /** - * The client callerid. + * The client callerid */ public String getCallerid() { return this.callerid; @@ -97,7 +97,7 @@ public boolean hasBeginTime() { private Long waitingTime; /** - * The waiting time before servicing in seconds. + * The waiting time before servicing in seconds */ public Long getWaitingTime() { return this.waitingTime; @@ -110,7 +110,7 @@ public boolean hasWaitingTime() { private Long acdSessionHistoryId; /** - * The ACD session history ID of the request. + * The ACD session history ID of the request */ public Long getAcdSessionHistoryId() { return this.acdSessionHistoryId; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDSessionEventInfoType.java b/src/main/java/com/voximplant/apiclient/response/ACDSessionEventInfoType.java index 9dd7b28..4e3ceb3 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDSessionEventInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDSessionEventInfoType.java @@ -18,7 +18,7 @@ public class ACDSessionEventInfoType implements Alignable { private Long acdSessionEventId; /** - * The ACD session event ID. + * The ACD session event ID */ public Long getAcdSessionEventId() { return this.acdSessionEventId; @@ -45,7 +45,7 @@ public boolean hasTime() { private String type; /** - * The event type name. + * The event type name */ public String getType() { return this.type; @@ -58,7 +58,7 @@ public boolean hasType() { private Long userId; /** - * The user ID. + * The user ID */ public Long getUserId() { return this.userId; @@ -71,7 +71,7 @@ public boolean hasUserId() { private String customData; /** - * The custom data. + * The custom data */ public String getCustomData() { return this.customData; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDSessionInfoType.java b/src/main/java/com/voximplant/apiclient/response/ACDSessionInfoType.java index 6c2d85d..e9b38e5 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDSessionInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDSessionInfoType.java @@ -18,7 +18,7 @@ public class ACDSessionInfoType implements Alignable { private Long acdSessionHistoryId; /** - * The ACD session history ID. + * The ACD session history ID */ public Long getAcdSessionHistoryId() { return this.acdSessionHistoryId; @@ -32,8 +32,8 @@ public boolean hasAcdSessionHistoryId() { /** * The ACD request ID. See the - * [ACDRequest.id()](https://voximplant.com/docs/references/voxengine/acd/acdrequest#id) - * VoxEngine method. + * [ACDRequest.id()](/docs/references/voxengine/acd/acdrequest#id) + * VoxEngine method */ public String getAcdRequestId() { return this.acdRequestId; @@ -46,7 +46,7 @@ public boolean hasAcdRequestId() { private Long accountId; /** - * The account ID. + * The account ID */ public Long getAccountId() { return this.accountId; @@ -73,7 +73,7 @@ public boolean hasBeginTime() { private Long priority; /** - * The request priority. + * The request priority */ public Long getPriority() { return this.priority; @@ -86,7 +86,7 @@ public boolean hasPriority() { private Long acdQueueId; /** - * The ACD queue ID. + * The ACD queue ID */ public Long getAcdQueueId() { return this.acdQueueId; @@ -99,7 +99,7 @@ public boolean hasAcdQueueId() { private Long userId; /** - * The user ID. + * The user ID */ public Long getUserId() { return this.userId; @@ -112,7 +112,7 @@ public boolean hasUserId() { private Long waitingDuration; /** - * The waiting duration in seconds. + * The waiting duration in seconds */ public Long getWaitingDuration() { return this.waitingDuration; @@ -125,7 +125,7 @@ public boolean hasWaitingDuration() { private Long inServiceDuration; /** - * The conversation duration in seconds. + * The conversation duration in seconds */ public Long getInServiceDuration() { return this.inServiceDuration; @@ -138,7 +138,7 @@ public boolean hasInServiceDuration() { private Long afterServiceDuration; /** - * The after service duration in seconds. + * The after service duration in seconds */ public Long getAfterServiceDuration() { return this.afterServiceDuration; @@ -151,7 +151,7 @@ public boolean hasAfterServiceDuration() { private ACDSessionEventInfoType[] events; /** - * The bound events. + * The bound events */ public ACDSessionEventInfoType[] getEvents() { return this.events; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDStateType.java b/src/main/java/com/voximplant/apiclient/response/ACDStateType.java index 519f088..76b2419 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDStateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDStateType.java @@ -18,7 +18,7 @@ public class ACDStateType implements Alignable { private ACDQueueStateType[] acdQueues; /** - * The queues' states. + * The queues' states */ public ACDQueueStateType[] getAcdQueues() { return this.acdQueues; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDStatisticsCalls.java b/src/main/java/com/voximplant/apiclient/response/ACDStatisticsCalls.java index 0f56bab..5d23c95 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDStatisticsCalls.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDStatisticsCalls.java @@ -18,7 +18,7 @@ public class ACDStatisticsCalls implements Alignable { private Long count; /** - * Absolute number of calls. + * Absolute number of calls */ public Long getCount() { return this.count; @@ -32,7 +32,7 @@ public boolean hasCount() { /** * Percentage of answered/rejected/unanswered calls, is counted against - * total number of calls. + * total number of calls */ public Long getPercent() { return this.percent; diff --git a/src/main/java/com/voximplant/apiclient/response/ACDWaitingCallStateType.java b/src/main/java/com/voximplant/apiclient/response/ACDWaitingCallStateType.java index c6b003c..83c9cde 100644 --- a/src/main/java/com/voximplant/apiclient/response/ACDWaitingCallStateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ACDWaitingCallStateType.java @@ -18,7 +18,7 @@ public class ACDWaitingCallStateType implements Alignable { private Long userId; /** - * The user ID of the operator to try to service the request. + * The user ID of the operator to try to service the request */ public Long getUserId() { return this.userId; @@ -31,7 +31,7 @@ public boolean hasUserId() { private String userName; /** - * The user name of the operator. + * The user name of the operator */ public String getUserName() { return this.userName; @@ -44,7 +44,7 @@ public boolean hasUserName() { private String userDisplayName; /** - * The display user name of the operator. + * The display user name of the operator */ public String getUserDisplayName() { return this.userDisplayName; @@ -57,7 +57,7 @@ public boolean hasUserDisplayName() { private Long priority; /** - * The request priority. + * The request priority */ public Long getPriority() { return this.priority; @@ -70,7 +70,7 @@ public boolean hasPriority() { private String callerid; /** - * The client callerid. + * The client callerid */ public String getCallerid() { return this.callerid; @@ -97,7 +97,7 @@ public boolean hasBeginTime() { private Long waitingTime; /** - * The waiting time in seconds. + * The waiting time in seconds */ public Long getWaitingTime() { return this.waitingTime; @@ -110,7 +110,7 @@ public boolean hasWaitingTime() { private Long minutesToSubmit; /** - * The predicted minutes left to start servicing. + * The predicted minutes left to start servicing */ public Long getMinutesToSubmit() { return this.minutesToSubmit; @@ -123,7 +123,7 @@ public boolean hasMinutesToSubmit() { private Long acdSessionHistoryId; /** - * The ACD session history ID of the request. + * The ACD session history ID of the request */ public Long getAcdSessionHistoryId() { return this.acdSessionHistoryId; diff --git a/src/main/java/com/voximplant/apiclient/response/API_Error.java b/src/main/java/com/voximplant/apiclient/response/API_Error.java index 617be8e..d5beeb0 100644 --- a/src/main/java/com/voximplant/apiclient/response/API_Error.java +++ b/src/main/java/com/voximplant/apiclient/response/API_Error.java @@ -18,7 +18,7 @@ public class API_Error implements Alignable { private Long code; /** - * The error code. + * The error code */ public Long getCode() { return this.code; @@ -31,7 +31,7 @@ public boolean hasCode() { private String msg; /** - * The error description. + * The error description */ public String getMsg() { return this.msg; diff --git a/src/main/java/com/voximplant/apiclient/response/AccountCallback.java b/src/main/java/com/voximplant/apiclient/response/AccountCallback.java index 41b0630..212079c 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountCallback.java @@ -18,7 +18,7 @@ public class AccountCallback implements Alignable { private Long callbackId; /** - * The callback ID (sequence). + * The callback ID (sequence) */ public Long getCallbackId() { return this.callbackId; @@ -31,15 +31,7 @@ public boolean hasCallbackId() { private String type; /** - * The callback type. The following values are possible: - * account_document_verified, account_is_frozen, account_is_unfrozen, - * activate_successful, call_history_report, card_expired, - * card_expires_in_month, card_payment, card_payment_failed, js_fail, - * min_balance, regulation_address_verified, renewed_subscriptions, - * reset_account_password_request, sip_registration_fail, - * stagnant_account, subscription_is_detached, subscription_is_frozen, - * transaction_history_report, plan_config, - * unverified_subscription_detached, sms_inbound. + * The callback type */ public String getType() { return this.type; @@ -52,7 +44,7 @@ public boolean hasType() { private Long accountId; /** - * The account ID. + * The account ID */ public Long getAccountId() { return this.accountId; @@ -79,7 +71,7 @@ public boolean hasHash() { private String accountName; /** - * The account name. + * The account name */ public String getAccountName() { return this.accountName; @@ -92,7 +84,7 @@ public boolean hasAccountName() { private String accountEmail; /** - * The account email. + * The account email */ public String getAccountEmail() { return this.accountEmail; @@ -118,7 +110,7 @@ public boolean hasLanguageCode() { private String accountFirstName; /** - * The first name. + * The first name */ public String getAccountFirstName() { return this.accountFirstName; @@ -131,7 +123,7 @@ public boolean hasAccountFirstName() { private String accountLastName; /** - * The last name. + * The last name */ public String getAccountLastName() { return this.accountLastName; @@ -144,7 +136,7 @@ public boolean hasAccountLastName() { private BigDecimal balance; /** - * The account's money. + * The account's money */ public BigDecimal getBalance() { return this.balance; @@ -157,7 +149,7 @@ public boolean hasBalance() { private String currency; /** - * The currency code (USD, RUR, EUR, ...). + * The currency code (USD, RUR, EUR, ...) */ public String getCurrency() { return this.currency; @@ -170,7 +162,8 @@ public boolean hasCurrency() { private AccountDocumentUploadedCallback accountDocumentUploaded; /** - * The specific account callback details. + * Deprecated. Please use the unified + * account_document_status_updated callback instead */ public AccountDocumentUploadedCallback getAccountDocumentUploaded() { return this.accountDocumentUploaded; @@ -183,7 +176,7 @@ public boolean hasAccountDocumentUploaded() { private RegulationAddressUploadedCallback regulationAddressUploaded; /** - * The specific account callback details. + * Received when proof of address is uploaded */ public RegulationAddressUploadedCallback getRegulationAddressUploaded() { return this.regulationAddressUploaded; @@ -196,7 +189,8 @@ public boolean hasRegulationAddressUploaded() { private AccountDocumentVerifiedCallback accountDocumentVerified; /** - * The specific account callback details. + * Deprecated. Please use the unified + * account_document_status_updated callback instead */ public AccountDocumentVerifiedCallback getAccountDocumentVerified() { return this.accountDocumentVerified; @@ -209,7 +203,7 @@ public boolean hasAccountDocumentVerified() { private AccountIsFrozenCallback accountIsFrozen; /** - * The specific account callback details. + * Received when an account is frozen */ public AccountIsFrozenCallback getAccountIsFrozen() { return this.accountIsFrozen; @@ -222,7 +216,7 @@ public boolean hasAccountIsFrozen() { private AccountIsUnfrozenCallback accountIsUnfrozen; /** - * The specific account callback details. + * Received when an account is unfrozen */ public AccountIsUnfrozenCallback getAccountIsUnfrozen() { return this.accountIsUnfrozen; @@ -235,7 +229,7 @@ public boolean hasAccountIsUnfrozen() { private ActivateSuccessfulCallback activateSuccessful; /** - * The specific account callback details. + * Received when a new (not child) account is created */ public ActivateSuccessfulCallback getActivateSuccessful() { return this.activateSuccessful; @@ -248,7 +242,7 @@ public boolean hasActivateSuccessful() { private CallHistoryReportCallback callHistoryReport; /** - * The specific account callback details. + * Received when a call history report is ready */ public CallHistoryReportCallback getCallHistoryReport() { return this.callHistoryReport; @@ -261,7 +255,7 @@ public boolean hasCallHistoryReport() { private CardExpiredCallback cardExpired; /** - * The specific account callback details. + * Received when a card is expired */ public CardExpiredCallback getCardExpired() { return this.cardExpired; @@ -274,7 +268,7 @@ public boolean hasCardExpired() { private CardExpiresInMonthCallback cardExpiresInMonth; /** - * The specific account callback details. + * Received when one month is left for a card to be expired */ public CardExpiresInMonthCallback getCardExpiresInMonth() { return this.cardExpiresInMonth; @@ -287,7 +281,7 @@ public boolean hasCardExpiresInMonth() { private CardPaymentCallback cardPayment; /** - * The specific account callback details. + * Received when a bank card payment is made */ public CardPaymentCallback getCardPayment() { return this.cardPayment; @@ -300,7 +294,7 @@ public boolean hasCardPayment() { private CardPaymentFailedCallback cardPaymentFailed; /** - * The specific account callback details. + * Received when a bank card payment is failed */ public CardPaymentFailedCallback getCardPaymentFailed() { return this.cardPaymentFailed; @@ -313,7 +307,7 @@ public boolean hasCardPaymentFailed() { private RobokassaPaymentCallback robokassaPayment; /** - * The specific account callback details. + * Received when a robokassa payment is made */ public RobokassaPaymentCallback getRobokassaPayment() { return this.robokassaPayment; @@ -326,7 +320,7 @@ public boolean hasRobokassaPayment() { private WireTransferCallback wireTransfer; /** - * The specific account callback details. + * Received when a wire transfer is made */ public WireTransferCallback getWireTransfer() { return this.wireTransfer; @@ -339,8 +333,9 @@ public boolean hasWireTransfer() { private JSFailCallback jsFail; /** - * The specific account callback details. See the 'send_js_error' - * parameter of the 'SetAccountInfo' function. + * Received when send_js_error is set to true and a JS error + * occures. See the 'send_js_error' parameter of the 'SetAccountInfo' + * function */ public JSFailCallback getJsFail() { return this.jsFail; @@ -353,7 +348,7 @@ public boolean hasJsFail() { private MinBalanceCallback minBalance; /** - * The specific account callback details. + * Received when the minimum balance is reached */ public MinBalanceCallback getMinBalance() { return this.minBalance; @@ -366,7 +361,7 @@ public boolean hasMinBalance() { private RegulationAddressVerifiedCallback regulationAddressVerified; /** - * The specific account callback details. + * Received when proof of address is verified */ public RegulationAddressVerifiedCallback getRegulationAddressVerified() { return this.regulationAddressVerified; @@ -379,7 +374,7 @@ public boolean hasRegulationAddressVerified() { private RenewedSubscriptionsCallback renewedSubscriptions; /** - * The specific account callback details. + * Received when subscriptions are renewed */ public RenewedSubscriptionsCallback getRenewedSubscriptions() { return this.renewedSubscriptions; @@ -392,7 +387,7 @@ public boolean hasRenewedSubscriptions() { private ResetAccountPasswordRequestCallback resetAccountPasswordRequest; /** - * The specific account callback details. + * Received when an account password reset is requested */ public ResetAccountPasswordRequestCallback getResetAccountPasswordRequest() { return this.resetAccountPasswordRequest; @@ -405,7 +400,7 @@ public boolean hasResetAccountPasswordRequest() { private SIPRegistrationFailCallback sipRegistrationFail; /** - * The specific account callback details. + * Received when one or several SIP registrations are failed */ public SIPRegistrationFailCallback getSipRegistrationFail() { return this.sipRegistrationFail; @@ -415,10 +410,23 @@ public boolean hasSipRegistrationFail() { return this.sipRegistrationFail != null; } + private SIPRegistrationRecoveredCallback sipRegistrationRecovered; + + /** + * Received when one or several SIP registrations are recovered + */ + public SIPRegistrationRecoveredCallback getSipRegistrationRecovered() { + return this.sipRegistrationRecovered; + } + + public boolean hasSipRegistrationRecovered() { + return this.sipRegistrationRecovered != null; + } + private StagnantAccountCallback stagnantAccount; /** - * The specific account callback details. + * Received when there are no actions in accounts after their creation */ public StagnantAccountCallback getStagnantAccount() { return this.stagnantAccount; @@ -431,7 +439,7 @@ public boolean hasStagnantAccount() { private SubscriptionIsFrozenCallback subscriptionIsFrozen; /** - * The specific account callback details. + * Received when a subscription is frozen */ public SubscriptionIsFrozenCallback getSubscriptionIsFrozen() { return this.subscriptionIsFrozen; @@ -444,7 +452,7 @@ public boolean hasSubscriptionIsFrozen() { private SubscriptionIsDetachedCallback subscriptionIsDetached; /** - * The specific account callback details. + * Received when a subscription is canceled */ public SubscriptionIsDetachedCallback getSubscriptionIsDetached() { return this.subscriptionIsDetached; @@ -457,7 +465,7 @@ public boolean hasSubscriptionIsDetached() { private TransactionHistoryReportCallback transactionHistoryReport; /** - * The specific account callback details. + * Received when a transaction history report is ready */ public TransactionHistoryReportCallback getTransactionHistoryReport() { return this.transactionHistoryReport; @@ -470,7 +478,7 @@ public boolean hasTransactionHistoryReport() { private PlanConfigCallback planConfig; /** - * The specific account callback details. + * Received when a plan (IM, MAU) is changed */ public PlanConfigCallback getPlanConfig() { return this.planConfig; @@ -483,7 +491,7 @@ public boolean hasPlanConfig() { private UnverifiedSubscriptionDetachedCallback unverifiedSubscriptionDetached; /** - * The specific account callback details. + * Received when an unverified subscription is canceled */ public UnverifiedSubscriptionDetachedCallback getUnverifiedSubscriptionDetached() { return this.unverifiedSubscriptionDetached; @@ -496,7 +504,7 @@ public boolean hasUnverifiedSubscriptionDetached() { private ExpiringCallerIDCallback expiringCallerid; /** - * The specific account callback details. + * Received when a caller ID is about to be expired */ public ExpiringCallerIDCallback getExpiringCallerid() { return this.expiringCallerid; @@ -509,7 +517,7 @@ public boolean hasExpiringCallerid() { private ExpiredCallerIDCallback expiredCallerid; /** - * The specific account callback details. + * Received when a caller ID is expired */ public ExpiredCallerIDCallback getExpiredCallerid() { return this.expiredCallerid; @@ -522,7 +530,7 @@ public boolean hasExpiredCallerid() { private TranscriptionCompleteCallback transcriptionComplete; /** - * The specific account callback details. + * Received when a transcription is saved */ public TranscriptionCompleteCallback getTranscriptionComplete() { return this.transcriptionComplete; @@ -532,23 +540,10 @@ public boolean hasTranscriptionComplete() { return this.transcriptionComplete != null; } - private ClassificationCompleteCallback classificationComplete; - - /** - * The specific account callback details. - */ - public ClassificationCompleteCallback getClassificationComplete() { - return this.classificationComplete; - } - - public boolean hasClassificationComplete() { - return this.classificationComplete != null; - } - private InboundSmsCallback smsInbound; /** - * The specific account callback details. + * Received when an inbound SMS is gotten */ public InboundSmsCallback getSmsInbound() { return this.smsInbound; @@ -561,7 +556,7 @@ public boolean hasSmsInbound() { private NewInvoiceCallback newInvoice; /** - * The specific account callback details. + * Received when a new invoice is generated */ public NewInvoiceCallback getNewInvoice() { return this.newInvoice; @@ -574,7 +569,8 @@ public boolean hasNewInvoice() { private ExpiringAgreementCallback expiringAgreement; /** - * The specific account callback details. + * Received for the accounts for which the confirmation documents + * waiting period expires in 20/15/10/5/1 day(s) */ public ExpiringAgreementCallback getExpiringAgreement() { return this.expiringAgreement; @@ -587,7 +583,8 @@ public boolean hasExpiringAgreement() { private ExpiredAgreementCallback expiredAgreement; /** - * The specific account callback details. + * Received for the accounts for which the confirmation documents + * waiting period has already expired or expires today */ public ExpiredAgreementCallback getExpiredAgreement() { return this.expiredAgreement; @@ -600,7 +597,8 @@ public boolean hasExpiredAgreement() { private RestoredAgreementStatusCallback restoredAgreementStatus; /** - * The specific account callback details. + * Received when an expiration date of the confirmation documents + * waiting period is changed */ public RestoredAgreementStatusCallback getRestoredAgreementStatus() { return this.restoredAgreementStatus; @@ -613,7 +611,7 @@ public boolean hasRestoredAgreementStatus() { private BalanceIsChanged balanceIsChanged; /** - * The specific account callback details. + * Received when an account is refilled */ public BalanceIsChanged getBalanceIsChanged() { return this.balanceIsChanged; @@ -623,6 +621,113 @@ public boolean hasBalanceIsChanged() { return this.balanceIsChanged != null; } + private NextChargeAlertCallback nextChargeAlert; + + /** + * Received when a plan is to be renewed in 3 days, but there is not + * enough money + */ + public NextChargeAlertCallback getNextChargeAlert() { + return this.nextChargeAlert; + } + + public boolean hasNextChargeAlert() { + return this.nextChargeAlert != null; + } + + private CertificateExpiredCallback certificateExpired; + + /** + * Deprecated. Please use the expired_certificates and + * expiring_certificates callbacks instead + */ + public CertificateExpiredCallback getCertificateExpired() { + return this.certificateExpired; + } + + public boolean hasCertificateExpired() { + return this.certificateExpired != null; + } + + private ExpiredCertificateCallback expiredCertificates; + + /** + * Received for the accounts whose Apple VOIP certificates are expired + */ + public ExpiredCertificateCallback getExpiredCertificates() { + return this.expiredCertificates; + } + + public boolean hasExpiredCertificates() { + return this.expiredCertificates != null; + } + + private ExpiringCertificateCallback expiringCertificates; + + /** + * Received for the accounts whose Apple VOIP certificates expire in 14 + * or fewer days + */ + public ExpiringCertificateCallback getExpiringCertificates() { + return this.expiringCertificates; + } + + public boolean hasExpiringCertificates() { + return this.expiringCertificates != null; + } + + private AccountDocumentStatusUpdatedCallback accountDocumentStatusUpdated; + + /** + * Received when the verification status is updated + */ + public AccountDocumentStatusUpdatedCallback getAccountDocumentStatusUpdated() { + return this.accountDocumentStatusUpdated; + } + + public boolean hasAccountDocumentStatusUpdated() { + return this.accountDocumentStatusUpdated != null; + } + + private A2PActivatedCallback a2pSmsActivated; + + /** + * Received when A2P SMS are activated + */ + public A2PActivatedCallback getA2pSmsActivated() { + return this.a2pSmsActivated; + } + + public boolean hasA2pSmsActivated() { + return this.a2pSmsActivated != null; + } + + private RegulationAddressDocumentsRequestedCallback regulationAddressDocumentsRequested; + + /** + * Received when the verification status is changed to PENDING + */ + public RegulationAddressDocumentsRequestedCallback getRegulationAddressDocumentsRequested() { + return this.regulationAddressDocumentsRequested; + } + + public boolean hasRegulationAddressDocumentsRequested() { + return this.regulationAddressDocumentsRequested != null; + } + + private InvoiceReceivedCallback invoiceReceived; + + /** + * Received when a monthly invoice is sent + */ + public InvoiceReceivedCallback getInvoiceReceived() { + return this.invoiceReceived; + } + + public boolean hasInvoiceReceived() { + return this.invoiceReceived != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -872,6 +977,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (sipRegistrationRecovered != null) { + sb.append(aligned) + .append("\"sipRegistrationRecovered\": \"") + .append(sipRegistrationRecovered) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (stagnantAccount != null) { sb.append(aligned) .append("\"stagnantAccount\": \"") @@ -944,14 +1057,6 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } - if (classificationComplete != null) { - sb.append(aligned) - .append("\"classificationComplete\": \"") - .append(classificationComplete) - .append('"') - .append(',') - .append(System.lineSeparator()); - } if (smsInbound != null) { sb.append(aligned) .append("\"smsInbound\": \"") @@ -1000,6 +1105,70 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (nextChargeAlert != null) { + sb.append(aligned) + .append("\"nextChargeAlert\": \"") + .append(nextChargeAlert) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (certificateExpired != null) { + sb.append(aligned) + .append("\"certificateExpired\": \"") + .append(certificateExpired) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (expiredCertificates != null) { + sb.append(aligned) + .append("\"expiredCertificates\": \"") + .append(expiredCertificates) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (expiringCertificates != null) { + sb.append(aligned) + .append("\"expiringCertificates\": \"") + .append(expiringCertificates) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (accountDocumentStatusUpdated != null) { + sb.append(aligned) + .append("\"accountDocumentStatusUpdated\": \"") + .append(accountDocumentStatusUpdated) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (a2pSmsActivated != null) { + sb.append(aligned) + .append("\"a2pSmsActivated\": \"") + .append(a2pSmsActivated) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (regulationAddressDocumentsRequested != null) { + sb.append(aligned) + .append("\"regulationAddressDocumentsRequested\": \"") + .append(regulationAddressDocumentsRequested) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (invoiceReceived != null) { + sb.append(aligned) + .append("\"invoiceReceived\": \"") + .append(invoiceReceived) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/AccountCallbacks.java b/src/main/java/com/voximplant/apiclient/response/AccountCallbacks.java index 51012c3..42e71b4 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountCallbacks.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountCallbacks.java @@ -11,16 +11,16 @@ import com.voximplant.apiclient.util.Alignable; /** -* The HTTP account callbacks body. See this article -* for details. +* The account callbacks body. See this article for +* details. */ public class AccountCallbacks implements Alignable { private AccountCallback[] callbacks; /** - * The account callback array. + * The account callback array */ public AccountCallback[] getCallbacks() { return this.callbacks; diff --git a/src/main/java/com/voximplant/apiclient/response/AccountDocumentStatusUpdatedCallback.java b/src/main/java/com/voximplant/apiclient/response/AccountDocumentStatusUpdatedCallback.java new file mode 100644 index 0000000..7c0663e --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/AccountDocumentStatusUpdatedCallback.java @@ -0,0 +1,164 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Received when the verification status is updated. Received as part of +* the [AccountCallback] structure. +*/ +public class AccountDocumentStatusUpdatedCallback implements Alignable { + + private Long accountDocumentId; + + /** + * Uploaded document ID + */ + public Long getAccountDocumentId() { + return this.accountDocumentId; + } + + public boolean hasAccountDocumentId() { + return this.accountDocumentId != null; + } + + private String previousAccountDocumentStatus; + + /** + * Previous document verification status. The following values are + * possible: WAITING_CONFIRMATION_DOCS, VERIFIED, REJECTED + */ + public String getPreviousAccountDocumentStatus() { + return this.previousAccountDocumentStatus; + } + + public boolean hasPreviousAccountDocumentStatus() { + return this.previousAccountDocumentStatus != null; + } + + private String accountDocumentStatus; + + /** + * Document verification status. The following values are possible: + * WAITING_CONFIRMATION_DOCS, VERIFIED, REJECTED + */ + public String getAccountDocumentStatus() { + return this.accountDocumentStatus; + } + + public boolean hasAccountDocumentStatus() { + return this.accountDocumentStatus != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date updateTime; + + /** + * UTC time when the status is updated + */ + public Date getUpdateTime() { + return this.updateTime; + } + + public boolean hasUpdateTime() { + return this.updateTime != null; + } + + private String comment; + + /** + * Reviewer's comment + */ + public String getComment() { + return this.comment; + } + + public boolean hasComment() { + return this.comment != null; + } + + private String legalStatus; + + /** + * Status of the user in the context of entrepreneurial activity. + * Possible values are 'individual', 'entrepreneur', 'legal entity' + */ + public String getLegalStatus() { + return this.legalStatus; + } + + public boolean hasLegalStatus() { + return this.legalStatus != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (accountDocumentId != null) { + sb.append(aligned) + .append("\"accountDocumentId\": \"") + .append(accountDocumentId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (previousAccountDocumentStatus != null) { + sb.append(aligned) + .append("\"previousAccountDocumentStatus\": \"") + .append(previousAccountDocumentStatus) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (accountDocumentStatus != null) { + sb.append(aligned) + .append("\"accountDocumentStatus\": \"") + .append(accountDocumentStatus) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (updateTime != null) { + sb.append(aligned) + .append("\"updateTime\": \"") + .append(updateTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (comment != null) { + sb.append(aligned) + .append("\"comment\": \"") + .append(comment) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (legalStatus != null) { + sb.append(aligned) + .append("\"legalStatus\": \"") + .append(legalStatus) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/AccountDocumentUploadedCallback.java b/src/main/java/com/voximplant/apiclient/response/AccountDocumentUploadedCallback.java index 7266038..50229da 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountDocumentUploadedCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountDocumentUploadedCallback.java @@ -11,15 +11,15 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Deprecated. Please use the unified +* [AccountDocumentStatusUpdatedCallback] callback instead. */ public class AccountDocumentUploadedCallback implements Alignable { private Long accountDocumentId; /** - * The uploaded document ID. See GetAccountDocuments. + * The uploaded document ID. See GetAccountDocuments */ public Long getAccountDocumentId() { return this.accountDocumentId; @@ -46,7 +46,7 @@ public boolean hasUploaded() { private Boolean isIndividual; /** - * Is individual, isn't legal entity? + * Account belongs to an individual */ public Boolean getIsIndividual() { return this.isIndividual; @@ -59,7 +59,7 @@ public boolean hasIsIndividual() { private String verificationName; /** - * The verification name (type). + * The verification name (type) */ public String getVerificationName() { return this.verificationName; @@ -69,6 +69,20 @@ public boolean hasVerificationName() { return this.verificationName != null; } + private String legalStatus; + + /** + * Status of the user in the context of entrepreneurial activity. + * Possible values are 'individual', 'entrepreneur', 'legal entity' + */ + public String getLegalStatus() { + return this.legalStatus; + } + + public boolean hasLegalStatus() { + return this.legalStatus != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -110,6 +124,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (legalStatus != null) { + sb.append(aligned) + .append("\"legalStatus\": \"") + .append(legalStatus) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/AccountDocumentVerifiedCallback.java b/src/main/java/com/voximplant/apiclient/response/AccountDocumentVerifiedCallback.java index 83c4bf4..c5a195c 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountDocumentVerifiedCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountDocumentVerifiedCallback.java @@ -11,15 +11,15 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Deprecated. Please use the unified +* [AccountDocumentStatusUpdatedCallback] callback instead. */ public class AccountDocumentVerifiedCallback implements Alignable { private Long accountDocumentId; /** - * The uploaded document ID. + * The uploaded document ID */ public Long getAccountDocumentId() { return this.accountDocumentId; @@ -33,7 +33,7 @@ public boolean hasAccountDocumentId() { /** * The document verification status. The following values are possible: - * ACCEPTED, REJECTED + * WAITING_CONFIRMATION_DOCS, VERIFIED, REJECTED */ public String getAccountDocumentStatus() { return this.accountDocumentStatus; @@ -60,7 +60,7 @@ public boolean hasUploaded() { private Boolean isIndividual; /** - * Is individual, isn't legal entity? + * Account belongs to an individual */ public Boolean getIsIndividual() { return this.isIndividual; @@ -73,7 +73,7 @@ public boolean hasIsIndividual() { private String comment; /** - * The reviewer's comment. + * The reviewer's comment */ public String getComment() { return this.comment; @@ -86,7 +86,7 @@ public boolean hasComment() { private String verificationName; /** - * The verification name (type). + * The verification name (type) */ public String getVerificationName() { return this.verificationName; @@ -96,6 +96,20 @@ public boolean hasVerificationName() { return this.verificationName != null; } + private String legalStatus; + + /** + * Status of the user in the context of entrepreneurial activity. + * Possible values are 'individual', 'entrepreneur', 'legal entity' + */ + public String getLegalStatus() { + return this.legalStatus; + } + + public boolean hasLegalStatus() { + return this.legalStatus != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -153,6 +167,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (legalStatus != null) { + sb.append(aligned) + .append("\"legalStatus\": \"") + .append(legalStatus) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/AccountInfoType.java b/src/main/java/com/voximplant/apiclient/response/AccountInfoType.java index b20e17d..6288111 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountInfoType.java @@ -18,7 +18,7 @@ public class AccountInfoType implements Alignable { private Long accountId; /** - * The account's ID. + * The account's ID */ public Long getAccountId() { return this.accountId; @@ -31,7 +31,7 @@ public boolean hasAccountId() { private String accountName; /** - * The account's name. + * The account's name */ public String getAccountName() { return this.accountName; @@ -44,7 +44,7 @@ public boolean hasAccountName() { private String accountEmail; /** - * The account's email. + * The account's email */ public String getAccountEmail() { return this.accountEmail; @@ -58,7 +58,7 @@ public boolean hasAccountEmail() { /** * The account API key. Use password or api_key authentication to show - * the api_key. + * the api_key */ public String getApiKey() { return this.apiKey; @@ -71,7 +71,7 @@ public boolean hasApiKey() { private String accountFirstName; /** - * The first name. + * The first name */ public String getAccountFirstName() { return this.accountFirstName; @@ -84,7 +84,7 @@ public boolean hasAccountFirstName() { private String accountLastName; /** - * The last name. + * The last name */ public String getAccountLastName() { return this.accountLastName; @@ -138,7 +138,7 @@ public boolean hasLocation() { private BigDecimal minBalanceToNotify; /** - * The min balance value to notify by email or SMS. + * The min balance value to notify by email or SMS */ public BigDecimal getMinBalanceToNotify() { return this.minBalanceToNotify; @@ -151,7 +151,7 @@ public boolean hasMinBalanceToNotify() { private Boolean accountNotifications; /** - * Are the Voximplant notifications required? + * Voximplant notifications are required */ public Boolean getAccountNotifications() { return this.accountNotifications; @@ -164,7 +164,7 @@ public boolean hasAccountNotifications() { private Boolean tariffChangingNotifications; /** - * Are the Voximplant plan changing notifications required? + * Voximplant plan changing notifications are required */ public Boolean getTariffChangingNotifications() { return this.tariffChangingNotifications; @@ -177,7 +177,7 @@ public boolean hasTariffChangingNotifications() { private Boolean newsNotifications; /** - * Are the Voximplant news notifications required? + * Voximplant news notifications are required */ public Boolean getNewsNotifications() { return this.newsNotifications; @@ -190,7 +190,7 @@ public boolean hasNewsNotifications() { private String billingAddressName; /** - * The company or businessman name. + * The company or businessman name */ public String getBillingAddressName() { return this.billingAddressName; @@ -217,7 +217,7 @@ public boolean hasBillingAddressCountryCode() { private String billingAddressAddress; /** - * The office address. + * The office address */ public String getBillingAddressAddress() { return this.billingAddressAddress; @@ -230,7 +230,7 @@ public boolean hasBillingAddressAddress() { private String billingAddressZip; /** - * The office ZIP. + * The office ZIP */ public String getBillingAddressZip() { return this.billingAddressZip; @@ -243,7 +243,7 @@ public boolean hasBillingAddressZip() { private String billingAddressPhone; /** - * The office phone number. + * The office phone number */ public String getBillingAddressPhone() { return this.billingAddressPhone; @@ -257,7 +257,7 @@ public boolean hasBillingAddressPhone() { /** * The office state (US) or province (Canada), up to 100 characters. - * Examples: California, Illinois, British Columbia. + * Examples: California, Illinois, British Columbia */ public String getBillingAddressState() { return this.billingAddressState; @@ -270,7 +270,7 @@ public boolean hasBillingAddressState() { private Boolean active; /** - * The account activation flag. + * The account activation flag */ public Boolean getActive() { return this.active; @@ -283,7 +283,7 @@ public boolean hasActive() { private Boolean frozen; /** - * Is account blocked by Voximplant admins or not. + * Is account blocked by Voximplant admins or not */ public Boolean getFrozen() { return this.frozen; @@ -296,7 +296,7 @@ public boolean hasFrozen() { private BigDecimal balance; /** - * The account's money. + * The account's money */ public BigDecimal getBalance() { return this.balance; @@ -309,7 +309,7 @@ public boolean hasBalance() { private BigDecimal creditLimit; /** - * The account's credit limit. + * The account's credit limit */ public BigDecimal getCreditLimit() { return this.creditLimit; @@ -322,7 +322,7 @@ public boolean hasCreditLimit() { private String currency; /** - * The currency code (USD, RUR, EUR, ...). + * The currency code (USD, RUR, EUR, ...) */ public String getCurrency() { return this.currency; @@ -335,7 +335,7 @@ public boolean hasCurrency() { private Boolean supportRobokassa; /** - * Is the robokassa payment system allowed? + * Robokassa payments are allowed */ public Boolean getSupportRobokassa() { return this.supportRobokassa; @@ -348,7 +348,7 @@ public boolean hasSupportRobokassa() { private Boolean supportBankCard; /** - * Is the bank card payments allowed? + * Bank card payments are allowed */ public Boolean getSupportBankCard() { return this.supportBankCard; @@ -361,7 +361,7 @@ public boolean hasSupportBankCard() { private String bankCardProvider; /** - * The possible values are: BRAINTREE, ALFABANK. + * The possible values are BRAINTREE, ALFABANK */ public String getBankCardProvider() { return this.bankCardProvider; @@ -374,7 +374,7 @@ public boolean hasBankCardProvider() { private Boolean supportInvoice; /** - * Is the bank invoice allowed? + * Bank invoices are allowed */ public Boolean getSupportInvoice() { return this.supportInvoice; @@ -387,7 +387,7 @@ public boolean hasSupportInvoice() { private String accountCustomData; /** - * The custom data. + * The custom data */ public String getAccountCustomData() { return this.accountCustomData; @@ -400,7 +400,7 @@ public boolean hasAccountCustomData() { private String[] accessEntries; /** - * The allowed access entries (the API function names). + * The allowed access entries (the API function names) */ public String[] getAccessEntries() { return this.accessEntries; @@ -413,7 +413,7 @@ public boolean hasAccessEntries() { private Boolean withAccessEntries; /** - * Set true to get the admin user permissions. + * Set true to get the admin user permissions */ public Boolean getWithAccessEntries() { return this.withAccessEntries; @@ -460,7 +460,7 @@ public boolean hasCallbackSalt() { private Boolean sendJsError; /** - * Is email sending on a JS error? + * Sending email when a JS error occures */ public Boolean getSendJsError() { return this.sendJsError; @@ -473,7 +473,7 @@ public boolean hasSendJsError() { private BillingLimitsType billingLimits; /** - * The payments limits applicable to each payment method. + * The payments limits applicable to each payment method */ public BillingLimitsType getBillingLimits() { return this.billingLimits; @@ -483,6 +483,19 @@ public boolean hasBillingLimits() { return this.billingLimits != null; } + private Boolean a2pSmsEnabled; + + /** + * One-way SMS activation flag + */ + public Boolean getA2pSmsEnabled() { + return this.a2pSmsEnabled; + } + + public boolean hasA2pSmsEnabled() { + return this.a2pSmsEnabled != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -770,6 +783,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (a2pSmsEnabled != null) { + sb.append(aligned) + .append("\"a2pSmsEnabled\": \"") + .append(a2pSmsEnabled) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/AccountInvocie.java b/src/main/java/com/voximplant/apiclient/response/AccountInvocie.java new file mode 100644 index 0000000..e18bb91 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/AccountInvocie.java @@ -0,0 +1,181 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* GetAccountInvoices function result. +*/ +public class AccountInvocie implements Alignable { + + private InvoicePeriod period; + + /** + * Invoice period + */ + public InvoicePeriod getPeriod() { + return this.period; + } + + public boolean hasPeriod() { + return this.period != null; + } + + private InvoiceTotalDetails amount; + + /** + * Info on all money spent in the invoice + */ + public InvoiceTotalDetails getAmount() { + return this.amount; + } + + public boolean hasAmount() { + return this.amount != null; + } + + private Long invoiceId; + + /** + * Invoice id + */ + public Long getInvoiceId() { + return this.invoiceId; + } + + public boolean hasInvoiceId() { + return this.invoiceId != null; + } + + private InvoiceSpendingDetails rows; + + /** + * Detailed info on each spending + */ + public InvoiceSpendingDetails getRows() { + return this.rows; + } + + public boolean hasRows() { + return this.rows != null; + } + + private String invoiceNumber; + + /** + * Unique invoice number + */ + public String getInvoiceNumber() { + return this.invoiceNumber; + } + + public boolean hasInvoiceNumber() { + return this.invoiceNumber != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.DateDeserializer.class) + private Date invoiceDate; + + /** + * Date when the invoice is created in format: YYYY-MM-DD + */ + public Date getInvoiceDate() { + return this.invoiceDate; + } + + public boolean hasInvoiceDate() { + return this.invoiceDate != null; + } + + private String status; + + /** + * Invoice status + */ + public String getStatus() { + return this.status; + } + + public boolean hasStatus() { + return this.status != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (period != null) { + sb.append(aligned) + .append("\"period\": \"") + .append(period) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (amount != null) { + sb.append(aligned) + .append("\"amount\": \"") + .append(amount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (invoiceId != null) { + sb.append(aligned) + .append("\"invoiceId\": \"") + .append(invoiceId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (rows != null) { + sb.append(aligned) + .append("\"rows\": \"") + .append(rows) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (invoiceNumber != null) { + sb.append(aligned) + .append("\"invoiceNumber\": \"") + .append(invoiceNumber) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (invoiceDate != null) { + sb.append(aligned) + .append("\"invoiceDate\": \"") + .append(invoiceDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (status != null) { + sb.append(aligned) + .append("\"status\": \"") + .append(status) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/AccountIsFrozenCallback.java b/src/main/java/com/voximplant/apiclient/response/AccountIsFrozenCallback.java index af8d92a..5bf964f 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountIsFrozenCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountIsFrozenCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when an account is frozen. Received as part of the * [AccountCallback] structure. */ public class AccountIsFrozenCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/AccountIsUnfrozenCallback.java b/src/main/java/com/voximplant/apiclient/response/AccountIsUnfrozenCallback.java index 768981c..052a265 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountIsUnfrozenCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountIsUnfrozenCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when an account is unfrozen. Received as part of the * [AccountCallback] structure. */ public class AccountIsUnfrozenCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/AccountPlanPackageType.java b/src/main/java/com/voximplant/apiclient/response/AccountPlanPackageType.java index 622e557..ee3d631 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountPlanPackageType.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountPlanPackageType.java @@ -18,7 +18,7 @@ public class AccountPlanPackageType implements Alignable { private Long[] priceGroupId; /** - * The price group IDs. + * The price group IDs */ public Long[] getPriceGroupId() { return this.priceGroupId; @@ -31,7 +31,7 @@ public boolean hasPriceGroupId() { private String packageName; /** - * The package name. + * The package name */ public String getPackageName() { return this.packageName; @@ -44,7 +44,7 @@ public boolean hasPackageName() { private Boolean mayOverrun; /** - * Is overrun enabled? + * Overrun is enabled */ public Boolean getMayOverrun() { return this.mayOverrun; @@ -57,7 +57,7 @@ public boolean hasMayOverrun() { private BigDecimal overrunPrice; /** - * The overrun amount. + * The overrun amount */ public BigDecimal getOverrunPrice() { return this.overrunPrice; @@ -70,7 +70,7 @@ public boolean hasOverrunPrice() { private Long overrunResources; /** - * The number of resources (e.g., messages) per overrun. + * The number of resources (e.g., messages) per overrun */ public Long getOverrunResources() { return this.overrunResources; @@ -83,7 +83,7 @@ public boolean hasOverrunResources() { private Long resourceLeft; /** - * The resource left in the package. + * The resource left in the package */ public Long getResourceLeft() { return this.resourceLeft; @@ -96,7 +96,7 @@ public boolean hasResourceLeft() { private Long packageSize; /** - * The current package size (including overrun). + * The current package size (including overrun) */ public Long getPackageSize() { return this.packageSize; @@ -109,7 +109,7 @@ public boolean hasPackageSize() { private Long origPackageSize; /** - * The original package size (excluding overrun). + * The original package size (excluding overrun) */ public Long getOrigPackageSize() { return this.origPackageSize; diff --git a/src/main/java/com/voximplant/apiclient/response/AccountPlanType.java b/src/main/java/com/voximplant/apiclient/response/AccountPlanType.java index db6e8a7..df5fb03 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountPlanType.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountPlanType.java @@ -18,7 +18,7 @@ public class AccountPlanType implements Alignable { private Long planSubscriptionTemplateId; /** - * The current plan ID. + * The current plan ID */ public Long getPlanSubscriptionTemplateId() { return this.planSubscriptionTemplateId; @@ -45,7 +45,7 @@ public boolean hasNextCharge() { private String planType; /** - * The plan type. The possible values are: IM, MAU. + * The plan type. The possible values are IM, MAU */ public String getPlanType() { return this.planType; @@ -58,7 +58,7 @@ public boolean hasPlanType() { private String planName; /** - * The plan name. + * The plan name */ public String getPlanName() { return this.planName; @@ -71,7 +71,7 @@ public boolean hasPlanName() { private BigDecimal periodicCharge; /** - * The plan monthly charge. + * The plan monthly charge */ public BigDecimal getPeriodicCharge() { return this.periodicCharge; @@ -84,7 +84,7 @@ public boolean hasPeriodicCharge() { private AccountPlanPackageType[] packages; /** - * The account plan package array. + * The account plan package array */ public AccountPlanPackageType[] getPackages() { return this.packages; diff --git a/src/main/java/com/voximplant/apiclient/response/AccountVerificationDocument.java b/src/main/java/com/voximplant/apiclient/response/AccountVerificationDocument.java index 66ef388..fcc07be 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountVerificationDocument.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountVerificationDocument.java @@ -19,7 +19,7 @@ public class AccountVerificationDocument implements Alignable { private Long accountDocumentId; /** - * The account verification document ID. + * The account verification document ID */ public Long getAccountDocumentId() { return this.accountDocumentId; @@ -32,7 +32,7 @@ public boolean hasAccountDocumentId() { private Boolean isIndividual; /** - * Is individual, isn't legal entity? + * Account belongs to an individual */ public Boolean getIsIndividual() { return this.isIndividual; @@ -45,7 +45,7 @@ public boolean hasIsIndividual() { private String comment; /** - * The reviewer's comment. + * The reviewer's comment */ public String getComment() { return this.comment; @@ -73,7 +73,7 @@ public boolean hasUploaded() { /** * The account document status. The following values are possible: - * ACCEPTED, REJECTED, IN_PROGRESS, INCOMPLETE_SET. + * ACCEPTED, REJECTED, IN_PROGRESS, INCOMPLETE_SET */ public String getAccountDocumentStatus() { return this.accountDocumentStatus; diff --git a/src/main/java/com/voximplant/apiclient/response/AccountVerificationType.java b/src/main/java/com/voximplant/apiclient/response/AccountVerificationType.java index 438b7cc..334beef 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountVerificationType.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountVerificationType.java @@ -18,7 +18,7 @@ public class AccountVerificationType implements Alignable { private String verificationName; /** - * The verification name. + * The verification name */ public String getVerificationName() { return this.verificationName; @@ -61,7 +61,7 @@ public boolean hasUnverifiedHoldUntil() { private AccountVerificationDocument[] documents; /** - * The uploaded documents. + * The uploaded documents */ public AccountVerificationDocument[] getDocuments() { return this.documents; diff --git a/src/main/java/com/voximplant/apiclient/response/AccountVerifications.java b/src/main/java/com/voximplant/apiclient/response/AccountVerifications.java index 0320f74..6344b95 100644 --- a/src/main/java/com/voximplant/apiclient/response/AccountVerifications.java +++ b/src/main/java/com/voximplant/apiclient/response/AccountVerifications.java @@ -18,7 +18,7 @@ public class AccountVerifications implements Alignable { private Long accountId; /** - * The account ID. + * The account ID */ public Long getAccountId() { return this.accountId; @@ -31,7 +31,7 @@ public boolean hasAccountId() { private AccountVerificationType[] verifications; /** - * The account verifications. + * The account verifications */ public AccountVerificationType[] getVerifications() { return this.verifications; diff --git a/src/main/java/com/voximplant/apiclient/response/ActivateOutboundTestPhoneNumberResponse.java b/src/main/java/com/voximplant/apiclient/response/ActivateOutboundTestPhoneNumberResponse.java new file mode 100644 index 0000000..b8e4091 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/ActivateOutboundTestPhoneNumberResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class ActivateOutboundTestPhoneNumberResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ActivateSuccessfulCallback.java b/src/main/java/com/voximplant/apiclient/response/ActivateSuccessfulCallback.java index 94b928f..1329562 100644 --- a/src/main/java/com/voximplant/apiclient/response/ActivateSuccessfulCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/ActivateSuccessfulCallback.java @@ -11,8 +11,8 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when a new (not child) account is created. Received as part +* of the [AccountCallback] structure. */ public class ActivateSuccessfulCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/AddAdminRoleResponse.java b/src/main/java/com/voximplant/apiclient/response/AddAdminRoleResponse.java index 67a9be8..53568a4 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddAdminRoleResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddAdminRoleResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long adminRoleId; /** - * The new admin role ID. + * The new admin role ID */ public Long getAdminRoleId() { return this.adminRoleId; diff --git a/src/main/java/com/voximplant/apiclient/response/AddAdminUserResponse.java b/src/main/java/com/voximplant/apiclient/response/AddAdminUserResponse.java index 50ddb3b..27b1c61 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddAdminUserResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddAdminUserResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long adminUserId; /** - * The new admin user ID. + * The new admin user ID */ public Long getAdminUserId() { return this.adminUserId; @@ -50,7 +50,7 @@ public boolean hasAdminUserId() { private String adminUserApiKey; /** - * The admin user API key. + * The admin user API key */ public String getAdminUserApiKey() { return this.adminUserApiKey; diff --git a/src/main/java/com/voximplant/apiclient/response/AddApplicationResponse.java b/src/main/java/com/voximplant/apiclient/response/AddApplicationResponse.java index fb5f9d8..d5dd5c7 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddApplicationResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddApplicationResponse.java @@ -64,7 +64,7 @@ public boolean hasApplicationName() { /** * This flag indicates whether a secure storage for logs and records is - * enabled or not. + * enabled or not */ public Boolean getSecureRecordStorage() { return this.secureRecordStorage; diff --git a/src/main/java/com/voximplant/apiclient/response/AddCallerIDResponse.java b/src/main/java/com/voximplant/apiclient/response/AddCallerIDResponse.java index 138737c..2cfce02 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddCallerIDResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddCallerIDResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long calleridId; /** - * The id of the callerID object. + * The id of the callerID object */ public Long getCalleridId() { return this.calleridId; diff --git a/src/main/java/com/voximplant/apiclient/response/AddOutboundTestPhoneNumberResponse.java b/src/main/java/com/voximplant/apiclient/response/AddOutboundTestPhoneNumberResponse.java new file mode 100644 index 0000000..35b1881 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/AddOutboundTestPhoneNumberResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class AddOutboundTestPhoneNumberResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/AddPstnBlackListItemResponse.java b/src/main/java/com/voximplant/apiclient/response/AddPstnBlackListItemResponse.java index 7ebe391..0620408 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddPstnBlackListItemResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddPstnBlackListItemResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long pstnBlacklistId; /** - * The PSTN black list item ID. + * The PSTN black list item ID */ public Long getPstnBlacklistId() { return this.pstnBlacklistId; diff --git a/src/main/java/com/voximplant/apiclient/response/AddQueueResponse.java b/src/main/java/com/voximplant/apiclient/response/AddQueueResponse.java index 805a2a3..d82459f 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddQueueResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddQueueResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long acdQueueId; /** - * The ACD queue ID. + * The ACD queue ID */ public Long getAcdQueueId() { return this.acdQueueId; diff --git a/src/main/java/com/voximplant/apiclient/response/AddRuleResponse.java b/src/main/java/com/voximplant/apiclient/response/AddRuleResponse.java index ba60133..3051ab9 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddRuleResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddRuleResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long ruleId; /** - * The new rule ID. + * The new rule ID */ public Long getRuleId() { return this.ruleId; diff --git a/src/main/java/com/voximplant/apiclient/response/AddScenarioResponse.java b/src/main/java/com/voximplant/apiclient/response/AddScenarioResponse.java index 48dd2f7..66ccf7f 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddScenarioResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddScenarioResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long scenarioId; /** - * The new scenario ID. + * The new scenario ID */ public Long getScenarioId() { return this.scenarioId; diff --git a/src/main/java/com/voximplant/apiclient/response/AddSipWhiteListItemResponse.java b/src/main/java/com/voximplant/apiclient/response/AddSipWhiteListItemResponse.java index b43aa3e..4bce1bd 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddSipWhiteListItemResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddSipWhiteListItemResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long sipWhitelistId; /** - * The SIP white list item ID. + * The SIP white list item ID */ public Long getSipWhitelistId() { return this.sipWhitelistId; diff --git a/src/main/java/com/voximplant/apiclient/response/AddUserResponse.java b/src/main/java/com/voximplant/apiclient/response/AddUserResponse.java index 2a91f2e..16fc4ee 100644 --- a/src/main/java/com/voximplant/apiclient/response/AddUserResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AddUserResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long userId; /** - * The new user ID. + * The new user ID */ public Long getUserId() { return this.userId; diff --git a/src/main/java/com/voximplant/apiclient/response/AdminRoleType.java b/src/main/java/com/voximplant/apiclient/response/AdminRoleType.java index 542a31d..0942013 100644 --- a/src/main/java/com/voximplant/apiclient/response/AdminRoleType.java +++ b/src/main/java/com/voximplant/apiclient/response/AdminRoleType.java @@ -18,7 +18,7 @@ public class AdminRoleType implements Alignable { private Long adminRoleId; /** - * The admin role ID. + * The admin role ID */ public Long getAdminRoleId() { return this.adminRoleId; @@ -31,7 +31,7 @@ public boolean hasAdminRoleId() { private String adminRoleName; /** - * The admin role name. + * The admin role name */ public String getAdminRoleName() { return this.adminRoleName; @@ -44,7 +44,7 @@ public boolean hasAdminRoleName() { private Boolean adminRoleActive; /** - * If false the allowed and denied entries have no affect. + * If false the allowed and denied entries have no affect */ public Boolean getAdminRoleActive() { return this.adminRoleActive; @@ -57,7 +57,7 @@ public boolean hasAdminRoleActive() { private Boolean systemRole; /** - * Is a system role? + * It's a system role */ public Boolean getSystemRole() { return this.systemRole; @@ -84,7 +84,7 @@ public boolean hasModified() { private String[] allowedEntries; /** - * The allowed access entries (the API function names). + * The allowed access entries (the API function names) */ public String[] getAllowedEntries() { return this.allowedEntries; @@ -97,7 +97,7 @@ public boolean hasAllowedEntries() { private String[] deniedEntries; /** - * The denied access entries (the API function names). + * The denied access entries (the API function names) */ public String[] getDeniedEntries() { return this.deniedEntries; diff --git a/src/main/java/com/voximplant/apiclient/response/AdminUserType.java b/src/main/java/com/voximplant/apiclient/response/AdminUserType.java index 096d98c..f60f71a 100644 --- a/src/main/java/com/voximplant/apiclient/response/AdminUserType.java +++ b/src/main/java/com/voximplant/apiclient/response/AdminUserType.java @@ -18,7 +18,7 @@ public class AdminUserType implements Alignable { private Long adminUserId; /** - * The admin user ID. + * The admin user ID */ public Long getAdminUserId() { return this.adminUserId; @@ -31,7 +31,7 @@ public boolean hasAdminUserId() { private String adminUserName; /** - * The admin user name. + * The admin user name */ public String getAdminUserName() { return this.adminUserName; @@ -44,7 +44,7 @@ public boolean hasAdminUserName() { private String adminUserDisplayName; /** - * The admin user display name. + * The admin user display name */ public String getAdminUserDisplayName() { return this.adminUserDisplayName; @@ -57,7 +57,7 @@ public boolean hasAdminUserDisplayName() { private Boolean adminUserActive; /** - * Is allowed to logon? + * Login is allowed */ public Boolean getAdminUserActive() { return this.adminUserActive; @@ -84,7 +84,7 @@ public boolean hasModified() { private String[] accessEntries; /** - * The allowed access entries (the API function names). + * The allowed access entries (the API function names) */ public String[] getAccessEntries() { return this.accessEntries; @@ -97,7 +97,7 @@ public boolean hasAccessEntries() { private AdminRoleType[] adminRoles; /** - * The attached admin roles. + * The attached admin roles */ public AdminRoleType[] getAdminRoles() { return this.adminRoles; diff --git a/src/main/java/com/voximplant/apiclient/response/AllocateAlfaBankPaymentResultType.java b/src/main/java/com/voximplant/apiclient/response/AllocateAlfaBankPaymentResultType.java index 8f8d984..e4072e2 100644 --- a/src/main/java/com/voximplant/apiclient/response/AllocateAlfaBankPaymentResultType.java +++ b/src/main/java/com/voximplant/apiclient/response/AllocateAlfaBankPaymentResultType.java @@ -18,7 +18,7 @@ public class AllocateAlfaBankPaymentResultType implements Alignable { private String formUrl; /** - * The URL to redirect. + * The URL to redirect */ public String getFormUrl() { return this.formUrl; @@ -31,7 +31,7 @@ public boolean hasFormUrl() { private String paymentId ; /** - * The payment ID. + * The payment ID */ public String getPaymentId () { return this.paymentId ; diff --git a/src/main/java/com/voximplant/apiclient/response/ApplicationInfoType.java b/src/main/java/com/voximplant/apiclient/response/ApplicationInfoType.java index b556f58..e59e54f 100644 --- a/src/main/java/com/voximplant/apiclient/response/ApplicationInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ApplicationInfoType.java @@ -18,7 +18,7 @@ public class ApplicationInfoType implements Alignable { private Long applicationId; /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -31,7 +31,7 @@ public boolean hasApplicationId() { private String applicationName; /** - * The full application name. + * The full application name */ public String getApplicationName() { return this.applicationName; @@ -59,7 +59,7 @@ public boolean hasModified() { /** * This flag indicates whether a secure storage for logs and records is - * enabled or not. + * enabled or not */ public Boolean getSecureRecordStorage() { return this.secureRecordStorage; @@ -69,20 +69,6 @@ public boolean hasSecureRecordStorage() { return this.secureRecordStorage != null; } - private UserInfoType[] users; - - /** - * The filtered users. (Note: a user object contains the 'user_id' field - * only) - */ - public UserInfoType[] getUsers() { - return this.users; - } - - public boolean hasUsers() { - return this.users != null; - } - public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -124,12 +110,6 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } - if (users != null) { - sb.append(aligned) - .append("\"UserInfoType\": ") - .append(StringHelper.arrayToString(users, alignment + 1)) - .append(System.lineSeparator()); - } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/AttachPhoneNumberResponse.java b/src/main/java/com/voximplant/apiclient/response/AttachPhoneNumberResponse.java index c0da216..7baf3e0 100644 --- a/src/main/java/com/voximplant/apiclient/response/AttachPhoneNumberResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/AttachPhoneNumberResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private NewAttachedPhoneInfoType[] phoneNumbers; /** - * The attached phone numbers. + * The attached phone numbers */ public NewAttachedPhoneInfoType[] getPhoneNumbers() { return this.phoneNumbers; diff --git a/src/main/java/com/voximplant/apiclient/response/AttachedPhoneInfoType.java b/src/main/java/com/voximplant/apiclient/response/AttachedPhoneInfoType.java index e9d84c8..f664298 100644 --- a/src/main/java/com/voximplant/apiclient/response/AttachedPhoneInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/AttachedPhoneInfoType.java @@ -11,14 +11,14 @@ import com.voximplant.apiclient.util.Alignable; /** -* The [GetPhoneNumbers] function result item. +* The [GetPhoneNumbers] function result. */ public class AttachedPhoneInfoType implements Alignable { private Long phoneId; /** - * The phone ID. + * The phone ID */ public Long getPhoneId() { return this.phoneId; @@ -31,7 +31,7 @@ public boolean hasPhoneId() { private String phoneNumber; /** - * The phone number. + * The phone number */ public String getPhoneNumber() { return this.phoneNumber; @@ -44,7 +44,7 @@ public boolean hasPhoneNumber() { private BigDecimal phonePrice; /** - * The phone monthly charge. + * The phone monthly charge */ public BigDecimal getPhonePrice() { return this.phonePrice; @@ -57,7 +57,7 @@ public boolean hasPhonePrice() { private String phoneCountryCode; /** - * The phone country code (2 symbols). + * The phone country code (2 symbols) */ public String getPhoneCountryCode() { return this.phoneCountryCode; @@ -98,7 +98,7 @@ public boolean hasPhonePurchaseDate() { private Boolean deactivated; /** - * The flag of the frozen subscription. + * The flag of the frozen subscription */ public Boolean getDeactivated() { return this.deactivated; @@ -111,7 +111,7 @@ public boolean hasDeactivated() { private Boolean canceled; /** - * The flag of the deleted subscription. + * The flag of the deleted subscription */ public Boolean getCanceled() { return this.canceled; @@ -124,7 +124,7 @@ public boolean hasCanceled() { private Boolean autoCharge; /** - * The auto_charge flag. + * The auto_charge flag */ public Boolean getAutoCharge() { return this.autoCharge; @@ -137,7 +137,7 @@ public boolean hasAutoCharge() { private Long applicationId; /** - * The id of the bound application. + * The id of the bound application */ public Long getApplicationId() { return this.applicationId; @@ -150,7 +150,7 @@ public boolean hasApplicationId() { private String applicationName; /** - * The name of the bound application. + * The name of the bound application */ public String getApplicationName() { return this.applicationName; @@ -163,7 +163,7 @@ public boolean hasApplicationName() { private Long ruleId; /** - * The id of the bound rule. + * The id of the bound rule */ public Long getRuleId() { return this.ruleId; @@ -176,7 +176,7 @@ public boolean hasRuleId() { private String ruleName; /** - * The name of the bound rule. + * The name of the bound rule */ public String getRuleName() { return this.ruleName; @@ -199,12 +199,12 @@ public boolean hasCategoryName() { return this.categoryName != null; } - private String requiredVerification; + private Boolean requiredVerification; /** - * The required account verification name. + * Verification is required for the account */ - public String getRequiredVerification() { + public Boolean getRequiredVerification() { return this.requiredVerification; } @@ -245,7 +245,7 @@ public boolean hasUnverifiedHoldUntil() { private Boolean canBeUsed; /** - * Can the unverified account use the phone? + * Unverified account can use the phone */ public Boolean getCanBeUsed() { return this.canBeUsed; @@ -259,12 +259,12 @@ public boolean hasCanBeUsed() { /** * If true, SMS is supported for this phone number. SMS needs to - * be explicitly enabled via the [ControlSms] HTTP API before sending or - * receiving SMS. If SMS is supported and enabled, SMS can be sent from - * this phone number using the [SendSmsMessage] HTTP API and received - * using the [InboundSmsCallback] property of the HTTP callback. See this article - * for HTTP callback details. + * be explicitly enabled via the [ControlSms] Management API before + * sending or receiving SMS. If SMS is supported and enabled, SMS can be + * sent from this phone number using the [SendSmsMessage] Management API + * and received using the [InboundSmsCallback] property of the HTTP + * callback. See this + * article for HTTP callback details */ public Boolean getIsSmsSupported() { return this.isSmsSupported; @@ -278,7 +278,7 @@ public boolean hasIsSmsSupported() { /** * If true, SMS sending and receiving is enabled for this phone - * number via the [ControlSms] HTTP API. + * number via the [ControlSms] Management API */ public Boolean getIsSmsEnabled() { return this.isSmsEnabled; @@ -288,6 +288,101 @@ public boolean hasIsSmsEnabled() { return this.isSmsEnabled != null; } + private String incomingSmsCallbackUrl; + + /** + * If set, the callback of an inbound SMS will be sent to this url, + * otherwise, it will be sent to the general account URL + */ + public String getIncomingSmsCallbackUrl() { + return this.incomingSmsCallbackUrl; + } + + public boolean hasIncomingSmsCallbackUrl() { + return this.incomingSmsCallbackUrl != null; + } + + private Boolean emergencyCallsToBeEnabled; + + /** + * If true, you need to make a request to enable calls to + * emergency numbers + */ + public Boolean getEmergencyCallsToBeEnabled() { + return this.emergencyCallsToBeEnabled; + } + + public boolean hasEmergencyCallsToBeEnabled() { + return this.emergencyCallsToBeEnabled != null; + } + + private Boolean emergencyCallsEnabled; + + /** + * If true, calls to emergency numbers are enabled + */ + public Boolean getEmergencyCallsEnabled() { + return this.emergencyCallsEnabled; + } + + public boolean hasEmergencyCallsEnabled() { + return this.emergencyCallsEnabled != null; + } + + private Long subscriptionId; + + /** + * Phone number subscription ID + */ + public Long getSubscriptionId() { + return this.subscriptionId; + } + + public boolean hasSubscriptionId() { + return this.subscriptionId != null; + } + + private String extendedApplicationName; + + /** + * Full application name, e.g. myapp.myaccount.n1.voximplant.com + */ + public String getExtendedApplicationName() { + return this.extendedApplicationName; + } + + public boolean hasExtendedApplicationName() { + return this.extendedApplicationName != null; + } + + private String phoneRegionName; + + /** + * Phone region name + */ + public String getPhoneRegionName() { + return this.phoneRegionName; + } + + public boolean hasPhoneRegionName() { + return this.phoneRegionName != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date modified; + + /** + * UTC date of an event associated with the number in 24-h format: + * YYYY-MM-DD HH:mm:ss + */ + public Date getModified() { + return this.modified; + } + + public boolean hasModified() { + return this.modified != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -457,6 +552,62 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (incomingSmsCallbackUrl != null) { + sb.append(aligned) + .append("\"incomingSmsCallbackUrl\": \"") + .append(incomingSmsCallbackUrl) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (emergencyCallsToBeEnabled != null) { + sb.append(aligned) + .append("\"emergencyCallsToBeEnabled\": \"") + .append(emergencyCallsToBeEnabled) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (emergencyCallsEnabled != null) { + sb.append(aligned) + .append("\"emergencyCallsEnabled\": \"") + .append(emergencyCallsEnabled) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (subscriptionId != null) { + sb.append(aligned) + .append("\"subscriptionId\": \"") + .append(subscriptionId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (extendedApplicationName != null) { + sb.append(aligned) + .append("\"extendedApplicationName\": \"") + .append(extendedApplicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (phoneRegionName != null) { + sb.append(aligned) + .append("\"phoneRegionName\": \"") + .append(phoneRegionName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (modified != null) { + sb.append(aligned) + .append("\"modified\": \"") + .append(modified) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/AuditLogInfoType.java b/src/main/java/com/voximplant/apiclient/response/AuditLogInfoType.java index 88aae76..490bab6 100644 --- a/src/main/java/com/voximplant/apiclient/response/AuditLogInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/AuditLogInfoType.java @@ -18,7 +18,7 @@ public class AuditLogInfoType implements Alignable { private Long auditLogId; /** - * The ID. + * The ID */ public Long getAuditLogId() { return this.auditLogId; @@ -31,7 +31,7 @@ public boolean hasAuditLogId() { private Long accountId; /** - * The account ID. + * The account ID */ public Long getAccountId() { return this.accountId; @@ -59,7 +59,7 @@ public boolean hasRequested() { private String ip; /** - * The initiator IP address. + * The initiator IP address */ public String getIp() { return this.ip; @@ -72,7 +72,7 @@ public boolean hasIp() { private String cmdName; /** - * The called function. + * The called function */ public String getCmdName() { return this.cmdName; @@ -85,7 +85,7 @@ public boolean hasCmdName() { private Map cmdArgs; /** - * The arguments of the called function (they may be masked or resolved). + * The arguments of the called function (they may be masked or resolved) */ public Map getCmdArgs() { return this.cmdArgs; @@ -98,7 +98,7 @@ public boolean hasCmdArgs() { private Map cmdResult; /** - * The modified values. + * The modified values */ public Map getCmdResult() { return this.cmdResult; diff --git a/src/main/java/com/voximplant/apiclient/response/AuthorizedAccountIPType.java b/src/main/java/com/voximplant/apiclient/response/AuthorizedAccountIPType.java index 6077361..7ee9ba5 100644 --- a/src/main/java/com/voximplant/apiclient/response/AuthorizedAccountIPType.java +++ b/src/main/java/com/voximplant/apiclient/response/AuthorizedAccountIPType.java @@ -18,7 +18,7 @@ public class AuthorizedAccountIPType implements Alignable { private String authorizedIp; /** - * The authorized IP4 or network. + * The authorized IP4 or network */ public String getAuthorizedIp() { return this.authorizedIp; @@ -31,7 +31,7 @@ public boolean hasAuthorizedIp() { private Boolean allowed; /** - * The allowed flag (true - whitelist, false - blacklist). + * The allowed flag (true - whitelist, false - blacklist) */ public Boolean getAllowed() { return this.allowed; diff --git a/src/main/java/com/voximplant/apiclient/response/BalanceIsChanged.java b/src/main/java/com/voximplant/apiclient/response/BalanceIsChanged.java index 532f514..7ebca7f 100644 --- a/src/main/java/com/voximplant/apiclient/response/BalanceIsChanged.java +++ b/src/main/java/com/voximplant/apiclient/response/BalanceIsChanged.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when an account is refilled. Received as part of the * [AccountCallback] structure. */ public class BalanceIsChanged implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/BankCardBillingLimitInfoType.java b/src/main/java/com/voximplant/apiclient/response/BankCardBillingLimitInfoType.java index 023fe68..ddbe0c8 100644 --- a/src/main/java/com/voximplant/apiclient/response/BankCardBillingLimitInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/BankCardBillingLimitInfoType.java @@ -15,12 +15,12 @@ */ public class BankCardBillingLimitInfoType implements Alignable { - private Long minAmount; + private BigDecimal minAmount; /** - * The minimum amount. + * The minimum amount */ - public Long getMinAmount() { + public BigDecimal getMinAmount() { return this.minAmount; } @@ -31,7 +31,7 @@ public boolean hasMinAmount() { private String currency; /** - * The currency. + * The currency */ public String getCurrency() { return this.currency; diff --git a/src/main/java/com/voximplant/apiclient/response/BankCardErrorType.java b/src/main/java/com/voximplant/apiclient/response/BankCardErrorType.java index d188758..9d33669 100644 --- a/src/main/java/com/voximplant/apiclient/response/BankCardErrorType.java +++ b/src/main/java/com/voximplant/apiclient/response/BankCardErrorType.java @@ -32,7 +32,7 @@ public boolean hasDate() { private String msg; /** - * The error message. + * The error message */ public String getMsg() { return this.msg; @@ -45,7 +45,7 @@ public boolean hasMsg() { private BigDecimal amount; /** - * The amount in the payment currency. + * The amount in the payment currency */ public BigDecimal getAmount() { return this.amount; @@ -58,7 +58,7 @@ public boolean hasAmount() { private String currency; /** - * The payment currency. + * The payment currency */ public String getCurrency() { return this.currency; diff --git a/src/main/java/com/voximplant/apiclient/response/BankCardType.java b/src/main/java/com/voximplant/apiclient/response/BankCardType.java index 97c9629..99d853d 100644 --- a/src/main/java/com/voximplant/apiclient/response/BankCardType.java +++ b/src/main/java/com/voximplant/apiclient/response/BankCardType.java @@ -18,7 +18,7 @@ public class BankCardType implements Alignable { private String bankCardProvider; /** - * The payment system. The possible values are: ALFABANK, BRAINTREE. + * The payment system. The possible values are ALFABANK, BRAINTREE */ public String getBankCardProvider() { return this.bankCardProvider; @@ -31,7 +31,7 @@ public boolean hasBankCardProvider() { private Boolean autoCharge; /** - * The auto_charge flag. + * The auto_charge flag */ public Boolean getAutoCharge() { return this.autoCharge; @@ -44,7 +44,7 @@ public boolean hasAutoCharge() { private BigDecimal minBalance ; /** - * The min account balance to trigger the auto charging. + * The min account balance to trigger the auto charging */ public BigDecimal getMinBalance () { return this.minBalance ; @@ -57,7 +57,7 @@ public boolean hasMinBalance () { private BigDecimal cardOverrunValue; /** - * The card overrun value in the account currency. + * The card overrun value in the account currency */ public BigDecimal getCardOverrunValue() { return this.cardOverrunValue; @@ -70,7 +70,7 @@ public boolean hasCardOverrunValue() { private Long expirationYear; /** - * The card expiration year. + * The card expiration year */ public Long getExpirationYear() { return this.expirationYear; @@ -83,7 +83,7 @@ public boolean hasExpirationYear() { private Long expirationMonth; /** - * The card expiration month. + * The card expiration month */ public Long getExpirationMonth() { return this.expirationMonth; @@ -96,7 +96,7 @@ public boolean hasExpirationMonth() { private Long acct; /** - * The last card number digits. + * The last card number digits */ public Long getAcct() { return this.acct; @@ -109,7 +109,7 @@ public boolean hasAcct() { private BankCardErrorType lastError; /** - * The last card error. + * The last card error */ public BankCardErrorType getLastError() { return this.lastError; @@ -122,7 +122,7 @@ public boolean hasLastError() { private String cardHolder; /** - * The cardholder’s first name and last name. + * The cardholder’s first name and last name */ public String getCardHolder() { return this.cardHolder; @@ -135,7 +135,7 @@ public boolean hasCardHolder() { private String cardType; /** - * The card's payment system. The possible values are: VISA, MASTER CARD. + * The card's payment system. The possible values are VISA, MASTER CARD */ public String getCardType() { return this.cardType; diff --git a/src/main/java/com/voximplant/apiclient/response/BillingLimitInfoType.java b/src/main/java/com/voximplant/apiclient/response/BillingLimitInfoType.java index 89f42b4..96a0e48 100644 --- a/src/main/java/com/voximplant/apiclient/response/BillingLimitInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/BillingLimitInfoType.java @@ -15,12 +15,12 @@ */ public class BillingLimitInfoType implements Alignable { - private Long minAmount; + private BigDecimal minAmount; /** - * The minimum amount. + * The minimum amount */ - public Long getMinAmount() { + public BigDecimal getMinAmount() { return this.minAmount; } @@ -31,7 +31,7 @@ public boolean hasMinAmount() { private String currency; /** - * The currency. + * The currency */ public String getCurrency() { return this.currency; diff --git a/src/main/java/com/voximplant/apiclient/response/BillingLimitsType.java b/src/main/java/com/voximplant/apiclient/response/BillingLimitsType.java index 8e4981c..a653b45 100644 --- a/src/main/java/com/voximplant/apiclient/response/BillingLimitsType.java +++ b/src/main/java/com/voximplant/apiclient/response/BillingLimitsType.java @@ -19,7 +19,7 @@ public class BillingLimitsType implements Alignable { private BillingLimitInfoType robokassa; /** - * The Robokassa limits. + * The Robokassa limits */ public BillingLimitInfoType getRobokassa() { return this.robokassa; @@ -32,7 +32,7 @@ public boolean hasRobokassa() { private BankCardBillingLimitInfoType bankCard; /** - * The bank card limits. + * The bank card limits */ public BankCardBillingLimitInfoType getBankCard() { return this.bankCard; @@ -45,7 +45,7 @@ public boolean hasBankCard() { private BillingLimitInfoType invoice; /** - * The invoice limits. + * The invoice limits */ public BillingLimitInfoType getInvoice() { return this.invoice; diff --git a/src/main/java/com/voximplant/apiclient/response/CalculatedCallHistoryDataType.java b/src/main/java/com/voximplant/apiclient/response/CalculatedCallHistoryDataType.java index aedf881..223e57b 100644 --- a/src/main/java/com/voximplant/apiclient/response/CalculatedCallHistoryDataType.java +++ b/src/main/java/com/voximplant/apiclient/response/CalculatedCallHistoryDataType.java @@ -19,7 +19,7 @@ public class CalculatedCallHistoryDataType implements Alignable { private Long sessionCount; /** - * The session count in the report. + * The session count in the report */ public Long getSessionCount() { return this.sessionCount; @@ -32,7 +32,7 @@ public boolean hasSessionCount() { private Long totalSessionCount; /** - * The total found filtered session count. + * The total found filtered session count */ public Long getTotalSessionCount() { return this.totalSessionCount; @@ -45,7 +45,7 @@ public boolean hasTotalSessionCount() { private String timezone; /** - * The selected timezone. + * The selected timezone */ public String getTimezone() { return this.timezone; diff --git a/src/main/java/com/voximplant/apiclient/response/CalculatedTransactionHistoryDataType.java b/src/main/java/com/voximplant/apiclient/response/CalculatedTransactionHistoryDataType.java index 8c22502..7124db0 100644 --- a/src/main/java/com/voximplant/apiclient/response/CalculatedTransactionHistoryDataType.java +++ b/src/main/java/com/voximplant/apiclient/response/CalculatedTransactionHistoryDataType.java @@ -19,7 +19,7 @@ public class CalculatedTransactionHistoryDataType implements Alignable { private Long transactionCount; /** - * The transaction count in the report. + * The transaction count in the report */ public Long getTransactionCount() { return this.transactionCount; @@ -32,7 +32,7 @@ public boolean hasTransactionCount() { private Long totalTransactionCount; /** - * The total found filtered transaction count. + * The total found filtered transaction count */ public Long getTotalTransactionCount() { return this.totalTransactionCount; @@ -71,7 +71,7 @@ public boolean hasEndBalance() { private Long accountId; /** - * The account ID. + * The account ID */ public Long getAccountId() { return this.accountId; @@ -84,7 +84,7 @@ public boolean hasAccountId() { private Long userId; /** - * The user ID. + * The user ID */ public Long getUserId() { return this.userId; @@ -97,7 +97,7 @@ public boolean hasUserId() { private Long userName; /** - * The user name. + * The user name */ public Long getUserName() { return this.userName; @@ -110,7 +110,7 @@ public boolean hasUserName() { private Boolean isChecked; /** - * true if balance&transactions are valid. + * true if balance&transactions are valid */ public Boolean getIsChecked() { return this.isChecked; @@ -123,7 +123,7 @@ public boolean hasIsChecked() { private String timezone; /** - * The selected timezone. + * The selected timezone */ public String getTimezone() { return this.timezone; diff --git a/src/main/java/com/voximplant/apiclient/response/CallHistoryReportCallback.java b/src/main/java/com/voximplant/apiclient/response/CallHistoryReportCallback.java index d848ef4..b436692 100644 --- a/src/main/java/com/voximplant/apiclient/response/CallHistoryReportCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/CallHistoryReportCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a call history report is ready. Received as part of the * [AccountCallback] structure. */ public class CallHistoryReportCallback implements Alignable { @@ -19,7 +19,7 @@ public class CallHistoryReportCallback implements Alignable { private Long historyReportId; /** - * The history report ID. + * The history report ID */ public Long getHistoryReportId() { return this.historyReportId; @@ -32,7 +32,7 @@ public boolean hasHistoryReportId() { private Boolean success; /** - * Is success? + * Success flag */ public Boolean getSuccess() { return this.success; diff --git a/src/main/java/com/voximplant/apiclient/response/CallInfoType.java b/src/main/java/com/voximplant/apiclient/response/CallInfoType.java index e54a2e1..1a7e80a 100644 --- a/src/main/java/com/voximplant/apiclient/response/CallInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/CallInfoType.java @@ -18,7 +18,7 @@ public class CallInfoType implements Alignable { private Long callId; /** - * The call history ID. + * The call history ID */ public Long getCallId() { return this.callId; @@ -46,7 +46,7 @@ public boolean hasStartTime() { private Long duration; /** - * The call duration in seconds. + * The call duration in seconds */ public Long getDuration() { return this.duration; @@ -59,7 +59,7 @@ public boolean hasDuration() { private String localNumber; /** - * The local number. + * The local number on the platform side */ public String getLocalNumber() { return this.localNumber; @@ -72,7 +72,7 @@ public boolean hasLocalNumber() { private String remoteNumber; /** - * The remote number. + * The remote number on the client side */ public String getRemoteNumber() { return this.remoteNumber; @@ -85,7 +85,8 @@ public boolean hasRemoteNumber() { private String remoteNumberType; /** - * The remote number type. + * The type of the remote number, such as PSTN, mobile, user or sip + * address */ public String getRemoteNumberType() { return this.remoteNumberType; @@ -98,7 +99,7 @@ public boolean hasRemoteNumberType() { private Boolean incoming; /** - * The incoming flag. + * The incoming flag */ public Boolean getIncoming() { return this.incoming; @@ -111,7 +112,7 @@ public boolean hasIncoming() { private Boolean successful; /** - * The success flag. + * The success flag */ public Boolean getSuccessful() { return this.successful; @@ -124,7 +125,7 @@ public boolean hasSuccessful() { private Long transactionId; /** - * The transaction ID. + * The transaction ID */ public Long getTransactionId() { return this.transactionId; @@ -137,7 +138,7 @@ public boolean hasTransactionId() { private String recordUrl; /** - * The record URL. + * The record URL */ public String getRecordUrl() { return this.recordUrl; @@ -150,7 +151,7 @@ public boolean hasRecordUrl() { private String mediaServerAddress; /** - * The media server IP address. + * The media server IP address */ public String getMediaServerAddress() { return this.mediaServerAddress; @@ -163,7 +164,7 @@ public boolean hasMediaServerAddress() { private BigDecimal cost; /** - * The call cost. + * The call cost */ public BigDecimal getCost() { return this.cost; @@ -176,7 +177,7 @@ public boolean hasCost() { private String customData; /** - * The custom data. + * The custom data passed to the JS session */ public String getCustomData() { return this.customData; diff --git a/src/main/java/com/voximplant/apiclient/response/CallListDetailType.java b/src/main/java/com/voximplant/apiclient/response/CallListDetailType.java index 43b0c04..a149f37 100644 --- a/src/main/java/com/voximplant/apiclient/response/CallListDetailType.java +++ b/src/main/java/com/voximplant/apiclient/response/CallListDetailType.java @@ -11,14 +11,14 @@ import com.voximplant.apiclient.util.Alignable; /** -* Detailing job telephone calls +* Detailing job telephone calls. */ public class CallListDetailType implements Alignable { private Long listId; /** - * The list ID. + * The list ID */ public Long getListId() { return this.listId; @@ -41,12 +41,13 @@ public boolean hasCustomData() { return this.customData != null; } - private String startExecutionTime; + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date startExecutionTime; /** * Time with which to start the job in 24-h format: HH:mm:ss */ - public String getStartExecutionTime() { + public Date getStartExecutionTime() { return this.startExecutionTime; } @@ -54,12 +55,13 @@ public boolean hasStartExecutionTime() { return this.startExecutionTime != null; } - private String finishExecutionTime; + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date finishExecutionTime; /** * Time after which the task cannot be performed in 24-h format: HH:mm:ss */ - public String getFinishExecutionTime() { + public Date getFinishExecutionTime() { return this.finishExecutionTime; } @@ -71,7 +73,7 @@ public boolean hasFinishExecutionTime() { /** * Results of the task, if it was granted, or information about the - * runtime error. + * runtime error */ public String getResultData() { return this.resultData; @@ -84,7 +86,7 @@ public boolean hasResultData() { private String lastAttempt; /** - * Date and time of the last attempt to perform a task. + * Date and time of the last attempt to perform a task */ public String getLastAttempt() { return this.lastAttempt; @@ -97,7 +99,7 @@ public boolean hasLastAttempt() { private Long attemptsLeft; /** - * Number of remaining attempts. + * Number of remaining attempts */ public Long getAttemptsLeft() { return this.attemptsLeft; @@ -110,9 +112,9 @@ public boolean hasAttemptsLeft() { private Long statusId; /** - * The status ID. The possible values are: __0__ (status = New), __1__ + * The status ID. The possible values are __0__ (status = New), __1__ * (status = In progress), __2__ (status = Processed), __3__ (status = - * Error), __4__ (status = Cancelled). + * Error), __4__ (status = Canceled) */ public Long getStatusId() { return this.statusId; @@ -125,9 +127,9 @@ public boolean hasStatusId() { private String status; /** - * The status name. The possible values are: __New__ (status_id = 0), + * The status name. The possible values are __New__ (status_id = 0), * __In progress__ (status_id = 1), __Processed__ (status_id = 2), - * __Error__ (status_id = 3), __Cancelled__ (status_id = 4). + * __Error__ (status_id = 3), __Canceled__ (status_id = 4) */ public String getStatus() { return this.status; diff --git a/src/main/java/com/voximplant/apiclient/response/CallListType.java b/src/main/java/com/voximplant/apiclient/response/CallListType.java index 298916a..88ea580 100644 --- a/src/main/java/com/voximplant/apiclient/response/CallListType.java +++ b/src/main/java/com/voximplant/apiclient/response/CallListType.java @@ -18,7 +18,7 @@ public class CallListType implements Alignable { private Long listId; /** - * The list ID. + * The list ID */ public Long getListId() { return this.listId; @@ -31,7 +31,7 @@ public boolean hasListId() { private String listName; /** - * The list name. + * The list name */ public String getListName() { return this.listName; @@ -44,7 +44,7 @@ public boolean hasListName() { private Long priority; /** - * The priority of the call list. + * The priority of the call list */ public Long getPriority() { return this.priority; @@ -57,7 +57,7 @@ public boolean hasPriority() { private Long ruleId; /** - * The rule id. + * The rule id */ public Long getRuleId() { return this.ruleId; @@ -70,7 +70,7 @@ public boolean hasRuleId() { private Long maxSimultaneous; /** - * The maximum number of simultaneous tasks. + * The maximum number of simultaneous tasks */ public Long getMaxSimultaneous() { return this.maxSimultaneous; @@ -83,7 +83,7 @@ public boolean hasMaxSimultaneous() { private Long numAttempts; /** - * The number of task attempts run, which failed to call. + * The number of task attempts run, which failed to call */ public Long getNumAttempts() { return this.numAttempts; @@ -124,7 +124,7 @@ public boolean hasDtComplete() { private Long intervalSeconds; /** - * The interval between attempts in seconds. + * The interval between attempts in seconds */ public Long getIntervalSeconds() { return this.intervalSeconds; @@ -137,8 +137,8 @@ public boolean hasIntervalSeconds() { private String status; /** - * The status name. The possible values are: __In progress__, - * __Completed__, __Canceled__. + * The status name. The possible values are __In progress__, + * __Completed__, __Canceled__ */ public String getStatus() { return this.status; diff --git a/src/main/java/com/voximplant/apiclient/response/CallSessionInfoType.java b/src/main/java/com/voximplant/apiclient/response/CallSessionInfoType.java index 67670c9..a22fdf3 100644 --- a/src/main/java/com/voximplant/apiclient/response/CallSessionInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/CallSessionInfoType.java @@ -15,10 +15,36 @@ */ public class CallSessionInfoType implements Alignable { + private String ruleName; + + /** + * The routing rule name + */ + public String getRuleName() { + return this.ruleName; + } + + public boolean hasRuleName() { + return this.ruleName != null; + } + + private String applicationName; + + /** + * The application name + */ + public String getApplicationName() { + return this.applicationName; + } + + public boolean hasApplicationName() { + return this.applicationName != null; + } + private Long callSessionHistoryId; /** - * The call session history ID. + * The unique JS session identifier */ public Long getCallSessionHistoryId() { return this.callSessionHistoryId; @@ -31,7 +57,7 @@ public boolean hasCallSessionHistoryId() { private Long accountId; /** - * The account ID. + * The account ID that initiates the JS session */ public Long getAccountId() { return this.accountId; @@ -44,7 +70,7 @@ public boolean hasAccountId() { private Long applicationId; /** - * The application ID. + * The application ID that initiates the JS session */ public Long getApplicationId() { return this.applicationId; @@ -57,7 +83,7 @@ public boolean hasApplicationId() { private Long userId; /** - * The user ID. + * The user ID that initiates the JS session */ public Long getUserId() { return this.userId; @@ -85,7 +111,8 @@ public boolean hasStartDate() { private Long duration; /** - * The session duration in seconds. + * The entire JS session duration in seconds. The session can contain + * multiple calls */ public Long getDuration() { return this.duration; @@ -98,7 +125,7 @@ public boolean hasDuration() { private String initiatorAddress; /** - * The initiator IP address. + * The initiator IP address */ public String getInitiatorAddress() { return this.initiatorAddress; @@ -111,7 +138,7 @@ public boolean hasInitiatorAddress() { private String mediaServerAddress; /** - * The media server IP address. + * The media server IP address */ public String getMediaServerAddress() { return this.mediaServerAddress; @@ -124,7 +151,8 @@ public boolean hasMediaServerAddress() { private String logFileUrl; /** - * The session log URL. + * The link to the session log. The log retention policy is 1 month, + * after that time this field clears */ public String getLogFileUrl() { return this.logFileUrl; @@ -137,9 +165,9 @@ public boolean hasLogFileUrl() { private String finishReason; /** - * The finish reason. Possible values are: __Normal termination__, + * The finish reason. Possible values are __Normal termination__, * __Insufficient funds__, __Internal error (billing timeout)__, - * __Terminated administratively__, __JS Error__, __Timeout__. + * __Terminated administratively__, __JS session error__, __Timeout__ */ public String getFinishReason() { return this.finishReason; @@ -152,7 +180,8 @@ public boolean hasFinishReason() { private CallInfoType[] calls; /** - * The bound calls. + * The calls within JS session, including durations, cost, phone numbers + * and other information */ public CallInfoType[] getCalls() { return this.calls; @@ -165,7 +194,7 @@ public boolean hasCalls() { private ResourceUsageType[] otherResourceUsage; /** - * The used resorces. + * The used resorces */ public ResourceUsageType[] getOtherResourceUsage() { return this.otherResourceUsage; @@ -178,7 +207,7 @@ public boolean hasOtherResourceUsage() { private RecordType[] records; /** - * The bound records. + * The bound records */ public RecordType[] getRecords() { return this.records; @@ -191,7 +220,7 @@ public boolean hasRecords() { private String customData; /** - * The custom data. + * The custom data */ public String getCustomData() { return this.customData; @@ -210,6 +239,22 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); + if (ruleName != null) { + sb.append(aligned) + .append("\"ruleName\": \"") + .append(ruleName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applicationName != null) { + sb.append(aligned) + .append("\"applicationName\": \"") + .append(applicationName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (callSessionHistoryId != null) { sb.append(aligned) .append("\"callSessionHistoryId\": \"") diff --git a/src/main/java/com/voximplant/apiclient/response/CallerIDInfoType.java b/src/main/java/com/voximplant/apiclient/response/CallerIDInfoType.java index 3c5e54e..e28a065 100644 --- a/src/main/java/com/voximplant/apiclient/response/CallerIDInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/CallerIDInfoType.java @@ -18,7 +18,7 @@ public class CallerIDInfoType implements Alignable { private Long calleridId; /** - * The callerID id. + * The callerID id */ public Long getCalleridId() { return this.calleridId; @@ -31,7 +31,7 @@ public boolean hasCalleridId() { private String calleridNumber; /** - * The callerID number. + * The callerID number */ public String getCalleridNumber() { return this.calleridNumber; @@ -44,7 +44,7 @@ public boolean hasCalleridNumber() { private Boolean active; /** - * The active flag. + * The active flag */ public Boolean getActive() { return this.active; @@ -57,7 +57,7 @@ public boolean hasActive() { private Long codeEnteringAttemptsLeft; /** - * The code entering attempts left for the unverified callerID. + * The code entering attempts left for the unverified callerID */ public Long getCodeEnteringAttemptsLeft() { return this.codeEnteringAttemptsLeft; @@ -70,7 +70,7 @@ public boolean hasCodeEnteringAttemptsLeft() { private Long verificationCallAttemptsLeft; /** - * The verification call attempts left for the unverified callerID. + * The verification call attempts left for the unverified callerID */ public Long getVerificationCallAttemptsLeft() { return this.verificationCallAttemptsLeft; @@ -85,7 +85,7 @@ public boolean hasVerificationCallAttemptsLeft() { /** * The verification ending date in format: YYYY-MM-DD (for the verified - * callerID). + * callerID) */ public Date getVerifiedUntil() { return this.verifiedUntil; diff --git a/src/main/java/com/voximplant/apiclient/response/CardExpiredCallback.java b/src/main/java/com/voximplant/apiclient/response/CardExpiredCallback.java index 08c3ca1..8749226 100644 --- a/src/main/java/com/voximplant/apiclient/response/CardExpiredCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/CardExpiredCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a card is expired. Received as part of the * [AccountCallback] structure. */ public class CardExpiredCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/CardExpiresInMonthCallback.java b/src/main/java/com/voximplant/apiclient/response/CardExpiresInMonthCallback.java index 9de5f21..341731e 100644 --- a/src/main/java/com/voximplant/apiclient/response/CardExpiresInMonthCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/CardExpiresInMonthCallback.java @@ -11,8 +11,8 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when one month is left for a card to be expired. Received as +* part of the [AccountCallback] structure. */ public class CardExpiresInMonthCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/CardPaymentCallback.java b/src/main/java/com/voximplant/apiclient/response/CardPaymentCallback.java index 0b19b3c..6edf1bc 100644 --- a/src/main/java/com/voximplant/apiclient/response/CardPaymentCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/CardPaymentCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a bank card payment is made. Received as part of the * [AccountCallback] structure. */ public class CardPaymentCallback implements Alignable { @@ -19,7 +19,7 @@ public class CardPaymentCallback implements Alignable { private Long transactionId; /** - * The transaction ID. + * The transaction ID */ public Long getTransactionId() { return this.transactionId; @@ -32,7 +32,7 @@ public boolean hasTransactionId() { private String transactionType; /** - * The transaction type. + * The transaction type */ public String getTransactionType() { return this.transactionType; @@ -45,7 +45,7 @@ public boolean hasTransactionType() { private BigDecimal amount; /** - * The amount in the account currency. + * The amount in the account currency */ public BigDecimal getAmount() { return this.amount; diff --git a/src/main/java/com/voximplant/apiclient/response/CardPaymentFailedCallback.java b/src/main/java/com/voximplant/apiclient/response/CardPaymentFailedCallback.java index 6e6d2bb..6b803f5 100644 --- a/src/main/java/com/voximplant/apiclient/response/CardPaymentFailedCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/CardPaymentFailedCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a bank card payment is failed. Received as part of the * [AccountCallback] structure. */ public class CardPaymentFailedCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/CertificateExpiredCallback.java b/src/main/java/com/voximplant/apiclient/response/CertificateExpiredCallback.java new file mode 100644 index 0000000..82d1d85 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/CertificateExpiredCallback.java @@ -0,0 +1,34 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Deprecated. Please use the expired_certificates and +* expiring_certificates callbacks instead. +*/ +public class CertificateExpiredCallback implements Alignable { + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/CertificateInfoType.java b/src/main/java/com/voximplant/apiclient/response/CertificateInfoType.java new file mode 100644 index 0000000..8cafceb --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/CertificateInfoType.java @@ -0,0 +1,117 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The [ExpiredCertificateCallback] and [ExpiringCertificateCallback] +* callbacks details. +*/ +public class CertificateInfoType implements Alignable { + + private Long pushCredentialId; + + /** + * The push credential id + */ + public Long getPushCredentialId() { + return this.pushCredentialId; + } + + public boolean hasPushCredentialId() { + return this.pushCredentialId != null; + } + + private String certFileName; + + /** + * The push certificate file name + */ + public String getCertFileName() { + return this.certFileName; + } + + public boolean hasCertFileName() { + return this.certFileName != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.DateDeserializer.class) + private Date expirationDate; + + /** + * The push certificate expiration date in YYYY-MM-DD format + */ + public Date getExpirationDate() { + return this.expirationDate; + } + + public boolean hasExpirationDate() { + return this.expirationDate != null; + } + + private String[] applications; + + /** + * Array of application names + */ + public String[] getApplications() { + return this.applications; + } + + public boolean hasApplications() { + return this.applications != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (pushCredentialId != null) { + sb.append(aligned) + .append("\"pushCredentialId\": \"") + .append(pushCredentialId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (certFileName != null) { + sb.append(aligned) + .append("\"certFileName\": \"") + .append(certFileName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (expirationDate != null) { + sb.append(aligned) + .append("\"expirationDate\": \"") + .append(expirationDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (applications != null) { + sb.append(aligned) + .append("\"string\": ") + .append(StringHelper.arrayToString(applications, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ChangeAccountPlanResponse.java b/src/main/java/com/voximplant/apiclient/response/ChangeAccountPlanResponse.java new file mode 100644 index 0000000..9869dc0 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/ChangeAccountPlanResponse.java @@ -0,0 +1,81 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class ChangeAccountPlanResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + private ShortAccountInfoType accountInfo; + + /** + * The current account state + */ + public ShortAccountInfoType getAccountInfo() { + return this.accountInfo; + } + + public boolean hasAccountInfo() { + return this.accountInfo != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (accountInfo != null) { + sb.append(aligned) + .append("\"accountInfo\": \"") + .append(accountInfo) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ChargeAccountResponse.java b/src/main/java/com/voximplant/apiclient/response/ChargeAccountResponse.java index 6150bd8..99f81b9 100644 --- a/src/main/java/com/voximplant/apiclient/response/ChargeAccountResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/ChargeAccountResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private ShortAccountInfoType accountInfo; /** - * The current account state. + * The current account state */ public ShortAccountInfoType getAccountInfo() { return this.accountInfo; diff --git a/src/main/java/com/voximplant/apiclient/response/ChargeAccountResult.java b/src/main/java/com/voximplant/apiclient/response/ChargeAccountResult.java index 4df9f0d..db4dd9b 100644 --- a/src/main/java/com/voximplant/apiclient/response/ChargeAccountResult.java +++ b/src/main/java/com/voximplant/apiclient/response/ChargeAccountResult.java @@ -18,7 +18,7 @@ public class ChargeAccountResult implements Alignable { private BigDecimal chargedAmount; /** - * The charged money amount. + * The charged money amount */ public BigDecimal getChargedAmount() { return this.chargedAmount; @@ -31,7 +31,7 @@ public boolean hasChargedAmount() { private ChargedPhoneType[] phones; /** - * The charged phone list. + * The charged phone list */ public ChargedPhoneType[] getPhones() { return this.phones; diff --git a/src/main/java/com/voximplant/apiclient/response/ChargedPhoneType.java b/src/main/java/com/voximplant/apiclient/response/ChargedPhoneType.java index bae95f7..720649c 100644 --- a/src/main/java/com/voximplant/apiclient/response/ChargedPhoneType.java +++ b/src/main/java/com/voximplant/apiclient/response/ChargedPhoneType.java @@ -18,7 +18,7 @@ public class ChargedPhoneType implements Alignable { private Long phoneId; /** - * The phone ID. + * The phone ID */ public Long getPhoneId() { return this.phoneId; @@ -31,7 +31,7 @@ public boolean hasPhoneId() { private String phoneNumber; /** - * The phone number. + * The phone number */ public String getPhoneNumber() { return this.phoneNumber; @@ -44,7 +44,7 @@ public boolean hasPhoneNumber() { private Boolean deactivated; /** - * Is subscription frozen? + * Subscription is frozen */ public Boolean getDeactivated() { return this.deactivated; @@ -57,7 +57,7 @@ public boolean hasDeactivated() { private Boolean isCharged; /** - * Has phone been charged? + * Phone number has been charged */ public Boolean getIsCharged() { return this.isCharged; diff --git a/src/main/java/com/voximplant/apiclient/response/CheckAuthorizedAccountIPResponse.java b/src/main/java/com/voximplant/apiclient/response/CheckAuthorizedAccountIPResponse.java index 30c44c1..e54573d 100644 --- a/src/main/java/com/voximplant/apiclient/response/CheckAuthorizedAccountIPResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/CheckAuthorizedAccountIPResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private Boolean result; /** - * True if IP is allowed. + * True if IP is allowed */ public Boolean getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private String authorizedIp; /** - * The matched authorized IP or network (if found). + * The matched authorized IP or network (if found) */ public String getAuthorizedIp() { return this.authorizedIp; diff --git a/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionTemplateType.java b/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionTemplateType.java index d297b75..93b92d8 100644 --- a/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionTemplateType.java +++ b/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionTemplateType.java @@ -18,7 +18,7 @@ public class ChildAccountSubscriptionTemplateType implements Alignable { private Long subscriptionTemplateId; /** - * The subscription template ID. + * The subscription template ID */ public Long getSubscriptionTemplateId() { return this.subscriptionTemplateId; @@ -31,7 +31,7 @@ public boolean hasSubscriptionTemplateId() { private String subscriptionTemplateName; /** - * The subscription template name. + * The subscription template name */ public String getSubscriptionTemplateName() { return this.subscriptionTemplateName; @@ -44,7 +44,7 @@ public boolean hasSubscriptionTemplateName() { private BigDecimal installationPrice; /** - * The subscription template installation price. + * The subscription template installation price */ public BigDecimal getInstallationPrice() { return this.installationPrice; @@ -57,7 +57,7 @@ public boolean hasInstallationPrice() { private BigDecimal periodicPrice; /** - * The subscription template periodic price. + * The subscription template periodic price */ public BigDecimal getPeriodicPrice() { return this.periodicPrice; diff --git a/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionType.java b/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionType.java index 8f99d43..ac7ca7f 100644 --- a/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionType.java +++ b/src/main/java/com/voximplant/apiclient/response/ChildAccountSubscriptionType.java @@ -19,7 +19,7 @@ public class ChildAccountSubscriptionType implements Alignable { private Long subscriptionId; /** - * The subscription ID. + * The subscription ID */ public Long getSubscriptionId() { return this.subscriptionId; @@ -32,7 +32,7 @@ public boolean hasSubscriptionId() { private String subscriptionName; /** - * The subscription name. + * The subscription name */ public String getSubscriptionName() { return this.subscriptionName; @@ -45,7 +45,7 @@ public boolean hasSubscriptionName() { private Long subscriptionTemplateId; /** - * The subscription template ID. + * The subscription template ID */ public Long getSubscriptionTemplateId() { return this.subscriptionTemplateId; @@ -58,7 +58,7 @@ public boolean hasSubscriptionTemplateId() { private Boolean autoCharge; /** - * Is the subscription prolonged automatically? + * The subscription is prolonged automatically */ public Boolean getAutoCharge() { return this.autoCharge; @@ -72,7 +72,7 @@ public boolean hasAutoCharge() { private Date nextRenewal; /** - * The next charge UTC date in format: YYYY-MM-DD. + * The next charge UTC date in format: YYYY-MM-DD */ public Date getNextRenewal() { return this.nextRenewal; @@ -85,7 +85,7 @@ public boolean hasNextRenewal() { private BigDecimal periodicPrice; /** - * The periodic payment amount. + * The periodic payment amount */ public BigDecimal getPeriodicPrice() { return this.periodicPrice; @@ -98,7 +98,7 @@ public boolean hasPeriodicPrice() { private Boolean active; /** - * Is the subscription active? + * The subscription is active */ public Boolean getActive() { return this.active; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedACDQueueType.java b/src/main/java/com/voximplant/apiclient/response/ClonedACDQueueType.java index 8be71ab..bc6e652 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedACDQueueType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedACDQueueType.java @@ -18,7 +18,7 @@ public class ClonedACDQueueType implements Alignable { private Long acdQueueId; /** - * The ACD queue ID. + * The ACD queue ID */ public Long getAcdQueueId() { return this.acdQueueId; @@ -31,7 +31,7 @@ public boolean hasAcdQueueId() { private String acdQueueName; /** - * The ACD queue name. + * The ACD queue name */ public String getAcdQueueName() { return this.acdQueueName; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedACDSkillType.java b/src/main/java/com/voximplant/apiclient/response/ClonedACDSkillType.java index 8bdc7bc..bf7a89b 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedACDSkillType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedACDSkillType.java @@ -18,7 +18,7 @@ public class ClonedACDSkillType implements Alignable { private Long skillId; /** - * The ACD skill ID. + * The ACD skill ID */ public Long getSkillId() { return this.skillId; @@ -31,7 +31,7 @@ public boolean hasSkillId() { private String skillName; /** - * The ACD skill name. + * The ACD skill name */ public String getSkillName() { return this.skillName; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedAccountType.java b/src/main/java/com/voximplant/apiclient/response/ClonedAccountType.java index 4095163..a47d56f 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedAccountType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedAccountType.java @@ -18,7 +18,7 @@ public class ClonedAccountType implements Alignable { private Long accountId; /** - * The account's ID. + * The account's ID */ public Long getAccountId() { return this.accountId; @@ -31,7 +31,7 @@ public boolean hasAccountId() { private String accountName; /** - * The account's name. + * The account's name */ public String getAccountName() { return this.accountName; @@ -44,7 +44,7 @@ public boolean hasAccountName() { private String accountEmail; /** - * The account's email. + * The account's email */ public String getAccountEmail() { return this.accountEmail; @@ -57,7 +57,7 @@ public boolean hasAccountEmail() { private Boolean active; /** - * The account activation flag. + * The account activation flag */ public Boolean getActive() { return this.active; @@ -70,7 +70,7 @@ public boolean hasActive() { private String apiKey; /** - * The account API key. + * The account API key */ public String getApiKey() { return this.apiKey; @@ -83,7 +83,7 @@ public boolean hasApiKey() { private ClonedUserType[] users; /** - * The cloned users. + * The cloned users */ public ClonedUserType[] getUsers() { return this.users; @@ -96,7 +96,7 @@ public boolean hasUsers() { private ClonedScenarioType[] scenarios; /** - * The cloned scenarios. + * The cloned scenarios */ public ClonedScenarioType[] getScenarios() { return this.scenarios; @@ -109,7 +109,7 @@ public boolean hasScenarios() { private ClonedApplicationType[] applications; /** - * The cloned applications. + * The cloned applications */ public ClonedApplicationType[] getApplications() { return this.applications; @@ -122,7 +122,7 @@ public boolean hasApplications() { private ClonedACDQueueType[] acdQueues; /** - * The cloned ACD queues. + * The cloned ACD queues */ public ClonedACDQueueType[] getAcdQueues() { return this.acdQueues; @@ -135,7 +135,7 @@ public boolean hasAcdQueues() { private ClonedACDSkillType[] acdSkills; /** - * The cloned ACD skills. + * The cloned ACD skills */ public ClonedACDSkillType[] getAcdSkills() { return this.acdSkills; @@ -148,7 +148,7 @@ public boolean hasAcdSkills() { private ClonedAdminRoleType[] adminRoles; /** - * The cloned admin roles. + * The cloned admin roles */ public ClonedAdminRoleType[] getAdminRoles() { return this.adminRoles; @@ -161,7 +161,7 @@ public boolean hasAdminRoles() { private ClonedAdminUserType[] adminUsers; /** - * The cloned admin users. + * The cloned admin users */ public ClonedAdminUserType[] getAdminUsers() { return this.adminUsers; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedAdminRoleType.java b/src/main/java/com/voximplant/apiclient/response/ClonedAdminRoleType.java index 459bca8..fb159b0 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedAdminRoleType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedAdminRoleType.java @@ -18,7 +18,7 @@ public class ClonedAdminRoleType implements Alignable { private Long adminRoleId; /** - * The admin role ID. + * The admin role ID */ public Long getAdminRoleId() { return this.adminRoleId; @@ -31,7 +31,7 @@ public boolean hasAdminRoleId() { private String adminRoleName; /** - * The admin role name. + * The admin role name */ public String getAdminRoleName() { return this.adminRoleName; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedAdminUserType.java b/src/main/java/com/voximplant/apiclient/response/ClonedAdminUserType.java index 97de7cc..ee1c646 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedAdminUserType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedAdminUserType.java @@ -18,7 +18,7 @@ public class ClonedAdminUserType implements Alignable { private Long adminUserId; /** - * The admin user ID. + * The admin user ID */ public Long getAdminUserId() { return this.adminUserId; @@ -31,7 +31,7 @@ public boolean hasAdminUserId() { private String adminUserName; /** - * The admin user name. + * The admin user name */ public String getAdminUserName() { return this.adminUserName; @@ -44,7 +44,7 @@ public boolean hasAdminUserName() { private String adminUserApiKey; /** - * The API key of the admin user. + * The API key of the admin user */ public String getAdminUserApiKey() { return this.adminUserApiKey; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedApplicationType.java b/src/main/java/com/voximplant/apiclient/response/ClonedApplicationType.java index aace63a..bfd138c 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedApplicationType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedApplicationType.java @@ -18,7 +18,7 @@ public class ClonedApplicationType implements Alignable { private Long applicationId; /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -31,7 +31,7 @@ public boolean hasApplicationId() { private String applicationName; /** - * The full application name. + * The full application name */ public String getApplicationName() { return this.applicationName; @@ -44,7 +44,7 @@ public boolean hasApplicationName() { private ClonedRuleType[] users; /** - * The cloned rules. + * The cloned rules */ public ClonedRuleType[] getUsers() { return this.users; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedRuleType.java b/src/main/java/com/voximplant/apiclient/response/ClonedRuleType.java index 571511a..df9a3f0 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedRuleType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedRuleType.java @@ -18,7 +18,7 @@ public class ClonedRuleType implements Alignable { private Long ruleId; /** - * The rule ID. + * The rule ID */ public Long getRuleId() { return this.ruleId; @@ -31,7 +31,7 @@ public boolean hasRuleId() { private String ruleName; /** - * The rule name. + * The rule name */ public String getRuleName() { return this.ruleName; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedScenarioType.java b/src/main/java/com/voximplant/apiclient/response/ClonedScenarioType.java index 9e518db..57350dd 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedScenarioType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedScenarioType.java @@ -18,7 +18,7 @@ public class ClonedScenarioType implements Alignable { private Long scenarioId; /** - * The scenario ID. + * The scenario ID */ public Long getScenarioId() { return this.scenarioId; @@ -31,7 +31,7 @@ public boolean hasScenarioId() { private String scenarioName; /** - * The scenario name. + * The scenario name */ public String getScenarioName() { return this.scenarioName; diff --git a/src/main/java/com/voximplant/apiclient/response/ClonedUserType.java b/src/main/java/com/voximplant/apiclient/response/ClonedUserType.java index aae04a6..83db48a 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClonedUserType.java +++ b/src/main/java/com/voximplant/apiclient/response/ClonedUserType.java @@ -18,7 +18,7 @@ public class ClonedUserType implements Alignable { private Long userId; /** - * The user ID. + * The user ID */ public Long getUserId() { return this.userId; @@ -31,7 +31,7 @@ public boolean hasUserId() { private String userName; /** - * The user name. + * The user name */ public String getUserName() { return this.userName; diff --git a/src/main/java/com/voximplant/apiclient/response/ContactInfoType.java b/src/main/java/com/voximplant/apiclient/response/ContactInfoType.java index c6e25a4..527e004 100644 --- a/src/main/java/com/voximplant/apiclient/response/ContactInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ContactInfoType.java @@ -18,7 +18,7 @@ public class ContactInfoType implements Alignable { private Long contactId; /** - * The contact ID. + * The contact ID */ public Long getContactId() { return this.contactId; @@ -31,7 +31,7 @@ public boolean hasContactId() { private String contactType; /** - * The contact type. The following values are available: 'email'. + * The contact type. The following values are available: 'email' */ public String getContactType() { return this.contactType; @@ -44,7 +44,7 @@ public boolean hasContactType() { private String contactData; /** - * The contact data (i.g. email). + * The contact data (i.g. email) */ public String getContactData() { return this.contactData; @@ -57,7 +57,7 @@ public boolean hasContactData() { private Boolean isPersistent; /** - * The persistent flag. + * The persistent flag */ public Boolean getIsPersistent() { return this.isPersistent; @@ -70,7 +70,7 @@ public boolean hasIsPersistent() { private String description; /** - * The contact description. + * The contact description */ public String getDescription() { return this.description; @@ -83,7 +83,7 @@ public boolean hasDescription() { private Long nextVerificationAfterSec; /** - * The verification code sending timeout is seconds. + * The verification code sending timeout is seconds */ public Long getNextVerificationAfterSec() { return this.nextVerificationAfterSec; @@ -112,7 +112,7 @@ public boolean hasVerified() { /** * The attached notification group list. The following groups are - * available: 'news', 'tariff_changing', 'account', 'development'. + * available: 'news', 'tariff_changing', 'account', 'development' */ public String[] getNotificationGroup() { return this.notificationGroup; diff --git a/src/main/java/com/voximplant/apiclient/response/ContractInfoType.java b/src/main/java/com/voximplant/apiclient/response/ContractInfoType.java index 546e17b..f8d684b 100644 --- a/src/main/java/com/voximplant/apiclient/response/ContractInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ContractInfoType.java @@ -18,7 +18,7 @@ public class ContractInfoType implements Alignable { private String agreementNumber; /** - * The agreement number. + * The agreement number */ public String getAgreementNumber() { return this.agreementNumber; diff --git a/src/main/java/com/voximplant/apiclient/response/ContractorInfoType.java b/src/main/java/com/voximplant/apiclient/response/ContractorInfoType.java index bcabfb5..6a21613 100644 --- a/src/main/java/com/voximplant/apiclient/response/ContractorInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ContractorInfoType.java @@ -18,7 +18,7 @@ public class ContractorInfoType implements Alignable { private String inn; /** - * Russian-specific ID for tax purposes. + * Russian-specific ID for tax purposes */ public String getInn() { return this.inn; @@ -32,7 +32,7 @@ public boolean hasInn() { /** * Additional Russian-specific ID for tax purposes for businesses; there - * is no KPP for individual entrepreneurs. + * is no KPP for individual entrepreneurs */ public String getKpp() { return this.kpp; @@ -45,7 +45,7 @@ public boolean hasKpp() { private String companyName; /** - * The full company name. + * The full company name */ public String getCompanyName() { return this.companyName; @@ -58,7 +58,7 @@ public boolean hasCompanyName() { private String companyAddress; /** - * The full company address with a postcode. + * The full company address with a postcode */ public String getCompanyAddress() { return this.companyAddress; @@ -71,7 +71,7 @@ public boolean hasCompanyAddress() { private String companyPhone; /** - * The company phone. + * The company phone */ public String getCompanyPhone() { return this.companyPhone; @@ -84,7 +84,7 @@ public boolean hasCompanyPhone() { private String correspondenceAddress; /** - * The correspondence address. + * The correspondence address */ public String getCorrespondenceAddress() { return this.correspondenceAddress; @@ -97,7 +97,7 @@ public boolean hasCorrespondenceAddress() { private String correspondenceEmail; /** - * The correspondence email. + * The correspondence email */ public String getCorrespondenceEmail() { return this.correspondenceEmail; @@ -110,7 +110,7 @@ public boolean hasCorrespondenceEmail() { private String correspondenceTo; /** - * The correspondence to. + * The correspondence to */ public String getCorrespondenceTo() { return this.correspondenceTo; @@ -123,7 +123,7 @@ public boolean hasCorrespondenceTo() { private ContractInfoType contract; /** - * The contract info. + * The contract info */ public ContractInfoType getContract() { return this.contract; diff --git a/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceServiceType.java b/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceServiceType.java index 47af44c..c5e3f8e 100644 --- a/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceServiceType.java +++ b/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceServiceType.java @@ -18,7 +18,7 @@ public class ContractorInvoiceServiceType implements Alignable { private String serviceName; /** - * The service name. + * The service name */ public String getServiceName() { return this.serviceName; @@ -31,7 +31,7 @@ public boolean hasServiceName() { private BigDecimal serviceCost; /** - * The service cost (RUR). + * The service cost (RUR) */ public BigDecimal getServiceCost() { return this.serviceCost; diff --git a/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceType.java b/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceType.java index 1a1e81c..cd3fc69 100644 --- a/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceType.java +++ b/src/main/java/com/voximplant/apiclient/response/ContractorInvoiceType.java @@ -18,7 +18,7 @@ public class ContractorInvoiceType implements Alignable { private String invoiceNumber; /** - * The invoice number. + * The invoice number */ public String getInvoiceNumber() { return this.invoiceNumber; @@ -86,7 +86,7 @@ public boolean hasToDate() { private BigDecimal totalAmount; /** - * The total invoice amount (RUR). + * The total invoice amount (RUR) */ public BigDecimal getTotalAmount() { return this.totalAmount; @@ -99,7 +99,7 @@ public boolean hasTotalAmount() { private BigDecimal paidAmount; /** - * The paid amount (RUR). + * The paid amount (RUR) */ public BigDecimal getPaidAmount() { return this.paidAmount; @@ -112,7 +112,7 @@ public boolean hasPaidAmount() { private ContractorInvoiceServiceType services; /** - * The service list. + * The service list */ public ContractorInvoiceServiceType getServices() { return this.services; diff --git a/src/main/java/com/voximplant/apiclient/response/CreateManualCallListResponse.java b/src/main/java/com/voximplant/apiclient/response/CreateManualCallListResponse.java index 196712e..8680132 100644 --- a/src/main/java/com/voximplant/apiclient/response/CreateManualCallListResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/CreateManualCallListResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long count; /** - * The number of stored records. + * The number of stored records */ public Long getCount() { return this.count; @@ -50,7 +50,7 @@ public boolean hasCount() { private Long listId; /** - * The list ID. + * The list ID */ public Long getListId() { return this.listId; diff --git a/src/main/java/com/voximplant/apiclient/response/CreateSipRegistrationResponse.java b/src/main/java/com/voximplant/apiclient/response/CreateSipRegistrationResponse.java index 3b3c668..d744fcf 100644 --- a/src/main/java/com/voximplant/apiclient/response/CreateSipRegistrationResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/CreateSipRegistrationResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long sipRegistrationId; /** - * The sip registration id. + * The sip registration id */ public Long getSipRegistrationId() { return this.sipRegistrationId; @@ -50,7 +50,7 @@ public boolean hasSipRegistrationId() { private ShortAccountInfoType accountInfo; /** - * The current account state. + * The current account state */ public ShortAccountInfoType getAccountInfo() { return this.accountInfo; diff --git a/src/main/java/com/voximplant/apiclient/response/DelAuthorizedAccountIPResponse.java b/src/main/java/com/voximplant/apiclient/response/DelAuthorizedAccountIPResponse.java index b809cb1..cbe59c5 100644 --- a/src/main/java/com/voximplant/apiclient/response/DelAuthorizedAccountIPResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/DelAuthorizedAccountIPResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private Long result; /** - * The removed network count. + * The removed network count */ public Long getResult() { return this.result; diff --git a/src/main/java/com/voximplant/apiclient/response/DelKeyValueItemResponse.java b/src/main/java/com/voximplant/apiclient/response/DelKeyValueItemResponse.java new file mode 100644 index 0000000..ee35f13 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/DelKeyValueItemResponse.java @@ -0,0 +1,57 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class DelKeyValueItemResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/DelOutboundTestPhoneNumberResponse.java b/src/main/java/com/voximplant/apiclient/response/DelOutboundTestPhoneNumberResponse.java new file mode 100644 index 0000000..a41915f --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/DelOutboundTestPhoneNumberResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class DelOutboundTestPhoneNumberResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/DialogflowKey.java b/src/main/java/com/voximplant/apiclient/response/DialogflowKey.java index 990978e..d1ca0dc 100644 --- a/src/main/java/com/voximplant/apiclient/response/DialogflowKey.java +++ b/src/main/java/com/voximplant/apiclient/response/DialogflowKey.java @@ -12,14 +12,14 @@ /** * The [Dialogflow](/docs/references/httpapi/dialogflowcredentials) -* key's content +* key's content. */ public class DialogflowKey implements Alignable { private String projectId; /** - * The project ID from Json Web Key. + * The project ID from Json Web Key */ public String getProjectId() { return this.projectId; diff --git a/src/main/java/com/voximplant/apiclient/response/DialogflowKeyInfo.java b/src/main/java/com/voximplant/apiclient/response/DialogflowKeyInfo.java index bb0f6cf..0909291 100644 --- a/src/main/java/com/voximplant/apiclient/response/DialogflowKeyInfo.java +++ b/src/main/java/com/voximplant/apiclient/response/DialogflowKeyInfo.java @@ -31,7 +31,7 @@ public boolean hasDialogflowKeyId() { private DialogflowKey content; /** - * The key's content. + * The key's content */ public DialogflowKey getContent() { return this.content; @@ -44,7 +44,7 @@ public boolean hasContent() { private ApplicationInfoType[] applications; /** - * Bound applications. + * Bound applications */ public ApplicationInfoType[] getApplications() { return this.applications; diff --git a/src/main/java/com/voximplant/apiclient/response/ExchangeRates.java b/src/main/java/com/voximplant/apiclient/response/ExchangeRates.java index 5bd54d3..a1e6592 100644 --- a/src/main/java/com/voximplant/apiclient/response/ExchangeRates.java +++ b/src/main/java/com/voximplant/apiclient/response/ExchangeRates.java @@ -18,7 +18,7 @@ public class ExchangeRates implements Alignable { private BigDecimal RUR; /** - * The RUR exchange rate. + * The RUR exchange rate */ public BigDecimal getRUR() { return this.RUR; @@ -31,7 +31,7 @@ public boolean hasRUR() { private BigDecimal EUR; /** - * The EUR exchange rate. + * The EUR exchange rate */ public BigDecimal getEUR() { return this.EUR; @@ -44,7 +44,7 @@ public boolean hasEUR() { private BigDecimal USD; /** - * The USD exchange rate. It's always equal to 1. + * The USD exchange rate. It's always equal to 1 */ public BigDecimal getUSD() { return this.USD; diff --git a/src/main/java/com/voximplant/apiclient/response/ExpiredAgreementCallback.java b/src/main/java/com/voximplant/apiclient/response/ExpiredAgreementCallback.java index 3351187..64d6813 100644 --- a/src/main/java/com/voximplant/apiclient/response/ExpiredAgreementCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/ExpiredAgreementCallback.java @@ -11,15 +11,16 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received for the accounts for which the confirmation documents +* waiting period has already expired or expires today. Received as part +* of the [AccountCallback] structure. */ public class ExpiredAgreementCallback implements Alignable { private Long[] documentIds; /** - * The list of the expired agreements IDs. + * The list of the expired agreements IDs */ public Long[] getDocumentIds() { return this.documentIds; diff --git a/src/main/java/com/voximplant/apiclient/response/ExpiredCallerIDCallback.java b/src/main/java/com/voximplant/apiclient/response/ExpiredCallerIDCallback.java index a0c8e42..9b3a3aa 100644 --- a/src/main/java/com/voximplant/apiclient/response/ExpiredCallerIDCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/ExpiredCallerIDCallback.java @@ -11,14 +11,14 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. +* Received when a caller ID is expired. */ public class ExpiredCallerIDCallback implements Alignable { private String[] callerids; /** - * The list of the expired Caller IDs. + * The list of the expired Caller IDs */ public String[] getCallerids() { return this.callerids; diff --git a/src/main/java/com/voximplant/apiclient/response/ExpiredCertificateCallback.java b/src/main/java/com/voximplant/apiclient/response/ExpiredCertificateCallback.java new file mode 100644 index 0000000..74871eb --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/ExpiredCertificateCallback.java @@ -0,0 +1,53 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Received for the accounts whose Apple VOIP certificates are expired. +* Received as part of the [AccountCallback] structure. +*/ +public class ExpiredCertificateCallback implements Alignable { + + private CertificateInfoType[] certificates; + + /** + * The expired certificates info + */ + public CertificateInfoType[] getCertificates() { + return this.certificates; + } + + public boolean hasCertificates() { + return this.certificates != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (certificates != null) { + sb.append(aligned) + .append("\"CertificateInfoType\": ") + .append(StringHelper.arrayToString(certificates, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ExpiringAgreementCallback.java b/src/main/java/com/voximplant/apiclient/response/ExpiringAgreementCallback.java index 6cf041b..e468da3 100644 --- a/src/main/java/com/voximplant/apiclient/response/ExpiringAgreementCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/ExpiringAgreementCallback.java @@ -11,29 +11,30 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received for the accounts for which the confirmation documents +* waiting period expires in 20/15/10/5/1 day(s). Received as part of +* the [AccountCallback] structure. */ public class ExpiringAgreementCallback implements Alignable { @JsonDeserialize(using=com.voximplant.apiclient.util.DateDeserializer.class) - private Date expirationDate ; + private Date expirationDate; /** - * The date of agreement expiration in format: YYYY-MM-DD. + * The date of agreement expiration in format: YYYY-MM-DD */ - public Date getExpirationDate () { - return this.expirationDate ; + public Date getExpirationDate() { + return this.expirationDate; } - public boolean hasExpirationDate () { - return this.expirationDate != null; + public boolean hasExpirationDate() { + return this.expirationDate != null; } private Long untilExpiration; /** - * The number of days left until an expiration date. + * The number of days left until an expiration date */ public Long getUntilExpiration() { return this.untilExpiration; @@ -52,10 +53,10 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (expirationDate != null) { + if (expirationDate != null) { sb.append(aligned) - .append("\"expirationDate \": \"") - .append(expirationDate ) + .append("\"expirationDate\": \"") + .append(expirationDate) .append('"') .append(',') .append(System.lineSeparator()); diff --git a/src/main/java/com/voximplant/apiclient/response/ExpiringCallerIDCallback.java b/src/main/java/com/voximplant/apiclient/response/ExpiringCallerIDCallback.java index 10710f0..949c6fc 100644 --- a/src/main/java/com/voximplant/apiclient/response/ExpiringCallerIDCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/ExpiringCallerIDCallback.java @@ -11,14 +11,14 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. +* Received when a caller ID is about to be expired. */ public class ExpiringCallerIDCallback implements Alignable { private String[] callerids; /** - * The list of expiring Caller IDs. + * The list of expiring Caller IDs */ public String[] getCallerids() { return this.callerids; @@ -32,7 +32,7 @@ public boolean hasCallerids() { private Date expirationDate; /** - * The Caller IDs expiration date in YYYY-MM-DD format. + * The Caller IDs expiration date in YYYY-MM-DD format */ public Date getExpirationDate() { return this.expirationDate; diff --git a/src/main/java/com/voximplant/apiclient/response/ExpiringCertificateCallback.java b/src/main/java/com/voximplant/apiclient/response/ExpiringCertificateCallback.java new file mode 100644 index 0000000..a7509b8 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/ExpiringCertificateCallback.java @@ -0,0 +1,53 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Received for the accounts whose Apple VOIP certificates expire in 14 +* or fewer days. Received as part of the [AccountCallback] structure. +*/ +public class ExpiringCertificateCallback implements Alignable { + + private CertificateInfoType[] certificates; + + /** + * The expiring certificates info + */ + public CertificateInfoType[] getCertificates() { + return this.certificates; + } + + public boolean hasCertificates() { + return this.certificates != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (certificates != null) { + sb.append(aligned) + .append("\"CertificateInfoType\": ") + .append(StringHelper.arrayToString(certificates, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/FailedSms.java b/src/main/java/com/voximplant/apiclient/response/FailedSms.java index 6806aff..8b27df1 100644 --- a/src/main/java/com/voximplant/apiclient/response/FailedSms.java +++ b/src/main/java/com/voximplant/apiclient/response/FailedSms.java @@ -18,7 +18,7 @@ public class FailedSms implements Alignable { private String destinationNumber; /** - * The SMS destination number. + * The SMS destination number */ public String getDestinationNumber() { return this.destinationNumber; @@ -31,7 +31,7 @@ public boolean hasDestinationNumber() { private String errorDescription; /** - * The error description. + * The error description */ public String getErrorDescription() { return this.errorDescription; @@ -44,7 +44,7 @@ public boolean hasErrorDescription() { private Long errorCode; /** - * The error code. + * The error code */ public Long getErrorCode() { return this.errorCode; diff --git a/src/main/java/com/voximplant/apiclient/response/GetACDHistoryResponse.java b/src/main/java/com/voximplant/apiclient/response/GetACDHistoryResponse.java index c0a25d5..e06bf39 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetACDHistoryResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetACDHistoryResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found ACD session count. + * The total found ACD session count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned ACD session count. + * The returned ACD session count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAccountDocumentsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAccountDocumentsResponse.java index f219074..604c4f8 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAccountDocumentsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAccountDocumentsResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private AccountVerifications[] result; /** - * The account verifications. + * The account verifications */ public AccountVerifications[] getResult() { return this.result; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAccountInfoResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAccountInfoResponse.java index 55e38f5..f432eca 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAccountInfoResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAccountInfoResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private AccountInfoType result; /** - * Account's info as the [AccountInfoType] object instance. + * Account's info as the [AccountInfoType] object instance */ public AccountInfoType getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private String apiAddress; /** - * The preferred address for the http api requests. + * The preferred address for the Management API requests */ public String getApiAddress() { return this.apiAddress; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAccountInvoicesResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAccountInvoicesResponse.java new file mode 100644 index 0000000..e091fa4 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetAccountInvoicesResponse.java @@ -0,0 +1,102 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetAccountInvoicesResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private AccountInvocie result; + + /** + * Array of the account invoices + */ + public AccountInvocie getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + private Long totalCount; + + /** + * Total number of invoices matching the query parameters + */ + public Long getTotalCount() { + return this.totalCount; + } + + public boolean hasTotalCount() { + return this.totalCount != null; + } + + private Long count; + + /** + * Number of returned invoices matching the query parameters + */ + public Long getCount() { + return this.count; + } + + public boolean hasCount() { + return this.count != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (totalCount != null) { + sb.append(aligned) + .append("\"totalCount\": \"") + .append(totalCount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (count != null) { + sb.append(aligned) + .append("\"count\": \"") + .append(count) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetAccountPhoneNumberCountriesResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAccountPhoneNumberCountriesResponse.java new file mode 100644 index 0000000..9b52372 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetAccountPhoneNumberCountriesResponse.java @@ -0,0 +1,58 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetAccountPhoneNumberCountriesResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private String[] result; + + /** + * Array of country codes + */ + public String[] getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"string\": ") + .append(StringHelper.arrayToString(result, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetAccountPlansResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAccountPlansResponse.java new file mode 100644 index 0000000..c194510 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetAccountPlansResponse.java @@ -0,0 +1,55 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetAccountPlansResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private AccountPlanType[] result; + + public AccountPlanType[] getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"AccountPlanType\": ") + .append(StringHelper.arrayToString(result, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetAdminRolesResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAdminRolesResponse.java index 9b1bd69..6abb35a 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAdminRolesResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAdminRolesResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found admin role count. + * The total found admin role count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned admin role count. + * The returned admin role count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAdminUsersResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAdminUsersResponse.java index f59458d..4fe29f3 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAdminUsersResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAdminUsersResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found admin user count. + * The total found admin user count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned admin user count. + * The returned admin user count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetApplicationsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetApplicationsResponse.java index 67f7cad..78b46ab 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetApplicationsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetApplicationsResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found application count. + * The total found application count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned application count. + * The returned application count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAuditLogResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAuditLogResponse.java index 9d492b0..87bfc99 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAuditLogResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAuditLogResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found item count. + * The total found item count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned item count. + * The returned item count */ public Long getCount() { return this.count; @@ -60,7 +60,7 @@ public boolean hasCount() { private String timezone; /** - * The used timezone. + * The used timezone */ public String getTimezone() { return this.timezone; @@ -73,7 +73,7 @@ public boolean hasTimezone() { private Long historyReportId; /** - * The history report ID (async mode). + * The history report ID (async mode) */ public Long getHistoryReportId() { return this.historyReportId; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAuthorizedAccountIPsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAuthorizedAccountIPsResponse.java index 95e8b1a..2f2361d 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAuthorizedAccountIPsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAuthorizedAccountIPsResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found network count. + * The total found network count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned network count. + * The returned network count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAutochargeConfigResultType.java b/src/main/java/com/voximplant/apiclient/response/GetAutochargeConfigResultType.java index fdcc212..17fde92 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAutochargeConfigResultType.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAutochargeConfigResultType.java @@ -18,7 +18,7 @@ public class GetAutochargeConfigResultType implements Alignable { private Boolean autoCharge; /** - * Is auto charge enabled or not. + * Is auto charge enabled or not */ public Boolean getAutoCharge() { return this.autoCharge; @@ -31,7 +31,7 @@ public boolean hasAutoCharge() { private Long minBalance; /** - * The auto charge threshold. + * The auto charge threshold */ public Long getMinBalance() { return this.minBalance; @@ -44,7 +44,7 @@ public boolean hasMinBalance() { private String cardOverrunValue; /** - * The auto top-up amount in the account's currency. + * The auto top-up amount in the account's currency */ public String getCardOverrunValue() { return this.cardOverrunValue; @@ -57,7 +57,7 @@ public boolean hasCardOverrunValue() { private String receiptEmail; /** - * The email for receiving payment receipts. + * The email for receiving payment receipts */ public String getReceiptEmail() { return this.receiptEmail; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAvailableAdminRoleEntriesResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAvailableAdminRoleEntriesResponse.java index 4232621..4caebc6 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAvailableAdminRoleEntriesResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAvailableAdminRoleEntriesResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private String[] result; /** - * Array of the admin role entries. + * Array of the admin role entries */ public String[] getResult() { return this.result; diff --git a/src/main/java/com/voximplant/apiclient/response/GetAvailablePlansResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAvailablePlansResponse.java new file mode 100644 index 0000000..4b5b86e --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetAvailablePlansResponse.java @@ -0,0 +1,55 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetAvailablePlansResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private PlanType[] result; + + public PlanType[] getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"PlanType\": ") + .append(StringHelper.arrayToString(result, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetAvailableRegulationsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetAvailableRegulationsResponse.java index 74c6c46..4e33bff 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetAvailableRegulationsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetAvailableRegulationsResponse.java @@ -27,7 +27,7 @@ public boolean hasError() { * If result equals 1: 1) the user has at least one regulation address * which is appropriate for verification or 2) the verification is not * required. If result equals 0, the regulations address needs to be - * created. + * created */ public Boolean getResult() { return this.result; @@ -40,7 +40,7 @@ public boolean hasResult() { private RegulationAddress[] availableAddress; /** - * The available RegulationAddress records. + * The available RegulationAddress records */ public RegulationAddress[] getAvailableAddress() { return this.availableAddress; @@ -53,7 +53,7 @@ public boolean hasAvailableAddress() { private Long countInProgress; /** - * The count of RegulationAddress in progress status. + * The count of RegulationAddress in progress status */ public Long getCountInProgress() { return this.countInProgress; diff --git a/src/main/java/com/voximplant/apiclient/response/GetCallHistoryResponse.java b/src/main/java/com/voximplant/apiclient/response/GetCallHistoryResponse.java index 83c951e..7167245 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetCallHistoryResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetCallHistoryResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private CallSessionInfoType[] result; /** - * The CallSessionInfoType records in sync mode or 1 in async mode. + * The CallSessionInfoType records in sync mode or 1 in async mode */ public CallSessionInfoType[] getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found call session count (sync mode). + * The total found call session count (sync mode) */ public Long getTotalCount() { return this.totalCount; @@ -50,7 +50,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned call session count (sync mode). + * The returned call session count (sync mode) */ public Long getCount() { return this.count; @@ -63,7 +63,7 @@ public boolean hasCount() { private String timezone; /** - * The used timezone. + * The used timezone */ public String getTimezone() { return this.timezone; @@ -76,7 +76,7 @@ public boolean hasTimezone() { private Long historyReportId; /** - * The history report ID (async mode). + * The history report ID (async mode) */ public Long getHistoryReportId() { return this.historyReportId; diff --git a/src/main/java/com/voximplant/apiclient/response/GetCallListDetailsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetCallListDetailsResponse.java index 8ae5e19..71d92de 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetCallListDetailsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetCallListDetailsResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private CallListDetailType[] result; /** - * Array of tasks for the roll call. + * Array of tasks for the roll call */ public CallListDetailType[] getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private Long count; /** - * The number of tasks. + * The number of tasks */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetCallListsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetCallListsResponse.java index d1ae013..981d2f6 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetCallListsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetCallListsResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private CallListType[] result; /** - * Array of lists. + * Array of lists */ public CallListType[] getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private Long count; /** - * The returned call list count. + * The returned call list count */ public Long getCount() { return this.count; @@ -50,7 +50,7 @@ public boolean hasCount() { private Long totalCount; /** - * The total found call list count. + * The total found call list count */ public Long getTotalCount() { return this.totalCount; diff --git a/src/main/java/com/voximplant/apiclient/response/GetCallerIDsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetCallerIDsResponse.java index 7d6e981..9ec6e72 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetCallerIDsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetCallerIDsResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found record count. + * The total found record count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned record count. + * The returned record count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetChildrenAccountsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetChildrenAccountsResponse.java index e47c74a..54a87da 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetChildrenAccountsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetChildrenAccountsResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found user count. + * The total found user count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned user count. + * The returned user count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetCurrencyRateResponse.java b/src/main/java/com/voximplant/apiclient/response/GetCurrencyRateResponse.java index 1ab6d32..c77de19 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetCurrencyRateResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetCurrencyRateResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private ExchangeRates result; /** - * The exchange rates. + * The exchange rates */ public ExchangeRates getResult() { return this.result; diff --git a/src/main/java/com/voximplant/apiclient/response/GetHistoryReportsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetHistoryReportsResponse.java index 94503e7..16beb74 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetHistoryReportsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetHistoryReportsResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found reports count. + * The total found reports count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned reports count. + * The returned reports count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetKeyValueItemResponse.java b/src/main/java/com/voximplant/apiclient/response/GetKeyValueItemResponse.java new file mode 100644 index 0000000..39aadfc --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetKeyValueItemResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetKeyValueItemResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private KeyValueItems result; + + /** + * The key-value item + */ + public KeyValueItems getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetKeyValueItemsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetKeyValueItemsResponse.java new file mode 100644 index 0000000..1d23639 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetKeyValueItemsResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetKeyValueItemsResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private KeyValueItems result; + + /** + * The key-value pairs + */ + public KeyValueItems getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetKeyValueKeysResponse.java b/src/main/java/com/voximplant/apiclient/response/GetKeyValueKeysResponse.java new file mode 100644 index 0000000..bcfe441 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetKeyValueKeysResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetKeyValueKeysResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private KeyValueKeys result; + + /** + * The key-value keys + */ + public KeyValueKeys getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetMaxBankCardPaymentResultType.java b/src/main/java/com/voximplant/apiclient/response/GetMaxBankCardPaymentResultType.java index de5b835..98e8e0b 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetMaxBankCardPaymentResultType.java +++ b/src/main/java/com/voximplant/apiclient/response/GetMaxBankCardPaymentResultType.java @@ -19,7 +19,7 @@ public class GetMaxBankCardPaymentResultType implements Alignable { /** * The maximum payment for the specified card. It's always equal or less - * than **new_max_payment**. + * than **new_max_payment** */ public Long getMaxPayment() { return this.maxPayment; @@ -33,8 +33,7 @@ public boolean hasMaxPayment() { /** * The maximum payment available for any card. The values depends on - * payment gateways, previous transactions during the last 24 hours, - * etc. + * payment gateways, previous transactions during the last 24 hours, etc */ public Long getNewMaxPayment() { return this.newMaxPayment; @@ -47,7 +46,7 @@ public boolean hasNewMaxPayment() { private String currency; /** - * The currency code (USD, RUR, ...). + * The currency code (USD, RUR, ...) */ public String getCurrency() { return this.currency; diff --git a/src/main/java/com/voximplant/apiclient/response/GetMoneyAmountToChargeResult.java b/src/main/java/com/voximplant/apiclient/response/GetMoneyAmountToChargeResult.java index 8366708..16f584b 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetMoneyAmountToChargeResult.java +++ b/src/main/java/com/voximplant/apiclient/response/GetMoneyAmountToChargeResult.java @@ -19,7 +19,7 @@ public class GetMoneyAmountToChargeResult implements Alignable { /** * The money amount of the subscriptions + plan + negative_balance in - * the specified currency. + * the specified currency */ public BigDecimal getAmount() { return this.amount; @@ -33,7 +33,7 @@ public boolean hasAmount() { /** * The 'amount' value minus the positive account balance in the - * specified currency. + * specified currency */ public BigDecimal getMinAmount() { return this.minAmount; @@ -47,7 +47,7 @@ public boolean hasMinAmount() { /** * Exists if bank card payments are allowed. It's the maximum of the - * 'amount' in USD and the min_card_payment (10$). + * 'amount' in USD and the min_card_payment (10$) */ public BigDecimal getBankCardAmountUsd() { return this.bankCardAmountUsd; @@ -61,7 +61,7 @@ public boolean hasBankCardAmountUsd() { /** * Exists if bank card payments are allowed. It's the maximum of the - * 'min_amount' in USD and the min_card_payment (10$). + * 'min_amount' in USD and the min_card_payment (10$) */ public BigDecimal getMinBankCardAmountUsd() { return this.minBankCardAmountUsd; @@ -75,7 +75,7 @@ public boolean hasMinBankCardAmountUsd() { /** * Exists if robokassa payments are allowed. It's the maximum of the - * 'min_amount' in RUR and the min_robokassa_payment (500 RUR). + * 'min_amount' in RUR and the min_robokassa_payment (500 RUR) */ public BigDecimal getRobokassaAmountRub() { return this.robokassaAmountRub; @@ -89,7 +89,7 @@ public boolean hasRobokassaAmountRub() { /** * Exists if robokassa payments are allowed. It's the maximum of the - * 'min_amount' in RUR and the min_robokassa_payment (500 RUR). + * 'min_amount' in RUR and the min_robokassa_payment (500 RUR) */ public BigDecimal getMinRobokassaAmountRub() { return this.minRobokassaAmountRub; @@ -102,7 +102,7 @@ public boolean hasMinRobokassaAmountRub() { private SubscriptionsToChargeType[] subscriptions; /** - * The subscriptions to charge. + * The subscriptions to charge */ public SubscriptionsToChargeType[] getSubscriptions() { return this.subscriptions; diff --git a/src/main/java/com/voximplant/apiclient/response/GetNewPhoneNumbersResponse.java b/src/main/java/com/voximplant/apiclient/response/GetNewPhoneNumbersResponse.java index fd35308..2a7c750 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetNewPhoneNumbersResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetNewPhoneNumbersResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found phone count. + * The total found phone count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned phone count. + * The returned phone count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetOutboundTestPhoneNumbersResponse.java b/src/main/java/com/voximplant/apiclient/response/GetOutboundTestPhoneNumbersResponse.java new file mode 100644 index 0000000..9ebb484 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetOutboundTestPhoneNumbersResponse.java @@ -0,0 +1,55 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetOutboundTestPhoneNumbersResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private OutboundTestPhonenumberInfoType[] result; + + public OutboundTestPhonenumberInfoType[] getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"OutboundTestPhonenumberInfoType\": ") + .append(StringHelper.arrayToString(result, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetPhoneNumbersResponse.java b/src/main/java/com/voximplant/apiclient/response/GetPhoneNumbersResponse.java index 23328d3..9f81754 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetPhoneNumbersResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetPhoneNumbersResponse.java @@ -23,7 +23,10 @@ public boolean hasError() { private AttachedPhoneInfoType[] result; - public AttachedPhoneInfoType[] getResult() { + /** + * Phone numbers info + */ + public AttachedPhoneInfoType[] getResult() { return this.result; } @@ -34,7 +37,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found phone count. + * The total found phone count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +50,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned phone count. + * The returned phone count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetPstnBlackListResponse.java b/src/main/java/com/voximplant/apiclient/response/GetPstnBlackListResponse.java index ccec040..e9bb1a8 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetPstnBlackListResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetPstnBlackListResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found phone numbers count. + * The total found phone numbers count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned phone numbers count. + * The returned phone numbers count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetQueuesResponse.java b/src/main/java/com/voximplant/apiclient/response/GetQueuesResponse.java index a806b8a..79d9b41 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetQueuesResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetQueuesResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found queue count. + * The total found queue count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned queue count. + * The returned queue count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetRegulationsAddressResponse.java b/src/main/java/com/voximplant/apiclient/response/GetRegulationsAddressResponse.java index 52a30e0..e318885 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetRegulationsAddressResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetRegulationsAddressResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private RegulationAddress[] result; /** - * The RegulationAddress records. + * The RegulationAddress records */ public RegulationAddress[] getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private Long count; /** - * The returned regulation address count. + * The returned regulation address count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetResourcePriceResponse.java b/src/main/java/com/voximplant/apiclient/response/GetResourcePriceResponse.java index 0b54bd6..0574628 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetResourcePriceResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetResourcePriceResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private ResourcePrice[] result; /** - * The resource prices. + * The resource prices */ public ResourcePrice[] getResult() { return this.result; diff --git a/src/main/java/com/voximplant/apiclient/response/GetRulesResponse.java b/src/main/java/com/voximplant/apiclient/response/GetRulesResponse.java index 02023f2..622d1a1 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetRulesResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetRulesResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found rule count. + * The total found rule count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned rule count. + * The returned rule count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetSQAgentsResult.java b/src/main/java/com/voximplant/apiclient/response/GetSQAgentsResult.java new file mode 100644 index 0000000..f15eab6 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetSQAgentsResult.java @@ -0,0 +1,178 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The [SQ_GetAgents] function result. +*/ +public class GetSQAgentsResult implements Alignable { + + private Long userId; + + /** + * ID of the user + */ + public Long getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + private String userName; + + /** + * Name of the user + */ + public String getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + private String userDisplayName; + + /** + * Display name of the user + */ + public String getUserDisplayName() { + return this.userDisplayName; + } + + public boolean hasUserDisplayName() { + return this.userDisplayName != null; + } + + private Long maxSimultaneousConversations; + + /** + * Maximum number of chats that the user processes simultaneously + */ + public Long getMaxSimultaneousConversations() { + return this.maxSimultaneousConversations; + } + + public boolean hasMaxSimultaneousConversations() { + return this.maxSimultaneousConversations != null; + } + + private SmartQueueState_Agent_Status[] sqStatuses; + + /** + * Agent statuses info + */ + public SmartQueueState_Agent_Status[] getSqStatuses() { + return this.sqStatuses; + } + + public boolean hasSqStatuses() { + return this.sqStatuses != null; + } + + private Object sqQueues; + + /** + * JSON array of the agent's queues + */ + public Object getSqQueues() { + return this.sqQueues; + } + + public boolean hasSqQueues() { + return this.sqQueues != null; + } + + private Object sqSkills; + + /** + * JSON array of the agent's skills + */ + public Object getSqSkills() { + return this.sqSkills; + } + + public boolean hasSqSkills() { + return this.sqSkills != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userDisplayName != null) { + sb.append(aligned) + .append("\"userDisplayName\": \"") + .append(userDisplayName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (maxSimultaneousConversations != null) { + sb.append(aligned) + .append("\"maxSimultaneousConversations\": \"") + .append(maxSimultaneousConversations) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqStatuses != null) { + sb.append(aligned) + .append("\"SmartQueueState_Agent_Status\": ") + .append(StringHelper.arrayToString(sqStatuses, alignment + 1)) + .append(System.lineSeparator()); + } + if (sqQueues != null) { + sb.append(aligned) + .append("\"sqQueues\": \"") + .append(sqQueues) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkills != null) { + sb.append(aligned) + .append("\"sqSkills\": \"") + .append(sqSkills) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetSQQueuesResult.java b/src/main/java/com/voximplant/apiclient/response/GetSQQueuesResult.java new file mode 100644 index 0000000..478233c --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetSQQueuesResult.java @@ -0,0 +1,310 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The [SQ_GetQueues] function result. +*/ +public class GetSQQueuesResult implements Alignable { + + private Long sqQueueId; + + /** + * ID of the smart queue + */ + public Long getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + private String sqQueueName; + + /** + * Name of the smart queue + */ + public String getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + private String agentSelection; + + /** + * Agent selection strategy + */ + public String getAgentSelection() { + return this.agentSelection; + } + + public boolean hasAgentSelection() { + return this.agentSelection != null; + } + + private String fallbackAgentSelection; + + /** + * Fallback for the agent selection strategy + */ + public String getFallbackAgentSelection() { + return this.fallbackAgentSelection; + } + + public boolean hasFallbackAgentSelection() { + return this.fallbackAgentSelection != null; + } + + private String taskSelection; + + /** + * Strategy of prioritizing requests for service + */ + public String getTaskSelection() { + return this.taskSelection; + } + + public boolean hasTaskSelection() { + return this.taskSelection != null; + } + + private String description; + + /** + * Comment + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date created; + + /** + * UTC date of the queue creation in 24-h format: YYYY-MM-DD HH:mm:ss + */ + public Date getCreated() { + return this.created; + } + + public boolean hasCreated() { + return this.created != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date modified; + + /** + * UTC date of the queue modification in 24-h format: YYYY-MM-DD HH:mm:ss + */ + public Date getModified() { + return this.modified; + } + + public boolean hasModified() { + return this.modified != null; + } + + private Long callMaxWaitingTime; + + /** + * Maximum time in minutes that a CALL-type request can remain in the + * queue without being assigned to an agent + */ + public Long getCallMaxWaitingTime() { + return this.callMaxWaitingTime; + } + + public boolean hasCallMaxWaitingTime() { + return this.callMaxWaitingTime != null; + } + + private Long imMaxWaitingTime; + + /** + * Maximum time in minutes that an IM-type request can remain in the + * queue without being assigned to an agent + */ + public Long getImMaxWaitingTime() { + return this.imMaxWaitingTime; + } + + public boolean hasImMaxWaitingTime() { + return this.imMaxWaitingTime != null; + } + + private Long callMaxQueueSize; + + /** + * Maximum size of the queue with CALL-type requests + */ + public Long getCallMaxQueueSize() { + return this.callMaxQueueSize; + } + + public boolean hasCallMaxQueueSize() { + return this.callMaxQueueSize != null; + } + + private Long imMaxQueueSize; + + /** + * Maximum size of the queue with IM-type requests + */ + public Long getImMaxQueueSize() { + return this.imMaxQueueSize; + } + + public boolean hasImMaxQueueSize() { + return this.imMaxQueueSize != null; + } + + private Long agentcount; + + /** + * Number of agents bound to the queue + */ + public Long getAgentcount() { + return this.agentcount; + } + + public boolean hasAgentcount() { + return this.agentcount != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (agentSelection != null) { + sb.append(aligned) + .append("\"agentSelection\": \"") + .append(agentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (fallbackAgentSelection != null) { + sb.append(aligned) + .append("\"fallbackAgentSelection\": \"") + .append(fallbackAgentSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (taskSelection != null) { + sb.append(aligned) + .append("\"taskSelection\": \"") + .append(taskSelection) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (created != null) { + sb.append(aligned) + .append("\"created\": \"") + .append(created) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (modified != null) { + sb.append(aligned) + .append("\"modified\": \"") + .append(modified) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callMaxWaitingTime != null) { + sb.append(aligned) + .append("\"callMaxWaitingTime\": \"") + .append(callMaxWaitingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imMaxWaitingTime != null) { + sb.append(aligned) + .append("\"imMaxWaitingTime\": \"") + .append(imMaxWaitingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (callMaxQueueSize != null) { + sb.append(aligned) + .append("\"callMaxQueueSize\": \"") + .append(callMaxQueueSize) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (imMaxQueueSize != null) { + sb.append(aligned) + .append("\"imMaxQueueSize\": \"") + .append(imMaxQueueSize) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (agentcount != null) { + sb.append(aligned) + .append("\"agentcount\": \"") + .append(agentcount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetSQSkillsResult.java b/src/main/java/com/voximplant/apiclient/response/GetSQSkillsResult.java new file mode 100644 index 0000000..487be33 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetSQSkillsResult.java @@ -0,0 +1,140 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The [SQ_GetSkills] function result. +*/ +public class GetSQSkillsResult implements Alignable { + + private Long sqSkillId; + + /** + * ID of the skill + */ + public Long getSqSkillId() { + return this.sqSkillId; + } + + public boolean hasSqSkillId() { + return this.sqSkillId != null; + } + + private String sqSkillName; + + /** + * Name of the skill + */ + public String getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + private String description; + + /** + * Comment + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date created; + + /** + * UTC date of the queue creation in 24-h format: YYYY-MM-DD HH:mm:ss + */ + public Date getCreated() { + return this.created; + } + + public boolean hasCreated() { + return this.created != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date modified; + + /** + * UTC date of the queue modification in 24-h format: YYYY-MM-DD HH:mm:ss + */ + public Date getModified() { + return this.modified; + } + + public boolean hasModified() { + return this.modified != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqSkillId != null) { + sb.append(aligned) + .append("\"sqSkillId\": \"") + .append(sqSkillId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (created != null) { + sb.append(aligned) + .append("\"created\": \"") + .append(created) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (modified != null) { + sb.append(aligned) + .append("\"modified\": \"") + .append(modified) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetSQStateResponse.java b/src/main/java/com/voximplant/apiclient/response/GetSQStateResponse.java new file mode 100644 index 0000000..ee11045 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetSQStateResponse.java @@ -0,0 +1,55 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetSQStateResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private SmartQueueState[] result; + + public SmartQueueState[] getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"SmartQueueState\": ") + .append(StringHelper.arrayToString(result, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetScenariosResponse.java b/src/main/java/com/voximplant/apiclient/response/GetScenariosResponse.java index 08b69a8..b11735d 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetScenariosResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetScenariosResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found scenario count. + * The total found scenario count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned scenario count. + * The returned scenario count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetSipWhiteListResponse.java b/src/main/java/com/voximplant/apiclient/response/GetSipWhiteListResponse.java index 769b376..d9721cd 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetSipWhiteListResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetSipWhiteListResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found networks count. + * The total found networks count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned networks count. + * The returned networks count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetSkillsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetSkillsResponse.java index 4f81ff0..9ff8e6a 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetSkillsResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetSkillsResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found skill count. + * The total found skill count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned skill count. + * The returned skill count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetSmartQueueDayHistoryResponse.java b/src/main/java/com/voximplant/apiclient/response/GetSmartQueueDayHistoryResponse.java new file mode 100644 index 0000000..65bc97c --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetSmartQueueDayHistoryResponse.java @@ -0,0 +1,76 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetSmartQueueDayHistoryResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private SmartQueueMetricsResult[] result; + + public SmartQueueMetricsResult[] getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + private String timezone; + + /** + * The used timezone, e.g., 'Etc/GMT' + */ + public String getTimezone() { + return this.timezone; + } + + public boolean hasTimezone() { + return this.timezone != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"SmartQueueMetricsResult\": ") + .append(StringHelper.arrayToString(result, alignment + 1)) + .append(System.lineSeparator()); + } + if (timezone != null) { + sb.append(aligned) + .append("\"timezone\": \"") + .append(timezone) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetSmartQueueRealtimeMetricsResponse.java b/src/main/java/com/voximplant/apiclient/response/GetSmartQueueRealtimeMetricsResponse.java new file mode 100644 index 0000000..5be2cdc --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/GetSmartQueueRealtimeMetricsResponse.java @@ -0,0 +1,76 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class GetSmartQueueRealtimeMetricsResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private SmartQueueMetricsResult[] result; + + public SmartQueueMetricsResult[] getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + private String timezone; + + /** + * The used timezone, e.g., 'Etc/GMT' + */ + public String getTimezone() { + return this.timezone; + } + + public boolean hasTimezone() { + return this.timezone != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"SmartQueueMetricsResult\": ") + .append(StringHelper.arrayToString(result, alignment + 1)) + .append(System.lineSeparator()); + } + if (timezone != null) { + sb.append(aligned) + .append("\"timezone\": \"") + .append(timezone) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/GetSmsHistoryResponse.java b/src/main/java/com/voximplant/apiclient/response/GetSmsHistoryResponse.java index e7a8c59..1831657 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetSmsHistoryResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetSmsHistoryResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * Total number of distinct messages fetched. + * Total number of messages matching the query parameters */ public Long getTotalCount() { return this.totalCount; diff --git a/src/main/java/com/voximplant/apiclient/response/GetSubscriptionPriceResponse.java b/src/main/java/com/voximplant/apiclient/response/GetSubscriptionPriceResponse.java index b798195..6560898 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetSubscriptionPriceResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetSubscriptionPriceResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private SubscriptionTemplateType[] result; /** - * The subscription template prices. + * The subscription template prices */ public SubscriptionTemplateType[] getResult() { return this.result; diff --git a/src/main/java/com/voximplant/apiclient/response/GetTransactionHistoryResponse.java b/src/main/java/com/voximplant/apiclient/response/GetTransactionHistoryResponse.java index 8ca1998..5fd5133 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetTransactionHistoryResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetTransactionHistoryResponse.java @@ -34,7 +34,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found transaction count. + * The total found transaction count */ public Long getTotalCount() { return this.totalCount; @@ -47,7 +47,7 @@ public boolean hasTotalCount() { private String timezone; /** - * The used timezone. 'Etc/GMT' for example. + * The used timezone. 'Etc/GMT' for example */ public String getTimezone() { return this.timezone; @@ -60,7 +60,7 @@ public boolean hasTimezone() { private Long count; /** - * The returned transaction count. + * The returned transaction count */ public Long getCount() { return this.count; @@ -73,7 +73,7 @@ public boolean hasCount() { private Long historyReportId; /** - * The history report ID (async mode). + * The history report ID (async mode) */ public Long getHistoryReportId() { return this.historyReportId; diff --git a/src/main/java/com/voximplant/apiclient/response/GetUsersResponse.java b/src/main/java/com/voximplant/apiclient/response/GetUsersResponse.java index dd182c7..75f3641 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetUsersResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetUsersResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private UserInfoType[] result; /** - * The UserInfoType records. + * The UserInfoType records */ public UserInfoType[] getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private Long totalCount; /** - * The total found user count. + * The total found user count */ public Long getTotalCount() { return this.totalCount; @@ -50,7 +50,7 @@ public boolean hasTotalCount() { private Long count; /** - * The returned user count. + * The returned user count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/GetZIPCodesResponse.java b/src/main/java/com/voximplant/apiclient/response/GetZIPCodesResponse.java index ea3f7e8..ba2843d 100644 --- a/src/main/java/com/voximplant/apiclient/response/GetZIPCodesResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/GetZIPCodesResponse.java @@ -24,7 +24,7 @@ public boolean hasError() { private ZipCode[] result; /** - * The ZipCode records. + * The ZipCode records */ public ZipCode[] getResult() { return this.result; @@ -37,7 +37,7 @@ public boolean hasResult() { private Long count; /** - * The returned zip codes count. + * The returned zip codes count */ public Long getCount() { return this.count; diff --git a/src/main/java/com/voximplant/apiclient/response/HistoryReportType.java b/src/main/java/com/voximplant/apiclient/response/HistoryReportType.java index 92690f8..a3b58fa 100644 --- a/src/main/java/com/voximplant/apiclient/response/HistoryReportType.java +++ b/src/main/java/com/voximplant/apiclient/response/HistoryReportType.java @@ -18,7 +18,7 @@ public class HistoryReportType implements Alignable { private Long historyReportId; /** - * The call history report ID. + * The call history report ID */ public Long getHistoryReportId() { return this.historyReportId; @@ -32,7 +32,7 @@ public boolean hasHistoryReportId() { /** * The history report type. The following values are possible: calls, - * transactions, audit, call_list. + * transactions, audit, call_list */ public String getHistoryType() { return this.historyType; @@ -75,7 +75,7 @@ public boolean hasFormat() { /** * The UTC completion time in 24-h format: YYYY-MM-DD HH:mm:ss. The - * report is completed if the field exists. + * report is completed if the field exists */ public Date getCompleted() { return this.completed; @@ -88,7 +88,7 @@ public boolean hasCompleted() { private String fileName; /** - * The report file name. + * The report file name */ public String getFileName() { return this.fileName; @@ -101,7 +101,7 @@ public boolean hasFileName() { private BigDecimal fileSize; /** - * The report file size. + * The report file size */ public BigDecimal getFileSize() { return this.fileSize; @@ -114,7 +114,7 @@ public boolean hasFileSize() { private BigDecimal downloadSize; /** - * The gzipped report size to download. + * The gzipped report size to download */ public BigDecimal getDownloadSize() { return this.downloadSize; @@ -127,7 +127,7 @@ public boolean hasDownloadSize() { private Long downloadCount; /** - * The download attempt count. + * The download attempt count */ public Long getDownloadCount() { return this.downloadCount; @@ -142,7 +142,7 @@ public boolean hasDownloadCount() { /** * The last download UTC time in 24-h format: YYYY-MM-DD HH:mm:ss. The - * report is completed if the field exists. + * report is completed if the field exists */ public Date getLastDownloaded() { return this.lastDownloaded; @@ -157,7 +157,7 @@ public boolean hasLastDownloaded() { /** * Store the report until the UTC time in 24-h format: YYYY-MM-DD - * HH:mm:ss. The report is completed if the field exists. + * HH:mm:ss. The report is completed if the field exists */ public Date getStoreUntil() { return this.storeUntil; @@ -170,7 +170,7 @@ public boolean hasStoreUntil() { private API_Error error; /** - * The report error. + * The report error */ public API_Error getError() { return this.error; @@ -184,7 +184,7 @@ public boolean hasError() { /** * The report order filters (the saved [GetCallHistory], - * [GetTransactionHistory] parameters). + * [GetTransactionHistory] parameters) */ public Object getFilters() { return this.filters; @@ -199,7 +199,7 @@ public boolean hasFilters() { /** * The calculated report data (the specific report data, see * [CalculatedCallHistoryDataType], - * [CalculatedTransactionHistoryDataType]). + * [CalculatedTransactionHistoryDataType]) */ public Object getCalculatedData() { return this.calculatedData; diff --git a/src/main/java/com/voximplant/apiclient/response/InboundSmsCallback.java b/src/main/java/com/voximplant/apiclient/response/InboundSmsCallback.java index 85f6fb5..f9121fc 100644 --- a/src/main/java/com/voximplant/apiclient/response/InboundSmsCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/InboundSmsCallback.java @@ -11,17 +11,19 @@ import com.voximplant.apiclient.util.Alignable; /** -* The inbound SMS callback. Received as part of the [AccountCallback] -* structure. +* The inbound SMS callback. Received as a part of the [AccountCallback] +* structure. If the incoming_sms_notification_url parameter is +* set, the notification of an inbound SMS is sent to this url, +* otherwise, it is sent to the general account URL. */ public class InboundSmsCallback implements Alignable { - private InboundSmsCallbackItem[] smsInbound; + private InboundSmsCallbackItem smsInbound; /** - * The inbound SMS info. + * The inbound SMS info */ - public InboundSmsCallbackItem[] getSmsInbound() { + public InboundSmsCallbackItem getSmsInbound() { return this.smsInbound; } @@ -40,8 +42,10 @@ public String toString(int alignment) { .append(System.lineSeparator()); if (smsInbound != null) { sb.append(aligned) - .append("\"InboundSmsCallbackItem\": ") - .append(StringHelper.arrayToString(smsInbound, alignment + 1)) + .append("\"smsInbound\": \"") + .append(smsInbound) + .append('"') + .append(',') .append(System.lineSeparator()); } return sb.append(preAligned).append('}').append(',').toString(); diff --git a/src/main/java/com/voximplant/apiclient/response/InboundSmsCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/InboundSmsCallbackItem.java index b064b7b..ed8f81b 100644 --- a/src/main/java/com/voximplant/apiclient/response/InboundSmsCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/InboundSmsCallbackItem.java @@ -18,7 +18,7 @@ public class InboundSmsCallbackItem implements Alignable { private String sourceNumber; /** - * The source phone number. + * The source phone number */ public String getSourceNumber() { return this.sourceNumber; @@ -31,7 +31,7 @@ public boolean hasSourceNumber() { private String destinationNumber; /** - * The destination phone number. + * The destination phone number */ public String getDestinationNumber() { return this.destinationNumber; @@ -44,7 +44,7 @@ public boolean hasDestinationNumber() { private String smsBody; /** - * The message. + * The message */ public String getSmsBody() { return this.smsBody; diff --git a/src/main/java/com/voximplant/apiclient/response/InvoicePeriod.java b/src/main/java/com/voximplant/apiclient/response/InvoicePeriod.java new file mode 100644 index 0000000..a37cf7d --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/InvoicePeriod.java @@ -0,0 +1,77 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Invoices period. +*/ +public class InvoicePeriod implements Alignable { + + @JsonDeserialize(using=com.voximplant.apiclient.util.DateDeserializer.class) + private Date from; + + /** + * From date in format: YYYY-MM-DD + */ + public Date getFrom() { + return this.from; + } + + public boolean hasFrom() { + return this.from != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.DateDeserializer.class) + private Date to; + + /** + * To date in format: YYYY-MM-DD + */ + public Date getTo() { + return this.to; + } + + public boolean hasTo() { + return this.to != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (from != null) { + sb.append(aligned) + .append("\"from\": \"") + .append(from) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (to != null) { + sb.append(aligned) + .append("\"to\": \"") + .append(to) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/InvoiceReceivedCallback.java b/src/main/java/com/voximplant/apiclient/response/InvoiceReceivedCallback.java new file mode 100644 index 0000000..05367f7 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/InvoiceReceivedCallback.java @@ -0,0 +1,162 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Received when a monthly invoice is sent. Received as part of the +* [AccountCallback] structure. +*/ +public class InvoiceReceivedCallback implements Alignable { + + private Long invoiceId; + + /** + * Invoice ID + */ + public Long getInvoiceId() { + return this.invoiceId; + } + + public boolean hasInvoiceId() { + return this.invoiceId != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date invoiceDate; + + /** + * Date when invoice is created + */ + public Date getInvoiceDate() { + return this.invoiceDate; + } + + public boolean hasInvoiceDate() { + return this.invoiceDate != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date receivalDate; + + /** + * Date when invoice is received + */ + public Date getReceivalDate() { + return this.receivalDate; + } + + public boolean hasReceivalDate() { + return this.receivalDate != null; + } + + private String amount; + + /** + * Amount of money in the invoice (excluding taxes) + */ + public String getAmount() { + return this.amount; + } + + public boolean hasAmount() { + return this.amount != null; + } + + private String taxAmount; + + /** + * Tax amount in the invoice + */ + public String getTaxAmount() { + return this.taxAmount; + } + + public boolean hasTaxAmount() { + return this.taxAmount != null; + } + + private String currency; + + /** + * Invoice currency + */ + public String getCurrency() { + return this.currency; + } + + public boolean hasCurrency() { + return this.currency != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (invoiceId != null) { + sb.append(aligned) + .append("\"invoiceId\": \"") + .append(invoiceId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (invoiceDate != null) { + sb.append(aligned) + .append("\"invoiceDate\": \"") + .append(invoiceDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (receivalDate != null) { + sb.append(aligned) + .append("\"receivalDate\": \"") + .append(receivalDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (amount != null) { + sb.append(aligned) + .append("\"amount\": \"") + .append(amount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (taxAmount != null) { + sb.append(aligned) + .append("\"taxAmount\": \"") + .append(taxAmount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (currency != null) { + sb.append(aligned) + .append("\"currency\": \"") + .append(currency) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/InvoiceSpendingDetails.java b/src/main/java/com/voximplant/apiclient/response/InvoiceSpendingDetails.java new file mode 100644 index 0000000..902217b --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/InvoiceSpendingDetails.java @@ -0,0 +1,96 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Each spending details. +*/ +public class InvoiceSpendingDetails implements Alignable { + + private InvoiceTotalDetails amount; + + /** + * Paid amount + */ + public InvoiceTotalDetails getAmount() { + return this.amount; + } + + public boolean hasAmount() { + return this.amount != null; + } + + private String serviceName; + + /** + * Service name + */ + public String getServiceName() { + return this.serviceName; + } + + public boolean hasServiceName() { + return this.serviceName != null; + } + + private InvoiceTaxesDetails taxes; + + /** + * Array of taxes + */ + public InvoiceTaxesDetails getTaxes() { + return this.taxes; + } + + public boolean hasTaxes() { + return this.taxes != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (amount != null) { + sb.append(aligned) + .append("\"amount\": \"") + .append(amount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (serviceName != null) { + sb.append(aligned) + .append("\"serviceName\": \"") + .append(serviceName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (taxes != null) { + sb.append(aligned) + .append("\"taxes\": \"") + .append(taxes) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/InvoiceTaxesDetails.java b/src/main/java/com/voximplant/apiclient/response/InvoiceTaxesDetails.java new file mode 100644 index 0000000..52a7faf --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/InvoiceTaxesDetails.java @@ -0,0 +1,181 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Taxes in the invoice. +*/ +public class InvoiceTaxesDetails implements Alignable { + + private BigDecimal taxableMeasure; + + /** + * Taxable sum + */ + public BigDecimal getTaxableMeasure() { + return this.taxableMeasure; + } + + public boolean hasTaxableMeasure() { + return this.taxableMeasure != null; + } + + private BigDecimal amount; + + /** + * Paid amount + */ + public BigDecimal getAmount() { + return this.amount; + } + + public boolean hasAmount() { + return this.amount != null; + } + + private String level; + + /** + * Tax type. Possible values: Federal, State, County, City, + * Unincorporated + */ + public String getLevel() { + return this.level; + } + + public boolean hasLevel() { + return this.level != null; + } + + private BigDecimal rate; + + /** + * Tax rate + */ + public BigDecimal getRate() { + return this.rate; + } + + public boolean hasRate() { + return this.rate != null; + } + + private String name; + + /** + * Tax name + */ + public String getName() { + return this.name; + } + + public boolean hasName() { + return this.name != null; + } + + private String currency; + + /** + * Tax currency + */ + public String getCurrency() { + return this.currency; + } + + public boolean hasCurrency() { + return this.currency != null; + } + + private String category; + + /** + * Tax category + */ + public String getCategory() { + return this.category; + } + + public boolean hasCategory() { + return this.category != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (taxableMeasure != null) { + sb.append(aligned) + .append("\"taxableMeasure\": \"") + .append(taxableMeasure) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (amount != null) { + sb.append(aligned) + .append("\"amount\": \"") + .append(amount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (level != null) { + sb.append(aligned) + .append("\"level\": \"") + .append(level) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (rate != null) { + sb.append(aligned) + .append("\"rate\": \"") + .append(rate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (name != null) { + sb.append(aligned) + .append("\"name\": \"") + .append(name) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (currency != null) { + sb.append(aligned) + .append("\"currency\": \"") + .append(currency) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (category != null) { + sb.append(aligned) + .append("\"category\": \"") + .append(category) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/InvoiceTotalDetails.java b/src/main/java/com/voximplant/apiclient/response/InvoiceTotalDetails.java new file mode 100644 index 0000000..6385e07 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/InvoiceTotalDetails.java @@ -0,0 +1,138 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Invoice total amount details. +*/ +public class InvoiceTotalDetails implements Alignable { + + private BigDecimal taxAmount; + + /** + * Total amount of taxes + */ + public BigDecimal getTaxAmount() { + return this.taxAmount; + } + + public boolean hasTaxAmount() { + return this.taxAmount != null; + } + + private BigDecimal totalAmount; + + /** + * Invoice total amount including taxes + */ + public BigDecimal getTotalAmount() { + return this.totalAmount; + } + + public boolean hasTotalAmount() { + return this.totalAmount != null; + } + + private BigDecimal amountToPay; + + /** + * Discounted amount to pay + */ + public BigDecimal getAmountToPay() { + return this.amountToPay; + } + + public boolean hasAmountToPay() { + return this.amountToPay != null; + } + + private BigDecimal discountAmount; + + /** + * Discount + */ + public BigDecimal getDiscountAmount() { + return this.discountAmount; + } + + public boolean hasDiscountAmount() { + return this.discountAmount != null; + } + + private String currency; + + /** + * Invoice currency + */ + public String getCurrency() { + return this.currency; + } + + public boolean hasCurrency() { + return this.currency != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (taxAmount != null) { + sb.append(aligned) + .append("\"taxAmount\": \"") + .append(taxAmount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (totalAmount != null) { + sb.append(aligned) + .append("\"totalAmount\": \"") + .append(totalAmount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (amountToPay != null) { + sb.append(aligned) + .append("\"amountToPay\": \"") + .append(amountToPay) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (discountAmount != null) { + sb.append(aligned) + .append("\"discountAmount\": \"") + .append(discountAmount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (currency != null) { + sb.append(aligned) + .append("\"currency\": \"") + .append(currency) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/InvoiceUnits.java b/src/main/java/com/voximplant/apiclient/response/InvoiceUnits.java index d6e0161..b5d6010 100644 --- a/src/main/java/com/voximplant/apiclient/response/InvoiceUnits.java +++ b/src/main/java/com/voximplant/apiclient/response/InvoiceUnits.java @@ -18,7 +18,7 @@ public class InvoiceUnits implements Alignable { private String description; /** - * The service name. + * The service name */ public String getDescription() { return this.description; @@ -31,7 +31,7 @@ public boolean hasDescription() { private BigDecimal amount; /** - * The service fee (excluding taxes). + * The service fee (excluding taxes) */ public BigDecimal getAmount() { return this.amount; @@ -44,7 +44,7 @@ public boolean hasAmount() { private BigDecimal vatRate; /** - * The tax rate in the range of [0 ... 1]. + * The tax rate in the range of [0 ... 1] */ public BigDecimal getVatRate() { return this.vatRate; @@ -57,7 +57,7 @@ public boolean hasVatRate() { private BigDecimal taxAmount; /** - * The tax amount. + * The tax amount */ public BigDecimal getTaxAmount() { return this.taxAmount; diff --git a/src/main/java/com/voximplant/apiclient/response/JSFailCallback.java b/src/main/java/com/voximplant/apiclient/response/JSFailCallback.java index c397d7a..e1bdc09 100644 --- a/src/main/java/com/voximplant/apiclient/response/JSFailCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/JSFailCallback.java @@ -11,8 +11,8 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when when send_js_error is set to true and a JS error +* occures. Received as part of the [AccountCallback] structure. */ public class JSFailCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/KeyInfo.java b/src/main/java/com/voximplant/apiclient/response/KeyInfo.java index 3a537f8..9035093 100644 --- a/src/main/java/com/voximplant/apiclient/response/KeyInfo.java +++ b/src/main/java/com/voximplant/apiclient/response/KeyInfo.java @@ -18,7 +18,7 @@ public class KeyInfo implements Alignable { private String accountEmail; /** - * Client email. + * Client email */ public String getAccountEmail() { return this.accountEmail; @@ -31,7 +31,7 @@ public boolean hasAccountEmail() { private Long accountId; /** - * The account ID. + * The account ID */ public Long getAccountId() { return this.accountId; @@ -44,7 +44,7 @@ public boolean hasAccountId() { private String keyId; /** - * The key ID. + * The key ID */ public String getKeyId() { return this.keyId; @@ -57,7 +57,7 @@ public boolean hasKeyId() { private String privateKey; /** - * The private key. + * The private key */ public String getPrivateKey() { return this.privateKey; diff --git a/src/main/java/com/voximplant/apiclient/response/KeyValueItems.java b/src/main/java/com/voximplant/apiclient/response/KeyValueItems.java new file mode 100644 index 0000000..68e432f --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/KeyValueItems.java @@ -0,0 +1,97 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* SetKeyValueItem, GetKeyValueItem, and GetKeyValueItems functions +* result. +*/ +public class KeyValueItems implements Alignable { + + private String key; + + /** + * Key that matches the specified key or key pattern + */ + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + private String value; + + /** + * Value for the specified key + */ + public String getValue() { + return this.value; + } + + public boolean hasValue() { + return this.value != null; + } + + private Long expiresAt; + + /** + * Expiration date based on **ttl** (timestamp without milliseconds) + */ + public Long getExpiresAt() { + return this.expiresAt; + } + + public boolean hasExpiresAt() { + return this.expiresAt != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (key != null) { + sb.append(aligned) + .append("\"key\": \"") + .append(key) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (value != null) { + sb.append(aligned) + .append("\"value\": \"") + .append(value) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (expiresAt != null) { + sb.append(aligned) + .append("\"expiresAt\": \"") + .append(expiresAt) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/KeyValueKeys.java b/src/main/java/com/voximplant/apiclient/response/KeyValueKeys.java new file mode 100644 index 0000000..8d3e2c4 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/KeyValueKeys.java @@ -0,0 +1,75 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* GetKeyValueKeys function result. +*/ +public class KeyValueKeys implements Alignable { + + private String key; + + /** + * Key that matches the pattern + */ + public String getKey() { + return this.key; + } + + public boolean hasKey() { + return this.key != null; + } + + private Long expiresAt; + + /** + * Expiration date based on **ttl** (timestamp without milliseconds) + */ + public Long getExpiresAt() { + return this.expiresAt; + } + + public boolean hasExpiresAt() { + return this.expiresAt != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (key != null) { + sb.append(aligned) + .append("\"key\": \"") + .append(key) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (expiresAt != null) { + sb.append(aligned) + .append("\"expiresAt\": \"") + .append(expiresAt) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ClassificationUnit.java b/src/main/java/com/voximplant/apiclient/response/KeyValuePairs.java similarity index 59% rename from src/main/java/com/voximplant/apiclient/response/ClassificationUnit.java rename to src/main/java/com/voximplant/apiclient/response/KeyValuePairs.java index ba35c2a..24b2c02 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClassificationUnit.java +++ b/src/main/java/com/voximplant/apiclient/response/KeyValuePairs.java @@ -11,47 +11,47 @@ import com.voximplant.apiclient.util.Alignable; /** -* Info about services that were provided. +* GetKeyValueItems function result. */ -public class ClassificationUnit implements Alignable { +public class KeyValuePairs implements Alignable { - private String type; + private String key; /** - * The classification type. + * Key that matches the pattern */ - public String getType() { - return this.type; + public String getKey() { + return this.key; } - public boolean hasType() { - return this.type != null; + public boolean hasKey() { + return this.key != null; } - private String info; + private String value; /** - * The classification info. + * Value for the specified key */ - public String getInfo() { - return this.info; + public String getValue() { + return this.value; } - public boolean hasInfo() { - return this.info != null; + public boolean hasValue() { + return this.value != null; } - private String errorCode; + private Long expiresAt; /** - * Classification error code (if any). + * Expiration date based on **ttl** (timestamp without milliseconds) */ - public String getErrorCode() { - return this.errorCode; + public Long getExpiresAt() { + return this.expiresAt; } - public boolean hasErrorCode() { - return this.errorCode != null; + public boolean hasExpiresAt() { + return this.expiresAt != null; } public String toString(int alignment) { @@ -63,26 +63,26 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (type != null) { + if (key != null) { sb.append(aligned) - .append("\"type\": \"") - .append(type) + .append("\"key\": \"") + .append(key) .append('"') .append(',') .append(System.lineSeparator()); } - if (info != null) { + if (value != null) { sb.append(aligned) - .append("\"info\": \"") - .append(info) + .append("\"value\": \"") + .append(value) .append('"') .append(',') .append(System.lineSeparator()); } - if (errorCode != null) { + if (expiresAt != null) { sb.append(aligned) - .append("\"errorCode\": \"") - .append(errorCode) + .append("\"expiresAt\": \"") + .append(expiresAt) .append('"') .append(',') .append(System.lineSeparator()); diff --git a/src/main/java/com/voximplant/apiclient/response/KeyView.java b/src/main/java/com/voximplant/apiclient/response/KeyView.java index 086d72c..f74c7e4 100644 --- a/src/main/java/com/voximplant/apiclient/response/KeyView.java +++ b/src/main/java/com/voximplant/apiclient/response/KeyView.java @@ -18,7 +18,7 @@ public class KeyView implements Alignable { private String keyId; /** - * The key ID. + * The key ID */ public String getKeyId() { return this.keyId; @@ -31,7 +31,7 @@ public boolean hasKeyId() { private RoleView[] roles; /** - * The key roles. + * The key roles */ public RoleView[] getRoles() { return this.roles; @@ -44,7 +44,7 @@ public boolean hasRoles() { private String description; /** - * The key description. + * The key description */ public String getDescription() { return this.description; @@ -57,7 +57,7 @@ public boolean hasDescription() { private SubUserView[] subuser; /** - * The key subuser. + * The key subuser */ public SubUserView[] getSubuser() { return this.subuser; diff --git a/src/main/java/com/voximplant/apiclient/response/LinkregulationAddressResponse.java b/src/main/java/com/voximplant/apiclient/response/LinkRegulationAddressResponse.java similarity index 95% rename from src/main/java/com/voximplant/apiclient/response/LinkregulationAddressResponse.java rename to src/main/java/com/voximplant/apiclient/response/LinkRegulationAddressResponse.java index 1706ca0..99cc191 100644 --- a/src/main/java/com/voximplant/apiclient/response/LinkregulationAddressResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/LinkRegulationAddressResponse.java @@ -10,7 +10,7 @@ import com.voximplant.apiclient.util.StringHelper; import com.voximplant.apiclient.util.Alignable; -public class LinkregulationAddressResponse implements Alignable { +public class LinkRegulationAddressResponse implements Alignable { private Error error; public Error getError() { diff --git a/src/main/java/com/voximplant/apiclient/response/MGPInfo.java b/src/main/java/com/voximplant/apiclient/response/MGPInfo.java index b9209e3..ba09ee2 100644 --- a/src/main/java/com/voximplant/apiclient/response/MGPInfo.java +++ b/src/main/java/com/voximplant/apiclient/response/MGPInfo.java @@ -18,7 +18,7 @@ public class MGPInfo implements Alignable { private Long mgpId; /** - * The MGP ID. + * The MGP ID */ public Long getMgpId() { return this.mgpId; @@ -31,7 +31,7 @@ public boolean hasMgpId() { private Long mgpTemplateId; /** - * The MGP template ID. + * The MGP template ID */ public Long getMgpTemplateId() { return this.mgpTemplateId; @@ -44,7 +44,7 @@ public boolean hasMgpTemplateId() { private Long mgpTemplatePrice; /** - * The MGP template price. + * The MGP template price */ public Long getMgpTemplatePrice() { return this.mgpTemplatePrice; @@ -57,7 +57,7 @@ public boolean hasMgpTemplatePrice() { private String mgpTemplateCurrency; /** - * The MGP template currency. + * The MGP template currency */ public String getMgpTemplateCurrency() { return this.mgpTemplateCurrency; @@ -71,7 +71,7 @@ public boolean hasMgpTemplateCurrency() { private Date mgpActivated; /** - * The MGP activation date. + * The MGP activation date */ public Date getMgpActivated() { return this.mgpActivated; @@ -85,7 +85,7 @@ public boolean hasMgpActivated() { private Date mgpDeactivated; /** - * The MGP deactivation date. + * The MGP deactivation date */ public Date getMgpDeactivated() { return this.mgpDeactivated; diff --git a/src/main/java/com/voximplant/apiclient/response/MGPTemplateInfo.java b/src/main/java/com/voximplant/apiclient/response/MGPTemplateInfo.java index 468c1f8..530d9ba 100644 --- a/src/main/java/com/voximplant/apiclient/response/MGPTemplateInfo.java +++ b/src/main/java/com/voximplant/apiclient/response/MGPTemplateInfo.java @@ -18,7 +18,7 @@ public class MGPTemplateInfo implements Alignable { private Long mgpTemplateId; /** - * The MGP template ID. + * The MGP template ID */ public Long getMgpTemplateId() { return this.mgpTemplateId; @@ -31,7 +31,7 @@ public boolean hasMgpTemplateId() { private String mgpTemplateName; /** - * The MGP template name. + * The MGP template name */ public String getMgpTemplateName() { return this.mgpTemplateName; @@ -44,7 +44,7 @@ public boolean hasMgpTemplateName() { private Long mgpTemplatePrice; /** - * The MGP template price. + * The MGP template price */ public Long getMgpTemplatePrice() { return this.mgpTemplatePrice; @@ -57,7 +57,7 @@ public boolean hasMgpTemplatePrice() { private String mgpTemplateCurrency; /** - * The MGP template currency. + * The MGP template currency */ public String getMgpTemplateCurrency() { return this.mgpTemplateCurrency; diff --git a/src/main/java/com/voximplant/apiclient/response/MinBalanceCallback.java b/src/main/java/com/voximplant/apiclient/response/MinBalanceCallback.java index ecc4535..db1864e 100644 --- a/src/main/java/com/voximplant/apiclient/response/MinBalanceCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/MinBalanceCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when the minimum balance is reached. Received as part of the * [AccountCallback] structure. */ public class MinBalanceCallback implements Alignable { @@ -21,7 +21,7 @@ public class MinBalanceCallback implements Alignable { /** * True if the credit threshold exceeded. The credit threshold = * credit_limit - min_balance_to_notify, wherein min_balance_to_notify > - * 0. + * 0 */ public Boolean getIsMinCredit() { return this.isMinCredit; @@ -34,7 +34,7 @@ public boolean hasIsMinCredit() { private Boolean isRepeated; /** - * True if the callback is repeated. + * True if the callback is repeated */ public Boolean getIsRepeated() { return this.isRepeated; diff --git a/src/main/java/com/voximplant/apiclient/response/MultipleNumbersPrice.java b/src/main/java/com/voximplant/apiclient/response/MultipleNumbersPrice.java index 3c3b38e..c9fae6c 100644 --- a/src/main/java/com/voximplant/apiclient/response/MultipleNumbersPrice.java +++ b/src/main/java/com/voximplant/apiclient/response/MultipleNumbersPrice.java @@ -19,7 +19,7 @@ public class MultipleNumbersPrice implements Alignable { /** * The number of subscriptions which must be purchased simultaneously to - * enable a multiple numbers subscription. + * enable a multiple numbers subscription */ public Long getCount() { return this.count; @@ -33,7 +33,7 @@ public boolean hasCount() { /** * The subscription price for one number, i.e., the total multiple - * numbers subscription price divided by the __count__ value. + * numbers subscription price divided by the __count__ value */ public BigDecimal getPrice() { return this.price; @@ -47,7 +47,7 @@ public boolean hasPrice() { /** * The installation price for one number, i.e., the total multiple - * numbers installation price divided by the __count__ value. + * numbers installation price divided by the __count__ value */ public BigDecimal getInstallationPrice() { return this.installationPrice; diff --git a/src/main/java/com/voximplant/apiclient/response/NewAttachedPhoneInfoType.java b/src/main/java/com/voximplant/apiclient/response/NewAttachedPhoneInfoType.java index d9fd843..0934658 100644 --- a/src/main/java/com/voximplant/apiclient/response/NewAttachedPhoneInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/NewAttachedPhoneInfoType.java @@ -18,7 +18,7 @@ public class NewAttachedPhoneInfoType implements Alignable { private Long phoneId; /** - * The phone ID. + * The phone ID */ public Long getPhoneId() { return this.phoneId; @@ -31,7 +31,7 @@ public boolean hasPhoneId() { private String phoneNumber; /** - * The phone number. + * The phone number */ public String getPhoneNumber() { return this.phoneNumber; @@ -41,12 +41,12 @@ public boolean hasPhoneNumber() { return this.phoneNumber != null; } - private String requiredVerification; + private Boolean requiredVerification; /** - * The required account verification name. + * Verification is required for the account */ - public String getRequiredVerification() { + public Boolean getRequiredVerification() { return this.requiredVerification; } diff --git a/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallback.java b/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallback.java index 2184098..8daad2e 100644 --- a/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a new invoice is generated. Received as part of the * [AccountCallback] structure. */ public class NewInvoiceCallback implements Alignable { @@ -19,7 +19,7 @@ public class NewInvoiceCallback implements Alignable { private NewInvoiceCallbackItem newInvoice; /** - * The invoice info. + * The invoice info */ public NewInvoiceCallbackItem getNewInvoice() { return this.newInvoice; diff --git a/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallbackItem.java index 27af63d..4680145 100644 --- a/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/NewInvoiceCallbackItem.java @@ -18,7 +18,7 @@ public class NewInvoiceCallbackItem implements Alignable { private String invoiceNumber; /** - * The invoice unique number. + * The invoice unique number */ public String getInvoiceNumber() { return this.invoiceNumber; @@ -31,7 +31,7 @@ public boolean hasInvoiceNumber() { private String invoiceDate; /** - * The invoice date. + * The invoice date */ public String getInvoiceDate() { return this.invoiceDate; @@ -44,7 +44,7 @@ public boolean hasInvoiceDate() { private Boolean prepayment; /** - * Is it a prepayment? + * It's a prepayment */ public Boolean getPrepayment() { return this.prepayment; @@ -57,7 +57,7 @@ public boolean hasPrepayment() { private String currency; /** - * The invoice currency. + * The invoice currency */ public String getCurrency() { return this.currency; @@ -70,7 +70,7 @@ public boolean hasCurrency() { private BigDecimal totalAmount; /** - * The invoice's total amount including taxes. + * The invoice's total amount including taxes */ public BigDecimal getTotalAmount() { return this.totalAmount; @@ -83,7 +83,7 @@ public boolean hasTotalAmount() { private BigDecimal totalTaxAmount; /** - * The total amount of taxes. + * The total amount of taxes */ public BigDecimal getTotalTaxAmount() { return this.totalTaxAmount; @@ -96,7 +96,7 @@ public boolean hasTotalTaxAmount() { private InvoiceUnits[] units; /** - * Array with the services that were provided. + * Array with the services that were provided */ public InvoiceUnits[] getUnits() { return this.units; diff --git a/src/main/java/com/voximplant/apiclient/response/NewPhoneInfoType.java b/src/main/java/com/voximplant/apiclient/response/NewPhoneInfoType.java index 5dde9c2..4f2df36 100644 --- a/src/main/java/com/voximplant/apiclient/response/NewPhoneInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/NewPhoneInfoType.java @@ -18,7 +18,7 @@ public class NewPhoneInfoType implements Alignable { private Long phoneId; /** - * The phone ID. + * The phone ID */ public Long getPhoneId() { return this.phoneId; @@ -31,7 +31,7 @@ public boolean hasPhoneId() { private String phoneNumber; /** - * The phone number. + * The phone number */ public String getPhoneNumber() { return this.phoneNumber; @@ -44,7 +44,7 @@ public boolean hasPhoneNumber() { private BigDecimal phonePrice; /** - * The phone monthly charge. + * The phone monthly charge */ public BigDecimal getPhonePrice() { return this.phonePrice; @@ -57,7 +57,7 @@ public boolean hasPhonePrice() { private BigDecimal phoneInstallationPrice; /** - * The phone installation price (without the first monthly fee). + * The phone installation price (without the first monthly fee) */ public BigDecimal getPhoneInstallationPrice() { return this.phoneInstallationPrice; @@ -70,7 +70,7 @@ public boolean hasPhoneInstallationPrice() { private String phoneCountryCode; /** - * The phone country code (2 symbols). + * The phone country code (2 symbols) */ public String getPhoneCountryCode() { return this.phoneCountryCode; @@ -84,7 +84,7 @@ public boolean hasPhoneCountryCode() { /** * The charge period in 24-h format: Y-M-D H:m:s. Example: 0-1-0 0:0:0 - * is 1 month. + * is 1 month */ public String getPhonePeriod() { return this.phonePeriod; diff --git a/src/main/java/com/voximplant/apiclient/response/NextChargeAlertCallback.java b/src/main/java/com/voximplant/apiclient/response/NextChargeAlertCallback.java new file mode 100644 index 0000000..3d77b25 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/NextChargeAlertCallback.java @@ -0,0 +1,78 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Received when a plan is to be renewed in 3 days, but there is not +* enough money. Received as part of the [AccountCallback] structure. +*/ +public class NextChargeAlertCallback implements Alignable { + + private Long requiredMoney; + + /** + * The price (in the account currency) of all subscription plans to be + * renewed on the 1st day of the month + */ + public Long getRequiredMoney() { + return this.requiredMoney; + } + + public boolean hasRequiredMoney() { + return this.requiredMoney != null; + } + + private Long insufficientFundsAmount; + + /** + * The amount of money in the account currency required to renew the + * subscription plans + */ + public Long getInsufficientFundsAmount() { + return this.insufficientFundsAmount; + } + + public boolean hasInsufficientFundsAmount() { + return this.insufficientFundsAmount != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (requiredMoney != null) { + sb.append(aligned) + .append("\"requiredMoney\": \"") + .append(requiredMoney) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (insufficientFundsAmount != null) { + sb.append(aligned) + .append("\"insufficientFundsAmount\": \"") + .append(insufficientFundsAmount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/OutboundTestPhonenumberInfoType.java b/src/main/java/com/voximplant/apiclient/response/OutboundTestPhonenumberInfoType.java new file mode 100644 index 0000000..97b58cf --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/OutboundTestPhonenumberInfoType.java @@ -0,0 +1,96 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The [GetOutboundTestPhoneNumbers] function result. +*/ +public class OutboundTestPhonenumberInfoType implements Alignable { + + private String phoneNumber; + + /** + * The personal phone number + */ + public String getPhoneNumber() { + return this.phoneNumber; + } + + public boolean hasPhoneNumber() { + return this.phoneNumber != null; + } + + private Boolean isVerified; + + /** + * The verification status + */ + public Boolean getIsVerified() { + return this.isVerified; + } + + public boolean hasIsVerified() { + return this.isVerified != null; + } + + private String countryCode; + + /** + * The country code + */ + public String getCountryCode() { + return this.countryCode; + } + + public boolean hasCountryCode() { + return this.countryCode != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (phoneNumber != null) { + sb.append(aligned) + .append("\"phoneNumber\": \"") + .append(phoneNumber) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (isVerified != null) { + sb.append(aligned) + .append("\"isVerified\": \"") + .append(isVerified) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (countryCode != null) { + sb.append(aligned) + .append("\"countryCode\": \"") + .append(countryCode) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryCategoryInfoType.java b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryCategoryInfoType.java index b1df7c6..1d3b0ce 100644 --- a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryCategoryInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryCategoryInfoType.java @@ -19,7 +19,7 @@ public class PhoneNumberCountryCategoryInfoType implements Alignable { private String phoneCategoryName; /** - * The phone category name. + * The phone category name */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -32,7 +32,7 @@ public boolean hasPhoneCategoryName() { private Boolean countryHasStates; /** - * True if a country state is used to choose the phone with the category. + * True if a country state is used to choose the phone with the category */ public Boolean getCountryHasStates() { return this.countryHasStates; @@ -45,7 +45,7 @@ public boolean hasCountryHasStates() { private String localizedCountryName; /** - * The localized country name. + * The localized country name */ public String getLocalizedCountryName() { return this.localizedCountryName; @@ -58,7 +58,7 @@ public boolean hasLocalizedCountryName() { private String localizedPhoneCategoryName; /** - * The localized phone category name. + * The localized phone category name */ public String getLocalizedPhoneCategoryName() { return this.localizedPhoneCategoryName; @@ -71,7 +71,7 @@ public boolean hasLocalizedPhoneCategoryName() { private String localizedPhoneRegionName; /** - * The localized phone region name. + * The localized phone region name */ public String getLocalizedPhoneRegionName() { return this.localizedPhoneRegionName; diff --git a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryInfoType.java b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryInfoType.java index 849a04b..2f62e7a 100644 --- a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryInfoType.java @@ -18,7 +18,7 @@ public class PhoneNumberCountryInfoType implements Alignable { private String countryCode; /** - * The country code. + * The country code */ public String getCountryCode() { return this.countryCode; @@ -31,7 +31,7 @@ public boolean hasCountryCode() { private String phonePrefix; /** - * The country phone prefix. + * The country phone prefix */ public String getPhonePrefix() { return this.phonePrefix; @@ -44,7 +44,7 @@ public boolean hasPhonePrefix() { private Boolean canListPhoneNumbers; /** - * True if can list phone numbers. + * True if can list phone numbers */ public Boolean getCanListPhoneNumbers() { return this.canListPhoneNumbers; @@ -57,7 +57,7 @@ public boolean hasCanListPhoneNumbers() { private PhoneNumberCountryCategoryInfoType[] phoneCategories; /** - * The phone categories. + * The phone categories */ public PhoneNumberCountryCategoryInfoType[] getPhoneCategories() { return this.phoneCategories; @@ -67,6 +67,20 @@ public boolean hasPhoneCategories() { return this.phoneCategories != null; } + private Boolean emergencyCallsToBeEnabled; + + /** + * If true, you need to make a request to enable calls to + * emergency numbers + */ + public Boolean getEmergencyCallsToBeEnabled() { + return this.emergencyCallsToBeEnabled; + } + + public boolean hasEmergencyCallsToBeEnabled() { + return this.emergencyCallsToBeEnabled != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -106,6 +120,14 @@ public String toString(int alignment) { .append(StringHelper.arrayToString(phoneCategories, alignment + 1)) .append(System.lineSeparator()); } + if (emergencyCallsToBeEnabled != null) { + sb.append(aligned) + .append("\"emergencyCallsToBeEnabled\": \"") + .append(emergencyCallsToBeEnabled) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryRegionInfoType.java b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryRegionInfoType.java index 065bb34..ee243cc 100644 --- a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryRegionInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryRegionInfoType.java @@ -18,7 +18,7 @@ public class PhoneNumberCountryRegionInfoType implements Alignable { private Long phoneRegionId; /** - * The region ID. + * The region ID */ public Long getPhoneRegionId() { return this.phoneRegionId; @@ -31,7 +31,7 @@ public boolean hasPhoneRegionId() { private String phoneRegionName; /** - * The full region name. + * The full region name */ public String getPhoneRegionName() { return this.phoneRegionName; @@ -44,7 +44,7 @@ public boolean hasPhoneRegionName() { private String phoneRegionCode; /** - * The region phone prefix. + * The region phone prefix */ public String getPhoneRegionCode() { return this.phoneRegionCode; @@ -57,7 +57,7 @@ public boolean hasPhoneRegionCode() { private Long phoneCount; /** - * The phone number count in stock for the region. + * The phone number count in stock for the region */ public Long getPhoneCount() { return this.phoneCount; @@ -81,12 +81,12 @@ public boolean hasVerificationStatus() { return this.verificationStatus != null; } - private String requiredVerification; + private Boolean requiredVerification; /** - * The required account verification name. + * Verification is required for the account */ - public String getRequiredVerification() { + public Boolean getRequiredVerification() { return this.requiredVerification; } @@ -97,7 +97,7 @@ public boolean hasRequiredVerification() { private BigDecimal phonePrice; /** - * The phone monthly charge. + * The phone monthly charge */ public BigDecimal getPhonePrice() { return this.phonePrice; @@ -110,7 +110,7 @@ public boolean hasPhonePrice() { private BigDecimal phoneInstallationPrice; /** - * The phone installation price (without the first monthly fee). + * The phone installation price (without the first monthly fee) */ public BigDecimal getPhoneInstallationPrice() { return this.phoneInstallationPrice; @@ -124,7 +124,7 @@ public boolean hasPhoneInstallationPrice() { /** * The charge period in 24-h format: Y-M-D H:m:s. Example: 0-1-0 0:0:0 - * is 1 month. + * is 1 month */ public String getPhonePeriod() { return this.phonePeriod; @@ -137,7 +137,7 @@ public boolean hasPhonePeriod() { private Boolean isNeedRegulationAddress; /** - * The flag of the need proof of address. + * The flag of the need proof of address */ public Boolean getIsNeedRegulationAddress() { return this.isNeedRegulationAddress; @@ -150,8 +150,8 @@ public boolean hasIsNeedRegulationAddress() { private String regulationAddressType; /** - * The type of regulation address. The possible values are: LOCAL, - * NATIONAL, WORLDWIDE. + * The type of regulation address. The possible values are LOCAL, + * NATIONAL, WORLDWIDE */ public String getRegulationAddressType() { return this.regulationAddressType; @@ -166,12 +166,12 @@ public boolean hasRegulationAddressType() { /** * If true, SMS is supported for phone numbers in this region. * SMS needs to be explicitly enabled for a phone number via the - * [ControlSms] HTTP API before sending or receiving SMS. If SMS is - * supported and enabled, SMS can be sent from a phone number using the - * [SendSmsMessage] HTTP API and received using the [InboundSmsCallback] - * property of the HTTP callback. See this article - * for HTTP callback details. + * [ControlSms] Management API before sending or receiving SMS. If SMS + * is supported and enabled, SMS can be sent from a phone number using + * the [SendSmsMessage] Management API and received using the + * [InboundSmsCallback] property of the HTTP callback. See this article for HTTP + * callback details */ public Boolean getIsSmsSupported() { return this.isSmsSupported; @@ -185,7 +185,7 @@ public boolean hasIsSmsSupported() { /** * [Array](MultipleNumbersPrice) with info about multiple numbers - * subscription for the child accounts. + * subscription for the child accounts */ public MultipleNumbersPrice[] getMultipleNumbersPrice() { return this.multipleNumbersPrice; @@ -198,7 +198,7 @@ public boolean hasMultipleNumbersPrice() { private String localizedCountryName; /** - * The localized country name. + * The localized country name */ public String getLocalizedCountryName() { return this.localizedCountryName; @@ -211,7 +211,7 @@ public boolean hasLocalizedCountryName() { private String localizedPhoneCategoryName; /** - * The localized phone category name. + * The localized phone category name */ public String getLocalizedPhoneCategoryName() { return this.localizedPhoneCategoryName; @@ -224,7 +224,7 @@ public boolean hasLocalizedPhoneCategoryName() { private String localizedPhoneRegionName; /** - * The localized phone region name. + * The localized phone region name */ public String getLocalizedPhoneRegionName() { return this.localizedPhoneRegionName; diff --git a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryStateInfoType.java b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryStateInfoType.java index dbe8356..6934f67 100644 --- a/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryStateInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/PhoneNumberCountryStateInfoType.java @@ -18,7 +18,7 @@ public class PhoneNumberCountryStateInfoType implements Alignable { private String countryState; /** - * The country state code. + * The country state code */ public String getCountryState() { return this.countryState; @@ -31,7 +31,7 @@ public boolean hasCountryState() { private String countryStateName; /** - * The full country state name. + * The full country state name */ public String getCountryStateName() { return this.countryStateName; diff --git a/src/main/java/com/voximplant/apiclient/response/PlanConfigCallback.java b/src/main/java/com/voximplant/apiclient/response/PlanConfigCallback.java index 941b28e..e31479f 100644 --- a/src/main/java/com/voximplant/apiclient/response/PlanConfigCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/PlanConfigCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a plan (IM, MAU) is changed. Received as part of the * [AccountCallback] structure. */ public class PlanConfigCallback implements Alignable { @@ -19,7 +19,7 @@ public class PlanConfigCallback implements Alignable { private String planType; /** - * The plan type. The possible values are: IM, MAU. + * The plan type. The possible values are IM, MAU */ public String getPlanType() { return this.planType; @@ -32,7 +32,7 @@ public boolean hasPlanType() { private String planName; /** - * The plan name. + * The plan name */ public String getPlanName() { return this.planName; @@ -45,7 +45,7 @@ public boolean hasPlanName() { private PlanPackageConfig[] packages; /** - * The account plan package array. + * The account plan package array */ public PlanPackageConfig[] getPackages() { return this.packages; diff --git a/src/main/java/com/voximplant/apiclient/response/PlanPackageConfig.java b/src/main/java/com/voximplant/apiclient/response/PlanPackageConfig.java index 119410d..4233fc4 100644 --- a/src/main/java/com/voximplant/apiclient/response/PlanPackageConfig.java +++ b/src/main/java/com/voximplant/apiclient/response/PlanPackageConfig.java @@ -18,7 +18,7 @@ public class PlanPackageConfig implements Alignable { private Long[] priceGroupId; /** - * The price group IDs. + * The price group IDs */ public Long[] getPriceGroupId() { return this.priceGroupId; @@ -31,7 +31,7 @@ public boolean hasPriceGroupId() { private String packageName; /** - * The package name. + * The package name */ public String getPackageName() { return this.packageName; @@ -44,7 +44,7 @@ public boolean hasPackageName() { private String packageUuid; /** - * The package UUID. + * The package UUID */ public String getPackageUuid() { return this.packageUuid; @@ -57,7 +57,7 @@ public boolean hasPackageUuid() { private Boolean mayOverrun; /** - * Is overrun enabled? + * Overrun is enabled */ public Boolean getMayOverrun() { return this.mayOverrun; @@ -70,7 +70,7 @@ public boolean hasMayOverrun() { private Long packageSize; /** - * The current package size (including overrun). + * The current package size (including overrun) */ public Long getPackageSize() { return this.packageSize; diff --git a/src/main/java/com/voximplant/apiclient/response/PlanPackageType.java b/src/main/java/com/voximplant/apiclient/response/PlanPackageType.java index de5a070..82bd851 100644 --- a/src/main/java/com/voximplant/apiclient/response/PlanPackageType.java +++ b/src/main/java/com/voximplant/apiclient/response/PlanPackageType.java @@ -18,7 +18,7 @@ public class PlanPackageType implements Alignable { private Long[] priceGroupId; /** - * The price group IDs. + * The price group IDs */ public Long[] getPriceGroupId() { return this.priceGroupId; @@ -31,7 +31,7 @@ public boolean hasPriceGroupId() { private String packageName; /** - * The package name. + * The package name */ public String getPackageName() { return this.packageName; @@ -44,7 +44,7 @@ public boolean hasPackageName() { private Boolean mayOverrun; /** - * Is overrun enabled? + * Overrun is enabled */ public Boolean getMayOverrun() { return this.mayOverrun; @@ -57,7 +57,7 @@ public boolean hasMayOverrun() { private BigDecimal overrunPrice; /** - * The overrun amount. + * The overrun amount */ public BigDecimal getOverrunPrice() { return this.overrunPrice; @@ -70,7 +70,7 @@ public boolean hasOverrunPrice() { private Long overrunResources; /** - * The number of resources (e.g., messages) per overrun. + * The number of resources (e.g., messages) per overrun */ public Long getOverrunResources() { return this.overrunResources; @@ -83,7 +83,7 @@ public boolean hasOverrunResources() { private Long packageSize; /** - * The package size. + * The package size */ public Long getPackageSize() { return this.packageSize; diff --git a/src/main/java/com/voximplant/apiclient/response/PlanType.java b/src/main/java/com/voximplant/apiclient/response/PlanType.java index 0028c80..0bd9f03 100644 --- a/src/main/java/com/voximplant/apiclient/response/PlanType.java +++ b/src/main/java/com/voximplant/apiclient/response/PlanType.java @@ -18,7 +18,7 @@ public class PlanType implements Alignable { private Long planSubscriptionTemplateId; /** - * The current plan ID. + * The current plan ID */ public Long getPlanSubscriptionTemplateId() { return this.planSubscriptionTemplateId; @@ -31,7 +31,7 @@ public boolean hasPlanSubscriptionTemplateId() { private String planType; /** - * The plan type. The possible values are: IM, MAU. + * The plan type. The possible values are IM, MAU */ public String getPlanType() { return this.planType; @@ -44,7 +44,7 @@ public boolean hasPlanType() { private String planName; /** - * The plan name. + * The plan name */ public String getPlanName() { return this.planName; @@ -57,7 +57,7 @@ public boolean hasPlanName() { private BigDecimal periodicCharge; /** - * The plan monthly charge. + * The plan monthly charge */ public BigDecimal getPeriodicCharge() { return this.periodicCharge; @@ -70,7 +70,7 @@ public boolean hasPeriodicCharge() { private PlanPackageType[] packages; /** - * The account package array. + * The account package array */ public PlanPackageType[] getPackages() { return this.packages; diff --git a/src/main/java/com/voximplant/apiclient/response/PriceGroup.java b/src/main/java/com/voximplant/apiclient/response/PriceGroup.java index e9d7164..8eeafb9 100644 --- a/src/main/java/com/voximplant/apiclient/response/PriceGroup.java +++ b/src/main/java/com/voximplant/apiclient/response/PriceGroup.java @@ -31,7 +31,7 @@ public boolean hasPriceGroupName() { private Long priceGroupId; /** - * The price group ID. + * The price group ID */ public Long getPriceGroupId() { return this.priceGroupId; @@ -44,7 +44,7 @@ public boolean hasPriceGroupId() { private BigDecimal price; /** - * The price for the 'num_resources_per_price' resource count. + * The price for the 'num_resources_per_price' resource count */ public BigDecimal getPrice() { return this.price; @@ -57,7 +57,7 @@ public boolean hasPrice() { private Long numResourcesPerPrice; /** - * The resource count per price. + * The resource count per price */ public Long getNumResourcesPerPrice() { return this.numResourcesPerPrice; @@ -70,7 +70,7 @@ public boolean hasNumResourcesPerPrice() { private Long quantum; /** - * The resource rounding quantum. + * The resource rounding quantum */ public Long getQuantum() { return this.quantum; @@ -83,7 +83,7 @@ public boolean hasQuantum() { private ResourceParams params; /** - * The available resource parameters. + * The available resource parameters */ public ResourceParams getParams() { return this.params; diff --git a/src/main/java/com/voximplant/apiclient/response/PstnBlackListInfoType.java b/src/main/java/com/voximplant/apiclient/response/PstnBlackListInfoType.java index 4896933..5c4975b 100644 --- a/src/main/java/com/voximplant/apiclient/response/PstnBlackListInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/PstnBlackListInfoType.java @@ -18,7 +18,7 @@ public class PstnBlackListInfoType implements Alignable { private Long pstnBlacklistId; /** - * The black list item ID. + * The black list item ID */ public Long getPstnBlacklistId() { return this.pstnBlacklistId; @@ -31,7 +31,7 @@ public boolean hasPstnBlacklistId() { private String pstnBlacklistPhone ; /** - * The phone number. + * The phone number */ public String getPstnBlacklistPhone () { return this.pstnBlacklistPhone ; diff --git a/src/main/java/com/voximplant/apiclient/response/PushCredentialContent.java b/src/main/java/com/voximplant/apiclient/response/PushCredentialContent.java index 8d3739e..e181ea9 100644 --- a/src/main/java/com/voximplant/apiclient/response/PushCredentialContent.java +++ b/src/main/java/com/voximplant/apiclient/response/PushCredentialContent.java @@ -18,7 +18,7 @@ public class PushCredentialContent implements Alignable { private String certFileName; /** - * The file name. Credentials for APPLE push. + * The file name. Credentials for APPLE push */ public String getCertFileName() { return this.certFileName; @@ -31,7 +31,7 @@ public boolean hasCertFileName() { private String certPassword; /** - * The password for private key. Credentials for APPLE push. + * The password for private key. Credentials for APPLE push */ public String getCertPassword() { return this.certPassword; @@ -44,7 +44,7 @@ public boolean hasCertPassword() { private String certContent; /** - * The certificate content in BASE64. Credentials for APPLE push. + * The certificate content in BASE64. Credentials for APPLE push */ public String getCertContent() { return this.certContent; @@ -57,7 +57,7 @@ public boolean hasCertContent() { private Boolean isDevMode; /** - * The use in a Apple sandbox environment. Credentials for APPLE push. + * The use in a Apple sandbox environment. Credentials for APPLE push */ public Boolean getIsDevMode() { return this.isDevMode; @@ -70,7 +70,7 @@ public boolean hasIsDevMode() { private String senderId; /** - * The sender id provided by Google. Credentials for GOOGLE push. + * The sender id provided by Google. Credentials for GOOGLE push */ public String getSenderId() { return this.senderId; @@ -83,7 +83,7 @@ public boolean hasSenderId() { private String serverKey; /** - * The server key provided by Google. Credentials for GOOGLE push. + * The server key provided by Google. Credentials for GOOGLE push */ public String getServerKey() { return this.serverKey; @@ -93,6 +93,32 @@ public boolean hasServerKey() { return this.serverKey != null; } + private String huaweiClientId; + + /** + * The client id, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiClientId() { + return this.huaweiClientId; + } + + public boolean hasHuaweiClientId() { + return this.huaweiClientId != null; + } + + private String huaweiApplicationId; + + /** + * The application id, provided by Huawei. Credentials for HUAWEI push + */ + public String getHuaweiApplicationId() { + return this.huaweiApplicationId; + } + + public boolean hasHuaweiApplicationId() { + return this.huaweiApplicationId != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -150,6 +176,22 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (huaweiClientId != null) { + sb.append(aligned) + .append("\"huaweiClientId\": \"") + .append(huaweiClientId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (huaweiApplicationId != null) { + sb.append(aligned) + .append("\"huaweiApplicationId\": \"") + .append(huaweiApplicationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/PushCredentialInfo.java b/src/main/java/com/voximplant/apiclient/response/PushCredentialInfo.java index c4edd8d..548cc3f 100644 --- a/src/main/java/com/voximplant/apiclient/response/PushCredentialInfo.java +++ b/src/main/java/com/voximplant/apiclient/response/PushCredentialInfo.java @@ -44,8 +44,8 @@ public boolean hasPushProviderId() { private String pushProviderName; /** - * The push provider name. The possible values are: APPLE, APPLE_VOIP, - * GOOGLE + * The push provider name. The possible values are APPLE, APPLE_VOIP, + * GOOGLE, HUAWEI */ public String getPushProviderName() { return this.pushProviderName; @@ -58,7 +58,7 @@ public boolean hasPushProviderName() { private String credentialBundle; /** - * The bundle of Android/iOS application. + * The bundle of Android/iOS application */ public String getCredentialBundle() { return this.credentialBundle; @@ -68,12 +68,12 @@ public boolean hasCredentialBundle() { return this.credentialBundle != null; } - private PushCredentialContent content; + private PushCredentialContent[] content; /** - * The credentials content. + * The credentials content */ - public PushCredentialContent getContent() { + public PushCredentialContent[] getContent() { return this.content; } @@ -84,7 +84,7 @@ public boolean hasContent() { private ApplicationInfoType[] applications; /** - * Bound applications. + * Bound applications */ public ApplicationInfoType[] getApplications() { return this.applications; @@ -137,10 +137,8 @@ public String toString(int alignment) { } if (content != null) { sb.append(aligned) - .append("\"content\": \"") - .append(content) - .append('"') - .append(',') + .append("\"PushCredentialContent\": ") + .append(StringHelper.arrayToString(content, alignment + 1)) .append(System.lineSeparator()); } if (applications != null) { diff --git a/src/main/java/com/voximplant/apiclient/response/QueueInfoType.java b/src/main/java/com/voximplant/apiclient/response/QueueInfoType.java index 26e4736..7042486 100644 --- a/src/main/java/com/voximplant/apiclient/response/QueueInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/QueueInfoType.java @@ -18,7 +18,7 @@ public class QueueInfoType implements Alignable { private Long acdQueueId; /** - * The ACD queue ID. + * The ACD queue ID */ public Long getAcdQueueId() { return this.acdQueueId; @@ -31,7 +31,7 @@ public boolean hasAcdQueueId() { private String acdQueueName; /** - * The queue name. + * The queue name */ public String getAcdQueueName() { return this.acdQueueName; @@ -44,7 +44,7 @@ public boolean hasAcdQueueName() { private Long applicationId; /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -57,7 +57,7 @@ public boolean hasApplicationId() { private Long acdQueuePriority; /** - * The integer queue priority. The highest priority is 0. + * The integer queue priority. The highest priority is 0 */ public Long getAcdQueuePriority() { return this.acdQueuePriority; @@ -71,7 +71,7 @@ public boolean hasAcdQueuePriority() { /** * The value in the range of [0.5 ... 1.0]. The value 1.0 means the - * service probability 100% in challenge with a lower priority queue. + * service probability 100% in challenge with a lower priority queue */ public Long getServiceProbability() { return this.serviceProbability; @@ -85,7 +85,7 @@ public boolean hasServiceProbability() { /** * Set false to disable the auto binding of operators to a queue by - * skills comparing. + * skills comparing */ public Boolean getAutoBinding() { return this.autoBinding; @@ -101,7 +101,7 @@ public boolean hasAutoBinding() { * The maximum predicted waiting time in minutes. When a call is going * to be enqueued to the queue, its predicted waiting time should be * less or equal to the maximum predicted waiting time; otherwise, a - * call would be rejected. + * call would be rejected */ public Long getMaxWaitingTime() { return this.maxWaitingTime; @@ -114,7 +114,7 @@ public boolean hasMaxWaitingTime() { private Long maxQueueSize; /** - * The maximum number of calls that can be enqueued into this queue. + * The maximum number of calls that can be enqueued into this queue */ public Long getMaxQueueSize() { return this.maxQueueSize; @@ -128,7 +128,7 @@ public boolean hasMaxQueueSize() { /** * The average service time in seconds. Specify the parameter to correct - * or initialize the waiting time prediction. + * or initialize the waiting time prediction */ public Long getAverageServiceTime() { return this.averageServiceTime; @@ -183,7 +183,7 @@ public boolean hasDeleted() { private QueueUsers[] users; /** - * The queue users info. + * The queue users info */ public QueueUsers[] getUsers() { return this.users; @@ -196,7 +196,7 @@ public boolean hasUsers() { private QueueSkills[] skills; /** - * The queue skills info. + * The queue skills info */ public QueueSkills[] getSkills() { return this.skills; @@ -209,7 +209,7 @@ public boolean hasSkills() { private Long[] slThresholds; /** - * The service level thresholds in seconds. + * The service level thresholds in seconds */ public Long[] getSlThresholds() { return this.slThresholds; @@ -219,6 +219,19 @@ public boolean hasSlThresholds() { return this.slThresholds != null; } + private Long operatorcount; + + /** + * Number of agents bound to the queue + */ + public Long getOperatorcount() { + return this.operatorcount; + } + + public boolean hasOperatorcount() { + return this.operatorcount != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -342,6 +355,14 @@ public String toString(int alignment) { .append(StringHelper.arrayToString(slThresholds, alignment + 1)) .append(System.lineSeparator()); } + if (operatorcount != null) { + sb.append(aligned) + .append("\"operatorcount\": \"") + .append(operatorcount) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/QueueSkills.java b/src/main/java/com/voximplant/apiclient/response/QueueSkills.java index aaa48fa..c905bdb 100644 --- a/src/main/java/com/voximplant/apiclient/response/QueueSkills.java +++ b/src/main/java/com/voximplant/apiclient/response/QueueSkills.java @@ -18,7 +18,7 @@ public class QueueSkills implements Alignable { private Long skillId; /** - * The skill ID. + * The skill ID */ public Long getSkillId() { return this.skillId; @@ -31,7 +31,7 @@ public boolean hasSkillId() { private String skillName; /** - * The skill name. + * The skill name */ public String getSkillName() { return this.skillName; diff --git a/src/main/java/com/voximplant/apiclient/response/QueueUsers.java b/src/main/java/com/voximplant/apiclient/response/QueueUsers.java index 267bca0..ceaf799 100644 --- a/src/main/java/com/voximplant/apiclient/response/QueueUsers.java +++ b/src/main/java/com/voximplant/apiclient/response/QueueUsers.java @@ -18,7 +18,7 @@ public class QueueUsers implements Alignable { private Long userId; /** - * The user ID. + * The user ID */ public Long getUserId() { return this.userId; diff --git a/src/main/java/com/voximplant/apiclient/response/RecordStorageInfoType.java b/src/main/java/com/voximplant/apiclient/response/RecordStorageInfoType.java index f2bcd37..ab39ad7 100644 --- a/src/main/java/com/voximplant/apiclient/response/RecordStorageInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/RecordStorageInfoType.java @@ -18,7 +18,7 @@ public class RecordStorageInfoType implements Alignable { private Long recordStorageId; /** - * The record storage ID. + * The record storage ID */ public Long getRecordStorageId() { return this.recordStorageId; @@ -31,7 +31,7 @@ public boolean hasRecordStorageId() { private String recordStorageName; /** - * The record storage name. + * The record storage name */ public String getRecordStorageName() { return this.recordStorageName; @@ -44,7 +44,7 @@ public boolean hasRecordStorageName() { private Boolean isPublic; /** - * The public flag (The admin permission required). + * The public flag (The admin permission required) */ public Boolean getIsPublic() { return this.isPublic; diff --git a/src/main/java/com/voximplant/apiclient/response/RecordType.java b/src/main/java/com/voximplant/apiclient/response/RecordType.java index 5170ccb..2cca4a6 100644 --- a/src/main/java/com/voximplant/apiclient/response/RecordType.java +++ b/src/main/java/com/voximplant/apiclient/response/RecordType.java @@ -18,7 +18,7 @@ public class RecordType implements Alignable { private Long recordId; /** - * The record ID. + * The record ID */ public Long getRecordId() { return this.recordId; @@ -31,7 +31,7 @@ public boolean hasRecordId() { private String recordName; /** - * The record name. + * The record name */ public String getRecordName() { return this.recordName; @@ -44,7 +44,7 @@ public boolean hasRecordName() { private BigDecimal cost; /** - * The record cost. + * The record cost */ public BigDecimal getCost() { return this.cost; @@ -72,7 +72,7 @@ public boolean hasStartTime() { private Long duration; /** - * The call duration in seconds. + * The call duration in seconds */ public Long getDuration() { return this.duration; @@ -85,7 +85,7 @@ public boolean hasDuration() { private String recordUrl; /** - * The record URL. + * The record URL */ public String getRecordUrl() { return this.recordUrl; @@ -98,7 +98,7 @@ public boolean hasRecordUrl() { private Long transactionId; /** - * The transaction ID. + * The transaction ID */ public Long getTransactionId() { return this.transactionId; @@ -111,7 +111,7 @@ public boolean hasTransactionId() { private BigDecimal fileSize; /** - * The file size. + * The file size */ public BigDecimal getFileSize() { return this.fileSize; @@ -124,7 +124,8 @@ public boolean hasFileSize() { private String transcriptionUrl; /** - * The url of transcription. + * Transcription URL. To open the URL, please add authorization + * parameters and record_id to it */ public String getTranscriptionUrl() { return this.transcriptionUrl; @@ -137,8 +138,8 @@ public boolean hasTranscriptionUrl() { private String transcriptionStatus; /** - * The status of transcription. The possible values are: Not required, - * In progress, Complete + * The status of transcription. The possible values are Not required, In + * progress, Complete */ public String getTranscriptionStatus() { return this.transcriptionStatus; diff --git a/src/main/java/com/voximplant/apiclient/response/RegulationAddress.java b/src/main/java/com/voximplant/apiclient/response/RegulationAddress.java index 6d9da1e..96b353a 100644 --- a/src/main/java/com/voximplant/apiclient/response/RegulationAddress.java +++ b/src/main/java/com/voximplant/apiclient/response/RegulationAddress.java @@ -18,7 +18,7 @@ public class RegulationAddress implements Alignable { private Long regulationAddressId; /** - * The regulation address ID. + * The regulation address ID */ public Long getRegulationAddressId() { return this.regulationAddressId; @@ -31,7 +31,7 @@ public boolean hasRegulationAddressId() { private String externalId; /** - * The external ID. + * The external ID */ public String getExternalId() { return this.externalId; @@ -44,7 +44,7 @@ public boolean hasExternalId() { private String countryCode; /** - * The country code. + * The country code */ public String getCountryCode() { return this.countryCode; @@ -57,7 +57,7 @@ public boolean hasCountryCode() { private String phoneCategoryName; /** - * The phone category name. + * The phone category name */ public String getPhoneCategoryName() { return this.phoneCategoryName; @@ -70,7 +70,7 @@ public boolean hasPhoneCategoryName() { private String salutation; /** - * The salutation. Possible values: MR, MS, COMPANY. + * The salutation. Possible values: MR, MS, COMPANY */ public String getSalutation() { return this.salutation; @@ -83,7 +83,7 @@ public boolean hasSalutation() { private String company; /** - * The company name. + * The company name */ public String getCompany() { return this.company; @@ -96,7 +96,7 @@ public boolean hasCompany() { private String firstName; /** - * The first name. + * The first name */ public String getFirstName() { return this.firstName; @@ -109,7 +109,7 @@ public boolean hasFirstName() { private String lastName; /** - * The last name. + * The last name */ public String getLastName() { return this.lastName; @@ -122,7 +122,7 @@ public boolean hasLastName() { private String ownerCountryCode; /** - * The owner country code. + * The owner country code */ public String getOwnerCountryCode() { return this.ownerCountryCode; @@ -135,7 +135,7 @@ public boolean hasOwnerCountryCode() { private String city; /** - * The city name. + * The city name */ public String getCity() { return this.city; @@ -148,7 +148,7 @@ public boolean hasCity() { private String zipCode; /** - * The zip code. + * The zip code */ public String getZipCode() { return this.zipCode; @@ -161,7 +161,7 @@ public boolean hasZipCode() { private String street; /** - * The zip code. + * The zip code */ public String getStreet() { return this.street; @@ -174,7 +174,7 @@ public boolean hasStreet() { private String builderNumber; /** - * The builder number. + * The builder number */ public String getBuilderNumber() { return this.builderNumber; @@ -187,7 +187,7 @@ public boolean hasBuilderNumber() { private String builderLatter; /** - * The builder latter. + * The builder latter */ public String getBuilderLatter() { return this.builderLatter; @@ -227,7 +227,7 @@ public boolean hasRejectMessage() { private String phoneRegionCode; /** - * The phone region code. + * The phone region code */ public String getPhoneRegionCode() { return this.phoneRegionCode; diff --git a/src/main/java/com/voximplant/apiclient/response/RegulationAddressDocumentsRequestedCallback.java b/src/main/java/com/voximplant/apiclient/response/RegulationAddressDocumentsRequestedCallback.java new file mode 100644 index 0000000..a3cb903 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/RegulationAddressDocumentsRequestedCallback.java @@ -0,0 +1,163 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Received when the verification status of regulation address is +* changed to PENDING. Received as part of the [AccountCallback] +* structure. +*/ +public class RegulationAddressDocumentsRequestedCallback implements Alignable { + + private Long regulationAddressId; + + /** + * Uploaded document ID + */ + public Long getRegulationAddressId() { + return this.regulationAddressId; + } + + public boolean hasRegulationAddressId() { + return this.regulationAddressId != null; + } + + private String regulationAddressName; + + /** + * Uploaded document name + */ + public String getRegulationAddressName() { + return this.regulationAddressName; + } + + public boolean hasRegulationAddressName() { + return this.regulationAddressName != null; + } + + private String regulationAddressStatus; + + /** + * Document verification status. The following values are possible: + * IN_PROGRESS, VERIFIED, DECLINED, PENDING + */ + public String getRegulationAddressStatus() { + return this.regulationAddressStatus; + } + + public boolean hasRegulationAddressStatus() { + return this.regulationAddressStatus != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date updateTime; + + /** + * UTC time when the status is updated + */ + public Date getUpdateTime() { + return this.updateTime; + } + + public boolean hasUpdateTime() { + return this.updateTime != null; + } + + private Boolean isIndividual; + + /** + * Account belongs to an individual + */ + public Boolean getIsIndividual() { + return this.isIndividual; + } + + public boolean hasIsIndividual() { + return this.isIndividual != null; + } + + private String comment; + + /** + * Reviewer's comment + */ + public String getComment() { + return this.comment; + } + + public boolean hasComment() { + return this.comment != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (regulationAddressId != null) { + sb.append(aligned) + .append("\"regulationAddressId\": \"") + .append(regulationAddressId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (regulationAddressName != null) { + sb.append(aligned) + .append("\"regulationAddressName\": \"") + .append(regulationAddressName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (regulationAddressStatus != null) { + sb.append(aligned) + .append("\"regulationAddressStatus\": \"") + .append(regulationAddressStatus) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (updateTime != null) { + sb.append(aligned) + .append("\"updateTime\": \"") + .append(updateTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (isIndividual != null) { + sb.append(aligned) + .append("\"isIndividual\": \"") + .append(isIndividual) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (comment != null) { + sb.append(aligned) + .append("\"comment\": \"") + .append(comment) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/RegulationAddressUploadedCallback.java b/src/main/java/com/voximplant/apiclient/response/RegulationAddressUploadedCallback.java index c431171..86000ee 100644 --- a/src/main/java/com/voximplant/apiclient/response/RegulationAddressUploadedCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/RegulationAddressUploadedCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when proof of address is uploaded. Received as part of the * [AccountCallback] structure. */ public class RegulationAddressUploadedCallback implements Alignable { @@ -19,7 +19,7 @@ public class RegulationAddressUploadedCallback implements Alignable { private Long regulationAddressId; /** - * The uploaded document ID. See GetRegulationsAddress. + * The uploaded document ID. See GetRegulationsAddress */ public Long getRegulationAddressId() { return this.regulationAddressId; @@ -46,7 +46,7 @@ public boolean hasUploaded() { private Boolean isIndividual; /** - * Is individual, isn't legal entity? + * Account belongs to an individual */ public Boolean getIsIndividual() { return this.isIndividual; @@ -59,7 +59,7 @@ public boolean hasIsIndividual() { private String regulationAddressName; /** - * The regulation address name. + * The regulation address name */ public String getRegulationAddressName() { return this.regulationAddressName; diff --git a/src/main/java/com/voximplant/apiclient/response/RegulationAddressVerifiedCallback.java b/src/main/java/com/voximplant/apiclient/response/RegulationAddressVerifiedCallback.java index 5cdaa35..bbb0101 100644 --- a/src/main/java/com/voximplant/apiclient/response/RegulationAddressVerifiedCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/RegulationAddressVerifiedCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when proof of address is verified. Received as part of the * [AccountCallback] structure. */ public class RegulationAddressVerifiedCallback implements Alignable { @@ -19,7 +19,7 @@ public class RegulationAddressVerifiedCallback implements Alignable { private Long regulationAddressId; /** - * The uploaded document ID. + * The uploaded document ID */ public Long getRegulationAddressId() { return this.regulationAddressId; @@ -33,8 +33,7 @@ public boolean hasRegulationAddressId() { /** * The document verification status. The following values are possible: - * WAITING_CONFIRMATION_DOCS, VERIFIED, REJECTED, - * WAITING_PERIOD_EXPIRED. + * VERIFIED, DECLINED */ public String getRegulationAddressStatus() { return this.regulationAddressStatus; @@ -61,7 +60,7 @@ public boolean hasUploaded() { private Boolean isIndividual; /** - * Is individual, isn't legal entity? + * Account belongs to an individual */ public Boolean getIsIndividual() { return this.isIndividual; @@ -74,7 +73,7 @@ public boolean hasIsIndividual() { private String comment; /** - * The reviewer's comment. + * The reviewer's comment */ public String getComment() { return this.comment; @@ -87,7 +86,7 @@ public boolean hasComment() { private String regulationAddressName; /** - * The regulation address name. + * The regulation address name */ public String getRegulationAddressName() { return this.regulationAddressName; diff --git a/src/main/java/com/voximplant/apiclient/response/RegulationRegionRecord.java b/src/main/java/com/voximplant/apiclient/response/RegulationRegionRecord.java index 4f8bf1a..10f3025 100644 --- a/src/main/java/com/voximplant/apiclient/response/RegulationRegionRecord.java +++ b/src/main/java/com/voximplant/apiclient/response/RegulationRegionRecord.java @@ -18,7 +18,7 @@ public class RegulationRegionRecord implements Alignable { private Long phoneRegionId; /** - * The regulation address ID. + * The regulation address ID */ public Long getPhoneRegionId() { return this.phoneRegionId; diff --git a/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallback.java b/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallback.java index 5373a59..e4a2cbd 100644 --- a/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when subscriptions are renewed. Received as part of the * [AccountCallback] structure. */ public class RenewedSubscriptionsCallback implements Alignable { @@ -19,7 +19,7 @@ public class RenewedSubscriptionsCallback implements Alignable { private RenewedSubscriptionsCallbackItem[] subscriptions; /** - * The renewed subscription list. + * The renewed subscription list */ public RenewedSubscriptionsCallbackItem[] getSubscriptions() { return this.subscriptions; diff --git a/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallbackItem.java index e160bc2..bb6fa85 100644 --- a/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/RenewedSubscriptionsCallbackItem.java @@ -32,7 +32,7 @@ public boolean hasType() { /** * The subscription description (details). Example: the subscribed phone - * number. + * number */ public String getName() { return this.name; @@ -45,7 +45,7 @@ public boolean hasName() { private BigDecimal cost; /** - * The subscription cost. + * The subscription cost */ public BigDecimal getCost() { return this.cost; @@ -69,6 +69,20 @@ public boolean hasNextRenewal() { return this.nextRenewal != null; } + private SubscriptionCallbackDetails[] details; + + /** + * Info about the phone numbers or sip registrations that the + * subscription is attached to + */ + public SubscriptionCallbackDetails[] getDetails() { + return this.details; + } + + public boolean hasDetails() { + return this.details != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -110,6 +124,12 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (details != null) { + sb.append(aligned) + .append("\"SubscriptionCallbackDetails\": ") + .append(StringHelper.arrayToString(details, alignment + 1)) + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/RequestSmartQueueHistoryResponse.java b/src/main/java/com/voximplant/apiclient/response/RequestSmartQueueHistoryResponse.java new file mode 100644 index 0000000..08ce741 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/RequestSmartQueueHistoryResponse.java @@ -0,0 +1,81 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class RequestSmartQueueHistoryResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + private Long historyReportId; + + /** + * History report ID + */ + public Long getHistoryReportId() { + return this.historyReportId; + } + + public boolean hasHistoryReportId() { + return this.historyReportId != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (historyReportId != null) { + sb.append(aligned) + .append("\"historyReportId\": \"") + .append(historyReportId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ResetAccountPasswordRequestCallback.java b/src/main/java/com/voximplant/apiclient/response/ResetAccountPasswordRequestCallback.java index 62acbf8..2a55b71 100644 --- a/src/main/java/com/voximplant/apiclient/response/ResetAccountPasswordRequestCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/ResetAccountPasswordRequestCallback.java @@ -11,8 +11,8 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when an account password reset is requested. Received as +* part of the [AccountCallback] structure. */ public class ResetAccountPasswordRequestCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/ResourcePrice.java b/src/main/java/com/voximplant/apiclient/response/ResourcePrice.java index c2ef2d1..71373eb 100644 --- a/src/main/java/com/voximplant/apiclient/response/ResourcePrice.java +++ b/src/main/java/com/voximplant/apiclient/response/ResourcePrice.java @@ -18,7 +18,7 @@ public class ResourcePrice implements Alignable { private String resourceType; /** - * The resource type name. The possible values are: AUDIOHDCONFERENCE, + * The resource type name. The possible values are AUDIOHDCONFERENCE, * AUDIOHDRECORD, AUDIORECORD, CALLLIST, CALLSESSION, DIALOGFLOW, IM, * PSTN_IN_ALASKA, PSTN_IN_GB, PSTN_IN_GEOGRAPHIC, PSTN_IN_GEO_PH, * PSTN_IN_RU, PSTN_IN_RU_TOLLFREE, PSTN_INTERNATIONAL, PSTNINTEST, @@ -45,7 +45,7 @@ public boolean hasResourceType() { private PriceGroup[] priceGroups; /** - * The price group array. + * The price group array */ public PriceGroup[] getPriceGroups() { return this.priceGroups; diff --git a/src/main/java/com/voximplant/apiclient/response/ResourceUsageType.java b/src/main/java/com/voximplant/apiclient/response/ResourceUsageType.java index 0fa5a00..0d5506d 100644 --- a/src/main/java/com/voximplant/apiclient/response/ResourceUsageType.java +++ b/src/main/java/com/voximplant/apiclient/response/ResourceUsageType.java @@ -18,7 +18,7 @@ public class ResourceUsageType implements Alignable { private Long resourceUsageId; /** - * The resource usage ID. + * The resource usage ID */ public Long getResourceUsageId() { return this.resourceUsageId; @@ -31,9 +31,9 @@ public boolean hasResourceUsageId() { private String resourceType; /** - * The resource type. The possible values are: CALLSESSION, VIDEOCALL, + * The resource type. The possible values are CALLSESSION, VIDEOCALL, * VIDEORECORD, VOICEMAILDETECTION, YANDEXASR, ASR, TRANSCRIPTION, - * TTS_TEXT_GOOGLE, TTS_YANDEX, AUDIOHDCONFERENCE. + * TTS_TEXT_GOOGLE, TTS_YANDEX, AUDIOHDCONFERENCE */ public String getResourceType() { return this.resourceType; @@ -46,7 +46,7 @@ public boolean hasResourceType() { private BigDecimal cost; /** - * The resource cost. + * The resource cost */ public BigDecimal getCost() { return this.cost; @@ -59,7 +59,7 @@ public boolean hasCost() { private String description; /** - * The description. + * The description */ public String getDescription() { return this.description; @@ -87,7 +87,7 @@ public boolean hasUsedAt() { private Long transactionId; /** - * The transaction ID. + * The transaction ID */ public Long getTransactionId() { return this.transactionId; @@ -100,7 +100,7 @@ public boolean hasTransactionId() { private Long resourceQuantity; /** - * The resource quantity. + * The resource quantity */ public Long getResourceQuantity() { return this.resourceQuantity; @@ -113,7 +113,7 @@ public boolean hasResourceQuantity() { private String unit; /** - * The resource unit. + * The resource unit */ public String getUnit() { return this.unit; @@ -126,7 +126,7 @@ public boolean hasUnit() { private Long refCallId; /** - * The reference to call. + * The reference to call */ public Long getRefCallId() { return this.refCallId; diff --git a/src/main/java/com/voximplant/apiclient/response/RestoredAgreementStatusCallback.java b/src/main/java/com/voximplant/apiclient/response/RestoredAgreementStatusCallback.java index c9f343a..184c06e 100644 --- a/src/main/java/com/voximplant/apiclient/response/RestoredAgreementStatusCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/RestoredAgreementStatusCallback.java @@ -11,15 +11,16 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when an expiration date of the confirmation documents +* waiting period is changed. Received as part of the [AccountCallback] +* structure. */ public class RestoredAgreementStatusCallback implements Alignable { private Long documentId; /** - * ID of the agreement document which status has been changed. + * ID of the agreement document which status has been changed */ public Long getDocumentId() { return this.documentId; @@ -33,7 +34,7 @@ public boolean hasDocumentId() { private Date expirationDate; /** - * The new date of agreement expiration in format: YYYY-MM-DD. + * The new date of agreement expiration in format: YYYY-MM-DD */ public Date getExpirationDate() { return this.expirationDate; diff --git a/src/main/java/com/voximplant/apiclient/response/RobokassaPaymentCallback.java b/src/main/java/com/voximplant/apiclient/response/RobokassaPaymentCallback.java index daf1e25..63bed87 100644 --- a/src/main/java/com/voximplant/apiclient/response/RobokassaPaymentCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/RobokassaPaymentCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a robokassa payment is made. Received as part of the * [AccountCallback] structure. */ public class RobokassaPaymentCallback implements Alignable { @@ -19,7 +19,7 @@ public class RobokassaPaymentCallback implements Alignable { private Long transactionId; /** - * The transaction ID. + * The transaction ID */ public Long getTransactionId() { return this.transactionId; @@ -32,7 +32,7 @@ public boolean hasTransactionId() { private String transactionType; /** - * The transaction type. + * The transaction type */ public String getTransactionType() { return this.transactionType; @@ -45,7 +45,7 @@ public boolean hasTransactionType() { private BigDecimal amount; /** - * The amount in the account currency. + * The amount in the account currency */ public BigDecimal getAmount() { return this.amount; diff --git a/src/main/java/com/voximplant/apiclient/response/RoleGroupView.java b/src/main/java/com/voximplant/apiclient/response/RoleGroupView.java index fc2a137..92b3cd2 100644 --- a/src/main/java/com/voximplant/apiclient/response/RoleGroupView.java +++ b/src/main/java/com/voximplant/apiclient/response/RoleGroupView.java @@ -18,7 +18,7 @@ public class RoleGroupView implements Alignable { private Long id; /** - * The role group ID. + * The role group ID */ public Long getId() { return this.id; @@ -31,7 +31,7 @@ public boolean hasId() { private String name; /** - * The role group name. + * The role group name */ public String getName() { return this.name; diff --git a/src/main/java/com/voximplant/apiclient/response/RoleView.java b/src/main/java/com/voximplant/apiclient/response/RoleView.java index 5cbbca3..66a5aeb 100644 --- a/src/main/java/com/voximplant/apiclient/response/RoleView.java +++ b/src/main/java/com/voximplant/apiclient/response/RoleView.java @@ -18,7 +18,7 @@ public class RoleView implements Alignable { private String roleName; /** - * The role name. + * The role name */ public String getRoleName() { return this.roleName; @@ -31,7 +31,7 @@ public boolean hasRoleName() { private Long roleId; /** - * The role ID. + * The role ID */ public Long getRoleId() { return this.roleId; @@ -44,7 +44,7 @@ public boolean hasRoleId() { private Boolean inherited; /** - * Shows that the role is inherited. + * Shows that the role is inherited */ public Boolean getInherited() { return this.inherited; @@ -57,7 +57,7 @@ public boolean hasInherited() { private Long[] childIds; /** - * Child roles IDs array. + * Child roles IDs array */ public Long[] getChildIds() { return this.childIds; @@ -70,7 +70,7 @@ public boolean hasChildIds() { private Long[] parentRoleId; /** - * Parent roles IDs array. + * Parent roles IDs array */ public Long[] getParentRoleId() { return this.parentRoleId; @@ -83,7 +83,7 @@ public boolean hasParentRoleId() { private Boolean guiOnly; /** - * Shows that the role is gui only. + * Shows that the role is gui only */ public Boolean getGuiOnly() { return this.guiOnly; diff --git a/src/main/java/com/voximplant/apiclient/response/RuleInfoType.java b/src/main/java/com/voximplant/apiclient/response/RuleInfoType.java index fef39d0..46566aa 100644 --- a/src/main/java/com/voximplant/apiclient/response/RuleInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/RuleInfoType.java @@ -18,7 +18,7 @@ public class RuleInfoType implements Alignable { private Long ruleId; /** - * The rule ID. + * The rule ID */ public Long getRuleId() { return this.ruleId; @@ -31,7 +31,7 @@ public boolean hasRuleId() { private Long applicationId; /** - * The application ID. + * The application ID */ public Long getApplicationId() { return this.applicationId; @@ -44,7 +44,7 @@ public boolean hasApplicationId() { private String ruleName; /** - * The rule name. + * The rule name */ public String getRuleName() { return this.ruleName; @@ -57,7 +57,7 @@ public boolean hasRuleName() { private String rulePattern; /** - * The rule pattern regex. + * The rule pattern regex */ public String getRulePattern() { return this.rulePattern; @@ -70,7 +70,7 @@ public boolean hasRulePattern() { private String rulePatternExclude; /** - * The rule pattern exlude regex. + * The rule pattern exlude regex */ public String getRulePatternExclude() { return this.rulePatternExclude; @@ -83,7 +83,7 @@ public boolean hasRulePatternExclude() { private Boolean videoConference; /** - * Is video conference required? + * Video conference is required */ public Boolean getVideoConference() { return this.videoConference; @@ -96,7 +96,7 @@ public boolean hasVideoConference() { private ScenarioInfoType[] scenarios; /** - * The bound scenarios. + * The bound scenarios */ public ScenarioInfoType[] getScenarios() { return this.scenarios; diff --git a/src/main/java/com/voximplant/apiclient/response/SIPRegistrationFailCallback.java b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationFailCallback.java index dba728f..32524cf 100644 --- a/src/main/java/com/voximplant/apiclient/response/SIPRegistrationFailCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationFailCallback.java @@ -11,22 +11,22 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when one or several SIP registrations are failed. Received +* as part of the [AccountCallback] structure. */ public class SIPRegistrationFailCallback implements Alignable { - private Long sipRegistrationId; + private SIPRegistrationIsFailedCallbackItem[] sipRegistrations; /** - * The SIP registration ID. + * SIP registration array */ - public Long getSipRegistrationId() { - return this.sipRegistrationId; + public SIPRegistrationIsFailedCallbackItem[] getSipRegistrations() { + return this.sipRegistrations; } - public boolean hasSipRegistrationId() { - return this.sipRegistrationId != null; + public boolean hasSipRegistrations() { + return this.sipRegistrations != null; } public String toString(int alignment) { @@ -38,12 +38,10 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (sipRegistrationId != null) { + if (sipRegistrations != null) { sb.append(aligned) - .append("\"sipRegistrationId\": \"") - .append(sipRegistrationId) - .append('"') - .append(',') + .append("\"SIPRegistrationIsFailedCallbackItem\": ") + .append(StringHelper.arrayToString(sipRegistrations, alignment + 1)) .append(System.lineSeparator()); } return sb.append(preAligned).append('}').append(',').toString(); diff --git a/src/main/java/com/voximplant/apiclient/response/ClassificationCompleteCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationIsFailedCallbackItem.java similarity index 54% rename from src/main/java/com/voximplant/apiclient/response/ClassificationCompleteCallbackItem.java rename to src/main/java/com/voximplant/apiclient/response/SIPRegistrationIsFailedCallbackItem.java index aa20ffd..6ca8579 100644 --- a/src/main/java/com/voximplant/apiclient/response/ClassificationCompleteCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationIsFailedCallbackItem.java @@ -13,45 +13,45 @@ /** * The specific account callback details. */ -public class ClassificationCompleteCallbackItem implements Alignable { +public class SIPRegistrationIsFailedCallbackItem implements Alignable { - private Long recordId; + private Long sipRegistrationId; /** - * The record ID. + * SIP registration ID */ - public Long getRecordId() { - return this.recordId; + public Long getSipRegistrationId() { + return this.sipRegistrationId; } - public boolean hasRecordId() { - return this.recordId != null; + public boolean hasSipRegistrationId() { + return this.sipRegistrationId != null; } - private ClassificationUnit[] classificationInfo; + private String statusCode; /** - * Array with the classification results. + * Status code from a SIP registration */ - public ClassificationUnit[] getClassificationInfo() { - return this.classificationInfo; + public String getStatusCode() { + return this.statusCode; } - public boolean hasClassificationInfo() { - return this.classificationInfo != null; + public boolean hasStatusCode() { + return this.statusCode != null; } - private BigDecimal classificationCost; + private String errorMessage; /** - * The cost of classification. + * Error message from a SIP registration */ - public BigDecimal getClassificationCost() { - return this.classificationCost; + public String getErrorMessage() { + return this.errorMessage; } - public boolean hasClassificationCost() { - return this.classificationCost != null; + public boolean hasErrorMessage() { + return this.errorMessage != null; } public String toString(int alignment) { @@ -63,24 +63,26 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (recordId != null) { + if (sipRegistrationId != null) { sb.append(aligned) - .append("\"recordId\": \"") - .append(recordId) + .append("\"sipRegistrationId\": \"") + .append(sipRegistrationId) .append('"') .append(',') .append(System.lineSeparator()); } - if (classificationInfo != null) { + if (statusCode != null) { sb.append(aligned) - .append("\"ClassificationUnit\": ") - .append(StringHelper.arrayToString(classificationInfo, alignment + 1)) + .append("\"statusCode\": \"") + .append(statusCode) + .append('"') + .append(',') .append(System.lineSeparator()); } - if (classificationCost != null) { + if (errorMessage != null) { sb.append(aligned) - .append("\"classificationCost\": \"") - .append(classificationCost) + .append("\"errorMessage\": \"") + .append(errorMessage) .append('"') .append(',') .append(System.lineSeparator()); diff --git a/src/main/java/com/voximplant/apiclient/response/SIPRegistrationIsRecoveredCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationIsRecoveredCallbackItem.java new file mode 100644 index 0000000..a249bc4 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationIsRecoveredCallbackItem.java @@ -0,0 +1,54 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The specific account callback details. +*/ +public class SIPRegistrationIsRecoveredCallbackItem implements Alignable { + + private Long sipRegistrationId; + + /** + * SIP registration ID + */ + public Long getSipRegistrationId() { + return this.sipRegistrationId; + } + + public boolean hasSipRegistrationId() { + return this.sipRegistrationId != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sipRegistrationId != null) { + sb.append(aligned) + .append("\"sipRegistrationId\": \"") + .append(sipRegistrationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SIPRegistrationRecoveredCallback.java b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationRecoveredCallback.java new file mode 100644 index 0000000..9833768 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationRecoveredCallback.java @@ -0,0 +1,53 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Received when one or several SIP registrations are recovered. +* Received as part of the [AccountCallback] structure. +*/ +public class SIPRegistrationRecoveredCallback implements Alignable { + + private SIPRegistrationIsRecoveredCallbackItem[] sipRegistrations; + + /** + * SIP registration array + */ + public SIPRegistrationIsRecoveredCallbackItem[] getSipRegistrations() { + return this.sipRegistrations; + } + + public boolean hasSipRegistrations() { + return this.sipRegistrations != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sipRegistrations != null) { + sb.append(aligned) + .append("\"SIPRegistrationIsRecoveredCallbackItem\": ") + .append(StringHelper.arrayToString(sipRegistrations, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SIPRegistrationType.java b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationType.java index cb1f54b..e191aaf 100644 --- a/src/main/java/com/voximplant/apiclient/response/SIPRegistrationType.java +++ b/src/main/java/com/voximplant/apiclient/response/SIPRegistrationType.java @@ -11,14 +11,14 @@ import com.voximplant.apiclient.util.Alignable; /** -* Detailing SIP registration +* Detailing SIP registration. */ public class SIPRegistrationType implements Alignable { private Long sipRegistrationId; /** - * The SIP registration ID. + * The SIP registration ID */ public Long getSipRegistrationId() { return this.sipRegistrationId; @@ -31,7 +31,7 @@ public boolean hasSipRegistrationId() { private String sipUsername; /** - * The user name from sip proxy. + * The user name from sip proxy */ public String getSipUsername() { return this.sipUsername; @@ -44,7 +44,7 @@ public boolean hasSipUsername() { private String proxy; /** - * The sip proxy. + * The sip proxy */ public String getProxy() { return this.proxy; @@ -57,7 +57,7 @@ public boolean hasProxy() { private Long lastUpdated; /** - * The last time updated. + * The last time updated */ public Long getLastUpdated() { return this.lastUpdated; @@ -83,7 +83,7 @@ public boolean hasAuthUser() { private String outboundProxy; /** - * The outbound proxy. + * The outbound proxy */ public String getOutboundProxy() { return this.outboundProxy; @@ -96,7 +96,7 @@ public boolean hasOutboundProxy() { private Boolean successful; /** - * The successful SIP registration. + * The successful SIP registration */ public Boolean getSuccessful() { return this.successful; @@ -109,7 +109,7 @@ public boolean hasSuccessful() { private Long statusCode; /** - * The status code from SIP registration. + * The status code from a SIP registration */ public Long getStatusCode() { return this.statusCode; @@ -122,7 +122,7 @@ public boolean hasStatusCode() { private String errorMessage; /** - * The error message from SIP registration. + * The error message from a SIP registration */ public String getErrorMessage() { return this.errorMessage; @@ -136,7 +136,7 @@ public boolean hasErrorMessage() { /** * The subscription deactivation flag. The SIP registration is frozen if - * true. + * true */ public Boolean getDeactivated() { return this.deactivated; @@ -177,7 +177,7 @@ public boolean hasPurchaseDate() { private String subscriptionPrice; /** - * The subscription monthly charge. + * The subscription monthly charge */ public String getSubscriptionPrice() { return this.subscriptionPrice; @@ -190,7 +190,8 @@ public boolean hasSubscriptionPrice() { private Boolean isPersistent; /** - * Is SIP registration persistent or on the user logon? + * SIP registration is persistent. Set false to activate it only on the + * user login */ public Boolean getIsPersistent() { return this.isPersistent; @@ -203,7 +204,7 @@ public boolean hasIsPersistent() { private Long userId; /** - * The id of the bound user. + * The id of the bound user */ public Long getUserId() { return this.userId; @@ -216,7 +217,7 @@ public boolean hasUserId() { private String userName; /** - * The name of the bound user. + * The name of the bound user */ public String getUserName() { return this.userName; @@ -229,7 +230,7 @@ public boolean hasUserName() { private Long applicationId; /** - * The id of the bound application. + * The id of the bound application */ public Long getApplicationId() { return this.applicationId; @@ -242,7 +243,7 @@ public boolean hasApplicationId() { private String applicationName; /** - * The name of the bound application. + * The name of the bound application */ public String getApplicationName() { return this.applicationName; @@ -255,7 +256,7 @@ public boolean hasApplicationName() { private Long ruleId; /** - * The id of the bound rule. + * The id of the bound rule */ public Long getRuleId() { return this.ruleId; @@ -268,7 +269,7 @@ public boolean hasRuleId() { private String ruleName; /** - * The name of the bound rule. + * The name of the bound rule */ public String getRuleName() { return this.ruleName; diff --git a/src/main/java/com/voximplant/apiclient/response/SQAgentBindingModes.java b/src/main/java/com/voximplant/apiclient/response/SQAgentBindingModes.java new file mode 100644 index 0000000..0dd4bcb --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQAgentBindingModes.java @@ -0,0 +1,118 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Agent binding mode for the [SQ_BindAgent] function. +*/ +public class SQAgentBindingModes implements Alignable { + + private String addQueues; + + /** + * Add additional queues to the agent + */ + public String getAddQueues() { + return this.addQueues; + } + + public boolean hasAddQueues() { + return this.addQueues != null; + } + + private String replaceAgents; + + /** + * Unbind all the existing agents from the queue and bind new agents + */ + public String getReplaceAgents() { + return this.replaceAgents; + } + + public boolean hasReplaceAgents() { + return this.replaceAgents != null; + } + + private String add; + + /** + * Remove all the queues from the agent and bind new queues + */ + public String getAdd() { + return this.add; + } + + public boolean hasAdd() { + return this.add != null; + } + + private String replace; + + /** + * Unbind all the existing agents and all the existing queues, then bind + * the specified queues to the specified agents + */ + public String getReplace() { + return this.replace; + } + + public boolean hasReplace() { + return this.replace != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (addQueues != null) { + sb.append(aligned) + .append("\"addQueues\": \"") + .append(addQueues) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (replaceAgents != null) { + sb.append(aligned) + .append("\"replaceAgents\": \"") + .append(replaceAgents) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (add != null) { + sb.append(aligned) + .append("\"add\": \"") + .append(add) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (replace != null) { + sb.append(aligned) + .append("\"replace\": \"") + .append(replace) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQAgentSelectionStrategies.java b/src/main/java/com/voximplant/apiclient/response/SQAgentSelectionStrategies.java new file mode 100644 index 0000000..c1f9ae3 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQAgentSelectionStrategies.java @@ -0,0 +1,204 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Agent selection strategies for the [SQ_AddQueue] and +* [SQ_SetQueueInfo] functions. +*/ +public class SQAgentSelectionStrategies implements Alignable { + + private String RANDOM; + + /** + * Random suitable agent + */ + public String getRANDOM() { + return this.RANDOM; + } + + public boolean hasRANDOM() { + return this.RANDOM != null; + } + + private String MOSTQUALIFIED; + + /** + * The most qualified agent + */ + public String getMOSTQUALIFIED() { + return this.MOSTQUALIFIED; + } + + public boolean hasMOSTQUALIFIED() { + return this.MOSTQUALIFIED != null; + } + + private String LEASTQUALIFIED; + + /** + * The least qualified agent + */ + public String getLEASTQUALIFIED() { + return this.LEASTQUALIFIED; + } + + public boolean hasLEASTQUALIFIED() { + return this.LEASTQUALIFIED != null; + } + + private String MINCONTIME; + + /** + * Agent with the lowest ratio of total talk time to total work time + */ + public String getMINCONTIME() { + return this.MINCONTIME; + } + + public boolean hasMINCONTIME() { + return this.MINCONTIME != null; + } + + private String MINCONWORKRATIO; + + /** + * Agent who has been free the longest since the end of the last call + */ + public String getMINCONWORKRATIO() { + return this.MINCONWORKRATIO; + } + + public boolean hasMINCONWORKRATIO() { + return this.MINCONWORKRATIO != null; + } + + private String MAXWAITINGTIME; + + /** + * Agent who has been free the longest since the end of the last call + */ + public String getMAXWAITINGTIME() { + return this.MAXWAITINGTIME; + } + + public boolean hasMAXWAITINGTIME() { + return this.MAXWAITINGTIME != null; + } + + private String MOSTQUALIFIEDMINCONTIME; + + /** + * Agent with the shortest total talk time among all agents with the + * highest skill level + */ + public String getMOSTQUALIFIEDMINCONTIME() { + return this.MOSTQUALIFIEDMINCONTIME; + } + + public boolean hasMOSTQUALIFIEDMINCONTIME() { + return this.MOSTQUALIFIEDMINCONTIME != null; + } + + private String MOSTQUALIFIEDMAXWAITINGTIME; + + /** + * Agent who has been free the longest since the end of the last call + * among all agents with the highest skill level + */ + public String getMOSTQUALIFIEDMAXWAITINGTIME() { + return this.MOSTQUALIFIEDMAXWAITINGTIME; + } + + public boolean hasMOSTQUALIFIEDMAXWAITINGTIME() { + return this.MOSTQUALIFIEDMAXWAITINGTIME != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (RANDOM != null) { + sb.append(aligned) + .append("\"RANDOM\": \"") + .append(RANDOM) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (MOSTQUALIFIED != null) { + sb.append(aligned) + .append("\"MOSTQUALIFIED\": \"") + .append(MOSTQUALIFIED) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (LEASTQUALIFIED != null) { + sb.append(aligned) + .append("\"LEASTQUALIFIED\": \"") + .append(LEASTQUALIFIED) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (MINCONTIME != null) { + sb.append(aligned) + .append("\"MINCONTIME\": \"") + .append(MINCONTIME) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (MINCONWORKRATIO != null) { + sb.append(aligned) + .append("\"MINCONWORKRATIO\": \"") + .append(MINCONWORKRATIO) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (MAXWAITINGTIME != null) { + sb.append(aligned) + .append("\"MAXWAITINGTIME\": \"") + .append(MAXWAITINGTIME) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (MOSTQUALIFIEDMINCONTIME != null) { + sb.append(aligned) + .append("\"MOSTQUALIFIEDMINCONTIME\": \"") + .append(MOSTQUALIFIEDMINCONTIME) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (MOSTQUALIFIEDMAXWAITINGTIME != null) { + sb.append(aligned) + .append("\"MOSTQUALIFIEDMAXWAITINGTIME\": \"") + .append(MOSTQUALIFIEDMAXWAITINGTIME) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQSkillBindingModes.java b/src/main/java/com/voximplant/apiclient/response/SQSkillBindingModes.java new file mode 100644 index 0000000..216cc2c --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQSkillBindingModes.java @@ -0,0 +1,96 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Skill binding mode for the [SQ_BindSkill] function. +*/ +public class SQSkillBindingModes implements Alignable { + + private String add; + + /** + * Add new skills to the agents + */ + public String getAdd() { + return this.add; + } + + public boolean hasAdd() { + return this.add != null; + } + + private String replaceSkills; + + /** + * Replace agent skills with new ones + */ + public String getReplaceSkills() { + return this.replaceSkills; + } + + public boolean hasReplaceSkills() { + return this.replaceSkills != null; + } + + private String replaceAgents; + + /** + * Replace agents with new ones + */ + public String getReplaceAgents() { + return this.replaceAgents; + } + + public boolean hasReplaceAgents() { + return this.replaceAgents != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (add != null) { + sb.append(aligned) + .append("\"add\": \"") + .append(add) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (replaceSkills != null) { + sb.append(aligned) + .append("\"replaceSkills\": \"") + .append(replaceSkills) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (replaceAgents != null) { + sb.append(aligned) + .append("\"replaceAgents\": \"") + .append(replaceAgents) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQTaskSelectionStrategies.java b/src/main/java/com/voximplant/apiclient/response/SQTaskSelectionStrategies.java new file mode 100644 index 0000000..e3c3187 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQTaskSelectionStrategies.java @@ -0,0 +1,78 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Task selection strategies for the [SQ_AddQueue] and [SQ_SetQueueInfo] +* functions. +*/ +public class SQTaskSelectionStrategies implements Alignable { + + private String MAXPRIORITY; + + /** + * Calls or messages with the highest priority are the first to + * distribute to agents + */ + public String getMAXPRIORITY() { + return this.MAXPRIORITY; + } + + public boolean hasMAXPRIORITY() { + return this.MAXPRIORITY != null; + } + + private String MAXWAITINGTIME; + + /** + * Calls or messages with the longest waiting time are the first to + * distribute to agents + */ + public String getMAXWAITINGTIME() { + return this.MAXWAITINGTIME; + } + + public boolean hasMAXWAITINGTIME() { + return this.MAXWAITINGTIME != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (MAXPRIORITY != null) { + sb.append(aligned) + .append("\"MAXPRIORITY\": \"") + .append(MAXPRIORITY) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (MAXWAITINGTIME != null) { + sb.append(aligned) + .append("\"MAXWAITINGTIME\": \"") + .append(MAXWAITINGTIME) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_AddQueueResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_AddQueueResponse.java new file mode 100644 index 0000000..870fe25 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_AddQueueResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_AddQueueResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long sqQueueId; + + /** + * ID of the added queue + */ + public Long getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_AddSkillResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_AddSkillResponse.java new file mode 100644 index 0000000..8a40649 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_AddSkillResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_AddSkillResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_BindAgentResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_BindAgentResponse.java new file mode 100644 index 0000000..c17fe5a --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_BindAgentResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_BindAgentResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_BindSkillResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_BindSkillResponse.java new file mode 100644 index 0000000..5229478 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_BindSkillResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_BindSkillResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_DelQueueResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_DelQueueResponse.java new file mode 100644 index 0000000..1668b34 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_DelQueueResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_DelQueueResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_DelSkillResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_DelSkillResponse.java new file mode 100644 index 0000000..25f50e7 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_DelSkillResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_DelSkillResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_DeleteAgentCustomStatusMappingResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_DeleteAgentCustomStatusMappingResponse.java new file mode 100644 index 0000000..4d5ab0c --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_DeleteAgentCustomStatusMappingResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_DeleteAgentCustomStatusMappingResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_GetAgentCustomStatusMappingResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_GetAgentCustomStatusMappingResponse.java new file mode 100644 index 0000000..b013e4d --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_GetAgentCustomStatusMappingResponse.java @@ -0,0 +1,81 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_GetAgentCustomStatusMappingResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private String sqStatusName; + + /** + * Status name + */ + public String getSqStatusName() { + return this.sqStatusName; + } + + public boolean hasSqStatusName() { + return this.sqStatusName != null; + } + + private String customStatusName; + + /** + * Custom status name + */ + public String getCustomStatusName() { + return this.customStatusName; + } + + public boolean hasCustomStatusName() { + return this.customStatusName != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqStatusName != null) { + sb.append(aligned) + .append("\"sqStatusName\": \"") + .append(sqStatusName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (customStatusName != null) { + sb.append(aligned) + .append("\"customStatusName\": \"") + .append(customStatusName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_GetAgentsResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_GetAgentsResponse.java new file mode 100644 index 0000000..56444e5 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_GetAgentsResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_GetAgentsResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private GetSQAgentsResult result; + + /** + * The found agent(s) + */ + public GetSQAgentsResult getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_GetQueuesResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_GetQueuesResponse.java new file mode 100644 index 0000000..a8d55b1 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_GetQueuesResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_GetQueuesResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private GetSQQueuesResult result; + + /** + * The found queue(s) + */ + public GetSQQueuesResult getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_GetSkillsResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_GetSkillsResponse.java new file mode 100644 index 0000000..656223c --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_GetSkillsResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_GetSkillsResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private GetSQSkillsResult result; + + /** + * The found skill(s). + */ + public GetSQSkillsResult getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_SetAgentCustomStatusMappingResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_SetAgentCustomStatusMappingResponse.java new file mode 100644 index 0000000..154f087 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_SetAgentCustomStatusMappingResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_SetAgentCustomStatusMappingResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_SetAgentInfoResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_SetAgentInfoResponse.java new file mode 100644 index 0000000..db72268 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_SetAgentInfoResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_SetAgentInfoResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_SetQueueInfoResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_SetQueueInfoResponse.java new file mode 100644 index 0000000..bb1a422 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_SetQueueInfoResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_SetQueueInfoResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_SetSkillInfoResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_SetSkillInfoResponse.java new file mode 100644 index 0000000..c8feb12 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_SetSkillInfoResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_SetSkillInfoResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_UnbindAgentResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_UnbindAgentResponse.java new file mode 100644 index 0000000..581bfdb --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_UnbindAgentResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_UnbindAgentResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SQ_UnbindSkillResponse.java b/src/main/java/com/voximplant/apiclient/response/SQ_UnbindSkillResponse.java new file mode 100644 index 0000000..e0b748a --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SQ_UnbindSkillResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SQ_UnbindSkillResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ScenarioInfoType.java b/src/main/java/com/voximplant/apiclient/response/ScenarioInfoType.java index c6e0859..d3945a1 100644 --- a/src/main/java/com/voximplant/apiclient/response/ScenarioInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ScenarioInfoType.java @@ -18,7 +18,7 @@ public class ScenarioInfoType implements Alignable { private Long scenarioId; /** - * The scenario ID. + * The scenario ID */ public Long getScenarioId() { return this.scenarioId; @@ -31,7 +31,7 @@ public boolean hasScenarioId() { private String scenarioName; /** - * The scenario name. + * The scenario name */ public String getScenarioName() { return this.scenarioName; @@ -44,7 +44,7 @@ public boolean hasScenarioName() { private String scenarioScript; /** - * The scenario text. + * The scenario text */ public String getScenarioScript() { return this.scenarioScript; @@ -72,7 +72,7 @@ public boolean hasModified() { /** * 'True' if the scenario belongs to the parent account, 'false' if the - * scenario belongs to the current account. + * scenario belongs to the current account */ public Boolean getParent() { return this.parent; diff --git a/src/main/java/com/voximplant/apiclient/response/SendSmsMessageResponse.java b/src/main/java/com/voximplant/apiclient/response/SendSmsMessageResponse.java index a9b783b..47bf1fe 100644 --- a/src/main/java/com/voximplant/apiclient/response/SendSmsMessageResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/SendSmsMessageResponse.java @@ -31,10 +31,23 @@ public boolean hasResult() { return this.result != null; } + private Long messageId; + + /** + * Message ID + */ + public Long getMessageId() { + return this.messageId; + } + + public boolean hasMessageId() { + return this.messageId != null; + } + private Long fragmentsCount; /** - * The number of fragments the message was divided into. + * The number of fragments the message was divided into */ public Long getFragmentsCount() { return this.fragmentsCount; @@ -61,6 +74,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (messageId != null) { + sb.append(aligned) + .append("\"messageId\": \"") + .append(messageId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (fragmentsCount != null) { sb.append(aligned) .append("\"fragmentsCount\": \"") diff --git a/src/main/java/com/voximplant/apiclient/response/SetApplicationInfoResponse.java b/src/main/java/com/voximplant/apiclient/response/SetApplicationInfoResponse.java index 4ead840..8d4b22b 100644 --- a/src/main/java/com/voximplant/apiclient/response/SetApplicationInfoResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/SetApplicationInfoResponse.java @@ -51,7 +51,7 @@ public boolean hasApplicationName() { /** * This flag indicates whether a secure storage for logs and records is - * enabled or not. + * enabled or not */ public Boolean getSecureRecordStorage() { return this.secureRecordStorage; diff --git a/src/main/java/com/voximplant/apiclient/response/SetKeyValueItemResponse.java b/src/main/java/com/voximplant/apiclient/response/SetKeyValueItemResponse.java new file mode 100644 index 0000000..61c676b --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SetKeyValueItemResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SetKeyValueItemResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private KeyValueItems result; + + /** + * The key-value item + */ + public KeyValueItems getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SetPhoneNumberInfoResponse.java b/src/main/java/com/voximplant/apiclient/response/SetPhoneNumberInfoResponse.java new file mode 100644 index 0000000..4d44eb9 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SetPhoneNumberInfoResponse.java @@ -0,0 +1,60 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class SetPhoneNumberInfoResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long result; + + /** + * 1 + */ + public Long getResult() { + return this.result; + } + + public boolean hasResult() { + return this.result != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (result != null) { + sb.append(aligned) + .append("\"result\": \"") + .append(result) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/ShortAccountInfoType.java b/src/main/java/com/voximplant/apiclient/response/ShortAccountInfoType.java index 119f9d7..ad39ce0 100644 --- a/src/main/java/com/voximplant/apiclient/response/ShortAccountInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/ShortAccountInfoType.java @@ -18,7 +18,7 @@ public class ShortAccountInfoType implements Alignable { private Long accountId; /** - * The account's ID. + * The account's ID */ public Long getAccountId() { return this.accountId; @@ -31,7 +31,7 @@ public boolean hasAccountId() { private Boolean frozen; /** - * Is account blocked by Voximplant admins or not. + * Is account blocked by Voximplant admins or not */ public Boolean getFrozen() { return this.frozen; @@ -44,7 +44,7 @@ public boolean hasFrozen() { private BigDecimal balance; /** - * The account's money. + * The account's money */ public BigDecimal getBalance() { return this.balance; @@ -57,7 +57,7 @@ public boolean hasBalance() { private String currency; /** - * The currency code (USD, RUR, EUR, ...). + * The currency code (USD, RUR, EUR, ...) */ public String getCurrency() { return this.currency; diff --git a/src/main/java/com/voximplant/apiclient/response/SipWhiteListInfoType.java b/src/main/java/com/voximplant/apiclient/response/SipWhiteListInfoType.java index 90012b1..193bcbb 100644 --- a/src/main/java/com/voximplant/apiclient/response/SipWhiteListInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/SipWhiteListInfoType.java @@ -18,7 +18,7 @@ public class SipWhiteListInfoType implements Alignable { private Long sipWhitelistId; /** - * The SIP white list item ID. + * The SIP white list item ID */ public Long getSipWhitelistId() { return this.sipWhitelistId; @@ -41,6 +41,19 @@ public boolean hasSipWhitelistNetwork() { return this.sipWhitelistNetwork != null; } + private String description; + + /** + * The network address description + */ + public String getDescription() { + return this.description; + } + + public boolean hasDescription() { + return this.description != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -66,6 +79,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (description != null) { + sb.append(aligned) + .append("\"description\": \"") + .append(description) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/SkillInfoType.java b/src/main/java/com/voximplant/apiclient/response/SkillInfoType.java index 5f1c85b..be9c800 100644 --- a/src/main/java/com/voximplant/apiclient/response/SkillInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/SkillInfoType.java @@ -18,7 +18,7 @@ public class SkillInfoType implements Alignable { private Long skillId; /** - * The skill ID. + * The skill ID */ public Long getSkillId() { return this.skillId; @@ -31,7 +31,7 @@ public boolean hasSkillId() { private String skillName; /** - * The skill name. + * The skill name */ public String getSkillName() { return this.skillName; diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueAgent_Skill.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueAgent_Skill.java new file mode 100644 index 0000000..7e6d5de --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueAgent_Skill.java @@ -0,0 +1,96 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Agent skill info. +*/ +public class SmartQueueAgent_Skill implements Alignable { + + private Long sqSkillId; + + /** + * The agent skill ID + */ + public Long getSqSkillId() { + return this.sqSkillId; + } + + public boolean hasSqSkillId() { + return this.sqSkillId != null; + } + + private String sqSkillName; + + /** + * The agent skill name + */ + public String getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + private Long sqSkillLevel; + + /** + * The agent skill level + */ + public Long getSqSkillLevel() { + return this.sqSkillLevel; + } + + public boolean hasSqSkillLevel() { + return this.sqSkillLevel != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqSkillId != null) { + sb.append(aligned) + .append("\"sqSkillId\": \"") + .append(sqSkillId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillLevel != null) { + sb.append(aligned) + .append("\"sqSkillLevel\": \"") + .append(sqSkillLevel) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroups.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroups.java index d49e6bb..2046983 100644 --- a/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroups.java +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroups.java @@ -18,7 +18,7 @@ public class SmartQueueMetricsGroups implements Alignable { private Long sqQueueId; /** - * The smart queue ID. + * The smart queue ID */ public Long getSqQueueId() { return this.sqQueueId; @@ -31,7 +31,7 @@ public boolean hasSqQueueId() { private String sqQueueName; /** - * The smart queue name. + * The smart queue name */ public String getSqQueueName() { return this.sqQueueName; @@ -44,7 +44,7 @@ public boolean hasSqQueueName() { private Long userId; /** - * The user ID. + * The user ID */ public Long getUserId() { return this.userId; @@ -57,7 +57,7 @@ public boolean hasUserId() { private String userName; /** - * The user name. + * The user name */ public String getUserName() { return this.userName; @@ -70,7 +70,7 @@ public boolean hasUserName() { private String userDisplayName; /** - * The user display name. + * The user display name */ public String getUserDisplayName() { return this.userDisplayName; @@ -83,7 +83,7 @@ public boolean hasUserDisplayName() { private SmartQueueMetricsGroupsValues[] values; /** - * The group values. + * The group values */ public SmartQueueMetricsGroupsValues[] getValues() { return this.values; diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroupsValues.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroupsValues.java index 166b59c..8f0fdf1 100644 --- a/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroupsValues.java +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsGroupsValues.java @@ -19,7 +19,7 @@ public class SmartQueueMetricsGroupsValues implements Alignable { private Date fromDate; /** - * The start of the period. + * The start of the period */ public Date getFromDate() { return this.fromDate; @@ -33,7 +33,7 @@ public boolean hasFromDate() { private Date toDate; /** - * The end of the period. + * The end of the period */ public Date getToDate() { return this.toDate; @@ -46,7 +46,7 @@ public boolean hasToDate() { private Long value; /** - * The report value. + * The report value */ public Long getValue() { return this.value; diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsResult.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsResult.java index 5744153..047b089 100644 --- a/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsResult.java +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueMetricsResult.java @@ -18,7 +18,18 @@ public class SmartQueueMetricsResult implements Alignable { private String reportType; /** - * The report type(s). + * The report type(s). Possible values are calls_blocked_percentage, + * count_blocked_calls, average_abandonment_rate, + * count_abandonment_calls, service_level, occupancy_rate, + * sum_agents_online_time, sum_agents_ready_time, + * sum_agents_dialing_time, sum_agents_in_service_time, + * sum_agents_afterservice_time, sum_agents_dnd_time, + * sum_agents_banned_time, min_time_in_queue,max_time_in_queue, + * average_time_in_queue, min_answer_speed, max_answer_speed, + * average_answer_speed, min_handle_time, max_handle_time, + * average_handle_time, count_handled_calls, min_after_call_worktime, + * max_after_call_worktime, average_after_call_worktime, + * sum_agents_custom_1_time ... sum_agents_custom_10_time */ public String getReportType() { return this.reportType; @@ -31,7 +42,7 @@ public boolean hasReportType() { private SmartQueueMetricsGroups[] groups; /** - * Grouping by **agent** or **queue**. + * Grouping by agent or queue */ public SmartQueueMetricsGroups[] getGroups() { return this.groups; diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueState.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueState.java new file mode 100644 index 0000000..b5f525a --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueState.java @@ -0,0 +1,113 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The [GetSQState] function result. +*/ +public class SmartQueueState implements Alignable { + + private Long sqQueueId; + + /** + * The smart queue ID + */ + public Long getSqQueueId() { + return this.sqQueueId; + } + + public boolean hasSqQueueId() { + return this.sqQueueId != null; + } + + private String sqQueueName; + + /** + * The smart queue name + */ + public String getSqQueueName() { + return this.sqQueueName; + } + + public boolean hasSqQueueName() { + return this.sqQueueName != null; + } + + private SmartQueueState_Agent[] sqAgents; + + /** + * The list of logged-in agents with their skills and statuses + */ + public SmartQueueState_Agent[] getSqAgents() { + return this.sqAgents; + } + + public boolean hasSqAgents() { + return this.sqAgents != null; + } + + private SmartQueueState_Task[] tasks; + + /** + * The list of tasks + */ + public SmartQueueState_Task[] getTasks() { + return this.tasks; + } + + public boolean hasTasks() { + return this.tasks != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqQueueId != null) { + sb.append(aligned) + .append("\"sqQueueId\": \"") + .append(sqQueueId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqQueueName != null) { + sb.append(aligned) + .append("\"sqQueueName\": \"") + .append(sqQueueName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqAgents != null) { + sb.append(aligned) + .append("\"SmartQueueState_Agent\": ") + .append(StringHelper.arrayToString(sqAgents, alignment + 1)) + .append(System.lineSeparator()); + } + if (tasks != null) { + sb.append(aligned) + .append("\"SmartQueueState_Task\": ") + .append(StringHelper.arrayToString(tasks, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent.java new file mode 100644 index 0000000..d92562b --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent.java @@ -0,0 +1,134 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* SmartQueueState.sq_agents item. +*/ +public class SmartQueueState_Agent implements Alignable { + + private Long userId; + + /** + * The user ID + */ + public Long getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + private String userName; + + /** + * The user name + */ + public String getUserName() { + return this.userName; + } + + public boolean hasUserName() { + return this.userName != null; + } + + private String userDisplayName; + + /** + * The display user name + */ + public String getUserDisplayName() { + return this.userDisplayName; + } + + public boolean hasUserDisplayName() { + return this.userDisplayName != null; + } + + private SmartQueueAgent_Skill[] sqSkills; + + /** + * Agent skills + */ + public SmartQueueAgent_Skill[] getSqSkills() { + return this.sqSkills; + } + + public boolean hasSqSkills() { + return this.sqSkills != null; + } + + private SmartQueueState_Agent_Status[] sqStatuses; + + /** + * Agent statuses info + */ + public SmartQueueState_Agent_Status[] getSqStatuses() { + return this.sqStatuses; + } + + public boolean hasSqStatuses() { + return this.sqStatuses != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userName != null) { + sb.append(aligned) + .append("\"userName\": \"") + .append(userName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userDisplayName != null) { + sb.append(aligned) + .append("\"userDisplayName\": \"") + .append(userDisplayName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkills != null) { + sb.append(aligned) + .append("\"SmartQueueAgent_Skill\": ") + .append(StringHelper.arrayToString(sqSkills, alignment + 1)) + .append(System.lineSeparator()); + } + if (sqStatuses != null) { + sb.append(aligned) + .append("\"SmartQueueState_Agent_Status\": ") + .append(StringHelper.arrayToString(sqStatuses, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status.java new file mode 100644 index 0000000..fe93493 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status.java @@ -0,0 +1,77 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The current operator's status. Refer to this +* guide to read more about SmartQueue operator statuses +*/ +public class SmartQueueState_Agent_Status implements Alignable { + + private SmartQueueState_Agent_Status_Type IM; + + /** + * The IM status info + */ + public SmartQueueState_Agent_Status_Type getIM() { + return this.IM; + } + + public boolean hasIM() { + return this.IM != null; + } + + private SmartQueueState_Agent_Status_Type CALL; + + /** + * The CALL status info + */ + public SmartQueueState_Agent_Status_Type getCALL() { + return this.CALL; + } + + public boolean hasCALL() { + return this.CALL != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (IM != null) { + sb.append(aligned) + .append("\"IM\": \"") + .append(IM) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (CALL != null) { + sb.append(aligned) + .append("\"CALL\": \"") + .append(CALL) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status_Type.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status_Type.java new file mode 100644 index 0000000..1cf53dc --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Agent_Status_Type.java @@ -0,0 +1,78 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* The current operator's status type. Refer to this +* guide to read more about SmartQueue operator statuses +*/ +public class SmartQueueState_Agent_Status_Type implements Alignable { + + private String sqStatusName; + + /** + * The status name + */ + public String getSqStatusName() { + return this.sqStatusName; + } + + public boolean hasSqStatusName() { + return this.sqStatusName != null; + } + + @JsonDeserialize(using=com.voximplant.apiclient.util.TimestampDeserializer.class) + private Date fromDate; + + /** + * Time in 24-h format: YYYY-MM-DD HH:mm:ss + */ + public Date getFromDate() { + return this.fromDate; + } + + public boolean hasFromDate() { + return this.fromDate != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqStatusName != null) { + sb.append(aligned) + .append("\"sqStatusName\": \"") + .append(sqStatusName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (fromDate != null) { + sb.append(aligned) + .append("\"fromDate\": \"") + .append(fromDate) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Task.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Task.java new file mode 100644 index 0000000..4e55950 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueState_Task.java @@ -0,0 +1,179 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* SmartQueueState.tasks item. +*/ +public class SmartQueueState_Task implements Alignable { + + private String taskType; + + /** + * The task type. Possible values are CALL, IM + */ + public String getTaskType() { + return this.taskType; + } + + public boolean hasTaskType() { + return this.taskType != null; + } + + private String status; + + /** + * The task status. Possible values are IN_QUEUE, DISTRIBUTED, + * IN_PROCESSING + */ + public String getStatus() { + return this.status; + } + + public boolean hasStatus() { + return this.status != null; + } + + private Long userId; + + /** + * Selected agent + */ + public Long getUserId() { + return this.userId; + } + + public boolean hasUserId() { + return this.userId != null; + } + + private SmartQueueTask_Skill[] sqSkills; + + /** + * Task skills + */ + public SmartQueueTask_Skill[] getSqSkills() { + return this.sqSkills; + } + + public boolean hasSqSkills() { + return this.sqSkills != null; + } + + private Long waitingTime; + + /** + * Waiting time in ms + */ + public Long getWaitingTime() { + return this.waitingTime; + } + + public boolean hasWaitingTime() { + return this.waitingTime != null; + } + + private Long processingTime; + + /** + * Processing time in ms + */ + public Long getProcessingTime() { + return this.processingTime; + } + + public boolean hasProcessingTime() { + return this.processingTime != null; + } + + private Object customData; + + /** + * Custom data + */ + public Object getCustomData() { + return this.customData; + } + + public boolean hasCustomData() { + return this.customData != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (taskType != null) { + sb.append(aligned) + .append("\"taskType\": \"") + .append(taskType) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (status != null) { + sb.append(aligned) + .append("\"status\": \"") + .append(status) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (userId != null) { + sb.append(aligned) + .append("\"userId\": \"") + .append(userId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkills != null) { + sb.append(aligned) + .append("\"SmartQueueTask_Skill\": ") + .append(StringHelper.arrayToString(sqSkills, alignment + 1)) + .append(System.lineSeparator()); + } + if (waitingTime != null) { + sb.append(aligned) + .append("\"waitingTime\": \"") + .append(waitingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (processingTime != null) { + sb.append(aligned) + .append("\"processingTime\": \"") + .append(processingTime) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (customData != null) { + sb.append(aligned) + .append("\"customData\": \"") + .append(customData) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SmartQueueTask_Skill.java b/src/main/java/com/voximplant/apiclient/response/SmartQueueTask_Skill.java new file mode 100644 index 0000000..d60e03b --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SmartQueueTask_Skill.java @@ -0,0 +1,75 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Task skill info. +*/ +public class SmartQueueTask_Skill implements Alignable { + + private String sqSkillName; + + /** + * The skill name + */ + public String getSqSkillName() { + return this.sqSkillName; + } + + public boolean hasSqSkillName() { + return this.sqSkillName != null; + } + + private Long sqSkillLevel; + + /** + * The skill level + */ + public Long getSqSkillLevel() { + return this.sqSkillLevel; + } + + public boolean hasSqSkillLevel() { + return this.sqSkillLevel != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sqSkillName != null) { + sb.append(aligned) + .append("\"sqSkillName\": \"") + .append(sqSkillName) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (sqSkillLevel != null) { + sb.append(aligned) + .append("\"sqSkillLevel\": \"") + .append(sqSkillLevel) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SmsHistoryType.java b/src/main/java/com/voximplant/apiclient/response/SmsHistoryType.java index ba6047b..4c60cf2 100644 --- a/src/main/java/com/voximplant/apiclient/response/SmsHistoryType.java +++ b/src/main/java/com/voximplant/apiclient/response/SmsHistoryType.java @@ -15,23 +15,23 @@ */ public class SmsHistoryType implements Alignable { - private Long smsId; + private Long messageId; /** - * Id of the message. + * Message ID */ - public Long getSmsId() { - return this.smsId; + public Long getMessageId() { + return this.messageId; } - public boolean hasSmsId() { - return this.smsId != null; + public boolean hasMessageId() { + return this.messageId != null; } private Long sourceNumber; /** - * Number being called from. + * Number being called from */ public Long getSourceNumber() { return this.sourceNumber; @@ -44,7 +44,7 @@ public boolean hasSourceNumber() { private Long destinationNumber; /** - * Number being called to. + * Number being called to */ public Long getDestinationNumber() { return this.destinationNumber; @@ -57,7 +57,7 @@ public boolean hasDestinationNumber() { private String direction; /** - * Incoming or outgoing message. + * Incoming or outgoing message */ public String getDirection() { return this.direction; @@ -70,7 +70,7 @@ public boolean hasDirection() { private Long fragments; /** - * Number of fragments the initial message was divided into. + * Number of fragments the initial message was divided into */ public Long getFragments() { return this.fragments; @@ -83,7 +83,7 @@ public boolean hasFragments() { private BigDecimal cost; /** - * Cost of the message. + * Cost of the message */ public BigDecimal getCost() { return this.cost; @@ -93,12 +93,12 @@ public boolean hasCost() { return this.cost != null; } - private Long statusId; + private String statusId; /** - * Status of the message. 1 - Success, 2 - Error. + * Status of the message. 1 - Success, 2 - Error */ - public Long getStatusId() { + public String getStatusId() { return this.statusId; } @@ -109,7 +109,7 @@ public boolean hasStatusId() { private String errorMessage; /** - * Error message if any. + * Error message (if any) */ public String getErrorMessage() { return this.errorMessage; @@ -136,7 +136,7 @@ public boolean hasProcessedDate() { private Long transactionId; /** - * Id of the transaction for this message. + * Id of the transaction for this message */ public Long getTransactionId() { return this.transactionId; @@ -146,6 +146,19 @@ public boolean hasTransactionId() { return this.transactionId != null; } + private String text; + + /** + * Stored message text + */ + public String getText() { + return this.text; + } + + public boolean hasText() { + return this.text != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -155,10 +168,10 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (smsId != null) { + if (messageId != null) { sb.append(aligned) - .append("\"smsId\": \"") - .append(smsId) + .append("\"messageId\": \"") + .append(messageId) .append('"') .append(',') .append(System.lineSeparator()); @@ -235,6 +248,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (text != null) { + sb.append(aligned) + .append("\"text\": \"") + .append(text) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/SmsTransaction.java b/src/main/java/com/voximplant/apiclient/response/SmsTransaction.java index a00b15d..42ab721 100644 --- a/src/main/java/com/voximplant/apiclient/response/SmsTransaction.java +++ b/src/main/java/com/voximplant/apiclient/response/SmsTransaction.java @@ -15,23 +15,23 @@ */ public class SmsTransaction implements Alignable { - private Long transactionId; + private Long messageId; /** - * The transaction ID. + * Message ID */ - public Long getTransactionId() { - return this.transactionId; + public Long getMessageId() { + return this.messageId; } - public boolean hasTransactionId() { - return this.transactionId != null; + public boolean hasMessageId() { + return this.messageId != null; } private String destinationNumber; /** - * The SMS destination number. + * The SMS destination number */ public String getDestinationNumber() { return this.destinationNumber; @@ -50,10 +50,10 @@ public String toString(int alignment) { .append(preAligned) .append('{') .append(System.lineSeparator()); - if (transactionId != null) { + if (messageId != null) { sb.append(aligned) - .append("\"transactionId\": \"") - .append(transactionId) + .append("\"messageId\": \"") + .append(messageId) .append('"') .append(',') .append(System.lineSeparator()); diff --git a/src/main/java/com/voximplant/apiclient/response/StagnantAccountCallback.java b/src/main/java/com/voximplant/apiclient/response/StagnantAccountCallback.java index a33d277..a630704 100644 --- a/src/main/java/com/voximplant/apiclient/response/StagnantAccountCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/StagnantAccountCallback.java @@ -11,8 +11,8 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when there are no actions in accounts after their creation. +* Received as part of the [AccountCallback] structure. */ public class StagnantAccountCallback implements Alignable { diff --git a/src/main/java/com/voximplant/apiclient/response/StartConferenceResponse.java b/src/main/java/com/voximplant/apiclient/response/StartConferenceResponse.java index 0eb6abd..14856d1 100644 --- a/src/main/java/com/voximplant/apiclient/response/StartConferenceResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/StartConferenceResponse.java @@ -40,9 +40,9 @@ public boolean hasResult() { * The URL to control a created media session. It can be used for * arbitrary tasks such as stopping scenario or passing additional data * to it. Making HTTP request on this URL will result in the - * [AppEvents.HttpRequest](https://voximplant.com/docs/references/voxengine/appevents#httprequest) + * [AppEvents.HttpRequest](/docs/references/voxengine/appevents#httprequest) * VoxEngine event being triggered for a scenario, with an HTTP request - * data passed to it. + * data passed to it */ public String getMediaSessionAccessUrl() { return this.mediaSessionAccessUrl; @@ -58,9 +58,9 @@ public boolean hasMediaSessionAccessUrl() { * The URL to control a created media session. It can be used for * arbitrary tasks such as stopping scenario or passing additional data * to it. Making HTTPS request on this URL will result in the - * [AppEvents.HttpRequest](https://voximplant.com/docs/references/voxengine/appevents#httprequest) + * [AppEvents.HttpRequest](/docs/references/voxengine/appevents#httprequest) * VoxEngine event being triggered for a scenario, with an HTTP request - * data passed to it. + * data passed to it */ public String getMediaSessionAccessSecureUrl() { return this.mediaSessionAccessSecureUrl; @@ -70,6 +70,22 @@ public boolean hasMediaSessionAccessSecureUrl() { return this.mediaSessionAccessSecureUrl != null; } + private Long callSessionHistoryId; + + /** + * The call session history ID. To search a call session result, paste + * the ID to the GetCallHistory + * method's call_session_history_id parameter + */ + public Long getCallSessionHistoryId() { + return this.callSessionHistoryId; + } + + public boolean hasCallSessionHistoryId() { + return this.callSessionHistoryId != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -103,6 +119,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (callSessionHistoryId != null) { + sb.append(aligned) + .append("\"callSessionHistoryId\": \"") + .append(callSessionHistoryId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/StartNextCallTaskResponse.java b/src/main/java/com/voximplant/apiclient/response/StartNextCallTaskResponse.java index 6db29c3..f97022e 100644 --- a/src/main/java/com/voximplant/apiclient/response/StartNextCallTaskResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/StartNextCallTaskResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private Long listId; /** - * The list id. + * The list id */ public Long getListId() { return this.listId; diff --git a/src/main/java/com/voximplant/apiclient/response/StartScenariosResponse.java b/src/main/java/com/voximplant/apiclient/response/StartScenariosResponse.java index 55c973d..428d19d 100644 --- a/src/main/java/com/voximplant/apiclient/response/StartScenariosResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/StartScenariosResponse.java @@ -37,12 +37,12 @@ public boolean hasResult() { private String mediaSessionAccessUrl; /** - * The URL to control a created media session. It can be used for + * The URL to control a created media session. You can use it for * arbitrary tasks such as stopping scenario or passing additional data * to it. Making HTTP request on this URL will result in the - * [AppEvents.HttpRequest](https://voximplant.com/docs/references/voxengine/appevents#httprequest) + * [AppEvents.HttpRequest](/docs/references/voxengine/appevents#httprequest) * VoxEngine event being triggered for scenario, with HTTP request data - * passed to it. + * passed to it */ public String getMediaSessionAccessUrl() { return this.mediaSessionAccessUrl; @@ -55,12 +55,12 @@ public boolean hasMediaSessionAccessUrl() { private String mediaSessionAccessSecureUrl; /** - * The URL to control a created media session. It can be used for + * The URL to control a created media session. You can use it for * arbitrary tasks such as stopping scenario or passing additional data * to it. Making HTTPS request on this URL will result in the - * [AppEvents.HttpRequest](https://voximplant.com/docs/references/voxengine/appevents#httprequest) + * [AppEvents.HttpRequest](/docs/references/voxengine/appevents#httprequest) * VoxEngine event being triggered for scenario, with HTTP request data - * passed to it. + * passed to it */ public String getMediaSessionAccessSecureUrl() { return this.mediaSessionAccessSecureUrl; @@ -83,6 +83,22 @@ public boolean hasMediaSessionCheckUrl() { return this.mediaSessionCheckUrl != null; } + private Long callSessionHistoryId; + + /** + * The call session history ID. To search a call session result, paste + * the ID to the GetCallHistory + * method's call_session_history_id parameter + */ + public Long getCallSessionHistoryId() { + return this.callSessionHistoryId; + } + + public boolean hasCallSessionHistoryId() { + return this.callSessionHistoryId != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -124,6 +140,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (callSessionHistoryId != null) { + sb.append(aligned) + .append("\"callSessionHistoryId\": \"") + .append(callSessionHistoryId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/StopCallListProcessingResponse.java b/src/main/java/com/voximplant/apiclient/response/StopCallListProcessingResponse.java index c50b18c..e1c881b 100644 --- a/src/main/java/com/voximplant/apiclient/response/StopCallListProcessingResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/StopCallListProcessingResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private String msg; /** - * Result message. + * Result message */ public String getMsg() { return this.msg; diff --git a/src/main/java/com/voximplant/apiclient/response/SubUserID.java b/src/main/java/com/voximplant/apiclient/response/SubUserID.java index ce4d3b9..ddcd2e1 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubUserID.java +++ b/src/main/java/com/voximplant/apiclient/response/SubUserID.java @@ -18,7 +18,7 @@ public class SubUserID implements Alignable { private Long subuserId; /** - * The subuser ID. + * The subuser ID */ public Long getSubuserId() { return this.subuserId; diff --git a/src/main/java/com/voximplant/apiclient/response/SubUserView.java b/src/main/java/com/voximplant/apiclient/response/SubUserView.java index 925145a..2856c38 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubUserView.java +++ b/src/main/java/com/voximplant/apiclient/response/SubUserView.java @@ -18,7 +18,7 @@ public class SubUserView implements Alignable { private Long subuserId; /** - * The subuser ID. + * The subuser ID */ public Long getSubuserId() { return this.subuserId; @@ -32,7 +32,7 @@ public boolean hasSubuserId() { /** * The subuser name, can be used as __subuser_login__ to authenticate. + * href='/docs/guides/managementapi/authorization'>authenticate */ public String getSubuserName() { return this.subuserName; @@ -45,7 +45,7 @@ public boolean hasSubuserName() { private String description; /** - * The subuser description. + * The subuser description */ public String getDescription() { return this.description; @@ -58,7 +58,7 @@ public boolean hasDescription() { private RoleView[] roles; /** - * The subuser roles. + * The subuser roles */ public RoleView[] getRoles() { return this.roles; diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetails.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetails.java new file mode 100644 index 0000000..33b20ad --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetails.java @@ -0,0 +1,96 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Information about the phone numbers or sip registrations that the +* subscription is attached to. +*/ +public class SubscriptionCallbackDetails implements Alignable { + + private String type; + + /** + * Type that the subscription is attached to. Possible values are PHONE + * and SIP_REGISTRATION + */ + public String getType() { + return this.type; + } + + public boolean hasType() { + return this.type != null; + } + + private SubscriptionCallbackDetailsPhoneNumbers[] phoneNumbers; + + /** + * Object containing the subscription's phone numbers and their ids if + * type = PHONE + */ + public SubscriptionCallbackDetailsPhoneNumbers[] getPhoneNumbers() { + return this.phoneNumbers; + } + + public boolean hasPhoneNumbers() { + return this.phoneNumbers != null; + } + + private SubscriptionCallbackDetailsSipRegistrations[] sipRegistrations; + + /** + * Object containing the subscription's sip registrations ids if type = + * SIP_REGISTRATION + */ + public SubscriptionCallbackDetailsSipRegistrations[] getSipRegistrations() { + return this.sipRegistrations; + } + + public boolean hasSipRegistrations() { + return this.sipRegistrations != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (type != null) { + sb.append(aligned) + .append("\"type\": \"") + .append(type) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (phoneNumbers != null) { + sb.append(aligned) + .append("\"SubscriptionCallbackDetailsPhoneNumbers\": ") + .append(StringHelper.arrayToString(phoneNumbers, alignment + 1)) + .append(System.lineSeparator()); + } + if (sipRegistrations != null) { + sb.append(aligned) + .append("\"SubscriptionCallbackDetailsSipRegistrations\": ") + .append(StringHelper.arrayToString(sipRegistrations, alignment + 1)) + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsPhoneNumbers.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsPhoneNumbers.java new file mode 100644 index 0000000..adf38d1 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsPhoneNumbers.java @@ -0,0 +1,75 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Information about the subscription's phone numbers. +*/ +public class SubscriptionCallbackDetailsPhoneNumbers implements Alignable { + + private Long phoneId; + + /** + * Phone number id + */ + public Long getPhoneId() { + return this.phoneId; + } + + public boolean hasPhoneId() { + return this.phoneId != null; + } + + private String phoneNumber; + + /** + * Phone number + */ + public String getPhoneNumber() { + return this.phoneNumber; + } + + public boolean hasPhoneNumber() { + return this.phoneNumber != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (phoneId != null) { + sb.append(aligned) + .append("\"phoneId\": \"") + .append(phoneId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + if (phoneNumber != null) { + sb.append(aligned) + .append("\"phoneNumber\": \"") + .append(phoneNumber) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsSipRegistrations.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsSipRegistrations.java new file mode 100644 index 0000000..6abab61 --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionCallbackDetailsSipRegistrations.java @@ -0,0 +1,54 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +/** +* Information about the subscription's sip registrations. +*/ +public class SubscriptionCallbackDetailsSipRegistrations implements Alignable { + + private Long sipRegistrationId; + + /** + * Sip registration id + */ + public Long getSipRegistrationId() { + return this.sipRegistrationId; + } + + public boolean hasSipRegistrationId() { + return this.sipRegistrationId != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (sipRegistrationId != null) { + sb.append(aligned) + .append("\"sipRegistrationId\": \"") + .append(sipRegistrationId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallback.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallback.java index e514e64..3d20783 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a subscription is canceled. Received as part of the * [AccountCallback] structure. */ public class SubscriptionIsDetachedCallback implements Alignable { @@ -19,7 +19,7 @@ public class SubscriptionIsDetachedCallback implements Alignable { private SubscriptionIsDetachedCallbackItem[] subscriptions; /** - * The detached subscription list. + * The detached subscription list */ public SubscriptionIsDetachedCallbackItem[] getSubscriptions() { return this.subscriptions; diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallbackItem.java index fbc2374..a635e38 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsDetachedCallbackItem.java @@ -32,7 +32,7 @@ public boolean hasType() { /** * The subscription description (details). Example: the subscribed phone - * number. + * number */ public String getName() { return this.name; @@ -42,6 +42,20 @@ public boolean hasName() { return this.name != null; } + private SubscriptionCallbackDetails[] details; + + /** + * Info about the phone numbers or sip registrations that the + * subscription is attached to + */ + public SubscriptionCallbackDetails[] getDetails() { + return this.details; + } + + public boolean hasDetails() { + return this.details != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -67,6 +81,12 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (details != null) { + sb.append(aligned) + .append("\"SubscriptionCallbackDetails\": ") + .append(StringHelper.arrayToString(details, alignment + 1)) + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallback.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallback.java index 84c619b..4d30c5f 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a subscription is frozen. Received as part of the * [AccountCallback] structure. */ public class SubscriptionIsFrozenCallback implements Alignable { @@ -19,7 +19,7 @@ public class SubscriptionIsFrozenCallback implements Alignable { private SubscriptionIsFrozenCallbackItem[] subscriptions; /** - * The frozen subscription list. + * The frozen subscription list */ public SubscriptionIsFrozenCallbackItem[] getSubscriptions() { return this.subscriptions; diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallbackItem.java index 2aad748..844f37e 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionIsFrozenCallbackItem.java @@ -32,7 +32,7 @@ public boolean hasType() { /** * The subscription description (details). Example: the subscribed phone - * number. + * number */ public String getName() { return this.name; @@ -45,7 +45,7 @@ public boolean hasName() { private BigDecimal cost; /** - * The subscription cost. + * The subscription cost */ public BigDecimal getCost() { return this.cost; @@ -55,6 +55,20 @@ public boolean hasCost() { return this.cost != null; } + private SubscriptionCallbackDetails[] details; + + /** + * Info about the phone numbers or sip registrations that the + * subscription is attached to + */ + public SubscriptionCallbackDetails[] getDetails() { + return this.details; + } + + public boolean hasDetails() { + return this.details != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -88,6 +102,12 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (details != null) { + sb.append(aligned) + .append("\"SubscriptionCallbackDetails\": ") + .append(StringHelper.arrayToString(details, alignment + 1)) + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionTemplateType.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionTemplateType.java index 1860c6e..743dd26 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubscriptionTemplateType.java +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionTemplateType.java @@ -18,7 +18,7 @@ public class SubscriptionTemplateType implements Alignable { private Long subscriptionTemplateId; /** - * The subscription template ID. + * The subscription template ID */ public Long getSubscriptionTemplateId() { return this.subscriptionTemplateId; @@ -28,10 +28,23 @@ public boolean hasSubscriptionTemplateId() { return this.subscriptionTemplateId != null; } + private Long currencyId; + + /** + * ID of the original currency + */ + public Long getCurrencyId() { + return this.currencyId; + } + + public boolean hasCurrencyId() { + return this.currencyId != null; + } + private BigDecimal installationPrice; /** - * The subscription installation price (without the first monthly fee). + * The subscription installation price (without the first monthly fee) */ public BigDecimal getInstallationPrice() { return this.installationPrice; @@ -41,12 +54,25 @@ public boolean hasInstallationPrice() { return this.installationPrice != null; } - private String price; + private Long installationPriceInCurrency; + + /** + * The subscription installation price in the original currency + */ + public Long getInstallationPriceInCurrency() { + return this.installationPriceInCurrency; + } + + public boolean hasInstallationPriceInCurrency() { + return this.installationPriceInCurrency != null; + } + + private Long price; /** - * The subscription monthly fee, including taxes and discounts. + * The subscription monthly fee, including taxes and discounts */ - public String getPrice() { + public Long getPrice() { return this.price; } @@ -54,11 +80,24 @@ public boolean hasPrice() { return this.price != null; } + private Long priceInCurrency; + + /** + * The subscription monthly fee in the original currency + */ + public Long getPriceInCurrency() { + return this.priceInCurrency; + } + + public boolean hasPriceInCurrency() { + return this.priceInCurrency != null; + } + private String period; /** * The charge period in 24-h format: Y-M-D H:m:s. Example: 0-1-0 0:0:0 - * is 1 month. + * is 1 month */ public String getPeriod() { return this.period; @@ -72,7 +111,7 @@ public boolean hasPeriod() { /** * The subscription template type. The following values are possible: - * PHONE_NUM, SIP_REGISTRATION. + * PHONE_NUM, SIP_REGISTRATION */ public String getSubscriptionTemplateType() { return this.subscriptionTemplateType; @@ -86,7 +125,7 @@ public boolean hasSubscriptionTemplateType() { /** * The subscription template name (example: SIP registration, Phone GB, - * Phone RU 495, ...). + * Phone RU 495, ...) */ public String getSubscriptionTemplateName() { return this.subscriptionTemplateName; @@ -96,12 +135,12 @@ public boolean hasSubscriptionTemplateName() { return this.subscriptionTemplateName != null; } - private String requiredVerification; + private Boolean requiredVerification; /** - * The name of the required verification. + * Verification is required for the account */ - public String getRequiredVerification() { + public Boolean getRequiredVerification() { return this.requiredVerification; } @@ -112,8 +151,8 @@ public boolean hasRequiredVerification() { private String verificationStatus; /** - * The verification status. Possible values are: REQUIRED, IN_PROGRESS, - * VERIFIED, NOT_REQUIRED. + * The verification status. Possible values are REQUIRED, IN_PROGRESS, + * VERIFIED, NOT_REQUIRED */ public String getVerificationStatus() { return this.verificationStatus; @@ -140,6 +179,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (currencyId != null) { + sb.append(aligned) + .append("\"currencyId\": \"") + .append(currencyId) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (installationPrice != null) { sb.append(aligned) .append("\"installationPrice\": \"") @@ -148,6 +195,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (installationPriceInCurrency != null) { + sb.append(aligned) + .append("\"installationPriceInCurrency\": \"") + .append(installationPriceInCurrency) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (price != null) { sb.append(aligned) .append("\"price\": \"") @@ -156,6 +211,14 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (priceInCurrency != null) { + sb.append(aligned) + .append("\"priceInCurrency\": \"") + .append(priceInCurrency) + .append('"') + .append(',') + .append(System.lineSeparator()); + } if (period != null) { sb.append(aligned) .append("\"period\": \"") diff --git a/src/main/java/com/voximplant/apiclient/response/SubscriptionsToChargeType.java b/src/main/java/com/voximplant/apiclient/response/SubscriptionsToChargeType.java index 734349d..604bd25 100644 --- a/src/main/java/com/voximplant/apiclient/response/SubscriptionsToChargeType.java +++ b/src/main/java/com/voximplant/apiclient/response/SubscriptionsToChargeType.java @@ -18,7 +18,7 @@ public class SubscriptionsToChargeType implements Alignable { private BigDecimal subscriptionAmount; /** - * The money amount to charge in the specified currency. + * The money amount to charge in the specified currency */ public BigDecimal getSubscriptionAmount() { return this.subscriptionAmount; @@ -45,7 +45,7 @@ public boolean hasSubscriptionType() { /** * The subscription description (details). Example: the subscribed phone - * number. + * number */ public String getSubscriptionDescription() { return this.subscriptionDescription; @@ -58,7 +58,7 @@ public boolean hasSubscriptionDescription() { private Boolean subscriptionAutoCharge; /** - * The auto charge flag. + * The auto charge flag */ public Boolean getSubscriptionAutoCharge() { return this.subscriptionAutoCharge; @@ -73,7 +73,7 @@ public boolean hasSubscriptionAutoCharge() { /** * The next renewal date, format: YYYY-MM-DD. Displayed for only - * verified phone numbers. + * verified phone numbers */ public Date getSubscriptionNextRenewal() { return this.subscriptionNextRenewal; diff --git a/src/main/java/com/voximplant/apiclient/response/TransactionHistoryReportCallback.java b/src/main/java/com/voximplant/apiclient/response/TransactionHistoryReportCallback.java index 902579a..cc3807d 100644 --- a/src/main/java/com/voximplant/apiclient/response/TransactionHistoryReportCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/TransactionHistoryReportCallback.java @@ -11,15 +11,15 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when a transaction history report is ready. Received as part +* of the [AccountCallback] structure. */ public class TransactionHistoryReportCallback implements Alignable { private Long historyReportId; /** - * The history report ID. + * The history report ID */ public Long getHistoryReportId() { return this.historyReportId; @@ -32,7 +32,7 @@ public boolean hasHistoryReportId() { private Boolean success; /** - * Is success? + * Success flag */ public Boolean getSuccess() { return this.success; diff --git a/src/main/java/com/voximplant/apiclient/response/TransactionInfoType.java b/src/main/java/com/voximplant/apiclient/response/TransactionInfoType.java index c293fbc..08f6dcd 100644 --- a/src/main/java/com/voximplant/apiclient/response/TransactionInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/TransactionInfoType.java @@ -18,7 +18,7 @@ public class TransactionInfoType implements Alignable { private Long transactionId; /** - * The transaction ID. + * The transaction ID */ public Long getTransactionId() { return this.transactionId; @@ -31,7 +31,7 @@ public boolean hasTransactionId() { private String accountId; /** - * The account ID. + * The account ID */ public String getAccountId() { return this.accountId; @@ -59,7 +59,7 @@ public boolean hasPerformedAt() { private BigDecimal amount; /** - * The transaction amount, $. + * The transaction amount, $ */ public BigDecimal getAmount() { return this.amount; @@ -86,11 +86,21 @@ public boolean hasCurrency() { /** * The transaction type. The following values are possible: - * periodic_charge, resource_charge, money_distribution, - * subscription_charge, subscription_installation_charge, - * card_periodic_payment, card_overrun_payment, card_payment, - * robokassa_payment, gift, add_money, subscription_cancel, adjustment, - * wire_transfer, refund. + * resource_charge, money_distribution, subscription_charge, + * subscription_installation_charge, card_periodic_payment, + * card_overrun_payment, card_payment, rub_card_periodic_payment, + * rub_card_overrun_payment, rub_card_payment, robokassa_payment, gift, + * promo, adjustment, wire_transfer, us_wire_transfer, refund, discount, + * mgp_charge, mgp_startup, mgp_business, mgp_big_business, + * mgp_enterprise, mgp_large_enterprise, techsupport_charge, tax_charge, + * monthly_fee_charge, grace_credit_payment, grace_credit_provision, + * mau_charge, mau_overrun, im_charge, im_overrun, fmc_charge, + * sip_registration_charge, development_fee, money_transfer_to_child, + * money_transfer_to_parent, money_acceptance_from_child, + * money_acceptance_from_parent, phone_number_installation, + * phone_number_charge, toll_free_phone_number_installation, + * toll_free_phone_number_charge, services, user_money_transfer, + * paypal_payment, paypal_overrun_payment, paypal_periodic_payment */ public String getTransactionType() { return this.transactionType; @@ -103,7 +113,7 @@ public boolean hasTransactionType() { private String transactionDescription; /** - * The transaction description. + * The transaction description */ public String getTransactionDescription() { return this.transactionDescription; @@ -117,7 +127,7 @@ public boolean hasTransactionDescription() { /** * The external payment reference. See the [TransferMoneyToChildAccount] - * function. + * function */ public String getPaymentReference() { return this.paymentReference; diff --git a/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallback.java b/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallback.java index 0d1153b..3dfe986 100644 --- a/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a transcription is saved. Received as part of the * [AccountCallback] structure. */ public class TranscriptionCompleteCallback implements Alignable { @@ -19,7 +19,7 @@ public class TranscriptionCompleteCallback implements Alignable { private TranscriptionCompleteCallbackItem transcriptionComplete; /** - * The transcription info. + * The transcription info */ public TranscriptionCompleteCallbackItem getTranscriptionComplete() { return this.transcriptionComplete; diff --git a/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallbackItem.java index f9f23ef..080e783 100644 --- a/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/TranscriptionCompleteCallbackItem.java @@ -18,7 +18,7 @@ public class TranscriptionCompleteCallbackItem implements Alignable { private String recordUrl; /** - * The record url. + * The record url */ public String getRecordUrl() { return this.recordUrl; @@ -31,7 +31,8 @@ public boolean hasRecordUrl() { private String transcriptionUrl; /** - * The transcription url. + * Transcription URL. To open the URL, please add authorization + * parameters and record_id to it */ public String getTranscriptionUrl() { return this.transcriptionUrl; @@ -44,7 +45,7 @@ public boolean hasTranscriptionUrl() { private Long callSessionHistoryId; /** - * The call session history id. + * The call session history ID */ public Long getCallSessionHistoryId() { return this.callSessionHistoryId; @@ -57,7 +58,7 @@ public boolean hasCallSessionHistoryId() { private BigDecimal transcriptionCost; /** - * The cost of transcription. + * The cost of transcription */ public BigDecimal getTranscriptionCost() { return this.transcriptionCost; diff --git a/src/main/java/com/voximplant/apiclient/response/TransferMoneyToUserResponse.java b/src/main/java/com/voximplant/apiclient/response/TransferMoneyToUserResponse.java index 38f24e7..6670803 100644 --- a/src/main/java/com/voximplant/apiclient/response/TransferMoneyToUserResponse.java +++ b/src/main/java/com/voximplant/apiclient/response/TransferMoneyToUserResponse.java @@ -37,7 +37,7 @@ public boolean hasResult() { private BigDecimal balance; /** - * The new account balance. + * The new account balance */ public BigDecimal getBalance() { return this.balance; diff --git a/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallback.java b/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallback.java index 77ab37b..283f02e 100644 --- a/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallback.java @@ -11,15 +11,15 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the -* [AccountCallback] structure. +* Received when an unverified subscription is canceled. Received as +* part of the [AccountCallback] structure. */ public class UnverifiedSubscriptionDetachedCallback implements Alignable { private UnverifiedSubscriptionDetachedCallbackItem[] subscriptions; /** - * The frozen subscription list. + * The frozen subscription list */ public UnverifiedSubscriptionDetachedCallbackItem[] getSubscriptions() { return this.subscriptions; diff --git a/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallbackItem.java b/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallbackItem.java index 55c4ee2..56a0804 100644 --- a/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallbackItem.java +++ b/src/main/java/com/voximplant/apiclient/response/UnverifiedSubscriptionDetachedCallbackItem.java @@ -32,7 +32,7 @@ public boolean hasType() { /** * The subscription description (details). Example: the subscribed phone - * number. + * number */ public String getName() { return this.name; @@ -42,6 +42,20 @@ public boolean hasName() { return this.name != null; } + private SubscriptionCallbackDetails[] details; + + /** + * Info about the phone numbers or sip registrations that the + * subscription is attached to + */ + public SubscriptionCallbackDetails[] getDetails() { + return this.details; + } + + public boolean hasDetails() { + return this.details != null; + } + public String toString(int alignment) { char[] preAligned = new char[alignment - 1]; char[] aligned = new char[alignment]; @@ -67,6 +81,12 @@ public String toString(int alignment) { .append(',') .append(System.lineSeparator()); } + if (details != null) { + sb.append(aligned) + .append("\"SubscriptionCallbackDetails\": ") + .append(StringHelper.arrayToString(details, alignment + 1)) + .append(System.lineSeparator()); + } return sb.append(preAligned).append('}').append(',').toString(); } diff --git a/src/main/java/com/voximplant/apiclient/response/UserInfoType.java b/src/main/java/com/voximplant/apiclient/response/UserInfoType.java index 67f9b22..7bae8ca 100644 --- a/src/main/java/com/voximplant/apiclient/response/UserInfoType.java +++ b/src/main/java/com/voximplant/apiclient/response/UserInfoType.java @@ -18,7 +18,7 @@ public class UserInfoType implements Alignable { private Long userId; /** - * The user ID. + * The user ID */ public Long getUserId() { return this.userId; @@ -31,7 +31,7 @@ public boolean hasUserId() { private String userName; /** - * The user name. + * The user name */ public String getUserName() { return this.userName; @@ -44,7 +44,7 @@ public boolean hasUserName() { private String userDisplayName; /** - * The display user name. + * The display user name */ public String getUserDisplayName() { return this.userDisplayName; @@ -57,7 +57,7 @@ public boolean hasUserDisplayName() { private Boolean userActive; /** - * The user active flag. + * The user active flag */ public Boolean getUserActive() { return this.userActive; @@ -71,7 +71,7 @@ public boolean hasUserActive() { /** * 'True' if the user uses the parent account's money, 'false' if the - * user has a separate balance. + * user has a separate balance */ public Boolean getParentAccounting() { return this.parentAccounting; @@ -84,7 +84,7 @@ public boolean hasParentAccounting() { private String mobilePhone; /** - * The user mobile phone. + * The user mobile phone */ public String getMobilePhone() { return this.mobilePhone; @@ -99,7 +99,7 @@ public boolean hasMobilePhone() { /** * The current user's money in the currency specified for the account. * The value is the number rounded to 4 decimal places and it changes - * during the calls, transcribing, purchases etc. + * during the calls, transcribing, purchases etc */ public BigDecimal getLiveBalance() { return this.liveBalance; @@ -116,7 +116,7 @@ public boolean hasLiveBalance() { * The value is the number rounded to 4 decimal places. The parameter is * the alias to live_balance by default. But there is a possibility to * make the alias to fixed_balance: just to pass - * return_live_balance=false into the [GetAccountInfo] method. + * return_live_balance=false into the [GetAccountInfo] method */ public BigDecimal getBalance() { return this.balance; @@ -129,8 +129,7 @@ public boolean hasBalance() { private BigDecimal fixedBalance; /** - * The last committed balance which was approved by billing's - * transaction. + * The last committed balance which was approved by billing's transaction */ public BigDecimal getFixedBalance() { return this.fixedBalance; @@ -143,7 +142,7 @@ public boolean hasFixedBalance() { private String userCustomData; /** - * The custom data. + * The custom data */ public String getUserCustomData() { return this.userCustomData; @@ -156,7 +155,7 @@ public boolean hasUserCustomData() { private ApplicationInfoType[] applications; /** - * The bound applications. + * The bound applications */ public ApplicationInfoType[] getApplications() { return this.applications; @@ -169,7 +168,7 @@ public boolean hasApplications() { private SkillInfoType[] skills; /** - * The bound skills. + * The bound skills */ public SkillInfoType[] getSkills() { return this.skills; @@ -182,7 +181,7 @@ public boolean hasSkills() { private ACDQueueOperatorInfoType[] acdQueues; /** - * The bound ACD queues. + * The bound ACD queues */ public ACDQueueOperatorInfoType[] getAcdQueues() { return this.acdQueues; @@ -196,7 +195,7 @@ public boolean hasAcdQueues() { /** * The ACD operator status. The following values are possible: OFFLINE, - * ONLINE, READY, BANNED, IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND. + * ONLINE, READY, BANNED, IN_SERVICE, AFTER_SERVICE, TIMEOUT, DND */ public String getAcdStatus() { return this.acdStatus; diff --git a/src/main/java/com/voximplant/apiclient/response/VerifyOutboundTestPhoneNumberResponse.java b/src/main/java/com/voximplant/apiclient/response/VerifyOutboundTestPhoneNumberResponse.java new file mode 100644 index 0000000..d41767e --- /dev/null +++ b/src/main/java/com/voximplant/apiclient/response/VerifyOutboundTestPhoneNumberResponse.java @@ -0,0 +1,61 @@ +package com.voximplant.apiclient.response; + +import java.util.Arrays; +import java.util.Date; +import java.util.Map; +import java.math.BigDecimal; +import com.voximplant.apiclient.util.MultiArgument; +import com.voximplant.apiclient.util.Error; +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; +import com.voximplant.apiclient.util.StringHelper; +import com.voximplant.apiclient.util.Alignable; + +public class VerifyOutboundTestPhoneNumberResponse implements Alignable { + private Error error; + + public Error getError() { + return error; + } + + public boolean hasError() { + return this.error != null; + } + + private Long dailyAttemptsLeft; + + /** + * The number of attempts left for the day. The number is reset every + * day at 00:00 UTC + */ + public Long getDailyAttemptsLeft() { + return this.dailyAttemptsLeft; + } + + public boolean hasDailyAttemptsLeft() { + return this.dailyAttemptsLeft != null; + } + + public String toString(int alignment) { + char[] preAligned = new char[alignment - 1]; + char[] aligned = new char[alignment]; + Arrays.fill(preAligned, '\t'); + Arrays.fill(aligned, '\t'); + StringBuilder sb = new StringBuilder() + .append(preAligned) + .append('{') + .append(System.lineSeparator()); + if (dailyAttemptsLeft != null) { + sb.append(aligned) + .append("\"dailyAttemptsLeft\": \"") + .append(dailyAttemptsLeft) + .append('"') + .append(',') + .append(System.lineSeparator()); + } + return sb.append(preAligned).append('}').append(',').toString(); + } + + @Override + public String toString() { + return toString(1); + }} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiclient/response/WireTransferCallback.java b/src/main/java/com/voximplant/apiclient/response/WireTransferCallback.java index eb1005f..55fb650 100644 --- a/src/main/java/com/voximplant/apiclient/response/WireTransferCallback.java +++ b/src/main/java/com/voximplant/apiclient/response/WireTransferCallback.java @@ -11,7 +11,7 @@ import com.voximplant.apiclient.util.Alignable; /** -* The specific account callback details. Received as part of the +* Received when a wire transfer is made. Received as part of the * [AccountCallback] structure. */ public class WireTransferCallback implements Alignable { @@ -19,7 +19,7 @@ public class WireTransferCallback implements Alignable { private Long transactionId; /** - * The transaction ID. + * The transaction ID */ public Long getTransactionId() { return this.transactionId; @@ -32,7 +32,7 @@ public boolean hasTransactionId() { private String transactionType; /** - * The transaction type. + * The transaction type */ public String getTransactionType() { return this.transactionType; @@ -45,7 +45,7 @@ public boolean hasTransactionType() { private BigDecimal amount; /** - * The amount in the account currency. + * The amount in the account currency */ public BigDecimal getAmount() { return this.amount; diff --git a/src/main/java/com/voximplant/apiexamples/ActivateOutboundTestPhoneNumberExample.java b/src/main/java/com/voximplant/apiexamples/ActivateOutboundTestPhoneNumberExample.java new file mode 100644 index 0000000..08efd27 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/ActivateOutboundTestPhoneNumberExample.java @@ -0,0 +1,32 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.ActivateOutboundTestPhoneNumberRequest; +import com.voximplant.apiclient.response.ActivateOutboundTestPhoneNumberResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Activate the personal phone number by the verification code. +*/ +public class ActivateOutboundTestPhoneNumberExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + ActivateOutboundTestPhoneNumberResponse res = client.activateOutboundTestPhoneNumber(new ActivateOutboundTestPhoneNumberRequest() + .setVerificationCode("12345") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/AddOutboundTestPhoneNumberExample.java b/src/main/java/com/voximplant/apiexamples/AddOutboundTestPhoneNumberExample.java new file mode 100644 index 0000000..ca2bf7b --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/AddOutboundTestPhoneNumberExample.java @@ -0,0 +1,32 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.AddOutboundTestPhoneNumberRequest; +import com.voximplant.apiclient.response.AddOutboundTestPhoneNumberResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Add a personal phone number. +*/ +public class AddOutboundTestPhoneNumberExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + AddOutboundTestPhoneNumberResponse res = client.addOutboundTestPhoneNumber(new AddOutboundTestPhoneNumberRequest() + .setPhoneNumber("12223334444") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/AddSubUserExample.java b/src/main/java/com/voximplant/apiexamples/AddSubUserExample.java index 6b924b7..91fc5be 100644 --- a/src/main/java/com/voximplant/apiexamples/AddSubUserExample.java +++ b/src/main/java/com/voximplant/apiexamples/AddSubUserExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Create a new subuser for account_id = 1 +* Create a new subuser for account_id = 1. */ public class AddSubUserExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/AddUserExample.java b/src/main/java/com/voximplant/apiexamples/AddUserExample.java index f41ba74..dd17c74 100644 --- a/src/main/java/com/voximplant/apiexamples/AddUserExample.java +++ b/src/main/java/com/voximplant/apiexamples/AddUserExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Add a new user +* Add a new user. */ public class AddUserExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/ChangeAccountPlanExample.java b/src/main/java/com/voximplant/apiexamples/ChangeAccountPlanExample.java new file mode 100644 index 0000000..34dfd31 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/ChangeAccountPlanExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.ChangeAccountPlanRequest; +import com.voximplant.apiclient.response.ChangeAccountPlanResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Change the IM plan. +*/ +public class ChangeAccountPlanExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + ChangeAccountPlanResponse res = client.changeAccountPlan(new ChangeAccountPlanRequest() + .setPlanType("IM") + .setPlanSubscriptionTemplateId(3) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/DelKeyValueItemExample.java b/src/main/java/com/voximplant/apiexamples/DelKeyValueItemExample.java new file mode 100644 index 0000000..20be735 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/DelKeyValueItemExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.DelKeyValueItemRequest; +import com.voximplant.apiclient.response.DelKeyValueItemResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* DelKeyValueItem example. +*/ +public class DelKeyValueItemExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + DelKeyValueItemResponse res = client.delKeyValueItem(new DelKeyValueItemRequest() + .setApplicationId(1) + .setKey("key1") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/DelOutboundTestPhoneNumberExample.java b/src/main/java/com/voximplant/apiexamples/DelOutboundTestPhoneNumberExample.java new file mode 100644 index 0000000..7ac2f79 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/DelOutboundTestPhoneNumberExample.java @@ -0,0 +1,31 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.DelOutboundTestPhoneNumberRequest; +import com.voximplant.apiclient.response.DelOutboundTestPhoneNumberResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Delete the phone number. +*/ +public class DelOutboundTestPhoneNumberExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + DelOutboundTestPhoneNumberResponse res = client.delOutboundTestPhoneNumber(new DelOutboundTestPhoneNumberRequest() + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/DelSubUserExample.java b/src/main/java/com/voximplant/apiexamples/DelSubUserExample.java index e27a183..185fada 100644 --- a/src/main/java/com/voximplant/apiexamples/DelSubUserExample.java +++ b/src/main/java/com/voximplant/apiexamples/DelSubUserExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Delete the subuser with id = 12 from account_id = 1 +* Delete the subuser with id = 12 from account_id = 1. */ public class DelSubUserExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetACDHistoryExample.java b/src/main/java/com/voximplant/apiexamples/GetACDHistoryExample.java index 64928d4..b5b6b68 100644 --- a/src/main/java/com/voximplant/apiexamples/GetACDHistoryExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetACDHistoryExample.java @@ -14,7 +14,7 @@ /** * Get the two ACD session history records from the 2012-01-01 00:00:00 -* to the 2014-04-01 00:00:00 +* to the 2014-04-01 00:00:00. */ public class GetACDHistoryExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetACDOperatorStatisticsExample.java b/src/main/java/com/voximplant/apiexamples/GetACDOperatorStatisticsExample.java index 89a7281..5b15db5 100644 --- a/src/main/java/com/voximplant/apiexamples/GetACDOperatorStatisticsExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetACDOperatorStatisticsExample.java @@ -13,8 +13,8 @@ import java.io.IOException; /** -* Get statistics for all operators and all queues from the specified -* date +* Get AC and TT statistics for two operators and the queue from the +* specified date. */ public class GetACDOperatorStatisticsExample { public static void main(String [] args) { @@ -22,11 +22,17 @@ public static void main(String [] args) { VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); Calendar fromDate = Calendar.getInstance(TimeZone.getTimeZone("Etc/UTC")); - fromDate.set(2017, 1, 1, 0, 0, 0); + fromDate.set(2021, 4, 8, 0, 0, 0); + Calendar toDate = Calendar.getInstance(TimeZone.getTimeZone("Etc/UTC")); + toDate.set(2021, 4, 10, 0, 0, 0); GetACDOperatorStatisticsResponse res = client.getACDOperatorStatistics(new GetACDOperatorStatisticsRequest() .setFromDate(fromDate.getTime()) - .setUserId(MultiArgument.forAllValues()) + .setToDate(toDate.getTime()) + .setAcdQueueId(MultiArgument.forSingleValue(54L)) + .setUserId(MultiArgument.forSingleValue(1768L)) + .setReport(MultiArgument.forSingleValue("AC")) + .setAggregation("day") ); System.out.println("OK"); } catch (IOException | ClientException e) { diff --git a/src/main/java/com/voximplant/apiexamples/GetACDQueueStatisticsExample.java b/src/main/java/com/voximplant/apiexamples/GetACDQueueStatisticsExample.java index ddf3f9c..b2719fe 100644 --- a/src/main/java/com/voximplant/apiexamples/GetACDQueueStatisticsExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetACDQueueStatisticsExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get statistics for all queues from the specified date +* Get WT and TT statistics for the queue from the specified date. */ public class GetACDQueueStatisticsExample { public static void main(String [] args) { @@ -21,10 +21,16 @@ public static void main(String [] args) { VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); Calendar fromDate = Calendar.getInstance(TimeZone.getTimeZone("Etc/UTC")); - fromDate.set(2017, 1, 1, 0, 0, 0); + fromDate.set(2021, 4, 8, 0, 0, 0); + Calendar toDate = Calendar.getInstance(TimeZone.getTimeZone("Etc/UTC")); + toDate.set(2021, 4, 10, 0, 0, 0); GetACDQueueStatisticsResponse res = client.getACDQueueStatistics(new GetACDQueueStatisticsRequest() .setFromDate(fromDate.getTime()) + .setToDate(toDate.getTime()) + .setAcdQueueId(MultiArgument.forSingleValue(54L)) + .setReport(MultiArgument.forSingleValue("WT")) + .setAggregation("day") ); System.out.println("OK"); } catch (IOException | ClientException e) { diff --git a/src/main/java/com/voximplant/apiexamples/GetAccountInfoExample.java b/src/main/java/com/voximplant/apiexamples/GetAccountInfoExample.java new file mode 100644 index 0000000..192173b --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetAccountInfoExample.java @@ -0,0 +1,31 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetAccountInfoRequest; +import com.voximplant.apiclient.response.GetAccountInfoResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the account's info. +*/ +public class GetAccountInfoExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetAccountInfoResponse res = client.getAccountInfo(new GetAccountInfoRequest() + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetAccountInvoicesExample.java b/src/main/java/com/voximplant/apiexamples/GetAccountInvoicesExample.java new file mode 100644 index 0000000..c1c833c --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetAccountInvoicesExample.java @@ -0,0 +1,31 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetAccountInvoicesRequest; +import com.voximplant.apiclient.response.GetAccountInvoicesResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* GetAccountInvoices example. +*/ +public class GetAccountInvoicesExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetAccountInvoicesResponse res = client.getAccountInvoices(new GetAccountInvoicesRequest() + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetAccountPhoneNumberCountriesExample.java b/src/main/java/com/voximplant/apiexamples/GetAccountPhoneNumberCountriesExample.java new file mode 100644 index 0000000..bb9cc61 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetAccountPhoneNumberCountriesExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetAccountPhoneNumberCountriesRequest; +import com.voximplant.apiclient.response.GetAccountPhoneNumberCountriesResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the countries where the account with id = 1 has phone numbers +* attached to the application with id = 1. +*/ +public class GetAccountPhoneNumberCountriesExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetAccountPhoneNumberCountriesResponse res = client.getAccountPhoneNumberCountries(new GetAccountPhoneNumberCountriesRequest() + .setApplicationId(MultiArgument.forSingleValue(1L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetAccountPlansExample.java b/src/main/java/com/voximplant/apiexamples/GetAccountPlansExample.java new file mode 100644 index 0000000..e45ad77 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetAccountPlansExample.java @@ -0,0 +1,31 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetAccountPlansRequest; +import com.voximplant.apiclient.response.GetAccountPlansResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get all account plans with packages. +*/ +public class GetAccountPlansExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetAccountPlansResponse res = client.getAccountPlans(new GetAccountPlansRequest() + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetAvailablePlansExample.java b/src/main/java/com/voximplant/apiexamples/GetAvailablePlansExample.java new file mode 100644 index 0000000..9e0483a --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetAvailablePlansExample.java @@ -0,0 +1,32 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetAvailablePlansRequest; +import com.voximplant.apiclient.response.GetAvailablePlansResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get allowed IM plans to change. +*/ +public class GetAvailablePlansExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetAvailablePlansResponse res = client.getAvailablePlans(new GetAvailablePlansRequest() + .setPlanType(MultiArgument.forSingleValue("IM")) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetAvailableRegulationsExample.java b/src/main/java/com/voximplant/apiexamples/GetAvailableRegulationsExample.java index f7b644c..a582caa 100644 --- a/src/main/java/com/voximplant/apiexamples/GetAvailableRegulationsExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetAvailableRegulationsExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Search available regulation address +* Search available regulation address. */ public class GetAvailableRegulationsExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetCallHistoryExample.java b/src/main/java/com/voximplant/apiexamples/GetCallHistoryExample.java index 6081aae..be19f12 100644 --- a/src/main/java/com/voximplant/apiexamples/GetCallHistoryExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetCallHistoryExample.java @@ -14,7 +14,7 @@ /** * Get the first call session history record with calls and record URLs -* from the 2020-02-25 00:00:00 UTC to the 2020-02-26 00:00:00 UTC +* from the 2020-02-25 00:00:00 UTC to the 2020-02-26 00:00:00 UTC. */ public class GetCallHistoryExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetCallListDetailsExample.java b/src/main/java/com/voximplant/apiexamples/GetCallListDetailsExample.java index 63014c4..8ddcdf6 100644 --- a/src/main/java/com/voximplant/apiexamples/GetCallListDetailsExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetCallListDetailsExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get all lists registered by user +* Get all lists registered by user. */ public class GetCallListDetailsExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetCallListsExample.java b/src/main/java/com/voximplant/apiexamples/GetCallListsExample.java index 76a9826..fad1e4f 100644 --- a/src/main/java/com/voximplant/apiexamples/GetCallListsExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetCallListsExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get all lists registered by user +* Get all lists registered by user. */ public class GetCallListsExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetCountriesExample.java b/src/main/java/com/voximplant/apiexamples/GetCountriesExample.java index 65858ac..e56b005 100644 --- a/src/main/java/com/voximplant/apiexamples/GetCountriesExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetCountriesExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get Germany +* Get Germany. */ public class GetCountriesExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetKeyValueItemExample.java b/src/main/java/com/voximplant/apiexamples/GetKeyValueItemExample.java new file mode 100644 index 0000000..7e4c2db --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetKeyValueItemExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetKeyValueItemRequest; +import com.voximplant.apiclient.response.GetKeyValueItemResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* GetKeyValueItem example. +*/ +public class GetKeyValueItemExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetKeyValueItemResponse res = client.getKeyValueItem(new GetKeyValueItemRequest() + .setApplicationId(1) + .setKey("key1") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetKeyValueItemsExample.java b/src/main/java/com/voximplant/apiexamples/GetKeyValueItemsExample.java new file mode 100644 index 0000000..40de111 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetKeyValueItemsExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetKeyValueItemsRequest; +import com.voximplant.apiclient.response.GetKeyValueItemsResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* GetKeyValueItems example. +*/ +public class GetKeyValueItemsExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetKeyValueItemsResponse res = client.getKeyValueItems(new GetKeyValueItemsRequest() + .setApplicationId(1) + .setKey("test") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetKeyValueKeysExample.java b/src/main/java/com/voximplant/apiexamples/GetKeyValueKeysExample.java new file mode 100644 index 0000000..1efe666 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetKeyValueKeysExample.java @@ -0,0 +1,32 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetKeyValueKeysRequest; +import com.voximplant.apiclient.response.GetKeyValueKeysResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* GetKeyValueKeys example. +*/ +public class GetKeyValueKeysExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetKeyValueKeysResponse res = client.getKeyValueKeys(new GetKeyValueKeysRequest() + .setApplicationId(1) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetOutboundTestPhoneNumbersExample.java b/src/main/java/com/voximplant/apiexamples/GetOutboundTestPhoneNumbersExample.java new file mode 100644 index 0000000..a8b7509 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetOutboundTestPhoneNumbersExample.java @@ -0,0 +1,31 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetOutboundTestPhoneNumbersRequest; +import com.voximplant.apiclient.response.GetOutboundTestPhoneNumbersResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the phone number info. +*/ +public class GetOutboundTestPhoneNumbersExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetOutboundTestPhoneNumbersResponse res = client.getOutboundTestPhoneNumbers(new GetOutboundTestPhoneNumbersRequest() + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetPhoneNumberCategoriesExample.java b/src/main/java/com/voximplant/apiexamples/GetPhoneNumberCategoriesExample.java index ec8e64b..6a9ee59 100644 --- a/src/main/java/com/voximplant/apiexamples/GetPhoneNumberCategoriesExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetPhoneNumberCategoriesExample.java @@ -22,7 +22,7 @@ public static void main(String [] args) { GetPhoneNumberCategoriesResponse res = client.getPhoneNumberCategories(new GetPhoneNumberCategoriesRequest() - .setCountryCode("RU") + .setCountryCode(MultiArgument.forSingleValue("RU")) ); System.out.println("OK"); } catch (IOException | ClientException e) { diff --git a/src/main/java/com/voximplant/apiexamples/GetPhoneNumbersExample.java b/src/main/java/com/voximplant/apiexamples/GetPhoneNumbersExample.java index 506318e..f8ee362 100644 --- a/src/main/java/com/voximplant/apiexamples/GetPhoneNumbersExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetPhoneNumbersExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get the two attached phone numbers. +* Get two attached phone numbers. */ public class GetPhoneNumbersExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetRegulationsAddressExample.java b/src/main/java/com/voximplant/apiexamples/GetRegulationsAddressExample.java index 5638f11..7bb128f 100644 --- a/src/main/java/com/voximplant/apiexamples/GetRegulationsAddressExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetRegulationsAddressExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Search regulation address with ID = 1 +* Search regulation address with ID = 1. */ public class GetRegulationsAddressExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetResourcePriceExample.java b/src/main/java/com/voximplant/apiexamples/GetResourcePriceExample.java index d39de06..8a3f68f 100644 --- a/src/main/java/com/voximplant/apiexamples/GetResourcePriceExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetResourcePriceExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get the price to call to the phone number 79263332211 +* Get the price to call to the phone number 79263332211. */ public class GetResourcePriceExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetRulesExample.java b/src/main/java/com/voximplant/apiexamples/GetRulesExample.java index e1e2366..8d50fac 100644 --- a/src/main/java/com/voximplant/apiexamples/GetRulesExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetRulesExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get the first rule for the template 74951234567 +* Get the first rule for the template 74951234567. */ public class GetRulesExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetSQStateExample.java b/src/main/java/com/voximplant/apiexamples/GetSQStateExample.java new file mode 100644 index 0000000..1d372f6 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetSQStateExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetSQStateRequest; +import com.voximplant.apiclient.response.GetSQStateResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the current state of the smart queue with id = 1. +*/ +public class GetSQStateExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetSQStateResponse res = client.getSQState(new GetSQStateRequest() + .setApplicationId(1) + .setSqQueueId(MultiArgument.forSingleValue(1L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetSipRegistrationsExample.java b/src/main/java/com/voximplant/apiexamples/GetSipRegistrationsExample.java index f6f6cee..5adad45 100644 --- a/src/main/java/com/voximplant/apiexamples/GetSipRegistrationsExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetSipRegistrationsExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get all active sip registrations +* Get all active sip registrations. */ public class GetSipRegistrationsExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetSmartQueueDayHistoryExample.java b/src/main/java/com/voximplant/apiexamples/GetSmartQueueDayHistoryExample.java new file mode 100644 index 0000000..be94a65 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetSmartQueueDayHistoryExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetSmartQueueDayHistoryRequest; +import com.voximplant.apiclient.response.GetSmartQueueDayHistoryResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the time agents spent in the ONLINE status for all smart queues +* within one application. +*/ +public class GetSmartQueueDayHistoryExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetSmartQueueDayHistoryResponse res = client.getSmartQueueDayHistory(new GetSmartQueueDayHistoryRequest() + .setApplicationId(1) + .setReportType(MultiArgument.forSingleValue("sum_agents_online_time")) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetSmartQueueRealtimeMetricsExample.java b/src/main/java/com/voximplant/apiexamples/GetSmartQueueRealtimeMetricsExample.java new file mode 100644 index 0000000..b004309 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/GetSmartQueueRealtimeMetricsExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.GetSmartQueueRealtimeMetricsRequest; +import com.voximplant.apiclient.response.GetSmartQueueRealtimeMetricsResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the time agents spent in the DIALING status for all smart queues +* within one application. +*/ +public class GetSmartQueueRealtimeMetricsExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + GetSmartQueueRealtimeMetricsResponse res = client.getSmartQueueRealtimeMetrics(new GetSmartQueueRealtimeMetricsRequest() + .setApplicationId(1) + .setReportType(MultiArgument.forSingleValue("sum_agents_dialing_time")) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/GetSubUsersExample.java b/src/main/java/com/voximplant/apiexamples/GetSubUsersExample.java index de26399..87a5615 100644 --- a/src/main/java/com/voximplant/apiexamples/GetSubUsersExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetSubUsersExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Get subusers info +* Get subusers info. */ public class GetSubUsersExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/GetZIPCodesExample.java b/src/main/java/com/voximplant/apiexamples/GetZIPCodesExample.java index 3405318..066ec3f 100644 --- a/src/main/java/com/voximplant/apiexamples/GetZIPCodesExample.java +++ b/src/main/java/com/voximplant/apiexamples/GetZIPCodesExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Search zip codes in Germany +* Search for zip codes in Germany. */ public class GetZIPCodesExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/LinkregulationAddressExample.java b/src/main/java/com/voximplant/apiexamples/LinkRegulationAddressExample.java similarity index 69% rename from src/main/java/com/voximplant/apiexamples/LinkregulationAddressExample.java rename to src/main/java/com/voximplant/apiexamples/LinkRegulationAddressExample.java index 014733a..e1eb9fa 100644 --- a/src/main/java/com/voximplant/apiexamples/LinkregulationAddressExample.java +++ b/src/main/java/com/voximplant/apiexamples/LinkRegulationAddressExample.java @@ -1,8 +1,8 @@ package com.voximplant.apiexamples; import com.voximplant.apiclient.ClientException; -import com.voximplant.apiclient.request.LinkregulationAddressRequest; -import com.voximplant.apiclient.response.LinkregulationAddressResponse; +import com.voximplant.apiclient.request.LinkRegulationAddressRequest; +import com.voximplant.apiclient.response.LinkRegulationAddressResponse; import com.voximplant.apiclient.VoximplantAPIClient; import com.voximplant.apiclient.util.MultiArgument; import java.util.Date; @@ -13,15 +13,15 @@ import java.io.IOException; /** -* Link regulation address to phone number +* Link the regulation address to a phone number. */ -public class LinkregulationAddressExample { +public class LinkRegulationAddressExample { public static void main(String [] args) { try { VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); - LinkregulationAddressResponse res = client.linkregulationAddress(new LinkregulationAddressRequest() + LinkRegulationAddressResponse res = client.linkRegulationAddress(new LinkRegulationAddressRequest() .setRegulationAddressId(1) .setPhoneId(1) ); diff --git a/src/main/java/com/voximplant/apiexamples/RecoverCallListExample.java b/src/main/java/com/voximplant/apiexamples/RecoverCallListExample.java index 123e36e..68fce25 100644 --- a/src/main/java/com/voximplant/apiexamples/RecoverCallListExample.java +++ b/src/main/java/com/voximplant/apiexamples/RecoverCallListExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Restore list with id = 1 +* Restore list with id = 1. */ public class RecoverCallListExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/RemoveSubUserRolesExample.java b/src/main/java/com/voximplant/apiexamples/RemoveSubUserRolesExample.java index a226c8f..d515e40 100644 --- a/src/main/java/com/voximplant/apiexamples/RemoveSubUserRolesExample.java +++ b/src/main/java/com/voximplant/apiexamples/RemoveSubUserRolesExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Remove roles 1,2,3 from the subuser with id = 12 +* Remove roles 1,2,3 from the subuser with id = 12. */ public class RemoveSubUserRolesExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/ReorderRulesExample.java b/src/main/java/com/voximplant/apiexamples/ReorderRulesExample.java index c39f7b5..5ebaa32 100644 --- a/src/main/java/com/voximplant/apiexamples/ReorderRulesExample.java +++ b/src/main/java/com/voximplant/apiexamples/ReorderRulesExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Set the rule selection order: 1, 7, 3 +* Set the rule selection order: 1, 7, 3. */ public class ReorderRulesExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/RequestSmartQueueHistoryExample.java b/src/main/java/com/voximplant/apiexamples/RequestSmartQueueHistoryExample.java new file mode 100644 index 0000000..4c1c20d --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/RequestSmartQueueHistoryExample.java @@ -0,0 +1,42 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.RequestSmartQueueHistoryRequest; +import com.voximplant.apiclient.response.RequestSmartQueueHistoryResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Generate a service_level report file in csv format for the period +* from 2021-03-17 00:00:00 to 2021-03-17 22:00:00. +*/ +public class RequestSmartQueueHistoryExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + Calendar fromDate = Calendar.getInstance(TimeZone.getTimeZone("Etc/UTC")); + fromDate.set(2021, 3, 17, 0, 0, 0); + Calendar toDate = Calendar.getInstance(TimeZone.getTimeZone("Etc/UTC")); + toDate.set(2021, 3, 17, 22, 0, 0); + + RequestSmartQueueHistoryResponse res = client.requestSmartQueueHistory(new RequestSmartQueueHistoryRequest() + .setApplicationId(1) + .setSqQueueId(MultiArgument.forSingleValue(1L)) + .setReportType(MultiArgument.forSingleValue("service_level")) + .setMaxWaitingSec(6) + .setFromDate(fromDate.getTime()) + .setToDate(toDate.getTime()) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_AddQueueExample.java b/src/main/java/com/voximplant/apiexamples/SQ_AddQueueExample.java new file mode 100644 index 0000000..f6422bf --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_AddQueueExample.java @@ -0,0 +1,35 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_AddQueueRequest; +import com.voximplant.apiclient.response.SQ_AddQueueResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Add a new queue. +*/ +public class SQ_AddQueueExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_AddQueueResponse res = client.sQ_AddQueue(new SQ_AddQueueRequest() + .setApplicationId(1) + .setSqQueueName("smartQueue1") + .setCallAgentSelection("MOST_QUALIFIED") + .setCallTaskSelection("MAX_WAITING_TIME") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_AddSkillExample.java b/src/main/java/com/voximplant/apiexamples/SQ_AddSkillExample.java new file mode 100644 index 0000000..9c8ee7f --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_AddSkillExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_AddSkillRequest; +import com.voximplant.apiclient.response.SQ_AddSkillResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Add a new skill. +*/ +public class SQ_AddSkillExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_AddSkillResponse res = client.sQ_AddSkill(new SQ_AddSkillRequest() + .setApplicationId(1) + .setSqSkillName("mySkill") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_BindAgentExample.java b/src/main/java/com/voximplant/apiexamples/SQ_BindAgentExample.java new file mode 100644 index 0000000..6e1f872 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_BindAgentExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_BindAgentRequest; +import com.voximplant.apiclient.response.SQ_BindAgentResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Bind the agent with id 1 and 2 to the queue with id = 1. +*/ +public class SQ_BindAgentExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_BindAgentResponse res = client.sQ_BindAgent(new SQ_BindAgentRequest() + .setApplicationId(1) + .setSqQueueId("1") + .setUserId(MultiArgument.forSingleValue(1L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_BindSkillExample.java b/src/main/java/com/voximplant/apiexamples/SQ_BindSkillExample.java new file mode 100644 index 0000000..062831e --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_BindSkillExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_BindSkillRequest; +import com.voximplant.apiclient.response.SQ_BindSkillResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Bind the skills with id 1 and 2 to all users. +*/ +public class SQ_BindSkillExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_BindSkillResponse res = client.sQ_BindSkill(new SQ_BindSkillRequest() + .setApplicationId(1) + .setUserId(MultiArgument.forAllValues()) + .setSqSkills("[{\"sq_skill_id\":1,\"sq_skill_level\":1},{\"sq_skill_id\":2,\"sq_skill_level\":5}]") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_DelQueueExample.java b/src/main/java/com/voximplant/apiexamples/SQ_DelQueueExample.java new file mode 100644 index 0000000..7f03a9a --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_DelQueueExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_DelQueueRequest; +import com.voximplant.apiclient.response.SQ_DelQueueResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Delete the queue with id = 3. +*/ +public class SQ_DelQueueExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_DelQueueResponse res = client.sQ_DelQueue(new SQ_DelQueueRequest() + .setApplicationId(1) + .setSqQueueId(MultiArgument.forSingleValue(3L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_DelSkillExample.java b/src/main/java/com/voximplant/apiexamples/SQ_DelSkillExample.java new file mode 100644 index 0000000..28151ad --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_DelSkillExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_DelSkillRequest; +import com.voximplant.apiclient.response.SQ_DelSkillResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Delete the skill with id = 5. +*/ +public class SQ_DelSkillExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_DelSkillResponse res = client.sQ_DelSkill(new SQ_DelSkillRequest() + .setApplicationId(1) + .setSqSkillId(MultiArgument.forSingleValue(5L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_DeleteAgentCustomStatusMappingExample.java b/src/main/java/com/voximplant/apiexamples/SQ_DeleteAgentCustomStatusMappingExample.java new file mode 100644 index 0000000..41a94a3 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_DeleteAgentCustomStatusMappingExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_DeleteAgentCustomStatusMappingRequest; +import com.voximplant.apiclient.response.SQ_DeleteAgentCustomStatusMappingResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Remove a mapping for sq_status_name = READY. +*/ +public class SQ_DeleteAgentCustomStatusMappingExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_DeleteAgentCustomStatusMappingResponse res = client.sQ_DeleteAgentCustomStatusMapping(new SQ_DeleteAgentCustomStatusMappingRequest() + .setSqStatusName("READY") + .setApplicationId(1) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_GetAgentCustomStatusMappingExample.java b/src/main/java/com/voximplant/apiexamples/SQ_GetAgentCustomStatusMappingExample.java new file mode 100644 index 0000000..49815eb --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_GetAgentCustomStatusMappingExample.java @@ -0,0 +1,32 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_GetAgentCustomStatusMappingRequest; +import com.voximplant.apiclient.response.SQ_GetAgentCustomStatusMappingResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the status mappings. +*/ +public class SQ_GetAgentCustomStatusMappingExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_GetAgentCustomStatusMappingResponse res = client.sQ_GetAgentCustomStatusMapping(new SQ_GetAgentCustomStatusMappingRequest() + .setApplicationId(1) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_GetAgentsExample.java b/src/main/java/com/voximplant/apiexamples/SQ_GetAgentsExample.java new file mode 100644 index 0000000..78fa56d --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_GetAgentsExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_GetAgentsRequest; +import com.voximplant.apiclient.response.SQ_GetAgentsResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get all agents with their current statuses. +*/ +public class SQ_GetAgentsExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_GetAgentsResponse res = client.sQ_GetAgents(new SQ_GetAgentsRequest() + .setApplicationId(1) + .setWithSqStatuses(true) + .setHandleCalls(false) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_GetQueuesExample.java b/src/main/java/com/voximplant/apiexamples/SQ_GetQueuesExample.java new file mode 100644 index 0000000..135811d --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_GetQueuesExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_GetQueuesRequest; +import com.voximplant.apiclient.response.SQ_GetQueuesResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get all the queues. +*/ +public class SQ_GetQueuesExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_GetQueuesResponse res = client.sQ_GetQueues(new SQ_GetQueuesRequest() + .setApplicationId(1) + .setSqQueueId(MultiArgument.forSingleValue(1L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_GetSkillsExample.java b/src/main/java/com/voximplant/apiexamples/SQ_GetSkillsExample.java new file mode 100644 index 0000000..9f8312d --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_GetSkillsExample.java @@ -0,0 +1,33 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_GetSkillsRequest; +import com.voximplant.apiclient.response.SQ_GetSkillsResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the skills with id 2 and 4 +*/ +public class SQ_GetSkillsExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_GetSkillsResponse res = client.sQ_GetSkills(new SQ_GetSkillsRequest() + .setApplicationId(1) + .setSqSkillId(MultiArgument.forSingleValue(2L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_SetAgentCustomStatusMappingExample.java b/src/main/java/com/voximplant/apiexamples/SQ_SetAgentCustomStatusMappingExample.java new file mode 100644 index 0000000..77065e8 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_SetAgentCustomStatusMappingExample.java @@ -0,0 +1,35 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_SetAgentCustomStatusMappingRequest; +import com.voximplant.apiclient.response.SQ_SetAgentCustomStatusMappingResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Add/rename a status depending on the presence of an internal status +* in agent_status_mapping. +*/ +public class SQ_SetAgentCustomStatusMappingExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_SetAgentCustomStatusMappingResponse res = client.sQ_SetAgentCustomStatusMapping(new SQ_SetAgentCustomStatusMappingRequest() + .setSqStatusName("READY") + .setCustomStatusName("ReadyForCall") + .setApplicationId(1) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_SetAgentInfoExample.java b/src/main/java/com/voximplant/apiexamples/SQ_SetAgentInfoExample.java new file mode 100644 index 0000000..76de041 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_SetAgentInfoExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_SetAgentInfoRequest; +import com.voximplant.apiclient.response.SQ_SetAgentInfoResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Edit settings of the agent with id = 2. +*/ +public class SQ_SetAgentInfoExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_SetAgentInfoResponse res = client.sQ_SetAgentInfo(new SQ_SetAgentInfoRequest() + .setApplicationId(1) + .setUserId(MultiArgument.forSingleValue(2L)) + .setHandleCalls(true) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_SetQueueInfoExample.java b/src/main/java/com/voximplant/apiexamples/SQ_SetQueueInfoExample.java new file mode 100644 index 0000000..df2b56a --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_SetQueueInfoExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_SetQueueInfoRequest; +import com.voximplant.apiclient.response.SQ_SetQueueInfoResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Edit the queue with id = 1. +*/ +public class SQ_SetQueueInfoExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_SetQueueInfoResponse res = client.sQ_SetQueueInfo(new SQ_SetQueueInfoRequest() + .setApplicationId(1) + .setSqQueueId(1) + .setNewSqQueueName("myNewSmartQueue") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_SetSkillInfoExample.java b/src/main/java/com/voximplant/apiexamples/SQ_SetSkillInfoExample.java new file mode 100644 index 0000000..56f90cf --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_SetSkillInfoExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_SetSkillInfoRequest; +import com.voximplant.apiclient.response.SQ_SetSkillInfoResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Edit a skill. +*/ +public class SQ_SetSkillInfoExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_SetSkillInfoResponse res = client.sQ_SetSkillInfo(new SQ_SetSkillInfoRequest() + .setApplicationId(1) + .setSqSkillId(1) + .setNewSqSkillName("newSkill") + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_UnbindAgentExample.java b/src/main/java/com/voximplant/apiexamples/SQ_UnbindAgentExample.java new file mode 100644 index 0000000..d7d7ffb --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_UnbindAgentExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_UnbindAgentRequest; +import com.voximplant.apiclient.response.SQ_UnbindAgentResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Unbind the agent with id 1 from all queues. +*/ +public class SQ_UnbindAgentExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_UnbindAgentResponse res = client.sQ_UnbindAgent(new SQ_UnbindAgentRequest() + .setApplicationId(1) + .setSqQueueId(MultiArgument.forAllValues()) + .setUserId(MultiArgument.forSingleValue(1L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SQ_UnbindSkillExample.java b/src/main/java/com/voximplant/apiexamples/SQ_UnbindSkillExample.java new file mode 100644 index 0000000..ae5296c --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SQ_UnbindSkillExample.java @@ -0,0 +1,34 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SQ_UnbindSkillRequest; +import com.voximplant.apiclient.response.SQ_UnbindSkillResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Unbind the skill with id = 1 from the user with id = 1. +*/ +public class SQ_UnbindSkillExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SQ_UnbindSkillResponse res = client.sQ_UnbindSkill(new SQ_UnbindSkillRequest() + .setApplicationId(1) + .setUserId(MultiArgument.forSingleValue(1L)) + .setSqSkillId(MultiArgument.forSingleValue(1L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SetKeyValueItemExample.java b/src/main/java/com/voximplant/apiexamples/SetKeyValueItemExample.java new file mode 100644 index 0000000..871ccb1 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SetKeyValueItemExample.java @@ -0,0 +1,35 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SetKeyValueItemRequest; +import com.voximplant.apiclient.response.SetKeyValueItemResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* SetKeyValueItem example. +*/ +public class SetKeyValueItemExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SetKeyValueItemResponse res = client.setKeyValueItem(new SetKeyValueItemRequest() + .setApplicationId(1) + .setKey("key1") + .setValue("value1") + .setTtl(864000) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SetPhoneNumberInfoExample.java b/src/main/java/com/voximplant/apiexamples/SetPhoneNumberInfoExample.java new file mode 100644 index 0000000..3d38784 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/SetPhoneNumberInfoExample.java @@ -0,0 +1,32 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.SetPhoneNumberInfoRequest; +import com.voximplant.apiclient.response.SetPhoneNumberInfoResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Enable the auto charging. +*/ +public class SetPhoneNumberInfoExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + SetPhoneNumberInfoResponse res = client.setPhoneNumberInfo(new SetPhoneNumberInfoRequest() + .setPhoneId(MultiArgument.forSingleValue(1L)) + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file diff --git a/src/main/java/com/voximplant/apiexamples/SetSubUserInfoExample.java b/src/main/java/com/voximplant/apiexamples/SetSubUserInfoExample.java index e3e5ad5..49140b5 100644 --- a/src/main/java/com/voximplant/apiexamples/SetSubUserInfoExample.java +++ b/src/main/java/com/voximplant/apiexamples/SetSubUserInfoExample.java @@ -14,7 +14,7 @@ /** * Edit the password and description for the subuser with id = 12 from -* account_id = 1 +* account_id = 1. */ public class SetSubUserInfoExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/SetSubUserRolesExample.java b/src/main/java/com/voximplant/apiexamples/SetSubUserRolesExample.java index cb51701..7c31532 100644 --- a/src/main/java/com/voximplant/apiexamples/SetSubUserRolesExample.java +++ b/src/main/java/com/voximplant/apiexamples/SetSubUserRolesExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Add the roles 1, 2, 3 to the subuser with id = 12 +* Add the roles 1, 2, 3 to the subuser with id = 12. */ public class SetSubUserRolesExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/StartNextCallTaskExample.java b/src/main/java/com/voximplant/apiexamples/StartNextCallTaskExample.java index ba971d7..8b6a0bd 100644 --- a/src/main/java/com/voximplant/apiexamples/StartNextCallTaskExample.java +++ b/src/main/java/com/voximplant/apiexamples/StartNextCallTaskExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Start the next call task +* Start the next call task. */ public class StartNextCallTaskExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/StopCallListProcessingExample.java b/src/main/java/com/voximplant/apiexamples/StopCallListProcessingExample.java index 7abcbfa..9c57d73 100644 --- a/src/main/java/com/voximplant/apiexamples/StopCallListProcessingExample.java +++ b/src/main/java/com/voximplant/apiexamples/StopCallListProcessingExample.java @@ -13,7 +13,7 @@ import java.io.IOException; /** -* Cancel list with id = 1 +* Cancel list with id = 1. */ public class StopCallListProcessingExample { public static void main(String [] args) { diff --git a/src/main/java/com/voximplant/apiexamples/VerifyOutboundTestPhoneNumberExample.java b/src/main/java/com/voximplant/apiexamples/VerifyOutboundTestPhoneNumberExample.java new file mode 100644 index 0000000..bcbd293 --- /dev/null +++ b/src/main/java/com/voximplant/apiexamples/VerifyOutboundTestPhoneNumberExample.java @@ -0,0 +1,31 @@ +package com.voximplant.apiexamples; + +import com.voximplant.apiclient.ClientException; +import com.voximplant.apiclient.request.VerifyOutboundTestPhoneNumberRequest; +import com.voximplant.apiclient.response.VerifyOutboundTestPhoneNumberResponse; +import com.voximplant.apiclient.VoximplantAPIClient; +import com.voximplant.apiclient.util.MultiArgument; +import java.util.Date; +import java.math.BigDecimal; +import java.util.Arrays; +import java.util.Calendar; +import java.util.TimeZone; +import java.io.IOException; + +/** +* Get the verification code. +*/ +public class VerifyOutboundTestPhoneNumberExample { + public static void main(String [] args) { + try { + VoximplantAPIClient client = new VoximplantAPIClient("/path/to/credentials.json"); + + + VerifyOutboundTestPhoneNumberResponse res = client.verifyOutboundTestPhoneNumber(new VerifyOutboundTestPhoneNumberRequest() + ); + System.out.println("OK"); + } catch (IOException | ClientException e) { + e.printStackTrace(); + } + } +} \ No newline at end of file