pipedrive-openapi-client 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Gemfile +9 -0
- data/Gemfile.lock +68 -0
- data/LICENSE +201 -0
- data/README.md +669 -0
- data/Rakefile +10 -0
- data/docs/ActivitiesApi.md +372 -0
- data/docs/Activity.md +47 -0
- data/docs/ActivityFieldsApi.md +61 -0
- data/docs/ActivityTypesApi.md +305 -0
- data/docs/AddFile.md +19 -0
- data/docs/AddNewPipeline.md +19 -0
- data/docs/AddNewPipelineAllOf.md +17 -0
- data/docs/AddedDealFollower.md +19 -0
- data/docs/AddedDealFollowerData.md +23 -0
- data/docs/AdditionalData.md +21 -0
- data/docs/AdditionalDataWithPaginationDetails.md +17 -0
- data/docs/BaseCurrency.md +29 -0
- data/docs/BaseDeal.md +119 -0
- data/docs/BaseMailThread.md +89 -0
- data/docs/BaseMailThreadAllOf.md +59 -0
- data/docs/BaseMailThreadAllOfParties.md +19 -0
- data/docs/BaseMailThreadMessages.md +71 -0
- data/docs/BaseMailThreadMessagesAllOf.md +41 -0
- data/docs/BaseNote.md +49 -0
- data/docs/BaseNoteDealTitle.md +17 -0
- data/docs/BaseNoteOrganization.md +17 -0
- data/docs/BaseNotePerson.md +17 -0
- data/docs/BaseResponse.md +17 -0
- data/docs/BaseRole.md +19 -0
- data/docs/BaseStage.md +35 -0
- data/docs/BaseTeam.md +33 -0
- data/docs/BaseTeamAllOf.md +17 -0
- data/docs/BaseTeamAllOf1.md +19 -0
- data/docs/BaseUser.md +55 -0
- data/docs/BaseUserMe.md +67 -0
- data/docs/BaseUserMeAllOf.md +27 -0
- data/docs/BaseUserMeAllOfLanguage.md +19 -0
- data/docs/BasicDeal.md +37 -0
- data/docs/BasicDealProduct.md +29 -0
- data/docs/BasicGoal.md +27 -0
- data/docs/BasicOrganization.md +21 -0
- data/docs/BasicPerson.md +27 -0
- data/docs/BasicPersonField.md +19 -0
- data/docs/BasicProductField.md +19 -0
- data/docs/CallLogsApi.md +296 -0
- data/docs/CommonMailThread.md +45 -0
- data/docs/CreateRemoteFileAndLinkItToItem.md +19 -0
- data/docs/CreateTeam.md +23 -0
- data/docs/Currencies.md +19 -0
- data/docs/CurrenciesApi.md +68 -0
- data/docs/DealFieldsApi.md +356 -0
- data/docs/DealNonStrictModeFields.md +25 -0
- data/docs/DealNonStrictModeFieldsCreatorUserId.md +29 -0
- data/docs/DealOrganizationData.md +27 -0
- data/docs/DealPersonData.md +23 -0
- data/docs/DealPersonDataEmail.md +21 -0
- data/docs/DealPersonDataPhone.md +21 -0
- data/docs/DealStrictModeFields.md +25 -0
- data/docs/DealSummary.md +23 -0
- data/docs/DealSummaryPerCurrency.md +17 -0
- data/docs/DealSummaryPerCurrencyFull.md +17 -0
- data/docs/DealSummaryPerCurrencyFullCURRENCYID.md +19 -0
- data/docs/DealSummaryPerStages.md +17 -0
- data/docs/DealSummaryPerStagesSTAGEID.md +17 -0
- data/docs/DealSummaryPerStagesSTAGEIDCURRENCYID.md +25 -0
- data/docs/DealUserData.md +27 -0
- data/docs/DealsApi.md +1777 -0
- data/docs/DeleteDeal.md +19 -0
- data/docs/DeleteDealData.md +17 -0
- data/docs/DeleteDealFollower.md +19 -0
- data/docs/DeleteDealFollowerData.md +17 -0
- data/docs/DeleteDealParticipant.md +19 -0
- data/docs/DeleteDealParticipantData.md +17 -0
- data/docs/DeleteDealProduct.md +19 -0
- data/docs/DeleteDealProductData.md +19 -0
- data/docs/DeleteFile.md +19 -0
- data/docs/DeleteFileData.md +17 -0
- data/docs/DeleteMultipleDeals.md +16 -0
- data/docs/DeleteMultipleDealsAllOf.md +19 -0
- data/docs/DeleteMultipleDealsAllOfData.md +17 -0
- data/docs/DeleteMultipleProductFieldsResponse.md +19 -0
- data/docs/DeleteMultipleProductFieldsResponseData.md +17 -0
- data/docs/DeleteNote.md +19 -0
- data/docs/DeleteProductFieldResponse.md +19 -0
- data/docs/DeleteProductFieldResponseData.md +17 -0
- data/docs/DeleteProductFollowerResponse.md +19 -0
- data/docs/DeleteProductFollowerResponseData.md +17 -0
- data/docs/DeleteRole.md +19 -0
- data/docs/DeleteRoleAllOf.md +17 -0
- data/docs/DeleteRoleAllOfData.md +17 -0
- data/docs/DeleteRoleAssignment.md +19 -0
- data/docs/DeleteRoleAssignmentAllOf.md +17 -0
- data/docs/DeleteRoleAssignmentAllOfData.md +17 -0
- data/docs/EditPipeline.md +19 -0
- data/docs/EditPipelineAllOf.md +17 -0
- data/docs/FailResponse.md +19 -0
- data/docs/FieldType.md +17 -0
- data/docs/FileData.md +67 -0
- data/docs/FilesApi.md +509 -0
- data/docs/FilterType.md +16 -0
- data/docs/FiltersApi.md +408 -0
- data/docs/FindProductsByNameResponse.md +21 -0
- data/docs/FindProductsByNameResponseData.md +29 -0
- data/docs/FullRole.md +29 -0
- data/docs/FullRoleAllOf.md +17 -0
- data/docs/GetAddProductAttachementDetails.md +19 -0
- data/docs/GetAddUpdateStage.md +19 -0
- data/docs/GetAddedDeal.md +23 -0
- data/docs/GetAddedDealAdditionalData.md +17 -0
- data/docs/GetAddedDealRelatedObjects.md +21 -0
- data/docs/GetAllFiles.md +21 -0
- data/docs/GetAllPipelines.md +19 -0
- data/docs/GetAllPipelinesAllOf.md +17 -0
- data/docs/GetAllProductFieldsResponse.md +21 -0
- data/docs/GetDeal.md +23 -0
- data/docs/GetDealAdditionalData.md +17 -0
- data/docs/GetDeals.md +23 -0
- data/docs/GetDealsByName.md +21 -0
- data/docs/GetDealsByNameAdditionalData.md +17 -0
- data/docs/GetDealsByNameData.md +41 -0
- data/docs/GetDealsConversionRatesInPipeline.md +19 -0
- data/docs/GetDealsConversionRatesInPipelineAllOf.md +17 -0
- data/docs/GetDealsConversionRatesInPipelineAllOfData.md +21 -0
- data/docs/GetDealsConversionRatesInPipelineAllOfDataStageConversions.md +21 -0
- data/docs/GetDealsMovementsInPipeline.md +19 -0
- data/docs/GetDealsMovementsInPipelineAllOf.md +17 -0
- data/docs/GetDealsMovementsInPipelineAllOfData.md +27 -0
- data/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDays.md +19 -0
- data/docs/GetDealsMovementsInPipelineAllOfDataAverageAgeInDaysByStages.md +19 -0
- data/docs/GetDealsMovementsInPipelineAllOfDataMovementsBetweenStages.md +17 -0
- data/docs/GetDealsMovementsInPipelineAllOfDataNewDeals.md +23 -0
- data/docs/GetDealsMovementsInPipelineAllOfDataNewDealsFormattedValues.md +17 -0
- data/docs/GetDealsMovementsInPipelineAllOfDataNewDealsValues.md +17 -0
- data/docs/GetDealsSummary.md +19 -0
- data/docs/GetDealsSummaryData.md +29 -0
- data/docs/GetDealsSummaryDataValuesTotal.md +25 -0
- data/docs/GetDealsSummaryDataWeightedValuesTotal.md +21 -0
- data/docs/GetDealsTimeline.md +19 -0
- data/docs/GetDealsTimelineData.md +23 -0
- data/docs/GetDealsTimelineDataTotals.md +31 -0
- data/docs/GetDuplicatedDeal.md +19 -0
- data/docs/GetMergedDeal.md +19 -0
- data/docs/GetNotes.md +21 -0
- data/docs/GetOneFile.md +19 -0
- data/docs/GetOnePipeline.md +19 -0
- data/docs/GetOnePipelineAllOf.md +17 -0
- data/docs/GetOneStage.md +19 -0
- data/docs/GetProductAttachementDetails.md +19 -0
- data/docs/GetProductFieldResponse.md +19 -0
- data/docs/GetRole.md +21 -0
- data/docs/GetRoleAllOf.md +19 -0
- data/docs/GetRoleAllOfAdditionalData.md +17 -0
- data/docs/GetRoleAssignments.md +21 -0
- data/docs/GetRoleAssignmentsAllOf.md +19 -0
- data/docs/GetRoleSettings.md +19 -0
- data/docs/GetRoleSettingsAllOf.md +17 -0
- data/docs/GetRoleSubroles.md +21 -0
- data/docs/GetRoleSubrolesAllOf.md +19 -0
- data/docs/GetRoles.md +21 -0
- data/docs/GetRolesAllOf.md +19 -0
- data/docs/GetStageDeals.md +21 -0
- data/docs/GetStages.md +19 -0
- data/docs/GlobalMessageBaseResponse.md +17 -0
- data/docs/GlobalMessageData.md +27 -0
- data/docs/GlobalMessageDelete.md +23 -0
- data/docs/GlobalMessageDeleteAllOf.md +21 -0
- data/docs/GlobalMessageGet.md +23 -0
- data/docs/GlobalMessageGetAllOf.md +21 -0
- data/docs/GlobalMessageUserData.md +21 -0
- data/docs/GlobalMessagesApi.md +120 -0
- data/docs/GoalsApi.md +318 -0
- data/docs/IconKey.md +16 -0
- data/docs/InlineObject.md +21 -0
- data/docs/InlineObject1.md +23 -0
- data/docs/InlineObject10.md +23 -0
- data/docs/InlineObject11.md +19 -0
- data/docs/InlineObject12.md +21 -0
- data/docs/InlineObject13.md +19 -0
- data/docs/InlineObject14.md +31 -0
- data/docs/InlineObject15.md +33 -0
- data/docs/InlineObject16.md +19 -0
- data/docs/InlineObject17.md +19 -0
- data/docs/InlineObject18.md +23 -0
- data/docs/InlineObject19.md +17 -0
- data/docs/InlineObject2.md +37 -0
- data/docs/InlineObject20.md +17 -0
- data/docs/InlineObject21.md +17 -0
- data/docs/InlineObject22.md +17 -0
- data/docs/InlineObject23.md +25 -0
- data/docs/InlineObject24.md +17 -0
- data/docs/InlineObject25.md +17 -0
- data/docs/InlineObject26.md +19 -0
- data/docs/InlineObject27.md +17 -0
- data/docs/InlineObject28.md +17 -0
- data/docs/InlineObject29.md +21 -0
- data/docs/InlineObject3.md +17 -0
- data/docs/InlineObject30.md +17 -0
- data/docs/InlineObject31.md +17 -0
- data/docs/InlineObject32.md +17 -0
- data/docs/InlineObject33.md +27 -0
- data/docs/InlineObject4.md +17 -0
- data/docs/InlineObject5.md +17 -0
- data/docs/InlineObject6.md +17 -0
- data/docs/InlineObject7.md +19 -0
- data/docs/InlineObject8.md +27 -0
- data/docs/InlineObject9.md +25 -0
- data/docs/InlineResponse200.md +21 -0
- data/docs/InlineResponse2001.md +19 -0
- data/docs/InlineResponse20010.md +19 -0
- data/docs/InlineResponse20010Data.md +17 -0
- data/docs/InlineResponse20011.md +19 -0
- data/docs/InlineResponse20011Data.md +17 -0
- data/docs/InlineResponse2002.md +19 -0
- data/docs/InlineResponse2003.md +17 -0
- data/docs/InlineResponse2004.md +21 -0
- data/docs/InlineResponse2005.md +17 -0
- data/docs/InlineResponse2006.md +19 -0
- data/docs/InlineResponse2007.md +19 -0
- data/docs/InlineResponse2007Data.md +25 -0
- data/docs/InlineResponse2008.md +19 -0
- data/docs/InlineResponse2008Data.md +17 -0
- data/docs/InlineResponse2009.md +19 -0
- data/docs/InlineResponse2009Data.md +17 -0
- data/docs/InlineResponse200AdditionalData.md +21 -0
- data/docs/InlineResponse201.md +19 -0
- data/docs/InlineResponse201Data.md +47 -0
- data/docs/InlineResponse400.md +25 -0
- data/docs/InlineResponse403.md +25 -0
- data/docs/InlineResponse404.md +25 -0
- data/docs/InlineResponse4041.md +25 -0
- data/docs/InlineResponse409.md +25 -0
- data/docs/InlineResponse410.md +25 -0
- data/docs/InlineResponse500.md +25 -0
- data/docs/ItemSearchApi.md +154 -0
- data/docs/LeadsApi.md +651 -0
- data/docs/LeadsValue.md +19 -0
- data/docs/LinkRemoteFileToItem.md +19 -0
- data/docs/MailMessage.md +25 -0
- data/docs/MailMessageAllOf.md +17 -0
- data/docs/MailMessageData.md +73 -0
- data/docs/MailMessagesApi.md +70 -0
- data/docs/MailParticipant.md +27 -0
- data/docs/MailServiceBaseResponse.md +23 -0
- data/docs/MailThread.md +19 -0
- data/docs/MailThreadAllOf.md +17 -0
- data/docs/MailThreadDelete.md +19 -0
- data/docs/MailThreadDeleteAllOf.md +17 -0
- data/docs/MailThreadMessages.md +19 -0
- data/docs/MailThreadMessagesAllOf.md +17 -0
- data/docs/MailThreadOne.md +19 -0
- data/docs/MailThreadOneAllOf.md +17 -0
- data/docs/MailThreadParticipant.md +33 -0
- data/docs/MailThreadPut.md +19 -0
- data/docs/MailThreadsApi.md +314 -0
- data/docs/NewDeal.md +39 -0
- data/docs/NewDealAllOf.md +17 -0
- data/docs/NewDealProduct.md +31 -0
- data/docs/NewDealProductAllOf.md +17 -0
- data/docs/NewFollowerResponse.md +19 -0
- data/docs/NewFollowerResponseData.md +23 -0
- data/docs/NewGoal.md +16 -0
- data/docs/NewOrganization.md +23 -0
- data/docs/NewOrganizationAllOf.md +17 -0
- data/docs/NewOrganizationField.md +21 -0
- data/docs/NewPerson.md +29 -0
- data/docs/NewPersonAllOf.md +17 -0
- data/docs/NewPersonField.md +21 -0
- data/docs/NewProductField.md +21 -0
- data/docs/NewProductFieldAllOf.md +21 -0
- data/docs/Note.md +33 -0
- data/docs/NoteCreatorUser.md +23 -0
- data/docs/NoteFieldsApi.md +61 -0
- data/docs/NotesApi.md +360 -0
- data/docs/NumberBoolean.md +16 -0
- data/docs/NumberBooleanDefault0.md +16 -0
- data/docs/NumberBooleanDefault1.md +16 -0
- data/docs/OrganizationFieldsApi.md +348 -0
- data/docs/OrganizationRelationship.md +23 -0
- data/docs/OrganizationRelationshipsApi.md +303 -0
- data/docs/OrganizationsApi.md +1178 -0
- data/docs/PermissionSets.md +19 -0
- data/docs/PermissionSetsAllOf.md +17 -0
- data/docs/PermissionSetsApi.md +171 -0
- data/docs/PermissionSetsItem.md +21 -0
- data/docs/PersonFieldsApi.md +348 -0
- data/docs/PersonsApi.md +1311 -0
- data/docs/Pipeline.md +23 -0
- data/docs/PipelinesApi.md +524 -0
- data/docs/PostNote.md +19 -0
- data/docs/PostRoleAssignment.md +19 -0
- data/docs/PostRoleAssignmentAllOf.md +17 -0
- data/docs/PostRoleAssignmentAllOfData.md +19 -0
- data/docs/PostRoleSettings.md +19 -0
- data/docs/PostRoleSettingsAllOf.md +17 -0
- data/docs/PostRoleSettingsAllOfData.md +19 -0
- data/docs/PostRoles.md +19 -0
- data/docs/PostRolesAllOf.md +17 -0
- data/docs/PostRolesAllOfData.md +17 -0
- data/docs/Product.md +31 -0
- data/docs/ProductAttachementFields.md +41 -0
- data/docs/ProductField.md +51 -0
- data/docs/ProductFieldAllOf.md +45 -0
- data/docs/ProductFieldsApi.md +358 -0
- data/docs/ProductsApi.md +809 -0
- data/docs/PutRole.md +19 -0
- data/docs/PutRoleAllOf.md +17 -0
- data/docs/PutRoleAllOfData.md +17 -0
- data/docs/RecentsApi.md +73 -0
- data/docs/RoleAssignment.md +27 -0
- data/docs/RoleAssignmentAllOf.md +23 -0
- data/docs/RoleSettings.md +31 -0
- data/docs/RolesAdditionalData.md +17 -0
- data/docs/RolesAdditionalDataPagination.md +21 -0
- data/docs/RolesApi.md +623 -0
- data/docs/SearchResultsApi.md +148 -0
- data/docs/SinglePermissionSetsItem.md +23 -0
- data/docs/SinglePermissionSetsItemAllOf.md +17 -0
- data/docs/Stage.md +25 -0
- data/docs/StagesApi.md +424 -0
- data/docs/SubRole.md +27 -0
- data/docs/SubRoleAllOf.md +23 -0
- data/docs/Teams.md +19 -0
- data/docs/TeamsAllOf.md +17 -0
- data/docs/TeamsApi.md +498 -0
- data/docs/Unauthorized.md +21 -0
- data/docs/UpdateFile.md +19 -0
- data/docs/UpdateTeam.md +27 -0
- data/docs/UpdateTeamAllOf.md +19 -0
- data/docs/User.md +19 -0
- data/docs/UserAllOf.md +17 -0
- data/docs/UserAssignmentToPermissionSet.md +23 -0
- data/docs/UserAssignmentsToPermissionSet.md +19 -0
- data/docs/UserAssignmentsToPermissionSetAllOf.md +17 -0
- data/docs/UserConnections.md +19 -0
- data/docs/UserConnectionsAllOf.md +17 -0
- data/docs/UserConnectionsAllOfData.md +17 -0
- data/docs/UserConnectionsApi.md +62 -0
- data/docs/UserIDs.md +19 -0
- data/docs/UserIDsAllOf.md +17 -0
- data/docs/UserMe.md +19 -0
- data/docs/UserMeAllOf.md +17 -0
- data/docs/UserSettings.md +19 -0
- data/docs/UserSettingsAllOf.md +17 -0
- data/docs/UserSettingsApi.md +62 -0
- data/docs/UserSettingsItem.md +35 -0
- data/docs/Users.md +19 -0
- data/docs/UsersAllOf.md +17 -0
- data/docs/UsersApi.md +818 -0
- data/docs/VisibleTo.md +16 -0
- data/docs/WebhooksApi.md +190 -0
- data/git_push.sh +58 -0
- data/lib/pipedrive-openapi-client.rb +384 -0
- data/lib/pipedrive-openapi-client/api/activities_api.rb +403 -0
- data/lib/pipedrive-openapi-client/api/activity_fields_api.rb +76 -0
- data/lib/pipedrive-openapi-client/api/activity_types_api.rb +344 -0
- data/lib/pipedrive-openapi-client/api/call_logs_api.rb +339 -0
- data/lib/pipedrive-openapi-client/api/currencies_api.rb +81 -0
- data/lib/pipedrive-openapi-client/api/deal_fields_api.rb +391 -0
- data/lib/pipedrive-openapi-client/api/deals_api.rb +2018 -0
- data/lib/pipedrive-openapi-client/api/files_api.rb +630 -0
- data/lib/pipedrive-openapi-client/api/filters_api.rb +436 -0
- data/lib/pipedrive-openapi-client/api/global_messages_api.rb +143 -0
- data/lib/pipedrive-openapi-client/api/goals_api.rb +405 -0
- data/lib/pipedrive-openapi-client/api/item_search_api.rb +228 -0
- data/lib/pipedrive-openapi-client/api/leads_api.rb +697 -0
- data/lib/pipedrive-openapi-client/api/mail_messages_api.rb +87 -0
- data/lib/pipedrive-openapi-client/api/mail_threads_api.rb +358 -0
- data/lib/pipedrive-openapi-client/api/note_fields_api.rb +76 -0
- data/lib/pipedrive-openapi-client/api/notes_api.rb +422 -0
- data/lib/pipedrive-openapi-client/api/organization_fields_api.rb +385 -0
- data/lib/pipedrive-openapi-client/api/organization_relationships_api.rb +340 -0
- data/lib/pipedrive-openapi-client/api/organizations_api.rb +1303 -0
- data/lib/pipedrive-openapi-client/api/permission_sets_api.rb +204 -0
- data/lib/pipedrive-openapi-client/api/person_fields_api.rb +385 -0
- data/lib/pipedrive-openapi-client/api/persons_api.rb +1448 -0
- data/lib/pipedrive-openapi-client/api/pipelines_api.rb +595 -0
- data/lib/pipedrive-openapi-client/api/product_fields_api.rb +391 -0
- data/lib/pipedrive-openapi-client/api/products_api.rb +904 -0
- data/lib/pipedrive-openapi-client/api/recents_api.rb +96 -0
- data/lib/pipedrive-openapi-client/api/roles_api.rb +741 -0
- data/lib/pipedrive-openapi-client/api/search_results_api.rb +194 -0
- data/lib/pipedrive-openapi-client/api/stages_api.rb +467 -0
- data/lib/pipedrive-openapi-client/api/teams_api.rb +571 -0
- data/lib/pipedrive-openapi-client/api/user_connections_api.rb +78 -0
- data/lib/pipedrive-openapi-client/api/user_settings_api.rb +78 -0
- data/lib/pipedrive-openapi-client/api/users_api.rb +925 -0
- data/lib/pipedrive-openapi-client/api/webhooks_api.rb +238 -0
- data/lib/pipedrive-openapi-client/api_client.rb +404 -0
- data/lib/pipedrive-openapi-client/api_error.rb +57 -0
- data/lib/pipedrive-openapi-client/configuration.rb +250 -0
- data/lib/pipedrive-openapi-client/models/activity.rb +404 -0
- data/lib/pipedrive-openapi-client/models/add_file.rb +216 -0
- data/lib/pipedrive-openapi-client/models/add_new_pipeline.rb +224 -0
- data/lib/pipedrive-openapi-client/models/add_new_pipeline_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/added_deal_follower.rb +216 -0
- data/lib/pipedrive-openapi-client/models/added_deal_follower_data.rb +237 -0
- data/lib/pipedrive-openapi-client/models/additional_data.rb +228 -0
- data/lib/pipedrive-openapi-client/models/additional_data_with_pagination_details.rb +207 -0
- data/lib/pipedrive-openapi-client/models/base_currency.rb +267 -0
- data/lib/pipedrive-openapi-client/models/base_deal.rb +724 -0
- data/lib/pipedrive-openapi-client/models/base_mail_thread.rb +582 -0
- data/lib/pipedrive-openapi-client/models/base_mail_thread_all_of.rb +423 -0
- data/lib/pipedrive-openapi-client/models/base_mail_thread_all_of_parties.rb +222 -0
- data/lib/pipedrive-openapi-client/models/base_mail_thread_messages.rb +495 -0
- data/lib/pipedrive-openapi-client/models/base_mail_thread_messages_all_of.rb +336 -0
- data/lib/pipedrive-openapi-client/models/base_note.rb +363 -0
- data/lib/pipedrive-openapi-client/models/base_note_deal_title.rb +208 -0
- data/lib/pipedrive-openapi-client/models/base_note_organization.rb +208 -0
- data/lib/pipedrive-openapi-client/models/base_note_person.rb +208 -0
- data/lib/pipedrive-openapi-client/models/base_response.rb +207 -0
- data/lib/pipedrive-openapi-client/models/base_role.rb +218 -0
- data/lib/pipedrive-openapi-client/models/base_stage.rb +331 -0
- data/lib/pipedrive-openapi-client/models/base_team.rb +306 -0
- data/lib/pipedrive-openapi-client/models/base_team_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/base_team_all_of1.rb +217 -0
- data/lib/pipedrive-openapi-client/models/base_user.rb +399 -0
- data/lib/pipedrive-openapi-client/models/base_user_me.rb +466 -0
- data/lib/pipedrive-openapi-client/models/base_user_me_all_of.rb +256 -0
- data/lib/pipedrive-openapi-client/models/base_user_me_all_of_language.rb +218 -0
- data/lib/pipedrive-openapi-client/models/basic_deal.rb +341 -0
- data/lib/pipedrive-openapi-client/models/basic_deal_product.rb +271 -0
- data/lib/pipedrive-openapi-client/models/basic_goal.rb +291 -0
- data/lib/pipedrive-openapi-client/models/basic_organization.rb +227 -0
- data/lib/pipedrive-openapi-client/models/basic_person.rb +261 -0
- data/lib/pipedrive-openapi-client/models/basic_person_field.rb +222 -0
- data/lib/pipedrive-openapi-client/models/basic_product_field.rb +224 -0
- data/lib/pipedrive-openapi-client/models/common_mail_thread.rb +348 -0
- data/lib/pipedrive-openapi-client/models/create_remote_file_and_link_it_to_item.rb +216 -0
- data/lib/pipedrive-openapi-client/models/create_team.rb +247 -0
- data/lib/pipedrive-openapi-client/models/currencies.rb +219 -0
- data/lib/pipedrive-openapi-client/models/deal_non_strict_mode_fields.rb +243 -0
- data/lib/pipedrive-openapi-client/models/deal_non_strict_mode_fields_creator_user_id.rb +269 -0
- data/lib/pipedrive-openapi-client/models/deal_organization_data.rb +258 -0
- data/lib/pipedrive-openapi-client/models/deal_person_data.rb +242 -0
- data/lib/pipedrive-openapi-client/models/deal_person_data_email.rb +227 -0
- data/lib/pipedrive-openapi-client/models/deal_person_data_phone.rb +227 -0
- data/lib/pipedrive-openapi-client/models/deal_strict_mode_fields.rb +247 -0
- data/lib/pipedrive-openapi-client/models/deal_summary.rb +235 -0
- data/lib/pipedrive-openapi-client/models/deal_summary_per_currency.rb +208 -0
- data/lib/pipedrive-openapi-client/models/deal_summary_per_currency_full.rb +207 -0
- data/lib/pipedrive-openapi-client/models/deal_summary_per_currency_full_currencyid.rb +218 -0
- data/lib/pipedrive-openapi-client/models/deal_summary_per_stages.rb +207 -0
- data/lib/pipedrive-openapi-client/models/deal_summary_per_stages_stageid.rb +207 -0
- data/lib/pipedrive-openapi-client/models/deal_summary_per_stages_stageidcurrencyid.rb +248 -0
- data/lib/pipedrive-openapi-client/models/deal_user_data.rb +259 -0
- data/lib/pipedrive-openapi-client/models/delete_deal.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_deal_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/delete_deal_follower.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_deal_follower_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/delete_deal_participant.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_deal_participant_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/delete_deal_product.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_deal_product_data.rb +217 -0
- data/lib/pipedrive-openapi-client/models/delete_file.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_file_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/delete_multiple_deals.rb +208 -0
- data/lib/pipedrive-openapi-client/models/delete_multiple_deals_all_of.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_multiple_deals_all_of_data.rb +209 -0
- data/lib/pipedrive-openapi-client/models/delete_multiple_product_fields_response.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_multiple_product_fields_response_data.rb +209 -0
- data/lib/pipedrive-openapi-client/models/delete_note.rb +217 -0
- data/lib/pipedrive-openapi-client/models/delete_product_field_response.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_product_field_response_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/delete_product_follower_response.rb +216 -0
- data/lib/pipedrive-openapi-client/models/delete_product_follower_response_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/delete_role.rb +224 -0
- data/lib/pipedrive-openapi-client/models/delete_role_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/delete_role_all_of_data.rb +208 -0
- data/lib/pipedrive-openapi-client/models/delete_role_assignment.rb +224 -0
- data/lib/pipedrive-openapi-client/models/delete_role_assignment_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/delete_role_assignment_all_of_data.rb +208 -0
- data/lib/pipedrive-openapi-client/models/edit_pipeline.rb +225 -0
- data/lib/pipedrive-openapi-client/models/edit_pipeline_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/fail_response.rb +217 -0
- data/lib/pipedrive-openapi-client/models/field_type.rb +246 -0
- data/lib/pipedrive-openapi-client/models/file_data.rb +458 -0
- data/lib/pipedrive-openapi-client/models/filter_type.rb +39 -0
- data/lib/pipedrive-openapi-client/models/find_products_by_name_response.rb +226 -0
- data/lib/pipedrive-openapi-client/models/find_products_by_name_response_data.rb +267 -0
- data/lib/pipedrive-openapi-client/models/full_role.rb +275 -0
- data/lib/pipedrive-openapi-client/models/full_role_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/get_add_product_attachement_details.rb +217 -0
- data/lib/pipedrive-openapi-client/models/get_add_update_stage.rb +216 -0
- data/lib/pipedrive-openapi-client/models/get_added_deal.rb +235 -0
- data/lib/pipedrive-openapi-client/models/get_added_deal_additional_data.rb +209 -0
- data/lib/pipedrive-openapi-client/models/get_added_deal_related_objects.rb +224 -0
- data/lib/pipedrive-openapi-client/models/get_all_files.rb +228 -0
- data/lib/pipedrive-openapi-client/models/get_all_pipelines.rb +227 -0
- data/lib/pipedrive-openapi-client/models/get_all_pipelines_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/get_all_product_fields_response.rb +229 -0
- data/lib/pipedrive-openapi-client/models/get_deal.rb +234 -0
- data/lib/pipedrive-openapi-client/models/get_deal_additional_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/get_deals.rb +237 -0
- data/lib/pipedrive-openapi-client/models/get_deals_by_name.rb +227 -0
- data/lib/pipedrive-openapi-client/models/get_deals_by_name_additional_data.rb +206 -0
- data/lib/pipedrive-openapi-client/models/get_deals_by_name_data.rb +328 -0
- data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline.rb +224 -0
- data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline_all_of_data.rb +230 -0
- data/lib/pipedrive-openapi-client/models/get_deals_conversion_rates_in_pipeline_all_of_data_stage_conversions.rb +227 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline.rb +224 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data.rb +252 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days.rb +220 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days_by_stages.rb +218 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_movements_between_stages.rb +208 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_new_deals.rb +238 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_new_deals_formatted_values.rb +208 -0
- data/lib/pipedrive-openapi-client/models/get_deals_movements_in_pipeline_all_of_data_new_deals_values.rb +208 -0
- data/lib/pipedrive-openapi-client/models/get_deals_summary.rb +216 -0
- data/lib/pipedrive-openapi-client/models/get_deals_summary_data.rb +266 -0
- data/lib/pipedrive-openapi-client/models/get_deals_summary_data_values_total.rb +248 -0
- data/lib/pipedrive-openapi-client/models/get_deals_summary_data_weighted_values_total.rb +228 -0
- data/lib/pipedrive-openapi-client/models/get_deals_timeline.rb +216 -0
- data/lib/pipedrive-openapi-client/models/get_deals_timeline_data.rb +238 -0
- data/lib/pipedrive-openapi-client/models/get_deals_timeline_data_totals.rb +278 -0
- data/lib/pipedrive-openapi-client/models/get_duplicated_deal.rb +217 -0
- data/lib/pipedrive-openapi-client/models/get_merged_deal.rb +216 -0
- data/lib/pipedrive-openapi-client/models/get_notes.rb +228 -0
- data/lib/pipedrive-openapi-client/models/get_one_file.rb +216 -0
- data/lib/pipedrive-openapi-client/models/get_one_pipeline.rb +225 -0
- data/lib/pipedrive-openapi-client/models/get_one_pipeline_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/get_one_stage.rb +217 -0
- data/lib/pipedrive-openapi-client/models/get_product_attachement_details.rb +217 -0
- data/lib/pipedrive-openapi-client/models/get_product_field_response.rb +216 -0
- data/lib/pipedrive-openapi-client/models/get_role.rb +233 -0
- data/lib/pipedrive-openapi-client/models/get_role_all_of.rb +215 -0
- data/lib/pipedrive-openapi-client/models/get_role_all_of_additional_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/get_role_assignments.rb +236 -0
- data/lib/pipedrive-openapi-client/models/get_role_assignments_all_of.rb +218 -0
- data/lib/pipedrive-openapi-client/models/get_role_settings.rb +224 -0
- data/lib/pipedrive-openapi-client/models/get_role_settings_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/get_role_subroles.rb +236 -0
- data/lib/pipedrive-openapi-client/models/get_role_subroles_all_of.rb +218 -0
- data/lib/pipedrive-openapi-client/models/get_roles.rb +236 -0
- data/lib/pipedrive-openapi-client/models/get_roles_all_of.rb +218 -0
- data/lib/pipedrive-openapi-client/models/get_stage_deals.rb +228 -0
- data/lib/pipedrive-openapi-client/models/get_stages.rb +219 -0
- data/lib/pipedrive-openapi-client/models/global_message_base_response.rb +207 -0
- data/lib/pipedrive-openapi-client/models/global_message_data.rb +257 -0
- data/lib/pipedrive-openapi-client/models/global_message_delete.rb +244 -0
- data/lib/pipedrive-openapi-client/models/global_message_delete_all_of.rb +226 -0
- data/lib/pipedrive-openapi-client/models/global_message_get.rb +247 -0
- data/lib/pipedrive-openapi-client/models/global_message_get_all_of.rb +229 -0
- data/lib/pipedrive-openapi-client/models/global_message_user_data.rb +228 -0
- data/lib/pipedrive-openapi-client/models/icon_key.rb +74 -0
- data/lib/pipedrive-openapi-client/models/inline_object.rb +236 -0
- data/lib/pipedrive-openapi-client/models/inline_object1.rb +236 -0
- data/lib/pipedrive-openapi-client/models/inline_object10.rb +303 -0
- data/lib/pipedrive-openapi-client/models/inline_object11.rb +217 -0
- data/lib/pipedrive-openapi-client/models/inline_object12.rb +242 -0
- data/lib/pipedrive-openapi-client/models/inline_object13.rb +222 -0
- data/lib/pipedrive-openapi-client/models/inline_object14.rb +283 -0
- data/lib/pipedrive-openapi-client/models/inline_object15.rb +293 -0
- data/lib/pipedrive-openapi-client/models/inline_object16.rb +261 -0
- data/lib/pipedrive-openapi-client/models/inline_object17.rb +216 -0
- data/lib/pipedrive-openapi-client/models/inline_object18.rb +234 -0
- data/lib/pipedrive-openapi-client/models/inline_object19.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object2.rb +361 -0
- data/lib/pipedrive-openapi-client/models/inline_object20.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object21.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object22.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object23.rb +252 -0
- data/lib/pipedrive-openapi-client/models/inline_object24.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object25.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object26.rb +260 -0
- data/lib/pipedrive-openapi-client/models/inline_object27.rb +214 -0
- data/lib/pipedrive-openapi-client/models/inline_object28.rb +214 -0
- data/lib/pipedrive-openapi-client/models/inline_object29.rb +244 -0
- data/lib/pipedrive-openapi-client/models/inline_object3.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object30.rb +214 -0
- data/lib/pipedrive-openapi-client/models/inline_object31.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object32.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object33.rb +318 -0
- data/lib/pipedrive-openapi-client/models/inline_object4.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object5.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object6.rb +212 -0
- data/lib/pipedrive-openapi-client/models/inline_object7.rb +222 -0
- data/lib/pipedrive-openapi-client/models/inline_object8.rb +262 -0
- data/lib/pipedrive-openapi-client/models/inline_object9.rb +330 -0
- data/lib/pipedrive-openapi-client/models/inline_response200.rb +226 -0
- data/lib/pipedrive-openapi-client/models/inline_response2001.rb +215 -0
- data/lib/pipedrive-openapi-client/models/inline_response20010.rb +216 -0
- data/lib/pipedrive-openapi-client/models/inline_response20010_data.rb +209 -0
- data/lib/pipedrive-openapi-client/models/inline_response20011.rb +216 -0
- data/lib/pipedrive-openapi-client/models/inline_response20011_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/inline_response2002.rb +215 -0
- data/lib/pipedrive-openapi-client/models/inline_response2003.rb +206 -0
- data/lib/pipedrive-openapi-client/models/inline_response2004.rb +226 -0
- data/lib/pipedrive-openapi-client/models/inline_response2005.rb +206 -0
- data/lib/pipedrive-openapi-client/models/inline_response2006.rb +217 -0
- data/lib/pipedrive-openapi-client/models/inline_response2007.rb +215 -0
- data/lib/pipedrive-openapi-client/models/inline_response2007_data.rb +246 -0
- data/lib/pipedrive-openapi-client/models/inline_response2008.rb +217 -0
- data/lib/pipedrive-openapi-client/models/inline_response2008_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/inline_response2009.rb +216 -0
- data/lib/pipedrive-openapi-client/models/inline_response2009_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/inline_response200_additional_data.rb +227 -0
- data/lib/pipedrive-openapi-client/models/inline_response201.rb +215 -0
- data/lib/pipedrive-openapi-client/models/inline_response201_data.rb +362 -0
- data/lib/pipedrive-openapi-client/models/inline_response400.rb +244 -0
- data/lib/pipedrive-openapi-client/models/inline_response403.rb +244 -0
- data/lib/pipedrive-openapi-client/models/inline_response404.rb +244 -0
- data/lib/pipedrive-openapi-client/models/inline_response4041.rb +244 -0
- data/lib/pipedrive-openapi-client/models/inline_response409.rb +244 -0
- data/lib/pipedrive-openapi-client/models/inline_response410.rb +244 -0
- data/lib/pipedrive-openapi-client/models/inline_response500.rb +244 -0
- data/lib/pipedrive-openapi-client/models/leads_value.rb +226 -0
- data/lib/pipedrive-openapi-client/models/link_remote_file_to_item.rb +216 -0
- data/lib/pipedrive-openapi-client/models/mail_message.rb +254 -0
- data/lib/pipedrive-openapi-client/models/mail_message_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/mail_message_data.rb +530 -0
- data/lib/pipedrive-openapi-client/models/mail_participant.rb +257 -0
- data/lib/pipedrive-openapi-client/models/mail_service_base_response.rb +237 -0
- data/lib/pipedrive-openapi-client/models/mail_thread.rb +227 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_delete.rb +227 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_delete_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_messages.rb +227 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_messages_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_one.rb +225 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_one_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_participant.rb +289 -0
- data/lib/pipedrive-openapi-client/models/mail_thread_put.rb +227 -0
- data/lib/pipedrive-openapi-client/models/new_deal.rb +364 -0
- data/lib/pipedrive-openapi-client/models/new_deal_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/new_deal_product.rb +304 -0
- data/lib/pipedrive-openapi-client/models/new_deal_product_all_of.rb +212 -0
- data/lib/pipedrive-openapi-client/models/new_follower_response.rb +216 -0
- data/lib/pipedrive-openapi-client/models/new_follower_response_data.rb +237 -0
- data/lib/pipedrive-openapi-client/models/new_goal.rb +230 -0
- data/lib/pipedrive-openapi-client/models/new_organization.rb +250 -0
- data/lib/pipedrive-openapi-client/models/new_organization_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/new_organization_field.rb +279 -0
- data/lib/pipedrive-openapi-client/models/new_person.rb +284 -0
- data/lib/pipedrive-openapi-client/models/new_person_all_of.rb +207 -0
- data/lib/pipedrive-openapi-client/models/new_person_field.rb +279 -0
- data/lib/pipedrive-openapi-client/models/new_product_field.rb +281 -0
- data/lib/pipedrive-openapi-client/models/new_product_field_all_of.rb +273 -0
- data/lib/pipedrive-openapi-client/models/note.rb +292 -0
- data/lib/pipedrive-openapi-client/models/note_creator_user.rb +238 -0
- data/lib/pipedrive-openapi-client/models/number_boolean.rb +36 -0
- data/lib/pipedrive-openapi-client/models/number_boolean_default0.rb +208 -0
- data/lib/pipedrive-openapi-client/models/number_boolean_default1.rb +208 -0
- data/lib/pipedrive-openapi-client/models/organization_relationship.rb +271 -0
- data/lib/pipedrive-openapi-client/models/permission_sets.rb +227 -0
- data/lib/pipedrive-openapi-client/models/permission_sets_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/permission_sets_item.rb +227 -0
- data/lib/pipedrive-openapi-client/models/pipeline.rb +235 -0
- data/lib/pipedrive-openapi-client/models/post_note.rb +216 -0
- data/lib/pipedrive-openapi-client/models/post_role_assignment.rb +224 -0
- data/lib/pipedrive-openapi-client/models/post_role_assignment_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/post_role_assignment_all_of_data.rb +218 -0
- data/lib/pipedrive-openapi-client/models/post_role_settings.rb +224 -0
- data/lib/pipedrive-openapi-client/models/post_role_settings_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/post_role_settings_all_of_data.rb +252 -0
- data/lib/pipedrive-openapi-client/models/post_roles.rb +224 -0
- data/lib/pipedrive-openapi-client/models/post_roles_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/post_roles_all_of_data.rb +208 -0
- data/lib/pipedrive-openapi-client/models/product.rb +281 -0
- data/lib/pipedrive-openapi-client/models/product_attachement_fields.rb +327 -0
- data/lib/pipedrive-openapi-client/models/product_field.rb +431 -0
- data/lib/pipedrive-openapi-client/models/product_field_all_of.rb +347 -0
- data/lib/pipedrive-openapi-client/models/put_role.rb +224 -0
- data/lib/pipedrive-openapi-client/models/put_role_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/put_role_all_of_data.rb +208 -0
- data/lib/pipedrive-openapi-client/models/role_assignment.rb +266 -0
- data/lib/pipedrive-openapi-client/models/role_assignment_all_of.rb +237 -0
- data/lib/pipedrive-openapi-client/models/role_settings.rb +278 -0
- data/lib/pipedrive-openapi-client/models/roles_additional_data.rb +207 -0
- data/lib/pipedrive-openapi-client/models/roles_additional_data_pagination.rb +228 -0
- data/lib/pipedrive-openapi-client/models/single_permission_sets_item.rb +247 -0
- data/lib/pipedrive-openapi-client/models/single_permission_sets_item_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/stage.rb +281 -0
- data/lib/pipedrive-openapi-client/models/sub_role.rb +266 -0
- data/lib/pipedrive-openapi-client/models/sub_role_all_of.rb +237 -0
- data/lib/pipedrive-openapi-client/models/teams.rb +226 -0
- data/lib/pipedrive-openapi-client/models/teams_all_of.rb +208 -0
- data/lib/pipedrive-openapi-client/models/unauthorized.rb +227 -0
- data/lib/pipedrive-openapi-client/models/update_file.rb +216 -0
- data/lib/pipedrive-openapi-client/models/update_team.rb +275 -0
- data/lib/pipedrive-openapi-client/models/update_team_all_of.rb +217 -0
- data/lib/pipedrive-openapi-client/models/user.rb +224 -0
- data/lib/pipedrive-openapi-client/models/user_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/user_assignment_to_permission_set.rb +237 -0
- data/lib/pipedrive-openapi-client/models/user_assignments_to_permission_set.rb +227 -0
- data/lib/pipedrive-openapi-client/models/user_assignments_to_permission_set_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/user_connections.rb +224 -0
- data/lib/pipedrive-openapi-client/models/user_connections_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/user_connections_all_of_data.rb +208 -0
- data/lib/pipedrive-openapi-client/models/user_i_ds.rb +227 -0
- data/lib/pipedrive-openapi-client/models/user_i_ds_all_of.rb +209 -0
- data/lib/pipedrive-openapi-client/models/user_me.rb +224 -0
- data/lib/pipedrive-openapi-client/models/user_me_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/user_settings.rb +224 -0
- data/lib/pipedrive-openapi-client/models/user_settings_all_of.rb +206 -0
- data/lib/pipedrive-openapi-client/models/user_settings_item.rb +297 -0
- data/lib/pipedrive-openapi-client/models/users.rb +226 -0
- data/lib/pipedrive-openapi-client/models/users_all_of.rb +208 -0
- data/lib/pipedrive-openapi-client/models/visible_to.rb +36 -0
- data/lib/pipedrive-openapi-client/version.rb +15 -0
- data/pipedrive-openapi-client.gemspec +39 -0
- data/spec/api/activities_api_spec.rb +115 -0
- data/spec/api/activity_fields_api_spec.rb +46 -0
- data/spec/api/activity_types_api_spec.rb +100 -0
- data/spec/api/call_logs_api_spec.rb +97 -0
- data/spec/api/currencies_api_spec.rb +47 -0
- data/spec/api/deal_fields_api_spec.rb +109 -0
- data/spec/api/deals_api_spec.rb +439 -0
- data/spec/api/files_api_spec.rb +148 -0
- data/spec/api/filters_api_spec.rb +117 -0
- data/spec/api/global_messages_api_spec.rb +59 -0
- data/spec/api/goals_api_spec.rb +114 -0
- data/spec/api/item_search_api_spec.rb +72 -0
- data/spec/api/leads_api_spec.rb +169 -0
- data/spec/api/mail_messages_api_spec.rb +48 -0
- data/spec/api/mail_threads_api_spec.rb +101 -0
- data/spec/api/note_fields_api_spec.rb +46 -0
- data/spec/api/notes_api_spec.rb +123 -0
- data/spec/api/organization_fields_api_spec.rb +107 -0
- data/spec/api/organization_relationships_api_spec.rb +99 -0
- data/spec/api/organizations_api_spec.rb +300 -0
- data/spec/api/permission_sets_api_spec.rb +70 -0
- data/spec/api/person_fields_api_spec.rb +107 -0
- data/spec/api/persons_api_spec.rb +331 -0
- data/spec/api/pipelines_api_spec.rb +152 -0
- data/spec/api/product_fields_api_spec.rb +107 -0
- data/spec/api/products_api_spec.rb +213 -0
- data/spec/api/recents_api_spec.rb +50 -0
- data/spec/api/roles_api_spec.rb +169 -0
- data/spec/api/search_results_api_spec.rb +70 -0
- data/spec/api/stages_api_spec.rb +123 -0
- data/spec/api/teams_api_spec.rb +140 -0
- data/spec/api/user_connections_api_spec.rb +46 -0
- data/spec/api/user_settings_api_spec.rb +46 -0
- data/spec/api/users_api_spec.rb +210 -0
- data/spec/api/webhooks_api_spec.rb +75 -0
- data/spec/api_client_spec.rb +188 -0
- data/spec/configuration_spec.rb +42 -0
- data/spec/models/activity_spec.rb +135 -0
- data/spec/models/add_file_spec.rb +47 -0
- data/spec/models/add_new_pipeline_all_of_spec.rb +41 -0
- data/spec/models/add_new_pipeline_spec.rb +47 -0
- data/spec/models/added_deal_follower_data_spec.rb +59 -0
- data/spec/models/added_deal_follower_spec.rb +47 -0
- data/spec/models/additional_data_spec.rb +53 -0
- data/spec/models/additional_data_with_pagination_details_spec.rb +41 -0
- data/spec/models/base_currency_spec.rb +77 -0
- data/spec/models/base_deal_spec.rb +347 -0
- data/spec/models/base_mail_thread_all_of_parties_spec.rb +47 -0
- data/spec/models/base_mail_thread_all_of_spec.rb +167 -0
- data/spec/models/base_mail_thread_messages_all_of_spec.rb +113 -0
- data/spec/models/base_mail_thread_messages_spec.rb +203 -0
- data/spec/models/base_mail_thread_spec.rb +257 -0
- data/spec/models/base_note_deal_title_spec.rb +41 -0
- data/spec/models/base_note_organization_spec.rb +41 -0
- data/spec/models/base_note_person_spec.rb +41 -0
- data/spec/models/base_note_spec.rb +137 -0
- data/spec/models/base_response_spec.rb +41 -0
- data/spec/models/base_role_spec.rb +47 -0
- data/spec/models/base_stage_spec.rb +99 -0
- data/spec/models/base_team_all_of1_spec.rb +47 -0
- data/spec/models/base_team_all_of_spec.rb +41 -0
- data/spec/models/base_team_spec.rb +89 -0
- data/spec/models/base_user_me_all_of_language_spec.rb +47 -0
- data/spec/models/base_user_me_all_of_spec.rb +71 -0
- data/spec/models/base_user_me_spec.rb +191 -0
- data/spec/models/base_user_spec.rb +155 -0
- data/spec/models/basic_deal_product_spec.rb +77 -0
- data/spec/models/basic_deal_spec.rb +105 -0
- data/spec/models/basic_goal_spec.rb +75 -0
- data/spec/models/basic_organization_spec.rb +53 -0
- data/spec/models/basic_person_field_spec.rb +47 -0
- data/spec/models/basic_person_spec.rb +71 -0
- data/spec/models/basic_product_field_spec.rb +47 -0
- data/spec/models/common_mail_thread_spec.rb +125 -0
- data/spec/models/create_remote_file_and_link_it_to_item_spec.rb +47 -0
- data/spec/models/create_team_spec.rb +59 -0
- data/spec/models/currencies_spec.rb +47 -0
- data/spec/models/deal_non_strict_mode_fields_creator_user_id_spec.rb +77 -0
- data/spec/models/deal_non_strict_mode_fields_spec.rb +65 -0
- data/spec/models/deal_organization_data_spec.rb +71 -0
- data/spec/models/deal_person_data_email_spec.rb +53 -0
- data/spec/models/deal_person_data_phone_spec.rb +53 -0
- data/spec/models/deal_person_data_spec.rb +59 -0
- data/spec/models/deal_strict_mode_fields_spec.rb +65 -0
- data/spec/models/deal_summary_per_currency_full_currencyid_spec.rb +47 -0
- data/spec/models/deal_summary_per_currency_full_spec.rb +41 -0
- data/spec/models/deal_summary_per_currency_spec.rb +41 -0
- data/spec/models/deal_summary_per_stages_spec.rb +41 -0
- data/spec/models/deal_summary_per_stages_stageid_spec.rb +41 -0
- data/spec/models/deal_summary_per_stages_stageidcurrencyid_spec.rb +65 -0
- data/spec/models/deal_summary_spec.rb +59 -0
- data/spec/models/deal_user_data_spec.rb +71 -0
- data/spec/models/delete_deal_data_spec.rb +41 -0
- data/spec/models/delete_deal_follower_data_spec.rb +41 -0
- data/spec/models/delete_deal_follower_spec.rb +47 -0
- data/spec/models/delete_deal_participant_data_spec.rb +41 -0
- data/spec/models/delete_deal_participant_spec.rb +47 -0
- data/spec/models/delete_deal_product_data_spec.rb +47 -0
- data/spec/models/delete_deal_product_spec.rb +47 -0
- data/spec/models/delete_deal_spec.rb +47 -0
- data/spec/models/delete_file_data_spec.rb +41 -0
- data/spec/models/delete_file_spec.rb +47 -0
- data/spec/models/delete_multiple_deals_all_of_data_spec.rb +41 -0
- data/spec/models/delete_multiple_deals_all_of_spec.rb +47 -0
- data/spec/models/delete_multiple_deals_spec.rb +35 -0
- data/spec/models/delete_multiple_product_fields_response_data_spec.rb +41 -0
- data/spec/models/delete_multiple_product_fields_response_spec.rb +47 -0
- data/spec/models/delete_note_spec.rb +47 -0
- data/spec/models/delete_product_field_response_data_spec.rb +41 -0
- data/spec/models/delete_product_field_response_spec.rb +47 -0
- data/spec/models/delete_product_follower_response_data_spec.rb +41 -0
- data/spec/models/delete_product_follower_response_spec.rb +47 -0
- data/spec/models/delete_role_all_of_data_spec.rb +41 -0
- data/spec/models/delete_role_all_of_spec.rb +41 -0
- data/spec/models/delete_role_assignment_all_of_data_spec.rb +41 -0
- data/spec/models/delete_role_assignment_all_of_spec.rb +41 -0
- data/spec/models/delete_role_assignment_spec.rb +47 -0
- data/spec/models/delete_role_spec.rb +47 -0
- data/spec/models/edit_pipeline_all_of_spec.rb +41 -0
- data/spec/models/edit_pipeline_spec.rb +47 -0
- data/spec/models/fail_response_spec.rb +47 -0
- data/spec/models/field_type_spec.rb +45 -0
- data/spec/models/file_data_spec.rb +191 -0
- data/spec/models/filter_type_spec.rb +35 -0
- data/spec/models/find_products_by_name_response_data_spec.rb +77 -0
- data/spec/models/find_products_by_name_response_spec.rb +53 -0
- data/spec/models/full_role_all_of_spec.rb +41 -0
- data/spec/models/full_role_spec.rb +77 -0
- data/spec/models/get_add_product_attachement_details_spec.rb +47 -0
- data/spec/models/get_add_update_stage_spec.rb +47 -0
- data/spec/models/get_added_deal_additional_data_spec.rb +41 -0
- data/spec/models/get_added_deal_related_objects_spec.rb +53 -0
- data/spec/models/get_added_deal_spec.rb +59 -0
- data/spec/models/get_all_files_spec.rb +53 -0
- data/spec/models/get_all_pipelines_all_of_spec.rb +41 -0
- data/spec/models/get_all_pipelines_spec.rb +47 -0
- data/spec/models/get_all_product_fields_response_spec.rb +53 -0
- data/spec/models/get_deal_additional_data_spec.rb +41 -0
- data/spec/models/get_deal_spec.rb +59 -0
- data/spec/models/get_deals_by_name_additional_data_spec.rb +41 -0
- data/spec/models/get_deals_by_name_data_spec.rb +113 -0
- data/spec/models/get_deals_by_name_spec.rb +53 -0
- data/spec/models/get_deals_conversion_rates_in_pipeline_all_of_data_spec.rb +53 -0
- data/spec/models/get_deals_conversion_rates_in_pipeline_all_of_data_stage_conversions_spec.rb +53 -0
- data/spec/models/get_deals_conversion_rates_in_pipeline_all_of_spec.rb +41 -0
- data/spec/models/get_deals_conversion_rates_in_pipeline_spec.rb +47 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days_by_stages_spec.rb +47 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_data_average_age_in_days_spec.rb +47 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_data_movements_between_stages_spec.rb +41 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_data_new_deals_formatted_values_spec.rb +41 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_data_new_deals_spec.rb +59 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_data_new_deals_values_spec.rb +41 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_data_spec.rb +71 -0
- data/spec/models/get_deals_movements_in_pipeline_all_of_spec.rb +41 -0
- data/spec/models/get_deals_movements_in_pipeline_spec.rb +47 -0
- data/spec/models/get_deals_spec.rb +59 -0
- data/spec/models/get_deals_summary_data_spec.rb +77 -0
- data/spec/models/get_deals_summary_data_values_total_spec.rb +65 -0
- data/spec/models/get_deals_summary_data_weighted_values_total_spec.rb +53 -0
- data/spec/models/get_deals_summary_spec.rb +47 -0
- data/spec/models/get_deals_timeline_data_spec.rb +59 -0
- data/spec/models/get_deals_timeline_data_totals_spec.rb +83 -0
- data/spec/models/get_deals_timeline_spec.rb +47 -0
- data/spec/models/get_duplicated_deal_spec.rb +47 -0
- data/spec/models/get_merged_deal_spec.rb +47 -0
- data/spec/models/get_notes_spec.rb +53 -0
- data/spec/models/get_one_file_spec.rb +47 -0
- data/spec/models/get_one_pipeline_all_of_spec.rb +41 -0
- data/spec/models/get_one_pipeline_spec.rb +47 -0
- data/spec/models/get_one_stage_spec.rb +47 -0
- data/spec/models/get_product_attachement_details_spec.rb +47 -0
- data/spec/models/get_product_field_response_spec.rb +47 -0
- data/spec/models/get_role_all_of_additional_data_spec.rb +41 -0
- data/spec/models/get_role_all_of_spec.rb +47 -0
- data/spec/models/get_role_assignments_all_of_spec.rb +47 -0
- data/spec/models/get_role_assignments_spec.rb +53 -0
- data/spec/models/get_role_settings_all_of_spec.rb +41 -0
- data/spec/models/get_role_settings_spec.rb +47 -0
- data/spec/models/get_role_spec.rb +53 -0
- data/spec/models/get_role_subroles_all_of_spec.rb +47 -0
- data/spec/models/get_role_subroles_spec.rb +53 -0
- data/spec/models/get_roles_all_of_spec.rb +47 -0
- data/spec/models/get_roles_spec.rb +53 -0
- data/spec/models/get_stage_deals_spec.rb +53 -0
- data/spec/models/get_stages_spec.rb +47 -0
- data/spec/models/global_message_base_response_spec.rb +41 -0
- data/spec/models/global_message_data_spec.rb +71 -0
- data/spec/models/global_message_delete_all_of_spec.rb +53 -0
- data/spec/models/global_message_delete_spec.rb +59 -0
- data/spec/models/global_message_get_all_of_spec.rb +53 -0
- data/spec/models/global_message_get_spec.rb +59 -0
- data/spec/models/global_message_user_data_spec.rb +53 -0
- data/spec/models/icon_key_spec.rb +35 -0
- data/spec/models/inline_object10_spec.rb +67 -0
- data/spec/models/inline_object11_spec.rb +47 -0
- data/spec/models/inline_object12_spec.rb +53 -0
- data/spec/models/inline_object13_spec.rb +47 -0
- data/spec/models/inline_object14_spec.rb +83 -0
- data/spec/models/inline_object15_spec.rb +89 -0
- data/spec/models/inline_object16_spec.rb +51 -0
- data/spec/models/inline_object17_spec.rb +47 -0
- data/spec/models/inline_object18_spec.rb +59 -0
- data/spec/models/inline_object19_spec.rb +41 -0
- data/spec/models/inline_object1_spec.rb +59 -0
- data/spec/models/inline_object20_spec.rb +41 -0
- data/spec/models/inline_object21_spec.rb +41 -0
- data/spec/models/inline_object22_spec.rb +41 -0
- data/spec/models/inline_object23_spec.rb +65 -0
- data/spec/models/inline_object24_spec.rb +41 -0
- data/spec/models/inline_object25_spec.rb +41 -0
- data/spec/models/inline_object26_spec.rb +51 -0
- data/spec/models/inline_object27_spec.rb +41 -0
- data/spec/models/inline_object28_spec.rb +41 -0
- data/spec/models/inline_object29_spec.rb +53 -0
- data/spec/models/inline_object2_spec.rb +105 -0
- data/spec/models/inline_object30_spec.rb +41 -0
- data/spec/models/inline_object31_spec.rb +41 -0
- data/spec/models/inline_object32_spec.rb +41 -0
- data/spec/models/inline_object33_spec.rb +79 -0
- data/spec/models/inline_object3_spec.rb +41 -0
- data/spec/models/inline_object4_spec.rb +41 -0
- data/spec/models/inline_object5_spec.rb +41 -0
- data/spec/models/inline_object6_spec.rb +41 -0
- data/spec/models/inline_object7_spec.rb +47 -0
- data/spec/models/inline_object8_spec.rb +71 -0
- data/spec/models/inline_object9_spec.rb +77 -0
- data/spec/models/inline_object_spec.rb +53 -0
- data/spec/models/inline_response20010_data_spec.rb +41 -0
- data/spec/models/inline_response20010_spec.rb +47 -0
- data/spec/models/inline_response20011_data_spec.rb +41 -0
- data/spec/models/inline_response20011_spec.rb +47 -0
- data/spec/models/inline_response2001_spec.rb +47 -0
- data/spec/models/inline_response2002_spec.rb +47 -0
- data/spec/models/inline_response2003_spec.rb +41 -0
- data/spec/models/inline_response2004_spec.rb +53 -0
- data/spec/models/inline_response2005_spec.rb +41 -0
- data/spec/models/inline_response2006_spec.rb +47 -0
- data/spec/models/inline_response2007_data_spec.rb +65 -0
- data/spec/models/inline_response2007_spec.rb +47 -0
- data/spec/models/inline_response2008_data_spec.rb +41 -0
- data/spec/models/inline_response2008_spec.rb +47 -0
- data/spec/models/inline_response2009_data_spec.rb +41 -0
- data/spec/models/inline_response2009_spec.rb +47 -0
- data/spec/models/inline_response200_additional_data_spec.rb +53 -0
- data/spec/models/inline_response200_spec.rb +53 -0
- data/spec/models/inline_response201_data_spec.rb +131 -0
- data/spec/models/inline_response201_spec.rb +47 -0
- data/spec/models/inline_response400_spec.rb +65 -0
- data/spec/models/inline_response403_spec.rb +65 -0
- data/spec/models/inline_response4041_spec.rb +65 -0
- data/spec/models/inline_response404_spec.rb +65 -0
- data/spec/models/inline_response409_spec.rb +65 -0
- data/spec/models/inline_response410_spec.rb +65 -0
- data/spec/models/inline_response500_spec.rb +65 -0
- data/spec/models/leads_value_spec.rb +47 -0
- data/spec/models/link_remote_file_to_item_spec.rb +47 -0
- data/spec/models/mail_message_all_of_spec.rb +41 -0
- data/spec/models/mail_message_data_spec.rb +213 -0
- data/spec/models/mail_message_spec.rb +65 -0
- data/spec/models/mail_participant_spec.rb +71 -0
- data/spec/models/mail_service_base_response_spec.rb +59 -0
- data/spec/models/mail_thread_all_of_spec.rb +41 -0
- data/spec/models/mail_thread_delete_all_of_spec.rb +41 -0
- data/spec/models/mail_thread_delete_spec.rb +47 -0
- data/spec/models/mail_thread_messages_all_of_spec.rb +41 -0
- data/spec/models/mail_thread_messages_spec.rb +47 -0
- data/spec/models/mail_thread_one_all_of_spec.rb +41 -0
- data/spec/models/mail_thread_one_spec.rb +47 -0
- data/spec/models/mail_thread_participant_spec.rb +89 -0
- data/spec/models/mail_thread_put_spec.rb +47 -0
- data/spec/models/mail_thread_spec.rb +47 -0
- data/spec/models/new_deal_all_of_spec.rb +41 -0
- data/spec/models/new_deal_product_all_of_spec.rb +41 -0
- data/spec/models/new_deal_product_spec.rb +83 -0
- data/spec/models/new_deal_spec.rb +111 -0
- data/spec/models/new_follower_response_data_spec.rb +59 -0
- data/spec/models/new_follower_response_spec.rb +47 -0
- data/spec/models/new_goal_spec.rb +35 -0
- data/spec/models/new_organization_all_of_spec.rb +41 -0
- data/spec/models/new_organization_field_spec.rb +57 -0
- data/spec/models/new_organization_spec.rb +59 -0
- data/spec/models/new_person_all_of_spec.rb +41 -0
- data/spec/models/new_person_field_spec.rb +57 -0
- data/spec/models/new_person_spec.rb +77 -0
- data/spec/models/new_product_field_all_of_spec.rb +57 -0
- data/spec/models/new_product_field_spec.rb +57 -0
- data/spec/models/note_creator_user_spec.rb +59 -0
- data/spec/models/note_spec.rb +89 -0
- data/spec/models/number_boolean_default0_spec.rb +35 -0
- data/spec/models/number_boolean_default1_spec.rb +35 -0
- data/spec/models/number_boolean_spec.rb +35 -0
- data/spec/models/organization_relationship_spec.rb +63 -0
- data/spec/models/permission_sets_all_of_spec.rb +41 -0
- data/spec/models/permission_sets_item_spec.rb +53 -0
- data/spec/models/permission_sets_spec.rb +47 -0
- data/spec/models/pipeline_spec.rb +59 -0
- data/spec/models/post_note_spec.rb +47 -0
- data/spec/models/post_role_assignment_all_of_data_spec.rb +47 -0
- data/spec/models/post_role_assignment_all_of_spec.rb +41 -0
- data/spec/models/post_role_assignment_spec.rb +47 -0
- data/spec/models/post_role_settings_all_of_data_spec.rb +51 -0
- data/spec/models/post_role_settings_all_of_spec.rb +41 -0
- data/spec/models/post_role_settings_spec.rb +47 -0
- data/spec/models/post_roles_all_of_data_spec.rb +41 -0
- data/spec/models/post_roles_all_of_spec.rb +41 -0
- data/spec/models/post_roles_spec.rb +47 -0
- data/spec/models/product_attachement_fields_spec.rb +113 -0
- data/spec/models/product_field_all_of_spec.rb +125 -0
- data/spec/models/product_field_spec.rb +147 -0
- data/spec/models/product_spec.rb +83 -0
- data/spec/models/put_role_all_of_data_spec.rb +41 -0
- data/spec/models/put_role_all_of_spec.rb +41 -0
- data/spec/models/put_role_spec.rb +47 -0
- data/spec/models/role_assignment_all_of_spec.rb +59 -0
- data/spec/models/role_assignment_spec.rb +71 -0
- data/spec/models/role_settings_spec.rb +83 -0
- data/spec/models/roles_additional_data_pagination_spec.rb +53 -0
- data/spec/models/roles_additional_data_spec.rb +41 -0
- data/spec/models/single_permission_sets_item_all_of_spec.rb +41 -0
- data/spec/models/single_permission_sets_item_spec.rb +59 -0
- data/spec/models/stage_spec.rb +69 -0
- data/spec/models/sub_role_all_of_spec.rb +59 -0
- data/spec/models/sub_role_spec.rb +71 -0
- data/spec/models/teams_all_of_spec.rb +41 -0
- data/spec/models/teams_spec.rb +47 -0
- data/spec/models/unauthorized_spec.rb +53 -0
- data/spec/models/update_file_spec.rb +47 -0
- data/spec/models/update_team_all_of_spec.rb +47 -0
- data/spec/models/update_team_spec.rb +71 -0
- data/spec/models/user_all_of_spec.rb +41 -0
- data/spec/models/user_assignment_to_permission_set_spec.rb +59 -0
- data/spec/models/user_assignments_to_permission_set_all_of_spec.rb +41 -0
- data/spec/models/user_assignments_to_permission_set_spec.rb +47 -0
- data/spec/models/user_connections_all_of_data_spec.rb +41 -0
- data/spec/models/user_connections_all_of_spec.rb +41 -0
- data/spec/models/user_connections_spec.rb +47 -0
- data/spec/models/user_i_ds_all_of_spec.rb +41 -0
- data/spec/models/user_i_ds_spec.rb +47 -0
- data/spec/models/user_me_all_of_spec.rb +41 -0
- data/spec/models/user_me_spec.rb +47 -0
- data/spec/models/user_settings_all_of_spec.rb +41 -0
- data/spec/models/user_settings_item_spec.rb +95 -0
- data/spec/models/user_settings_spec.rb +47 -0
- data/spec/models/user_spec.rb +47 -0
- data/spec/models/users_all_of_spec.rb +41 -0
- data/spec/models/users_spec.rb +47 -0
- data/spec/models/visible_to_spec.rb +35 -0
- data/spec/spec_helper.rb +111 -0
- metadata +1495 -0
@@ -0,0 +1,1448 @@
|
|
1
|
+
=begin
|
2
|
+
#Pipedrive API v1
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.0.0
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'cgi'
|
14
|
+
|
15
|
+
module Pipedrive
|
16
|
+
class PersonsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete multiple persons in bulk
|
23
|
+
# Marks multiple persons as deleted.
|
24
|
+
# @param [Hash] opts the optional parameters
|
25
|
+
# @option opts [String] :ids Comma-separated IDs that will be deleted
|
26
|
+
# @return [nil]
|
27
|
+
def persons_delete(opts = {})
|
28
|
+
persons_delete_with_http_info(opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Delete multiple persons in bulk
|
33
|
+
# Marks multiple persons as deleted.
|
34
|
+
# @param [Hash] opts the optional parameters
|
35
|
+
# @option opts [String] :ids Comma-separated IDs that will be deleted
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def persons_delete_with_http_info(opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_delete ...'
|
40
|
+
end
|
41
|
+
# resource path
|
42
|
+
local_var_path = '/persons'
|
43
|
+
|
44
|
+
# query parameters
|
45
|
+
query_params = opts[:query_params] || {}
|
46
|
+
query_params[:'ids'] = opts[:'ids'] if !opts[:'ids'].nil?
|
47
|
+
|
48
|
+
# header parameters
|
49
|
+
header_params = opts[:header_params] || {}
|
50
|
+
|
51
|
+
# form parameters
|
52
|
+
form_params = opts[:form_params] || {}
|
53
|
+
|
54
|
+
# http body (model)
|
55
|
+
post_body = opts[:body]
|
56
|
+
|
57
|
+
# return_type
|
58
|
+
return_type = opts[:return_type]
|
59
|
+
|
60
|
+
# auth_names
|
61
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
62
|
+
|
63
|
+
new_options = opts.merge(
|
64
|
+
:header_params => header_params,
|
65
|
+
:query_params => query_params,
|
66
|
+
:form_params => form_params,
|
67
|
+
:body => post_body,
|
68
|
+
:auth_names => auth_names,
|
69
|
+
:return_type => return_type
|
70
|
+
)
|
71
|
+
|
72
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
73
|
+
if @api_client.config.debugging
|
74
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
75
|
+
end
|
76
|
+
return data, status_code, headers
|
77
|
+
end
|
78
|
+
|
79
|
+
# Find persons by name
|
80
|
+
# <strong>This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Persons/get_persons_search\">/v1/persons/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> instead</strong>. <br> Searches all persons by their name.
|
81
|
+
# @param term [String] Search term to look for
|
82
|
+
# @param [Hash] opts the optional parameters
|
83
|
+
# @option opts [Integer] :org_id ID of the organization person is associated with.
|
84
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
85
|
+
# @option opts [Integer] :limit Items shown per page
|
86
|
+
# @option opts [NumberBoolean] :search_by_email When enabled, term will only be matched against email addresses of people. Default: false
|
87
|
+
# @return [nil]
|
88
|
+
def persons_find_get(term, opts = {})
|
89
|
+
persons_find_get_with_http_info(term, opts)
|
90
|
+
nil
|
91
|
+
end
|
92
|
+
|
93
|
+
# Find persons by name
|
94
|
+
# <strong>This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Persons/get_persons_search\">/v1/persons/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> instead</strong>. <br> Searches all persons by their name.
|
95
|
+
# @param term [String] Search term to look for
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [Integer] :org_id ID of the organization person is associated with.
|
98
|
+
# @option opts [Integer] :start Pagination start
|
99
|
+
# @option opts [Integer] :limit Items shown per page
|
100
|
+
# @option opts [NumberBoolean] :search_by_email When enabled, term will only be matched against email addresses of people. Default: false
|
101
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
102
|
+
def persons_find_get_with_http_info(term, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_find_get ...'
|
105
|
+
end
|
106
|
+
# verify the required parameter 'term' is set
|
107
|
+
if @api_client.config.client_side_validation && term.nil?
|
108
|
+
fail ArgumentError, "Missing the required parameter 'term' when calling PersonsApi.persons_find_get"
|
109
|
+
end
|
110
|
+
# resource path
|
111
|
+
local_var_path = '/persons/find'
|
112
|
+
|
113
|
+
# query parameters
|
114
|
+
query_params = opts[:query_params] || {}
|
115
|
+
query_params[:'term'] = term
|
116
|
+
query_params[:'org_id'] = opts[:'org_id'] if !opts[:'org_id'].nil?
|
117
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
118
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
119
|
+
query_params[:'search_by_email'] = opts[:'search_by_email'] if !opts[:'search_by_email'].nil?
|
120
|
+
|
121
|
+
# header parameters
|
122
|
+
header_params = opts[:header_params] || {}
|
123
|
+
|
124
|
+
# form parameters
|
125
|
+
form_params = opts[:form_params] || {}
|
126
|
+
|
127
|
+
# http body (model)
|
128
|
+
post_body = opts[:body]
|
129
|
+
|
130
|
+
# return_type
|
131
|
+
return_type = opts[:return_type]
|
132
|
+
|
133
|
+
# auth_names
|
134
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
135
|
+
|
136
|
+
new_options = opts.merge(
|
137
|
+
:header_params => header_params,
|
138
|
+
:query_params => query_params,
|
139
|
+
:form_params => form_params,
|
140
|
+
:body => post_body,
|
141
|
+
:auth_names => auth_names,
|
142
|
+
:return_type => return_type
|
143
|
+
)
|
144
|
+
|
145
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
146
|
+
if @api_client.config.debugging
|
147
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_find_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
148
|
+
end
|
149
|
+
return data, status_code, headers
|
150
|
+
end
|
151
|
+
|
152
|
+
# Get all persons
|
153
|
+
# Returns all persons
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @option opts [Integer] :user_id If supplied, only persons owned by the given user will be returned.
|
156
|
+
# @option opts [Integer] :filter_id ID of the filter to use.
|
157
|
+
# @option opts [String] :first_char If supplied, only persons whose name starts with the specified letter will be returned (case insensitive).
|
158
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
159
|
+
# @option opts [Integer] :limit Items shown per page
|
160
|
+
# @option opts [String] :sort Field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys).
|
161
|
+
# @return [nil]
|
162
|
+
def persons_get(opts = {})
|
163
|
+
persons_get_with_http_info(opts)
|
164
|
+
nil
|
165
|
+
end
|
166
|
+
|
167
|
+
# Get all persons
|
168
|
+
# Returns all persons
|
169
|
+
# @param [Hash] opts the optional parameters
|
170
|
+
# @option opts [Integer] :user_id If supplied, only persons owned by the given user will be returned.
|
171
|
+
# @option opts [Integer] :filter_id ID of the filter to use.
|
172
|
+
# @option opts [String] :first_char If supplied, only persons whose name starts with the specified letter will be returned (case insensitive).
|
173
|
+
# @option opts [Integer] :start Pagination start
|
174
|
+
# @option opts [Integer] :limit Items shown per page
|
175
|
+
# @option opts [String] :sort Field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys).
|
176
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
177
|
+
def persons_get_with_http_info(opts = {})
|
178
|
+
if @api_client.config.debugging
|
179
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_get ...'
|
180
|
+
end
|
181
|
+
# resource path
|
182
|
+
local_var_path = '/persons'
|
183
|
+
|
184
|
+
# query parameters
|
185
|
+
query_params = opts[:query_params] || {}
|
186
|
+
query_params[:'user_id'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
187
|
+
query_params[:'filter_id'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
|
188
|
+
query_params[:'first_char'] = opts[:'first_char'] if !opts[:'first_char'].nil?
|
189
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
190
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
191
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
192
|
+
|
193
|
+
# header parameters
|
194
|
+
header_params = opts[:header_params] || {}
|
195
|
+
|
196
|
+
# form parameters
|
197
|
+
form_params = opts[:form_params] || {}
|
198
|
+
|
199
|
+
# http body (model)
|
200
|
+
post_body = opts[:body]
|
201
|
+
|
202
|
+
# return_type
|
203
|
+
return_type = opts[:return_type]
|
204
|
+
|
205
|
+
# auth_names
|
206
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
207
|
+
|
208
|
+
new_options = opts.merge(
|
209
|
+
:header_params => header_params,
|
210
|
+
:query_params => query_params,
|
211
|
+
:form_params => form_params,
|
212
|
+
:body => post_body,
|
213
|
+
:auth_names => auth_names,
|
214
|
+
:return_type => return_type
|
215
|
+
)
|
216
|
+
|
217
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
218
|
+
if @api_client.config.debugging
|
219
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
220
|
+
end
|
221
|
+
return data, status_code, headers
|
222
|
+
end
|
223
|
+
|
224
|
+
# List activities associated with a person
|
225
|
+
# Lists activities associated with a person.
|
226
|
+
# @param id [Integer] ID of a person
|
227
|
+
# @param [Hash] opts the optional parameters
|
228
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
229
|
+
# @option opts [Integer] :limit Items shown per page
|
230
|
+
# @option opts [NumberBoolean] :done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities.
|
231
|
+
# @option opts [String] :exclude A comma-separated string of activity IDs to exclude from result
|
232
|
+
# @return [nil]
|
233
|
+
def persons_id_activities_get(id, opts = {})
|
234
|
+
persons_id_activities_get_with_http_info(id, opts)
|
235
|
+
nil
|
236
|
+
end
|
237
|
+
|
238
|
+
# List activities associated with a person
|
239
|
+
# Lists activities associated with a person.
|
240
|
+
# @param id [Integer] ID of a person
|
241
|
+
# @param [Hash] opts the optional parameters
|
242
|
+
# @option opts [Integer] :start Pagination start
|
243
|
+
# @option opts [Integer] :limit Items shown per page
|
244
|
+
# @option opts [NumberBoolean] :done Whether the activity is done or not. 0 = Not done, 1 = Done. If omitted returns both Done and Not done activities.
|
245
|
+
# @option opts [String] :exclude A comma-separated string of activity IDs to exclude from result
|
246
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
247
|
+
def persons_id_activities_get_with_http_info(id, opts = {})
|
248
|
+
if @api_client.config.debugging
|
249
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_activities_get ...'
|
250
|
+
end
|
251
|
+
# verify the required parameter 'id' is set
|
252
|
+
if @api_client.config.client_side_validation && id.nil?
|
253
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_activities_get"
|
254
|
+
end
|
255
|
+
# resource path
|
256
|
+
local_var_path = '/persons/{id}/activities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
257
|
+
|
258
|
+
# query parameters
|
259
|
+
query_params = opts[:query_params] || {}
|
260
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
261
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
262
|
+
query_params[:'done'] = opts[:'done'] if !opts[:'done'].nil?
|
263
|
+
query_params[:'exclude'] = opts[:'exclude'] if !opts[:'exclude'].nil?
|
264
|
+
|
265
|
+
# header parameters
|
266
|
+
header_params = opts[:header_params] || {}
|
267
|
+
|
268
|
+
# form parameters
|
269
|
+
form_params = opts[:form_params] || {}
|
270
|
+
|
271
|
+
# http body (model)
|
272
|
+
post_body = opts[:body]
|
273
|
+
|
274
|
+
# return_type
|
275
|
+
return_type = opts[:return_type]
|
276
|
+
|
277
|
+
# auth_names
|
278
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
279
|
+
|
280
|
+
new_options = opts.merge(
|
281
|
+
:header_params => header_params,
|
282
|
+
:query_params => query_params,
|
283
|
+
:form_params => form_params,
|
284
|
+
:body => post_body,
|
285
|
+
:auth_names => auth_names,
|
286
|
+
:return_type => return_type
|
287
|
+
)
|
288
|
+
|
289
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
290
|
+
if @api_client.config.debugging
|
291
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_activities_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
292
|
+
end
|
293
|
+
return data, status_code, headers
|
294
|
+
end
|
295
|
+
|
296
|
+
# List deals associated with a person
|
297
|
+
# Lists deals associated with a person.
|
298
|
+
# @param id [Integer] ID of a person
|
299
|
+
# @param [Hash] opts the optional parameters
|
300
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
301
|
+
# @option opts [Integer] :limit Items shown per page
|
302
|
+
# @option opts [String] :status Only fetch deals with specific status. If omitted, all not deleted deals are fetched. (default to 'all_not_deleted')
|
303
|
+
# @option opts [String] :sort Field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys).
|
304
|
+
# @return [nil]
|
305
|
+
def persons_id_deals_get(id, opts = {})
|
306
|
+
persons_id_deals_get_with_http_info(id, opts)
|
307
|
+
nil
|
308
|
+
end
|
309
|
+
|
310
|
+
# List deals associated with a person
|
311
|
+
# Lists deals associated with a person.
|
312
|
+
# @param id [Integer] ID of a person
|
313
|
+
# @param [Hash] opts the optional parameters
|
314
|
+
# @option opts [Integer] :start Pagination start
|
315
|
+
# @option opts [Integer] :limit Items shown per page
|
316
|
+
# @option opts [String] :status Only fetch deals with specific status. If omitted, all not deleted deals are fetched.
|
317
|
+
# @option opts [String] :sort Field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys).
|
318
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
319
|
+
def persons_id_deals_get_with_http_info(id, opts = {})
|
320
|
+
if @api_client.config.debugging
|
321
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_deals_get ...'
|
322
|
+
end
|
323
|
+
# verify the required parameter 'id' is set
|
324
|
+
if @api_client.config.client_side_validation && id.nil?
|
325
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_deals_get"
|
326
|
+
end
|
327
|
+
allowable_values = ["open", "won", "lost", "deleted", "all_not_deleted"]
|
328
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
329
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
330
|
+
end
|
331
|
+
# resource path
|
332
|
+
local_var_path = '/persons/{id}/deals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
333
|
+
|
334
|
+
# query parameters
|
335
|
+
query_params = opts[:query_params] || {}
|
336
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
337
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
338
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
339
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
340
|
+
|
341
|
+
# header parameters
|
342
|
+
header_params = opts[:header_params] || {}
|
343
|
+
|
344
|
+
# form parameters
|
345
|
+
form_params = opts[:form_params] || {}
|
346
|
+
|
347
|
+
# http body (model)
|
348
|
+
post_body = opts[:body]
|
349
|
+
|
350
|
+
# return_type
|
351
|
+
return_type = opts[:return_type]
|
352
|
+
|
353
|
+
# auth_names
|
354
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
355
|
+
|
356
|
+
new_options = opts.merge(
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names,
|
362
|
+
:return_type => return_type
|
363
|
+
)
|
364
|
+
|
365
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_deals_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
368
|
+
end
|
369
|
+
return data, status_code, headers
|
370
|
+
end
|
371
|
+
|
372
|
+
# Delete a person
|
373
|
+
# Marks a person as deleted.
|
374
|
+
# @param id [Integer] ID of a person
|
375
|
+
# @param [Hash] opts the optional parameters
|
376
|
+
# @return [nil]
|
377
|
+
def persons_id_delete(id, opts = {})
|
378
|
+
persons_id_delete_with_http_info(id, opts)
|
379
|
+
nil
|
380
|
+
end
|
381
|
+
|
382
|
+
# Delete a person
|
383
|
+
# Marks a person as deleted.
|
384
|
+
# @param id [Integer] ID of a person
|
385
|
+
# @param [Hash] opts the optional parameters
|
386
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
387
|
+
def persons_id_delete_with_http_info(id, opts = {})
|
388
|
+
if @api_client.config.debugging
|
389
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_delete ...'
|
390
|
+
end
|
391
|
+
# verify the required parameter 'id' is set
|
392
|
+
if @api_client.config.client_side_validation && id.nil?
|
393
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_delete"
|
394
|
+
end
|
395
|
+
# resource path
|
396
|
+
local_var_path = '/persons/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
397
|
+
|
398
|
+
# query parameters
|
399
|
+
query_params = opts[:query_params] || {}
|
400
|
+
|
401
|
+
# header parameters
|
402
|
+
header_params = opts[:header_params] || {}
|
403
|
+
|
404
|
+
# form parameters
|
405
|
+
form_params = opts[:form_params] || {}
|
406
|
+
|
407
|
+
# http body (model)
|
408
|
+
post_body = opts[:body]
|
409
|
+
|
410
|
+
# return_type
|
411
|
+
return_type = opts[:return_type]
|
412
|
+
|
413
|
+
# auth_names
|
414
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
415
|
+
|
416
|
+
new_options = opts.merge(
|
417
|
+
:header_params => header_params,
|
418
|
+
:query_params => query_params,
|
419
|
+
:form_params => form_params,
|
420
|
+
:body => post_body,
|
421
|
+
:auth_names => auth_names,
|
422
|
+
:return_type => return_type
|
423
|
+
)
|
424
|
+
|
425
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
426
|
+
if @api_client.config.debugging
|
427
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
428
|
+
end
|
429
|
+
return data, status_code, headers
|
430
|
+
end
|
431
|
+
|
432
|
+
# List files attached to a person
|
433
|
+
# Lists files associated with a person.
|
434
|
+
# @param id [Integer] ID of a person
|
435
|
+
# @param [Hash] opts the optional parameters
|
436
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
437
|
+
# @option opts [Integer] :limit Items shown per page
|
438
|
+
# @option opts [NumberBoolean] :include_deleted_files When enabled, the list of files will also include deleted files. Please note that trying to download these files will not work.
|
439
|
+
# @option opts [String] :sort Field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys). Supported fields: id, user_id, deal_id, person_id, org_id, product_id, add_time, update_time, file_name, file_type, file_size, comment.
|
440
|
+
# @return [nil]
|
441
|
+
def persons_id_files_get(id, opts = {})
|
442
|
+
persons_id_files_get_with_http_info(id, opts)
|
443
|
+
nil
|
444
|
+
end
|
445
|
+
|
446
|
+
# List files attached to a person
|
447
|
+
# Lists files associated with a person.
|
448
|
+
# @param id [Integer] ID of a person
|
449
|
+
# @param [Hash] opts the optional parameters
|
450
|
+
# @option opts [Integer] :start Pagination start
|
451
|
+
# @option opts [Integer] :limit Items shown per page
|
452
|
+
# @option opts [NumberBoolean] :include_deleted_files When enabled, the list of files will also include deleted files. Please note that trying to download these files will not work.
|
453
|
+
# @option opts [String] :sort Field names and sorting mode separated by a comma (field_name_1 ASC, field_name_2 DESC). Only first-level field keys are supported (no nested keys). Supported fields: id, user_id, deal_id, person_id, org_id, product_id, add_time, update_time, file_name, file_type, file_size, comment.
|
454
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
455
|
+
def persons_id_files_get_with_http_info(id, opts = {})
|
456
|
+
if @api_client.config.debugging
|
457
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_files_get ...'
|
458
|
+
end
|
459
|
+
# verify the required parameter 'id' is set
|
460
|
+
if @api_client.config.client_side_validation && id.nil?
|
461
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_files_get"
|
462
|
+
end
|
463
|
+
# resource path
|
464
|
+
local_var_path = '/persons/{id}/files'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
465
|
+
|
466
|
+
# query parameters
|
467
|
+
query_params = opts[:query_params] || {}
|
468
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
469
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
470
|
+
query_params[:'include_deleted_files'] = opts[:'include_deleted_files'] if !opts[:'include_deleted_files'].nil?
|
471
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
472
|
+
|
473
|
+
# header parameters
|
474
|
+
header_params = opts[:header_params] || {}
|
475
|
+
|
476
|
+
# form parameters
|
477
|
+
form_params = opts[:form_params] || {}
|
478
|
+
|
479
|
+
# http body (model)
|
480
|
+
post_body = opts[:body]
|
481
|
+
|
482
|
+
# return_type
|
483
|
+
return_type = opts[:return_type]
|
484
|
+
|
485
|
+
# auth_names
|
486
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
487
|
+
|
488
|
+
new_options = opts.merge(
|
489
|
+
:header_params => header_params,
|
490
|
+
:query_params => query_params,
|
491
|
+
:form_params => form_params,
|
492
|
+
:body => post_body,
|
493
|
+
:auth_names => auth_names,
|
494
|
+
:return_type => return_type
|
495
|
+
)
|
496
|
+
|
497
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
498
|
+
if @api_client.config.debugging
|
499
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_files_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
500
|
+
end
|
501
|
+
return data, status_code, headers
|
502
|
+
end
|
503
|
+
|
504
|
+
# List updates about a person
|
505
|
+
# Lists updates about a person.
|
506
|
+
# @param id [Integer] ID of a person
|
507
|
+
# @param [Hash] opts the optional parameters
|
508
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
509
|
+
# @option opts [Integer] :limit Items shown per page
|
510
|
+
# @option opts [String] :all_changes Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates.
|
511
|
+
# @option opts [String] :items A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document)
|
512
|
+
# @return [nil]
|
513
|
+
def persons_id_flow_get(id, opts = {})
|
514
|
+
persons_id_flow_get_with_http_info(id, opts)
|
515
|
+
nil
|
516
|
+
end
|
517
|
+
|
518
|
+
# List updates about a person
|
519
|
+
# Lists updates about a person.
|
520
|
+
# @param id [Integer] ID of a person
|
521
|
+
# @param [Hash] opts the optional parameters
|
522
|
+
# @option opts [Integer] :start Pagination start
|
523
|
+
# @option opts [Integer] :limit Items shown per page
|
524
|
+
# @option opts [String] :all_changes Whether to show custom field updates or not. 1 = Include custom field changes. If omitted returns changes without custom field updates.
|
525
|
+
# @option opts [String] :items A comma-separated string for filtering out item specific updates. (Possible values - activity, plannedActivity, note, file, change, deal, follower, participant, mailMessage, mailMessageWithAttachment, invoice, activityFile, document)
|
526
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
527
|
+
def persons_id_flow_get_with_http_info(id, opts = {})
|
528
|
+
if @api_client.config.debugging
|
529
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_flow_get ...'
|
530
|
+
end
|
531
|
+
# verify the required parameter 'id' is set
|
532
|
+
if @api_client.config.client_side_validation && id.nil?
|
533
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_flow_get"
|
534
|
+
end
|
535
|
+
# resource path
|
536
|
+
local_var_path = '/persons/{id}/flow'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
537
|
+
|
538
|
+
# query parameters
|
539
|
+
query_params = opts[:query_params] || {}
|
540
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
541
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
542
|
+
query_params[:'all_changes'] = opts[:'all_changes'] if !opts[:'all_changes'].nil?
|
543
|
+
query_params[:'items'] = opts[:'items'] if !opts[:'items'].nil?
|
544
|
+
|
545
|
+
# header parameters
|
546
|
+
header_params = opts[:header_params] || {}
|
547
|
+
|
548
|
+
# form parameters
|
549
|
+
form_params = opts[:form_params] || {}
|
550
|
+
|
551
|
+
# http body (model)
|
552
|
+
post_body = opts[:body]
|
553
|
+
|
554
|
+
# return_type
|
555
|
+
return_type = opts[:return_type]
|
556
|
+
|
557
|
+
# auth_names
|
558
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
559
|
+
|
560
|
+
new_options = opts.merge(
|
561
|
+
:header_params => header_params,
|
562
|
+
:query_params => query_params,
|
563
|
+
:form_params => form_params,
|
564
|
+
:body => post_body,
|
565
|
+
:auth_names => auth_names,
|
566
|
+
:return_type => return_type
|
567
|
+
)
|
568
|
+
|
569
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
570
|
+
if @api_client.config.debugging
|
571
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_flow_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
572
|
+
end
|
573
|
+
return data, status_code, headers
|
574
|
+
end
|
575
|
+
|
576
|
+
# Deletes a follower from a person.
|
577
|
+
# Delete a follower from a person
|
578
|
+
# @param id [Integer] ID of a person
|
579
|
+
# @param follower_id [Integer] ID of the follower
|
580
|
+
# @param [Hash] opts the optional parameters
|
581
|
+
# @return [nil]
|
582
|
+
def persons_id_followers_follower_id_delete(id, follower_id, opts = {})
|
583
|
+
persons_id_followers_follower_id_delete_with_http_info(id, follower_id, opts)
|
584
|
+
nil
|
585
|
+
end
|
586
|
+
|
587
|
+
# Deletes a follower from a person.
|
588
|
+
# Delete a follower from a person
|
589
|
+
# @param id [Integer] ID of a person
|
590
|
+
# @param follower_id [Integer] ID of the follower
|
591
|
+
# @param [Hash] opts the optional parameters
|
592
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
593
|
+
def persons_id_followers_follower_id_delete_with_http_info(id, follower_id, opts = {})
|
594
|
+
if @api_client.config.debugging
|
595
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_followers_follower_id_delete ...'
|
596
|
+
end
|
597
|
+
# verify the required parameter 'id' is set
|
598
|
+
if @api_client.config.client_side_validation && id.nil?
|
599
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_followers_follower_id_delete"
|
600
|
+
end
|
601
|
+
# verify the required parameter 'follower_id' is set
|
602
|
+
if @api_client.config.client_side_validation && follower_id.nil?
|
603
|
+
fail ArgumentError, "Missing the required parameter 'follower_id' when calling PersonsApi.persons_id_followers_follower_id_delete"
|
604
|
+
end
|
605
|
+
# resource path
|
606
|
+
local_var_path = '/persons/{id}/followers/{follower_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'follower_id' + '}', CGI.escape(follower_id.to_s))
|
607
|
+
|
608
|
+
# query parameters
|
609
|
+
query_params = opts[:query_params] || {}
|
610
|
+
|
611
|
+
# header parameters
|
612
|
+
header_params = opts[:header_params] || {}
|
613
|
+
|
614
|
+
# form parameters
|
615
|
+
form_params = opts[:form_params] || {}
|
616
|
+
|
617
|
+
# http body (model)
|
618
|
+
post_body = opts[:body]
|
619
|
+
|
620
|
+
# return_type
|
621
|
+
return_type = opts[:return_type]
|
622
|
+
|
623
|
+
# auth_names
|
624
|
+
auth_names = opts[:auth_names] || ['api_key']
|
625
|
+
|
626
|
+
new_options = opts.merge(
|
627
|
+
:header_params => header_params,
|
628
|
+
:query_params => query_params,
|
629
|
+
:form_params => form_params,
|
630
|
+
:body => post_body,
|
631
|
+
:auth_names => auth_names,
|
632
|
+
:return_type => return_type
|
633
|
+
)
|
634
|
+
|
635
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
636
|
+
if @api_client.config.debugging
|
637
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_followers_follower_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
638
|
+
end
|
639
|
+
return data, status_code, headers
|
640
|
+
end
|
641
|
+
|
642
|
+
# List followers of a person
|
643
|
+
# Lists the followers of a person.
|
644
|
+
# @param id [Integer] ID of a person
|
645
|
+
# @param [Hash] opts the optional parameters
|
646
|
+
# @return [nil]
|
647
|
+
def persons_id_followers_get(id, opts = {})
|
648
|
+
persons_id_followers_get_with_http_info(id, opts)
|
649
|
+
nil
|
650
|
+
end
|
651
|
+
|
652
|
+
# List followers of a person
|
653
|
+
# Lists the followers of a person.
|
654
|
+
# @param id [Integer] ID of a person
|
655
|
+
# @param [Hash] opts the optional parameters
|
656
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
657
|
+
def persons_id_followers_get_with_http_info(id, opts = {})
|
658
|
+
if @api_client.config.debugging
|
659
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_followers_get ...'
|
660
|
+
end
|
661
|
+
# verify the required parameter 'id' is set
|
662
|
+
if @api_client.config.client_side_validation && id.nil?
|
663
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_followers_get"
|
664
|
+
end
|
665
|
+
# resource path
|
666
|
+
local_var_path = '/persons/{id}/followers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
667
|
+
|
668
|
+
# query parameters
|
669
|
+
query_params = opts[:query_params] || {}
|
670
|
+
|
671
|
+
# header parameters
|
672
|
+
header_params = opts[:header_params] || {}
|
673
|
+
|
674
|
+
# form parameters
|
675
|
+
form_params = opts[:form_params] || {}
|
676
|
+
|
677
|
+
# http body (model)
|
678
|
+
post_body = opts[:body]
|
679
|
+
|
680
|
+
# return_type
|
681
|
+
return_type = opts[:return_type]
|
682
|
+
|
683
|
+
# auth_names
|
684
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
685
|
+
|
686
|
+
new_options = opts.merge(
|
687
|
+
:header_params => header_params,
|
688
|
+
:query_params => query_params,
|
689
|
+
:form_params => form_params,
|
690
|
+
:body => post_body,
|
691
|
+
:auth_names => auth_names,
|
692
|
+
:return_type => return_type
|
693
|
+
)
|
694
|
+
|
695
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
696
|
+
if @api_client.config.debugging
|
697
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_followers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
698
|
+
end
|
699
|
+
return data, status_code, headers
|
700
|
+
end
|
701
|
+
|
702
|
+
# Add a follower to a person
|
703
|
+
# Adds a follower to a person.
|
704
|
+
# @param id [Integer] ID of a person
|
705
|
+
# @param user_id [Integer] ID of the user
|
706
|
+
# @param [Hash] opts the optional parameters
|
707
|
+
# @return [nil]
|
708
|
+
def persons_id_followers_post(id, user_id, opts = {})
|
709
|
+
persons_id_followers_post_with_http_info(id, user_id, opts)
|
710
|
+
nil
|
711
|
+
end
|
712
|
+
|
713
|
+
# Add a follower to a person
|
714
|
+
# Adds a follower to a person.
|
715
|
+
# @param id [Integer] ID of a person
|
716
|
+
# @param user_id [Integer] ID of the user
|
717
|
+
# @param [Hash] opts the optional parameters
|
718
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
719
|
+
def persons_id_followers_post_with_http_info(id, user_id, opts = {})
|
720
|
+
if @api_client.config.debugging
|
721
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_followers_post ...'
|
722
|
+
end
|
723
|
+
# verify the required parameter 'id' is set
|
724
|
+
if @api_client.config.client_side_validation && id.nil?
|
725
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_followers_post"
|
726
|
+
end
|
727
|
+
# verify the required parameter 'user_id' is set
|
728
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
729
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling PersonsApi.persons_id_followers_post"
|
730
|
+
end
|
731
|
+
# resource path
|
732
|
+
local_var_path = '/persons/{id}/followers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
733
|
+
|
734
|
+
# query parameters
|
735
|
+
query_params = opts[:query_params] || {}
|
736
|
+
|
737
|
+
# header parameters
|
738
|
+
header_params = opts[:header_params] || {}
|
739
|
+
# HTTP header 'Content-Type'
|
740
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
741
|
+
|
742
|
+
# form parameters
|
743
|
+
form_params = opts[:form_params] || {}
|
744
|
+
form_params['user_id'] = user_id
|
745
|
+
|
746
|
+
# http body (model)
|
747
|
+
post_body = opts[:body]
|
748
|
+
|
749
|
+
# return_type
|
750
|
+
return_type = opts[:return_type]
|
751
|
+
|
752
|
+
# auth_names
|
753
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
754
|
+
|
755
|
+
new_options = opts.merge(
|
756
|
+
:header_params => header_params,
|
757
|
+
:query_params => query_params,
|
758
|
+
:form_params => form_params,
|
759
|
+
:body => post_body,
|
760
|
+
:auth_names => auth_names,
|
761
|
+
:return_type => return_type
|
762
|
+
)
|
763
|
+
|
764
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
765
|
+
if @api_client.config.debugging
|
766
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_followers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
767
|
+
end
|
768
|
+
return data, status_code, headers
|
769
|
+
end
|
770
|
+
|
771
|
+
# Get details of a person
|
772
|
+
# Returns details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the 'key' value of personFields.
|
773
|
+
# @param id [Integer] ID of a person
|
774
|
+
# @param [Hash] opts the optional parameters
|
775
|
+
# @return [nil]
|
776
|
+
def persons_id_get(id, opts = {})
|
777
|
+
persons_id_get_with_http_info(id, opts)
|
778
|
+
nil
|
779
|
+
end
|
780
|
+
|
781
|
+
# Get details of a person
|
782
|
+
# Returns details of a person. Note that this also returns some additional fields which are not present when asking for all persons. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the 'key' value of personFields.
|
783
|
+
# @param id [Integer] ID of a person
|
784
|
+
# @param [Hash] opts the optional parameters
|
785
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
786
|
+
def persons_id_get_with_http_info(id, opts = {})
|
787
|
+
if @api_client.config.debugging
|
788
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_get ...'
|
789
|
+
end
|
790
|
+
# verify the required parameter 'id' is set
|
791
|
+
if @api_client.config.client_side_validation && id.nil?
|
792
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_get"
|
793
|
+
end
|
794
|
+
# resource path
|
795
|
+
local_var_path = '/persons/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
796
|
+
|
797
|
+
# query parameters
|
798
|
+
query_params = opts[:query_params] || {}
|
799
|
+
|
800
|
+
# header parameters
|
801
|
+
header_params = opts[:header_params] || {}
|
802
|
+
|
803
|
+
# form parameters
|
804
|
+
form_params = opts[:form_params] || {}
|
805
|
+
|
806
|
+
# http body (model)
|
807
|
+
post_body = opts[:body]
|
808
|
+
|
809
|
+
# return_type
|
810
|
+
return_type = opts[:return_type]
|
811
|
+
|
812
|
+
# auth_names
|
813
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
814
|
+
|
815
|
+
new_options = opts.merge(
|
816
|
+
:header_params => header_params,
|
817
|
+
:query_params => query_params,
|
818
|
+
:form_params => form_params,
|
819
|
+
:body => post_body,
|
820
|
+
:auth_names => auth_names,
|
821
|
+
:return_type => return_type
|
822
|
+
)
|
823
|
+
|
824
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
825
|
+
if @api_client.config.debugging
|
826
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
827
|
+
end
|
828
|
+
return data, status_code, headers
|
829
|
+
end
|
830
|
+
|
831
|
+
# List mail messages associated with a person
|
832
|
+
# Lists mail messages associated with a person.
|
833
|
+
# @param id [Integer] ID of a person
|
834
|
+
# @param [Hash] opts the optional parameters
|
835
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
836
|
+
# @option opts [Integer] :limit Items shown per page
|
837
|
+
# @return [nil]
|
838
|
+
def persons_id_mail_messages_get(id, opts = {})
|
839
|
+
persons_id_mail_messages_get_with_http_info(id, opts)
|
840
|
+
nil
|
841
|
+
end
|
842
|
+
|
843
|
+
# List mail messages associated with a person
|
844
|
+
# Lists mail messages associated with a person.
|
845
|
+
# @param id [Integer] ID of a person
|
846
|
+
# @param [Hash] opts the optional parameters
|
847
|
+
# @option opts [Integer] :start Pagination start
|
848
|
+
# @option opts [Integer] :limit Items shown per page
|
849
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
850
|
+
def persons_id_mail_messages_get_with_http_info(id, opts = {})
|
851
|
+
if @api_client.config.debugging
|
852
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_mail_messages_get ...'
|
853
|
+
end
|
854
|
+
# verify the required parameter 'id' is set
|
855
|
+
if @api_client.config.client_side_validation && id.nil?
|
856
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_mail_messages_get"
|
857
|
+
end
|
858
|
+
# resource path
|
859
|
+
local_var_path = '/persons/{id}/mailMessages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
860
|
+
|
861
|
+
# query parameters
|
862
|
+
query_params = opts[:query_params] || {}
|
863
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
864
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
865
|
+
|
866
|
+
# header parameters
|
867
|
+
header_params = opts[:header_params] || {}
|
868
|
+
|
869
|
+
# form parameters
|
870
|
+
form_params = opts[:form_params] || {}
|
871
|
+
|
872
|
+
# http body (model)
|
873
|
+
post_body = opts[:body]
|
874
|
+
|
875
|
+
# return_type
|
876
|
+
return_type = opts[:return_type]
|
877
|
+
|
878
|
+
# auth_names
|
879
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
880
|
+
|
881
|
+
new_options = opts.merge(
|
882
|
+
:header_params => header_params,
|
883
|
+
:query_params => query_params,
|
884
|
+
:form_params => form_params,
|
885
|
+
:body => post_body,
|
886
|
+
:auth_names => auth_names,
|
887
|
+
:return_type => return_type
|
888
|
+
)
|
889
|
+
|
890
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
891
|
+
if @api_client.config.debugging
|
892
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_mail_messages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
893
|
+
end
|
894
|
+
return data, status_code, headers
|
895
|
+
end
|
896
|
+
|
897
|
+
# Merge two persons
|
898
|
+
# Merges a person with another person. For more information on how to merge two persons, see <a href=\"https://pipedrive.readme.io/docs/merging-two-persons\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
899
|
+
# @param id [Integer] ID of a person
|
900
|
+
# @param merge_with_id [Integer] The ID of the Person that will not be overwritten. This Person’s data will be prioritized in case of conflict with the other Person.
|
901
|
+
# @param [Hash] opts the optional parameters
|
902
|
+
# @return [nil]
|
903
|
+
def persons_id_merge_put(id, merge_with_id, opts = {})
|
904
|
+
persons_id_merge_put_with_http_info(id, merge_with_id, opts)
|
905
|
+
nil
|
906
|
+
end
|
907
|
+
|
908
|
+
# Merge two persons
|
909
|
+
# Merges a person with another person. For more information on how to merge two persons, see <a href=\"https://pipedrive.readme.io/docs/merging-two-persons\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
910
|
+
# @param id [Integer] ID of a person
|
911
|
+
# @param merge_with_id [Integer] The ID of the Person that will not be overwritten. This Person’s data will be prioritized in case of conflict with the other Person.
|
912
|
+
# @param [Hash] opts the optional parameters
|
913
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
914
|
+
def persons_id_merge_put_with_http_info(id, merge_with_id, opts = {})
|
915
|
+
if @api_client.config.debugging
|
916
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_merge_put ...'
|
917
|
+
end
|
918
|
+
# verify the required parameter 'id' is set
|
919
|
+
if @api_client.config.client_side_validation && id.nil?
|
920
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_merge_put"
|
921
|
+
end
|
922
|
+
# verify the required parameter 'merge_with_id' is set
|
923
|
+
if @api_client.config.client_side_validation && merge_with_id.nil?
|
924
|
+
fail ArgumentError, "Missing the required parameter 'merge_with_id' when calling PersonsApi.persons_id_merge_put"
|
925
|
+
end
|
926
|
+
# resource path
|
927
|
+
local_var_path = '/persons/{id}/merge'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
928
|
+
|
929
|
+
# query parameters
|
930
|
+
query_params = opts[:query_params] || {}
|
931
|
+
|
932
|
+
# header parameters
|
933
|
+
header_params = opts[:header_params] || {}
|
934
|
+
# HTTP header 'Content-Type'
|
935
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
936
|
+
|
937
|
+
# form parameters
|
938
|
+
form_params = opts[:form_params] || {}
|
939
|
+
form_params['merge_with_id'] = merge_with_id
|
940
|
+
|
941
|
+
# http body (model)
|
942
|
+
post_body = opts[:body]
|
943
|
+
|
944
|
+
# return_type
|
945
|
+
return_type = opts[:return_type]
|
946
|
+
|
947
|
+
# auth_names
|
948
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
949
|
+
|
950
|
+
new_options = opts.merge(
|
951
|
+
:header_params => header_params,
|
952
|
+
:query_params => query_params,
|
953
|
+
:form_params => form_params,
|
954
|
+
:body => post_body,
|
955
|
+
:auth_names => auth_names,
|
956
|
+
:return_type => return_type
|
957
|
+
)
|
958
|
+
|
959
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
960
|
+
if @api_client.config.debugging
|
961
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_merge_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
962
|
+
end
|
963
|
+
return data, status_code, headers
|
964
|
+
end
|
965
|
+
|
966
|
+
# List permitted users
|
967
|
+
# List users permitted to access a person
|
968
|
+
# @param id [Integer] ID of a person
|
969
|
+
# @param [Hash] opts the optional parameters
|
970
|
+
# @return [nil]
|
971
|
+
def persons_id_permitted_users_get(id, opts = {})
|
972
|
+
persons_id_permitted_users_get_with_http_info(id, opts)
|
973
|
+
nil
|
974
|
+
end
|
975
|
+
|
976
|
+
# List permitted users
|
977
|
+
# List users permitted to access a person
|
978
|
+
# @param id [Integer] ID of a person
|
979
|
+
# @param [Hash] opts the optional parameters
|
980
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
981
|
+
def persons_id_permitted_users_get_with_http_info(id, opts = {})
|
982
|
+
if @api_client.config.debugging
|
983
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_permitted_users_get ...'
|
984
|
+
end
|
985
|
+
# verify the required parameter 'id' is set
|
986
|
+
if @api_client.config.client_side_validation && id.nil?
|
987
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_permitted_users_get"
|
988
|
+
end
|
989
|
+
# resource path
|
990
|
+
local_var_path = '/persons/{id}/permittedUsers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
991
|
+
|
992
|
+
# query parameters
|
993
|
+
query_params = opts[:query_params] || {}
|
994
|
+
|
995
|
+
# header parameters
|
996
|
+
header_params = opts[:header_params] || {}
|
997
|
+
|
998
|
+
# form parameters
|
999
|
+
form_params = opts[:form_params] || {}
|
1000
|
+
|
1001
|
+
# http body (model)
|
1002
|
+
post_body = opts[:body]
|
1003
|
+
|
1004
|
+
# return_type
|
1005
|
+
return_type = opts[:return_type]
|
1006
|
+
|
1007
|
+
# auth_names
|
1008
|
+
auth_names = opts[:auth_names] || ['api_key']
|
1009
|
+
|
1010
|
+
new_options = opts.merge(
|
1011
|
+
:header_params => header_params,
|
1012
|
+
:query_params => query_params,
|
1013
|
+
:form_params => form_params,
|
1014
|
+
:body => post_body,
|
1015
|
+
:auth_names => auth_names,
|
1016
|
+
:return_type => return_type
|
1017
|
+
)
|
1018
|
+
|
1019
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1020
|
+
if @api_client.config.debugging
|
1021
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_permitted_users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1022
|
+
end
|
1023
|
+
return data, status_code, headers
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# Delete person picture
|
1027
|
+
# Delete person picture
|
1028
|
+
# @param id [Integer] ID of a person
|
1029
|
+
# @param [Hash] opts the optional parameters
|
1030
|
+
# @return [nil]
|
1031
|
+
def persons_id_picture_delete(id, opts = {})
|
1032
|
+
persons_id_picture_delete_with_http_info(id, opts)
|
1033
|
+
nil
|
1034
|
+
end
|
1035
|
+
|
1036
|
+
# Delete person picture
|
1037
|
+
# Delete person picture
|
1038
|
+
# @param id [Integer] ID of a person
|
1039
|
+
# @param [Hash] opts the optional parameters
|
1040
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1041
|
+
def persons_id_picture_delete_with_http_info(id, opts = {})
|
1042
|
+
if @api_client.config.debugging
|
1043
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_picture_delete ...'
|
1044
|
+
end
|
1045
|
+
# verify the required parameter 'id' is set
|
1046
|
+
if @api_client.config.client_side_validation && id.nil?
|
1047
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_picture_delete"
|
1048
|
+
end
|
1049
|
+
# resource path
|
1050
|
+
local_var_path = '/persons/{id}/picture'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1051
|
+
|
1052
|
+
# query parameters
|
1053
|
+
query_params = opts[:query_params] || {}
|
1054
|
+
|
1055
|
+
# header parameters
|
1056
|
+
header_params = opts[:header_params] || {}
|
1057
|
+
|
1058
|
+
# form parameters
|
1059
|
+
form_params = opts[:form_params] || {}
|
1060
|
+
|
1061
|
+
# http body (model)
|
1062
|
+
post_body = opts[:body]
|
1063
|
+
|
1064
|
+
# return_type
|
1065
|
+
return_type = opts[:return_type]
|
1066
|
+
|
1067
|
+
# auth_names
|
1068
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1069
|
+
|
1070
|
+
new_options = opts.merge(
|
1071
|
+
:header_params => header_params,
|
1072
|
+
:query_params => query_params,
|
1073
|
+
:form_params => form_params,
|
1074
|
+
:body => post_body,
|
1075
|
+
:auth_names => auth_names,
|
1076
|
+
:return_type => return_type
|
1077
|
+
)
|
1078
|
+
|
1079
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
1080
|
+
if @api_client.config.debugging
|
1081
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_picture_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1082
|
+
end
|
1083
|
+
return data, status_code, headers
|
1084
|
+
end
|
1085
|
+
|
1086
|
+
# Add person picture
|
1087
|
+
# Add a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares.
|
1088
|
+
# @param id [Integer] ID of a person
|
1089
|
+
# @param file [File] One image supplied in the multipart/form-data encoding.
|
1090
|
+
# @param [Hash] opts the optional parameters
|
1091
|
+
# @option opts [Integer] :crop_x X coordinate to where start cropping form (in pixels)
|
1092
|
+
# @option opts [Integer] :crop_y Y coordinate to where start cropping form (in pixels)
|
1093
|
+
# @option opts [Integer] :crop_width Width of cropping area (in pixels)
|
1094
|
+
# @option opts [Integer] :crop_height Height of cropping area (in pixels)
|
1095
|
+
# @return [nil]
|
1096
|
+
def persons_id_picture_post(id, file, opts = {})
|
1097
|
+
persons_id_picture_post_with_http_info(id, file, opts)
|
1098
|
+
nil
|
1099
|
+
end
|
1100
|
+
|
1101
|
+
# Add person picture
|
1102
|
+
# Add a picture to a person. If a picture is already set, the old picture will be replaced. Added image (or the cropping parameters supplied with the request) should have an equal width and height and should be at least 128 pixels. GIF, JPG and PNG are accepted. All added images will be resized to 128 and 512 pixel wide squares.
|
1103
|
+
# @param id [Integer] ID of a person
|
1104
|
+
# @param file [File] One image supplied in the multipart/form-data encoding.
|
1105
|
+
# @param [Hash] opts the optional parameters
|
1106
|
+
# @option opts [Integer] :crop_x X coordinate to where start cropping form (in pixels)
|
1107
|
+
# @option opts [Integer] :crop_y Y coordinate to where start cropping form (in pixels)
|
1108
|
+
# @option opts [Integer] :crop_width Width of cropping area (in pixels)
|
1109
|
+
# @option opts [Integer] :crop_height Height of cropping area (in pixels)
|
1110
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1111
|
+
def persons_id_picture_post_with_http_info(id, file, opts = {})
|
1112
|
+
if @api_client.config.debugging
|
1113
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_picture_post ...'
|
1114
|
+
end
|
1115
|
+
# verify the required parameter 'id' is set
|
1116
|
+
if @api_client.config.client_side_validation && id.nil?
|
1117
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_picture_post"
|
1118
|
+
end
|
1119
|
+
# verify the required parameter 'file' is set
|
1120
|
+
if @api_client.config.client_side_validation && file.nil?
|
1121
|
+
fail ArgumentError, "Missing the required parameter 'file' when calling PersonsApi.persons_id_picture_post"
|
1122
|
+
end
|
1123
|
+
# resource path
|
1124
|
+
local_var_path = '/persons/{id}/picture'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1125
|
+
|
1126
|
+
# query parameters
|
1127
|
+
query_params = opts[:query_params] || {}
|
1128
|
+
|
1129
|
+
# header parameters
|
1130
|
+
header_params = opts[:header_params] || {}
|
1131
|
+
# HTTP header 'Content-Type'
|
1132
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
1133
|
+
|
1134
|
+
# form parameters
|
1135
|
+
form_params = opts[:form_params] || {}
|
1136
|
+
form_params['file'] = file
|
1137
|
+
form_params['crop_x'] = opts[:'crop_x'] if !opts[:'crop_x'].nil?
|
1138
|
+
form_params['crop_y'] = opts[:'crop_y'] if !opts[:'crop_y'].nil?
|
1139
|
+
form_params['crop_width'] = opts[:'crop_width'] if !opts[:'crop_width'].nil?
|
1140
|
+
form_params['crop_height'] = opts[:'crop_height'] if !opts[:'crop_height'].nil?
|
1141
|
+
|
1142
|
+
# http body (model)
|
1143
|
+
post_body = opts[:body]
|
1144
|
+
|
1145
|
+
# return_type
|
1146
|
+
return_type = opts[:return_type]
|
1147
|
+
|
1148
|
+
# auth_names
|
1149
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1150
|
+
|
1151
|
+
new_options = opts.merge(
|
1152
|
+
:header_params => header_params,
|
1153
|
+
:query_params => query_params,
|
1154
|
+
:form_params => form_params,
|
1155
|
+
:body => post_body,
|
1156
|
+
:auth_names => auth_names,
|
1157
|
+
:return_type => return_type
|
1158
|
+
)
|
1159
|
+
|
1160
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1161
|
+
if @api_client.config.debugging
|
1162
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_picture_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1163
|
+
end
|
1164
|
+
return data, status_code, headers
|
1165
|
+
end
|
1166
|
+
|
1167
|
+
# List products associated with a person
|
1168
|
+
# Lists products associated with a person.
|
1169
|
+
# @param id [Integer] ID of a person
|
1170
|
+
# @param [Hash] opts the optional parameters
|
1171
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
1172
|
+
# @option opts [Integer] :limit Items shown per page
|
1173
|
+
# @return [nil]
|
1174
|
+
def persons_id_products_get(id, opts = {})
|
1175
|
+
persons_id_products_get_with_http_info(id, opts)
|
1176
|
+
nil
|
1177
|
+
end
|
1178
|
+
|
1179
|
+
# List products associated with a person
|
1180
|
+
# Lists products associated with a person.
|
1181
|
+
# @param id [Integer] ID of a person
|
1182
|
+
# @param [Hash] opts the optional parameters
|
1183
|
+
# @option opts [Integer] :start Pagination start
|
1184
|
+
# @option opts [Integer] :limit Items shown per page
|
1185
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1186
|
+
def persons_id_products_get_with_http_info(id, opts = {})
|
1187
|
+
if @api_client.config.debugging
|
1188
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_products_get ...'
|
1189
|
+
end
|
1190
|
+
# verify the required parameter 'id' is set
|
1191
|
+
if @api_client.config.client_side_validation && id.nil?
|
1192
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_products_get"
|
1193
|
+
end
|
1194
|
+
# resource path
|
1195
|
+
local_var_path = '/persons/{id}/products'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1196
|
+
|
1197
|
+
# query parameters
|
1198
|
+
query_params = opts[:query_params] || {}
|
1199
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
1200
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1201
|
+
|
1202
|
+
# header parameters
|
1203
|
+
header_params = opts[:header_params] || {}
|
1204
|
+
|
1205
|
+
# form parameters
|
1206
|
+
form_params = opts[:form_params] || {}
|
1207
|
+
|
1208
|
+
# http body (model)
|
1209
|
+
post_body = opts[:body]
|
1210
|
+
|
1211
|
+
# return_type
|
1212
|
+
return_type = opts[:return_type]
|
1213
|
+
|
1214
|
+
# auth_names
|
1215
|
+
auth_names = opts[:auth_names] || ['api_key']
|
1216
|
+
|
1217
|
+
new_options = opts.merge(
|
1218
|
+
:header_params => header_params,
|
1219
|
+
:query_params => query_params,
|
1220
|
+
:form_params => form_params,
|
1221
|
+
:body => post_body,
|
1222
|
+
:auth_names => auth_names,
|
1223
|
+
:return_type => return_type
|
1224
|
+
)
|
1225
|
+
|
1226
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1227
|
+
if @api_client.config.debugging
|
1228
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_products_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1229
|
+
end
|
1230
|
+
return data, status_code, headers
|
1231
|
+
end
|
1232
|
+
|
1233
|
+
# Update a person
|
1234
|
+
# Updates the properties of a person. For more information on how to update a person, see <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
1235
|
+
# @param id [Integer] ID of a person
|
1236
|
+
# @param [Hash] opts the optional parameters
|
1237
|
+
# @option opts [BasicPerson] :basic_person
|
1238
|
+
# @return [nil]
|
1239
|
+
def persons_id_put(id, opts = {})
|
1240
|
+
persons_id_put_with_http_info(id, opts)
|
1241
|
+
nil
|
1242
|
+
end
|
1243
|
+
|
1244
|
+
# Update a person
|
1245
|
+
# Updates the properties of a person. For more information on how to update a person, see <a href=\"https://pipedrive.readme.io/docs/updating-a-person\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
1246
|
+
# @param id [Integer] ID of a person
|
1247
|
+
# @param [Hash] opts the optional parameters
|
1248
|
+
# @option opts [BasicPerson] :basic_person
|
1249
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1250
|
+
def persons_id_put_with_http_info(id, opts = {})
|
1251
|
+
if @api_client.config.debugging
|
1252
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_id_put ...'
|
1253
|
+
end
|
1254
|
+
# verify the required parameter 'id' is set
|
1255
|
+
if @api_client.config.client_side_validation && id.nil?
|
1256
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling PersonsApi.persons_id_put"
|
1257
|
+
end
|
1258
|
+
# resource path
|
1259
|
+
local_var_path = '/persons/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1260
|
+
|
1261
|
+
# query parameters
|
1262
|
+
query_params = opts[:query_params] || {}
|
1263
|
+
|
1264
|
+
# header parameters
|
1265
|
+
header_params = opts[:header_params] || {}
|
1266
|
+
# HTTP header 'Content-Type'
|
1267
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1268
|
+
|
1269
|
+
# form parameters
|
1270
|
+
form_params = opts[:form_params] || {}
|
1271
|
+
|
1272
|
+
# http body (model)
|
1273
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'basic_person'])
|
1274
|
+
|
1275
|
+
# return_type
|
1276
|
+
return_type = opts[:return_type]
|
1277
|
+
|
1278
|
+
# auth_names
|
1279
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1280
|
+
|
1281
|
+
new_options = opts.merge(
|
1282
|
+
:header_params => header_params,
|
1283
|
+
:query_params => query_params,
|
1284
|
+
:form_params => form_params,
|
1285
|
+
:body => post_body,
|
1286
|
+
:auth_names => auth_names,
|
1287
|
+
:return_type => return_type
|
1288
|
+
)
|
1289
|
+
|
1290
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1291
|
+
if @api_client.config.debugging
|
1292
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1293
|
+
end
|
1294
|
+
return data, status_code, headers
|
1295
|
+
end
|
1296
|
+
|
1297
|
+
# Add a person
|
1298
|
+
# Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for 'key' values.
|
1299
|
+
# @param [Hash] opts the optional parameters
|
1300
|
+
# @option opts [NewPerson] :new_person
|
1301
|
+
# @return [nil]
|
1302
|
+
def persons_post(opts = {})
|
1303
|
+
persons_post_with_http_info(opts)
|
1304
|
+
nil
|
1305
|
+
end
|
1306
|
+
|
1307
|
+
# Add a person
|
1308
|
+
# Adds a new person. Note that you can supply additional custom fields along with the request that are not described here. These custom fields are different for each Pipedrive account and can be recognized by long hashes as keys. To determine which custom fields exists, fetch the personFields and look for 'key' values.
|
1309
|
+
# @param [Hash] opts the optional parameters
|
1310
|
+
# @option opts [NewPerson] :new_person
|
1311
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1312
|
+
def persons_post_with_http_info(opts = {})
|
1313
|
+
if @api_client.config.debugging
|
1314
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_post ...'
|
1315
|
+
end
|
1316
|
+
# resource path
|
1317
|
+
local_var_path = '/persons'
|
1318
|
+
|
1319
|
+
# query parameters
|
1320
|
+
query_params = opts[:query_params] || {}
|
1321
|
+
|
1322
|
+
# header parameters
|
1323
|
+
header_params = opts[:header_params] || {}
|
1324
|
+
# HTTP header 'Content-Type'
|
1325
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1326
|
+
|
1327
|
+
# form parameters
|
1328
|
+
form_params = opts[:form_params] || {}
|
1329
|
+
|
1330
|
+
# http body (model)
|
1331
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'new_person'])
|
1332
|
+
|
1333
|
+
# return_type
|
1334
|
+
return_type = opts[:return_type]
|
1335
|
+
|
1336
|
+
# auth_names
|
1337
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1338
|
+
|
1339
|
+
new_options = opts.merge(
|
1340
|
+
:header_params => header_params,
|
1341
|
+
:query_params => query_params,
|
1342
|
+
:form_params => form_params,
|
1343
|
+
:body => post_body,
|
1344
|
+
:auth_names => auth_names,
|
1345
|
+
:return_type => return_type
|
1346
|
+
)
|
1347
|
+
|
1348
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1349
|
+
if @api_client.config.debugging
|
1350
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1351
|
+
end
|
1352
|
+
return data, status_code, headers
|
1353
|
+
end
|
1354
|
+
|
1355
|
+
# Search persons
|
1356
|
+
# Searches all Persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> with a narrower OAuth scope. Found Persons can be filtered by Organization ID.
|
1357
|
+
# @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
|
1358
|
+
# @param [Hash] opts the optional parameters
|
1359
|
+
# @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1360
|
+
# @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
1361
|
+
# @option opts [Integer] :organization_id Will filter Deals by the provided Organization ID. The upper limit of found Deals associated with the Organization is 2000.
|
1362
|
+
# @option opts [String] :include_fields Supports including optional fields in the results which are not provided by default.
|
1363
|
+
# @option opts [Integer] :start Pagination start. Note that the pagination is based on main results and does not include related items when using search_for_related_items parameter. (default to 0)
|
1364
|
+
# @option opts [Integer] :limit Items shown per page
|
1365
|
+
# @return [BaseResponse]
|
1366
|
+
def persons_search_get(term, opts = {})
|
1367
|
+
data, _status_code, _headers = persons_search_get_with_http_info(term, opts)
|
1368
|
+
data
|
1369
|
+
end
|
1370
|
+
|
1371
|
+
# Search persons
|
1372
|
+
# Searches all Persons by name, email, phone, notes and/or custom fields. This endpoint is a wrapper of <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> with a narrower OAuth scope. Found Persons can be filtered by Organization ID.
|
1373
|
+
# @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
|
1374
|
+
# @param [Hash] opts the optional parameters
|
1375
|
+
# @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1376
|
+
# @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
1377
|
+
# @option opts [Integer] :organization_id Will filter Deals by the provided Organization ID. The upper limit of found Deals associated with the Organization is 2000.
|
1378
|
+
# @option opts [String] :include_fields Supports including optional fields in the results which are not provided by default.
|
1379
|
+
# @option opts [Integer] :start Pagination start. Note that the pagination is based on main results and does not include related items when using search_for_related_items parameter.
|
1380
|
+
# @option opts [Integer] :limit Items shown per page
|
1381
|
+
# @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
|
1382
|
+
def persons_search_get_with_http_info(term, opts = {})
|
1383
|
+
if @api_client.config.debugging
|
1384
|
+
@api_client.config.logger.debug 'Calling API: PersonsApi.persons_search_get ...'
|
1385
|
+
end
|
1386
|
+
# verify the required parameter 'term' is set
|
1387
|
+
if @api_client.config.client_side_validation && term.nil?
|
1388
|
+
fail ArgumentError, "Missing the required parameter 'term' when calling PersonsApi.persons_search_get"
|
1389
|
+
end
|
1390
|
+
allowable_values = ["custom_fields", "email", "notes", "phone", "name"]
|
1391
|
+
if @api_client.config.client_side_validation && opts[:'fields'] && !allowable_values.include?(opts[:'fields'])
|
1392
|
+
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
1393
|
+
end
|
1394
|
+
allowable_values = ["true", "false"]
|
1395
|
+
if @api_client.config.client_side_validation && opts[:'exact_match'] && !allowable_values.include?(opts[:'exact_match'])
|
1396
|
+
fail ArgumentError, "invalid value for \"exact_match\", must be one of #{allowable_values}"
|
1397
|
+
end
|
1398
|
+
allowable_values = ["person.picture"]
|
1399
|
+
if @api_client.config.client_side_validation && opts[:'include_fields'] && !allowable_values.include?(opts[:'include_fields'])
|
1400
|
+
fail ArgumentError, "invalid value for \"include_fields\", must be one of #{allowable_values}"
|
1401
|
+
end
|
1402
|
+
# resource path
|
1403
|
+
local_var_path = '/persons/search'
|
1404
|
+
|
1405
|
+
# query parameters
|
1406
|
+
query_params = opts[:query_params] || {}
|
1407
|
+
query_params[:'term'] = term
|
1408
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
1409
|
+
query_params[:'exact_match'] = opts[:'exact_match'] if !opts[:'exact_match'].nil?
|
1410
|
+
query_params[:'organization_id'] = opts[:'organization_id'] if !opts[:'organization_id'].nil?
|
1411
|
+
query_params[:'include_fields'] = opts[:'include_fields'] if !opts[:'include_fields'].nil?
|
1412
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
1413
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1414
|
+
|
1415
|
+
# header parameters
|
1416
|
+
header_params = opts[:header_params] || {}
|
1417
|
+
# HTTP header 'Accept' (if needed)
|
1418
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1419
|
+
|
1420
|
+
# form parameters
|
1421
|
+
form_params = opts[:form_params] || {}
|
1422
|
+
|
1423
|
+
# http body (model)
|
1424
|
+
post_body = opts[:body]
|
1425
|
+
|
1426
|
+
# return_type
|
1427
|
+
return_type = opts[:return_type] || 'BaseResponse'
|
1428
|
+
|
1429
|
+
# auth_names
|
1430
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1431
|
+
|
1432
|
+
new_options = opts.merge(
|
1433
|
+
:header_params => header_params,
|
1434
|
+
:query_params => query_params,
|
1435
|
+
:form_params => form_params,
|
1436
|
+
:body => post_body,
|
1437
|
+
:auth_names => auth_names,
|
1438
|
+
:return_type => return_type
|
1439
|
+
)
|
1440
|
+
|
1441
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1442
|
+
if @api_client.config.debugging
|
1443
|
+
@api_client.config.logger.debug "API called: PersonsApi#persons_search_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1444
|
+
end
|
1445
|
+
return data, status_code, headers
|
1446
|
+
end
|
1447
|
+
end
|
1448
|
+
end
|