pipedrive-openapi-client 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +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,391 @@
|
|
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 ProductFieldsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Delete multiple product fields in bulk
|
23
|
+
# Marks multiple fields as deleted.
|
24
|
+
# @param ids [String] Comma-separated field IDs to delete
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @return [DeleteMultipleProductFieldsResponse]
|
27
|
+
def product_fields_delete(ids, opts = {})
|
28
|
+
data, _status_code, _headers = product_fields_delete_with_http_info(ids, opts)
|
29
|
+
data
|
30
|
+
end
|
31
|
+
|
32
|
+
# Delete multiple product fields in bulk
|
33
|
+
# Marks multiple fields as deleted.
|
34
|
+
# @param ids [String] Comma-separated field IDs to delete
|
35
|
+
# @param [Hash] opts the optional parameters
|
36
|
+
# @return [Array<(DeleteMultipleProductFieldsResponse, Integer, Hash)>] DeleteMultipleProductFieldsResponse data, response status code and response headers
|
37
|
+
def product_fields_delete_with_http_info(ids, opts = {})
|
38
|
+
if @api_client.config.debugging
|
39
|
+
@api_client.config.logger.debug 'Calling API: ProductFieldsApi.product_fields_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 ProductFieldsApi.product_fields_delete"
|
44
|
+
end
|
45
|
+
# resource path
|
46
|
+
local_var_path = '/productFields'
|
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
|
+
# HTTP header 'Accept' (if needed)
|
55
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = opts[:form_params] || {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = opts[:body]
|
62
|
+
|
63
|
+
# return_type
|
64
|
+
return_type = opts[:return_type] || 'DeleteMultipleProductFieldsResponse'
|
65
|
+
|
66
|
+
# auth_names
|
67
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
68
|
+
|
69
|
+
new_options = opts.merge(
|
70
|
+
:header_params => header_params,
|
71
|
+
:query_params => query_params,
|
72
|
+
:form_params => form_params,
|
73
|
+
:body => post_body,
|
74
|
+
:auth_names => auth_names,
|
75
|
+
:return_type => return_type
|
76
|
+
)
|
77
|
+
|
78
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
79
|
+
if @api_client.config.debugging
|
80
|
+
@api_client.config.logger.debug "API called: ProductFieldsApi#product_fields_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
81
|
+
end
|
82
|
+
return data, status_code, headers
|
83
|
+
end
|
84
|
+
|
85
|
+
# Get all product fields
|
86
|
+
# Returns data about all product fields
|
87
|
+
# @param [Hash] opts the optional parameters
|
88
|
+
# @return [GetAllProductFieldsResponse]
|
89
|
+
def product_fields_get(opts = {})
|
90
|
+
data, _status_code, _headers = product_fields_get_with_http_info(opts)
|
91
|
+
data
|
92
|
+
end
|
93
|
+
|
94
|
+
# Get all product fields
|
95
|
+
# Returns data about all product fields
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @return [Array<(GetAllProductFieldsResponse, Integer, Hash)>] GetAllProductFieldsResponse data, response status code and response headers
|
98
|
+
def product_fields_get_with_http_info(opts = {})
|
99
|
+
if @api_client.config.debugging
|
100
|
+
@api_client.config.logger.debug 'Calling API: ProductFieldsApi.product_fields_get ...'
|
101
|
+
end
|
102
|
+
# resource path
|
103
|
+
local_var_path = '/productFields'
|
104
|
+
|
105
|
+
# query parameters
|
106
|
+
query_params = opts[:query_params] || {}
|
107
|
+
|
108
|
+
# header parameters
|
109
|
+
header_params = opts[:header_params] || {}
|
110
|
+
# HTTP header 'Accept' (if needed)
|
111
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
112
|
+
|
113
|
+
# form parameters
|
114
|
+
form_params = opts[:form_params] || {}
|
115
|
+
|
116
|
+
# http body (model)
|
117
|
+
post_body = opts[:body]
|
118
|
+
|
119
|
+
# return_type
|
120
|
+
return_type = opts[:return_type] || 'GetAllProductFieldsResponse'
|
121
|
+
|
122
|
+
# auth_names
|
123
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
124
|
+
|
125
|
+
new_options = opts.merge(
|
126
|
+
:header_params => header_params,
|
127
|
+
:query_params => query_params,
|
128
|
+
:form_params => form_params,
|
129
|
+
:body => post_body,
|
130
|
+
:auth_names => auth_names,
|
131
|
+
:return_type => return_type
|
132
|
+
)
|
133
|
+
|
134
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
135
|
+
if @api_client.config.debugging
|
136
|
+
@api_client.config.logger.debug "API called: ProductFieldsApi#product_fields_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
137
|
+
end
|
138
|
+
return data, status_code, headers
|
139
|
+
end
|
140
|
+
|
141
|
+
# Delete a product field
|
142
|
+
# Marks a field as deleted. For more information on how to delete a custom field, see <a href=\"https://pipedrive.readme.io/docs/deleting-a-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
143
|
+
# @param id [Integer] ID of the Product Field
|
144
|
+
# @param [Hash] opts the optional parameters
|
145
|
+
# @return [DeleteProductFieldResponse]
|
146
|
+
def product_fields_id_delete(id, opts = {})
|
147
|
+
data, _status_code, _headers = product_fields_id_delete_with_http_info(id, opts)
|
148
|
+
data
|
149
|
+
end
|
150
|
+
|
151
|
+
# Delete a product field
|
152
|
+
# Marks a field as deleted. For more information on how to delete a custom field, see <a href=\"https://pipedrive.readme.io/docs/deleting-a-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
153
|
+
# @param id [Integer] ID of the Product Field
|
154
|
+
# @param [Hash] opts the optional parameters
|
155
|
+
# @return [Array<(DeleteProductFieldResponse, Integer, Hash)>] DeleteProductFieldResponse data, response status code and response headers
|
156
|
+
def product_fields_id_delete_with_http_info(id, opts = {})
|
157
|
+
if @api_client.config.debugging
|
158
|
+
@api_client.config.logger.debug 'Calling API: ProductFieldsApi.product_fields_id_delete ...'
|
159
|
+
end
|
160
|
+
# verify the required parameter 'id' is set
|
161
|
+
if @api_client.config.client_side_validation && id.nil?
|
162
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductFieldsApi.product_fields_id_delete"
|
163
|
+
end
|
164
|
+
# resource path
|
165
|
+
local_var_path = '/productFields/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
166
|
+
|
167
|
+
# query parameters
|
168
|
+
query_params = opts[:query_params] || {}
|
169
|
+
|
170
|
+
# header parameters
|
171
|
+
header_params = opts[:header_params] || {}
|
172
|
+
# HTTP header 'Accept' (if needed)
|
173
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
174
|
+
|
175
|
+
# form parameters
|
176
|
+
form_params = opts[:form_params] || {}
|
177
|
+
|
178
|
+
# http body (model)
|
179
|
+
post_body = opts[:body]
|
180
|
+
|
181
|
+
# return_type
|
182
|
+
return_type = opts[:return_type] || 'DeleteProductFieldResponse'
|
183
|
+
|
184
|
+
# auth_names
|
185
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
186
|
+
|
187
|
+
new_options = opts.merge(
|
188
|
+
:header_params => header_params,
|
189
|
+
:query_params => query_params,
|
190
|
+
:form_params => form_params,
|
191
|
+
:body => post_body,
|
192
|
+
:auth_names => auth_names,
|
193
|
+
:return_type => return_type
|
194
|
+
)
|
195
|
+
|
196
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
197
|
+
if @api_client.config.debugging
|
198
|
+
@api_client.config.logger.debug "API called: ProductFieldsApi#product_fields_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
199
|
+
end
|
200
|
+
return data, status_code, headers
|
201
|
+
end
|
202
|
+
|
203
|
+
# Get one product field
|
204
|
+
# Returns data about a specific product field.
|
205
|
+
# @param id [Integer] ID of the Product Field
|
206
|
+
# @param [Hash] opts the optional parameters
|
207
|
+
# @return [GetProductFieldResponse]
|
208
|
+
def product_fields_id_get(id, opts = {})
|
209
|
+
data, _status_code, _headers = product_fields_id_get_with_http_info(id, opts)
|
210
|
+
data
|
211
|
+
end
|
212
|
+
|
213
|
+
# Get one product field
|
214
|
+
# Returns data about a specific product field.
|
215
|
+
# @param id [Integer] ID of the Product Field
|
216
|
+
# @param [Hash] opts the optional parameters
|
217
|
+
# @return [Array<(GetProductFieldResponse, Integer, Hash)>] GetProductFieldResponse data, response status code and response headers
|
218
|
+
def product_fields_id_get_with_http_info(id, opts = {})
|
219
|
+
if @api_client.config.debugging
|
220
|
+
@api_client.config.logger.debug 'Calling API: ProductFieldsApi.product_fields_id_get ...'
|
221
|
+
end
|
222
|
+
# verify the required parameter 'id' is set
|
223
|
+
if @api_client.config.client_side_validation && id.nil?
|
224
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductFieldsApi.product_fields_id_get"
|
225
|
+
end
|
226
|
+
# resource path
|
227
|
+
local_var_path = '/productFields/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
228
|
+
|
229
|
+
# query parameters
|
230
|
+
query_params = opts[:query_params] || {}
|
231
|
+
|
232
|
+
# header parameters
|
233
|
+
header_params = opts[:header_params] || {}
|
234
|
+
# HTTP header 'Accept' (if needed)
|
235
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
236
|
+
|
237
|
+
# form parameters
|
238
|
+
form_params = opts[:form_params] || {}
|
239
|
+
|
240
|
+
# http body (model)
|
241
|
+
post_body = opts[:body]
|
242
|
+
|
243
|
+
# return_type
|
244
|
+
return_type = opts[:return_type] || 'GetProductFieldResponse'
|
245
|
+
|
246
|
+
# auth_names
|
247
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
248
|
+
|
249
|
+
new_options = opts.merge(
|
250
|
+
:header_params => header_params,
|
251
|
+
:query_params => query_params,
|
252
|
+
:form_params => form_params,
|
253
|
+
:body => post_body,
|
254
|
+
:auth_names => auth_names,
|
255
|
+
:return_type => return_type
|
256
|
+
)
|
257
|
+
|
258
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
259
|
+
if @api_client.config.debugging
|
260
|
+
@api_client.config.logger.debug "API called: ProductFieldsApi#product_fields_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
261
|
+
end
|
262
|
+
return data, status_code, headers
|
263
|
+
end
|
264
|
+
|
265
|
+
# Update a product field
|
266
|
+
# Updates a product field. See an example of updating custom fields’ values in <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
267
|
+
# @param id [Integer] ID of the Product Field
|
268
|
+
# @param [Hash] opts the optional parameters
|
269
|
+
# @option opts [BasicProductField] :basic_product_field
|
270
|
+
# @return [GetProductFieldResponse]
|
271
|
+
def product_fields_id_put(id, opts = {})
|
272
|
+
data, _status_code, _headers = product_fields_id_put_with_http_info(id, opts)
|
273
|
+
data
|
274
|
+
end
|
275
|
+
|
276
|
+
# Update a product field
|
277
|
+
# Updates a product field. See an example of updating custom fields’ values in <a href=\" https://pipedrive.readme.io/docs/updating-custom-field-value \" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
278
|
+
# @param id [Integer] ID of the Product Field
|
279
|
+
# @param [Hash] opts the optional parameters
|
280
|
+
# @option opts [BasicProductField] :basic_product_field
|
281
|
+
# @return [Array<(GetProductFieldResponse, Integer, Hash)>] GetProductFieldResponse data, response status code and response headers
|
282
|
+
def product_fields_id_put_with_http_info(id, opts = {})
|
283
|
+
if @api_client.config.debugging
|
284
|
+
@api_client.config.logger.debug 'Calling API: ProductFieldsApi.product_fields_id_put ...'
|
285
|
+
end
|
286
|
+
# verify the required parameter 'id' is set
|
287
|
+
if @api_client.config.client_side_validation && id.nil?
|
288
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductFieldsApi.product_fields_id_put"
|
289
|
+
end
|
290
|
+
# resource path
|
291
|
+
local_var_path = '/productFields/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
292
|
+
|
293
|
+
# query parameters
|
294
|
+
query_params = opts[:query_params] || {}
|
295
|
+
|
296
|
+
# header parameters
|
297
|
+
header_params = opts[:header_params] || {}
|
298
|
+
# HTTP header 'Accept' (if needed)
|
299
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
300
|
+
# HTTP header 'Content-Type'
|
301
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
302
|
+
|
303
|
+
# form parameters
|
304
|
+
form_params = opts[:form_params] || {}
|
305
|
+
|
306
|
+
# http body (model)
|
307
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'basic_product_field'])
|
308
|
+
|
309
|
+
# return_type
|
310
|
+
return_type = opts[:return_type] || 'GetProductFieldResponse'
|
311
|
+
|
312
|
+
# auth_names
|
313
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
314
|
+
|
315
|
+
new_options = opts.merge(
|
316
|
+
:header_params => header_params,
|
317
|
+
:query_params => query_params,
|
318
|
+
:form_params => form_params,
|
319
|
+
:body => post_body,
|
320
|
+
:auth_names => auth_names,
|
321
|
+
:return_type => return_type
|
322
|
+
)
|
323
|
+
|
324
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
325
|
+
if @api_client.config.debugging
|
326
|
+
@api_client.config.logger.debug "API called: ProductFieldsApi#product_fields_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
327
|
+
end
|
328
|
+
return data, status_code, headers
|
329
|
+
end
|
330
|
+
|
331
|
+
# Add a new product field
|
332
|
+
# Adds a new product field. For more information on adding a new custom field, see <a href=\"https://pipedrive.readme.io/docs/adding-a-new-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
333
|
+
# @param [Hash] opts the optional parameters
|
334
|
+
# @option opts [NewProductField] :new_product_field
|
335
|
+
# @return [GetProductFieldResponse]
|
336
|
+
def product_fields_post(opts = {})
|
337
|
+
data, _status_code, _headers = product_fields_post_with_http_info(opts)
|
338
|
+
data
|
339
|
+
end
|
340
|
+
|
341
|
+
# Add a new product field
|
342
|
+
# Adds a new product field. For more information on adding a new custom field, see <a href=\"https://pipedrive.readme.io/docs/adding-a-new-custom-field\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
343
|
+
# @param [Hash] opts the optional parameters
|
344
|
+
# @option opts [NewProductField] :new_product_field
|
345
|
+
# @return [Array<(GetProductFieldResponse, Integer, Hash)>] GetProductFieldResponse data, response status code and response headers
|
346
|
+
def product_fields_post_with_http_info(opts = {})
|
347
|
+
if @api_client.config.debugging
|
348
|
+
@api_client.config.logger.debug 'Calling API: ProductFieldsApi.product_fields_post ...'
|
349
|
+
end
|
350
|
+
# resource path
|
351
|
+
local_var_path = '/productFields'
|
352
|
+
|
353
|
+
# query parameters
|
354
|
+
query_params = opts[:query_params] || {}
|
355
|
+
|
356
|
+
# header parameters
|
357
|
+
header_params = opts[:header_params] || {}
|
358
|
+
# HTTP header 'Accept' (if needed)
|
359
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
360
|
+
# HTTP header 'Content-Type'
|
361
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
362
|
+
|
363
|
+
# form parameters
|
364
|
+
form_params = opts[:form_params] || {}
|
365
|
+
|
366
|
+
# http body (model)
|
367
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'new_product_field'])
|
368
|
+
|
369
|
+
# return_type
|
370
|
+
return_type = opts[:return_type] || 'GetProductFieldResponse'
|
371
|
+
|
372
|
+
# auth_names
|
373
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
374
|
+
|
375
|
+
new_options = opts.merge(
|
376
|
+
:header_params => header_params,
|
377
|
+
:query_params => query_params,
|
378
|
+
:form_params => form_params,
|
379
|
+
:body => post_body,
|
380
|
+
:auth_names => auth_names,
|
381
|
+
:return_type => return_type
|
382
|
+
)
|
383
|
+
|
384
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
385
|
+
if @api_client.config.debugging
|
386
|
+
@api_client.config.logger.debug "API called: ProductFieldsApi#product_fields_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
387
|
+
end
|
388
|
+
return data, status_code, headers
|
389
|
+
end
|
390
|
+
end
|
391
|
+
end
|
@@ -0,0 +1,904 @@
|
|
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 ProductsApi
|
17
|
+
attr_accessor :api_client
|
18
|
+
|
19
|
+
def initialize(api_client = ApiClient.default)
|
20
|
+
@api_client = api_client
|
21
|
+
end
|
22
|
+
# Find products by name
|
23
|
+
# <strong>This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Products/get_products_search\">/v1/products/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> instead</strong>. <br> Returns data about the products that were found. If currency was set in request, prices in that currency are served back.
|
24
|
+
# @param term [String] Search term to look for, minimum 3 characters.
|
25
|
+
# @param [Hash] opts the optional parameters
|
26
|
+
# @option opts [String] :currency Currency code in which prices should be returned in. If omitted, prices in user's default currency will be returned.
|
27
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
28
|
+
# @option opts [Integer] :limit Items shown per page
|
29
|
+
# @return [FindProductsByNameResponse]
|
30
|
+
def products_find_get(term, opts = {})
|
31
|
+
data, _status_code, _headers = products_find_get_with_http_info(term, opts)
|
32
|
+
data
|
33
|
+
end
|
34
|
+
|
35
|
+
# Find products by name
|
36
|
+
# <strong>This endpoint is deprecated. Please use <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/Products/get_products_search\">/v1/products/search</a> or <a href=\"https://developers.pipedrive.com/docs/api/v1/#!/ItemSearch/get_itemSearch\">/v1/itemSearch</a> instead</strong>. <br> Returns data about the products that were found. If currency was set in request, prices in that currency are served back.
|
37
|
+
# @param term [String] Search term to look for, minimum 3 characters.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @option opts [String] :currency Currency code in which prices should be returned in. If omitted, prices in user's default currency will be returned.
|
40
|
+
# @option opts [Integer] :start Pagination start
|
41
|
+
# @option opts [Integer] :limit Items shown per page
|
42
|
+
# @return [Array<(FindProductsByNameResponse, Integer, Hash)>] FindProductsByNameResponse data, response status code and response headers
|
43
|
+
def products_find_get_with_http_info(term, opts = {})
|
44
|
+
if @api_client.config.debugging
|
45
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_find_get ...'
|
46
|
+
end
|
47
|
+
# verify the required parameter 'term' is set
|
48
|
+
if @api_client.config.client_side_validation && term.nil?
|
49
|
+
fail ArgumentError, "Missing the required parameter 'term' when calling ProductsApi.products_find_get"
|
50
|
+
end
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/products/find'
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = opts[:query_params] || {}
|
56
|
+
query_params[:'term'] = term
|
57
|
+
query_params[:'currency'] = opts[:'currency'] if !opts[:'currency'].nil?
|
58
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
59
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
60
|
+
|
61
|
+
# header parameters
|
62
|
+
header_params = opts[:header_params] || {}
|
63
|
+
# HTTP header 'Accept' (if needed)
|
64
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = opts[:form_params] || {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = opts[:body]
|
71
|
+
|
72
|
+
# return_type
|
73
|
+
return_type = opts[:return_type] || 'FindProductsByNameResponse'
|
74
|
+
|
75
|
+
# auth_names
|
76
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
77
|
+
|
78
|
+
new_options = opts.merge(
|
79
|
+
:header_params => header_params,
|
80
|
+
:query_params => query_params,
|
81
|
+
:form_params => form_params,
|
82
|
+
:body => post_body,
|
83
|
+
:auth_names => auth_names,
|
84
|
+
:return_type => return_type
|
85
|
+
)
|
86
|
+
|
87
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
88
|
+
if @api_client.config.debugging
|
89
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_find_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
|
+
end
|
91
|
+
return data, status_code, headers
|
92
|
+
end
|
93
|
+
|
94
|
+
# Get all products
|
95
|
+
# Returns data about all products.
|
96
|
+
# @param [Hash] opts the optional parameters
|
97
|
+
# @option opts [Integer] :user_id If supplied, only products owned by the given user will be returned.
|
98
|
+
# @option opts [Integer] :filter_id ID of the filter to use
|
99
|
+
# @option opts [String] :first_char If supplied, only products whose name starts with the specified letter will be returned (case insensitive).
|
100
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
101
|
+
# @option opts [Integer] :limit Items shown per page
|
102
|
+
# @return [Product]
|
103
|
+
def products_get(opts = {})
|
104
|
+
data, _status_code, _headers = products_get_with_http_info(opts)
|
105
|
+
data
|
106
|
+
end
|
107
|
+
|
108
|
+
# Get all products
|
109
|
+
# Returns data about all products.
|
110
|
+
# @param [Hash] opts the optional parameters
|
111
|
+
# @option opts [Integer] :user_id If supplied, only products owned by the given user will be returned.
|
112
|
+
# @option opts [Integer] :filter_id ID of the filter to use
|
113
|
+
# @option opts [String] :first_char If supplied, only products whose name starts with the specified letter will be returned (case insensitive).
|
114
|
+
# @option opts [Integer] :start Pagination start
|
115
|
+
# @option opts [Integer] :limit Items shown per page
|
116
|
+
# @return [Array<(Product, Integer, Hash)>] Product data, response status code and response headers
|
117
|
+
def products_get_with_http_info(opts = {})
|
118
|
+
if @api_client.config.debugging
|
119
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_get ...'
|
120
|
+
end
|
121
|
+
# resource path
|
122
|
+
local_var_path = '/products'
|
123
|
+
|
124
|
+
# query parameters
|
125
|
+
query_params = opts[:query_params] || {}
|
126
|
+
query_params[:'user_id'] = opts[:'user_id'] if !opts[:'user_id'].nil?
|
127
|
+
query_params[:'filter_id'] = opts[:'filter_id'] if !opts[:'filter_id'].nil?
|
128
|
+
query_params[:'first_char'] = opts[:'first_char'] if !opts[:'first_char'].nil?
|
129
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
130
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
131
|
+
|
132
|
+
# header parameters
|
133
|
+
header_params = opts[:header_params] || {}
|
134
|
+
# HTTP header 'Accept' (if needed)
|
135
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
136
|
+
|
137
|
+
# form parameters
|
138
|
+
form_params = opts[:form_params] || {}
|
139
|
+
|
140
|
+
# http body (model)
|
141
|
+
post_body = opts[:body]
|
142
|
+
|
143
|
+
# return_type
|
144
|
+
return_type = opts[:return_type] || 'Product'
|
145
|
+
|
146
|
+
# auth_names
|
147
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
148
|
+
|
149
|
+
new_options = opts.merge(
|
150
|
+
:header_params => header_params,
|
151
|
+
:query_params => query_params,
|
152
|
+
:form_params => form_params,
|
153
|
+
:body => post_body,
|
154
|
+
:auth_names => auth_names,
|
155
|
+
:return_type => return_type
|
156
|
+
)
|
157
|
+
|
158
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
159
|
+
if @api_client.config.debugging
|
160
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
161
|
+
end
|
162
|
+
return data, status_code, headers
|
163
|
+
end
|
164
|
+
|
165
|
+
# Get deals where a product is attached to
|
166
|
+
# Returns data about deals that have a product attached to.
|
167
|
+
# @param id [Integer] ID of the product
|
168
|
+
# @param [Hash] opts the optional parameters
|
169
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
170
|
+
# @option opts [Integer] :limit Items shown per page
|
171
|
+
# @option opts [String] :status Only fetch deals with specific status. If omitted, all not deleted deals are fetched. (default to 'all_not_deleted')
|
172
|
+
# @return [BasicDeal]
|
173
|
+
def products_id_deals_get(id, opts = {})
|
174
|
+
data, _status_code, _headers = products_id_deals_get_with_http_info(id, opts)
|
175
|
+
data
|
176
|
+
end
|
177
|
+
|
178
|
+
# Get deals where a product is attached to
|
179
|
+
# Returns data about deals that have a product attached to.
|
180
|
+
# @param id [Integer] ID of the product
|
181
|
+
# @param [Hash] opts the optional parameters
|
182
|
+
# @option opts [Integer] :start Pagination start
|
183
|
+
# @option opts [Integer] :limit Items shown per page
|
184
|
+
# @option opts [String] :status Only fetch deals with specific status. If omitted, all not deleted deals are fetched.
|
185
|
+
# @return [Array<(BasicDeal, Integer, Hash)>] BasicDeal data, response status code and response headers
|
186
|
+
def products_id_deals_get_with_http_info(id, opts = {})
|
187
|
+
if @api_client.config.debugging
|
188
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_deals_get ...'
|
189
|
+
end
|
190
|
+
# verify the required parameter 'id' is set
|
191
|
+
if @api_client.config.client_side_validation && id.nil?
|
192
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_deals_get"
|
193
|
+
end
|
194
|
+
allowable_values = ["open", "won", "lost", "deleted", "all_not_deleted"]
|
195
|
+
if @api_client.config.client_side_validation && opts[:'status'] && !allowable_values.include?(opts[:'status'])
|
196
|
+
fail ArgumentError, "invalid value for \"status\", must be one of #{allowable_values}"
|
197
|
+
end
|
198
|
+
# resource path
|
199
|
+
local_var_path = '/products/{id}/deals'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
200
|
+
|
201
|
+
# query parameters
|
202
|
+
query_params = opts[:query_params] || {}
|
203
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
204
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
205
|
+
query_params[:'status'] = opts[:'status'] if !opts[:'status'].nil?
|
206
|
+
|
207
|
+
# header parameters
|
208
|
+
header_params = opts[:header_params] || {}
|
209
|
+
# HTTP header 'Accept' (if needed)
|
210
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
211
|
+
|
212
|
+
# form parameters
|
213
|
+
form_params = opts[:form_params] || {}
|
214
|
+
|
215
|
+
# http body (model)
|
216
|
+
post_body = opts[:body]
|
217
|
+
|
218
|
+
# return_type
|
219
|
+
return_type = opts[:return_type] || 'BasicDeal'
|
220
|
+
|
221
|
+
# auth_names
|
222
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
223
|
+
|
224
|
+
new_options = opts.merge(
|
225
|
+
:header_params => header_params,
|
226
|
+
:query_params => query_params,
|
227
|
+
:form_params => form_params,
|
228
|
+
:body => post_body,
|
229
|
+
:auth_names => auth_names,
|
230
|
+
:return_type => return_type
|
231
|
+
)
|
232
|
+
|
233
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
234
|
+
if @api_client.config.debugging
|
235
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_deals_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
236
|
+
end
|
237
|
+
return data, status_code, headers
|
238
|
+
end
|
239
|
+
|
240
|
+
# Delete a product
|
241
|
+
# Marks a product as deleted.
|
242
|
+
# @param id [Integer] ID of the product
|
243
|
+
# @param [Hash] opts the optional parameters
|
244
|
+
# @return [nil]
|
245
|
+
def products_id_delete(id, opts = {})
|
246
|
+
products_id_delete_with_http_info(id, opts)
|
247
|
+
nil
|
248
|
+
end
|
249
|
+
|
250
|
+
# Delete a product
|
251
|
+
# Marks a product as deleted.
|
252
|
+
# @param id [Integer] ID of the product
|
253
|
+
# @param [Hash] opts the optional parameters
|
254
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
255
|
+
def products_id_delete_with_http_info(id, opts = {})
|
256
|
+
if @api_client.config.debugging
|
257
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_delete ...'
|
258
|
+
end
|
259
|
+
# verify the required parameter 'id' is set
|
260
|
+
if @api_client.config.client_side_validation && id.nil?
|
261
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_delete"
|
262
|
+
end
|
263
|
+
# resource path
|
264
|
+
local_var_path = '/products/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
265
|
+
|
266
|
+
# query parameters
|
267
|
+
query_params = opts[:query_params] || {}
|
268
|
+
|
269
|
+
# header parameters
|
270
|
+
header_params = opts[:header_params] || {}
|
271
|
+
|
272
|
+
# form parameters
|
273
|
+
form_params = opts[:form_params] || {}
|
274
|
+
|
275
|
+
# http body (model)
|
276
|
+
post_body = opts[:body]
|
277
|
+
|
278
|
+
# return_type
|
279
|
+
return_type = opts[:return_type]
|
280
|
+
|
281
|
+
# auth_names
|
282
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
283
|
+
|
284
|
+
new_options = opts.merge(
|
285
|
+
:header_params => header_params,
|
286
|
+
:query_params => query_params,
|
287
|
+
:form_params => form_params,
|
288
|
+
:body => post_body,
|
289
|
+
:auth_names => auth_names,
|
290
|
+
:return_type => return_type
|
291
|
+
)
|
292
|
+
|
293
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
294
|
+
if @api_client.config.debugging
|
295
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
296
|
+
end
|
297
|
+
return data, status_code, headers
|
298
|
+
end
|
299
|
+
|
300
|
+
# List files attached to a product
|
301
|
+
# Lists files associated with a product.
|
302
|
+
# @param id [Integer] ID of the product
|
303
|
+
# @param [Hash] opts the optional parameters
|
304
|
+
# @option opts [Integer] :start Pagination start (default to 0)
|
305
|
+
# @option opts [Integer] :limit Items shown per page
|
306
|
+
# @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.
|
307
|
+
# @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.
|
308
|
+
# @return [nil]
|
309
|
+
def products_id_files_get(id, opts = {})
|
310
|
+
products_id_files_get_with_http_info(id, opts)
|
311
|
+
nil
|
312
|
+
end
|
313
|
+
|
314
|
+
# List files attached to a product
|
315
|
+
# Lists files associated with a product.
|
316
|
+
# @param id [Integer] ID of the product
|
317
|
+
# @param [Hash] opts the optional parameters
|
318
|
+
# @option opts [Integer] :start Pagination start
|
319
|
+
# @option opts [Integer] :limit Items shown per page
|
320
|
+
# @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.
|
321
|
+
# @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.
|
322
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
323
|
+
def products_id_files_get_with_http_info(id, opts = {})
|
324
|
+
if @api_client.config.debugging
|
325
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_files_get ...'
|
326
|
+
end
|
327
|
+
# verify the required parameter 'id' is set
|
328
|
+
if @api_client.config.client_side_validation && id.nil?
|
329
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_files_get"
|
330
|
+
end
|
331
|
+
# resource path
|
332
|
+
local_var_path = '/products/{id}/files'.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[:'include_deleted_files'] = opts[:'include_deleted_files'] if !opts[:'include_deleted_files'].nil?
|
339
|
+
query_params[:'sort'] = opts[:'sort'] if !opts[:'sort'].nil?
|
340
|
+
|
341
|
+
# header parameters
|
342
|
+
header_params = opts[:header_params] || {}
|
343
|
+
|
344
|
+
# form parameters
|
345
|
+
form_params = opts[:form_params] || {}
|
346
|
+
|
347
|
+
# http body (model)
|
348
|
+
post_body = opts[:body]
|
349
|
+
|
350
|
+
# return_type
|
351
|
+
return_type = opts[:return_type]
|
352
|
+
|
353
|
+
# auth_names
|
354
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
355
|
+
|
356
|
+
new_options = opts.merge(
|
357
|
+
:header_params => header_params,
|
358
|
+
:query_params => query_params,
|
359
|
+
:form_params => form_params,
|
360
|
+
:body => post_body,
|
361
|
+
:auth_names => auth_names,
|
362
|
+
:return_type => return_type
|
363
|
+
)
|
364
|
+
|
365
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
366
|
+
if @api_client.config.debugging
|
367
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_files_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
368
|
+
end
|
369
|
+
return data, status_code, headers
|
370
|
+
end
|
371
|
+
|
372
|
+
# Delete a follower from a product
|
373
|
+
# Deletes a follower from a product.
|
374
|
+
# @param id [Integer] ID of the product
|
375
|
+
# @param follower_id [Integer] ID of the follower
|
376
|
+
# @param [Hash] opts the optional parameters
|
377
|
+
# @return [DeleteProductFollowerResponse]
|
378
|
+
def products_id_followers_follower_id_delete(id, follower_id, opts = {})
|
379
|
+
data, _status_code, _headers = products_id_followers_follower_id_delete_with_http_info(id, follower_id, opts)
|
380
|
+
data
|
381
|
+
end
|
382
|
+
|
383
|
+
# Delete a follower from a product
|
384
|
+
# Deletes a follower from a product.
|
385
|
+
# @param id [Integer] ID of the product
|
386
|
+
# @param follower_id [Integer] ID of the follower
|
387
|
+
# @param [Hash] opts the optional parameters
|
388
|
+
# @return [Array<(DeleteProductFollowerResponse, Integer, Hash)>] DeleteProductFollowerResponse data, response status code and response headers
|
389
|
+
def products_id_followers_follower_id_delete_with_http_info(id, follower_id, opts = {})
|
390
|
+
if @api_client.config.debugging
|
391
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_followers_follower_id_delete ...'
|
392
|
+
end
|
393
|
+
# verify the required parameter 'id' is set
|
394
|
+
if @api_client.config.client_side_validation && id.nil?
|
395
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_followers_follower_id_delete"
|
396
|
+
end
|
397
|
+
# verify the required parameter 'follower_id' is set
|
398
|
+
if @api_client.config.client_side_validation && follower_id.nil?
|
399
|
+
fail ArgumentError, "Missing the required parameter 'follower_id' when calling ProductsApi.products_id_followers_follower_id_delete"
|
400
|
+
end
|
401
|
+
# resource path
|
402
|
+
local_var_path = '/products/{id}/followers/{follower_id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s)).sub('{' + 'follower_id' + '}', CGI.escape(follower_id.to_s))
|
403
|
+
|
404
|
+
# query parameters
|
405
|
+
query_params = opts[:query_params] || {}
|
406
|
+
|
407
|
+
# header parameters
|
408
|
+
header_params = opts[:header_params] || {}
|
409
|
+
# HTTP header 'Accept' (if needed)
|
410
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
411
|
+
|
412
|
+
# form parameters
|
413
|
+
form_params = opts[:form_params] || {}
|
414
|
+
|
415
|
+
# http body (model)
|
416
|
+
post_body = opts[:body]
|
417
|
+
|
418
|
+
# return_type
|
419
|
+
return_type = opts[:return_type] || 'DeleteProductFollowerResponse'
|
420
|
+
|
421
|
+
# auth_names
|
422
|
+
auth_names = opts[:auth_names] || ['api_key']
|
423
|
+
|
424
|
+
new_options = opts.merge(
|
425
|
+
:header_params => header_params,
|
426
|
+
:query_params => query_params,
|
427
|
+
:form_params => form_params,
|
428
|
+
:body => post_body,
|
429
|
+
:auth_names => auth_names,
|
430
|
+
:return_type => return_type
|
431
|
+
)
|
432
|
+
|
433
|
+
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
434
|
+
if @api_client.config.debugging
|
435
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_followers_follower_id_delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
436
|
+
end
|
437
|
+
return data, status_code, headers
|
438
|
+
end
|
439
|
+
|
440
|
+
# List followers of a product
|
441
|
+
# Lists the followers of a Product
|
442
|
+
# @param id [Integer] ID of the product
|
443
|
+
# @param [Hash] opts the optional parameters
|
444
|
+
# @return [UserIDs]
|
445
|
+
def products_id_followers_get(id, opts = {})
|
446
|
+
data, _status_code, _headers = products_id_followers_get_with_http_info(id, opts)
|
447
|
+
data
|
448
|
+
end
|
449
|
+
|
450
|
+
# List followers of a product
|
451
|
+
# Lists the followers of a Product
|
452
|
+
# @param id [Integer] ID of the product
|
453
|
+
# @param [Hash] opts the optional parameters
|
454
|
+
# @return [Array<(UserIDs, Integer, Hash)>] UserIDs data, response status code and response headers
|
455
|
+
def products_id_followers_get_with_http_info(id, opts = {})
|
456
|
+
if @api_client.config.debugging
|
457
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_followers_get ...'
|
458
|
+
end
|
459
|
+
# verify the required parameter 'id' is set
|
460
|
+
if @api_client.config.client_side_validation && id.nil?
|
461
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_followers_get"
|
462
|
+
end
|
463
|
+
# resource path
|
464
|
+
local_var_path = '/products/{id}/followers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
465
|
+
|
466
|
+
# query parameters
|
467
|
+
query_params = opts[:query_params] || {}
|
468
|
+
|
469
|
+
# header parameters
|
470
|
+
header_params = opts[:header_params] || {}
|
471
|
+
# HTTP header 'Accept' (if needed)
|
472
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
473
|
+
|
474
|
+
# form parameters
|
475
|
+
form_params = opts[:form_params] || {}
|
476
|
+
|
477
|
+
# http body (model)
|
478
|
+
post_body = opts[:body]
|
479
|
+
|
480
|
+
# return_type
|
481
|
+
return_type = opts[:return_type] || 'UserIDs'
|
482
|
+
|
483
|
+
# auth_names
|
484
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
485
|
+
|
486
|
+
new_options = opts.merge(
|
487
|
+
:header_params => header_params,
|
488
|
+
:query_params => query_params,
|
489
|
+
:form_params => form_params,
|
490
|
+
:body => post_body,
|
491
|
+
:auth_names => auth_names,
|
492
|
+
:return_type => return_type
|
493
|
+
)
|
494
|
+
|
495
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
496
|
+
if @api_client.config.debugging
|
497
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_followers_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
498
|
+
end
|
499
|
+
return data, status_code, headers
|
500
|
+
end
|
501
|
+
|
502
|
+
# Add a follower to a product
|
503
|
+
# Adds a follower to a product.
|
504
|
+
# @param id [Integer] ID of the product
|
505
|
+
# @param [Hash] opts the optional parameters
|
506
|
+
# @option opts [InlineObject24] :inline_object24
|
507
|
+
# @return [NewFollowerResponse]
|
508
|
+
def products_id_followers_post(id, opts = {})
|
509
|
+
data, _status_code, _headers = products_id_followers_post_with_http_info(id, opts)
|
510
|
+
data
|
511
|
+
end
|
512
|
+
|
513
|
+
# Add a follower to a product
|
514
|
+
# Adds a follower to a product.
|
515
|
+
# @param id [Integer] ID of the product
|
516
|
+
# @param [Hash] opts the optional parameters
|
517
|
+
# @option opts [InlineObject24] :inline_object24
|
518
|
+
# @return [Array<(NewFollowerResponse, Integer, Hash)>] NewFollowerResponse data, response status code and response headers
|
519
|
+
def products_id_followers_post_with_http_info(id, opts = {})
|
520
|
+
if @api_client.config.debugging
|
521
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_followers_post ...'
|
522
|
+
end
|
523
|
+
# verify the required parameter 'id' is set
|
524
|
+
if @api_client.config.client_side_validation && id.nil?
|
525
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_followers_post"
|
526
|
+
end
|
527
|
+
# resource path
|
528
|
+
local_var_path = '/products/{id}/followers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
529
|
+
|
530
|
+
# query parameters
|
531
|
+
query_params = opts[:query_params] || {}
|
532
|
+
|
533
|
+
# header parameters
|
534
|
+
header_params = opts[:header_params] || {}
|
535
|
+
# HTTP header 'Accept' (if needed)
|
536
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
537
|
+
# HTTP header 'Content-Type'
|
538
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
539
|
+
|
540
|
+
# form parameters
|
541
|
+
form_params = opts[:form_params] || {}
|
542
|
+
|
543
|
+
# http body (model)
|
544
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'inline_object24'])
|
545
|
+
|
546
|
+
# return_type
|
547
|
+
return_type = opts[:return_type] || 'NewFollowerResponse'
|
548
|
+
|
549
|
+
# auth_names
|
550
|
+
auth_names = opts[:auth_names] || ['api_key']
|
551
|
+
|
552
|
+
new_options = opts.merge(
|
553
|
+
:header_params => header_params,
|
554
|
+
:query_params => query_params,
|
555
|
+
:form_params => form_params,
|
556
|
+
:body => post_body,
|
557
|
+
:auth_names => auth_names,
|
558
|
+
:return_type => return_type
|
559
|
+
)
|
560
|
+
|
561
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
562
|
+
if @api_client.config.debugging
|
563
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_followers_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
564
|
+
end
|
565
|
+
return data, status_code, headers
|
566
|
+
end
|
567
|
+
|
568
|
+
# Get one product
|
569
|
+
# Returns data about a specific product.
|
570
|
+
# @param id [Integer] ID of the product
|
571
|
+
# @param [Hash] opts the optional parameters
|
572
|
+
# @return [nil]
|
573
|
+
def products_id_get(id, opts = {})
|
574
|
+
products_id_get_with_http_info(id, opts)
|
575
|
+
nil
|
576
|
+
end
|
577
|
+
|
578
|
+
# Get one product
|
579
|
+
# Returns data about a specific product.
|
580
|
+
# @param id [Integer] ID of the product
|
581
|
+
# @param [Hash] opts the optional parameters
|
582
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
583
|
+
def products_id_get_with_http_info(id, opts = {})
|
584
|
+
if @api_client.config.debugging
|
585
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_get ...'
|
586
|
+
end
|
587
|
+
# verify the required parameter 'id' is set
|
588
|
+
if @api_client.config.client_side_validation && id.nil?
|
589
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_get"
|
590
|
+
end
|
591
|
+
# resource path
|
592
|
+
local_var_path = '/products/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
593
|
+
|
594
|
+
# query parameters
|
595
|
+
query_params = opts[:query_params] || {}
|
596
|
+
|
597
|
+
# header parameters
|
598
|
+
header_params = opts[:header_params] || {}
|
599
|
+
|
600
|
+
# form parameters
|
601
|
+
form_params = opts[:form_params] || {}
|
602
|
+
|
603
|
+
# http body (model)
|
604
|
+
post_body = opts[:body]
|
605
|
+
|
606
|
+
# return_type
|
607
|
+
return_type = opts[:return_type]
|
608
|
+
|
609
|
+
# auth_names
|
610
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
611
|
+
|
612
|
+
new_options = opts.merge(
|
613
|
+
:header_params => header_params,
|
614
|
+
:query_params => query_params,
|
615
|
+
:form_params => form_params,
|
616
|
+
:body => post_body,
|
617
|
+
:auth_names => auth_names,
|
618
|
+
:return_type => return_type
|
619
|
+
)
|
620
|
+
|
621
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
622
|
+
if @api_client.config.debugging
|
623
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
624
|
+
end
|
625
|
+
return data, status_code, headers
|
626
|
+
end
|
627
|
+
|
628
|
+
# List permitted users
|
629
|
+
# Lists users permitted to access a product.
|
630
|
+
# @param id [Integer] ID of the product
|
631
|
+
# @param [Hash] opts the optional parameters
|
632
|
+
# @return [UserIDs]
|
633
|
+
def products_id_permitted_users_get(id, opts = {})
|
634
|
+
data, _status_code, _headers = products_id_permitted_users_get_with_http_info(id, opts)
|
635
|
+
data
|
636
|
+
end
|
637
|
+
|
638
|
+
# List permitted users
|
639
|
+
# Lists users permitted to access a product.
|
640
|
+
# @param id [Integer] ID of the product
|
641
|
+
# @param [Hash] opts the optional parameters
|
642
|
+
# @return [Array<(UserIDs, Integer, Hash)>] UserIDs data, response status code and response headers
|
643
|
+
def products_id_permitted_users_get_with_http_info(id, opts = {})
|
644
|
+
if @api_client.config.debugging
|
645
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_permitted_users_get ...'
|
646
|
+
end
|
647
|
+
# verify the required parameter 'id' is set
|
648
|
+
if @api_client.config.client_side_validation && id.nil?
|
649
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_permitted_users_get"
|
650
|
+
end
|
651
|
+
# resource path
|
652
|
+
local_var_path = '/products/{id}/permittedUsers'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
653
|
+
|
654
|
+
# query parameters
|
655
|
+
query_params = opts[:query_params] || {}
|
656
|
+
|
657
|
+
# header parameters
|
658
|
+
header_params = opts[:header_params] || {}
|
659
|
+
# HTTP header 'Accept' (if needed)
|
660
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
661
|
+
|
662
|
+
# form parameters
|
663
|
+
form_params = opts[:form_params] || {}
|
664
|
+
|
665
|
+
# http body (model)
|
666
|
+
post_body = opts[:body]
|
667
|
+
|
668
|
+
# return_type
|
669
|
+
return_type = opts[:return_type] || 'UserIDs'
|
670
|
+
|
671
|
+
# auth_names
|
672
|
+
auth_names = opts[:auth_names] || ['api_key']
|
673
|
+
|
674
|
+
new_options = opts.merge(
|
675
|
+
:header_params => header_params,
|
676
|
+
:query_params => query_params,
|
677
|
+
:form_params => form_params,
|
678
|
+
:body => post_body,
|
679
|
+
:auth_names => auth_names,
|
680
|
+
:return_type => return_type
|
681
|
+
)
|
682
|
+
|
683
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
684
|
+
if @api_client.config.debugging
|
685
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_permitted_users_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
686
|
+
end
|
687
|
+
return data, status_code, headers
|
688
|
+
end
|
689
|
+
|
690
|
+
# Update a product
|
691
|
+
# Updates product data.
|
692
|
+
# @param id [Integer] ID of the product
|
693
|
+
# @param [Hash] opts the optional parameters
|
694
|
+
# @option opts [Product] :product
|
695
|
+
# @return [Product]
|
696
|
+
def products_id_put(id, opts = {})
|
697
|
+
data, _status_code, _headers = products_id_put_with_http_info(id, opts)
|
698
|
+
data
|
699
|
+
end
|
700
|
+
|
701
|
+
# Update a product
|
702
|
+
# Updates product data.
|
703
|
+
# @param id [Integer] ID of the product
|
704
|
+
# @param [Hash] opts the optional parameters
|
705
|
+
# @option opts [Product] :product
|
706
|
+
# @return [Array<(Product, Integer, Hash)>] Product data, response status code and response headers
|
707
|
+
def products_id_put_with_http_info(id, opts = {})
|
708
|
+
if @api_client.config.debugging
|
709
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_id_put ...'
|
710
|
+
end
|
711
|
+
# verify the required parameter 'id' is set
|
712
|
+
if @api_client.config.client_side_validation && id.nil?
|
713
|
+
fail ArgumentError, "Missing the required parameter 'id' when calling ProductsApi.products_id_put"
|
714
|
+
end
|
715
|
+
# resource path
|
716
|
+
local_var_path = '/products/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))
|
717
|
+
|
718
|
+
# query parameters
|
719
|
+
query_params = opts[:query_params] || {}
|
720
|
+
|
721
|
+
# header parameters
|
722
|
+
header_params = opts[:header_params] || {}
|
723
|
+
# HTTP header 'Accept' (if needed)
|
724
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
725
|
+
# HTTP header 'Content-Type'
|
726
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
727
|
+
|
728
|
+
# form parameters
|
729
|
+
form_params = opts[:form_params] || {}
|
730
|
+
|
731
|
+
# http body (model)
|
732
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'product'])
|
733
|
+
|
734
|
+
# return_type
|
735
|
+
return_type = opts[:return_type] || 'Product'
|
736
|
+
|
737
|
+
# auth_names
|
738
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
739
|
+
|
740
|
+
new_options = opts.merge(
|
741
|
+
:header_params => header_params,
|
742
|
+
:query_params => query_params,
|
743
|
+
:form_params => form_params,
|
744
|
+
:body => post_body,
|
745
|
+
:auth_names => auth_names,
|
746
|
+
:return_type => return_type
|
747
|
+
)
|
748
|
+
|
749
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
750
|
+
if @api_client.config.debugging
|
751
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_id_put\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
752
|
+
end
|
753
|
+
return data, status_code, headers
|
754
|
+
end
|
755
|
+
|
756
|
+
# Add a product
|
757
|
+
# Adds a new product to the products inventory. For more information on how to add a product, see <a href=\"https://pipedrive.readme.io/docs/adding-a-product\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
758
|
+
# @param [Hash] opts the optional parameters
|
759
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
760
|
+
# @return [nil]
|
761
|
+
def products_post(opts = {})
|
762
|
+
products_post_with_http_info(opts)
|
763
|
+
nil
|
764
|
+
end
|
765
|
+
|
766
|
+
# Add a product
|
767
|
+
# Adds a new product to the products inventory. For more information on how to add a product, see <a href=\"https://pipedrive.readme.io/docs/adding-a-product\" target=\"_blank\" rel=\"noopener noreferrer\">this tutorial</a>.
|
768
|
+
# @param [Hash] opts the optional parameters
|
769
|
+
# @option opts [UNKNOWN_BASE_TYPE] :unknown_base_type
|
770
|
+
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
771
|
+
def products_post_with_http_info(opts = {})
|
772
|
+
if @api_client.config.debugging
|
773
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_post ...'
|
774
|
+
end
|
775
|
+
# resource path
|
776
|
+
local_var_path = '/products'
|
777
|
+
|
778
|
+
# query parameters
|
779
|
+
query_params = opts[:query_params] || {}
|
780
|
+
|
781
|
+
# header parameters
|
782
|
+
header_params = opts[:header_params] || {}
|
783
|
+
# HTTP header 'Content-Type'
|
784
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
785
|
+
|
786
|
+
# form parameters
|
787
|
+
form_params = opts[:form_params] || {}
|
788
|
+
|
789
|
+
# http body (model)
|
790
|
+
post_body = opts[:body] || @api_client.object_to_http_body(opts[:'unknown_base_type'])
|
791
|
+
|
792
|
+
# return_type
|
793
|
+
return_type = opts[:return_type]
|
794
|
+
|
795
|
+
# auth_names
|
796
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
797
|
+
|
798
|
+
new_options = opts.merge(
|
799
|
+
:header_params => header_params,
|
800
|
+
:query_params => query_params,
|
801
|
+
:form_params => form_params,
|
802
|
+
:body => post_body,
|
803
|
+
:auth_names => auth_names,
|
804
|
+
:return_type => return_type
|
805
|
+
)
|
806
|
+
|
807
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
808
|
+
if @api_client.config.debugging
|
809
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
810
|
+
end
|
811
|
+
return data, status_code, headers
|
812
|
+
end
|
813
|
+
|
814
|
+
# Search products
|
815
|
+
# Searches all Products by name, code 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.
|
816
|
+
# @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
|
817
|
+
# @param [Hash] opts the optional parameters
|
818
|
+
# @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
819
|
+
# @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
820
|
+
# @option opts [String] :include_fields Supports including optional fields in the results which are not provided by default.
|
821
|
+
# @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)
|
822
|
+
# @option opts [Integer] :limit Items shown per page
|
823
|
+
# @return [BaseResponse]
|
824
|
+
def products_search_get(term, opts = {})
|
825
|
+
data, _status_code, _headers = products_search_get_with_http_info(term, opts)
|
826
|
+
data
|
827
|
+
end
|
828
|
+
|
829
|
+
# Search products
|
830
|
+
# Searches all Products by name, code 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.
|
831
|
+
# @param term [String] The search term to look for. Minimum 2 characters (or 1 if using exact_match).
|
832
|
+
# @param [Hash] opts the optional parameters
|
833
|
+
# @option opts [String] :fields A comma-separated string array. The fields to perform the search from. Defaults to all of them.
|
834
|
+
# @option opts [Boolean] :exact_match When enabled, only full exact matches against the given term are returned. It is <b>not</b> case sensitive.
|
835
|
+
# @option opts [String] :include_fields Supports including optional fields in the results which are not provided by default.
|
836
|
+
# @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.
|
837
|
+
# @option opts [Integer] :limit Items shown per page
|
838
|
+
# @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
|
839
|
+
def products_search_get_with_http_info(term, opts = {})
|
840
|
+
if @api_client.config.debugging
|
841
|
+
@api_client.config.logger.debug 'Calling API: ProductsApi.products_search_get ...'
|
842
|
+
end
|
843
|
+
# verify the required parameter 'term' is set
|
844
|
+
if @api_client.config.client_side_validation && term.nil?
|
845
|
+
fail ArgumentError, "Missing the required parameter 'term' when calling ProductsApi.products_search_get"
|
846
|
+
end
|
847
|
+
allowable_values = ["code", "custom_fields", "name"]
|
848
|
+
if @api_client.config.client_side_validation && opts[:'fields'] && !allowable_values.include?(opts[:'fields'])
|
849
|
+
fail ArgumentError, "invalid value for \"fields\", must be one of #{allowable_values}"
|
850
|
+
end
|
851
|
+
allowable_values = ["true", "false"]
|
852
|
+
if @api_client.config.client_side_validation && opts[:'exact_match'] && !allowable_values.include?(opts[:'exact_match'])
|
853
|
+
fail ArgumentError, "invalid value for \"exact_match\", must be one of #{allowable_values}"
|
854
|
+
end
|
855
|
+
allowable_values = ["product.price"]
|
856
|
+
if @api_client.config.client_side_validation && opts[:'include_fields'] && !allowable_values.include?(opts[:'include_fields'])
|
857
|
+
fail ArgumentError, "invalid value for \"include_fields\", must be one of #{allowable_values}"
|
858
|
+
end
|
859
|
+
# resource path
|
860
|
+
local_var_path = '/products/search'
|
861
|
+
|
862
|
+
# query parameters
|
863
|
+
query_params = opts[:query_params] || {}
|
864
|
+
query_params[:'term'] = term
|
865
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
866
|
+
query_params[:'exact_match'] = opts[:'exact_match'] if !opts[:'exact_match'].nil?
|
867
|
+
query_params[:'include_fields'] = opts[:'include_fields'] if !opts[:'include_fields'].nil?
|
868
|
+
query_params[:'start'] = opts[:'start'] if !opts[:'start'].nil?
|
869
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
870
|
+
|
871
|
+
# header parameters
|
872
|
+
header_params = opts[:header_params] || {}
|
873
|
+
# HTTP header 'Accept' (if needed)
|
874
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
875
|
+
|
876
|
+
# form parameters
|
877
|
+
form_params = opts[:form_params] || {}
|
878
|
+
|
879
|
+
# http body (model)
|
880
|
+
post_body = opts[:body]
|
881
|
+
|
882
|
+
# return_type
|
883
|
+
return_type = opts[:return_type] || 'BaseResponse'
|
884
|
+
|
885
|
+
# auth_names
|
886
|
+
auth_names = opts[:auth_names] || ['api_key', 'oauth2']
|
887
|
+
|
888
|
+
new_options = opts.merge(
|
889
|
+
:header_params => header_params,
|
890
|
+
:query_params => query_params,
|
891
|
+
:form_params => form_params,
|
892
|
+
:body => post_body,
|
893
|
+
:auth_names => auth_names,
|
894
|
+
:return_type => return_type
|
895
|
+
)
|
896
|
+
|
897
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
898
|
+
if @api_client.config.debugging
|
899
|
+
@api_client.config.logger.debug "API called: ProductsApi#products_search_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
900
|
+
end
|
901
|
+
return data, status_code, headers
|
902
|
+
end
|
903
|
+
end
|
904
|
+
end
|