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,340 @@
|
|
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 OrganizationRelationshipsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Get all relationships for organization
|
23
|
+
# Gets all of the relationships for a supplied organization id.
|
24
|
+
# @param org_id [Integer] ID of the organization to get relationships for
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def organization_relationships_get(org_id, opts = {})
|
28
|
+
organization_relationships_get_with_http_info(org_id, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Get all relationships for organization
|
33
|
+
# Gets all of the relationships for a supplied organization id.
|
34
|
+
# @param org_id [Integer] ID of the organization to get relationships for
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def organization_relationships_get_with_http_info(org_id, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: OrganizationRelationshipsApi.organization_relationships_get ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'org_id' is set
|
42
|
+
if @api_client.config.client_side_validation && org_id.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'org_id' when calling OrganizationRelationshipsApi.organization_relationships_get"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/organizationRelationships'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
query_params[:'org_id'] = org_id
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = opts[:header_params] || {}
|
54
|
+
|
55
|
+
# form parameters
|
56
|
+
form_params = opts[:form_params] || {}
|
57
|
+
|
58
|
+
# http body (model)
|
59
|
+
post_body = opts[:body]
|
60
|
+
|
61
|
+
# return_type
|
62
|
+
return_type = opts[:return_type]
|
63
|
+
|
64
|
+
# auth_names
|
65
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
66
|
+
|
67
|
+
new_options = opts.merge(
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: OrganizationRelationshipsApi#organization_relationships_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
83
|
+
# Delete an organization relationship
|
84
|
+
# Deletes an organization relationship and returns the deleted id.
|
85
|
+
# @param id [Integer] ID of the organization relationship
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @return [nil]
|
88
|
+
def organization_relationships_id_delete(id, opts = {})
|
89
|
+
organization_relationships_id_delete_with_http_info(id, opts)
|
90
|
+
nil
|
91
|
+
end
|
92
|
+
|
93
|
+
# Delete an organization relationship
|
94
|
+
# Deletes an organization relationship and returns the deleted id.
|
95
|
+
# @param id [Integer] ID of the organization relationship
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
98
|
+
def organization_relationships_id_delete_with_http_info(id, opts = {})
|
99
|
+
if @api_client.config.debugging
|
100
|
+
@api_client.config.logger.debug 'Calling API: OrganizationRelationshipsApi.organization_relationships_id_delete ...'
|
101
|
+
end
|
102
|
+
# verify the required parameter 'id' is set
|
103
|
+
if @api_client.config.client_side_validation && id.nil?
|
104
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationRelationshipsApi.organization_relationships_id_delete"
|
105
|
+
end
|
106
|
+
# resource path
|
107
|
+
local_var_path = '/organizationRelationships/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
108
|
+
|
109
|
+
# query parameters
|
110
|
+
query_params = opts[:query_params] || {}
|
111
|
+
|
112
|
+
# header parameters
|
113
|
+
header_params = opts[:header_params] || {}
|
114
|
+
|
115
|
+
# form parameters
|
116
|
+
form_params = opts[:form_params] || {}
|
117
|
+
|
118
|
+
# http body (model)
|
119
|
+
post_body = opts[:body]
|
120
|
+
|
121
|
+
# return_type
|
122
|
+
return_type = opts[:return_type]
|
123
|
+
|
124
|
+
# auth_names
|
125
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
126
|
+
|
127
|
+
new_options = opts.merge(
|
128
|
+
:header_params => header_params,
|
129
|
+
:query_params => query_params,
|
130
|
+
:form_params => form_params,
|
131
|
+
:body => post_body,
|
132
|
+
:auth_names => auth_names,
|
133
|
+
:return_type => return_type
|
134
|
+
)
|
135
|
+
|
136
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
137
|
+
if @api_client.config.debugging
|
138
|
+
@api_client.config.logger.debug "API called: OrganizationRelationshipsApi#organization_relationships_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
139
|
+
end
|
140
|
+
return data, status_code, headers
|
141
|
+
end
|
142
|
+
|
143
|
+
# Get one organization relationship
|
144
|
+
# Finds and returns an organization relationship from its ID.
|
145
|
+
# @param id [Integer] ID of the organization relationship
|
146
|
+
# @param [Hash] opts the optional parameters
|
147
|
+
# @option opts [Integer] :org_id ID of the base organization for the returned calculated values
|
148
|
+
# @return [nil]
|
149
|
+
def organization_relationships_id_get(id, opts = {})
|
150
|
+
organization_relationships_id_get_with_http_info(id, opts)
|
151
|
+
nil
|
152
|
+
end
|
153
|
+
|
154
|
+
# Get one organization relationship
|
155
|
+
# Finds and returns an organization relationship from its ID.
|
156
|
+
# @param id [Integer] ID of the organization relationship
|
157
|
+
# @param [Hash] opts the optional parameters
|
158
|
+
# @option opts [Integer] :org_id ID of the base organization for the returned calculated values
|
159
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
160
|
+
def organization_relationships_id_get_with_http_info(id, opts = {})
|
161
|
+
if @api_client.config.debugging
|
162
|
+
@api_client.config.logger.debug 'Calling API: OrganizationRelationshipsApi.organization_relationships_id_get ...'
|
163
|
+
end
|
164
|
+
# verify the required parameter 'id' is set
|
165
|
+
if @api_client.config.client_side_validation && id.nil?
|
166
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationRelationshipsApi.organization_relationships_id_get"
|
167
|
+
end
|
168
|
+
# resource path
|
169
|
+
local_var_path = '/organizationRelationships/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
170
|
+
|
171
|
+
# query parameters
|
172
|
+
query_params = opts[:query_params] || {}
|
173
|
+
query_params[:'org_id'] = opts[:'org_id'] if !opts[:'org_id'].nil?
|
174
|
+
|
175
|
+
# header parameters
|
176
|
+
header_params = opts[:header_params] || {}
|
177
|
+
|
178
|
+
# form parameters
|
179
|
+
form_params = opts[:form_params] || {}
|
180
|
+
|
181
|
+
# http body (model)
|
182
|
+
post_body = opts[:body]
|
183
|
+
|
184
|
+
# return_type
|
185
|
+
return_type = opts[:return_type]
|
186
|
+
|
187
|
+
# auth_names
|
188
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
189
|
+
|
190
|
+
new_options = opts.merge(
|
191
|
+
:header_params => header_params,
|
192
|
+
:query_params => query_params,
|
193
|
+
:form_params => form_params,
|
194
|
+
:body => post_body,
|
195
|
+
:auth_names => auth_names,
|
196
|
+
:return_type => return_type
|
197
|
+
)
|
198
|
+
|
199
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
200
|
+
if @api_client.config.debugging
|
201
|
+
@api_client.config.logger.debug "API called: OrganizationRelationshipsApi#organization_relationships_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
202
|
+
end
|
203
|
+
return data, status_code, headers
|
204
|
+
end
|
205
|
+
|
206
|
+
# Update an organization relationship
|
207
|
+
# Updates and returns an organization relationship.
|
208
|
+
# @param id [Integer] ID of the organization relationship
|
209
|
+
# @param [Hash] opts the optional parameters
|
210
|
+
# @option opts [Integer] :org_id ID of the base organization for the returned calculated values
|
211
|
+
# @option opts [String] :type The type of organization relationship.
|
212
|
+
# @option opts [Integer] :rel_owner_org_id The owner of this relationship. If type is 'parent', then the owner is the parent and the linked organization is the daughter.
|
213
|
+
# @option opts [Integer] :rel_linked_org_id The linked organization in this relationship. If type is 'parent', then the linked organization is the daughter.
|
214
|
+
# @return [nil]
|
215
|
+
def organization_relationships_id_put(id, opts = {})
|
216
|
+
organization_relationships_id_put_with_http_info(id, opts)
|
217
|
+
nil
|
218
|
+
end
|
219
|
+
|
220
|
+
# Update an organization relationship
|
221
|
+
# Updates and returns an organization relationship.
|
222
|
+
# @param id [Integer] ID of the organization relationship
|
223
|
+
# @param [Hash] opts the optional parameters
|
224
|
+
# @option opts [Integer] :org_id ID of the base organization for the returned calculated values
|
225
|
+
# @option opts [String] :type The type of organization relationship.
|
226
|
+
# @option opts [Integer] :rel_owner_org_id The owner of this relationship. If type is 'parent', then the owner is the parent and the linked organization is the daughter.
|
227
|
+
# @option opts [Integer] :rel_linked_org_id The linked organization in this relationship. If type is 'parent', then the linked organization is the daughter.
|
228
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
229
|
+
def organization_relationships_id_put_with_http_info(id, opts = {})
|
230
|
+
if @api_client.config.debugging
|
231
|
+
@api_client.config.logger.debug 'Calling API: OrganizationRelationshipsApi.organization_relationships_id_put ...'
|
232
|
+
end
|
233
|
+
# verify the required parameter 'id' is set
|
234
|
+
if @api_client.config.client_side_validation && id.nil?
|
235
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationRelationshipsApi.organization_relationships_id_put"
|
236
|
+
end
|
237
|
+
allowable_values = ["parent", "related"]
|
238
|
+
if @api_client.config.client_side_validation && opts[:'type'] && !allowable_values.include?(opts[:'type'])
|
239
|
+
fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}"
|
240
|
+
end
|
241
|
+
# resource path
|
242
|
+
local_var_path = '/organizationRelationships/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
243
|
+
|
244
|
+
# query parameters
|
245
|
+
query_params = opts[:query_params] || {}
|
246
|
+
|
247
|
+
# header parameters
|
248
|
+
header_params = opts[:header_params] || {}
|
249
|
+
# HTTP header 'Content-Type'
|
250
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
251
|
+
|
252
|
+
# form parameters
|
253
|
+
form_params = opts[:form_params] || {}
|
254
|
+
form_params['org_id'] = opts[:'org_id'] if !opts[:'org_id'].nil?
|
255
|
+
form_params['type'] = opts[:'type'] if !opts[:'type'].nil?
|
256
|
+
form_params['rel_owner_org_id'] = opts[:'rel_owner_org_id'] if !opts[:'rel_owner_org_id'].nil?
|
257
|
+
form_params['rel_linked_org_id'] = opts[:'rel_linked_org_id'] if !opts[:'rel_linked_org_id'].nil?
|
258
|
+
|
259
|
+
# http body (model)
|
260
|
+
post_body = opts[:body]
|
261
|
+
|
262
|
+
# return_type
|
263
|
+
return_type = opts[:return_type]
|
264
|
+
|
265
|
+
# auth_names
|
266
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
267
|
+
|
268
|
+
new_options = opts.merge(
|
269
|
+
:header_params => header_params,
|
270
|
+
:query_params => query_params,
|
271
|
+
:form_params => form_params,
|
272
|
+
:body => post_body,
|
273
|
+
:auth_names => auth_names,
|
274
|
+
:return_type => return_type
|
275
|
+
)
|
276
|
+
|
277
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
278
|
+
if @api_client.config.debugging
|
279
|
+
@api_client.config.logger.debug "API called: OrganizationRelationshipsApi#organization_relationships_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
+
end
|
281
|
+
return data, status_code, headers
|
282
|
+
end
|
283
|
+
|
284
|
+
# Create an organization relationship
|
285
|
+
# Creates and returns an organization relationship.
|
286
|
+
# @param [Hash] opts the optional parameters
|
287
|
+
# @return [nil]
|
288
|
+
def organization_relationships_post(opts = {})
|
289
|
+
organization_relationships_post_with_http_info(opts)
|
290
|
+
nil
|
291
|
+
end
|
292
|
+
|
293
|
+
# Create an organization relationship
|
294
|
+
# Creates and returns an organization relationship.
|
295
|
+
# @param [Hash] opts the optional parameters
|
296
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
297
|
+
def organization_relationships_post_with_http_info(opts = {})
|
298
|
+
if @api_client.config.debugging
|
299
|
+
@api_client.config.logger.debug 'Calling API: OrganizationRelationshipsApi.organization_relationships_post ...'
|
300
|
+
end
|
301
|
+
# resource path
|
302
|
+
local_var_path = '/organizationRelationships'
|
303
|
+
|
304
|
+
# query parameters
|
305
|
+
query_params = opts[:query_params] || {}
|
306
|
+
|
307
|
+
# header parameters
|
308
|
+
header_params = opts[:header_params] || {}
|
309
|
+
# HTTP header 'Content-Type'
|
310
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
311
|
+
|
312
|
+
# form parameters
|
313
|
+
form_params = opts[:form_params] || {}
|
314
|
+
|
315
|
+
# http body (model)
|
316
|
+
post_body = opts[:body]
|
317
|
+
|
318
|
+
# return_type
|
319
|
+
return_type = opts[:return_type]
|
320
|
+
|
321
|
+
# auth_names
|
322
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
323
|
+
|
324
|
+
new_options = opts.merge(
|
325
|
+
:header_params => header_params,
|
326
|
+
:query_params => query_params,
|
327
|
+
:form_params => form_params,
|
328
|
+
:body => post_body,
|
329
|
+
:auth_names => auth_names,
|
330
|
+
:return_type => return_type
|
331
|
+
)
|
332
|
+
|
333
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
334
|
+
if @api_client.config.debugging
|
335
|
+
@api_client.config.logger.debug "API called: OrganizationRelationshipsApi#organization_relationships_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
336
|
+
end
|
337
|
+
return data, status_code, headers
|
338
|
+
end
|
339
|
+
end
|
340
|
+
end
|
@@ -0,0 +1,1303 @@
|
|
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 OrganizationsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete multiple organizations in bulk
|
23
|
+
# Marks multiple organizations as deleted.
|
24
|
+
# @param ids [String] Comma-separated IDs that will be deleted
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [nil]
|
27
|
+
def organizations_delete(ids, opts = {})
|
28
|
+
organizations_delete_with_http_info(ids, opts)
|
29
|
+
nil
|
30
|
+
end
|
31
|
+
|
32
|
+
# Delete multiple organizations in bulk
|
33
|
+
# Marks multiple organizations as deleted.
|
34
|
+
# @param ids [String] Comma-separated IDs that will be deleted
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
37
|
+
def organizations_delete_with_http_info(ids, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_delete ...'
|
40
|
+
end
|
41
|
+
# verify the required parameter 'ids' is set
|
42
|
+
if @api_client.config.client_side_validation && ids.nil?
|
43
|
+
fail ArgumentError, "Missing the required parameter 'ids' when calling OrganizationsApi.organizations_delete"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/organizations'
|
47
|
+
|
48
|
+
# query parameters
|
49
|
+
query_params = opts[:query_params] || {}
|
50
|
+
query_params[:'ids'] = ids
|
51
|
+
|
52
|
+
# header parameters
|
53
|
+
header_params = opts[:header_params] || {}
|
54
|
+
|
55
|
+
# form parameters
|
56
|
+
form_params = opts[:form_params] || {}
|
57
|
+
|
58
|
+
# http body (model)
|
59
|
+
post_body = opts[:body]
|
60
|
+
|
61
|
+
# return_type
|
62
|
+
return_type = opts[:return_type]
|
63
|
+
|
64
|
+
# auth_names
|
65
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
66
|
+
|
67
|
+
new_options = opts.merge(
|
68
|
+
:header_params => header_params,
|
69
|
+
:query_params => query_params,
|
70
|
+
:form_params => form_params,
|
71
|
+
:body => post_body,
|
72
|
+
:auth_names => auth_names,
|
73
|
+
:return_type => return_type
|
74
|
+
)
|
75
|
+
|
76
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
77
|
+
if @api_client.config.debugging
|
78
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
79
|
+
end
|
80
|
+
return data, status_code, headers
|
81
|
+
end
|
82
|
+
|
83
|
+
# Find organizations by name
|
84
|
+
# <strong>This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Organizations/get_organizations_search\">/v1/organizations/search</a> or <<a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> instead</strong>. <br> Searches all organizations by their name.
|
85
|
+
# @param term [String] Search term to look for
|
86
|
+
# @param [Hash] opts the optional parameters
|
87
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
88
|
+
# @option opts [Integer] :limit Items shown per page
|
89
|
+
# @return [nil]
|
90
|
+
def organizations_find_get(term, opts = {})
|
91
|
+
organizations_find_get_with_http_info(term, opts)
|
92
|
+
nil
|
93
|
+
end
|
94
|
+
|
95
|
+
# Find organizations by name
|
96
|
+
# <strong>This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Organizations/get_organizations_search\">/v1/organizations/search</a> or <<a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> instead</strong>. <br> Searches all organizations by their name.
|
97
|
+
# @param term [String] Search term to look for
|
98
|
+
# @param [Hash] opts the optional parameters
|
99
|
+
# @option opts [Integer] :start Pagination start
|
100
|
+
# @option opts [Integer] :limit Items shown per page
|
101
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
102
|
+
def organizations_find_get_with_http_info(term, opts = {})
|
103
|
+
if @api_client.config.debugging
|
104
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_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 OrganizationsApi.organizations_find_get"
|
109
|
+
end
|
110
|
+
# resource path
|
111
|
+
local_var_path = '/organizations/find'
|
112
|
+
|
113
|
+
# query parameters
|
114
|
+
query_params = opts[:query_params] || {}
|
115
|
+
query_params[:'term'] = term
|
116
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
117
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
118
|
+
|
119
|
+
# header parameters
|
120
|
+
header_params = opts[:header_params] || {}
|
121
|
+
|
122
|
+
# form parameters
|
123
|
+
form_params = opts[:form_params] || {}
|
124
|
+
|
125
|
+
# http body (model)
|
126
|
+
post_body = opts[:body]
|
127
|
+
|
128
|
+
# return_type
|
129
|
+
return_type = opts[:return_type]
|
130
|
+
|
131
|
+
# auth_names
|
132
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
133
|
+
|
134
|
+
new_options = opts.merge(
|
135
|
+
:header_params => header_params,
|
136
|
+
:query_params => query_params,
|
137
|
+
:form_params => form_params,
|
138
|
+
:body => post_body,
|
139
|
+
:auth_names => auth_names,
|
140
|
+
:return_type => return_type
|
141
|
+
)
|
142
|
+
|
143
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
144
|
+
if @api_client.config.debugging
|
145
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_find_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
146
|
+
end
|
147
|
+
return data, status_code, headers
|
148
|
+
end
|
149
|
+
|
150
|
+
# Get all organizations
|
151
|
+
# Returns all organizations
|
152
|
+
# @param [Hash] opts the optional parameters
|
153
|
+
# @option opts [Integer] :user_id If supplied, only organizations owned by the given user will be returned.
|
154
|
+
# @option opts [Integer] :filter_id ID of the filter to use
|
155
|
+
# @option opts [String] :first_char If supplied, only organizations whose name starts with the specified letter will be returned (case insensitive).
|
156
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
157
|
+
# @option opts [Integer] :limit Items shown per page
|
158
|
+
# @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).
|
159
|
+
# @return [nil]
|
160
|
+
def organizations_get(opts = {})
|
161
|
+
organizations_get_with_http_info(opts)
|
162
|
+
nil
|
163
|
+
end
|
164
|
+
|
165
|
+
# Get all organizations
|
166
|
+
# Returns all organizations
|
167
|
+
# @param [Hash] opts the optional parameters
|
168
|
+
# @option opts [Integer] :user_id If supplied, only organizations owned by the given user will be returned.
|
169
|
+
# @option opts [Integer] :filter_id ID of the filter to use
|
170
|
+
# @option opts [String] :first_char If supplied, only organizations whose name starts with the specified letter will be returned (case insensitive).
|
171
|
+
# @option opts [Integer] :start Pagination start
|
172
|
+
# @option opts [Integer] :limit Items shown per page
|
173
|
+
# @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).
|
174
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
175
|
+
def organizations_get_with_http_info(opts = {})
|
176
|
+
if @api_client.config.debugging
|
177
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_get ...'
|
178
|
+
end
|
179
|
+
# resource path
|
180
|
+
local_var_path = '/organizations'
|
181
|
+
|
182
|
+
# query parameters
|
183
|
+
query_params = opts[:query_params] || {}
|
184
|
+
query_params[:'user_id'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
185
|
+
query_params[:'filter_id'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
|
186
|
+
query_params[:'first_char'] = opts[:'first_char'] if !opts[:'first_char'].nil?
|
187
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
188
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
189
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
190
|
+
|
191
|
+
# header parameters
|
192
|
+
header_params = opts[:header_params] || {}
|
193
|
+
|
194
|
+
# form parameters
|
195
|
+
form_params = opts[:form_params] || {}
|
196
|
+
|
197
|
+
# http body (model)
|
198
|
+
post_body = opts[:body]
|
199
|
+
|
200
|
+
# return_type
|
201
|
+
return_type = opts[:return_type]
|
202
|
+
|
203
|
+
# auth_names
|
204
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
205
|
+
|
206
|
+
new_options = opts.merge(
|
207
|
+
:header_params => header_params,
|
208
|
+
:query_params => query_params,
|
209
|
+
:form_params => form_params,
|
210
|
+
:body => post_body,
|
211
|
+
:auth_names => auth_names,
|
212
|
+
:return_type => return_type
|
213
|
+
)
|
214
|
+
|
215
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
216
|
+
if @api_client.config.debugging
|
217
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
218
|
+
end
|
219
|
+
return data, status_code, headers
|
220
|
+
end
|
221
|
+
|
222
|
+
# List activities associated with an organization
|
223
|
+
# Lists activities associated with an organization.
|
224
|
+
# @param id [Integer] ID of the organization
|
225
|
+
# @param [Hash] opts the optional parameters
|
226
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
227
|
+
# @option opts [Integer] :limit Items shown per page
|
228
|
+
# @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.
|
229
|
+
# @option opts [String] :exclude A comma-separated string of activity IDs to exclude from result
|
230
|
+
# @return [nil]
|
231
|
+
def organizations_id_activities_get(id, opts = {})
|
232
|
+
organizations_id_activities_get_with_http_info(id, opts)
|
233
|
+
nil
|
234
|
+
end
|
235
|
+
|
236
|
+
# List activities associated with an organization
|
237
|
+
# Lists activities associated with an organization.
|
238
|
+
# @param id [Integer] ID of the organization
|
239
|
+
# @param [Hash] opts the optional parameters
|
240
|
+
# @option opts [Integer] :start Pagination start
|
241
|
+
# @option opts [Integer] :limit Items shown per page
|
242
|
+
# @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.
|
243
|
+
# @option opts [String] :exclude A comma-separated string of activity IDs to exclude from result
|
244
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
245
|
+
def organizations_id_activities_get_with_http_info(id, opts = {})
|
246
|
+
if @api_client.config.debugging
|
247
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_activities_get ...'
|
248
|
+
end
|
249
|
+
# verify the required parameter 'id' is set
|
250
|
+
if @api_client.config.client_side_validation && id.nil?
|
251
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_activities_get"
|
252
|
+
end
|
253
|
+
# resource path
|
254
|
+
local_var_path = '/organizations/{id}/activities'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
255
|
+
|
256
|
+
# query parameters
|
257
|
+
query_params = opts[:query_params] || {}
|
258
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
259
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
260
|
+
query_params[:'done'] = opts[:'done'] if !opts[:'done'].nil?
|
261
|
+
query_params[:'exclude'] = opts[:'exclude'] if !opts[:'exclude'].nil?
|
262
|
+
|
263
|
+
# header parameters
|
264
|
+
header_params = opts[:header_params] || {}
|
265
|
+
|
266
|
+
# form parameters
|
267
|
+
form_params = opts[:form_params] || {}
|
268
|
+
|
269
|
+
# http body (model)
|
270
|
+
post_body = opts[:body]
|
271
|
+
|
272
|
+
# return_type
|
273
|
+
return_type = opts[:return_type]
|
274
|
+
|
275
|
+
# auth_names
|
276
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
277
|
+
|
278
|
+
new_options = opts.merge(
|
279
|
+
:header_params => header_params,
|
280
|
+
:query_params => query_params,
|
281
|
+
:form_params => form_params,
|
282
|
+
:body => post_body,
|
283
|
+
:auth_names => auth_names,
|
284
|
+
:return_type => return_type
|
285
|
+
)
|
286
|
+
|
287
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
288
|
+
if @api_client.config.debugging
|
289
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_activities_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
290
|
+
end
|
291
|
+
return data, status_code, headers
|
292
|
+
end
|
293
|
+
|
294
|
+
# List deals associated with an organization
|
295
|
+
# Lists deals associated with an organization.
|
296
|
+
# @param id [Integer] ID of the organization
|
297
|
+
# @param [Hash] opts the optional parameters
|
298
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
299
|
+
# @option opts [Integer] :limit Items shown per page
|
300
|
+
# @option opts [String] :status Only fetch deals with specific status. If omitted, all not deleted deals are fetched. (default to 'all_not_deleted')
|
301
|
+
# @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).
|
302
|
+
# @option opts [NumberBoolean] :only_primary_association If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization.
|
303
|
+
# @return [nil]
|
304
|
+
def organizations_id_deals_get(id, opts = {})
|
305
|
+
organizations_id_deals_get_with_http_info(id, opts)
|
306
|
+
nil
|
307
|
+
end
|
308
|
+
|
309
|
+
# List deals associated with an organization
|
310
|
+
# Lists deals associated with an organization.
|
311
|
+
# @param id [Integer] ID of the organization
|
312
|
+
# @param [Hash] opts the optional parameters
|
313
|
+
# @option opts [Integer] :start Pagination start
|
314
|
+
# @option opts [Integer] :limit Items shown per page
|
315
|
+
# @option opts [String] :status Only fetch deals with specific status. If omitted, all not deleted deals are fetched.
|
316
|
+
# @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).
|
317
|
+
# @option opts [NumberBoolean] :only_primary_association If set, only deals that are directly associated to the organization are fetched. If not set (default), all deals are fetched that are either directly or indirectly related to the organization. Indirect relations include relations through custom, organization-type fields and through persons of the given organization.
|
318
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
319
|
+
def organizations_id_deals_get_with_http_info(id, opts = {})
|
320
|
+
if @api_client.config.debugging
|
321
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_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 OrganizationsApi.organizations_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 = '/organizations/{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
|
+
query_params[:'only_primary_association'] = opts[:'only_primary_association'] if !opts[:'only_primary_association'].nil?
|
341
|
+
|
342
|
+
# header parameters
|
343
|
+
header_params = opts[:header_params] || {}
|
344
|
+
|
345
|
+
# form parameters
|
346
|
+
form_params = opts[:form_params] || {}
|
347
|
+
|
348
|
+
# http body (model)
|
349
|
+
post_body = opts[:body]
|
350
|
+
|
351
|
+
# return_type
|
352
|
+
return_type = opts[:return_type]
|
353
|
+
|
354
|
+
# auth_names
|
355
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
356
|
+
|
357
|
+
new_options = opts.merge(
|
358
|
+
:header_params => header_params,
|
359
|
+
:query_params => query_params,
|
360
|
+
:form_params => form_params,
|
361
|
+
:body => post_body,
|
362
|
+
:auth_names => auth_names,
|
363
|
+
:return_type => return_type
|
364
|
+
)
|
365
|
+
|
366
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
367
|
+
if @api_client.config.debugging
|
368
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_deals_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
369
|
+
end
|
370
|
+
return data, status_code, headers
|
371
|
+
end
|
372
|
+
|
373
|
+
# Delete an organization
|
374
|
+
# Marks an organization as deleted.
|
375
|
+
# @param id [Integer] ID of the organization
|
376
|
+
# @param [Hash] opts the optional parameters
|
377
|
+
# @return [nil]
|
378
|
+
def organizations_id_delete(id, opts = {})
|
379
|
+
organizations_id_delete_with_http_info(id, opts)
|
380
|
+
nil
|
381
|
+
end
|
382
|
+
|
383
|
+
# Delete an organization
|
384
|
+
# Marks an organization as deleted.
|
385
|
+
# @param id [Integer] ID of the organization
|
386
|
+
# @param [Hash] opts the optional parameters
|
387
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
388
|
+
def organizations_id_delete_with_http_info(id, opts = {})
|
389
|
+
if @api_client.config.debugging
|
390
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_delete ...'
|
391
|
+
end
|
392
|
+
# verify the required parameter 'id' is set
|
393
|
+
if @api_client.config.client_side_validation && id.nil?
|
394
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_delete"
|
395
|
+
end
|
396
|
+
# resource path
|
397
|
+
local_var_path = '/organizations/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
398
|
+
|
399
|
+
# query parameters
|
400
|
+
query_params = opts[:query_params] || {}
|
401
|
+
|
402
|
+
# header parameters
|
403
|
+
header_params = opts[:header_params] || {}
|
404
|
+
|
405
|
+
# form parameters
|
406
|
+
form_params = opts[:form_params] || {}
|
407
|
+
|
408
|
+
# http body (model)
|
409
|
+
post_body = opts[:body]
|
410
|
+
|
411
|
+
# return_type
|
412
|
+
return_type = opts[:return_type]
|
413
|
+
|
414
|
+
# auth_names
|
415
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
416
|
+
|
417
|
+
new_options = opts.merge(
|
418
|
+
:header_params => header_params,
|
419
|
+
:query_params => query_params,
|
420
|
+
:form_params => form_params,
|
421
|
+
:body => post_body,
|
422
|
+
:auth_names => auth_names,
|
423
|
+
:return_type => return_type
|
424
|
+
)
|
425
|
+
|
426
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
427
|
+
if @api_client.config.debugging
|
428
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
429
|
+
end
|
430
|
+
return data, status_code, headers
|
431
|
+
end
|
432
|
+
|
433
|
+
# List files attached to an organization
|
434
|
+
# Lists files associated with an organization.
|
435
|
+
# @param id [Integer] ID of the organization
|
436
|
+
# @param [Hash] opts the optional parameters
|
437
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
438
|
+
# @option opts [Integer] :limit Items shown per page
|
439
|
+
# @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.
|
440
|
+
# @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.
|
441
|
+
# @return [nil]
|
442
|
+
def organizations_id_files_get(id, opts = {})
|
443
|
+
organizations_id_files_get_with_http_info(id, opts)
|
444
|
+
nil
|
445
|
+
end
|
446
|
+
|
447
|
+
# List files attached to an organization
|
448
|
+
# Lists files associated with an organization.
|
449
|
+
# @param id [Integer] ID of the organization
|
450
|
+
# @param [Hash] opts the optional parameters
|
451
|
+
# @option opts [Integer] :start Pagination start
|
452
|
+
# @option opts [Integer] :limit Items shown per page
|
453
|
+
# @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.
|
454
|
+
# @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.
|
455
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
456
|
+
def organizations_id_files_get_with_http_info(id, opts = {})
|
457
|
+
if @api_client.config.debugging
|
458
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_files_get ...'
|
459
|
+
end
|
460
|
+
# verify the required parameter 'id' is set
|
461
|
+
if @api_client.config.client_side_validation && id.nil?
|
462
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_files_get"
|
463
|
+
end
|
464
|
+
# resource path
|
465
|
+
local_var_path = '/organizations/{id}/files'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
466
|
+
|
467
|
+
# query parameters
|
468
|
+
query_params = opts[:query_params] || {}
|
469
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
470
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
471
|
+
query_params[:'include_deleted_files'] = opts[:'include_deleted_files'] if !opts[:'include_deleted_files'].nil?
|
472
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
473
|
+
|
474
|
+
# header parameters
|
475
|
+
header_params = opts[:header_params] || {}
|
476
|
+
|
477
|
+
# form parameters
|
478
|
+
form_params = opts[:form_params] || {}
|
479
|
+
|
480
|
+
# http body (model)
|
481
|
+
post_body = opts[:body]
|
482
|
+
|
483
|
+
# return_type
|
484
|
+
return_type = opts[:return_type]
|
485
|
+
|
486
|
+
# auth_names
|
487
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
488
|
+
|
489
|
+
new_options = opts.merge(
|
490
|
+
:header_params => header_params,
|
491
|
+
:query_params => query_params,
|
492
|
+
:form_params => form_params,
|
493
|
+
:body => post_body,
|
494
|
+
:auth_names => auth_names,
|
495
|
+
:return_type => return_type
|
496
|
+
)
|
497
|
+
|
498
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
499
|
+
if @api_client.config.debugging
|
500
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_files_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
501
|
+
end
|
502
|
+
return data, status_code, headers
|
503
|
+
end
|
504
|
+
|
505
|
+
# List updates about an organization
|
506
|
+
# Lists updates about an organization.
|
507
|
+
# @param id [Integer] ID of the organization
|
508
|
+
# @param [Hash] opts the optional parameters
|
509
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
510
|
+
# @option opts [Integer] :limit Items shown per page
|
511
|
+
# @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.
|
512
|
+
# @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)
|
513
|
+
# @return [nil]
|
514
|
+
def organizations_id_flow_get(id, opts = {})
|
515
|
+
organizations_id_flow_get_with_http_info(id, opts)
|
516
|
+
nil
|
517
|
+
end
|
518
|
+
|
519
|
+
# List updates about an organization
|
520
|
+
# Lists updates about an organization.
|
521
|
+
# @param id [Integer] ID of the organization
|
522
|
+
# @param [Hash] opts the optional parameters
|
523
|
+
# @option opts [Integer] :start Pagination start
|
524
|
+
# @option opts [Integer] :limit Items shown per page
|
525
|
+
# @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.
|
526
|
+
# @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)
|
527
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
528
|
+
def organizations_id_flow_get_with_http_info(id, opts = {})
|
529
|
+
if @api_client.config.debugging
|
530
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_flow_get ...'
|
531
|
+
end
|
532
|
+
# verify the required parameter 'id' is set
|
533
|
+
if @api_client.config.client_side_validation && id.nil?
|
534
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_flow_get"
|
535
|
+
end
|
536
|
+
# resource path
|
537
|
+
local_var_path = '/organizations/{id}/flow'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
538
|
+
|
539
|
+
# query parameters
|
540
|
+
query_params = opts[:query_params] || {}
|
541
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
542
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
543
|
+
query_params[:'all_changes'] = opts[:'all_changes'] if !opts[:'all_changes'].nil?
|
544
|
+
query_params[:'items'] = opts[:'items'] if !opts[:'items'].nil?
|
545
|
+
|
546
|
+
# header parameters
|
547
|
+
header_params = opts[:header_params] || {}
|
548
|
+
|
549
|
+
# form parameters
|
550
|
+
form_params = opts[:form_params] || {}
|
551
|
+
|
552
|
+
# http body (model)
|
553
|
+
post_body = opts[:body]
|
554
|
+
|
555
|
+
# return_type
|
556
|
+
return_type = opts[:return_type]
|
557
|
+
|
558
|
+
# auth_names
|
559
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
560
|
+
|
561
|
+
new_options = opts.merge(
|
562
|
+
:header_params => header_params,
|
563
|
+
:query_params => query_params,
|
564
|
+
:form_params => form_params,
|
565
|
+
:body => post_body,
|
566
|
+
:auth_names => auth_names,
|
567
|
+
:return_type => return_type
|
568
|
+
)
|
569
|
+
|
570
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
571
|
+
if @api_client.config.debugging
|
572
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_flow_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
573
|
+
end
|
574
|
+
return data, status_code, headers
|
575
|
+
end
|
576
|
+
|
577
|
+
# Delete a follower from an organization
|
578
|
+
# Deletes a follower from an organization. You can retrieve the follower_id from the <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Organizations/get_organizations_id_followers\">List followers of an organization</a> endpoint.
|
579
|
+
# @param id [Integer] ID of the organization
|
580
|
+
# @param follower_id [Integer] ID of the follower
|
581
|
+
# @param [Hash] opts the optional parameters
|
582
|
+
# @return [nil]
|
583
|
+
def organizations_id_followers_follower_id_delete(id, follower_id, opts = {})
|
584
|
+
organizations_id_followers_follower_id_delete_with_http_info(id, follower_id, opts)
|
585
|
+
nil
|
586
|
+
end
|
587
|
+
|
588
|
+
# Delete a follower from an organization
|
589
|
+
# Deletes a follower from an organization. You can retrieve the follower_id from the <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Organizations/get_organizations_id_followers\">List followers of an organization</a> endpoint.
|
590
|
+
# @param id [Integer] ID of the organization
|
591
|
+
# @param follower_id [Integer] ID of the follower
|
592
|
+
# @param [Hash] opts the optional parameters
|
593
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
594
|
+
def organizations_id_followers_follower_id_delete_with_http_info(id, follower_id, opts = {})
|
595
|
+
if @api_client.config.debugging
|
596
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_followers_follower_id_delete ...'
|
597
|
+
end
|
598
|
+
# verify the required parameter 'id' is set
|
599
|
+
if @api_client.config.client_side_validation && id.nil?
|
600
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_followers_follower_id_delete"
|
601
|
+
end
|
602
|
+
# verify the required parameter 'follower_id' is set
|
603
|
+
if @api_client.config.client_side_validation && follower_id.nil?
|
604
|
+
fail ArgumentError, "Missing the required parameter 'follower_id' when calling OrganizationsApi.organizations_id_followers_follower_id_delete"
|
605
|
+
end
|
606
|
+
# resource path
|
607
|
+
local_var_path = '/organizations/{id}/followers/{follower_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'follower_id' + '}', CGI.escape(follower_id.to_s))
|
608
|
+
|
609
|
+
# query parameters
|
610
|
+
query_params = opts[:query_params] || {}
|
611
|
+
|
612
|
+
# header parameters
|
613
|
+
header_params = opts[:header_params] || {}
|
614
|
+
|
615
|
+
# form parameters
|
616
|
+
form_params = opts[:form_params] || {}
|
617
|
+
|
618
|
+
# http body (model)
|
619
|
+
post_body = opts[:body]
|
620
|
+
|
621
|
+
# return_type
|
622
|
+
return_type = opts[:return_type]
|
623
|
+
|
624
|
+
# auth_names
|
625
|
+
auth_names = opts[:auth_names] || ['api_key']
|
626
|
+
|
627
|
+
new_options = opts.merge(
|
628
|
+
:header_params => header_params,
|
629
|
+
:query_params => query_params,
|
630
|
+
:form_params => form_params,
|
631
|
+
:body => post_body,
|
632
|
+
:auth_names => auth_names,
|
633
|
+
:return_type => return_type
|
634
|
+
)
|
635
|
+
|
636
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
637
|
+
if @api_client.config.debugging
|
638
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_followers_follower_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
639
|
+
end
|
640
|
+
return data, status_code, headers
|
641
|
+
end
|
642
|
+
|
643
|
+
# List followers of an organization
|
644
|
+
# Lists the followers of an organization.
|
645
|
+
# @param id [Integer] ID of the organization
|
646
|
+
# @param [Hash] opts the optional parameters
|
647
|
+
# @return [nil]
|
648
|
+
def organizations_id_followers_get(id, opts = {})
|
649
|
+
organizations_id_followers_get_with_http_info(id, opts)
|
650
|
+
nil
|
651
|
+
end
|
652
|
+
|
653
|
+
# List followers of an organization
|
654
|
+
# Lists the followers of an organization.
|
655
|
+
# @param id [Integer] ID of the organization
|
656
|
+
# @param [Hash] opts the optional parameters
|
657
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
658
|
+
def organizations_id_followers_get_with_http_info(id, opts = {})
|
659
|
+
if @api_client.config.debugging
|
660
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_followers_get ...'
|
661
|
+
end
|
662
|
+
# verify the required parameter 'id' is set
|
663
|
+
if @api_client.config.client_side_validation && id.nil?
|
664
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_followers_get"
|
665
|
+
end
|
666
|
+
# resource path
|
667
|
+
local_var_path = '/organizations/{id}/followers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
668
|
+
|
669
|
+
# query parameters
|
670
|
+
query_params = opts[:query_params] || {}
|
671
|
+
|
672
|
+
# header parameters
|
673
|
+
header_params = opts[:header_params] || {}
|
674
|
+
|
675
|
+
# form parameters
|
676
|
+
form_params = opts[:form_params] || {}
|
677
|
+
|
678
|
+
# http body (model)
|
679
|
+
post_body = opts[:body]
|
680
|
+
|
681
|
+
# return_type
|
682
|
+
return_type = opts[:return_type]
|
683
|
+
|
684
|
+
# auth_names
|
685
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
686
|
+
|
687
|
+
new_options = opts.merge(
|
688
|
+
:header_params => header_params,
|
689
|
+
:query_params => query_params,
|
690
|
+
:form_params => form_params,
|
691
|
+
:body => post_body,
|
692
|
+
:auth_names => auth_names,
|
693
|
+
:return_type => return_type
|
694
|
+
)
|
695
|
+
|
696
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
697
|
+
if @api_client.config.debugging
|
698
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_followers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
699
|
+
end
|
700
|
+
return data, status_code, headers
|
701
|
+
end
|
702
|
+
|
703
|
+
# Add a follower to an organization
|
704
|
+
# Adds a follower to an organization.
|
705
|
+
# @param id [Integer] ID of the organization
|
706
|
+
# @param user_id [Integer] ID of the user
|
707
|
+
# @param [Hash] opts the optional parameters
|
708
|
+
# @return [nil]
|
709
|
+
def organizations_id_followers_post(id, user_id, opts = {})
|
710
|
+
organizations_id_followers_post_with_http_info(id, user_id, opts)
|
711
|
+
nil
|
712
|
+
end
|
713
|
+
|
714
|
+
# Add a follower to an organization
|
715
|
+
# Adds a follower to an organization.
|
716
|
+
# @param id [Integer] ID of the organization
|
717
|
+
# @param user_id [Integer] ID of the user
|
718
|
+
# @param [Hash] opts the optional parameters
|
719
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
720
|
+
def organizations_id_followers_post_with_http_info(id, user_id, opts = {})
|
721
|
+
if @api_client.config.debugging
|
722
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_followers_post ...'
|
723
|
+
end
|
724
|
+
# verify the required parameter 'id' is set
|
725
|
+
if @api_client.config.client_side_validation && id.nil?
|
726
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_followers_post"
|
727
|
+
end
|
728
|
+
# verify the required parameter 'user_id' is set
|
729
|
+
if @api_client.config.client_side_validation && user_id.nil?
|
730
|
+
fail ArgumentError, "Missing the required parameter 'user_id' when calling OrganizationsApi.organizations_id_followers_post"
|
731
|
+
end
|
732
|
+
# resource path
|
733
|
+
local_var_path = '/organizations/{id}/followers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
734
|
+
|
735
|
+
# query parameters
|
736
|
+
query_params = opts[:query_params] || {}
|
737
|
+
|
738
|
+
# header parameters
|
739
|
+
header_params = opts[:header_params] || {}
|
740
|
+
# HTTP header 'Content-Type'
|
741
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
742
|
+
|
743
|
+
# form parameters
|
744
|
+
form_params = opts[:form_params] || {}
|
745
|
+
form_params['user_id'] = user_id
|
746
|
+
|
747
|
+
# http body (model)
|
748
|
+
post_body = opts[:body]
|
749
|
+
|
750
|
+
# return_type
|
751
|
+
return_type = opts[:return_type]
|
752
|
+
|
753
|
+
# auth_names
|
754
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
755
|
+
|
756
|
+
new_options = opts.merge(
|
757
|
+
:header_params => header_params,
|
758
|
+
:query_params => query_params,
|
759
|
+
:form_params => form_params,
|
760
|
+
:body => post_body,
|
761
|
+
:auth_names => auth_names,
|
762
|
+
:return_type => return_type
|
763
|
+
)
|
764
|
+
|
765
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
766
|
+
if @api_client.config.debugging
|
767
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_followers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
768
|
+
end
|
769
|
+
return data, status_code, headers
|
770
|
+
end
|
771
|
+
|
772
|
+
# Get details of an organization
|
773
|
+
# Returns details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the 'key' value of organizationFields.
|
774
|
+
# @param id [Integer] ID of the organization
|
775
|
+
# @param [Hash] opts the optional parameters
|
776
|
+
# @return [nil]
|
777
|
+
def organizations_id_get(id, opts = {})
|
778
|
+
organizations_id_get_with_http_info(id, opts)
|
779
|
+
nil
|
780
|
+
end
|
781
|
+
|
782
|
+
# Get details of an organization
|
783
|
+
# Returns details of an organization. Note that this also returns some additional fields which are not present when asking for all organizations. Also note that custom fields appear as long hashes in the resulting data. These hashes can be mapped against the 'key' value of organizationFields.
|
784
|
+
# @param id [Integer] ID of the organization
|
785
|
+
# @param [Hash] opts the optional parameters
|
786
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
787
|
+
def organizations_id_get_with_http_info(id, opts = {})
|
788
|
+
if @api_client.config.debugging
|
789
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_get ...'
|
790
|
+
end
|
791
|
+
# verify the required parameter 'id' is set
|
792
|
+
if @api_client.config.client_side_validation && id.nil?
|
793
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_get"
|
794
|
+
end
|
795
|
+
# resource path
|
796
|
+
local_var_path = '/organizations/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
797
|
+
|
798
|
+
# query parameters
|
799
|
+
query_params = opts[:query_params] || {}
|
800
|
+
|
801
|
+
# header parameters
|
802
|
+
header_params = opts[:header_params] || {}
|
803
|
+
|
804
|
+
# form parameters
|
805
|
+
form_params = opts[:form_params] || {}
|
806
|
+
|
807
|
+
# http body (model)
|
808
|
+
post_body = opts[:body]
|
809
|
+
|
810
|
+
# return_type
|
811
|
+
return_type = opts[:return_type]
|
812
|
+
|
813
|
+
# auth_names
|
814
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
815
|
+
|
816
|
+
new_options = opts.merge(
|
817
|
+
:header_params => header_params,
|
818
|
+
:query_params => query_params,
|
819
|
+
:form_params => form_params,
|
820
|
+
:body => post_body,
|
821
|
+
:auth_names => auth_names,
|
822
|
+
:return_type => return_type
|
823
|
+
)
|
824
|
+
|
825
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
826
|
+
if @api_client.config.debugging
|
827
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
828
|
+
end
|
829
|
+
return data, status_code, headers
|
830
|
+
end
|
831
|
+
|
832
|
+
# List mail messages associated with an organization
|
833
|
+
# Lists mail messages associated with an organization.
|
834
|
+
# @param id [Integer] ID of the organization
|
835
|
+
# @param [Hash] opts the optional parameters
|
836
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
837
|
+
# @option opts [Integer] :limit Items shown per page
|
838
|
+
# @return [nil]
|
839
|
+
def organizations_id_mail_messages_get(id, opts = {})
|
840
|
+
organizations_id_mail_messages_get_with_http_info(id, opts)
|
841
|
+
nil
|
842
|
+
end
|
843
|
+
|
844
|
+
# List mail messages associated with an organization
|
845
|
+
# Lists mail messages associated with an organization.
|
846
|
+
# @param id [Integer] ID of the organization
|
847
|
+
# @param [Hash] opts the optional parameters
|
848
|
+
# @option opts [Integer] :start Pagination start
|
849
|
+
# @option opts [Integer] :limit Items shown per page
|
850
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
851
|
+
def organizations_id_mail_messages_get_with_http_info(id, opts = {})
|
852
|
+
if @api_client.config.debugging
|
853
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_mail_messages_get ...'
|
854
|
+
end
|
855
|
+
# verify the required parameter 'id' is set
|
856
|
+
if @api_client.config.client_side_validation && id.nil?
|
857
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_mail_messages_get"
|
858
|
+
end
|
859
|
+
# resource path
|
860
|
+
local_var_path = '/organizations/{id}/mailMessages'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
861
|
+
|
862
|
+
# query parameters
|
863
|
+
query_params = opts[:query_params] || {}
|
864
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
865
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
866
|
+
|
867
|
+
# header parameters
|
868
|
+
header_params = opts[:header_params] || {}
|
869
|
+
|
870
|
+
# form parameters
|
871
|
+
form_params = opts[:form_params] || {}
|
872
|
+
|
873
|
+
# http body (model)
|
874
|
+
post_body = opts[:body]
|
875
|
+
|
876
|
+
# return_type
|
877
|
+
return_type = opts[:return_type]
|
878
|
+
|
879
|
+
# auth_names
|
880
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
881
|
+
|
882
|
+
new_options = opts.merge(
|
883
|
+
:header_params => header_params,
|
884
|
+
:query_params => query_params,
|
885
|
+
:form_params => form_params,
|
886
|
+
:body => post_body,
|
887
|
+
:auth_names => auth_names,
|
888
|
+
:return_type => return_type
|
889
|
+
)
|
890
|
+
|
891
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
892
|
+
if @api_client.config.debugging
|
893
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_mail_messages_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
894
|
+
end
|
895
|
+
return data, status_code, headers
|
896
|
+
end
|
897
|
+
|
898
|
+
# Merge two organizations
|
899
|
+
# Merges an organization with another organization. For more information on how to merge two organizations, see <a href=\"https://pipedrive.readme.io/docs/merging-two-organizations\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
900
|
+
# @param id [Integer] ID of the organization
|
901
|
+
# @param merge_with_id [Integer] ID of the organization that the organization will be merged with
|
902
|
+
# @param [Hash] opts the optional parameters
|
903
|
+
# @return [nil]
|
904
|
+
def organizations_id_merge_put(id, merge_with_id, opts = {})
|
905
|
+
organizations_id_merge_put_with_http_info(id, merge_with_id, opts)
|
906
|
+
nil
|
907
|
+
end
|
908
|
+
|
909
|
+
# Merge two organizations
|
910
|
+
# Merges an organization with another organization. For more information on how to merge two organizations, see <a href=\"https://pipedrive.readme.io/docs/merging-two-organizations\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
911
|
+
# @param id [Integer] ID of the organization
|
912
|
+
# @param merge_with_id [Integer] ID of the organization that the organization will be merged with
|
913
|
+
# @param [Hash] opts the optional parameters
|
914
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
915
|
+
def organizations_id_merge_put_with_http_info(id, merge_with_id, opts = {})
|
916
|
+
if @api_client.config.debugging
|
917
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_merge_put ...'
|
918
|
+
end
|
919
|
+
# verify the required parameter 'id' is set
|
920
|
+
if @api_client.config.client_side_validation && id.nil?
|
921
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_merge_put"
|
922
|
+
end
|
923
|
+
# verify the required parameter 'merge_with_id' is set
|
924
|
+
if @api_client.config.client_side_validation && merge_with_id.nil?
|
925
|
+
fail ArgumentError, "Missing the required parameter 'merge_with_id' when calling OrganizationsApi.organizations_id_merge_put"
|
926
|
+
end
|
927
|
+
# resource path
|
928
|
+
local_var_path = '/organizations/{id}/merge'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
929
|
+
|
930
|
+
# query parameters
|
931
|
+
query_params = opts[:query_params] || {}
|
932
|
+
|
933
|
+
# header parameters
|
934
|
+
header_params = opts[:header_params] || {}
|
935
|
+
# HTTP header 'Content-Type'
|
936
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
937
|
+
|
938
|
+
# form parameters
|
939
|
+
form_params = opts[:form_params] || {}
|
940
|
+
form_params['merge_with_id'] = merge_with_id
|
941
|
+
|
942
|
+
# http body (model)
|
943
|
+
post_body = opts[:body]
|
944
|
+
|
945
|
+
# return_type
|
946
|
+
return_type = opts[:return_type]
|
947
|
+
|
948
|
+
# auth_names
|
949
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
950
|
+
|
951
|
+
new_options = opts.merge(
|
952
|
+
:header_params => header_params,
|
953
|
+
:query_params => query_params,
|
954
|
+
:form_params => form_params,
|
955
|
+
:body => post_body,
|
956
|
+
:auth_names => auth_names,
|
957
|
+
:return_type => return_type
|
958
|
+
)
|
959
|
+
|
960
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
961
|
+
if @api_client.config.debugging
|
962
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_merge_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
963
|
+
end
|
964
|
+
return data, status_code, headers
|
965
|
+
end
|
966
|
+
|
967
|
+
# List permitted users
|
968
|
+
# List users permitted to access an organization
|
969
|
+
# @param id [Integer] ID of the organization
|
970
|
+
# @param [Hash] opts the optional parameters
|
971
|
+
# @return [nil]
|
972
|
+
def organizations_id_permitted_users_get(id, opts = {})
|
973
|
+
organizations_id_permitted_users_get_with_http_info(id, opts)
|
974
|
+
nil
|
975
|
+
end
|
976
|
+
|
977
|
+
# List permitted users
|
978
|
+
# List users permitted to access an organization
|
979
|
+
# @param id [Integer] ID of the organization
|
980
|
+
# @param [Hash] opts the optional parameters
|
981
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
982
|
+
def organizations_id_permitted_users_get_with_http_info(id, opts = {})
|
983
|
+
if @api_client.config.debugging
|
984
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_permitted_users_get ...'
|
985
|
+
end
|
986
|
+
# verify the required parameter 'id' is set
|
987
|
+
if @api_client.config.client_side_validation && id.nil?
|
988
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_permitted_users_get"
|
989
|
+
end
|
990
|
+
# resource path
|
991
|
+
local_var_path = '/organizations/{id}/permittedUsers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
992
|
+
|
993
|
+
# query parameters
|
994
|
+
query_params = opts[:query_params] || {}
|
995
|
+
|
996
|
+
# header parameters
|
997
|
+
header_params = opts[:header_params] || {}
|
998
|
+
|
999
|
+
# form parameters
|
1000
|
+
form_params = opts[:form_params] || {}
|
1001
|
+
|
1002
|
+
# http body (model)
|
1003
|
+
post_body = opts[:body]
|
1004
|
+
|
1005
|
+
# return_type
|
1006
|
+
return_type = opts[:return_type]
|
1007
|
+
|
1008
|
+
# auth_names
|
1009
|
+
auth_names = opts[:auth_names] || ['api_key']
|
1010
|
+
|
1011
|
+
new_options = opts.merge(
|
1012
|
+
:header_params => header_params,
|
1013
|
+
:query_params => query_params,
|
1014
|
+
:form_params => form_params,
|
1015
|
+
:body => post_body,
|
1016
|
+
:auth_names => auth_names,
|
1017
|
+
:return_type => return_type
|
1018
|
+
)
|
1019
|
+
|
1020
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1021
|
+
if @api_client.config.debugging
|
1022
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_permitted_users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1023
|
+
end
|
1024
|
+
return data, status_code, headers
|
1025
|
+
end
|
1026
|
+
|
1027
|
+
# List persons of an organization
|
1028
|
+
# Lists persons associated with an organization.
|
1029
|
+
# @param id [Integer] ID of the organization
|
1030
|
+
# @param [Hash] opts the optional parameters
|
1031
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
1032
|
+
# @option opts [Integer] :limit Items shown per page
|
1033
|
+
# @return [nil]
|
1034
|
+
def organizations_id_persons_get(id, opts = {})
|
1035
|
+
organizations_id_persons_get_with_http_info(id, opts)
|
1036
|
+
nil
|
1037
|
+
end
|
1038
|
+
|
1039
|
+
# List persons of an organization
|
1040
|
+
# Lists persons associated with an organization.
|
1041
|
+
# @param id [Integer] ID of the organization
|
1042
|
+
# @param [Hash] opts the optional parameters
|
1043
|
+
# @option opts [Integer] :start Pagination start
|
1044
|
+
# @option opts [Integer] :limit Items shown per page
|
1045
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1046
|
+
def organizations_id_persons_get_with_http_info(id, opts = {})
|
1047
|
+
if @api_client.config.debugging
|
1048
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_persons_get ...'
|
1049
|
+
end
|
1050
|
+
# verify the required parameter 'id' is set
|
1051
|
+
if @api_client.config.client_side_validation && id.nil?
|
1052
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_persons_get"
|
1053
|
+
end
|
1054
|
+
# resource path
|
1055
|
+
local_var_path = '/organizations/{id}/persons'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1056
|
+
|
1057
|
+
# query parameters
|
1058
|
+
query_params = opts[:query_params] || {}
|
1059
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
1060
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1061
|
+
|
1062
|
+
# header parameters
|
1063
|
+
header_params = opts[:header_params] || {}
|
1064
|
+
|
1065
|
+
# form parameters
|
1066
|
+
form_params = opts[:form_params] || {}
|
1067
|
+
|
1068
|
+
# http body (model)
|
1069
|
+
post_body = opts[:body]
|
1070
|
+
|
1071
|
+
# return_type
|
1072
|
+
return_type = opts[:return_type]
|
1073
|
+
|
1074
|
+
# auth_names
|
1075
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1076
|
+
|
1077
|
+
new_options = opts.merge(
|
1078
|
+
:header_params => header_params,
|
1079
|
+
:query_params => query_params,
|
1080
|
+
:form_params => form_params,
|
1081
|
+
:body => post_body,
|
1082
|
+
:auth_names => auth_names,
|
1083
|
+
:return_type => return_type
|
1084
|
+
)
|
1085
|
+
|
1086
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1087
|
+
if @api_client.config.debugging
|
1088
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_persons_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1089
|
+
end
|
1090
|
+
return data, status_code, headers
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
# Update an organization
|
1094
|
+
# Updates the properties of an organization.
|
1095
|
+
# @param id [Integer] ID of the organization
|
1096
|
+
# @param [Hash] opts the optional parameters
|
1097
|
+
# @option opts [String] :name Organization name
|
1098
|
+
# @option opts [Integer] :owner_id ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
|
1099
|
+
# @option opts [VisibleTo] :visible_to Visibility of the organization. If omitted, visibility will be set to the default visibility setting of this item type for the authorized user.<dl class=\\\\\\\"fields-list\\\\\\\"><dt>1</dt><dd>Owner &amp; followers (private)</dd><dt>3</dt><dd>Entire company (shared)</dd></dl>
|
1100
|
+
# @return [nil]
|
1101
|
+
def organizations_id_put(id, opts = {})
|
1102
|
+
organizations_id_put_with_http_info(id, opts)
|
1103
|
+
nil
|
1104
|
+
end
|
1105
|
+
|
1106
|
+
# Update an organization
|
1107
|
+
# Updates the properties of an organization.
|
1108
|
+
# @param id [Integer] ID of the organization
|
1109
|
+
# @param [Hash] opts the optional parameters
|
1110
|
+
# @option opts [String] :name Organization name
|
1111
|
+
# @option opts [Integer] :owner_id ID of the user who will be marked as the owner of this organization. When omitted, the authorized user ID will be used.
|
1112
|
+
# @option opts [VisibleTo] :visible_to Visibility of the organization. If omitted, visibility will be set to the default visibility setting of this item type for the authorized user.<dl class=\\\\\\\"fields-list\\\\\\\"><dt>1</dt><dd>Owner &amp; followers (private)</dd><dt>3</dt><dd>Entire company (shared)</dd></dl>
|
1113
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1114
|
+
def organizations_id_put_with_http_info(id, opts = {})
|
1115
|
+
if @api_client.config.debugging
|
1116
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_id_put ...'
|
1117
|
+
end
|
1118
|
+
# verify the required parameter 'id' is set
|
1119
|
+
if @api_client.config.client_side_validation && id.nil?
|
1120
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling OrganizationsApi.organizations_id_put"
|
1121
|
+
end
|
1122
|
+
# resource path
|
1123
|
+
local_var_path = '/organizations/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
1124
|
+
|
1125
|
+
# query parameters
|
1126
|
+
query_params = opts[:query_params] || {}
|
1127
|
+
|
1128
|
+
# header parameters
|
1129
|
+
header_params = opts[:header_params] || {}
|
1130
|
+
# HTTP header 'Content-Type'
|
1131
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1132
|
+
|
1133
|
+
# form parameters
|
1134
|
+
form_params = opts[:form_params] || {}
|
1135
|
+
form_params['name'] = opts[:'name'] if !opts[:'name'].nil?
|
1136
|
+
form_params['owner_id'] = opts[:'owner_id'] if !opts[:'owner_id'].nil?
|
1137
|
+
form_params['visible_to'] = opts[:'visible_to'] if !opts[:'visible_to'].nil?
|
1138
|
+
|
1139
|
+
# http body (model)
|
1140
|
+
post_body = opts[:body]
|
1141
|
+
|
1142
|
+
# return_type
|
1143
|
+
return_type = opts[:return_type]
|
1144
|
+
|
1145
|
+
# auth_names
|
1146
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1147
|
+
|
1148
|
+
new_options = opts.merge(
|
1149
|
+
:header_params => header_params,
|
1150
|
+
:query_params => query_params,
|
1151
|
+
:form_params => form_params,
|
1152
|
+
:body => post_body,
|
1153
|
+
:auth_names => auth_names,
|
1154
|
+
:return_type => return_type
|
1155
|
+
)
|
1156
|
+
|
1157
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
1158
|
+
if @api_client.config.debugging
|
1159
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1160
|
+
end
|
1161
|
+
return data, status_code, headers
|
1162
|
+
end
|
1163
|
+
|
1164
|
+
# Add an organization
|
1165
|
+
# Adds a new organization. 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 organizationFields and look for 'key' values. For more information on how to add an organization, see <a href=\"https://pipedrive.readme.io/docs/adding-an-organization\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
1166
|
+
# @param [Hash] opts the optional parameters
|
1167
|
+
# @return [nil]
|
1168
|
+
def organizations_post(opts = {})
|
1169
|
+
organizations_post_with_http_info(opts)
|
1170
|
+
nil
|
1171
|
+
end
|
1172
|
+
|
1173
|
+
# Add an organization
|
1174
|
+
# Adds a new organization. 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 organizationFields and look for 'key' values. For more information on how to add an organization, see <a href=\"https://pipedrive.readme.io/docs/adding-an-organization\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
1175
|
+
# @param [Hash] opts the optional parameters
|
1176
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
1177
|
+
def organizations_post_with_http_info(opts = {})
|
1178
|
+
if @api_client.config.debugging
|
1179
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_post ...'
|
1180
|
+
end
|
1181
|
+
# resource path
|
1182
|
+
local_var_path = '/organizations'
|
1183
|
+
|
1184
|
+
# query parameters
|
1185
|
+
query_params = opts[:query_params] || {}
|
1186
|
+
|
1187
|
+
# header parameters
|
1188
|
+
header_params = opts[:header_params] || {}
|
1189
|
+
# HTTP header 'Content-Type'
|
1190
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/x-www-form-urlencoded'])
|
1191
|
+
|
1192
|
+
# form parameters
|
1193
|
+
form_params = opts[:form_params] || {}
|
1194
|
+
|
1195
|
+
# http body (model)
|
1196
|
+
post_body = opts[:body]
|
1197
|
+
|
1198
|
+
# return_type
|
1199
|
+
return_type = opts[:return_type]
|
1200
|
+
|
1201
|
+
# auth_names
|
1202
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1203
|
+
|
1204
|
+
new_options = opts.merge(
|
1205
|
+
:header_params => header_params,
|
1206
|
+
:query_params => query_params,
|
1207
|
+
:form_params => form_params,
|
1208
|
+
:body => post_body,
|
1209
|
+
:auth_names => auth_names,
|
1210
|
+
:return_type => return_type
|
1211
|
+
)
|
1212
|
+
|
1213
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1214
|
+
if @api_client.config.debugging
|
1215
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1216
|
+
end
|
1217
|
+
return data, status_code, headers
|
1218
|
+
end
|
1219
|
+
|
1220
|
+
# Search organizations
|
1221
|
+
# Searches all Organizations by name, address, 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.
|
1222
|
+
# @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
|
1223
|
+
# @param [Hash] opts the optional parameters
|
1224
|
+
# @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1225
|
+
# @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
1226
|
+
# @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)
|
1227
|
+
# @option opts [Integer] :limit Items shown per page
|
1228
|
+
# @return [BaseResponse]
|
1229
|
+
def organizations_search_get(term, opts = {})
|
1230
|
+
data, _status_code, _headers = organizations_search_get_with_http_info(term, opts)
|
1231
|
+
data
|
1232
|
+
end
|
1233
|
+
|
1234
|
+
# Search organizations
|
1235
|
+
# Searches all Organizations by name, address, 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.
|
1236
|
+
# @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
|
1237
|
+
# @param [Hash] opts the optional parameters
|
1238
|
+
# @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
1239
|
+
# @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
1240
|
+
# @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.
|
1241
|
+
# @option opts [Integer] :limit Items shown per page
|
1242
|
+
# @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
|
1243
|
+
def organizations_search_get_with_http_info(term, opts = {})
|
1244
|
+
if @api_client.config.debugging
|
1245
|
+
@api_client.config.logger.debug 'Calling API: OrganizationsApi.organizations_search_get ...'
|
1246
|
+
end
|
1247
|
+
# verify the required parameter 'term' is set
|
1248
|
+
if @api_client.config.client_side_validation && term.nil?
|
1249
|
+
fail ArgumentError, "Missing the required parameter 'term' when calling OrganizationsApi.organizations_search_get"
|
1250
|
+
end
|
1251
|
+
allowable_values = ["address", "custom_fields", "notes", "name"]
|
1252
|
+
if @api_client.config.client_side_validation && opts[:'fields'] && !allowable_values.include?(opts[:'fields'])
|
1253
|
+
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
1254
|
+
end
|
1255
|
+
allowable_values = ["true", "false"]
|
1256
|
+
if @api_client.config.client_side_validation && opts[:'exact_match'] && !allowable_values.include?(opts[:'exact_match'])
|
1257
|
+
fail ArgumentError, "invalid value for \"exact_match\", must be one of #{allowable_values}"
|
1258
|
+
end
|
1259
|
+
# resource path
|
1260
|
+
local_var_path = '/organizations/search'
|
1261
|
+
|
1262
|
+
# query parameters
|
1263
|
+
query_params = opts[:query_params] || {}
|
1264
|
+
query_params[:'term'] = term
|
1265
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
1266
|
+
query_params[:'exact_match'] = opts[:'exact_match'] if !opts[:'exact_match'].nil?
|
1267
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
1268
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
1269
|
+
|
1270
|
+
# header parameters
|
1271
|
+
header_params = opts[:header_params] || {}
|
1272
|
+
# HTTP header 'Accept' (if needed)
|
1273
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1274
|
+
|
1275
|
+
# form parameters
|
1276
|
+
form_params = opts[:form_params] || {}
|
1277
|
+
|
1278
|
+
# http body (model)
|
1279
|
+
post_body = opts[:body]
|
1280
|
+
|
1281
|
+
# return_type
|
1282
|
+
return_type = opts[:return_type] || 'BaseResponse'
|
1283
|
+
|
1284
|
+
# auth_names
|
1285
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
1286
|
+
|
1287
|
+
new_options = opts.merge(
|
1288
|
+
:header_params => header_params,
|
1289
|
+
:query_params => query_params,
|
1290
|
+
:form_params => form_params,
|
1291
|
+
:body => post_body,
|
1292
|
+
:auth_names => auth_names,
|
1293
|
+
:return_type => return_type
|
1294
|
+
)
|
1295
|
+
|
1296
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
1297
|
+
if @api_client.config.debugging
|
1298
|
+
@api_client.config.logger.debug "API called: OrganizationsApi#organizations_search_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1299
|
+
end
|
1300
|
+
return data, status_code, headers
|
1301
|
+
end
|
1302
|
+
end
|
1303
|
+
end
|